lean4-htt/tests/lean/run/sizeof2.lean
2017-03-09 18:41:19 -08:00

28 lines
438 B
Text

open tactic
example : sizeof (λ a : nat, a) = 0 :=
rfl
example : sizeof Type = 0 :=
rfl
example : sizeof Prop = 0 :=
rfl
example (p : Prop) (H : p) : sizeof H = 0 :=
rfl
example (A : Type) (a b : A) : sizeof [a, b] = 3 :=
rfl
example : sizeof [(1:nat), 4] = 8 :=
rfl
example : sizeof [tt, ff, tt] = 7 :=
rfl
set_option pp.implicit true
#check sizeof Prop
#check sizeof [tt, ff, tt]
#check λ (A : Type) (a b : A), sizeof [a, b]