Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The discount from jointly serving two finite families

Definition
APFPaper5_K1_SharedCost

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

apfapf-referencesib-v15-2026-11

Defines sharedCost(cost,S,T)=cost(S)+cost(T)-cost(S union T). This is the negative of the codebank channel residual; no sign or score interpretation is assumed.

Representation and scope. The sign is the opposite of Delta in delta_calculus.py. This definition is meaningful without claiming a general cost-to-score transfer.

Supplied data or hypotheses. Arbitrary real-valued cost on finite families and decidable equality.

Claim boundaries. sharedCost may be negative; symmetry alone does not give a role-exchange operation or physical reversal.

This is conditional reference mathematics. The supplied model and its hypotheses are not adopted Foundation inputs, and this node does not establish K1 or K3 closure.

Definition code
/-
APF Foundation Ledger — definition node DRAFT (session EthanBrooke-01WrrBvu, 2026-11-12; not gated, not reviewed)
name: APFPaper5_K1_SharedCost
title: The shared cost of two families: the cost of holding them apart less the cost of holding them together
inputs_revision: 2026-10-04.1
mathlib_rev: 0df444a360eaa60ab8c11dca51a86af692955474
source: Codebank apf/delta_calculus.py: the residual Delta(S1,S2) = kappa(S1 v S2) - kappa(S1) - kappa(S2)
 and check_T_delta_JR_derived (Delta = eps * (J - R)); apf/core.py check_L_irr Step 1. Paper 1 Supplement
 v9.28:1118-1132 and 2834-2842 (shared support and shared setup costs can lower an increment). Archive export
 of 2026-10-02: no definition of this residual found by keyword search.
standing: a DEFINITION on any cost function of families. sharedCost is the negative of the codebank's Delta.
 Applied to the ledger's familyCost it is a number between two families built from ledger cost alone. Whether
 it is the K layer's score off the record-book side has not been ruled by the author.
statement: sharedCost cost S T = cost S + cost T - cost (S ∪ T).
-/
import Mathlib.Data.Real.Basic
import Mathlib.Data.Finset.Lattice.Basic

set_option autoImplicit false
namespace APFPaper5.K1

universe u
variable {D : Type u} [DecidableEq D]

/-- The cost of holding two families apart, less the cost of holding them together. -/
def sharedCost (cost : Finset D → ℝ) (S T : Finset D) : ℝ := cost S + cost T - cost (S ∪ T)

end APFPaper5.K1
Source
Definitions/Def_APFPaper5_K1_SharedCost.lean; Sib v15, SHA-256 a8bc0b4c5b3a1fddc998941b6d23141c563ac34ce43319192cfea7c0df6e96f0. [{'path': 'Papers/Paper 01 - The Enforceability of Distinction/Paper_1_Enforceability_of_Distinction_Supplement_v9.28.tex', 'lines_or_section': '1772-1792'}, {'path': 'C:/Users/brook/Dev/apf-codebase/apf/delta_calculus.py', 'lines_or_section': '1906-2141'}]
Human review
  • Endorsed by Shuze Chen · Nov 16, 2026

    Confirmed by the moderator at approval.

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