This PR deprecates the tactics `simp_arith`, `simp_arith!`, `simp_all_arith` and `simp_all_arith!`. Users can just use the `+arith` option.
26 lines
509 B
Text
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
|