Files
NNG/test/cases.lean
2023-10-14 21:13:06 +02:00

22 lines
424 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
· 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