Step Vec of Fn
LO.FirstOrder.Semiterm.stepVec_ofFn
Plain-language statement
With every lookup present and non-zero, the fold rebuilds the vecToNat code of the arguments.
Exact Lean statement
lemma stepVec_ofFn {T : List ℕ} {a : ℕ} {w u : Fin a → ℕ}
(h : ∀ i, T.getD (w i) 0 = u i + 1) :
stepVec T (List.ofFn w) = Matrix.vecToNat u + 1Formal artifact
Lean source
lemma stepVec_ofFn {T : List ℕ} {a : ℕ} {w u : Fin a → ℕ} (h : ∀ i, T.getD (w i) 0 = u i + 1) : stepVec T (List.ofFn w) = Matrix.vecToNat u + 1 := by induction a with | zero => simp [Matrix.vecToNat] | succ a ih => rw [List.ofFn_succ, stepVec_cons, ih (w := fun i ↦ w i.succ) (u := fun i ↦ u i.succ) fun i ↦ by simpa using h i.succ, h 0, if_neg (by simp)] simp only [Nat.add_sub_cancel] simpa using (Matrix.encode_succ (u 0) (fun i ↦ u i.succ)).symm- Project
- Foundation
- License
- Apache-2.0
- Commit
- 8dcdb3196454
- Source
- Foundation/FirstOrder/Basic/PrimrecCoding.lean:168-178
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Computable Pred iff decoded pred
ComputablePred.iff_decoded_pred
Plain-language statement
Computability of a predicate on a Primcodable type is equivalent to the computability of the corresponding predicate on ℕ obtained by decoding.
Source project: Foundation
Person-level attribution pending.
Bv quote fixitr
LO.FirstOrder.Arithmetic.Bootstrapping.bv_quote_fixitr
Plain-language statement
bv-pin bridge (over ℕ): bv ⌜fixitr 0 (fvSup χ) ▹ χ⌝ = fvSup χ. - ≤ is immediate from quote_univCl_eq + bv_qqAlls (closing fvSup quantifiers reaches a sentence, whose bv is 0). - ≥ is by level-factoring: were the body an IsSemiformula j for some j < fvSup, IsSemiformula.sound + castLE-invariance would re-express χ as `γ ⇜ ![...
Source project: Foundation
Person-level attribution pending.
Conj
LO.FirstOrder.Arithmetic.Bootstrapping.Derivable.conj
Plain-language statement
Crucial inducion for formalized -completeness.
Source project: Foundation
Person-level attribution pending.