lean4-htt/tests/lean/emptyc.lean
Leonardo de Moura ff9b562e66 chore: move test
2020-09-11 14:40:21 -07:00

22 lines
256 B
Text

new_frontend
structure A :=
(x : Nat := 0)
def foo : A :=
{}
theorem ex1 : foo = { x := 0 } :=
rfl
theorem ex2 : foo.x = 0 :=
rfl
instance : HasEmptyc A :=
⟨{ x := 10 }⟩
def boo : A :=
{} -- this HasEmptyc.emptyc
theorem ex3 : boo.x = 10 :=
rfl