lean4-htt/tests/lean/wildcardAlt.lean
Leonardo de Moura 2a67a49f31
chore: simp_arith has been deprecated (#7043)
This PR deprecates the tactics `simp_arith`, `simp_arith!`,
`simp_all_arith` and `simp_all_arith!`. Users can just use the `+arith`
option.
2025-02-12 03:55:45 +00:00

26 lines
509 B
Text

inductive Foo where
| c1 (x : Nat) | c2 | c3 | c4
def bla : Foo → Nat
| .c1 x => x + 1
| _ => 2
example (x : Foo) : bla x > 0 := by
cases x with
| _ => decide -- Error
| c1 => decide
example (x : Foo) : bla x > 0 := by
induction x with
| _ => decide -- Error
| c1 => decide
example (x : Foo) : bla x > 0 := by
cases x with
| c1 x => simp +arith [bla]
| _ => decide
example (x : Foo) : bla x > 0 := by
induction x with
| c1 x => simp +arith [bla]
| _ => decide