lean4-htt/tests/lean/run/simpArith1.lean
Leonardo de Moura 2c00823da9 test: simp_arith
2022-02-27 09:01:52 -08:00

18 lines
431 B
Text

theorem ex1 : a + b < b + 1 + a + c := by
simp (config := { arith := true })
theorem ex2 : a + b < b + 1 + a + c := by
simp_arith
theorem ex3 : a + (fun x => x) b < b + 1 + a + c := by
simp_arith
theorem ex4 : a + (fun x => x) b < b + 1 + a + c := by
simp_arith (config := { beta := false })
trace_state
simp_arith
theorem ex5 (h : a + d + b > b + 1 + (a + (c + c) + d)) : False := by
simp_arith at h
#print ex5