module
import Mathlib.Tactic.ENatToNat
example (a b : ENat) (h : a = b) : a - b = b - a := by
enat_to_nat
lia
example (a b : ENat) (h : a ≤ b) : a - b < b + 1 := by
enat_to_nat
lia
example (a b : ENat) (h : a ≤ b) : a - 2 * b ≤ b + 1 := by
enat_to_nat
lia
example (a b c : ENat) (hab : a ≥ b) (hbc : b ≥ c) : a ≥ c := by
enat_to_nat
lia
example (a b : ENat) (h : a = b) : a - b = b - a := by
-- to test if the tactic works with inaccessible names
let a : ℤ := 42
let b : ℤ := 32
enat_to_nat
lia
¤ Dauer der Verarbeitung: 0.15 Sekunden
¤
*© Formatika GbR, Deutschland