Files
NNG/test/ne.lean
2023-10-28 22:01:03 +02:00

15 lines
310 B
Lean4
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import Game.Metadata
example (a : ) : a = 0 ¬ (a = 0) := by
by_cases h : a = 0
· left
exact h
· right
-- here the goal should show `h : a ≠ 0`
exact h
-- set_option pp.all true in
example (a : ) : ¬ (a = 0) a 0 := by
-- both should be displayed the same way
rfl