Documentation

CsdLean4.Empirical.CSD.Contextuality.MerminPeresVolume

Empirical/CSD: a Mermin–Peres rank-2 observable's outcome Born weights as Kähler volumes #

Category: 3-Local (CSD-ontic volume reading; a quick-win instantiation of the already-proved degenerate-eigenspace engine CSD.Empirical.CSDBridge.ContextVolume.block_born_frequency_volume).

This is the volume-ratio companion to the impossibility readings of the Mermin–Peres magic-square contextuality theorem:

This file is the complementary volume reading: a single representative grid observable's ±1-outcome Born weights are genuine block sums of Fubini–Study typicality volumes on the fixed ontic Σ = ℂℙ³.

The chosen observable: the non-diagonal X ⊗ X #

The diagonal grid observable Z ⊗ Z is already grounded by ContextVolume.zz_parity_born_frequency_volume (computational-basis eigenbasis, no rotation). To complement it we take the most symmetric non-diagonal member, X ⊗ X, whose eigenbasis is H ⊗ H applied to the computational basis — the four product vectors |±⟩ ⊗ |±⟩ with |±⟩ = (|0⟩ ± |1⟩)/√2. With the standard (i, j) ↦ 2i + j flattening of Fin 2 × Fin 2 ≃ Fin 4, X ⊗ X is the anti-diagonal eᵢ ↦ e_{3−i}, so its eigenvectors are the explicit (±1/2)-component rays

v0 = ( 1,  1,  1,  1)/2   eigenvalue +1   (|++⟩)
v1 = ( 1, -1,  1, -1)/2   eigenvalue -1   (|+−⟩)
v2 = ( 1,  1, -1, -1)/2   eigenvalue -1   (|−+⟩)
v3 = ( 1, -1, -1,  1)/2   eigenvalue +1   (|−−⟩)

(the rows of H ⊗ H). Eigenvalue +1 block {v0, v3}, eigenvalue −1 block {v1, v2}: the sign-parity labelling mpXXBlk = ![0, 1, 1, 0] : Fin 4 → Fin 2, identical in shape to the Z ⊗ Z parity grouping. Orthonormality of these explicit (±1/2)-component vectors is a clean norm_num computation (no Cabello-ray transport needed), packaged as mpXXBasis : OrthonormalBasis (Fin 4) ℂ … via OrthonormalBasis.mk + span_eq_top_of_card_eq_finrank.

The eigenbasis identity is proved, not asserted. mpXXVec_eigenvector certifies (σx ⊗ σx) · vᵢ = mpXXEigval i • vᵢ against the genuine Pauli observable sigmaX ⊗ₖ sigmaX of Empirical/QM/Contextuality/MerminPeres.lean (reindexed onto Fin 4 via finProdFinEquiv, where it is the antidiagonal reindex_sigmaXX), and mpXXBlk_eq_zero_iff_eigval_one certifies that the collapsed a = 0 block is exactly the +1 eigenspace. So the headline below lands on the actual σx ⊗ σx = +1 outcome Born weight; the kernel would reject it for any other basis.

The two halves of the Mermin–Peres story, told honestly #

  1. A rank-2 grid observable carries genuine Born weights as block sums of FS typicality volumes. Instantiating block_born_frequency_volume at mpXXBasis, mpXXBlk, and the +1 block, the X ⊗ X = +1 outcome Born weight ⟨ψ, P₊ ψ⟩ = ‖⟨v0, ψ⟩‖² + ‖⟨v3, ψ⟩‖² is the almost-sure limit of empirical frequencies of the block's barycentric Born regions on the fixed ontic Σ = ℂℙ³ — a sum of two Fubini–Study typicality volumes (mp_xx_born_frequency_volume). The −1 block is the identical instantiation at a = 1.
  2. Yet no single non-contextual ±1 assignment is jointly consistent across the square's rows and columns (no_lhv_mermin_peres / no_csd_mermin_peres_assignment, the all-cells-product +1 = −1 impossibility).

The CSD reading of contextuality. Each of the nine grid observables is a rank-2 carving of the one ontic Σ = ℂℙ³; its outcome weights are typicality volumes, recomputed per observable (which orthonormal frame B carves the moment regions). The context-dependence the Mermin–Peres theorem exploits is, on the CSD ontology, the dependence of the carved-volume regions on the measurement frame — not a hidden variable. There is no global section assigning consistent ±1 values across the overlapping row/column contexts, exactly the combinatorial no-go, now sitting beside a genuine per-observable volume realisation.

Scope and honesty #

The X ⊗ X eigenbasis (H ⊗ H) as an OrthonormalBasis #

The real (±1/2)-component pattern of the four X ⊗ X eigenvectors (the rows of H ⊗ H): row i is the i-th eigenvector, column k its k-th component.

