custom cases tactic
This commit is contained in:
21
test/cases.lean
Normal file
21
test/cases.lean
Normal 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
|
||||
Reference in New Issue
Block a user