custom cases tactic

This commit is contained in:
joneugster
2023-10-14 21:12:57 +02:00
parent 20bc9fe61d
commit 21a36dc8d5
4 changed files with 89 additions and 32 deletions

21
test/cases.lean Normal file
View File

@@ -0,0 +1,21 @@
import Game.Tactic.Cases
import Game.MyNat.Inequality
namespace MyNat
example (P Q : Prop) (h : P Q) : False := by
cases h with hp hq
· sorry -- hp : P
· sorry -- hq : Q
example (a b : ) (h : a b) : False := by
cases h with c hc
-- hc: b = a + c
sorry
-- not working yet
example (a : ) : a = a := by
cases a with d
-- get MyNat.zero because we used rec not rec' :-(
· sorry
· sorry