Zulip Chat Archive

Stream: general

Topic: Rookie question


Frank Mobler (May 22 2018 at 05:26):

I'm stumped proving example {V : Type}{n : V} : n ∈ ({n} : set V). Please without tactics first. I want to see how to construct proof terms explicitly for types like this.

Mario Carneiro (May 22 2018 at 05:34):

or.inl rfl is a proof term for that

Mario Carneiro (May 22 2018 at 05:35):

because the goal is defeq to n = n \/ false:

example {V : Type} {n : V} : n ∈ ({n} : set V) :=
show n = n ∨ false, from or.inl rfl

Frank Mobler (May 22 2018 at 05:37):

Aha. This helps a lot. Light bulbs going on. Thanks.


Last updated: Dec 20 2023 at 11:08 UTC