Model vocabulary — Bridge countermodel with an empty protocol
DefinitionAPFB06_bridge_world_with_a_do_nothing_protocol_VocabularyData, predicates and immediate constructor helpers for this reviewed model. Its substantive results are published as separate proved theorem nodes.
A supplied Boolean world with zero-cost empty protocol and an exact one-record holder meets its encoded EightHold predicate and full occupant predicate, while the endpoint bridge and held-relation conclusion fail. B06 actual-joint data and singleton selection domains are supplied; physical irreducible jointness and source fidelity of the encodings are not certified. Prefix and subword results use this world's complete record laws.
Supplied data and hypotheses
- Every parameter and hypothesis in the exact source declaration remains exposed; no author input is adopted.
Limits
This is conditional reference mathematics. The supplied model and its hypotheses are not adopted Foundation inputs, and this node does not establish K1, K3 or K4 closure.
import Definitions.Def_APFPaper5_Worlds_TwoObjects
import Definitions.Def_APFPaper1_Regulation
import Definitions.Def_APFB06_ExtensionalJoint
import Definitions.Def_APF_B02_DeclaredInput_r2_proposed
import Definitions.Def_APF_B04_DeclaredInput
import Definitions.Def_APF_B07a_DeclaredInput
import Definitions.Def_APF_B07b_DeclaredInput
import Theorems.Thm_APFB06_occupant_jointly_held
import Theorems.Thm_APFB06_occupant_jointly_held_of_binding
import Theorems.Thm_APFB06_held_family_admissible_on_distinctions
import Theorems.Thm_APFB06_held_family_admissible_on_distinctions_of_B02
import Theorems.Thm_APFB06_held_family_cost_pos
import Theorems.Thm_APFB06_held_family_marginal_floor
import Theorems.Thm_APFB06_needsNewRecord_iff_inside_held
import Theorems.Thm_APFB06_heldRelationExists_of_alignments_hold_relation
import Theorems.Thm_APFB06_held_relation_pays_floor
import Theorems.Thm_APFPaper1_Source_needed_subset_kept
import Theorems.Thm_APFPaper1_Source_card_needed_le_bill
import Theorems.Thm_APFPaper1_Source_card_needed_le_familyCost
import Theorems.Thm_APFPaper1_Source_familyCost_eq_card_of_available
import Theorems.Thm_APFPaper1_Source_join_of_available
import Theorems.Thm_APFPaper1_Continuation_prefixMonotone_of_sum_and_keep
import Theorems.Thm_APFPaper1_Continuation_cont_prefix_of_sum_and_keep
import Theorems.Thm_APFPaper1_Continuation_cont_iff_contHereditary_of_sum_and_keep
import Theorems.Thm_APFPaper1_Continuation_subwordHeredity_of_subword_bill
import Theorems.Thm_APFPaper1_Continuation_subwordHeredity_of_sum_and_keeps
import Definitions.Def_APFB06_worlds_against_the_occupant_statement_Vocabulary
import Theorems.Thm_APFPaper1_Source_not_holdingNothingFree_of_bill_pos
import Theorems.Thm_APFPaper1_Source_not_holdingNothingFree_of_keeps
import Theorems.Thm_APFPaper1_Source_not_inFull_of_not_free
import Theorems.Thm_APFB06_ReadingsWorld_meets_in_full
import Theorems.Thm_APFB06_MovingWorld_holdingNothingFree
import Theorems.Thm_APFB06_MovingWorld_fcost_empty
import Theorems.Thm_APFB06_MovingWorld_every_family_occupied
import Theorems.Thm_APFB06_MovingWorld_occupant_holds_with_parts_at_unit
import Theorems.Thm_APFB06_MovingWorld_meets_in_full
import Theorems.Thm_APFB06_SharedWorld_holdingNothingFree
import Theorems.Thm_APFB06_SharedWorld_fcost_empty
import Theorems.Thm_APFB06_SharedWorld_every_family_occupied
import Theorems.Thm_APFB06_SharedWorld_occupant_holds_with_parts_at_unit
import Theorems.Thm_APFB06_SharedWorld_meets_in_full
import Theorems.Thm_APFB06_ResidueNullWorld_meets_in_full
import Theorems.Thm_APFB06_BridgeWorld_not_holdingNothingFree
import Theorems.Thm_APFB06_BridgeWorld_fails_in_full
import Theorems.Thm_APFB06_RelationWorldR2_not_holdingNothingFree
import Theorems.Thm_APFB06_ResidueWorldR2_Unequal_not_holdingNothingFree
import Theorems.Thm_APFB06_BusWorld_not_holdingNothingFree
import Theorems.Thm_APFB06_OverheadWorld_not_holdingNothingFree
import Theorems.Thm_APFB06_DiscountWorld_not_holdingNothingFree
import Theorems.Thm_APFPaper1_LoadWorld_not_holdingNothingFree
import Theorems.Thm_APFPaper5_Worlds_not_holdingNothingFree
import Theorems.Thm_APFB06_WorldsAudit_three_signs_among_worlds_meeting_the_statement
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.NormNum
set_option autoImplicit false
open APFPaper1.Continuation APFPaper1.Source
namespace APFB06.BridgeNullWorld
abbrev Frag : Unit → Unit → Type := fun _ _ => Unit
abbrev Raw : Unit → Type := fun _ => Bool
abbrev Res : Unit → Type := fun _ => ℕ
abbrev Dist : Type := APFPaper5.Worlds.Dist
def step : (g h : Unit) → Frag g h → Raw g → Raw h → Prop := fun _ _ _ x y => x = true ∧ y = false
/-- What a word loads: nothing for the empty word, one unit for any other. -/
def load : {g h : Unit} → Word Frag g h → ℕ
| _, _, Word.nil _ => 0
| _, _, Word.cons _ _ => 1
/-- The records a word keeps: none for the empty word, the one record for any other. -/
def keptW : {g h : Unit} → Word Frag g h → Finset Unit
| _, _, Word.nil _ => ∅
| _, _, Word.cons _ _ => {()}
theorem load_le_one : ∀ {g h : Unit} (w : Word Frag g h), load w ≤ 1
| _, _, Word.nil _ => Nat.zero_le 1
| _, _, Word.cons _ _ => le_refl 1
def resource : (g : Unit) → WordFrom Frag g → Res g := fun _ w => load w.2
def calibration : (g : Unit) → Res g → NNReal := fun _ n => (n : NNReal)
def C : Unit → NNReal := fun _ => 2
def reads : (h : Unit) → Raw h → Unit → Bool := fun _ y _ => y
abbrev K : (g : Unit) → Raw g → WordFrom Frag g → Prop := Cont step resource calibration C
/-- The one-fragment word. -/
def one (g : Unit) : WordFrom Frag g := ⟨g, Word.cons (g := g) (h := g) (k := g) () (Word.nil g)⟩
theorem budget (g : Unit) (w : WordFrom Frag g) : calibration g (resource g w) ≤ C g := by
show ((load w.2 : ℕ) : NNReal) ≤ 2
have h : load w.2 ≤ 2 := le_trans (load_le_one w.2) one_le_two
exact_mod_cast h
theorem one_runs : Executes step (one ()).2 true false := ⟨false, ⟨rfl, rfl⟩, rfl⟩
theorem one_only_from_true_to_false (x : Raw ()) (y : Raw (one ()).1)
(h : Executes step (one ()).2 x y) : x = true ∧ y = false := by
obtain ⟨y', ⟨hx, hy'⟩, hnil⟩ := h
have hyy : y' = y := hnil
exact ⟨hx, hyy ▸ hy'⟩
theorem profile_ne : K () true ≠ K () false := by
intro h
have h1 : K () true (one ()) := ⟨⟨false, one_runs⟩, budget _ _⟩
have h2 : K () false (one ()) := Eq.mp (congrFun h (one ())) h1
obtain ⟨⟨y, hy⟩, _⟩ := h2
exact Bool.noConfusion (one_only_from_true_to_false false y hy).1
theorem profile_inj (a b : Bool) (h : K () a = K () b) : a = b := by
cases a <;> cases b
· rfl
· exact absurd h.symm profile_ne
· exact absurd h profile_ne
· rfl
/-- The mark as a distinction on the B01 quotient. -/
def markD : APFB01.PhysicalState (K ()) → Bool := Quot.lift (fun x : Bool => x) profile_inj
def D : (g : Unit) → Set (APFB01.PhysicalState (K g) → Bool) := fun _ => Set.univ
def markTask : APFB06.Task (K ()) (D ()) := ⟨markD, Set.mem_univ _⟩
def align : APFB06.OriginalAlignment (K ()) (D ()) where
carrier := APFB01.physicalClass (K ()) true
carried := {markTask}
active := by
intro d hd
rw [Finset.mem_singleton] at hd
subst hd
rfl
/-! ### Protocols and records -/
/-- The protocols: the empty word and the one-fragment word. -/
def protocols : (g : Unit) → Set (WordFrom Frag g) := fun g => {nullWord g, one g}
abbrev Pr (g : Unit) : Type := {p : WordFrom Frag g // p ∈ protocols g}
/-- The do-nothing protocol. -/
def protoNull : Pr () := ⟨nullWord (), Or.inl rfl⟩
/-- The one-fragment protocol. -/
def protoOne : Pr () := ⟨one (), Or.inr rfl⟩
def kept (g : Unit) (w : WordFrom Frag g) : Finset Unit := keptW w.2
def keptP (p : Pr ()) : Finset Unit := kept () p.val
/-- B02's distinction domain in this world: the identity is the one distinction. -/
abbrev Delta : (g : Unit) → (Raw g → Bool) → Prop := fun _ d => d = id
def idDist : {d : Raw () → Bool // Delta () d} := ⟨id, rfl⟩
def maint (g : Unit) (p : {p : WordFrom Frag g // p ∈ protocols g}) : Set Unit := ↑(kept g p.val)
/-- The record law: a set of records suffices for the mark exactly when it contains the record. -/
def suff (g : Unit) (_ : {p : WordFrom Frag g // p ∈ protocols g}) (s : Set Unit) (_ : Dist) : Prop :=
() ∈ s
def uses (g : Unit) (_ : {p : WordFrom Frag g // p ∈ protocols g}) (_ : Dist) (_ : Set Unit) : Prop :=
True
def wholeRes (g : Unit) (p : {p : WordFrom Frag g // p ∈ protocols g}) : Res g := resource g p.val
/-- The records a distinction needs: the one record. -/
def fam (_ : Dist) : Finset Unit := {()}
/-- The same law for B06's tasks. -/
def suffT (g : Unit) (_ : {p // p ∈ protocols g}) (s : Set Unit) (_ : APFB06.Task (K g) (D g)) :
Prop := () ∈ s
def usesT (g : Unit) (_ : {p // p ∈ protocols g}) (_ : APFB06.Task (K g) (D g)) (_ : Set Unit) :
Prop := True
/-- The joint class: the extensional one (Def_APFB06_ExtensionalJoint) on that record data. -/
def J : (g : Unit) → Finset (APFB06.Task (K g) (D g)) → Set {p // p ∈ protocols g} :=
fun g => APFB06.extensionalJoint (maint g) (suffT g) (usesT g)
def actualJoint : Set (Sigma fun g => APFB06.OriginalAlignment (K g) (D g)) := {⟨(), align⟩}
/-! ### Cost is the number of records needed -/
/-- The family cost of the ledger on this world. -/
noncomputable abbrev fcost (S : Finset Dist) : ℝ :=
familyCost (wholeRes ()) (calibration ()) (maint ()) (suff ()) (uses ()) S
/-! ### The eight declared forms -/
/-- The eight declared forms on the supplied data; B06 is the instance with the alignment `align`. -/
def EightHold : Prop :=
APF_B01_DeclaredInput (K ())
(fun (f : APFB01.PhysicalState (K ()) → Prop) (x : Bool) => f (APFB01.physicalClass (K ()) x))
(fun (f : APFB01.PhysicalState (K ()) → Prop) (x : Bool) => f (APFB01.physicalClass (K ()) x))
(fun (f : APFB01.PhysicalState (K ()) → Prop) (x : Bool) => f (APFB01.physicalClass (K ()) x))
(fun (f : APFB01.PhysicalState (K ()) → Prop) (x : Bool) => f (APFB01.physicalClass (K ()) x)) ∧
APFB02.B02SourceMeaning (Context := Unit) (X := fun _ => Bool) (Q := fun g => WordFrom Frag g)
(P := fun g => {p : WordFrom Frag g // p ∈ protocols g}) (Record := fun _ => Unit)
K Delta maint suff uses ∧
APFB03.B03TaskCost (Context := Unit) (D := fun _ => Dist)
(P := fun g => {p : WordFrom Frag g // p ∈ protocols g})
(R := fun _ => ℕ) (Record := fun _ => Unit) wholeRes calibration maint suff uses ∧
APFB04.B04FiniteCapacity (Context := Unit) (fun _ => (2 : ℝ)) ∧
APFB05.MarginalFloor (Context := Unit) (D := fun _ => Dist)
(P := fun g => {p : WordFrom Frag g // p ∈ protocols g})
(R := fun _ => ℕ) (Record := fun _ => Unit) wholeRes calibration maint suff uses
(fun _ _ => True) (fun _ => 2) (fun _ => 1) ∧
APFB06.AmendedB06_20260914 K D protocols J (fun g p => resource g p.val) calibration C
actualJoint ∧
APFB07a.A2Selection (Interface := Unit)
(Configuration := fun _ => APFB01.PhysicalState (K ()))
(fun _ s => s = APFB01.physicalClass (K ()) true) (fun _ _ => (1 : ℝ))
(fun _ => APFB01.physicalClass (K ()) true) ∧
APFB07b.BWUniqueMinimum (Interface := Unit)
(Configuration := fun _ => APFB01.PhysicalState (K ()))
(fun _ s => s = APFB01.physicalClass (K ()) true) (fun _ _ => (1 : ℝ))
/-! ### The occupant statement in full -/
/-! ### The endpoint bridge -/
/-! ### B06 in the instantiation of the held-family theorems; no relation is held -/
theorem hresp (g : Unit) (d : {d : Raw g → Bool // Delta g d}) (x y : Raw g)
(h : K g x = K g y) : d.val x = d.val y := by
cases g
rw [profile_inj x y h]
def alignP : APFB06.OriginalAlignment (K ())
(APFB06.physicalDomain (K ()) (Delta ()) (hresp ())) where
carrier := APFB01.physicalClass (K ()) true
carried := {APFB06.taskOfDistinction (K ()) (Delta ()) (hresp ()) idDist}
active := by
intro t ht
rw [Finset.mem_singleton] at ht
subst ht
rfl
def actualJointP : Set (Sigma fun g =>
APFB06.OriginalAlignment (K g) (APFB06.physicalDomain (K g) (Delta g) (hresp g))) :=
{⟨(), alignP⟩}
instance instDecEqDomain (g : Unit) : DecidableEq {d : Raw g → Bool // Delta g d} :=
fun a b => isTrue (Subtype.ext (a.2.trans b.2.symm))
/-! ### The record sentences SUM, KEEP, AFTER and CAPACITY -/
/-- The cost of the one record. -/
def costOne : Unit → NNReal := fun _ => 1
/-! ### All of it together -/
end APFB06.BridgeNullWorld