Documentation

CsdLean4.LF6.GHZMerminCarve

LF6-C.3: the GHZ Mermin-context carve (the genuine contextual increment) #

Category: 6-Local (the dynamical realisation of the multipartite entangled de-isolation tier; the D1 entangled frontier at the three-party GHZ Mermin contexts).

This is LF6-C.3 of specs/lf6-plan.md: the genuine contextual increment that C.2 (GHZDeisolationFlow.lean) honestly deferred. Where C.2's minimal computational-basis carve lands on the GHZ diagonal weights and ties to C.1 only by a bare re-export of no_product_partition_realises_ghz, C.3 builds the GHZ Mermin-context carve: the GHZ state in each X/Y measurement basis, whose sign-product-weighted pointer-block Fubini-Study volumes reproduce the four Mermin correlations <XXX> = +1, <XYY> = <YXY> = <YYX> = -1, and the carve ties to C.1 by its OWN achieved correlations (ghzDeisolation_carve_not_product). This is the three-party analogue of A.2's singletDeisolation_blockVolume_correlation + singletDeisolation_carve_not_product.

The new infrastructure (the GHZ Pauli-context joint eigenstructure) #

The corpus carried the singlet joint spin eigenstructure (LF3/Singlet/JointEig) but not its three-party GHZ analogue. This file builds it for the four Mermin contexts. Each context is a triple of Pauli axes ctx : Fin 3 -> PauliAxis; the joint eigenbasis of the product observable sigma.ctx0 (x) sigma.ctx1 (x) sigma.ctx2 is the tensor product of the local X/Y single-qubit eigenstates.

The construction (reusing LF5 @ N = 8 + the new eigenstructure) #

The three-qubit register is measured by the LF5 von Neumann de-isolation flow measurementFlow 8 e on the dilated Σ' = ℂℙ^{63} (64 = 8·8). The prepared state is the GHZ state in the context-ctx basis, nudgedGHZ_mermin ctx, whose computational coordinate at the pointer cell o is ⟨ghz, ghzMerminEig ctx o⟩. Then the headline:

pointer-block o FS volume  =  ‖⟨e_{ghzIdx o}, φ⟩‖²           -- LF5 vnDilation_pointer_volume @ N=8
                           =  ‖⟨ghz, ghzMerminEig ctx o⟩‖²   -- nudge coordinate identity
                           =  (1/16)(1 + signProd o * pv)²   -- ghzMerminEig_born

and the sign-product-weighted block-volume sum ∑_o signProd o · (block o volume) = pv = <ctx> — the Mermin expectation (ghzDeisolation_blockVolume_correlation). Born = FS-volume is imported through vnDilation_pointer_volume (derived one layer down by the moment-map / Duistermaat-Heckman cluster, fs_born_volume_ratio_N, Gleason-free); this file does not re-derive it. What is exercised is the measurement dynamics (Phi != id) plus the new Mermin-context eigenstructure.

The increment over C.2 (the genuine contextual tie) #

C.2's ghzDeisolation_contextuality_anchor is a bare re-export of C.1. C.3's ghzDeisolation_carve_not_product feeds the carve's OWN four achieved Mermin correlations (each a sign-product-weighted sum of bornRegion FS volumes on Σ', discharged to the Mermin value ±1 via ghzDeisolation_blockVolume_correlation) into C.1 no_product_partition_realises_ghz. The four-context tie is closed: no setting-local ±1 product partition reproduces the carve's four correlations, which trigger Mermin's +1 = -1 all-or-nothing contradiction. This is one theorem tying the dynamical carve to C.1, not a juxtaposition.

Honest scope (the C.3 ledger) #

All exports are foundational-triple-only (Gleason-free; the LF5 pointer engine is off Busch, C.1 is measure-theoretic Mermin content).

Reference: specs/lf6-plan.md (LF6-C.3).

The single-qubit Pauli-axis eigen-amplitudes #

def CSD.LF6.signC (o : Fin 2) :

The ±1 eigenvalue sign of outcome o : Fin 2: signC 0 = +1, signC 1 = -1.

