Endpoint control, outcome agreement and score factorization
DefinitionAPFReachKernel_QuantumDoorsapfconditional-referencereachkernel
The predicates describe joint endpoint maintenance, failure of joint maintenance, a single target, deterministic outcomes, agreement of a readout across outcomes, and destination-only score factorization. Historical labels such as EndpointRegister denote value agreement, not a stored physical register. The sharpness example is supplied model data. These interfaces alone establish neither quantum indefiniteness nor Paper 5 K1.
Definition code
import Definitions.Def_APFReachKernel_Ashby
import Definitions.Def_APFReachKernel_ContinuationModel
import Definitions.Def_APFReachKernel_Foundation
import Definitions.Def_APFReachKernel_K1Statement
import Definitions.Def_APFReachKernel_SpinControl
import Definitions.Def_APFReachKernel_SpinRegulation
namespace ReachKernel.QuantumDoors
end ReachKernel.QuantumDoors
/-
ReachKernel/QuantumDoors.lean
Conditional endpoint-control, outcome-agreement and score-factorization
predicates with explicit finite controls. Names are historical.
ValueDefinite and EndpointRegister mean agreement of readout values across
all possible outcomes; they do not construct physical stored records,
recovery or maintained support. Multivalued reach is not a quantum claim.
K1Extends is the endpoint Boolean encoding, not actual Paper5 K1.
The spin example permits joint endpoint control for its named pair, has
readout disagreement after Mx, and has a history-sensitive sharpness score;
these are separate results, not a claim that all three doors are closed.
-/
set_option autoImplicit false
namespace ReachKernel.QuantumDoors
open Ashby
section General
variable {X Q R K : Type} [LE K] {Cont : X → Set Q} {calib : R → K} {C : K}
/-! ### Door 1: complementarity -/
/-- Some admitted policy maintains `d` at `b` AND `d'` at `b'` against `Ch`. -/
def JointlyMaintainable (M : ContinuationModel Cont calib C) (Ch : List X)
(d d' : PhysicalState Cont → Bool) (b b' : Bool) : Prop :=
∃ ρ : X → Q, (∀ x ∈ Ch, ρ x ∈ Cont x) ∧ Maintains M ρ Ch d b ∧ Maintains M ρ Ch d' b'
/-- Each can be maintained; both cannot, at any pair of values. -/
def Complementary (M : ContinuationModel Cont calib C) (Ch : List X)
(d d' : PhysicalState Cont → Bool) : Prop :=
(∃ b ρ, (∀ x ∈ Ch, ρ x ∈ Cont x) ∧ Maintains M ρ Ch d b) ∧
(∃ b' ρ, (∀ x ∈ Ch, ρ x ∈ Cont x) ∧ Maintains M ρ Ch d' b') ∧
∀ b b', ¬ JointlyMaintainable M Ch d d' b b'
/-- A policy that pins every disturbance to a single class `y₀`. -/
def SingleTarget (M : ContinuationModel Cont calib C) (ρ : X → Q) (Ch : List X)
(y₀ : PhysicalState Cont) : Prop :=
∀ x ∈ Ch, ∀ y, M.Reaches x (ρ x) y → y = y₀
/-! ### Door 2: value-definiteness at the destination -/
/-- All reachable outcomes agree on one readout value; no physical record is supplied. -/
def ValueDefinite (M : ContinuationModel Cont calib C) (x : X) (c : Q)
(d : PhysicalState Cont → Bool) : Prop :=
∃ b, ∀ y, M.Reaches x c y → d y = b
/-- Reach is single-valued. -/
def Deterministic (M : ContinuationModel Cont calib C) : Prop :=
∀ x c y y', M.Reaches x c y → M.Reaches x c y' → y = y'
/-- Outcome agreement across all policy outcomes for each tested readout. Historical EndpointRegister name; no recovery or support-maintenance result. -/
def EndpointRegister (M : ContinuationModel Cont calib C) (ρ : X → Q) (Ch : List X)
(Δ : List (PhysicalState Cont → Bool)) : Prop :=
∀ x ∈ Ch, ∀ d ∈ Δ, ValueDefinite M x (ρ x) d
/-! ### Door 3: contextual scores on reach pairs -/
/-- A score that depends on the reach pair only through its destination. -/
def ClassScore (M : ContinuationModel Cont calib C) {D V : Type} (s : Score M D V) : Prop :=
∃ f : D → PhysicalState Cont → V, ∀ d p, s d p = f d p.y
/-- A score that tells two reach pairs with the same destination apart. -/
def Contextual (M : ContinuationModel Cont calib C) {D V : Type} (s : Score M D V) : Prop :=
∃ (d : D) (p p' : ReachPair M), p.y = p'.y ∧ s d p ≠ s d p'
end General
/-! ### The spin control: separate outcomes for the three predicates -/
section Spin
open _root_.ReachKernel.SpinControl (Ax Op cont model outcomes class_eq_iff axisD)
open _root_.ReachKernel.SpinControl.Ax _root_.ReachKernel.SpinControl.Op
open _root_.ReachKernel.SpinRegulation (Ch ρ)
/-- Door 3: the sharpness score — how many outcomes the word had. -/
def sharpness : Score model Unit Nat :=
fun _ p => (outcomes p.x p.c.2).length
end Spin
end ReachKernel.QuantumDoors
Source
APF ReachKernel; original archive f05a126714fe8d24a4377f87a7e460777555e19227087abb6c18dbe2ffae959e, ReachKernel/QuantumDoors.lean; corrected compatible source manifest 2c8ccc43b416ba6e4f1b9eb02d4780b828e8dab689651eb567f7d159065cdfd2. Private conditional/reference model.