All notable changes to this project will be documented in this file.
Last releases: [1.10.0] - 2019-11-29 and [1.9.0] - 2019-05-22.
The format is based on Keep a Changelog.
This release is compatible with Coq versions 8.9 and 8.10.
-
Added a
voidnotation for theEmpty_settype of the standard library, the canonical injectionof_voidand its cancellation lemmaof_voidK, andeq,choice,countandfininstances. -
Added
ltn_indgeneral induction principle fornatvariables, helper lemmasubnP,ltnSE, ubnPleq, ubnPgeq and ubnPeq, in support of a generalized induction idiom fornatmeasures that does not rely on the{-2}numerical occurrence selector, and purged this idiom from themathcomplibrary (see below). -
Added fixpoint and cofixpoint constructions to
finset:fixset,cofixsetandfix_order, with a few theorems about them -
Added functions
tuple_of_finfun,finfun_of_tuple, and their "cancellation" lemmas. -
Added theorems
totient_primeandEuclid_dvd_prodinprime.v -
Added theorems
ffact_prod,prime_modn_expSnandfermat_littleinbinomial.v -
Added theorems
flatten_map1,allpairs_consr,mask_filter,all_filter,all_pmap, andall_allpairsPinseq.v. -
Added theorems
nth_rcons_default,undup_rcons,undup_catandundup_flatten_nseqinseq.v -
Fintype theorems:
fintype0,card_le1P,mem_card1,card1P,fintype_le1P,fintype1,fintype1P,existsPn,exists_inPn,forallPn,forall_inPn,eq_enum_rank_in,enum_rank_in_inj,lshift_inj, andrshift_inj. -
Bigop theorems:
index_enum_uniq,big_rmcond,bigD1_seq,big_enum_val_cond,big_enum_rank_cond,big_enum_val,big_enum_rank,big_set,big_enumP,big_enum_cond,big_enum -
Arithmetic theorems in ssrnat and div:
- some trivial results in ssrnat:
ltn_predL,ltn_predRL,ltn_subrR,leq_subrR,ltn_subrLandpredn_sub, - theorems about
n <=/< p +/- mandm +/- n <=/< p:leq_psubRL,ltn_psubLR,leq_subRL,ltn_subLR,leq_subCl,leq_psubCr,leq_subCr,ltn_subCr,ltn_psubClandltn_subCl, - some commutations between modulo and division:
modn_divlanddivn_modl, - theorems about the euclidean division of additions and subtraction,
- without preconditions of divisibility:
edivnD,edivnB,divnD,divnB,modnD,modnB, - with divisibility of one argument:
divnDMl,divnMBl,divnBMl,divnBlanddivnBr, - specialization of the former theorems for .+1 and .-1:
edivnS,divnS,modnS,edivn_pred,divn_predandmodn_pred.
- without preconditions of divisibility:
- some trivial results in ssrnat:
-
Added
sort_rec1andsortEto help inductive reasoning onsort. -
Added map/parametricity theorems about
path,sort, andsorted:homo_path,mono_path,homo_path_in,mono_path_in,homo_sorted,mono_sorted,map_merge,merge_map,map_sort,sort_map,sorted_map,homo_sorted_in,mono_sorted_in. -
Extracting lemma
fpathEfromfpathP, and shortening the proof of the latter. -
Added the theorem
perm_iota_sortto express that the sorting of any sequencesis equal to a mapping ofiota 0 (size s)to the nth elements ofs, so that one can still reason onnat, even though the elements ofsare not in aneqType. -
Added stability theorems about
mergeandsort:sorted_merge,merge_stable_path,merge_stable_sorted,sorted_sort,sort_stable,filter_sort,mask_sort,sorted_mask_sort,subseq_sort,sorted_subseq_sort, andmem2_sort. -
New algebraic interfaces in
ssralg.v: comAlgebra and comUnitAlgebra for commutative and commutative-unitary algebras. -
Initial property for polynomials in algebras: New canonical lrMoprphism
horner_algevaluating a polynomial in an element of an algebra. The theory include the lemmasin_alg_comm,horner_algC,horner_algX,poly_alg_initial. -
Added lemmas on commutation with difference, big sum and prod:
commrB,commr_sum,commr_prod. -
Added a few basic seq lemmas about
nseq,takeanddrop:nseq_addn,take_take,take_drop,take_addn,takeC,take_nseq,drop_nseq,rev_nseq,take_iota,drop_iota. -
Added ssrfun theorem
inj_compr. -
Added theorems
mem2E,nextE,mem_fcycle,inj_cycle,take_traject,trajectDandcycle_catCinpath.v -
Added lemmas about
cycle,connect,fconnect,orderandorbitinfingraph.v:- lemma
connect_cycle, - lemmas
in_orbit,order_gt0,findex_eq0,mem_orbit,image_orbit, - lemmas
fcycle_rconsE,fcycle_consE,fcycle_consEflattenandundup_cycle_conswhich operate under the precondition that the sequencex :: pis a cycle for f (i.e.fcycle f (x :: p)). - lemmas which operate under the precondition there is a sequence
pwhich is a cycle forf(i.e.fcycle f p):order_le_cycle,finv_cycle,f_finv_cycle,finv_f_cycle,finv_inj_cycle,iter_finv_cycle,cycle_orbit_cycle,fpath_finv_cycle,fpath_finv_f_cycle,fpath_f_finv_cycle,prevE,fcycleEflatten,fcycle_undup,in_orbit_cycle,eq_order_cycle,iter_order_cycle, - lemmas
injectivePcycle,orbitPcycle,fconnect_eqVf,order_id_cycle,orderPcycle,fconnect_f,fconnect_findex.
- lemma
-
Added lemma
rot_indexwhich explicits the index given byrot_to. -
Added tactic
tfaeto split an equivalence between n+1 propositions into n+1 goals, and referenced orbitPcycle as a reference of use.
-
Replaced the legacy generalised induction idiom with a more robust one that does not rely on the
{-2}numerical occurrence selector, using newssrnathelper lemmasltn_ind,ubnP,ubnPleq, ...., (see above). The new idiom is documented inssrnat. This change anticipates an expected evolution offintypeto integratefinmap. It is likely that the new definition of the#|A|notation will hide multiple occurrences ofA, which will break the{-2}induction idiom. Client libraries should update before the 1.11 release (see PR #434 for examples). -
Replaced the use of the accidental convertibility between
enum Aandfilter A (index_enum T)with more explicit lemmasbig_enumP,big_enum,big_enum_cond,big_imageadded to thebigoplibrary, and deprecated thefilter_index_enumlemma that states the corresponding equality. Both convertibility and equality may no longer hold in futuremathcompreleases when sets overfinTypes are generalised to finite sets overchoiceTypes, so client libraries should stop relying on this identity. Filebigop.vhas some boilerplate to help with the port; also see PR #441 for examples. -
Restricted
big_image,big_image_cond,big_image_idandbig_image_cond_idtobigops over abelian monoids, anticipating the change in the definition ofenum. This may introduce some incompatibilities - non-abelian instances should be dealt with a combination ofbig_mapandbig_enumP. -
eqVneqlemma is changed from{x = y} + {x != y}toeq_xor_neq x y (y == x) (x == y), on which a case analysis performs simultaneous replacement of expressions of the formx == yandy == xbytrueorfalse, while keeping the ability to use it in the way it was used before. -
Generalized the
allpairs_catrlemma to the case where the types ofs,t1, andt2are non-eqTypes in[seq E | i <- s, j <- t1 ++ t2]. -
Generalized
muln_modrandmuln_modlremoving hypothesis0 < p. -
Generalized
sortto non-eqTypes (as well asmerge,merge_sort_push,merge_sort_pop), together with all the lemmas that did not really rely on aneqType:size_merge,size_sort,merge_path,merge_sorted,sort_sorted,path_min_sorted(which statement was modified to remove the dependency ineqType), andorder_path_min. -
compare_nattype family andltngtPcomparison predicate are changed fromcompare_nat m n (m <= n) (n <= m) (m < n) (n < m) (n == m) (m == n)tocompare_nat m n (n == m) (m == n) (n <= m) (m <= n) (n < m) (m < n), to make it tries to match subterms withm < nfirst,m <= n, thenm == n.- The compatibility layer for the version 1.9 is provided as the
ssrnat.mc_1_9module. One may compile proofs compatible with the version 1.9 in newer versions by using this module.
- The compatibility layer for the version 1.9 is provided as the
-
Moved
iter_into ssrnat and reordered its arguments. -
Notation
[<-> P0 ; .. ; Pn]now forcesPito be of typeProp.
fin_inj_bijlemma is removed as a duplicate ofinjF_bijlemma fromfintypelibrary.
-
Makefilenow supports thetest-suiteandonlytargets. Currently,make test-suitewill verify the implementation of mathematical structures and their inheritances of MathComp automatically, by using thehierarchy.mlutility. One can use theonlytarget to build the sub-libraries of MathComp specified by theTGTSvariable, e.g.,make only TGTS="ssreflect/all_ssreflect.vo fingroup/all_fingroup.vo". -
Makefilenow supports adoctarget to build the documentation as made available on https://mathcomp.github.io/htmldoc/index.html
MathComp 1.9.0 is compatible with Coq 8.7, 8.8, 8.9 and 8.10beta1. Minor releases will remain compatible with Coq 8.9 and 8.10; compatibility with earlier versions may be dropped.
-
nonPropType, an interface for non-Proptypes, and{pred T}andrelpre f r, all of which will be in the Coq 8.10 core SSreflect library. -
deprecate old_id new_id, notation fornew_idthat prints a deprecation warning forold_id;Import Deprecation.Silentturns off those warnings,Import Deprecation.Rejectraises errors instead of only warning. -
filter_nseq,count_nseq,mem_nseq,rcons_inj,rcons_injl,rcons_injr,nthK,sumn_rot. -
some
perm_eqlemmas:perm_cat[lr],perm_nilP,perm_consP,perm_has,perm_flatten,perm_sumn. -
computing (efficiently) (item, multiplicity) tallies of sequences over an
eqType:tally s,incr_tally bs x,bs \is a wf_tally,tally_seq bs.
-
definition of
PredTypewhich now takes only aP -> pred Tfunction; definition ofsimpl_relto improve simplification byinE. Both these changes will be in the Coq 8.10 SSReflect core library. -
definition of
permutations snow uses an optimal algorithm (in space and time) to generate all permutations of s back-to-front, usingtally s.
perm_eqP->permP(seq.permPifperm.vis also imported)perm_eqlP->permPlperm_eqrP->permPrperm_eqlE->permElperm_eq_refl->perm_reflperm_eq_sym->perm_symperm_eq_trans->perm_transperm_eq_size->perm_sizeperm_eq_mem->perm_memperm_eq_uniq->perm_uniqperm_eq_rev->perm_revperm_eq_flatten->perm_flattenperm_eq_all->perm_allperm_eq_small->perm_small_eqperm_eq_nilP->perm_nilPperm_eq_consP->perm_consPleq_size_perm->uniq_min_size(permuting conclusions)perm_uniq->eq_uniq(permuting assumptions) --> bewareperm_uniqnow meansperm_eq_uniquniq_perm_eq->uniq_permperm_eq_iotaP->perm_iotaPperm_undup_count->perm_count_unduptuple_perm_eqP->tuple_permPeq_big_perm->perm_bigperm_eq_abelian_type->abelian_type_pgroup
- removed Coq prelude hints
plus_n_Oplus_n_Smmult_n_Omult_n_Sm, to improve robustness ofby ...; scripts may need to invokeaddn0,addnS,muln0ormulnSexplicitly where these hints were used accidentally.
Drop compatibility with Coq 8.6 (OCaml plugin removed). MathComp 1.8.0 is compatible with Coq 8.7, 8.8 and 8.9.
-
Companion matrix of a polynomial
companionmx pand the theorems:companionmxK,map_mx_companionandcompanion_map_poly -
homoW_in,inj_homo_in,mono_inj_in,anti_mono_in,total_homo_mono_in,homoW,inj_homo,monoj,anti_mono,total_homo_mono -
sorted_lt_nth,ltn_index,sorted_le_nth,leq_index. -
[arg minr_( i < n | P ) F]and[arg maxr_( i < n | P ) F]with all their variants, following the same convention as fornat -
contra_neqN,contra_neqF,contra_neqT,contra_neq_eq,contra_eq_neq -
take_subseq,drop_subseq -
big_imset_cond,big_map_id,big_image_condbig_image,big_image_cond_idandbig_image_id -
foldrE,foldlE,foldl_idxandsumnEto turn "seq statements" into "bigop statements" -
all_iffwith notation[<-> P0; P1; ..; Pn]to talk about circular implicationP0 -> P1 -> ... -> Pn -> P0. Related theorems areall_iffLRandall_iffP -
support for casts in map comprehension notations, e.g.,
[seq E : T | s <- s]. -
a predicate
all2, a parallel doubleseqversion ofall. -
some
perm_eqlemmas:perm_cat[lr],perm_eq_nilP,perm_eq_consP,perm_eq_flatten. -
a function
permutationsthat computes a duplicate-free list of all permutations of a given sequencesover aneqType, along with its theory:mem_permutations,size_permutations,permutations_uniq,permutations_all_uniq,perm_permutations. -
eq_mktuple,eq_ffun,eq_finset,eq_poly,ex_mxthat can be used with theundertactic from the Coq 8.10 SSReflect plugin (cf. coq/coq#9651)
-
Theory of
lersifand intervals:- Many
lersifrelated lemmas are ported fromssrnum - Changed:
prev_of_itv,itv_decompose, anditv_rewrite - New theory of intersections of intervals
- Many
-
Generalized
extremum_specand its theory, addedextremumandextremumP, generalizingarg_minfor an arbitraryeqTypewith an order relation on it (rather thannat). Redefinedarg_minandarg_maxwith it. -
Reshuffled theorems inside files and packages:
countalggoes from the field to the algebra packagefinalginherits from countalgclosed_fieldcontains the construction of algebraic closure for countable fields that used to be in the filecountalg.
-
Maximal implicits applied to reflection, injectivity and cancellation lemmas so that they are easier to pass to combinator lemmas such as
sameP,inj_eqorcanLR. -
Added
reindex_inj sshorthand for reindexing a bigop with a permutations. -
Added lemma
eqmxMunitP: two matrices with the same shape represent the same subspace iff they differ only by a change of basis. -
Corrected implicits and documentation of
MatrixGenField. -
Rewritten proof of quantifier elimination for closed field in a monadic style.
-
Specialized
bool_irrelevanceso that the statement reflects the name. -
Changed the shape of the type of
FieldMixinto allow one-line in-proof definition of bespokefieldTypestructure. -
Refactored and extended Arguments directives to provide more comprehensive signature information.
-
Generalized the notation
[seq E | i <- s, j <- t]to the case wheretmay depend oni. The notation is now primitive and expressed usingflattenandmap(see documentation of seq).allpairsnow expands to this notation when fully applied.- Added
allpairs_depand made it self-expanding as well. - Generalized some lemmas in a backward compatible way.
- Some strictly more general lemmas now have suffix
_dep. - Replaced
allpairs_compwith its conversemap_allpairs. - Added
allpairsextensionality lemmas for the following cases: non-localised (eq_allpairs), dependent localised (eq_in_allpairs_dep) and non-dependent localised (eq_in_allpairs); as pereq_in_map, the latter two are equivalences.
- Added
-
Generalized
{ffun A -> R}to handle dependent functions, and to be structurally positive so it can be used in recursive inductive type definitions.Minor backward incompatibilities:
fgraph fis no longer a field accessor, and no longer equal toval fas{ffun A -> R}is no longer asubType; some instances offinfun,ffunE,ffunKmay not unify with a generic non-dependent function typeA -> ?Rdue to a bug in Coq version 8.9 or below. -
Renamed double
seqinduction lemma fromseq2_indtoseq_ind2, and weakened its induction hypothesis. -
Replaced the
nosimplinrevwith aArguments simpl neverdirective. -
Many corrections in implicits declarations.
-
fixed missing joins in
ssralg,ssrnum,finalgandcountalg
Renamings also involve the _in suffix counterpart when applicable
mono_inj->incr_injnmono_inj->decr_injleq_mono_inj->incnr_injleq_nmono_inj->decnr_injhomo_inj_ltn_lt->incnr_injnhomo_inj_ltn_lt->decnr_injhomo_inj_in_lt->inj_homo_ltr_innhomo_inj_in_lt->inj_nhomo_ltr_inltn_ltrW_homo->ltnrW_homoltn_ltrW_nhomo->ltnrW_nhomoleq_lerW_mono->lenrW_monoleq_lerW_nmono->lenrW_nmonohomo_leq_mono->lenr_mononhomo_leq_mono->lenr_nmonohomo_inj_lt->inj_homo_ltrnhomo_inj_lt->inj_nhomo_ltrhomo_inj_ltn_lt->inj_homo_ltnrnhomo_inj_ltn_lt->inj_nhomo_ltnrhomo_mono->ler_mononhomo_mono->ler_nmonobig_setIDdep->big_setIDcondsum_nat_dep_const->sum_nat_cond_const
-
Removed trailing
_ : Typefield from packed classes. This performance optimization is not strictly necessary with modern Coq versions. -
Removed duplicated definitions of
tag,taggedandTaggedfromeqtype.v. They are already inssrfun.v. -
Miscellaneous improvements to proof scripts and file organisation.
Compatibility with Coq 8.8 and lost compatibility with Coq <= 8.5. This release is compatible with Coq 8.6, 8.7 and 8.8.
-
Integration in Coq startng from version 8.7 of:
- OCaml plugin (plugin for 8.6 still in the archive for backward compatibility)
ssreflect.v,ssrbool.v,ssrfun.vandssrtest/
-
Cleaning up the github repository: the math-comp repository is now dedicated to the released material (as in the present release). For instance, directories
real-closed/andodd-order/now have their own repository.
-
Library refactoring:
algCandssrnum. Libraryssrnum.vprovides an interfacenumClosedFieldType, which abstracts the theory of algebraic numbers. In particular,Re,Im,'i,conjC,n.-rootandsqrtC, previously defined in libraryalgC.v, are now part of this generic interface. In case of ambiguity, a cast to typealgC, of complex algebraic numbers, can be used to disambiguate via typing constraints. Some theory was thus made more generic, and the corresponding lemmas, previously defined in libraryalgC.v(e.g.conjCK) now feature an extra, non maximal implicit, parameter of typenumClosedFieldType. This could break some proofs. Every theorem fromssrnumthat used to be inalgCchanged statement. -
ltngtP,contra_eq,contra_neq,odd_opp,nth_iota
iter_in,finv_in,inv_f_in,finv_inj_in,fconnect_sym_in,iter_order_in,iter_finv_in,cycle_orbit_in,fpath_finv_in,fpath_finv_f_in,fpath_f_finv_inbig_allpairsuniqP, uniqPndec_factor_theorem,mul_bin_down,mul_bin_leftabstract_context(in ssreflect.v, now merged in Coq proper)
- Lemma
dvdn_factwas moved from libraryprime.vto librarydiv.v - `mul_Sm_binm -> mul_bin_diag
divn1->divz1(in intdiv)rootC->nthrootalgRe->RealgIm->ImalgCi->imaginaryCreshape_index_leq->reshape_leq
Major reorganization of the archive.
-
Files split into sub-directories:
ssreflect/,algebra/,fingroup/,solvable/,field/andcharacter/. In this way the user can decide to compile only the subset of the Mathematical Components library that is relevant to her. Note that this introduces a possible incompatibility for users of the previous version. A replacement scheme is suggested in the installation notes. -
The archive is now open and based on git. Public mirror at: https://github.com/math-comp/math-comp
-
Sources of the reference manual of the Ssreflect tactic language are also open and available at: https://github.com/math-comp/ssr-manual Pull requests improving the documentation are welcome.
conjC_closed->cfConjC_closedclass_transr->class_eqPcfclass_transl->cfclass_transrnontrivial_ideal->proper_idealzchar_orthonormalP->vchar_orthonormalP
seq_suborbit_in_transl,orbit_sym,orbit_trans,orbit_transl,orbit_transr,cfAut_char,cfConjC_char,invg_lcosets,lcoset_transl,lcoset_transr,rcoset_transl,rcoset_transr,mem2_last,bind_unless,unless_contra,all_and2,all_and3,all_and4,all_and5,ltr0_neq0,ltr_prod,Zisometry_of_iso
adhoc_seq_sub_choiceMixin,adhoc_seq_sub_[choice|fin]Typeorbit_in_eqP,cards_draws,cfAut_lin_char,cfConjC_lin_char,extend_cfConjC_subset,isometry_of_free,cfAutK,cfAutVK,lcoset_eqP,rcoset_eqP,class_eqP,gFsub_trans,gFnorms,gFchar_trans,gFnormal_trans,gFnorm_trans,mem2_seq1,dvdn_fact,prime_above,subKr,subrI,subIr,subr0_eq,divrI,divIr,divKr,divfI,divIf,divKf,impliesP,impliesPn,unlessL,unlessR,unless_sym,unlessP(coercion),classicW,ltr_prod_nat- Notation
\unless C, P
Split the archive in SSReflect and MathComp
-
With this release "ssreflect" has been split into two packages. The Ssreflect one contains the proof language (plugin for Coq) and a small set of core theory libraries about boolean, natural numbers, sequences, decidable equality and finite types. The Mathematical Components one contains advanced theory files covering a wider spectrum of mathematics.
-
With respect to version 1.4 the proof language got a few new features related to forward reasoning and some bug fixes. The Mathematical Components library features 16 new theory files and in particular: some field and Galois theory, advanced character theory and a construction of algebraic numbers.
-
With this release the plugin code received many bug fixes and the existing libraries relevant updates. This release also includes some new libraries on the following topics: rational numbers, divisibility of integers, F-algebras, finite dimensional field extensions and Euclidean division for polynomials over a ring.
-
The release includes a major code refactoring of the plugin for Coq 8.4. In particular a documented ML API to access the pattern matching facilities of Ssreflect from third party plugins has been introduced.
-
The tactic language has been extended with several new features, inspired by the five years of intensive use in our project. However we have kept the core of the language unchanged; the new library compiles with Ssreflect 1.2. Users of a Coq 8.2 toplevel statically linked with Ssreflect 1.2 need to comment the Declare ML Module "ssreflect" line in ssreflect.v to properly compile the 1.3 library. We will continue supporting new releases of Coq in due course.
-
The new library adds general linear algebra (matrix rank, subspaces) and all of the advanced finite group that was developed in the course of completing the Local Analysis part of the Odd Order Theorem, starting from the Sylow and Hall theorems and including full structure theorems for abelian, extremal and extraspecial groups, and general (modular) linear representation theory.
No change log
First public release