pnat_to_nat
#
This file implements the pnat_to_nat
tactic that shifts PNat
s in the context to Nat
.
Implementation details #
The implementation follows these steps:
For each x : PNat
in the context, add the hypothesis 0 < (↑x : ℕ)
.
Equations
- Mathlib.Tactic.PNatToNat.tacticPnat_positivity = Lean.ParserDescr.node `Mathlib.Tactic.PNatToNat.tacticPnat_positivity 1024 (Lean.ParserDescr.nonReservedSymbol "pnat_positivity" false)
Instances For
pnat_to_nat
shifts all PNat
s in the context to Nat
, rewriting propositions about them.
A typical use case is pnat_to_nat; omega
.
Equations
- Mathlib.Tactic.PNatToNat.tacticPnat_to_nat = Lean.ParserDescr.node `Mathlib.Tactic.PNatToNat.tacticPnat_to_nat 1024 (Lean.ParserDescr.nonReservedSymbol "pnat_to_nat" false)