Equations
Instances For

    The four X ⊗ X eigenvectors as complex coordinate vectors in EuclideanSpace ℂ (Fin 4) (real components coerced to ).

    Equations
    Instances For

      Scalar complex inner product of two real coercions: ⟨↑a, ↑b⟩_ℂ = ↑(a * b).

      The H ⊗ H family is orthonormal. A direct norm_num computation on the explicit (±1/2)-component vectors: each squared norm is 4 · (1/2)² = 1 and each off-diagonal inner product is a balanced ±1/4 sum equal to 0.

      The X ⊗ X eigenbasis as a Mathlib OrthonormalBasis. A 4-element orthonormal family in the 4-dimensional EuclideanSpace ℂ (Fin 4) spans (cardinality = finrank), so OrthonormalBasis.mk applies. This is the (degenerate) projective measurement frame fed to the engine block_born_frequency_volume.

      Equations
      Instances For

        mpXXBasis i is the i-th X ⊗ X eigenvector.

        The sign-parity block labelling of the X ⊗ X eigenbasis: eigenvalue +1 block {v0, v3} ↦ outcome 0; eigenvalue −1 block {v1, v2} ↦ outcome 1.

        Equations
        Instances For

          The eigenbasis identity (machine-checked connection to the real σx ⊗ σx) #

          The mpXXBasis/mpXXBlk data above is named "the X ⊗ X eigenbasis"; this section proves that identity against the genuine Pauli observable sigmaX ⊗ₖ sigmaX of Empirical/QM/Contextuality/MerminPeres.lean, so the label is kernel-certified, not a docstring assertion. Without these lemmas the headline would be a theorem about an arbitrary orthonormal basis.

          The eigenvalues of the four X ⊗ X eigenvectors mpXXVec, under the (i, j) ↦ 2i + j (finProdFinEquiv) flattening of Fin 2 × Fin 2 ≃ Fin 4: v0 ↦ +1, v1 ↦ −1, v2 ↦ −1, v3 ↦ +1.

          Equations
          Instances For

            The real σx ⊗ σx, reindexed under finProdFinEquiv, is the antidiagonal. A machine-checked matrix identity referencing the genuine sigmaX ⊗ₖ sigmaX (from Empirical/QM/Contextuality/MerminPeres.lean), not a fresh literal: the four finProdFinEquiv.symm index resolutions are discharged by decide.

            mpXXVec i is a genuine eigenvector of the real σx ⊗ σx. The eigen-equation (σx ⊗ σx) · vᵢ = mpXXEigval i • vᵢ, stated against the actual Pauli observable sigmaX ⊗ₖ sigmaX reindexed onto Fin 4 (via reindex_sigmaXX it is the antidiagonal eᵢ ↦ e₃₋ᵢ). This is the load-bearing faithfulness lemma: it certifies that the named-basis mpXXBasis really is the X ⊗ X eigenbasis, so mp_xx_born_frequency_volume lands on the σx ⊗ σx outcome Born weight rather than an arbitrary basis's weight.

            The +1 block of mpXXBlk is exactly the +1 eigenspace. mpXXBlk i = 0 (the outcome-0 block collapsed in mp_xx_born_frequency_volume) holds iff the i-th eigenvalue is +1. Together with mpXXVec_eigenvector this certifies that the headline's block weight is the σx ⊗ σx = +1 outcome Born weight. (mpXXEigval i = 1 is over , hence not Decidable; closed by simp/norm_num per index.)

            Earning the Z ⊗ Z label for the engine-file zz_parity_born_frequency_volume #

            ContextVolume.zz_parity_born_frequency_volume (in the engine file, which intentionally imports no QM observables) realises the Z ⊗ Z parity outcome weight as a block sum of FS volumes using B = EuclideanSpace.basisFun (Fin 4) ℂ (the computational basis) and block ![0, 1, 1, 0], but never proves that computational basis is the σz ⊗ σz eigenbasis — the same asserted-not-proved gap closed above for X ⊗ X. These lemmas close it here (the only file in scope that imports the real sigmaZ), so the Z ⊗ Z label is earned by composition: the engine's B is the σz ⊗ σz eigenbasis, and its block {0, 3} is the +1 eigenspace, both machine-checked against the genuine Pauli observable.

            The eigenvalues of the computational basis under σz ⊗ σz, with the (i, j) ↦ 2i + j flattening: |00⟩ ↦ +1, |01⟩ ↦ −1, |10⟩ ↦ −1, |11⟩ ↦ +1.

            Equations
            Instances For

              The real σz ⊗ σz, reindexed under finProdFinEquiv, is the diagonal. Machine-checked against the genuine sigmaZ ⊗ₖ sigmaZ (from Empirical/QM/Contextuality/MerminPeres.lean), not a fresh literal.

              The computational basis vector eᵢ is a genuine eigenvector of the real σz ⊗ σz. The eigen-equation (σz ⊗ σz) · eᵢ = mpZZEigval i • eᵢ against the actual Pauli observable sigmaZ ⊗ₖ sigmaZ (reindexed onto Fin 4, where via reindex_sigmaZZ it is the diagonal). EuclideanSpace.single i 1 = (EuclideanSpace.basisFun (Fin 4) ℂ) i is exactly the frame B used by zz_parity_born_frequency_volume, so this certifies that B is the σz ⊗ σz eigenbasis.

              The +1 block of the Z ⊗ Z parity grouping is exactly the +1 eigenspace. The block ![0, 1, 1, 0] i = 0 (the outcome-0 block collapsed in zz_parity_born_frequency_volume) holds iff the i-th σz ⊗ σz eigenvalue is +1. (mpZZEigval i = 1 is over , hence not Decidable; closed by simp/norm_num.)

              The headline: the X ⊗ X = +1 Born weight as a block sum of FS volumes #

              theorem CSD.Empirical.CSDBridge.MerminPeres.mp_xx_born_frequency_volume (p₀ : LF4.CPN 4) (ψ : EuclideanSpace (Fin 4)) ( : ψ = 1) {Ω : Type u_1} [MeasurableSpace Ω] {Pr : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure Pr] (X : ΩLF4.CPN 4) (hX : ∀ (n : ), Measurable (X n)) (hlaw : ∀ (n : ), MeasureTheory.Measure.map (X n) Pr = Matrix.UnitaryGroup.fubiniStudyMeasure p₀) (hindep : ∀ (i : Fin 4), Pairwise (Function.onFun (fun (f g : Ω) => ProbabilityTheory.IndepFun f g Pr) fun (n : ) => (X n ⁻¹' LF4.bornRegion (mpXXBasis.repr ψ) i).indicator fun (x : Ω) => 1)) :
              ∀ᵐ (ω : Ω) Pr, Filter.Tendsto (fun (m : ) => i : Fin 4 with mpXXBlk i = 0, (∑ kFinset.range m, (X k ⁻¹' LF4.bornRegion (mpXXBasis.repr ψ) i).indicator (fun (x : Ω) => 1) ω) / m) Filter.atTop (nhds (inner (mpXXVec 0) ψ ^ 2 + inner (mpXXVec 3) ψ ^ 2))

              A Mermin–Peres rank-2 observable's outcome Born weight as a derived sum of Kähler volumes. For i.i.d. trials drawing microstates from the Fubini–Study typicality measure on the ontic Σ = ℂℙ³, the empirical frequency of the X ⊗ X = +1 (even-parity) outcome — the sum of the per-ray frequencies over the block {v0, v3} — converges, on a single almost-sure event, to the X ⊗ X = +1 Born weight ‖⟨v0, ψ⟩‖² + ‖⟨v3, ψ⟩‖² = ⟨ψ, P₊ ψ⟩, a block sum of two FS typicality volumes on the fixed ontic Σ = ℂℙ³.

              That this block weight genuinely is the σx ⊗ σx = +1 outcome weight (and not an arbitrary basis's) is machine-checked, not asserted in prose: mpXXVec_eigenvector proves (σx ⊗ σx) · vᵢ = mpXXEigval i • vᵢ against the real Pauli observable sigmaX ⊗ₖ sigmaX, and mpXXBlk_eq_zero_iff_eigval_one proves the a = 0 block is exactly the +1 eigenspace.

              A direct instantiation of block_born_frequency_volume at M = 3, the X ⊗ X eigenframe mpXXBasis, the sign-parity block mpXXBlk, the +1 block a = 0, and an arbitrary unit ψ — carving-free, Gleason-free, unconditional (every unit preparation, eigenstates included), no new mathematics. The even-parity block {0, 3} is collapsed via Finset.sum_pair (filter = {0, 3} by decide). The X ⊗ X = −1 outcome is the identical instantiation at a = 1; the diagonal Z ⊗ Z companion is zz_parity_born_frequency_volume.

              This grounds a rank-2 Mermin–Peres grid observable's context-dependent ±1 outcome weights — the weights that no non-contextual hidden-variable assignment can jointly reproduce across the square (no_lhv_mermin_peres) — as genuine Fubini–Study typicality volumes on the fixed ontic Σ. Honest scope: realisation not derivation (Φ = id, FS regions carved in the rotated H ⊗ H frame); the Mermin–Peres no-go stays at the QM-validity layer (Empirical/QM/).

              mp_xx_born_frequency_volume on the canonical i.i.d. Fubini–Study trial witness (fsTrialMeasure / fsTrial): the trial bundle is discharged, so the hypothesis set is Lean-inhabited, not merely classically satisfiable. Direct instantiation of mp_xx_born_frequency_volume at the canonical FS coordinate process.

              The remaining seven square observables #

              The two reference cells above (X ⊗ X, Z ⊗ Z) are now extended to the full nine-observable Mermin–Peres square, each with a machine-checked eigenbasis tie to the genuine Pauli observable (the faithfulness standard set by mpXXVec_eigenvector).

                          col 0        col 1        col 2
              row 0     X ⊗ I        I ⊗ X        X ⊗ X      (X ⊗ X done above)
              row 1     I ⊗ Z        Z ⊗ I        Z ⊗ Z      (Z ⊗ Z in ContextVolume)
              row 2     X ⊗ Z        Z ⊗ X        Y ⊗ Y
              

              The eigenbasis of σ_a ⊗ σ_b is (U_a ⊗ U_b) on the computational basis, U_a diagonalising σ_a (U_Z = I, U_X = H, U_Y the (1, ±i)/√2 frame). Two cells sharing a single-qubit diagonalising frame on each factor share an eigenbasis, so the nine observables need only four orthonormal frames:

              Each cell carries: the eigenvalue vector, the reindex_sigma_ab matrix identity against the real sigma_a ⊗ₖ sigma_b (the four finProdFinEquiv.symm resolutions by decide), the eigenvector lemma mp_<ab>Vec_eigenvector (the load-bearing faithfulness fact: (σ_a ⊗ σ_b) · vᵢ = eigval i • vᵢ against the genuine Pauli observable), the _blk_eq_zero_iff_eigval_one block/+1-eigenspace certificate, and the volume headline mp_<ab>_born_frequency_volume instantiating block_born_frequency_volume on the +1 block. Honest scope is unchanged from mp_xx_born_frequency_volume: realisation not derivation (Φ = id, FS regions carved in the rotated frame), Gleason-free, foundational-triple-only; the Mermin–Peres no-go stays at the QM layer.

              1/√2 (as Real.sqrt 2 / 2), the single-Hadamard component magnitude.

              Equations
              Instances For

                The H ⊗ I frame |±⟩ ⊗ eⱼ (shared by X ⊗ I and X ⊗ Z) #

                Real (0, ±1/√2)-component pattern of the H ⊗ I eigenvectors |±⟩ ⊗ eⱼ: v0 = |+⟩⊗e₀, v1 = |+⟩⊗e₁, v2 = |−⟩⊗e₀, v3 = |−⟩⊗e₁ (flatten (i,j) ↦ 2i+j).

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For

                  The H ⊗ I eigenvectors as complex coordinate vectors.

                  Equations
                  Instances For

                    The H ⊗ I family is orthonormal. Each squared norm is 2·(1/√2)² = 1 (invSqrt2_sq); off-diagonal products cancel.

                    The I ⊗ H frame eᵢ ⊗ |±⟩ (shared by I ⊗ X and Z ⊗ X) #

                    Real (0, ±1/√2)-component pattern of the I ⊗ H eigenvectors eᵢ ⊗ |±⟩: v0 = e₀⊗|+⟩, v1 = e₀⊗|−⟩, v2 = e₁⊗|+⟩, v3 = e₁⊗|−⟩.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      The I ⊗ H eigenvectors as complex coordinate vectors.

                      Equations
                      Instances For

                        X ⊗ I (H ⊗ I frame, eigenvalues +1,+1,−1,−1) #

                        Eigenvalues of mpHIVec under σx ⊗ I (+1 on the |+⟩ block).

                        Equations
                        Instances For

                          Sign block of X ⊗ I: +1 eigenspace {0,1}0, −1 {2,3}1.

                          Equations
                          Instances For
                            theorem CSD.Empirical.CSDBridge.MerminPeres.reindex_sigmaXI :
                            (Matrix.reindex finProdFinEquiv finProdFinEquiv) (Matrix.kroneckerMap (fun (x1 x2 : ) => x1 * x2) MerminPeres.sigmaX 1) = !![0, 0, 1, 0; 0, 0, 0, 1; 1, 0, 0, 0; 0, 1, 0, 0]

                            σx ⊗ I reindexed under finProdFinEquiv, against the genuine sigmaX.

                            The +1 block of mpXIBlk is exactly the +1 eigenspace.

                            theorem CSD.Empirical.CSDBridge.MerminPeres.mp_xi_born_frequency_volume (p₀ : LF4.CPN 4) (ψ : EuclideanSpace (Fin 4)) ( : ψ = 1) {Ω : Type u_1} [MeasurableSpace Ω] {Pr : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure Pr] (X : ΩLF4.CPN 4) (hX : ∀ (n : ), Measurable (X n)) (hlaw : ∀ (n : ), MeasureTheory.Measure.map (X n) Pr = Matrix.UnitaryGroup.fubiniStudyMeasure p₀) (hindep : ∀ (i : Fin 4), Pairwise (Function.onFun (fun (f g : Ω) => ProbabilityTheory.IndepFun f g Pr) fun (n : ) => (X n ⁻¹' LF4.bornRegion (mpHIBasis.repr ψ) i).indicator fun (x : Ω) => 1)) :
                            ∀ᵐ (ω : Ω) Pr, Filter.Tendsto (fun (m : ) => i : Fin 4 with mpXIBlk i = 0, (∑ kFinset.range m, (X k ⁻¹' LF4.bornRegion (mpHIBasis.repr ψ) i).indicator (fun (x : Ω) => 1) ω) / m) Filter.atTop (nhds (inner (mpHIVec 0) ψ ^ 2 + inner (mpHIVec 1) ψ ^ 2))

                            X ⊗ I = +1 Born weight as a block sum of FS volumes. Instantiation of block_born_frequency_volume at mpHIBasis, mpXIBlk, a = 0; the +1 block {0,1} is collapsed via Finset.sum_pair. Eigenbasis faithfulness is mpXIVec_eigenvector.

                            mp_xi_born_frequency_volume on the canonical FS trial witness.

                            X ⊗ Z (H ⊗ I frame, eigenvalues +1,−1,−1,+1) #

                            Eigenvalues of mpHIVec under σx ⊗ σz.

                            Equations
                            Instances For

                              Sign-parity block of X ⊗ Z: +1 eigenspace {0,3}0.

                              Equations
                              Instances For

                                σx ⊗ σz reindexed under finProdFinEquiv, against the genuine Pauli factors.

                                The +1 block of mpXZBlk is exactly the +1 eigenspace.

                                theorem CSD.Empirical.CSDBridge.MerminPeres.mp_xz_born_frequency_volume (p₀ : LF4.CPN 4) (ψ : EuclideanSpace (Fin 4)) ( : ψ = 1) {Ω : Type u_1} [MeasurableSpace Ω] {Pr : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure Pr] (X : ΩLF4.CPN 4) (hX : ∀ (n : ), Measurable (X n)) (hlaw : ∀ (n : ), MeasureTheory.Measure.map (X n) Pr = Matrix.UnitaryGroup.fubiniStudyMeasure p₀) (hindep : ∀ (i : Fin 4), Pairwise (Function.onFun (fun (f g : Ω) => ProbabilityTheory.IndepFun f g Pr) fun (n : ) => (X n ⁻¹' LF4.bornRegion (mpHIBasis.repr ψ) i).indicator fun (x : Ω) => 1)) :
                                ∀ᵐ (ω : Ω) Pr, Filter.Tendsto (fun (m : ) => i : Fin 4 with mpXZBlk i = 0, (∑ kFinset.range m, (X k ⁻¹' LF4.bornRegion (mpHIBasis.repr ψ) i).indicator (fun (x : Ω) => 1) ω) / m) Filter.atTop (nhds (inner (mpHIVec 0) ψ ^ 2 + inner (mpHIVec 3) ψ ^ 2))

                                X ⊗ Z = +1 Born weight as a block sum of FS volumes. Same H ⊗ I frame as X ⊗ I, different observable (eigenvalues +1,−1,−1,+1); +1 block {0,3}.

                                mp_xz_born_frequency_volume on the canonical FS trial witness.

                                I ⊗ X (I ⊗ H frame, eigenvalues +1,−1,+1,−1) #

                                Sign block of I ⊗ X: +1 eigenspace {0,2}0.

                                Equations
                                Instances For
                                  theorem CSD.Empirical.CSDBridge.MerminPeres.reindex_sigmaIX :
                                  (Matrix.reindex finProdFinEquiv finProdFinEquiv) (Matrix.kroneckerMap (fun (x1 x2 : ) => x1 * x2) 1 MerminPeres.sigmaX) = !![0, 1, 0, 0; 1, 0, 0, 0; 0, 0, 0, 1; 0, 0, 1, 0]

                                  I ⊗ σx reindexed under finProdFinEquiv, against the genuine sigmaX.

                                  The +1 block of mpIXBlk is exactly the +1 eigenspace.

                                  theorem CSD.Empirical.CSDBridge.MerminPeres.mp_ix_born_frequency_volume (p₀ : LF4.CPN 4) (ψ : EuclideanSpace (Fin 4)) ( : ψ = 1) {Ω : Type u_1} [MeasurableSpace Ω] {Pr : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure Pr] (X : ΩLF4.CPN 4) (hX : ∀ (n : ), Measurable (X n)) (hlaw : ∀ (n : ), MeasureTheory.Measure.map (X n) Pr = Matrix.UnitaryGroup.fubiniStudyMeasure p₀) (hindep : ∀ (i : Fin 4), Pairwise (Function.onFun (fun (f g : Ω) => ProbabilityTheory.IndepFun f g Pr) fun (n : ) => (X n ⁻¹' LF4.bornRegion (mpIHBasis.repr ψ) i).indicator fun (x : Ω) => 1)) :
                                  ∀ᵐ (ω : Ω) Pr, Filter.Tendsto (fun (m : ) => i : Fin 4 with mpIXBlk i = 0, (∑ kFinset.range m, (X k ⁻¹' LF4.bornRegion (mpIHBasis.repr ψ) i).indicator (fun (x : Ω) => 1) ω) / m) Filter.atTop (nhds (inner (mpIHVec 0) ψ ^ 2 + inner (mpIHVec 2) ψ ^ 2))

                                  I ⊗ X = +1 Born weight as a block sum of FS volumes.

                                  mp_ix_born_frequency_volume on the canonical FS trial witness.

                                  Z ⊗ X (I ⊗ H frame, eigenvalues +1,−1,−1,+1) #

                                  Eigenvalues of mpIHVec under σz ⊗ σx.

                                  Equations
                                  Instances For

                                    Sign-parity block of Z ⊗ X: +1 eigenspace {0,3}0.

                                    Equations
                                    Instances For

                                      σz ⊗ σx reindexed under finProdFinEquiv, against the genuine Pauli factors.

                                      The +1 block of mpZXBlk is exactly the +1 eigenspace.

                                      theorem CSD.Empirical.CSDBridge.MerminPeres.mp_zx_born_frequency_volume (p₀ : LF4.CPN 4) (ψ : EuclideanSpace (Fin 4)) ( : ψ = 1) {Ω : Type u_1} [MeasurableSpace Ω] {Pr : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure Pr] (X : ΩLF4.CPN 4) (hX : ∀ (n : ), Measurable (X n)) (hlaw : ∀ (n : ), MeasureTheory.Measure.map (X n) Pr = Matrix.UnitaryGroup.fubiniStudyMeasure p₀) (hindep : ∀ (i : Fin 4), Pairwise (Function.onFun (fun (f g : Ω) => ProbabilityTheory.IndepFun f g Pr) fun (n : ) => (X n ⁻¹' LF4.bornRegion (mpIHBasis.repr ψ) i).indicator fun (x : Ω) => 1)) :
                                      ∀ᵐ (ω : Ω) Pr, Filter.Tendsto (fun (m : ) => i : Fin 4 with mpZXBlk i = 0, (∑ kFinset.range m, (X k ⁻¹' LF4.bornRegion (mpIHBasis.repr ψ) i).indicator (fun (x : Ω) => 1) ω) / m) Filter.atTop (nhds (inner (mpIHVec 0) ψ ^ 2 + inner (mpIHVec 3) ψ ^ 2))

                                      Z ⊗ X = +1 Born weight as a block sum of FS volumes.

                                      mp_zx_born_frequency_volume on the canonical FS trial witness.

                                      Z ⊗ I and I ⊗ Z (computational frame EuclideanSpace.basisFun) #

                                      Both are diagonal in the computational basis, so the engine frame is EuclideanSpace.basisFun (Fin 4) ℂ (no rotation), exactly as for Z ⊗ Z. The eigenvector lemmas certify the computational basis vectors EuclideanSpace.single i 1 are genuine σz ⊗ I / I ⊗ σz eigenvectors against the real sigmaZ.

                                      Eigenvalues of the computational basis under σz ⊗ I.

                                      Equations
                                      Instances For
                                        theorem CSD.Empirical.CSDBridge.MerminPeres.reindex_sigmaZI :
                                        (Matrix.reindex finProdFinEquiv finProdFinEquiv) (Matrix.kroneckerMap (fun (x1 x2 : ) => x1 * x2) MerminPeres.sigmaZ 1) = !![1, 0, 0, 0; 0, 1, 0, 0; 0, 0, -1, 0; 0, 0, 0, -1]

                                        σz ⊗ I reindexed under finProdFinEquiv is diag(1,1,−1,−1).

                                        The computational basis vector eᵢ is a genuine eigenvector of the real σz ⊗ I.

                                        The +1 block of the Z ⊗ I grouping ![0,0,1,1] is exactly the +1 eigenspace.

                                        theorem CSD.Empirical.CSDBridge.MerminPeres.mp_zi_born_frequency_volume (p₀ : LF4.CPN 4) (ψ : EuclideanSpace (Fin 4)) ( : ψ = 1) {Ω : Type u_1} [MeasurableSpace Ω] {Pr : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure Pr] (X : ΩLF4.CPN 4) (hX : ∀ (n : ), Measurable (X n)) (hlaw : ∀ (n : ), MeasureTheory.Measure.map (X n) Pr = Matrix.UnitaryGroup.fubiniStudyMeasure p₀) (hindep : ∀ (i : Fin 4), Pairwise (Function.onFun (fun (f g : Ω) => ProbabilityTheory.IndepFun f g Pr) fun (n : ) => (X n ⁻¹' LF4.bornRegion ((EuclideanSpace.basisFun (Fin 4) ).repr ψ) i).indicator fun (x : Ω) => 1)) :
                                        ∀ᵐ (ω : Ω) Pr, Filter.Tendsto (fun (m : ) => i : Fin (Nat.succ 3) with ![0, 0, 1, 1] i = 0, (∑ kFinset.range m, (X k ⁻¹' LF4.bornRegion ((EuclideanSpace.basisFun (Fin 4) ).repr ψ) i).indicator (fun (x : Ω) => 1) ω) / m) Filter.atTop (nhds (inner (EuclideanSpace.single 0 1) ψ ^ 2 + inner (EuclideanSpace.single 1 1) ψ ^ 2))

                                        Z ⊗ I = +1 Born weight as a block sum of FS volumes (computational frame).

                                        Eigenvalues of the computational basis under I ⊗ σz.

                                        Equations
                                        Instances For
                                          theorem CSD.Empirical.CSDBridge.MerminPeres.reindex_sigmaIZ :
                                          (Matrix.reindex finProdFinEquiv finProdFinEquiv) (Matrix.kroneckerMap (fun (x1 x2 : ) => x1 * x2) 1 MerminPeres.sigmaZ) = !![1, 0, 0, 0; 0, -1, 0, 0; 0, 0, 1, 0; 0, 0, 0, -1]

                                          I ⊗ σz reindexed under finProdFinEquiv is diag(1,−1,1,−1).

                                          The computational basis vector eᵢ is a genuine eigenvector of the real I ⊗ σz.

                                          The +1 block of the I ⊗ Z grouping ![0,1,0,1] is exactly the +1 eigenspace.

                                          theorem CSD.Empirical.CSDBridge.MerminPeres.mp_iz_born_frequency_volume (p₀ : LF4.CPN 4) (ψ : EuclideanSpace (Fin 4)) ( : ψ = 1) {Ω : Type u_1} [MeasurableSpace Ω] {Pr : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure Pr] (X : ΩLF4.CPN 4) (hX : ∀ (n : ), Measurable (X n)) (hlaw : ∀ (n : ), MeasureTheory.Measure.map (X n) Pr = Matrix.UnitaryGroup.fubiniStudyMeasure p₀) (hindep : ∀ (i : Fin 4), Pairwise (Function.onFun (fun (f g : Ω) => ProbabilityTheory.IndepFun f g Pr) fun (n : ) => (X n ⁻¹' LF4.bornRegion ((EuclideanSpace.basisFun (Fin 4) ).repr ψ) i).indicator fun (x : Ω) => 1)) :
                                          ∀ᵐ (ω : Ω) Pr, Filter.Tendsto (fun (m : ) => i : Fin (Nat.succ 3) with ![0, 1, 0, 1] i = 0, (∑ kFinset.range m, (X k ⁻¹' LF4.bornRegion ((EuclideanSpace.basisFun (Fin 4) ).repr ψ) i).indicator (fun (x : Ω) => 1) ω) / m) Filter.atTop (nhds (inner (EuclideanSpace.single 0 1) ψ ^ 2 + inner (EuclideanSpace.single 2 1) ψ ^ 2))

                                          I ⊗ Z = +1 Born weight as a block sum of FS volumes (computational frame).

                                          Y ⊗ Y (the complex U_Y ⊗ U_Y frame |y±⟩ ⊗ |y±⟩) #

                                          The remaining cell. U_Y diagonalises σy with columns |y±⟩ = (1, ±i)/√2; the product eigenbasis |y±⟩ ⊗ |y±⟩ has complex (±1/2, ±i/2) components, so the orthonormality and eigenvector proofs run over directly (not the real-coercion mp_scalar_inner route). This closes the Y ⊗ Y cell — and the full square.

                                          The four Y ⊗ Y eigenvectors |y±⟩ ⊗ |y±⟩ with explicit complex (±1/2, ±i/2) components: v0 = |y+⟩⊗|y+⟩, v1 = |y+⟩⊗|y−⟩, v2 = |y−⟩⊗|y+⟩, v3 = |y−⟩⊗|y−⟩.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For

                                            The U_Y ⊗ U_Y family is orthonormal. Direct complex computation: each squared norm is 4·(1/2)² = 1; off-diagonal inner products cancel (Complex.conj_I).

                                            Eigenvalues of mpYYVec under σy ⊗ σy (+1 on the |y+y+⟩,|y−y−⟩ block).

                                            Equations
                                            Instances For

                                              Sign-parity block of Y ⊗ Y: +1 eigenspace {0,3}0.

                                              Equations
                                              Instances For

                                                σy ⊗ σy reindexed under finProdFinEquiv, against the genuine sigmaY.

                                                mpYYVec i is a genuine eigenvector of the real σy ⊗ σy. The load-bearing faithfulness lemma for the hard (complex) cell, against the actual Pauli observable sigmaY ⊗ₖ sigmaY reindexed onto Fin 4.

                                                The +1 block of mpYYBlk is exactly the +1 eigenspace.

                                                theorem CSD.Empirical.CSDBridge.MerminPeres.mp_yy_born_frequency_volume (p₀ : LF4.CPN 4) (ψ : EuclideanSpace (Fin 4)) ( : ψ = 1) {Ω : Type u_1} [MeasurableSpace Ω] {Pr : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure Pr] (X : ΩLF4.CPN 4) (hX : ∀ (n : ), Measurable (X n)) (hlaw : ∀ (n : ), MeasureTheory.Measure.map (X n) Pr = Matrix.UnitaryGroup.fubiniStudyMeasure p₀) (hindep : ∀ (i : Fin 4), Pairwise (Function.onFun (fun (f g : Ω) => ProbabilityTheory.IndepFun f g Pr) fun (n : ) => (X n ⁻¹' LF4.bornRegion (mpYYBasis.repr ψ) i).indicator fun (x : Ω) => 1)) :
                                                ∀ᵐ (ω : Ω) Pr, Filter.Tendsto (fun (m : ) => i : Fin 4 with mpYYBlk i = 0, (∑ kFinset.range m, (X k ⁻¹' LF4.bornRegion (mpYYBasis.repr ψ) i).indicator (fun (x : Ω) => 1) ω) / m) Filter.atTop (nhds (inner (mpYYVec 0) ψ ^ 2 + inner (mpYYVec 3) ψ ^ 2))

                                                Y ⊗ Y = +1 Born weight as a block sum of FS volumes. The complex-frame cell, completing the square. Instantiation of block_born_frequency_volume at mpYYBasis, mpYYBlk, a = 0; the +1 block {0,3}. Eigenbasis faithfulness is mpYYVec_eigenvector against the genuine σy ⊗ σy.

                                                mp_yy_born_frequency_volume on the canonical FS trial witness.

                                                Closure: the full nine-observable Mermin–Peres square is grounded #

                                                All nine grid observables now carry a machine-checked CSD volume reading whose eigenbasis label is earned, not asserted — each via a mp_<ab>Vec_eigenvector lemma certifying (σ_a ⊗ σ_b) · vᵢ = eigval i • vᵢ against the genuine Pauli observable sigma_a ⊗ₖ sigma_b of Empirical/QM/Contextuality/MerminPeres.lean:

                                                cellframeeigenvector lemmavolume headline
                                                X ⊗ ImpHIBasis (H ⊗ I)mpXIVec_eigenvectormp_xi_born_frequency_volume
                                                I ⊗ XmpIHBasis (I ⊗ H)mpIXVec_eigenvectormp_ix_born_frequency_volume
                                                X ⊗ XmpXXBasis (H ⊗ H)mpXXVec_eigenvectormp_xx_born_frequency_volume
                                                I ⊗ ZcomputationalmpIZVec_eigenvectormp_iz_born_frequency_volume
                                                Z ⊗ IcomputationalmpZIVec_eigenvectormp_zi_born_frequency_volume
                                                Z ⊗ ZcomputationalmpZZVec_eigenvectorzz_parity_born_frequency_volume
                                                X ⊗ ZmpHIBasis (H ⊗ I)mpXZVec_eigenvectormp_xz_born_frequency_volume
                                                Z ⊗ XmpIHBasis (I ⊗ H)mpZXVec_eigenvectormp_zx_born_frequency_volume
                                                Y ⊗ YmpYYBasis (U_Y ⊗ U_Y)mpYYVec_eigenvectormp_yy_born_frequency_volume

                                                Each headline lands on the σ_a ⊗ σ_b = +1 outcome Born weight as a block sum of two Fubini–Study typicality volumes on the fixed ontic Σ = ℂℙ³, every unit two-qubit preparation covered (no genericity hypothesis), carving-free and Gleason-free (foundational-triple-only). The −1 outcome of each cell is the identical instantiation at a = 1.

                                                The combinatorial no-go itself — that no single non-contextual ±1 assignment is jointly consistent across the square's six row/column product constraints — stays at the QM-validity layer (no_lhv_mermin_peres, no_csd_mermin_peres_assignment). The CSD reading: each cell is a rank-2 carving of the one ontic Σ, its outcome weights are typicality volumes recomputed per measurement frame, and the context-dependence the theorem exploits is the dependence of the carved-volume regions on the frame — not a hidden variable. Honest scope is unchanged: realisation, not derivation (Φ = id).