pretty-printer for not equal

This commit is contained in:
joneugster
2023-10-28 22:00:41 +02:00
parent b24987fc19
commit 14ce186239
3 changed files with 30 additions and 0 deletions

14
test/ne.lean Normal file
View File

@@ -0,0 +1,14 @@
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