Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A1 and the marginal floor bound every padded sequence

Proved
APFPaper1.Foundation.padded_protocol_bound

by FiniteUniverse · Sep 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

apffoundationsorder-theory

Fix a ledger, a uniform positive marginal floor epsilon, and a finite sequence of n insertions beginning with the empty family. The same epsilon bounds every feasible support-novel marginal increment. Assume a specified protocol serves the final family and A1 holds at a finite real capacity C: every protocol in this declared context has price at most C. Sum one epsilon for each support-novel insertion and zero for every other insertion. This sum is at most the final joint-cost infimum, which is at most the specified protocol price, which is at most C. Non-novel insertions remain in the prefixes; the theorem does not require each step to be novel. It includes n=0 and repeated insertions. It proves the per-order padded bound; it does not formalize the maximum padded rank or claim its equality with pure chain rank. No attained infimum, support independence, outcome selection, or cost-spectrum nondegeneracy is assumed.

Preamble
import Definitions.Def_APFPaper1_Foundation
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.Push
set_option autoImplicit false
open Classical
Formal statement
namespace APFPaper1.Foundation
theorem padded_protocol_bound {D P : Type*} [DecidableEq D]
    (L : Ledger D P) (ε : ℝ) (hfloor : MarginalFloor L ε)
    (n : ℕ) (S : ℕ → Finset D) (d : ℕ → D)
    (hzero : S 0 = ∅) (hstep : ∀ i < n, S (i + 1) = insert (d i) (S i))
    (p : P) (hp : L.serves p (S n)) (C : ℝ) (hA1 : A1Capacity L C) :
    let credit := ∑ i ∈ Finset.range n, if SupportNovel L (S i) (d i) then ε else 0
    credit ≤ cost L (S n) ∧ cost L (S n) ≤ L.price p ∧ L.price p ≤ C := by sorry
end APFPaper1.Foundation
Source
APF Astra Session 2026-09-05/06 audit package, SUPPORT_NOVELTY_STRENGTHENING.md section 1, Q42 per-order padded bound; Paper 1 Supplement v9.23 def:record-support-rank, lem:marginal-floor-on-joint-cost, lem:joint-cost-monotonicity-in-S, thm:chain-rank-floor. General per-order inequality, not the maximized-rank result.
Read-back

What the Lean code literally says, in plain math · Codex (GPT-6)

For any types DDD and PPP, with decidable equality on DDD, let LLL consist of a real-valued price function a:P→Ra:P\to\mathbb Ra:P→R, a relation V(p,T)V(p,T)V(p,T) between p∈Pp\in Pp∈P and finite subsets TTT of DDD, and a relation K(p,x)K(p,x)K(p,x) between p∈Pp\in Pp∈P and x∈Dx\in Dx∈D, such that all prices are nonnegative; T⊆UT\subseteq UT⊆U and V(p,U)V(p,U)V(p,U) imply V(p,T)V(p,T)V(p,T); V(p,T)V(p,T)V(p,T) and x∈Tx\in Tx∈T imply K(p,x)K(p,x)K(p,x); and there exists p0∈Pp_0\in Pp0​∈P with V(p0,∅)V(p_0,\varnothing)V(p0​,∅) and a(p0)=0a(p_0)=0a(p0​)=0. For every finite T⊆DT\subseteq DT⊆D, define c(T)=inf⁡{a(q):q∈P, V(q,T)}c(T)=\inf\{a(q):q\in P,\ V(q,T)\}c(T)=inf{a(q):q∈P, V(q,T)}, where the real infimum is the totalized real infimum (in particular, the empty set has infimum 000). Say that N(T,x)N(T,x)N(T,x) holds exactly when there exists a real η>0\eta>0η>0 such that, for every q∈Pq\in Pq∈P, if V(q,T)V(q,T)V(q,T) and a(q)≤c(T)+ηa(q)\le c(T)+\etaa(q)≤c(T)+η, then K(q,x)K(q,x)K(q,x) does not hold. Let ε∈R\varepsilon\in\mathbb Rε∈R satisfy ε>0\varepsilon>0ε>0 and the following condition for every finite T⊆DT\subseteq DT⊆D and every x∈Dx\in Dx∈D: if there exists q∈Pq\in Pq∈P with V(q,T∪{x})V(q,T\cup\{x\})V(q,T∪{x}) and N(T,x)N(T,x)N(T,x) holds, then ε≤c(T∪{x})−c(T)\varepsilon\le c(T\cup\{x\})-c(T)ε≤c(T∪{x})−c(T). For any natural number nnn, any sequences S:N→Finset⁡(D)S:\mathbb N\to\operatorname{Finset}(D)S:N→Finset(D) and d:N→Dd:\mathbb N\to Dd:N→D such that S0=∅S_0=\varnothingS0​=∅ and Si+1=Si∪{di}S_{i+1}=S_i\cup\{d_i\}Si+1​=Si​∪{di​} for every natural i<ni<ni<n, any p∈Pp\in Pp∈P satisfying V(p,Sn)V(p,S_n)V(p,Sn​), and any real CCC satisfying 0≤C0\le C0≤C and a(q)≤Ca(q)\le Ca(q)≤C for every q∈Pq\in Pq∈P, define bi=εb_i=\varepsilonbi​=ε if N(Si,di)N(S_i,d_i)N(Si​,di​) holds and bi=0b_i=0bi​=0 otherwise. Then ∑i=0n−1bi≤c(Sn)\sum_{i=0}^{n-1}b_i\le c(S_n)∑i=0n−1​bi​≤c(Sn​), c(Sn)≤a(p)c(S_n)\le a(p)c(Sn​)≤a(p), and a(p)≤Ca(p)\le Ca(p)≤C, all simultaneously. The sum is over the indices strictly below nnn and is 000 when n=0n=0n=0; in that case Sn=∅S_n=\varnothingSn​=∅ and c(Sn)=0c(S_n)=0c(Sn​)=0. There is no requirement that the did_idi​ be distinct or that N(Si,di)N(S_i,d_i)N(Si​,di​) hold at every step, and no constraints are imposed on SiS_iSi​ for i>ni>ni>n or on did_idi​ for i≥ni\ge ni≥n. The sequence ddd is nevertheless defined on all natural numbers, including when n=0n=0n=0, so these quantified data cannot be supplied when DDD is empty. The condition defining N(T,x)N(T,x)N(T,x) can hold vacuously when no protocol satisfies both of its antecedents; the marginal inequality is required only when both its feasibility and novelty antecedents hold. Under the displayed hypotheses, every SiS_iSi​ with i≤ni\le ni≤n is served by ppp, so its set of prices is nonempty and bounded below by 000.

Human review
  • Endorsed by Shuze Chen · Nov 18, 2026

    Confirmed by the moderator at approval.

  • Endorsed by FiniteUniverse · Nov 18, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me