recognition /
Foundation /
Foundation.ArithmeticFromLogic /
explainer
No prose has been written for this declaration yet. The Lean source and graph data below render
without it.
generate prose now
formal statement (Lean)
243 theorem toNat_fromNat : ∀ n : Nat, toNat (fromNat n) = n := by
proof body
Term-mode proof.
244 intro n
245 induction n with
246 | zero => rfl
247 | succ n ih =>
248 show toNat (fromNat (Nat.succ n)) = Nat.succ n
249 rw [fromNat_succ, toNat_succ, ih]
250
251 /-- **Recovery theorem (carrier)**: `LogicNat` and `Nat` have the same
252 underlying set, witnessed by the round-trip equalities. -/
used by (6)
From the project-wide theorem graph. These declarations reference this one in their body.
equivNat
in IndisputableMonolith.Foundation.ArithmeticFromLogic
decl_use
toNat_le
in IndisputableMonolith.Foundation.ArithmeticFromLogic
decl_use
fromInt_toInt
in IndisputableMonolith.Foundation.IntegersFromLogic
decl_use
toInt_fromInt
in IndisputableMonolith.Foundation.IntegersFromLogic
decl_use
modular_interpret_periodic
in IndisputableMonolith.Foundation.ModularLogicRealization
decl_use
one_not_primeLedgerAtomLogic
in IndisputableMonolith.NumberTheory.LogicPrimeLedgerAtom
decl_use
depends on (11)
Lean names referenced from this declaration's body.
carrier
in IndisputableMonolith.Engineering.CorticalNeuromodulationDevice
decl_use
carrier
in IndisputableMonolith.Engineering.PhantomCoupledGWAntennaSensitivity
decl_use
fromNat
in IndisputableMonolith.Foundation.ArithmeticFromLogic
decl_use
fromNat_succ
in IndisputableMonolith.Foundation.ArithmeticFromLogic
decl_use
LogicNat
in IndisputableMonolith.Foundation.ArithmeticFromLogic
decl_use
succ
in IndisputableMonolith.Foundation.ArithmeticFromLogic
decl_use
toNat
in IndisputableMonolith.Foundation.ArithmeticFromLogic
decl_use
toNat_succ
in IndisputableMonolith.Foundation.ArithmeticFromLogic
decl_use
fromNat
in IndisputableMonolith.LedgerUnits
decl_use
and
in IndisputableMonolith.NumberTheory.CirclePhaseLift
decl_use
succ
in IndisputableMonolith.RRF.Core.Vantage
decl_use