Skip to content

Commit

Permalink
Merge branch 'cornmaster' into allfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aa755 committed Apr 19, 2016
2 parents 6194dda + e9162ea commit a6c619c
Show file tree
Hide file tree
Showing 328 changed files with 1,499 additions and 8,371 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,3 +1,6 @@
Make
Makefile
Makefile.bak
*.vo
*.d
*.glob
Expand Down
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

4 changes: 4 additions & 0 deletions Make.in
@@ -0,0 +1,4 @@
# Library name
-R . CoRN

# Coq files
53 changes: 0 additions & 53 deletions README

This file was deleted.

40 changes: 40 additions & 0 deletions README.md
@@ -0,0 +1,40 @@
# C-CoRN
> The Coq Constructive Repository at Nijmegen.
## Install with OPAM
Make sure that you added the [Coq repository](http://coq.io/opam/):

opam repo add coq-released https://coq.inria.fr/opam/released

and run:

opam install coq-corn

## Install from source
### Prerequisites
This version of C-CoRN is known to compile with:

* Coq 8.4pl4
* SCons 1.2 or make

### Git checkout and submodules
C-CoRN depends on [Math Classes](https://github.com/math-classes/math-classes), which is a library of abstract interfaces for
mathematical structures that is heavily based on Coq's new type classes.

### Building C-CoRN
C-CoRN uses [SCons](http://www.scons.org/) for its build infrastructure. SCons is a modern
Python-based Make-replacement.

To build C-CoRN with SCons say `scons` to build the whole library, or
`scons some/module.vo` to just build `some/module.vo` (and its dependencies).

In addition to common Make options like `-j N` and `-k`, SCons
supports some useful options of its own, such as `--debug=time`, which
displays the time spent executing individual build commands.

scons -c replaces Make clean

For more information, see the [SCons documentation](http://www.scons.org/). Make is still supported.

### Building documentation
To build CoqDoc documentation, say `scons coqdoc`.
10 changes: 4 additions & 6 deletions SConstruct
Expand Up @@ -21,21 +21,19 @@ while nodes:
nodes += glob.glob(node + '/*')

includes = ' '.join(map(lambda x: '-I ' + x, dirs[1:]))
Rs = '-R . CoRN -R math-classes/src MathClasses'
Rs = '-R . CoRN'
coqcmd = 'coqc ${str(SOURCE)[:-2]} ' + Rs

env['COQFLAGS'] = Rs

for node in vs: env.Coq(node, COQCMD=coqcmd)

mc_vs, mc_vos, mc_globs = env.SConscript(dirs='math-classes/src')

os.system('coqdep ' + ' '.join(map(str, vs+mc_vs)) + ' ' + includes + ' ' + Rs + ' > deps')
os.system('coqdep ' + ' '.join(map(str, vs)) + ' ' + includes + ' ' + Rs + ' > deps')
ParseDepends('deps')

open('coqidescript', 'w').write('#!/bin/sh\ncoqide ' + Rs + ' $@ \n')
os.chmod('coqidescript', 0755)

env.CoqDoc(env.Dir('coqdoc'), vs+mc_vs, COQDOCFLAGS='-utf8 --toc -g --no-lib-name --coqlib http://coq.inria.fr/library')
env.CoqDoc(env.Dir('coqdoc'), vs, COQDOCFLAGS='-utf8 --toc -g --no-lib-name --coqlib http://coq.inria.fr/library')

#env.Command('deps.dot', [], 'tools/DepsToDot.hs < deps > $TARGET')
#env.Command('deps.dot', [], 'tools/DepsToDot.hs < deps > $TARGET')
14 changes: 7 additions & 7 deletions algebra/Bernstein.v
Expand Up @@ -19,13 +19,13 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE PROOF OR THE USE OR OTHER DEALINGS IN THE PROOF.
*)

Require Export CPolynomials.
Require Import CSums.
Require Import Rational.
Require Import Qordfield.
Require Import COrdFields2.
Require Import CRing_Homomorphisms.
Require Vector.
Require Export CoRN.algebra.CPolynomials.
Require Import CoRN.algebra.CSums.
Require Import CoRN.tactics.Rational.
Require Import CoRN.model.ordfields.Qordfield.
Require Import CoRN.algebra.COrdFields2.
Require Import CoRN.algebra.CRing_Homomorphisms.
Require Coq.Vectors.Vector.
Export Vector.VectorNotations.

Set Implicit Arguments.
Expand Down
2 changes: 1 addition & 1 deletion algebra/CAbGroups.v
Expand Up @@ -33,7 +33,7 @@
* with this work; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*)
Require Export CGroups.
Require Export CoRN.algebra.CGroups.

Section Abelian_Groups.

Expand Down
4 changes: 2 additions & 2 deletions algebra/CAbMonoids.v
Expand Up @@ -33,9 +33,9 @@
* with this work; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*)
Require Export CMonoids.
Require Export CoRN.algebra.CMonoids.

Require Import SetoidPermutation Setoid Morphisms.
Require Import CoRN.util.SetoidPermutation Coq.Setoids.Setoid Coq.Classes.Morphisms.

Section Abelian_Monoids.

Expand Down
2 changes: 1 addition & 1 deletion algebra/CFields.v
Expand Up @@ -40,7 +40,7 @@
(** printing {1/} %\ensuremath{\frac1\cdot}% #1/# *)
(** printing [/]?[//] %\ensuremath{/?\ddagger}% #/?&Dagger;# *)

Require Export CRings.
Require Export CoRN.algebra.CRings.
Set Automatic Introduction.

Transparent sym_eq.
Expand Down
4 changes: 2 additions & 2 deletions algebra/CGroups.v
Expand Up @@ -40,8 +40,8 @@
(** printing {-} %\ensuremath-% #&minus;# *)
(** printing {--} %\ensuremath-% #&minus;# *)

Require Import CornTac.
Require Export CMonoids.
Require Import CoRN.tactics.CornTac.
Require Export CoRN.algebra.CMonoids.
Set Automatic Introduction.

(* Begin_SpecReals *)
Expand Down
12 changes: 6 additions & 6 deletions algebra/CMonoids.v
Expand Up @@ -36,12 +36,12 @@

(** printing [0] %\ensuremath{\mathbf0}% #0# *)

Require Export Euclid.
Require Export Cmod.
Require Export CSemiGroups.
Require Export csetoid_rewrite.
Require Export Nsec.
Require Import SetoidPermutation Setoid Morphisms.
Require Export Coq.Arith.Euclid.
Require Export CoRN.model.Zmod.Cmod.
Require Export CoRN.algebra.CSemiGroups.
Require Export CoRN.tactics.csetoid_rewrite.
Require Export CoRN.model.structures.Nsec.
Require Import CoRN.util.SetoidPermutation Coq.Setoids.Setoid Coq.Classes.Morphisms.

(* Begin_SpecReals *)

Expand Down
2 changes: 1 addition & 1 deletion algebra/COrdAbs.v
Expand Up @@ -34,7 +34,7 @@
* with this work; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*)
Require Export COrdFields2.
Require Export CoRN.algebra.COrdFields2.

(**
** Properties of [AbsSmall]
Expand Down
2 changes: 1 addition & 1 deletion algebra/COrdCauchy.v
Expand Up @@ -33,7 +33,7 @@
* with this work; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*)
Require Export COrdAbs.
Require Export CoRN.algebra.COrdAbs.
Set Automatic Introduction.

(* Begin_SpecReals *)
Expand Down
6 changes: 3 additions & 3 deletions algebra/COrdFields.v
Expand Up @@ -51,9 +51,9 @@
(** printing TwentyFourNZ %\ensuremath{\mathbf{24}}% #24# *)
(** printing FortyEightNZ %\ensuremath{\mathbf{48}}% #48# *)

Require Export FieldReflection.
Require Export CSetoids.
Require Export Rational.
Require Export CoRN.tactics.FieldReflection.
Require Export CoRN.algebra.CSetoids.
Require Export CoRN.tactics.Rational.

(* ORDERED FIELDS *)

Expand Down
2 changes: 1 addition & 1 deletion algebra/COrdFields2.v
Expand Up @@ -33,7 +33,7 @@
* with this work; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*)
Require Export COrdFields.
Require Export CoRN.algebra.COrdFields.

(** printing one_div_succ %\ensuremath{\frac1{\cdot+1}}% *)
(** printing Half %\ensuremath{\frac12}% #&frac12;# *)
Expand Down
8 changes: 4 additions & 4 deletions algebra/CPoly_ApZero.v
Expand Up @@ -34,10 +34,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*)

Require Export CPoly_Degree.
Require Export COrdFields2.
Require Import Morphisms Permutation.
Require ne_list.
Require Export CoRN.algebra.CPoly_Degree.
Require Export CoRN.algebra.COrdFields2.
Require Import Coq.Classes.Morphisms Coq.Sorting.Permutation.
Require MathClasses.implementations.ne_list.
Import ne_list.notations.

Set Automatic Introduction.
Expand Down
6 changes: 3 additions & 3 deletions algebra/CPoly_Degree.v
Expand Up @@ -34,9 +34,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*)

Require Export CPoly_NthCoeff.
Require Export CFields.
Require Export Rational.
Require Export CoRN.algebra.CPoly_NthCoeff.
Require Export CoRN.algebra.CFields.
Require Export CoRN.tactics.Rational.
Set Automatic Introduction.

(**
Expand Down
6 changes: 3 additions & 3 deletions algebra/CPoly_NthCoeff.v
Expand Up @@ -34,9 +34,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*)

Require Export CPolynomials.
Require Import Morphisms.
Require Import CRings.
Require Export CoRN.algebra.CPolynomials.
Require Import Coq.Classes.Morphisms.
Require Import CoRN.algebra.CRings.

(**
* Polynomials: Nth Coefficient
Expand Down
4 changes: 2 additions & 2 deletions algebra/CPolynomials.v
Expand Up @@ -40,8 +40,8 @@
(** printing RX %\ensuremath{R[x]}% #R[x]# *)
(** printing FX %\ensuremath{F[x]}% #F[x]# *)

Require Import CRing_Homomorphisms.
Require Import Rational.
Require Import CoRN.algebra.CRing_Homomorphisms.
Require Import CoRN.tactics.Rational.

(**
* Polynomials
Expand Down
2 changes: 1 addition & 1 deletion algebra/CRing_Homomorphisms.v
Expand Up @@ -46,7 +46,7 @@
(** printing [1] %\ensuremath{\mathbf1}% #1# *)
(** printing phi %\ensuremath{\phi}% *)

Require Export CRings.
Require Export CoRN.algebra.CRings.
Set Automatic Introduction.

(**
Expand Down
2 changes: 1 addition & 1 deletion algebra/CRing_as_Ring.v
@@ -1,5 +1,5 @@

Require Export CRings Ring.
Require Export CoRN.algebra.CRings Coq.setoid_ring.Ring.
Definition CRing_Ring(R:CRing):(ring_theory (@cm_unit R) (@cr_one R) (@csg_op R) (@cr_mult R) (fun x y => x [-] y) (@cg_inv R) (@cs_eq R)).
Proof.
split;algebra.
Expand Down
6 changes: 3 additions & 3 deletions algebra/CRings.v
Expand Up @@ -53,9 +53,9 @@
(** printing TwentyFour %\ensuremath{\mathbf{24}}% #24# *)
(** printing FortyEight %\ensuremath{\mathbf{48}}% #48# *)

Require Import CornTac.
Require Export CSums.
Require Import CAbMonoids Permutation SetoidPermutation Setoid Morphisms.
Require Import CoRN.tactics.CornTac.
Require Export CoRN.algebra.CSums.
Require Import CoRN.algebra.CAbMonoids Coq.Sorting.Permutation CoRN.util.SetoidPermutation Coq.Setoids.Setoid Coq.Classes.Morphisms.

Transparent sym_eq.
Transparent f_equal.
Expand Down
2 changes: 1 addition & 1 deletion algebra/CSemiGroups.v
Expand Up @@ -37,7 +37,7 @@
(** printing [+] %\ensuremath+% #+# *)
(** printing {+} %\ensuremath+% #+# *)

Require Export CSetoidInc.
Require Export CoRN.algebra.CSetoidInc.

(* Begin_SpecReals *)

Expand Down
2 changes: 1 addition & 1 deletion algebra/CSetoidFun.v
Expand Up @@ -34,7 +34,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*)

Require Export CSetoids.
Require Export CoRN.algebra.CSetoids.

(**
** The Setoid of Setoid functions
Expand Down
2 changes: 1 addition & 1 deletion algebra/CSetoidInc.v
Expand Up @@ -36,7 +36,7 @@

(** printing included %\ensuremath{\subseteq}% #&sube;# *)

Require Export CSetoidFun.
Require Export CoRN.algebra.CSetoidFun.

Section inclusion.

Expand Down
8 changes: 4 additions & 4 deletions algebra/CSetoids.v
Expand Up @@ -50,10 +50,10 @@ Definition of a constructive setoid with apartness,
i.e.%\% a set with an equivalence relation and an apartness relation compatible with it.
*)

Require Import CornTac.
Require Export CLogic.
Require Export Step.
Require Export RSetoid.
Require Import CoRN.tactics.CornTac.
Require Export CoRN.logic.CLogic.
Require Export CoRN.tactics.Step.
Require Export CoRN.algebra.RSetoid.

Delimit Scope corn_scope with corn.
Open Scope corn_scope.
Expand Down
4 changes: 2 additions & 2 deletions algebra/CSums.v
Expand Up @@ -40,8 +40,8 @@
(** printing Sum %\ensuremath{\sum}% #&sum;# *)
(** printing Sumx %\ensuremath{\sum'}% #&sum;'&*)

Require Export CAbGroups.
Require Export Peano_dec.
Require Export CoRN.algebra.CAbGroups.
Require Export Coq.Arith.Peano_dec.

(**
* Sums
Expand Down

0 comments on commit a6c619c

Please sign in to comment.