A supplied reading swap on four states
DefinitionAPFPaper5_Worlds_FourStateWordsapfapf-referencesib-v58-2026-11
Defines the state map whose readings (a,b) become (b,a). This is finite model data. These finite worlds certify only supplied Lean predicates: EightHoldOn4 uses the historical B02 form; its B06 distinction domain and actualJoint are existentially chosen, the serving relation is universal, and A2/BW use a singleton admissible configuration with constant price. They do not certify physical-input consistency, independence, actual execution, full physical admission or readout coverage.
Supplied data and hypotheses
- {'declaration': 'APFPaper5.Worlds.run4', 'statement_and_binders': 'def run4 (t s : Fin 4 → Fin 4) : Fin 4 → List Bool → Fin 4'}
- {'declaration': 'APFPaper5.Worlds.contOf', 'statement_and_binders': 'def contOf (t s : Fin 4 → Fin 4) (x : Fin 4) (w : List Bool) : Prop'}
- {'declaration': 'APFPaper5.Worlds.opposed4', 'statement_and_binders': 'def opposed4 (x y : Fin 4) : ℕ'}
- {'declaration': 'APFPaper5.Worlds.quarterMap', 'statement_and_binders': 'def quarterMap (x : Fin 4) : Fin 4'}
- {'declaration': 'APFPaper5.Worlds.mixMap', 'statement_and_binders': 'def mixMap (x : Fin 4) : Fin 4'}
- {'declaration': 'APFPaper5.Worlds.mergeMap', 'statement_and_binders': 'def mergeMap (x : Fin 4) : Fin 4'}
- {'declaration': 'APFPaper5.Worlds.swapMap', 'statement_and_binders': 'def swapMap (x : Fin 4) : Fin 4'}
Limits
- H58-01
- H58-02
- H58-03
- H58-04
- H58-05
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.
Definition code
/- APF Foundation Ledger — definition node DRAFT (session EthanBrooke-01WrrBvu, 2026-11-14; not gated, not reviewed) name: APFPaper5_Worlds_FourStateWords title: Supplied data for worlds on four raw states in which an admitted one-letter word acts on the states: the run of a word, the continuation relation it gives, and four maps of the states inputs_revision: 2026-11-14.1 mathlib_rev: 0df444a360eaa60ab8c11dca51a86af692955474 revision_note: these are worlds built on the data of World C (Def_APFPaper5_Worlds_FourObjects). EightHoldOn4 is built from the declared Lean forms as they stood at FOUNDATION_INPUTS revision 2026-10-04.1; B02's added sentence (revision 2026-11-14.1) is proved of each world separately. source: supplied data, chosen by this seat. The reading of "the state after a word" is that of Thm_APFB01_hold_rearranges (APFB01 hold_draws_nothing_of_derivative): the state after a word u is one whose continuation profile is the profile before, read after u. standing: supplied data only. Nothing here is an input, a reading or a claim about a physical context. contents: run4 t s x w is the raw state reached from x by the word w, where the letter true acts by the map t and the letter false by the map s. contOf t s admits a word at a raw state when dA is held on its true side at the state the word leads to. opposed4 counts the distinctions (dA, dB) on which two raw states are held on opposite sides. quarterMap sends (a, b) to (b, not a). mixMap sends (a, b) to (a, a differs from b). mergeMap sends (a, b) to (a, a). swapMap sends (a, b) to (b, a). Here a is the side of dA and b that of dB. -/ import Definitions.Def_APFPaper5_Worlds_FourObjects set_option autoImplicit false namespace APFPaper5.Worlds /-- The raw state reached by a word: the letter true acts by `t`, the letter false by `s`. -/ def run4 (t s : Fin 4 → Fin 4) : Fin 4 → List Bool → Fin 4 | x, [] => x | x, true :: w => run4 t s (t x) w | x, false :: w => run4 t s (s x) w /-- A word is admitted at a raw state when dA is held on its true side at the state the word leads to. -/ def contOf (t s : Fin 4 → Fin 4) (x : Fin 4) (w : List Bool) : Prop := dA (run4 t s x w) = true /-- The number of the two distinctions on which two raw states are held on opposite sides. -/ def opposed4 (x y : Fin 4) : ℕ := (if dA x = dA y then 0 else 1) + (if dB x = dB y then 0 else 1) /-- Exchange the two distinctions and turn one over: (a, b) to (b, not a). -/ def quarterMap (x : Fin 4) : Fin 4 := if x = 0 then 2 else if x = 1 then 0 else if x = 2 then 3 else 1 /-- Keep dA; dB comes to read whether the two were opposed: (a, b) to (a, a differs from b). -/ def mixMap (x : Fin 4) : Fin 4 := if x = 0 then 0 else if x = 1 then 3 else if x = 2 then 2 else 1 /-- Both distinctions take the side dA had: (a, b) to (a, a). -/ def mergeMap (x : Fin 4) : Fin 4 := if x = 0 then 0 else if x = 1 then 3 else if x = 2 then 0 else 3 /-- Exchange the two distinctions: (a, b) to (b, a). -/ def swapMap (x : Fin 4) : Fin 4 := if x = 0 then 0 else if x = 1 then 2 else if x = 2 then 1 else 3 end APFPaper5.Worlds
Source
Definitions/Def_APFPaper5_Worlds_FourStateWords.lean; Sib v58 / pullbacks v9, SHA-256 e3350c568f718340d66c0c39de665774559f759900ffb4ee3e491b31392e318a. {'path': 'Papers/Paper 01 - The Enforceability of Distinction/Paper_1_Enforceability_of_Distinction_Supplement_v9.28.tex', 'locator': '1276-1332;2168-2180', 'scope': 'Physical distinction descent and filter pull-back; does not itself supply NothingDrawn on the listed coordinate family.'}; {'path': 'Papers/Paper 05 - Quantum Structure - Hilbert Space and Born Rule/Paper_5_Quantum_Structure_Hilbert_Born_Supplement_v7.33.tex', 'locator': '1660-1680;1714-1723;2966-3076', 'scope': 'Conditional ledger isometry, connected real-carrier quarter turns, and remaining physical readout obligations.'}; {'path': 'APF Reference Docs/APF Reconstruction Spine/FOUNDATION_INPUTS.json', 'revision': '2026-11-14.1', 'scope': 'B02 finite assignment amendment only; no installed hold or motion reading.'}; {'path': 'frozen/builder/RULING_hold_readings_2026-11-14.md', 'scope': 'Author discussion recorded as readings; explicit theorem hypotheses, not installed input adoption.'}; {'path': 'frozen/builder/TEE_UP_one_opposition_away_2026-11-14.md', 'scope': 'Advice/question only; no ruling selects every-state or occupant-state interpretation.'}; {'path': 'source/Definitions/Def_APFPaper5_Worlds_FourStateWords.lean', 'sha256': 'e3350c568f718340d66c0c39de665774559f759900ffb4ee3e491b31392e318a'}
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.