2014-12-23 17:35:14 -08:00
|
|
|
|
import logic data.num
|
2014-10-19 08:40:56 -07:00
|
|
|
|
open num
|
|
|
|
|
constant b : num
|
|
|
|
|
check b + b + b
|
|
|
|
|
check true ∧ false ∧ true
|
|
|
|
|
check (true ∧ false) ∧ true
|
2015-10-13 18:35:16 -07:00
|
|
|
|
check (2:num) + (2 + 2)
|
|
|
|
|
check (2 + 2) + (2:num)
|
|
|
|
|
check (1:num) = (2 + 3)*2
|
|
|
|
|
check (2:num) + 3 * 2 = 3 * 2 + 2
|
2014-10-19 08:40:56 -07:00
|
|
|
|
check (true ∨ false) = (true ∨ false) ∧ true
|
|
|
|
|
check true ∧ (false ∨ true)
|
|
|
|
|
constant A : Type₁
|
|
|
|
|
constant a : A
|
|
|
|
|
notation 1 := a
|
|
|
|
|
check a
|
|
|
|
|
open nat
|
|
|
|
|
check ℕ → ℕ
|