Equations
Instances For

    The complex phase distinguishing the sigma_x eigenstates (1) from the sigma_y eigenstates (i).

    Equations
    Instances For

      The DetectorSetting realising a Pauli axis: x ↦ chshA = (1,0,0), y ↦ chshA' = (0,1,0), so pauliDot (axisSetting .x) = sigma_x, pauliDot (axisSetting .y) = sigma_y.

      Equations
      Instances For
        noncomputable def CSD.LF6.localAmp (ax : Empirical.GHZ.PauliAxis) (o b : Fin 2) :

        The single-qubit amplitude of the axis-ax eigenstate with outcome o at computational index b: (1/√2)·1 at b = 0, (1/√2)·signC o·axisPhase ax at b = 1. For x this is |±⟩ = (|0⟩ ± |1⟩)/√2; for y this is |±i⟩ = (|0⟩ ± i|1⟩)/√2.

        Equations
        Instances For
          theorem CSD.LF6.localAmp_one (ax : Empirical.GHZ.PauliAxis) (o : Fin 2) :
          localAmp ax o 1 = (↑2)⁻¹ * ((signC o) * axisPhase ax)
          noncomputable def CSD.LF6.localEig (ax : Empirical.GHZ.PauliAxis) (o : Fin 2) :

          The genuine single-qubit Pauli eigenstate.

          Equations
          Instances For
            theorem CSD.LF6.localEig_eigenvector (ax : Empirical.GHZ.PauliAxis) (o : Fin 2) :
            ((LF3.pauliDot (axisSetting ax)).mulVec fun (b : Fin 2) => localAmp ax o b) = fun (b : Fin 2) => (signC o) * localAmp ax o b

            localEig is a genuine eigenvector of pauliDot (axisSetting ax) with eigenvalue signC o = ±1. This certifies the eigenstructure is the actual Pauli-context eigenbasis, not a stub: sigma_x |±⟩ = ±|±⟩, sigma_y |±i⟩ = ±|±i⟩.

            The GHZ Pauli-context joint eigenstructure #

            def CSD.LF6.signProd (o : Fin 2 × Fin 2 × Fin 2) :

            The ±1 eigenvalue of the joint outcome o (the product of the three local signs).

            Equations
            Instances For

              The complex phase product of a Mermin context (1 for XXX, -1 for the three contexts with two y axes).

              Equations
              Instances For
                noncomputable def CSD.LF6.ghzMerminEig (ctx : Fin 3Empirical.GHZ.PauliAxis) (o : Fin 2 × Fin 2 × Fin 2) :

                The GHZ Pauli-context joint eigenstate at context ctx and joint outcome o: the coordinatewise product of the three genuine local Pauli eigenstates (localEig), i.e. the tensor localEig (ctx 0) o.1 (x) localEig (ctx 1) o.2.1 (x) localEig (ctx 2) o.2.2. The joint eigenbasis of sigma.ctx0 (x) sigma.ctx1 (x) sigma.ctx2, with joint eigenvalue signProd o.

                Equations
                Instances For

                  The GHZ inner-product reducer #

                  The GHZ inner-product reducer. The GHZ state has support only on (0,0,0) and (1,1,1) (each amplitude (√2)⁻¹, real), so ⟨ghz, v⟩ = (√2)⁻¹·(v(0,0,0) + v(1,1,1)) for any vector v.

                  The GHZ Mermin joint-eigenstate amplitude. ⟨ghz, ghzMerminEig ctx o⟩ = (1/4)(1 + signProd o · phaseProd ctx) — the genuine GHZ overlap with the joint Pauli-context eigenstate.

                  theorem CSD.LF6.ghzMerminEig_born (ctx : Fin 3Empirical.GHZ.PauliAxis) (o : Fin 2 × Fin 2 × Fin 2) (pv : ) (hpv : phaseProd ctx = pv) :

                  The Born identity for the GHZ Mermin joint eigenstate (the three-party analogue of singletJointEig_born): ‖⟨ghz, ghzMerminEig ctx o⟩‖² = (1/16)(1 + signProd o · pv)², for a context with real phase product pv = phaseProd ctx. Genuinely computed from the eight basis evaluations of the GHZ state and the local Pauli amplitudes.

                  The four Mermin contexts and their phase products #

                  The XXX Mermin context (all sigma_x).

                  Equations
                  Instances For

                    The weight sum / correlation sum algebra #

                    theorem CSD.LF6.sum_merminWeight (pv : ) (hpv2 : pv ^ 2 = 1) :
                    o : Fin 2 × Fin 2 × Fin 2, 1 / 16 * (1 + signProd o * pv) ^ 2 = 1

                    The GHZ Mermin block weights sum to 1 (the prepared state is a unit preparation), using pv² = 1.

                    theorem CSD.LF6.sum_signProd_merminWeight (pv : ) :
                    o : Fin 2 × Fin 2 × Fin 2, signProd o * (1 / 16 * (1 + signProd o * pv) ^ 2) = pv

                    The sign-product-weighted GHZ Mermin block weights sum to pv — the Mermin correlation. Pure algebra: the four signProd = +1 outcomes contribute (1+pv)², the four signProd = -1 outcomes -(1-pv)², and (1+pv)² - (1-pv)² = 4pv.

                    The nudged GHZ state in the context basis (the prepared state) #

                    The prepared state. The GHZ state in the context-ctx measurement basis, reindexed to the computational Fin 8 basis: nudgedGHZ_mermin ctx k = ⟨ghz, ghzMerminEig ctx (ghzIdx.symm k)⟩, the analogue of A.2's nudgedSinglet a b.

                    Equations
                    Instances For
                      theorem CSD.LF6.nudgedGHZ_mermin_born (ctx : Fin 3Empirical.GHZ.PauliAxis) (o : Fin 2 × Fin 2 × Fin 2) (pv : ) (hpv : phaseProd ctx = pv) :

                      The nudge coordinate-Born identity. The squared computational amplitude of the nudged GHZ state at the pointer cell o equals the Mermin block weight.

                      theorem CSD.LF6.nudgedGHZ_mermin_coord_normSq (ctx : Fin 3Empirical.GHZ.PauliAxis) (o : Fin 2 × Fin 2 × Fin 2) (pv : ) (hpv : phaseProd ctx = pv) :
                      (nudgedGHZ_mermin ctx).ofLp (ghzIdx o) ^ 2 = 1 / 16 * (1 + signProd o * pv) ^ 2
                      theorem CSD.LF6.nudgedGHZ_mermin_norm (ctx : Fin 3Empirical.GHZ.PauliAxis) (pv : ) (hpv : phaseProd ctx = pv) (hpv2 : pv ^ 2 = 1) :

                      The nudged GHZ state is a unit preparation (real phase product with pv² = 1). Discharges the hypothesis of the LF5 pointer engine.

                      theorem CSD.LF6.nudgedGHZ_mermin_ne_zero (ctx : Fin 3Empirical.GHZ.PauliAxis) (pv : ) (hpv : phaseProd ctx = pv) (hpv2 : pv ^ 2 = 1) :

                      Deliverable: pointer-block FS volume = Mermin block weight #

                      theorem CSD.LF6.ghzMermin_pointer_volume {M : } (ctx : Fin 3Empirical.GHZ.PauliAxis) (pv : ) (hpv : phaseProd ctx = pv) (hpv2 : pv ^ 2 = 1) (e : Fin 8 × Fin 8 Fin (M + 1)) (p₀ : LF4.CPN (M + 1)) (ψ' : EuclideanSpace (Fin (M + 1))) (hψ'eq : ψ' = (LinearIsometryEquiv.piLpCongrLeft 2 e) ((Matrix.toEuclideanLin (LF5.vnDilationV 8)) (nudgedGHZ_mermin ctx))) (hψ'0 : ψ' 0) (o : Fin 2 × Fin 2 × Fin 2) :
                      n : Fin 8, ((Matrix.UnitaryGroup.fubiniStudyMeasure p₀) (LF4.bornRegion ψ' hψ'0 (e (n, ghzIdx o)))).toReal = 1 / 16 * (1 + signProd o * pv) ^ 2

                      The Mermin-context reproduction (per-block). The context-fixed BornRegion pointer-block o Fubini-Study volume of the GHZ de-isolation flow equals the Mermin block weight (1/16)(1 + signProd o · pv)², for the prepared state φ = nudgedGHZ_mermin ctx. Composes LF5 vnDilation_pointer_volume at N = 8 (Gleason-free, Born = FS-volume imported from the DH engine) with the nudge coordinate-Born identity.

                      The headline: the carve's block-volume correlation is the Mermin value #

                      noncomputable def CSD.LF6.merminCarveCorrelation {M : } (p₀ : LF4.CPN (M + 1)) (e : Fin 8 × Fin 8 Fin (M + 1)) (ψ' : EuclideanSpace (Fin (M + 1))) (hψ'0 : ψ' 0) :

                      The carve's sign-product-weighted block-volume correlation (merminCarveCorrelation). The achieved value of the EXHIBITED Mermin-context carve: a sign-product-weighted sum of bornRegion Fubini-Study volumes on Σ' = ℂℙ^{63} (not a free real).

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        theorem CSD.LF6.ghzDeisolation_blockVolume_correlation {M : } (ctx : Fin 3Empirical.GHZ.PauliAxis) (pv : ) (hpv : phaseProd ctx = pv) (hpv2 : pv ^ 2 = 1) (e : Fin 8 × Fin 8 Fin (M + 1)) (p₀ : LF4.CPN (M + 1)) (ψ' : EuclideanSpace (Fin (M + 1))) (hψ'eq : ψ' = (LinearIsometryEquiv.piLpCongrLeft 2 e) ((Matrix.toEuclideanLin (LF5.vnDilationV 8)) (nudgedGHZ_mermin ctx))) (hψ'0 : ψ' 0) :
                        merminCarveCorrelation p₀ e ψ' hψ'0 = pv

                        ghzDeisolation_blockVolume_correlation (THE C.3 headline, the genuine increment over C.2). For any Mermin context with real phase product pv, the carve's sign-product-weighted pointer-block Fubini-Study-volume sum equals the Mermin expectation pv. GENUINELY COMPUTED (LF5 engine block volumes composed with the Mermin Born identity), not asserted — this is what C.2's diagonal carve lacked. Instantiated at the four contexts: <XXX> = +1, <XYY> = <YXY> = <YYX> = -1.

                        The carve's XXX block-volume correlation is the QM Mermin expectation <XXX> (= +1). Ties the exhibited carve's achieved value to the genuine QM Mermin expectation Complex.re ⟨ghz| sigma_x⊗sigma_x⊗sigma_x |ghz⟩ (via ghz_expectation_xxx), through structurally distinct machinery (LF5 FS volumes vs the Hilbert expectation) meeting at +1.

                        The carve's XYY block-volume correlation is the QM Mermin expectation <XYY> (= -1). The σx⊗σy⊗σy analogue of merminCarveCorrelation_eq_xxx.

                        The carve's YXY block-volume correlation is the QM Mermin expectation <YXY> (= -1). The σy⊗σx⊗σy analogue.

                        The carve's YYX block-volume correlation is the QM Mermin expectation <YYX> (= -1). The σy⊗σy⊗σx analogue.

                        The dynamical carve-tie to C.1 (the four-context contextuality tie) #

                        ghzDeisolation_carve_not_product (the dynamical carve-tie, four-context tie CLOSED). No setting-local ±1 product partition of any shared probability space (Λ, μ) reproduces the EXHIBITED GHZ Mermin-context carve's four block-volume correlations. The hypothesis hmatch feeds the carve's OWN achieved values (merminCarveCorrelation at the four contexts XXX/XYY/YXY/YYX — each a sign-product-weighted sum of bornRegion FS volumes) into the four LHV integrals of ReproducesGHZ; the proof discharges each carve correlation to its Mermin value ±1 via ghzDeisolation_blockVolume_correlation, then routes through C.1 no_product_partition_realises_ghz — Mermin's +1 = -1 all-or-nothing contradiction. This upgrades C.2's bare re-export ghzDeisolation_contextuality_anchor to a genuine carve-tied contextuality theorem: the carve's own dynamical correlations, not the abstract GHZ values, are what no product partition can match.

                        The carve data is a family indexed by the context (ψ' ctx is the prepared nudgedGHZ_mermin ctx for that Mermin measurement basis); the Mermin no-go consumes all four contexts, so the family is essential.

                        The capstone #

                        theorem CSD.LF6.ghzMermin_carve_capstone {M : } (e : Fin 8 × Fin 8 Fin (M + 1)) (p₀ : LF4.CPN (M + 1)) (ψ' : EuclideanSpace (Fin (M + 1))) (hψ'eq : ψ' = (LinearIsometryEquiv.piLpCongrLeft 2 e) ((Matrix.toEuclideanLin (LF5.vnDilationV 8)) (nudgedGHZ_mermin ctxXXX))) (hψ'0 : ψ' 0) :
                        LF5.measurementFlow 8 e id MeasureTheory.MeasurePreserving (LF5.measurementFlow 8 e) (Matrix.UnitaryGroup.fubiniStudyMeasure p₀) (Matrix.UnitaryGroup.fubiniStudyMeasure p₀) merminCarveCorrelation p₀ e ψ' hψ'0 = (inner Empirical.GHZ.ghzState ((Matrix.toEuclideanLin (Empirical.GHZ.sigmaDotTriple Empirical.Bell.chshA Empirical.Bell.chshA Empirical.Bell.chshA)) Empirical.GHZ.ghzState)).re (∀ {M' : } (e' : Fin 8 × Fin 8 Fin (M' + 1)) (p₀' : LF4.CPN (M' + 1)) (ctx : Fin 3Empirical.GHZ.PauliAxis) (pv : ), phaseProd ctx = pvpv ^ 2 = 1∀ (φ' : EuclideanSpace (Fin (M' + 1))), φ' = (LinearIsometryEquiv.piLpCongrLeft 2 e') ((Matrix.toEuclideanLin (LF5.vnDilationV 8)) (nudgedGHZ_mermin ctx))∀ (hφ'0 : φ' 0), merminCarveCorrelation p₀' e' φ' hφ'0 = pv) ∀ (ψ'' : (Fin 3Empirical.GHZ.PauliAxis)EuclideanSpace (Fin (M + 1))) (hψ''0 : ∀ (ctx : Fin 3Empirical.GHZ.PauliAxis), ψ'' ctx 0), (∀ (ctx : Fin 3Empirical.GHZ.PauliAxis), ψ'' ctx = (LinearIsometryEquiv.piLpCongrLeft 2 e) ((Matrix.toEuclideanLin (LF5.vnDilationV 8)) (nudgedGHZ_mermin ctx)))∀ (Λ : Type) [inst : MeasurableSpace Λ] (μ : MeasureTheory.Measure Λ) [MeasureTheory.IsProbabilityMeasure μ] (R : Fin 3Empirical.GHZ.PauliAxisΛ), IsProductPartitionGHZ R (l : Λ), R 0 Empirical.GHZ.PauliAxis.x l * R 1 Empirical.GHZ.PauliAxis.x l * R 2 Empirical.GHZ.PauliAxis.x l μ = merminCarveCorrelation p₀ e (ψ'' ctxXXX) (l : Λ), R 0 Empirical.GHZ.PauliAxis.x l * R 1 Empirical.GHZ.PauliAxis.y l * R 2 Empirical.GHZ.PauliAxis.y l μ = merminCarveCorrelation p₀ e (ψ'' ctxXYY) (l : Λ), R 0 Empirical.GHZ.PauliAxis.y l * R 1 Empirical.GHZ.PauliAxis.x l * R 2 Empirical.GHZ.PauliAxis.y l μ = merminCarveCorrelation p₀ e (ψ'' ctxYXY) (l : Λ), R 0 Empirical.GHZ.PauliAxis.y l * R 1 Empirical.GHZ.PauliAxis.y l * R 2 Empirical.GHZ.PauliAxis.x l μ = merminCarveCorrelation p₀ e (ψ'' ctxYYX) False

                        The LF6-C.3 capstone: the GHZ Mermin-context carve. The genuine contextual increment over C.2. On the LF5 de-isolation flow (dynamics Phi != id, FS measure-preserving, inherited from C.2), for the four Mermin contexts the carve's sign-product-weighted pointer-block Fubini-Study volumes reproduce the four Mermin correlations, and the carve ties to C.1 by its own achieved values. Conjuncts:

                        1. genuine dynamics, Phi != id (measurementFlow_ne_id, 1 < 8);
                        2. FS measure-preserving (measurementFlow_measurePreserving);
                        3. the XXX carve block-volume correlation is the QM <XXX> = +1 (merminCarveCorrelation_eq_xxx, tying the dynamical carve to the Hilbert Mermin expectation);
                        4. all four Mermin carve correlations are the Mermin values ±1 (ghzDeisolation_blockVolume_correlation at the four contexts);
                        5. the four-context carve-tie to C.1: no setting-local ±1 product partition reproduces the carve's four correlations (ghzDeisolation_carve_not_product, routed through C.1 no_product_partition_realises_ghz).

                        The increment over C.2 is conjunct (3)/(4)/(5): a GENUINE dynamical Mermin correlation (a sign-product-weighted sum of bornRegion FS volumes = the Mermin expectation), not a diagonal-carve re-export. Born = FS-volume is imported from the DH/FS-volume engine, not re-derived; the flow realises (not derives) the Mermin measurement. Residue: SO-1 (the GHZ entangled sector posited). Honest ledger: module docstring.