LF6-C (GHZ_n): the n-party GHZ de-isolation flow and the general-n Mermin forcing #
Category: 6-Local (the D1 entangled frontier at general party number; the
n-party generalisation of the three-party GHZ C-tier GHZDeisolationFlow.lean /
GHZContextuality.lean).
This module carries the deterministic (Mermin) all-or-nothing forcing axis to
general party number n, complementing the statistical (CGLMP) axis at
general dimension d (MaxEntangledDeisolationFlow.lean + Mathlib/Probability/ CGLMP.lean). Together the two give the symmetric both-axes statement: the
de-isolation account reproduces forced non-locality in both the statistical
(CGLMP, general d) and deterministic (Mermin/GHZ, general n) forms at
arbitrary size. Read this framing against the honest-scope ledger below: the
general-n deterministic FORCING (the ±1 combinatorial no-go) is formalised for
all n, and (2026-07-03, deliverable 5) the QM link is now ALSO general-n: the
four ±1 context targets are DERIVED to be GHZ_n's own tensor-Pauli Mermin
correlations ⟨GHZ_n | σ_{a_1} ⊗ … ⊗ σ_{a_n} | GHZ_n⟩ for every n ≥ 3
(ghzN_mermin_correlations), through a genuine two-corner Hilbert reducer
(ghzN_expectation_corner), not n = 3-anchored. So "forced non-locality at
arbitrary size" is now fully load-bearing (dynamics + forcing + QM link) for
general n ≥ 3; the essentially-4-party case is additionally witnessed at n = 4.
What lands #
ghzN n— the n-qubit GHZ state(|0…0⟩ + |1…1⟩)/√2onEuclideanSpace ℂ (Fin (2^n))(all-zeros= 0, all-ones= topIdx n = 2^n−1),ghzNWeight n(Born1/2on the two all-equal outcomes,0else), unit-norm and weights-sum-one forn ≥ 1. The directFin (2^n)generalisation of the three-partyghzWeight.The de-isolation flow + Born-from-volume at
N = 2^n(the clean general-party core).ghzNDeisolationFlow n = measurementFlow (2^n) finProdFinEquivon the dilatedΣ' = ℂℙ^{2^n·2^n − 1}(genuinelyΦ ≠ idforn ≥ 1, FS-measure-preserving),ghzNDeisolation_pointer_volume(pointer-block FS volume =ghzNWeight, composing LF5vnDilation_pointer_volume@N=2^nwith the Born identityghzN_born),_frequency(a.s. block freq → Born),_ne_id,_measurePreserving. This is genuine party-number-general de-isolation dynamics, not tied ton = 3. Born = FS-volume is imported from the DH/ moment-map engine (vnDilation_pointer_volume), not re-derived; the flow realises the measurement, it does not derive the weights.The n-party deterministic (Mermin) forcing (the load-bearing thesis part).
no_lhvN_assignment_for_ghzN(generaln) andno_product_partition_realises_ghzN(generaln) generalise C.1'sno_product_partition_realises_ghztonparties: no setting-local±1PRODUCT partition of a shared probability space reproduces the GHZ_n Mermin correlations. The mechanism is the spectator embedding: the three-party Mermin dance runs on parties{0,1,2}, parties≥ 3measureX; the full-nproduct parity contradiction (each party's±1value appears squared, so the four correlations multiply to+1while their product of QM values is−1) is a genuinen-party statement (product overFin n,n-party contexts).no_lhv_assignment_for_ghz4is an essentially-four-party witness (all four parties measureYat least twice; no spectator) via the same parity mechanism.Capstone
ghzNDeisolation_flow_capstone(five conjuncts, mirror C.2/LF6-D):Φ ≠ id, FS-measure-preserving, pointer volume = Born, a.s. freq → Born, n-party deterministic no-LHV forcing.The general-
nGHZ_n QM tensor-Pauli link (deliverable 5, residual closure).ghzN_expectation_corner(the two-corner Hilbert reducer onFin (2^n)),tensorPauliFin(then-fold tensor Pauli via the product-of-factor-entries Kronecker formula on the bit-decomposition basisfinFunctionFinEquiv),ghzN_mermin_correlation/ghzN_mermin_correlations(the four GHZ_n Mermin correlations+1, −1, −1, −1DERIVED for everyn ≥ 3, the spectatorX-factors contributing+1viaprod_ghzNCtx), andno_product_partition_realises_ghzN_qm(the forcing routed through GHZ_n's ACTUAL QM correlations viareproducesGHZN_QM_iff). This closes the general-nQM-link residual.
Honest scope (the GHZ_n ledger) #
- Born imported, not derived. Born = FS-volume is the DH/moment-map cluster's
(
fs_born_volume_ratio_N, Gleason-free, no Born put in), imported throughvnDilation_pointer_volume. The GHZ_n Born weights are computed from the two amplitudes; this file does not re-derive Born = volume. - Realisation, not derivation. The flow realises the GHZ_n measurement dynamically; the carve is the joint moment subdivision, never a setting-local product region.
- The forcing is genuine, not posited, not a hollow re-export. The theorem's
type genuinely quantifies over
nparties,n-party product partitions, and full-ncontext correlations; the proof is a genuinen-party parity argument. Honest caveat on physical strength: the general-nforcing routes the contradiction through the three-party Mermin paradox embedded vian − 3X-spectators; it is a valid GHZ_n all-or-nothing but does not exhibit essentially-n-party entanglement beyond three.no_lhv_assignment_for_ghz4is the essentially-four-party witness (all parties participate) demonstrating genuine beyond-n=3content. The physical regime isn ≥ 3(the targets⟨XXX…⟩ = +1,⟨XYY…⟩ = −1, … are GHZ_n's actual Mermin correlations for everyn ≥ 3, DERIVED here asghzN_mermin_correlations— deliverable 5, generaln; atn = 3this agrees withEmpirical.GHZ.ghz_expectation_*). - Residue: SO-1. The GHZ_n entangled sector / preparation region is posited, not
derived (SO-1: the sector origin, distinct from Paper C Axiom A5); the typicality law on
Σ'is the Fubini-Study measure (SO-1).
Residual (named, honestly) #
- The uniform closed-form essentially-all-
n-parties general-nMermin all-or-nothing (which uses every party non-trivially; the construction depends onn mod 4and is not delivered uniformly here — only the spectator-embedding general-nand the essentially-four-partyn = 4witness are). - CLOSED (2026-07-03, deliverable 5): the general-
nGHZ_n QM confirmation. The four±1targets are DERIVED to be the actual⟨σ_{a_1} ⊗ … ⊗ σ_{a_n}⟩Mermin correlations for everyn ≥ 3(ghzN_mermin_correlations, via the two-corner reducerghzN_expectation_cornerand the product-of-factor-entries tensor PaulitensorPauliFin), no longern = 3-anchored toEmpirical.GHZ. The one residual sub-point: the fully-general arbitrary-Pauli-tensor reducer (anyZfactors, any axis pattern) is not delivered; only theX/YMermin family relevant to the fourghzNCtxcontexts is (which is exactly what the forcing consumes).
All exports are foundational-triple-only (Gleason-free; the LF5 pointer engine is
off Busch, the forcing is measure-theoretic Mermin content; decide is used only
on the two-element PauliAxis inequality x ≠ y (and the n = 4 witness closes
by norm_num/ring), no native_decide).
Reference: specs/lf6-plan.md (GHZ_n tranche).
2 ^ n is nonzero (targeted local instance so the LF5 engine at N = 2^n
synthesises [NeZero (2^n)]).
The top computational index 2^n − 1 (all-ones) #
The GHZ_n Born weights #
The GHZ_n Born weights. The n-qubit GHZ state has support exactly on the
two all-equal computational indices 0 (all zeros) and topIdx n (all ones),
each with weight 1/2; every other outcome has weight 0. Not a stub:
ghzN_normSq_eq_weight proves it equals ‖(ghzN n) i‖².
Equations
- CSD.LF6.ghzNWeight n i = if i = 0 ∨ i = CSD.LF6.topIdx n then 2⁻¹ else 0
Instances For
The GHZ_n state #
The n-qubit GHZ state (|0…0⟩ + |1…1⟩)/√2 on EuclideanSpace ℂ (Fin (2^n)):
computational amplitude (√2)⁻¹ on the all-zeros index 0 and the all-ones index
topIdx n, 0 elsewhere. Unit-norm for n ≥ 1. The direct Fin (2^n)
generalisation of the three-party ghzState.
Equations
- CSD.LF6.ghzN n = WithLp.toLp 2 fun (i : Fin (2 ^ n)) => if i = 0 ∨ i = CSD.LF6.topIdx n then (↑√2)⁻¹ else 0
Instances For
The GHZ_n Born weights are the squared computational amplitudes. For every
outcome i, ‖(ghzN n) i‖² = ghzNWeight n i — computed from the amplitude (√2)⁻¹
(‖·‖² = 1/2) on the support and the zeros off it.
The GHZ_n Born weights sum to 1 (two support cells, each 1/2), for n ≥ 1.
GHZ_n is a unit preparation for n ≥ 1. ‖ghzN n‖² = ∑_i ghzNWeight n i = 1.
Discharges the hψ hypothesis of the LF5 pointer-volume / frequency theorems.
The GHZ_n coordinate-Born identity. The squared computational amplitude of
GHZ_n at pointer cell i equals the Born weight ghzNWeight n i, in the
inner ⟨e_i, ·⟩ form the LF5 pointer theorems consume.
Deliverable 2: the de-isolation flow (the clean general-party core) #
The GHZ_n de-isolation flow Φ = measurementFlow (2^n) finProdFinEquiv on
the dilated projective ontic space Σ' = ℂℙ^{2^n·2^n − 1}. The LF5-B von Neumann
de-isolation flow instantiated at the joint n-qubit system N = 2^n.
Equations
Instances For
The GHZ_n de-isolation flow is genuinely not the identity for n ≥ 1
(1 < 2^n), inherited from measurementFlow_ne_id.
The reproduction (the GHZ_n headline). The context-fixed BornRegion
pointer-block i Fubini-Study volume of the GHZ_n de-isolation flow equals the
GHZ_n Born weight ghzNWeight n i, for the prepared state φ = ghzN n, every
n ≥ 1.
The proof composes LF5 vnDilation_pointer_volume at N = 2^n (pointer-block
volume = ‖⟨e_i, φ⟩‖², Gleason-free, Born = FS-volume imported from the DH engine)
with the coordinate-Born identity ghzN_born (the computed GHZ_n weights).
The empirical capstone. For i.i.d. Fubini-Study-typical trials on the
dilated Σ' = ℂℙ^{2^n·2^n − 1} (the sector-typicality posit (SO-1) on the enlarged entangled
sector), almost surely every pointer-block i empirical frequency converges to the
GHZ_n Born weight ghzNWeight n i. Instantiates LF5 vnDilation_pointer_frequency
at N = 2^n, φ = ghzN n, landing the limit on ghzNWeight via ghzN_born.
Deliverable 3: the n-party deterministic (Mermin) forcing #
The n-party generalisation of C.1's forced-contextuality no-go
(no_product_partition_realises_ghz). The mechanism is the spectator
embedding: parties {0,1,2} run the three-party Mermin dance, parties ≥ 3
measure X; the full-n product parity contradiction is a genuine n-party
statement.
The n-party Mermin context (a, b, c): party 0 measures Pauli axis a,
party 1 axis b, party 2 axis c, every party ≥ 3 (spectator) axis X.
Equations
Instances For
No n-party ±1 LHV assignment reproduces the GHZ_n Mermin product
constraints (the combinatorial all-or-nothing, general n). The four full-n
context products must equal +1 (all-X), −1, −1, −1 (the twisted XYY / YXY / YYX contexts, spectators X); multiplying them, each party's ±1 value
appears an even number of times so the product is +1, while the product of the
four target values is −1. Contradiction.
Genuinely n-party (product over Fin n, n-party contexts). Physical regime
n ≥ 3; the mechanism is the three-party Mermin paradox embedded via n − 3
X-spectators (see the module ledger).
The measure-theoretic n-party forcing (generalising C.1) #
The full-n context product of ±1-valued responses is ±1 (its square is 1).
The full-n context product is measurable (finite product of measurable
responses).
R is a product (non-contextual) partition of the shared ontic space
(Λ, μ) for the n-party GHZ scenario: R i ax is the ±1 measurable response of
party i ∈ Fin n measuring Pauli axis ax ∈ {x, y}, a function of that party's own
axis and the shared microstate alone. The n-party analogue of C.1's
IsProductPartitionGHZ.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A product partition reproduces the GHZ_n Mermin correlations if its four
factorisable full-n context-product expectations match the GHZ_n perfect
correlations +1 (all-X), −1, −1, −1 (the twisted contexts). These
±1 targets ARE GHZ_n's actual QM tensor-Pauli Mermin correlations for every
n ≥ 3 — DERIVED as ghzN_mermin_correlations (deliverable 5, general n;
X⊗ⁿ is a +1 stabiliser, a two-Y-rest-X operator has eigenvalue −1
independent of the spectator count). The forcing is routed through those actual QM
correlations by no_product_partition_realises_ghzN_qm (via reproducesGHZN_QM_iff
and ReproducesGHZN_QM); the general-n QM link is CLOSED (previously formalised
only at n = 3 via Empirical.GHZ).
Equations
- One or more equations did not get rendered due to their size.
Instances For
no_product_partition_realises_ghzN (the n-party generalisation of C.1, the
load-bearing forcing). There is NO product (setting-local, non-contextual)
partition of any shared probability space (Λ, μ) whose factorisable full-n
context-product expectations reproduce the GHZ_n Mermin correlations.
Proof (deterministic all-or-nothing, generalising C.1): each of the four ±1-valued
full-n product integrands has expectation exactly ±1, so by pm_ae_eq it equals
that value μ-a.e.; the four full-measure sets intersect (probability measure),
giving a single microstate l₀. Reading off the ±1 value of every party-and-axis
response at l₀ yields an n-party deterministic assignment satisfying all four
Mermin product constraints, which no_lhvN_assignment_for_ghzN forbids. Genuinely
n-party; physical regime n ≥ 3 (see the module ledger).
The essentially-four-party witness (all parties participate) #
no_lhv_assignment_for_ghz4 is a genuine four-party all-or-nothing forcing where
NO party is a pure spectator: every party measures Y at least twice across the
four contexts (YYYY, YXXY, XYXY, XXYY). This is genuine essentially-n-party
content beyond the three-party paradox, via the same parity mechanism (the uniform
essentially-all-n-parties construction, n mod 4-dependent, is the residual).
No four-party ±1 LHV assignment reproduces the essentially-four-party GHZ_4
Mermin constraints. Contexts YYYY (+1), YXXY (−1), XYXY (−1), XXYY (−1);
every party has an even (4 or 2) Y/X count, so multiplying the four
constraints gives +1 while the product of target values is −1. All four parties
participate non-trivially (no spectator).
Deliverable 4: the capstone #
The GHZ_n capstone: the n-party GHZ de-isolation flow. A deterministic,
Fubini-Study-measure-preserving de-isolation flow Φ ≠ id on the dilated
Σ' = ℂℙ^{2^n·2^n − 1}, for every n ≥ 3, whose context-fixed BornRegion
pointer-block volumes are the GHZ_n Born weights ghzNWeight, with a.s. block
frequencies → the weights, plus the n-party deterministic (Mermin) forcing.
Conjuncts:
- genuine dynamics,
Φ ≠ id(measurementFlow_ne_id,1 < 2^n); - physically admissible: FS measure-preserving (
measurementFlow_measurePreserving); - pointer-block FS volume = the GHZ_n Born weight, every outcome
(
ghzNDeisolation_pointer_volume); - a.s. block frequencies → the GHZ_n Born weight (
ghzNDeisolation_frequency); - the n-party deterministic forcing: no setting-local
±1product partition reproduces the GHZ_n Mermin correlations (no_product_partition_realises_ghzN).
Born = FS-volume is imported from the DH/FS-volume engine, not re-derived; the flow
realises (not derives) the GHZ_n measurement. The forcing is a genuine n-party
statement whose mechanism is the three-party Mermin paradox embedded via
X-spectators (no_lhv_assignment_for_ghz4 is the essentially-four-party witness).
Residue: SO-1 (the GHZ_n entangled sector posited). Honest ledger: module docstring.
Deliverable 5 (residual closure): the general-n GHZ_n QM tensor-Pauli link #
Closes the LF6-E named residual "the general-n GHZ_n QM confirmation that the ±1
targets are the actual ⟨σ_{a_1} ⊗ … ⊗ σ_{a_n}⟩ Mermin correlations". The four ±1
targets of ReproducesGHZN / no_lhvN_assignment_for_ghzN (+1 all-X, −1 for
each twisted 2-Y context) are here DERIVED to be GHZ_n's own tensor-Pauli Mermin
correlations ⟨GHZ_n | σ_{a_1} ⊗ … ⊗ σ_{a_n} | GHZ_n⟩, for every n ≥ 3, as a
genuine Hilbert computation (the two-corner reducer + the product-of-factor-entries
tensor Pauli on the bit-decomposition basis), not asserted and not n = 3-anchored.
The tensor-Pauli operator is tensorPauliFin n f, whose (r, c) entry is the
standard product-of-factor-entries formula ∏ i, (σ·f i)_{r_i, c_i} under the bit
decomposition Fin (2^n) ≃ (Fin n → Fin 2) (finFunctionFinEquiv). This IS the
n-fold Kronecker product σ·f₁ ⊗ … ⊗ σ·f_n (the definition of the Kronecker
product on the tensor-basis indices); at n = 3 it agrees, up to the
Fin 8 ≃ Fin 2 × Fin 2 × Fin 2 reindexing, with Empirical.GHZ.sigmaDotTriple.
GHZ_n written as (√2)⁻¹ • (|0…0⟩ + |1…1⟩) in the two-support single-vector
form the corner reducer consumes.
The two-corner reducer for GHZ_n. For any Fin (2^n)-indexed matrix M,
⟨GHZ_n | M | GHZ_n⟩ reduces to a half-sum over the four corner entries at the two
all-equal indices 0 (all zeros) and topIdx n (all ones). A genuine Hilbert
computation: GHZ_n is supported on exactly {0, topIdx n}, each with amplitude
(√2)⁻¹, so the double sum collapses to the four corner terms, each carrying
((√2)⁻¹)² = 1/2. The Fin (2^n) analogue of Empirical.GHZ.ghz_expectation_formula
and phiPlus_expectation_formula.
The tensor-Pauli operator on the bit-decomposition basis #
The n-fold tensor-Pauli operator σ·f₁ ⊗ … ⊗ σ·f_n on Fin (2^n), via the
standard product-of-factor-entries Kronecker formula on the bit-decomposition basis:
its (r, c) entry is ∏ i, (σ·f i)_{bit r i, bit c i}.
Equations
- CSD.LF6.tensorPauliFin n f = Matrix.of fun (r c : Fin (2 ^ n)) => ∏ i : Fin n, CSD.LF3.pauliDot (f i) (CSD.LF6.bitDecomp n r i) (CSD.LF6.bitDecomp n c i)
Instances For
The single-qubit axis assignment and its Pauli entries #
The measurement axis as a DetectorSetting: x ↦ chshA = (1,0,0) (σ_x),
y ↦ chshA' = (0,1,0) (σ_y).
Equations
Instances For
(σ·axisVec ax)_{0,0} = a_z = 0 (both σ_x, σ_y are traceless, z-free).
(σ·axisVec ax)_{1,1} = −a_z = 0.
The (0,1) corner entry: 1 for X, −i for Y (a_x − i a_y).
The (1,0) corner entry: 1 for X, i for Y (a_x + i a_y).
The GHZ_n tensor-Pauli expectation and the four Mermin correlations #
The GHZ_n tensor-Pauli expectation for a context c : Fin n → PauliAxis:
⟨GHZ_n | σ·(axisVec (c 0)) ⊗ … ⊗ σ·(axisVec (c (n−1))) | GHZ_n⟩.
Equations
- CSD.LF6.ghzNPauliExpectation n c = inner ℂ (CSD.LF6.ghzN n) ((Matrix.toEuclideanLin (CSD.LF6.tensorPauliFin n fun (i : Fin n) => CSD.LF6.axisVec (c i))) (CSD.LF6.ghzN n))
Instances For
The GHZ_n expectation reduces to the two off-diagonal corner products. For
every context of X/Y axes and every n ≥ 1,
⟨GHZ_n | ⊗σ | GHZ_n⟩ = (1/2)(∏_i (σ·axisVec (c i))_{0,1} + ∏_i (σ·axisVec (c i))_{1,0}).
The (0,0) and (1,1) corner products vanish (each factor = a_z = 0); the
surviving two are the (0,1)/(1,0) products. Genuine Hilbert computation via
ghzN_expectation_corner.
Spectator collapse. For a context (a on party 0, b on party 1, c on party 2, X on every spectator party ≥ 3) and any factor function F with F x = 1, the
full-n product collapses to the three essential parties: ∏_i F(ghzNCtx a b c n i) = F a · F b · F c, for every n ≥ 3. This is what makes the n − 3 X-spectators
contribute +1 and the general-n correlation match the three-party Mermin value.
The GHZ_n Mermin correlation (general n). For a Mermin context (a, b, c)
with X-spectators, `⟨GHZ_n | ⊗σ | GHZ_n⟩ = (1/2)(g₀₁ a · g₀₁ b · g₀₁ c
- g₁₀ a · g₁₀ b · g₁₀ c)
, whereg₀₁ = (1, −i)on(X, Y)andg₁₀ = (1, i). Derived fromghzNPauliExpectation_eq+prod_ghzNCtx, everyn ≥ 3`.
GHZ_n ⟨XXX…X⟩ = +1 (all-X context, general n ≥ 3). Mermin identity #1,
GHZ_n's own tensor-Pauli correlation.
GHZ_n ⟨XYY…⟩ = −1 (twisted X,Y,Y context, X-spectators, general n ≥ 3).
Mermin identity #2; n_y = 2, cos(π) = −1.
GHZ_n ⟨YXY…⟩ = −1 (twisted Y,X,Y context, general n ≥ 3). Mermin
identity #3.
GHZ_n ⟨YYX…⟩ = −1 (twisted Y,Y,X context, general n ≥ 3). Mermin
identity #4.
The four GHZ_n Mermin correlations, general n ≥ 3 (the residual-closing bundle).
⟨XXX…⟩ = +1, ⟨XYY…⟩ = −1, ⟨YXY…⟩ = −1, ⟨YYX…⟩ = −1 are GHZ_n's OWN
tensor-Pauli correlations, for every n ≥ 3 — the four ±1 targets of
ReproducesGHZN / no_lhvN_assignment_for_ghzN. Genuine derived Hilbert
computations, not n = 3-anchored.
Routing the forcing through GHZ_n's actual QM correlations #
A product partition reproduces GHZ_n's ACTUAL QM tensor-Pauli Mermin
correlations: its four factorisable full-n context-product expectations match
(ghzNPauliExpectation n …).re, i.e. the genuine ⟨GHZ_n | ⊗σ | GHZ_n⟩. Unlike
ReproducesGHZN (bare ±1 numerals), the targets here are GHZ_n's own derived Hilbert
correlations.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The QM link (general n ≥ 3): the ±1 targets ARE GHZ_n's QM correlations.
ReproducesGHZN_QM n μ R ↔ ReproducesGHZN n μ R, because GHZ_n's four tensor-Pauli
Mermin correlations are exactly +1, −1, −1, −1 (ghzN_mermin_correlations). This is
the residual closure: the abstract ±1 targets of the forcing are GHZ_n's OWN QM
correlations, for every n ≥ 3, not just n = 3.
no_product_partition_realises_ghzN_qm (the residual-closed forcing, general
n ≥ 3). No product (setting-local, non-contextual) partition of any shared
probability space reproduces GHZ_n's ACTUAL QM tensor-Pauli Mermin correlations
⟨GHZ_n | ⊗σ | GHZ_n⟩ (the .re values +1, −1, −1, −1). Routes the LF6-E forcing
no_product_partition_realises_ghzN through GHZ_n's own derived QM correlations
(reproducesGHZN_QM_iff), so the general-n GHZ_n non-locality is genuinely
GHZ_n-specific and not n = 3-anchored.