Theorems · Theorem · logic and foundations
Primrec.nat_rec
∀ {α : Type u_1} {β : Type u_2} [inst : Primcodable α] [inst_1 : Primcodable β] {f : α → β} {g : α → ℕ × β → β},
Primrec f → Primrec₂ g → Primrec₂ fun a n => Nat.rec (f a) (fun n IH => g a (n, IH)) n- Defined in
- Mathlib.Computability.Primrec.Basic
- Cited by
- 3 results in Mathlib
- Foundations
- Depth 78 from the axioms · uses propext, Classical.choice, Quot.sound
- Assumes
- PrimcodablePrimcodable
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites18
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Primcodablestatement and proof · cited by 325
- add_tsub_cancel_rightproof · cited by 172
- Primrecstatement and proof · cited by 141
- Encodable.encodeproof · cited by 118
- Primrec₂statement and proof · cited by 93
- Encodable.decodeproof · cited by 77
- Nat.unpairproof · cited by 67
- Nat.pairproof · cited by 62
- Nat.unpair_pairproof · cited by 30
- Encodable.encodekproof · cited by 27
- Nat.Primrec.of_eqproof · cited by 25
- Option.bind_congr'proof · cited by 23
Cited by3
Results whose statement or proof uses this declaration.
- Primrec.nat_rec'proof · cited by 6
- Primrec.nat_strong_recproof · cited by 2
- Primrec.nat_casesOn'proof · cited by 1