B6 — Recover the existing APF ledger on primitive requests
ProvedAPFLawsOfForm.atomic_ledger_recoveryUnder exact realization of the original APF serving relation by the registered decoder system, a finite family of primitive labels and its family of variable forms have exactly the same serving protocols, attainable price set, feasibility, achievable budgets, and cost infimum. Repeated enumeration labels are handled by finite-set images. This is a recovery theorem for the existing APF ledger, conditional on the stated realization correspondence.
import Definitions.Def_APFLawsOfForm_Bridge set_option autoImplicit false open LawsOfForm APFPaper1.Foundation
namespace APFLawsOfForm
theorem atomic_ledger_recovery {X Q D P : Type} [DecidableEq D]
(I : PhysicalInterface X Q D P) (g : Nat → D)
(M : DecoderSystem (PhysicalState I.profile) P) (hM : RealizesLedger I M) (S : Finset Nat) :
(∀ p, I.ledger.serves p (S.image g) ↔
(formLedger I.ledger M (interfaceReadouts I g)).serves p (atomicFamily S)) ∧
costs I.ledger (S.image g) = costs (formLedger I.ledger M (interfaceReadouts I g)) (atomicFamily S) ∧
(Feasible I.ledger (S.image g) ↔ Feasible (formLedger I.ledger M (interfaceReadouts I g)) (atomicFamily S)) ∧
(∀ b, WithinBudget I.ledger (S.image g) b ↔
WithinBudget (formLedger I.ledger M (interfaceReadouts I g)) (atomicFamily S) b) ∧
cost I.ledger (S.image g) = cost (formLedger I.ledger M (interfaceReadouts I g)) (atomicFamily S) := by sorry
end APFLawsOfForm
Read-back
What the Lean code literally says, in plain math · Codex (GPT-6)
For arbitrary types , with decidable equality on , let be the following physical interface: a function ; the space , where means ; an injective assignment to each of a binary distinction, consisting of a Boolean readout and the requirement that there exist with ; and a ledger with a real price for every , a serving relation for finite subsets that is downward closed in , and a carrying relation such that and imply that carries . The ledger must contain some with and ; moreover, every singleton must be served by some protocol and must have strictly positive infimum attainable price. Here, for any ledger and finite family of its items, its attainable-price set is , feasibility means , being within a real budget means , and its scalar cost is the real infimum , with the total real-infimum convention assigning to the empty set. Let be any function, let assign to each a type of records, a function , and an arbitrary set of registered functions , and assume that for every and every finite , if and only if for every there exists such that for every ; the decoder may depend on both and . Expressions are finite syntactic objects formed from a blank, an indexed variable for each , a unary crossing, and a binary juxtaposition; their Boolean readouts interpret the blank as false, as , crossing as Boolean negation, and juxtaposition as Boolean disjunction. Define the expression ledger to have the same protocols and prices as , to serve a finite family exactly when, for every , there exists with for every , and to carry a single expression exactly when such a decoder for it exists. Then, for every finite , writing and , all five assertions hold simultaneously: for every , ; as sets of real numbers; is feasible in if and only if is feasible in ; for every , is within budget in if and only if is within budget in ; and . The quantifiers include the index , arbitrary finite including , and noninjective : repeated values of are removed from , while distinct indices still give distinct syntactic variables in , even if their readouts coincide. When , the decoder conditions are vacuous, the realization assumption forces every protocol to serve the empty family in , both attainable-price sets are the full range of , both scalar costs are , and budget feasibility holds exactly for ; negative budgets are infeasible for every family because all prices are nonnegative. A nonempty family is not assumed jointly feasible: if it is infeasible, both attainable-price sets are empty and both scalar costs are under the stated convention, and otherwise equality of infima does not require those infima to be attained. The registered decoder sets need not be closed under Boolean operations. Although the types are universally quantified, rules out empty , the nonconstant distinction readouts then require at least two profile-equivalence classes (so empty or empty cannot satisfy the hypotheses), and the zero-price empty protocol rules out empty .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.