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

Quelle  PNatToNat.lean   Sprache: Lean

 

module
import Mathlib.Tactic.PNatToNat

example (a b : PNat) (h : a < b) : 1 < b := by
  pnat_to_nat
  lia

example (a b : PNat) (h : a = b) : b = a := by
  -- to test if the tactic works with inaccessible names
  let a : ℤ := 42
  pnat_to_nat
  lia

example (a b : PNat) (h : a < b) : 1 < b := by
  have := a.pos
  pnat_to_nat
  lia

Messung
CHZG
9310010097

¤ Dauer der Verarbeitung: 0.1 Sekunden  ¤

*© Formatika GbR, Deutschland