S2 — Exact finite demand cost and positive joint surplus
ProvedAPFLoFStrengthening.finite_cost_contractFor every finite primitive demand S, the model cost is the attained price |S|+choose(|S|,2). Every distinct two-coordinate request costs one more than the sum of its singleton costs. This is exact minimization over all supplied finite-set protocols under the declared price law, not a derived physical calibration.
import Definitions.Def_APFLoFStrengthening_Model import Definitions.Def_APFLoFStrengthening_Symmetry import Mathlib.Tactic set_option autoImplicit false set_option linter.unusedSectionVars false set_option maxRecDepth 100000 set_option maxHeartbeats 4000000 open LawsOfForm APFPaper1.Foundation APFLawsOfForm
namespace APFLoFStrengthening
theorem finite_cost_contract (D : Type) [DecidableEq D] :
(∀ S : Finset D, cost (ledger D) S = price D S) ∧
(∀ d e : D, d ≠ e →
cost (ledger D) {d, e} - cost (ledger D) {d} - cost (ledger D) {e} = 1) := by sorry
end APFLoFStrengthening
Read-back
What the Lean code literally says, in plain math · Fresh isolated Codex reader; exact model ID not recorded
finite_cost_contract — independent code readback
For every D : Type with DecidableEq D, the theorem states two conjuncts. First, for every finite request S : Finset D, cost (ledger D) S equals price D S. Here protocols are finite sets p, service means S ⊆ p, prices are the real casts of |p| + choose(|p|, 2), and cost is the real infimum of prices of all serving protocols. Thus the specified price of S is the exact cost; S itself is a serving protocol with that price.
Second, for every ordered pair d,e : D, if d ≠ e, the pair cost minus the d-singleton cost minus the e-singleton cost equals 1. Subtraction is left-associated. In this model the three values are respectively 3, 1, and 1. The distinctness hypothesis is essential to the scope of this second assertion: a finite set {d,d} collapses to {d}, and that repeated-coordinate case is not claimed to have excess 1.
There is no finiteness assumption on all of D, no fixed budget or maximum protocol size, and no user-supplied feasibility hypothesis: every finite S is served by the protocol S. The first conjunct includes S = ∅, whose cost is 0. If D is empty, the empty-set claim remains while the pair quantification is vacuous. If D has only one element, the premise d ≠ e is never satisfied. The formula is a contract for the defined ledger’s real-valued prices; it does not establish empirical resource costs, probability, or a general additivity law. The placeholder is not proof evidence.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.