You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-20Lines changed: 13 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,18 +21,17 @@ The definitions, theorems and proofs in this repository are (mostly) taken from
21
21
22
22
### The target
23
23
24
-
The formal system which we are using as a target is [Lean 4](https://github.com/leanprover/lean4). Lean is a dependently typed theorem prover and programming language based on the Calculus of Inductive Constructions. It is being developed at AWS and Microsoft Research by Leonardo de Moura and his team.
24
+
The formal system which we are using as a target is [Lean 4](https://lean-lang.org). Lean is a dependently typed theorem prover and programming language based on the Calculus of Inductive Constructions. It is being developed at AWS and Microsoft Research by Leonardo de Moura and his team.
25
25
26
-
Our project is backed by [mathlib](https://github.com/leanprover-community/mathlib4), the major classical maths library written in Lean 4.
26
+
Our project is backed by [mathlib](https://leanprover-community.github.io), the major classical maths library written in Lean 4.
27
27
28
28
## Content
29
29
30
-
The project contains
31
-
32
-
***Prerequisites** to be upstreamed to mathlib: Lemmas that belong in existing mathlib files and background theories. Those are located in the `Mathlib` subfolder.
33
-
***Formal translations of example sheets**: Every course in Cambridge comes with 3 or 4 "example sheets", which are lists of questions/exercises/problems for the students to solve. Those are located in the `ExampleSheets` subfolder.
34
-
***Theory developments**: Formalisation of the courses per se. The mathlib philosophy of proving the most general result accessible applies here as well. This means that not all proofs follow the lecture notes, and might instead derive a result from the lectures from a more general theorem. Those make up the other subfolders and standalone lemmas.
35
-
***Archived results**: It sometimes happens in mathlib that a long argument gets replaced by a shorter one, with a different proof. When the long argument was proved in a lecture, we salvage it to `LeanCamCombi` for conservation purposes.
30
+
The Lean code is located within the `LeanCamCombi` folder. Within it, one can find:
31
+
* One subfolder for each course, containing **formal lecture transcripts** in the files named `Lecture1`, `Lecture2`, etc... and **formal example sheet translations** in the files named `ExampleSheet1`, `ExampleSheet2`, etc... We follow the mathlib philosophy of aiming for the most general result within reach. This means that not all proofs follow the lecture notes, and might instead derive a result proved in the lectures from a general theorem. Those general theorems and prerequisite lemmas are proved in other folders. Read below.
32
+
* A `Mathlib` subfolder for the **prerequisites** to be upstreamed to mathlib. Lemmas that belong in an existing mathlib file `Mathlib.X` will be located in `LeanCamCombi.Mathlib.X`. We aim to preserve the property that `LeanCamCombi.Mathlib.X` only imports `Mathlib.X` and files of the form `LeanCamCombi.Mathlib.Y` where `Mathlib.X` (transitively) imports `Mathlib.Y`. Prerequisites that do not belong in any existing mathlib file are placed in subtheory folders. See below.
33
+
* One folder for each **theory development**. The formal lecture transcripts only contain what was stated in the lectures, but sometimes it makes sense for a theory to be developed as a whole before being incorporated by the prerequisites or imported in the formal lecture transcripts.
34
+
* An `Archive` subfolder for **archived results**. It sometimes happens in mathlib that a long argument gets replaced by a shorter one, with a different proof. When the long argument was proved in a lecture, we salvage it to `LeanCamCombi` for conservation purposes.
36
35
37
36
### Content under development
38
37
@@ -78,19 +77,13 @@ The following topics have been upstreamed to mathlib and no longer live in LeanC
78
77
79
78
### Getting the project
80
79
81
-
At the moment, the recommended way of browsing this repository is by using a Lean development environment. Crucially, this will allow you to introspect Lean's "Goal state" during proofs, and easily jump to definitions or otherwise follow paths through the code.
80
+
To build the Lean files of this project, you need to have a working version of Lean.
81
+
See [the installation instructions](https://leanprover-community.github.io/get_started.html) (under Regular install).
82
+
Alternatively, click on the button below to open a Gitpod workspace containing the project.
82
83
83
-
We are looking into ways to setup an online interactive website that will provide the same experience without the hassle of installing a complete Lean development environment.
84
+
[](https://gitpod.io/#https://github.com/YaelDillies/LeanAPAP)
84
85
85
-
For the time being: please use the [installation instructions](https://leanprover-community.github.io/get_started) to install Lean and a supporting toolchain. After that, download and open a copy of the repository by executing the following commands in a terminal:
If you are interested, here are [detailed instructions on how to work with Lean projects](https://leanprover-community.github.io/install/project).
86
+
In either case, run `lake exe cache get` and then `lake build` to build the project.
94
87
95
88
### Browsing the project
96
89
@@ -101,6 +94,6 @@ With the project opened in VScode, you are all set to start exploring the code.
101
94
102
95
### Contributing
103
96
104
-
This project is open to contribution. You are in fact encouraged to have a look at the example sheet formalisations and try your hand at one of the problems. If you manage to prove one of them, please open a PR!
97
+
**This project is open to contribution**. You are in fact encouraged to have a look at the example sheet translations and try your hand at one of the problems. If you manage to prove one of them, please open a PR!
105
98
106
99
If you want to contribute a theorem or theory development, please open a PR! Note however that the standard of code is pretty high and that is not because you have formalised a concept/proved a theorem that it can be included into LeanCamCombi as is. Nonetheless I am willing to review your code and put it in shape for incorporation.
Copy file name to clipboardExpand all lines: docs/index.md
+13-20Lines changed: 13 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,18 +28,17 @@ The definitions, theorems and proofs in this repository are (mostly) taken from
28
28
29
29
### The target
30
30
31
-
The formal system which we are using as a target is [Lean 4](https://github.com/leanprover/lean4). Lean is a dependently typed theorem prover and programming language based on the Calculus of Inductive Constructions. It is being developed at AWS and Microsoft Research by Leonardo de Moura and his team.
31
+
The formal system which we are using as a target is [Lean 4](https://lean-lang.org). Lean is a dependently typed theorem prover and programming language based on the Calculus of Inductive Constructions. It is being developed at AWS and Microsoft Research by Leonardo de Moura and his team.
32
32
33
-
Our project is backed by [mathlib](https://github.com/leanprover-community/mathlib4), the major classical maths library written in Lean 4.
33
+
Our project is backed by [mathlib](https://leanprover-community.github.io), the major classical maths library written in Lean 4.
34
34
35
35
## Content
36
36
37
-
The project contains
38
-
39
-
***Prerequisites** to be upstreamed to mathlib: Lemmas that belong in existing mathlib files and background theories. Those are located in the `Mathlib` subfolder.
40
-
***Formal translations of example sheets**: Every course in Cambridge comes with 3 or 4 "example sheets", which are lists of questions/exercises/problems for the students to solve. Those are located in the `ExampleSheets` subfolder.
41
-
***Theory developments**: Formalisation of the courses per se. The mathlib philosophy of proving the most general result accessible applies here as well. This means that not all proofs follow the lecture notes, and might instead derive a result from the lectures from a more general theorem. Those make up the other subfolders and standalone lemmas.
42
-
***Archived results**: It sometimes happens in mathlib that a long argument gets replaced by a shorter one, with a different proof. When the long argument was proved in a lecture, we salvage it to `LeanCamCombi` for conservation purposes. There is currently no archived result.
37
+
The Lean code is located within the `LeanCamCombi` folder. Within it, one can find:
38
+
* One subfolder for each course, containing **formal lecture transcripts** in the files named `Lecture1`, `Lecture2`, etc... and **formal example sheet translations** in the files named `ExampleSheet1`, `ExampleSheet2`, etc... We follow the mathlib philosophy of aiming for the most general result within reach. This means that not all proofs follow the lecture notes, and might instead derive a result proved in the lectures from a general theorem. Those general theorems and prerequisite lemmas are proved in other folders. Read below.
39
+
* A `Mathlib` subfolder for the **prerequisites** to be upstreamed to mathlib. Lemmas that belong in an existing mathlib file `Mathlib.X` will be located in `LeanCamCombi.Mathlib.X`. We aim to preserve the property that `LeanCamCombi.Mathlib.X` only imports `Mathlib.X` and files of the form `LeanCamCombi.Mathlib.Y` where `Mathlib.X` (transitively) imports `Mathlib.Y`. Prerequisites that do not belong in any existing mathlib file are placed in subtheory folders. See below.
40
+
* One folder for each **theory development**. The formal lecture transcripts only contain what was stated in the lectures, but sometimes it makes sense for a theory to be developed as a whole before being incorporated by the prerequisites or imported in the formal lecture transcripts.
41
+
* An `Archive` subfolder for **archived results**. It sometimes happens in mathlib that a long argument gets replaced by a shorter one, with a different proof. When the long argument was proved in a lecture, we salvage it to `LeanCamCombi` for conservation purposes.
43
42
44
43
### Content under development
45
44
@@ -94,19 +93,13 @@ The following topics have been upstreamed to mathlib and no longer live in LeanC
94
93
95
94
### Getting the project
96
95
97
-
At the moment, the recommended way of browsing this repository is by using a Lean development environment. Crucially, this will allow you to introspect Lean's "Goal state" during proofs, and easily jump to definitions or otherwise follow paths through the code.
96
+
To build the Lean files of this project, you need to have a working version of Lean.
97
+
See [the installation instructions](https://leanprover-community.github.io/get_started.html) (under Regular install).
98
+
Alternatively, click on the button below to open a Gitpod workspace containing the project.
98
99
99
-
We are looking into ways to setup an online interactive website that will provide the same experience without the hassle of installing a complete Lean development environment.
100
+
[](https://gitpod.io/#https://github.com/YaelDillies/LeanAPAP)
100
101
101
-
For the time being: please use the [installation instructions](https://leanprover-community.github.io/get_started) to install Lean and a supporting toolchain. After that, download and open a copy of the repository by executing the following commands in a terminal:
If you are interested, here are [detailed instructions on how to work with Lean projects](https://leanprover-community.github.io/install/project).
102
+
In either case, run `lake exe cache get` and then `lake build` to build the project.
110
103
111
104
### Browsing the project
112
105
@@ -117,6 +110,6 @@ With the project opened in VScode, you are all set to start exploring the code.
117
110
118
111
### Contributing
119
112
120
-
This project is open to contribution. You are in fact encouraged to have a look at the example sheet formalisations and try your hand at one of the problems. If you manage to prove one of them, please open a PR!
113
+
**This project is open to contribution**. You are in fact encouraged to have a look at the example sheet translations and try your hand at one of the problems. If you manage to prove one of them, please open a PR!
121
114
122
115
If you want to contribute a theorem or theory development, please open a PR! Note however that the standard of code is pretty high and that is not because you have formalised a concept/proved a theorem that it can be included into LeanCamCombi as is. Nonetheless I am willing to review your code and put it in shape for incorporation.
0 commit comments