Zulip Chat Archive

Stream: lean4

Topic: proving boolean equality


David Renshaw (May 30 2021 at 15:47):

How do I prove a boolean equality such as

example (y : Nat) : y == y :=
  by admit

?

Mario Carneiro (May 30 2021 at 15:47):

there should be an eq_of_beq theorem

Mario Carneiro (May 30 2021 at 15:49):

Nat.eqOfBeqEqTrue exists but goes in the wrong direction (x == y -> x = y). You can derive it from Nat.neOfBeqEqFalse though

David Renshaw (May 30 2021 at 15:51):

Thanks. Looks like my problems also go away if I just switch to using propositional equality.


Last updated: Dec 20 2023 at 11:08 UTC