lean4-htt/doc/examples/Certora2022/ex1.lean
2022-11-21 17:02:28 -08:00

22 lines
234 B
Text

/- "Hello world" -/
#eval "hello" ++ " " ++ "world"
-- "hello world"
#check true
-- Bool
def x := 10
#eval x + 2
-- 12
def double (x : Int) := 2*x
#eval double 3
-- 6
#check double
-- Int → Int
example : double 4 = 8 := rfl