Lemma 12 on the paper's layout [P] × [2^u] × [G] × [2^u] × [B]: the address permutation (p, h, g, d, z) ↦…
ProvedAModelL12.lemma12_paperLemma 12 on the paper's layout [P] × [2^u] × [G] × [2^u] × [B]: the address permutation (p, h, g, d, z) ↦ (p, d, g, h, z) (swapPos 1 3), cost O(V u^τ).
The following holds (Lean statement, in the scope of module Solutions.AModelL12Main):
theorem AModelL12.lemma12_paper (child : ℕ → Oracle α) (Tc : ℕ → ℕ → ℝ → ℝ) (d : α) {W m q ρ₀ : ℕ}
{τ K₀ c : ℝ} (hm : 2 ≤ m) (hW : 1 ≤ W) (hq : 2 ≤ q) (hWq : W ≤ q ^ (2 * ρ₀))
(hτ : 0 < τ) (hK₀ : 0 ≤ K₀) (hc : 0 ≤ c)
(hspec : ∀ K, OracleSpec (child K) d W m q K)
(hcost : ∀ K j V, 0 ≤ V → Tc K j V ≤ K₀ * V * ((m : ℝ) ^ j) ^ τ) :
∃ K : ℝ, 0 ≤ K ∧ ∀ u : ℕ, 1 ≤ u → ∀ P G B : ℕ,
(∀ xs : List α, lemma12Prog child W m q ρ₀ [P] [G] [B] u d xs =
pull [P, 2 ^ u, G, 2 ^ u, B] [P, 2 ^ u, G, 2 ^ u, B] (swapPos 1 3) d xs) ∧
lemma12Cost Tc c W m q ρ₀ [P] [G] [B] u ≤
K * ((P * G * B * 2 ^ (2 * u) : ℕ) : ℝ) * (u : ℝ) ^ τ
Context. The lemma belongs to the part Lemma 12 (arbitrary-width interchange), array model: final statements.
Formalization Note. This lemma belongs to the Lean formalization (integer-multiplication-kappa campaign) of the OpenAI preprint Integer multiplication below : the array model of tape data (mixed-radix arrays and pull maps), the interchange networks of §3–4 (Propositions 7, 8, 11, Lemmas 9–12), the butterfly layers of §5 (Lemma 13, Proposition 14), the synthesis of §6–7 (Lemma 16, Proposition 18), the resampling and parameter choices of §8–9, and the final glue IntMul.OpenAI.Glue.kappaBound_of_machine, which derives the platform bound KappaBound (1/2^182) (from Def_IntMul_MultitapeModel) for any correct multitape machine meeting the paper's time recurrence. All names refer to the definition bundles IntMul_Kappa_K_Defs1–IntMul_Kappa_K_Defs9.
-- OpenAI-preprint / κ-improvement development (integer-multiplication-kappa), generated by skeleton subtraction.
import Definitions.Def_IntMul_Kappa_K_Defs9
set_option autoImplicit false
set_option relaxedAutoImplicit false
set_option maxHeartbeats 1000000
open AModelL12
open AModel
variable {α : Type*}
theorem AModelL12.lemma12_paper (child : ℕ → Oracle α) (Tc : ℕ → ℕ → ℝ → ℝ) (d : α) {W m q ρ₀ : ℕ}
{τ K₀ c : ℝ} (hm : 2 ≤ m) (hW : 1 ≤ W) (hq : 2 ≤ q) (hWq : W ≤ q ^ (2 * ρ₀))
(hτ : 0 < τ) (hK₀ : 0 ≤ K₀) (hc : 0 ≤ c)
(hspec : ∀ K, OracleSpec (child K) d W m q K)
(hcost : ∀ K j V, 0 ≤ V → Tc K j V ≤ K₀ * V * ((m : ℝ) ^ j) ^ τ) :
∃ K : ℝ, 0 ≤ K ∧ ∀ u : ℕ, 1 ≤ u → ∀ P G B : ℕ,
(∀ xs : List α, lemma12Prog child W m q ρ₀ [P] [G] [B] u d xs =
pull [P, 2 ^ u, G, 2 ^ u, B] [P, 2 ^ u, G, 2 ^ u, B] (swapPos 1 3) d xs) ∧
lemma12Cost Tc c W m q ρ₀ [P] [G] [B] u ≤
K * ((P * G * B * 2 ^ (2 * u) : ℕ) : ℝ) * (u : ℝ) ^ τ := by sorry