-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add demo in Lean/blueprint and misc fixes
- Loading branch information
Showing
5 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
import Mathlib.Topology.Basic | ||
|
||
#check TopologicalSpace | ||
|
||
def one := 1 | ||
|
||
def two := 2 | ||
|
||
theorem one_plus_one_eq_two : one + one = two := by | ||
rfl | ||
|
||
def one_plus_one_eq_two_with_def : Prop := one + one = two |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
\chapter{Introduction} | ||
\label{chap:intro} | ||
|
||
Formalisation of the proof of the 'germs' version of the reconstruction theorem. | ||
|
||
Below are some demos of how to refer to Lean definitions/theorems in the blueprint. | ||
|
||
\begin{definition}[One] | ||
\label{one} | ||
\lean{one} | ||
\leanok | ||
|
||
one is 1. | ||
|
||
\end{definition} | ||
|
||
\begin{definition}[Two] | ||
\label{two} | ||
\lean{two} | ||
\leanok | ||
|
||
two is 2. | ||
|
||
\end{definition} | ||
|
||
\begin{lemma}[One plus one is two] | ||
\label{one_plus_one_eq_two} | ||
\lean{one_plus_one_eq_two} | ||
\uses{one, two} | ||
\leanok | ||
|
||
one + one = two | ||
|
||
\end{lemma} | ||
|
||
\begin{proof} | ||
\leanok | ||
It is obvious. | ||
\end{proof} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters