Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

D5 source compiled; RegUNVALIDATED

Abstract

Finite higher-layer budget repair at every positive original record price.

One repo-prior-exposed source attempt, with no consensus claim. The D5 source target has a current scoped Lean build; its retained Reg source compiles; lawful enrollment and source binding remain incomplete. No Scribe or Reg acceptance, source binding, official acceptance, RH conclusion or literature novelty is asserted. The completed ordinary proof is fallible input. The completed Budget and prefix owners retain their exact definitions and proof bodies. This source does not consume the active log-sharp coercivity or any energy consequence. Only actually consumed existing helpers are exposed, preserving their mathematical types and proof bodies.

Theorem 1.1 (Repair an actual integer, uniformly before every Budget).

Lean statement: D5/S3/Arith/Robin/PriceRecord/ActualHigherLayerBudgetRepair.actual_higher_layer_budget_repair

Proof. Machine-checked in Lean as D5/S3/Arith/Robin/PriceRecord/ActualHigherLayerBudgetRepair.actual_higher_layer_budget_repair (✓ std3). ∎

Source. Repository-derived.

Commentary.

The exact order is: every real eta>0; one real X0>1; every real X>=X0; every b:ActualRecordAllLogBudgetRemainder.Budget with b.spec(X); an actual natural k>=2. Its primeFactors are exactly primesLE(b.Q), X-log(k)>=0 and 0<=log(k)-log(b.k)<=b.delta. The same complete residual R_X(k)=actualDefect(X,k)-completeFirstLayerLoss(X,k) satisfies 0<=R_X(k)+referencePrice(X)(X-log(k))<=eta/X. No exponent cap or optimizer-only support replaces either complete loss.

The result also returns a natural J>=3 and a finite set A of primes p<=b.Q, with b.k.factorization(p)=optimalLayerCount(referencePrice(X),p)=J-1. It returns k=b.k*product(A), log(k)-log(b.k)=sum_A log(p), the exact factorization k.factorization(p)=b.k.factorization(p)+1_A(p) for EVERY natural p, and the exact FULL identity R_X(k)=sum_A (referencePrice(X)-goldenLayerMarginal(p,J))*log(p). The proof chooses J before X, from 1/J<eta/2, and then chooses tau=min(eta/8,1/2) and fixed 0<a<b with 1-tau<J/b^J<J/a^J<1. All thresholds precede b.

Write t=X^(1/J). The existing fixed-cardinality PNT construction supplies J+2 distinct primes in (at,bt]. It uses ordinary PNT on fixed relative intervals. The literal gain bounds give upper scaled marginal tending to J/a^J and lower scaled marginal tending to J/b^J. The previous-layer lower bound has an extra factor b*t, so beta_(J-1)(p)>lambda>beta_J(p). Strict layer membership proves the exact exponent J-1. Eventually all candidates lie below X/2<=b.Q, each log(p)<=(eta/2)log(X), and their total log mass exceeds log(2X)>b.delta.

A finite subset with maximal feasible cardinality has mass at most b.delta and remainder smaller than one candidate weight. Insert those primes once. The full arithmetic objective factorization telescopes through the local increment formula; equal first supports cancel the COMPLETE first-layer losses. The completed unchanged-higher theorem gives zero initial residual. The inserted loss is positive and bounded by taulambdab.delta, not set to zero. Since b.delta<log(2X)<=2log(X), this costs at most eta/(2X). The new slack costs at most eta/(2X). A zero original delta permits only the empty feasible subset, hence k=b.k and zero new slack and loss. Unchanged equality-price coordinates have zero loss under the original strict convention; no prime at a root is selected by an equality argument.

Theorem 1.2 (Compare at the original record’s arbitrary positive price).

Lean statement: D5/S3/Arith/Robin/PriceRecord/ActualHigherLayerBudgetRepair.actual_record_repaired_prefix_residual

Proof. Machine-checked in Lean as D5/S3/Arith/Robin/PriceRecord/ActualHigherLayerBudgetRepair.actual_record_repaired_prefix_residual (✓ std3). ∎

Source. Repository-derived.

Commentary.

For every real eta>0 there is one X0>1 before every natural m>=2, every real mu>0, and every strict comparison against ALL positive predecessors at that original price. If log(m)>=X0, the result chooses b with b.spec(log(m)). For X=log(m), P=largestPrime(m) and V=max(abs(P-b.r),abs(b.Q-b.r)), its literal conclusion is 0<=R_X(m)<=6Vabs(b.h+b.delta-(log(m)-theta(P))) / (X^2*log(X/2))+eta/X. The original actual m and every one of its higher layers remain in R_X(m). The higher mass readout is literally log(m)-theta(P), whose identity with log(higherCore(m)) is supplied by the existing higher_core_log and original prime-prefix theorem.

The repaired budget gives k<=m. For k<m use the original strict record; for k=m use reflexivity. Expanding the exact objectives gives D_X(m)-D_X(k)<=(lambda-mu)(X-log(k)). Thus R_X(m)<=C1_X(k)-C1_X(m)+R_X(k)+lambda(X-log(k)) -mu*(X-log(k)). Drop only the last nonpositive term. The existing complete_first_layer_prefix_cancellation supplies the coefficient 6. The exact old budget identity is theta(P)-theta(b.Q)=b.h+b.delta-(log(m)-theta(P)); this uses the ORIGINAL delta. The price comparison uses the ACTUAL new slack X-log(k). No lower bound on mu, mu/lambda comparison, lam0 restriction, surrogate record or unchanged-higher condition on k is assumed. Filter comap over the entire original record-pair subtype places a single threshold before all pairs and includes every real eta.

Theorem 1.3 (Reuse the completed fixed finite PNT roster construction).

Lean statement: D5/S3/Arith/Robin/PriceRecord/FixedLayerRigidity.fixed_cardinality_prime_window

Proof. Machine-checked in Lean as D5/S3/Arith/Robin/PriceRecord/FixedLayerRigidity.fixed_cardinality_prime_window (✓ std3). ∎

Source. Repository-derived.

Commentary.

Existing proof, visibility change only: for real 0<A<B and every natural N, there is Y such that every real x>=Y admits a Finset S with card(S)=N and every q in S prime with Ax<q<=Bx. The repair consumes N=J+2. The original induction and PNT proofs are unchanged. The matching Reg attempt abstracts the literal prime predicate and preserves every binder; current source binding and whole-family variation remain unvalidated.

Theorem 1.4 (Reuse zero initial higher loss before inserting the roster).

Lean statement: D5/S3/Arith/Robin/PriceRecord/ActualFirstLayerPrefixCancellation.defect_eq_first_of_optimizer_higher_layers

Proof. Machine-checked in Lean as D5/S3/Arith/Robin/PriceRecord/ActualFirstLayerPrefixCancellation.defect_eq_first_of_optimizer_higher_layers (✓ std3). ∎

Source. Repository-derived.

Commentary.

Existing completed proof, visibility change only: X>1, k>=1, and for EVERY prime p and EVERY j>=2, j<=v_p(k) iff j<=optimalLayerCount(referencePrice(X),p), imply actualDefect(X,k)=completeFirstLayerLoss(X,k). This is consumed only at the ORIGINAL budget integer b.k. It is never applied to the repaired k. The existing full decomposition and strict-margin proof, including zero margins, are unchanged. A typed full-telescope Reg attempt is supplied; enrollment, source binding and sensitivity evidence remain missing.

Theorem 1.5 (finite_pack).

Lean statement: D5/S3/Arith/Robin/PriceRecord/ActualHigherLayerBudgetRepair.finite_pack

Proof. Machine-checked in Lean as D5/S3/Arith/Robin/PriceRecord/ActualHigherLayerBudgetRepair.finite_pack (✓ std3). ∎

Source. Repository-derived.

Commentary.

Complete statement: theorem finite_pack (S : Finset ℕ) (w : ℕ → ℝ) {d M : ℝ} (hd : 0 ≤ d) (hfull : d < ∑ p ∈ S, w p) (hw : ∀ p ∈ S, 0 ≤ w p ∧ w p ≤ M) : ∃ A : Finset ℕ, A ⊆ S ∧ (∑ p ∈ A, w p) ≤ d ∧ 0 ≤ d - ∑ p ∈ A, w p ∧ d - ∑ p ∈ A, w p < M

Theorem 1.6 (residual_nonneg).

Lean statement: D5/S3/Arith/Robin/PriceRecord/ActualHigherLayerBudgetRepair.residual_nonneg

Proof. Machine-checked in Lean as D5/S3/Arith/Robin/PriceRecord/ActualHigherLayerBudgetRepair.residual_nonneg (✓ std3). ∎

Source. Repository-derived.

Commentary.

Complete statement: theorem residual_nonneg {X : ℝ} (hX : 1 < X) {n : ℕ} (hn : 1 ≤ n) : 0 ≤ actualDefect X n - completeFirstLayerLoss X n

Theorem 1.7 (insert_roster_at_prefix).

Lean statement: D5/S3/Arith/Robin/PriceRecord/ActualHigherLayerBudgetRepair.insert_roster_at_prefix

Proof. Machine-checked in Lean as D5/S3/Arith/Robin/PriceRecord/ActualHigherLayerBudgetRepair.insert_roster_at_prefix (✓ std3). ∎

Source. Repository-derived.

Commentary.

Complete statement: theorem insert_roster_at_prefix {X : ℝ} (hX : 4 < X) {base Q : ℕ} (hb2 : 2 ≤ base) (hpref : base.primeFactors = Nat.primesLE Q) (hQ : (Q : ℝ) ∈ Set.Icc (X / 2) (2 * X)) {r : ℝ} (hr : r ∈ Set.Icc (X / 2) (2 * X)) (hroot : firstLayerPrice r = referencePrice X) {J : ℕ} (hJ : 1 ≤ J) (A : Finset ℕ) (hA : ∀ p ∈ A, p.Prime ∧ p ≤ Q ∧ base.factorization p = J - 1) : let k := base * ∏ p ∈ A, p 2 ≤ k ∧ k.primeFactors = Nat.primesLE Q ∧ log (k : ℝ) - log (base : ℝ) = ∑ p ∈ A, log p ∧ (∀ p, k.factorization p = base.factorization p + if p ∈ A then 1 else 0) ∧ actualDefect X k - completeFirstLayerLoss X k = (actualDefect X base - completeFirstLayerLoss X base) + ∑ p ∈ A, (referencePrice X - goldenLayerMarginal p J) * log p

Theorem 1.8 (insert_roster).

Lean statement: D5/S3/Arith/Robin/PriceRecord/ActualHigherLayerBudgetRepair.insert_roster

Proof. Machine-checked in Lean as D5/S3/Arith/Robin/PriceRecord/ActualHigherLayerBudgetRepair.insert_roster (✓ std3). ∎

Source. Repository-derived.

Commentary.

Complete statement: theorem insert_roster {X : ℝ} (hX : 4 < X) {b : Budget} (hb : b.spec X) {J : ℕ} (hJ : 3 ≤ J) (A : Finset ℕ) (hA : ∀ p ∈ A, p.Prime ∧ p ≤ b.Q ∧ b.k.factorization p = J - 1) : let k := b.k * ∏ p ∈ A, p 2 ≤ k ∧ k.primeFactors = Nat.primesLE b.Q ∧ log (k : ℝ) - log (b.k : ℝ) = ∑ p ∈ A, log p ∧ (∀ p, k.factorization p = b.k.factorization p + if p ∈ A then 1 else 0) ∧ actualDefect X k - completeFirstLayerLoss X k = ∑ p ∈ A, (referencePrice X - goldenLayerMarginal p J) * log p

Theorem 1.9 (two_price_compare).

Lean statement: D5/S3/Arith/Robin/PriceRecord/ActualHigherLayerBudgetRepair.two_price_compare

Proof. Machine-checked in Lean as D5/S3/Arith/Robin/PriceRecord/ActualHigherLayerBudgetRepair.two_price_compare (✓ std3). ∎

Source. Repository-derived.

Commentary.

Complete statement: theorem two_price_compare {X μ : ℝ} {m k : ℕ} (hm : 2 ≤ m) (hk : 2 ≤ k) (hμ : 0 < μ) (hrecord : ∀ a : ℕ, 0 < a → a < m → goldenResourceObjective μ a < goldenResourceObjective μ m) (hclock : X = log (m : ℝ)) (hslack : 0 ≤ X - log (k : ℝ)) : k ≤ m ∧ actualDefect X m - actualDefect X k ≤ (referencePrice X - μ) * (X - log (k : ℝ))

References