Main intro file
This commit is contained in:
commit
00a8b5b605
1 changed files with 16 additions and 0 deletions
16
intro.lean
Normal file
16
intro.lean
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
|
||||||
|
|
||||||
|
def hello : String := "Hello"
|
||||||
|
|
||||||
|
def add1 (n : Nat) : Nat := n + 1
|
||||||
|
|
||||||
|
def maximum (n : Nat) (k : Nat) : Nat :=
|
||||||
|
if n < k then
|
||||||
|
k
|
||||||
|
else n
|
||||||
|
|
||||||
|
def PStr : Type := String
|
||||||
|
|
||||||
|
def OnePlusOneIsTwo : Prop := 1 + 1 = 2
|
||||||
|
|
||||||
|
theorem onePlusOneIsTwo : OnePlusOneIsTwo := rfl
|
Loading…
Add table
Add a link
Reference in a new issue