Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/MathlibTest/Tactic/     Datei vom 15.10.2026 mit Größe 542 B image not shown  

Quelle  ENatToNat.lean   Sprache: Lean

 

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

Messung
CHZG
9410010097

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland