Files
NNG/test/cases.lean
2024-02-29 17:19:01 +01:00

41 lines
555 B
Lean4
Raw 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.Tactic.Cases
import Game.MyNat.Inequality
namespace MyNat
example (P Q : Prop) (h : P Q) : False := by
cases h with hp hq
· /-
case inl
P Q : Prop
hp : P
⊢ False
-/
sorry
· /-
case inr
P Q : Prop
hq : Q
⊢ False
-/
sorry
example (a b : ) (h : a b) : False := by
cases h with c hc
/-
case intro
a b c :
hc : b = a + c
⊢ False
-/
sorry
example (a : ) : a = a := by
cases a with d
· /-
case zero
⊢ 0 = 0
-/
sorry
· sorry