lean4-htt/tests/lean/run/foApprox.lean
2022-07-21 14:05:47 -07:00

12 lines
265 B
Text

def f : Prop → Prop := id
class Foo (foo : Prop → Prop) where
l : x → foo x
instance : Foo f where
l := by simp_all [f]
theorem test' (h : x = True) : f x := by
have _ := True
apply Foo.l -- `?foo ?x =?= [mdata noImplicitLambda:1 f x]`
simp [h]