lean4-htt/tests/lean/emptyc.lean
2020-10-27 18:29:19 -07:00

19 lines
214 B
Text

structure A :=
(x : Nat := 0)
def foo : A :=
{}
theorem ex1 : foo = { x := 0 } :=
rfl
theorem ex2 : foo.x = 0 :=
rfl
instance : EmptyCollection A :=
⟨{ x := 10 }⟩
def boo : A :=
{} -- this is ambiguous