1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
|
# Changelog (unreleased)
To avoid having old PRs put changes into the wrong section of the CHANGELOG,
new entries now go to the present file as discussed
[here](https://github.com/math-comp/math-comp/wiki/Agenda-of-the-April-23rd-2019-meeting-9h30-to-12h30#avoiding-issues-with-changelog).
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Added
- Added contraposition lemmas involving propositions: `contra_not`, `contraPnot`, `contraTnot`, `contraNnot`, `contraPT`, `contra_notT`, `contra_notN`, `contraPN`, `contraFnot`, `contraPF` and `contra_notF` in ssrbool.v and `contraPeq`, `contra_not_eq`, `contraPneq`, and `contra_neq_not` in eqtype.v
- Contraposition lemmas involving inequalities:
+ in `order.v`:
`comparable_contraTle`, `comparable_contraTlt`, `comparable_contraNle`, `comparable_contraNlt`, `comparable_contraFle`, `comparable_contraFlt`,
`contra_leT`, `contra_ltT`, `contra_leN`, `contra_ltN`, `contra_leF`, `contra_ltF`,
`comparable_contra_leq_le`, `comparable_contra_leq_lt`, `comparable_contra_ltn_le`, `comparable_contra_ltn_lt`,
`contra_le_leq`, `contra_le_ltn`, `contra_lt_leq`, `contra_lt_ltn`,
`comparable_contra_le`, `comparable_contra_le_lt`, `comparable_contra_lt_le`, `comparable_contra_lt`,
`contraTle`, `contraTlt`, `contraNle`, `contraNlt`, `contraFle`, `contraFlt`,
`contra_leq_le`, `contra_leq_lt`, `contra_ltn_le`, `contra_ltn_lt`,
`contra_le`, `contra_le_lt`, `contra_lt_le`, `contra_lt`,
`contra_le_not`, `contra_lt_not`,
`comparable_contraPle`, `comparable_contraPlt`, `comparable_contra_not_le`, `comparable_contra_not_lt`,
`contraPle`, `contraPlt`, `contra_not_le`, `contra_not_lt`
+ in `ssrnat.v`:
`contraTleq`, `contraTltn`, `contraNleq`, `contraNltn`, `contraFleq`, `contraFltn`,
`contra_leqT`, `contra_ltnT`, `contra_leqN`, `contra_ltnN`, `contra_leqF`, `contra_ltnF`,
`contra_leq`, `contra_ltn`, `contra_leq_ltn`, `contra_ltn_leq`,
`contraPleq`, `contraPltn`, `contra_not_leq`, `contra_not_ltn`, `contra_leq_not`, `contra_ltn_not`
- in `ssralg.v`, new lemma `sumr_const_nat` and `iter_addr_0`
- in `ssrnum.v`, new lemma `ler_sum_nat`
- in `seq.v`, new lemmas: `take_uniq`, `drop_uniq`
- in `fintype.v`, new lemmas: `card_geqP`, `card_gt1P`, `card_gt2P`,
`card_le1_eqP` (generalizes `fintype_le1P`),
- in `finset.v`, neq lemmas: `set_enum`, `cards_eqP`, `cards2P`
- in `fingraph.v`, new lemmas: `fcard_gt0P`, `fcard_gt1P`
- in `finset.v`, new lemmas: `properC`, `properCr`, `properCl`
- in `ssrnat.v`, new lemmas: `subn_minl`, `subn_maxl`
- in `ssrnat.v`, new lemma: `oddS`
- in `ssrnat.v`, new lemmas: `subnA`, `addnBn`, `addnCAC`, `addnACl`
- in `finset.v`, new lemmas: `mem_imset_eq`, `mem_imset2_eq`.
These lemmas will lose the `_eq` suffix in the next release, when the shortende names will become availabe (cf. Renamed section)
- Added a factory `distrLatticePOrderMixin` in order.v to build a
`distrLatticeType` from a `porderType`.
- in `bigop.v` new lemma `sig_big_dep`, analogous to `pair_big_dep`
but with an additional dependency in the index types `I` and `J`.
- in `fintype.v` adds lemma `split_ordP`, a variant of `splitP` which
introduces ordinal equalities between the index and
`lshift`/`rshift`, rather than equalities in `nat`, which in some
proofs makes the reasoning easier (cf `matrix.v`), especially
together with the new lemma `eq_shift` (which is a multi-rule for new
lemmas `eq_lshift`, `eq_rshift`, `eq_lrshift` and `eq_rlshift`).
- in `matrix.v` new definitions `is_diag_mx` and `is_trig_mx`
characterizing respectively diagonal and lower triangular matrices.
We provide the new lemmas `row_diag_mx`, `is_diag_mxP`, `diag_mxP`,
`diag_mx_is_diag`, `mx0_is_diag`, `is_trig_mxP`,
`is_diag_mx_is_trig`, `diag_mx_trig`, `mx0_is_trig`,
`scalar_mx_is_diag`, `is_scalar_mx_is_diag`, `scalar_mx_is_trig` and
`is_scalar_mx_is_trig`.
- in `matrix.v`, new lemmas `matrix_eq0`, `matrix0Pn`, `rV0Pn` and
`cV0Pn` to characterize nonzero matrices and find a nonzero
coefficient.
- in `mxalgebra.v`, completed the theory of `pinvmx` in corner cases,
using lemmas: `mulmxVp`, `mulmxKp`, `pinvmxE`, `mulVpmx`,
`pinvmx_free`, and `pinvmx_full`.
- in `poly.v`, new lemma `commr_horner`.
- in `seq.v`, new lemma `mkseqP` to abstract a sequence `s` with
`mkseq f n`, where `f` and `n` are fresh variables.
- in `seq.v`, new high-order predicate `allrel r s` which
asserts that a relation `r` holds on all pairs of elements of `s`, and
+ lemmas `allrel_map`, `allrelP` and `allrel0`.
+ lemmas `allrel1`, `allrel2` and `allrel_cons`,
under assumptions of reflexivity and symmetry of `r`.
- in `mxpoly.v`, new lemmas `mxminpoly_minP` and `dvd_mxminpoly`.
- in `mxalgebra.v` new lemmas `row_base0`, `sub_kermx`, `kermx0` and
`mulmx_free_eq0`.
- in `bigop.v` new lemma `reindex_omap` generalizes `reindex_onto`
to the case where the inverse function to `h` is partial (i.e. with
codomain `option J`, to cope with a potentially empty `J`.
- in `bigop.v` new lemma `bigD1_ord` takes out an element in the
middle of a `\big_(i < n)` and reindexes the remainder using `lift`.
- in `fintype.v` new lemmas `eq_liftF` and `lift_eqF`.
- in `matrix.v` new predicate `mxOver S` qualified with `\is a`, and
+ new lemmas: `mxOverP`, `mxOverS`, `mxOver_const`, `mxOver_constE`,
`thinmxOver`, `flatmxOver`, `mxOver_scalar`, `mxOver_scalarE`,
`mxOverZ`, `mxOverM`, `mxOver_diag`, `mxOver_diagE`.
+ new canonical structures:
* `mxOver S` is closed under addition if `S` is.
* `mxOver S` is closed under negation if `S` is.
* `mxOver S` is a sub Z-module if `S` is.
* `mxOver S` is a semiring for square matrices if `S` is.
* `mxOver S` is a subring for square matrices if `S` is.
- in `matrix.v` new lemmas about `map_mx`: `map_mx_id`, `map_mx_comp`,
`eq_in_map_mx`, `eq_map_mx` and `map_mx_id_in`.
- in `matrix.v`, new lemmas `row_usubmx`, `row_dsubmx`, `col_lsubmx`,
and `col_rsubmx`.
- in `seq.v` new lemmas `find_ltn`, `has_take`, `has_take_leq`,
`index_ltn`, `in_take`, `in_take_leq`, `split_find_nth`,
`split_find` and `nth_rcons_cat_find`.
- in `matrix.v` new lemma `mul_rVP`.
- in `matrix.v`:
+ new inductions lemmas: `row_ind`, `col_ind`, `mx_ind`, `sqmx_ind`,
`ringmx_ind`, `trigmx_ind`, `trigsqmx_ind`, `diagmx_ind`,
`diagsqmx_ind`.
+ missing lemma `trmx_eq0`
+ new lemmas about diagonal and triangular matrices: `mx11_is_diag`,
`mx11_is_trig`, `diag_mx_row`, `is_diag_mxEtrig`, `is_diag_trmx`,
`ursubmx_trig`, `dlsubmx_diag`, `ulsubmx_trig`, `drsubmx_trig`,
`ulsubmx_diag`, `drsubmx_diag`, `is_trig_block_mx`,
`is_diag_block_mx`, and `det_trig`.
- in `mxpoly.v` new lemmas `horner_mx_diag`, `char_poly_trig`,
`root_mxminpoly`, and `mxminpoly_diag`
- in `mxalgebra.v`, new lemma `sub_sums_genmxP` (generalizes `sub_sumsmxP`).
- in `bigop.v` new lemma `big_uncond`. The ideal name is `big_rmcond`
but it has just been deprecated from its previous meaning (see
Changed section) so as to reuse it in next mathcomp release.
- in `bigop.v` new lemma `big_uncond_in` is a new alias of
`big_rmcond_in` for the sake of uniformity, but it is already
deprecated and will be removed two releases from now.
- in `eqtype.v` new lemmas `contra_not_neq`, `contra_eq_not`.
- in `order.v`, new notations `0^d` and `1^d` for bottom and top elements of
dual lattices.
- in `finset.v` new lemma `disjoints1`
- in `fintype.v` new lemmas: `disjointFr`, `disjointFl`, `disjointWr`, `disjointW`
- in `fintype.v`, new (pigeonhole) lemmas `leq_card_in`, `leq_card`,
and `inj_leq`.
- in `matrix.v`, new definition `mxsub`, `rowsub` and `colsub`,
corresponding to arbitrary submatrices/reindexation of a matrix.
+ We provide the theorems `x?(row|col)(_perm|')?Esub`, `t?permEsub`
`[lrud]submxEsub`, `(ul|ur|dl|dr)submxEsub` for compatibility with
ad-hoc submatrices/permutations.
+ We provide a new, configurable, induction lemma `mxsub_ind`.
+ We provide the basic theory `mxsub_id`, `eq_mxsub`, `eq_rowsub`,
`eq_colsub`, `mxsub_eq_id`, `mxsub_eq_colsub`, `mxsub_eq_rowsub`,
`mxsub_ffunl`, `mxsub_ffunr`, `mxsub_ffun`, `mxsub_const`,
`mxsub_comp`, `rowsub_comp`, `colsub_comp`, `mxsubrc`, `mxsubcr`,
`trmx_mxsub`, `row_mxsub`, `col_mxsub`, `row_rowsub`,
`col_colsub`, and `map_mxsub`, `pid_mxErow` and `pid_mxEcol`.
+ Interaction with `castmx` through lemmas `rowsub_cast`,
`colsub_cast`, `mxsub_cast`, and `castmxEsub`.
+ `(mx|row|col)sub` are canonically additive and linear.
+ Interaction with `mulmx` through lemmas `mxsub_mul`,
`mul_rowsub_mx`, `mulmx_colsub`, and `rowsubE`.
- in `mxalgebra.v`, new lemma `rowsub_sub`, `eq_row_full`,
`row_full_castmx`, `row_free_castmx`, `rowsub_comp_sub`,
`submx_rowsub`, `eqmx_rowsub_comp_perm`, `eqmx_rowsub_comp`,
`eqmx_rowsub`, `row_freePn`, and `negb_row_free`.
- in `interval.v`:
+ Intervals and their bounds of `T` now have canonical ordered type instances
whose ordering relations are the subset relation and the left to right
ordering respectively. They form partially ordered types if `T` is a
`porderType`. If `T` is a `latticeType`, they also form `tbLatticeType`
where the join and meet are intersection and convex hull respectively. If
`T` is an `orderType`, they are distributive, and the interval bounds are
totally ordered. (cf Changed section)
+ New lemmas: `bound_ltxx`, `subitvE`, `in_itv`, `itv_ge`, `in_itvI`,
`itv_total_meet3E`, and `itv_total_join3E`.
- in `order.v`:
+ new definition `lteif` and notations `<?<=%O`, `<?<=^d%O`, `_ < _ ?<= if _`,
and `_ <^d _ ?<= if _` (cf Changed section).
+ new lemmas `lteifN`, `comparable_lteifNE`, and
`comparable_lteif_(min|max)(l|r)`.
- in `ssrnum.v`, new lemma `real_lteif_distl`.
- in `matrix.v` new lemma `det_mx11`.
- in `ssralg.v`, new lemma `raddf_inj`, characterizing injectivity for
additive maps.
- in `mxalgebra.v`, new lemma `row_free_injr` which duplicates
`row_free_inj` but exposing `mulmxr` for compositionality purposes
(e.g. with `raddf_eq0`), and lemma `inj_row_free` characterizing
`row_free` matrices `A` through `v *m A = 0 -> v = 0` for all `v`.
- in `mxpoly.v`,
+ new definitions `kermxpoly g p` (the kernel of polynomial $p(g)$).
* new elementary theorems: `kermxpolyC`, `kermxpoly1`,
`kermxpolyX`, `kermxpoly_min`
* kernel lemmas: `mxdirect_kermxpoly`, `kermxpolyM`,
`kermxpoly_prod`, and `mxdirect_sum_kermx`
* correspondance between `eigenspace` and `kermxpoly`: `eigenspace_poly`
+ generalized eigenspace `geigenspace` and a generalization of eigenvalues
called `eigenpoly g` (i.e. polynomials such that `kermxpoly g p`
is nonzero, e.g. eigen polynomials of degree 1 are of the form
`'X - a%:P` where `a` are eigenvalues), and
* correspondance with `kermx`: `geigenspaceE`,
* application of kernel lemmas `mxdirect_sum_geigenspace`,
* new lemmas: `eigenpolyP`, `eigenvalue_poly`, `eigenspace_sub_geigen`,
+ new `map_mx` lemmas: `map_kermxpoly`, `map_geigenspace`, `eigenpoly_map`.
### Changed
- in ssrbool.v, use `Reserved Notation` for `[rel _ _ : _ | _]` to avoid warnings with coq-8.12
- in `ssrAC.v`, fix `non-reversible-notation` warnings
- In the definition of structures in order.v, displays are removed from
parameters of mixins and fields of classes internally and now only appear in
parameters of structures. Consequently, each mixin is now parameterized by a
class rather than a structure, and the corresponding factory parameterized by
a structure is provided to replace the use of the mixin. These factories have
the same names as in the mixins before this change except that `bLatticeMixin`
and `tbLatticeMixin` have been renamed to `bottomMixin` and `topMixin`
respectively.
- The `dual_*` notations such as `dual_le` in order.v are now qualified with the
`Order` module.
- Lemma `big_rmcond` is deprecated and has been renamed
`big_rmcomd_in` (and aliased `big_uncond_in`, see Added). The
variant which does not require an `eqType` is currently named
`big_uncond` (cf Added) but it will be renamed `big_mkcond` in the
next release.
- Added lemma `ord1` in `fintype`, it is the same as `zmodp.ord1`,
except `fintype.ord1` does not rely on `'I_n` zmodType structure.
- in `order.v`, `\join^d_` and `\meet^d_` notations are now properly specialized
for `dual_display`.
- in `fintype.v`, rename `disjoint_trans` to `disjointWl`
- in `interval.v`:
+ `x <= y ?< if c` (`lersif`) has been generalized to `porderType`, relocated
to `order.v`, and replaced with `x < y ?<= if c'` (`lteif`) where `c'` is
negation of `c`.
+ Many definitions and lemmas on intervals such as the membership test are
generalized from numeric domains to ordered types.
+ Interval bounds `itv_bound : Type -> Type` are redefined with two constructors
`BSide : bool -> T -> itv_bound T` and `BInfty : bool -> itv_bound T`.
New notations `BLeft` and `BRight` are aliases for `BSide true` and `BSide false` respectively.
`BInfty false` and `BInfty true` respectively means positive and negative infinity.
`BLeft x` and `BRight x` respectively mean close and open bounds as left bounds,
and they respectively mean open and close bounds as right bounds.
This change gives us the canonical "left to right" ordering of interval bounds.
- in `interval.v`:
+ Lemmas `mid_in_itv(|oo|cc)` have been generalized from `realFieldType` to
`numFieldType`.
### Renamed
- `big_rmcond` -> `big_rmcond_in` (cf Changed section)
- `mem_imset` -> `imset_f` (with deprecation alias, cf. Added section)
- `mem_imset2` -> imset2_f` (with deprecation alias, cf. Added section)
- in `interval.v`, we deprecate, rename, and relocate to `order.v` the following:
+ `lersif_(trans|anti)` -> `lteif_(trans|anti)`
+ `lersif(xx|NF|S|T|F|W)` -> `lteif(xx|NF|S|T|F|W)`
+ `lersif_(andb|orb|imply)` -> `lteif_(andb|orb|imply)`
+ `ltrW_lersif` -> `ltrW_lteif`
+ `lersifN` -> `lteifNE`
+ `lersif_(min|max)(l|r)` -> ` lteif_(min|max)(l|r)`
- in `interval.v`, we deprecate, rename, and relocate to `ssrnum.v` the following:
+ `subr_lersif(r0|0r|0)` -> `subr_lteif(r0|0r|0)`
+ `lersif01` -> `lteif01`
+ `lersif_(oppl|oppr|0oppr|oppr0|opp2|oppE)` -> `lteif_(oppl|oppr|0oppr|oppr0|opp2|oppE)`
+ `lersif_add2(|l|r)` -> `lteif_add2(|l|r)`
+ `lersif_sub(l|r)_add(l|r)` -> `lteif_sub(l|r)_add(l|r)`
+ `lersif_sub_add(l|r)` -> `lteif_sub_add(l|r)`
+ `lersif_(p|n)mul2(l|r)` -> `lteif_(p|n)mul2(l|r)`
+ `real_lersifN` -> `real_lteifNE`
+ `real_lersif_norm(l|r)` -> `real_lteif_norm(l|r)`
+ `lersif_nnormr` -> `lteif_nnormr`
+ `lersif_norm(l|r)` -> `lteif_norm(l|r)`
+ `lersif_distl` -> `lteif_distl`
+ `lersif_(p|n)div(l|r)_mul(l|r)` -> `lteif_(p|n)div(l|r)_mul(l|r)`
- in `interval.v`, we deprecate and replace the following:
+ `lersif_in_itv` -> `lteif_in_itv`
+ `itv_gte` -> `itv_ge`
+ `l(t|e)r_in_itv` -> `lt_in_itv`
### Removed
- in `interval.v`, we remove the following:
+ `le_bound(l|r)` (use `Order.le` instead)
+ `le_bound(l|r)_refl` (use `lexx` instead)
+ `le_bound(l|r)_anti` (use `eq_le` instead)
+ `le_bound(l|r)_trans` (use `le_trans` instead)
+ `le_bound(l|r)_bb` (use `bound_lexx` instead)
+ `le_bound(l|r)_total` (use `le_total` instead)
- in `interval.v`, we deprecate the following:
+ `itv_intersection` (use `Order.meet` instead)
+ `itv_intersection1i` (use `meet1x` instead)
+ `itv_intersectioni1` (use `meetx1` instead)
+ `itv_intersectionii` (use `meetxx` instead)
+ `itv_intersectionC` (use `meetC` instead)
+ `itv_intersectionA` (use `meetA` instead)
### Infrastructure
### Misc
|