Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Family cost, feasibility, admissibility and support novelty on source data

Definition
APFPaper1_FamilyCost

by FiniteUniverse · Nov 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

apffoundations

Fix a distinction domain DDD, a protocol class PPP, a record type, a whole-resource map r:P→Rr:P\to Rr:P→R and a nonnegative calibration χ:R→R≥0\chi:R\to\mathbb R_{\ge0}χ:R→R≥0​. Each protocol has maintained records, a sufficient-support predicate and a relation saying which records it uses to realize each distinction. Let J(S)J(S)J(S) be the protocols serving every member of a finite family SSS from their own maintained sufficient support. Define

κ(S)=inf⁡{χ(r(p)):p∈J(S)}.\kappa(S)=\inf\{\chi(r(p)):p\in J(S)\}.κ(S)=inf{χ(r(p)):p∈J(S)}.

A family is feasible when J(S)J(S)J(S) is nonempty and admissible at capacity CCC when it is feasible and κ(S)≤C\kappa(S)\le Cκ(S)≤C. A distinction ddd is support-novel over SSS when some positive near-optimal window excludes sufficient maintained support for ddd from every SSS-serving protocol whose bill is at most κ(S)+η\kappa(S)+\etaκ(S)+η.

These four definitions give B03, B05 and the source-to-ledger bridge one shared vocabulary. They introduce no laws on the supplied data. In the canonical ledger, the distinction domain consists of tasks under the context's fixed resolution, perturbations and duration; canonical testedness is always true on that domain.

Representation limits. The formal cost is a real infimum: an empty serving class has value zero, so a physical cost claim requires feasibility. This definition does not establish affordable attainment, zero cost for the empty family, or the physical adequacy of an arbitrary protocol/support/calibration instance.

Formalization note. Consumes Foundation Inputs revision 2026-10-04.1. This is source vocabulary, not a newly adopted physical premise. All reachable proof-valued structure fields belong to the pinned ordinary mathematical library; the local acceptance record enumerates their exact declarations. Independent source review: brook-2026-11-12-cold_fidelity_review. Native auditor readback remains separate.

Definition code
/-
APF Foundation Ledger — definition node (Batch 1, shared vocabulary)
name: APFPaper1_FamilyCost
title: Family cost, feasibility, admissibility and support novelty on source data
inputs_revision: 2026-10-04.1
mathlib_rev: 0df444a360eaa60ab8c11dca51a86af692955474
source: Paper 1 Supplement v9.27:1744-1757,1763-1782,1851-1862,2188-2221,2615-2617. One shared encoding of the
  source symbols familyCost / familyFeasible / familyAdmissible / supportNovel. B03 retains its predicate body.
  B05 adds the author-approved tested guard; tested := True recovers the canonical ledger scope.
  Both re-registered inputs import this module (author rulings 2026-11-11).
statement: On source protocol, record and whole-account data, familyCost S is the real infimum of the calibrated
  whole-resource bills of the protocols serving S; familyFeasible S says some protocol serves S; familyAdmissible C S
  adds familyCost S ≤ C; supportNovel S d says some positive window eta excludes carried sufficient support for d from
  every S-serving protocol priced within familyCost S + eta.
-/
import Mathlib.Data.NNReal.Basic
import Mathlib.Data.Finset.Insert

set_option autoImplicit false
namespace APFPaper1.Source

/-- The infimal calibrated whole-resource bill over the protocols that serve S from their own
maintained sufficient support. Source data only: no law on the data is assumed. -/
noncomputable def familyCost
    {D P R Record : Type*}
    (wholeResource : P → R) (calibration : R → NNReal)
    (maintained : P → Set Record)
    (sufficient : P → Set Record → D → Prop)
    (usesToRealize : P → D → Set Record → Prop) (S : Finset D) : ℝ :=
  sInf {c : ℝ | ∃ p : P,
    (∀ d ∈ S, ∃ sigma : Set Record,
      sigma ⊆ maintained p ∧ sufficient p sigma d ∧ usesToRealize p d sigma) ∧
    (calibration (wholeResource p) : ℝ) = c}

/-- Some protocol serves every member of S from its own maintained sufficient support. -/
def familyFeasible {D P Record : Type*}
    (maintained : P → Set Record)
    (sufficient : P → Set Record → D → Prop)
    (usesToRealize : P → D → Set Record → Prop) (S : Finset D) : Prop :=
  ∃ p : P, ∀ d ∈ S, ∃ sigma : Set Record,
    sigma ⊆ maintained p ∧ sufficient p sigma d ∧ usesToRealize p d sigma

/-- Feasible and within the context capacity C: ledger admissibility of a family (Supplement 1763-1776;
the alignment-level form at 1851-1862 is stated there to be the same inequality). -/
def familyAdmissible {D P R Record : Type*}
    (wholeResource : P → R) (calibration : R → NNReal)
    (maintained : P → Set Record)
    (sufficient : P → Set Record → D → Prop)
    (usesToRealize : P → D → Set Record → Prop) (C : ℝ) (S : Finset D) : Prop :=
  familyFeasible maintained sufficient usesToRealize S ∧
  familyCost wholeResource calibration maintained sufficient usesToRealize S ≤ C

/-- Support novelty of d over S in a positive near-optimal window (Supplement 2615-2617). -/
def supportNovel {D P R Record : Type*}
    (wholeResource : P → R) (calibration : R → NNReal)
    (maintained : P → Set Record)
    (sufficient : P → Set Record → D → Prop)
    (usesToRealize : P → D → Set Record → Prop) (S : Finset D) (d : D) : Prop :=
  ∃ eta : ℝ, 0 < eta ∧ ∀ p : P,
    (∀ e ∈ S, ∃ sigma : Set Record,
      sigma ⊆ maintained p ∧ sufficient p sigma e ∧ usesToRealize p e sigma) →
    (calibration (wholeResource p) : ℝ) ≤
      familyCost wholeResource calibration maintained sufficient usesToRealize S + eta →
    ¬ ∃ sigma : Set Record, sigma ⊆ maintained p ∧ sufficient p sigma d

end APFPaper1.Source
Source
Paper 1, The Enforceability of Distinction, Technical Supplement v9.28: def:admissibility-cost; def:tested-distinction; rem:tested-two-senses; rem:ledger-valuation-convention; def:record-support-rank (lines 1753–1791, 2624–2626); FOUNDATION_INPUTS.json revision 2026-10-04.1; author rulings 2026-11-11. Exact reviewed source SHA256 a4e7671f39a3bc1e7621584c1dcc1fb54b31fdf731292d5a0f07066aac764d4e
Human review
  • Endorsed by Shuze Chen · Nov 12, 2026

  • Endorsed by FiniteUniverse · Nov 12, 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