Files
NNG/Game/Tactic/cases_test.lean
Kevin Buzzard 3648e91933 fixes
2023-10-14 17:29:11 +01:00

21 lines
401 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.Levels.LessOrEqual
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