Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Locally causal beable models, and the setting-dependent model of Appendix 3

Definition
DrezetGHZ_Models

by LG · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

bell-nonlocalityghzquantum-foundations

Beable models of the three-party GHZ experiment.

  1. A locally causal (Bell-local) model on a measurable space Λ\LambdaΛ of beables consists of:

    • a probability measure ρ\rhoρ on Λ\LambdaΛ that does not depend on the settings (Eq. (18));
    • measurable local response probabilities Pj(α∣λ,n^)≥0P_j(\alpha\mid\lambda,\hat n)\ge0Pj​(α∣λ,n^)≥0 for j∈{1,2,3}j\in\{1,2,3\}j∈{1,2,3} (Alice, Bob, Charlie), with ∑α=±1Pj(α∣λ,n^)=1\sum_{\alpha=\pm1}P_j(\alpha\mid\lambda,\hat n)=1∑α=±1​Pj​(α∣λ,n^)=1. Each depends only on the beable λ\lambdaλ and that party's own setting (Eq. (17)).

    Its predicted joint probability (Eq. (14) with (17)–(18)) is

P(α,β,γ∣n^1,n^2,n^3)=∫ΛP1(α∣λ,n^1)P2(β∣λ,n^2)P3(γ∣λ,n^3) dρ(λ).P(\alpha,\beta,\gamma\mid\hat n_1,\hat n_2,\hat n_3)=\int_\Lambda P_1(\alpha\mid\lambda,\hat n_1)P_2(\beta\mid\lambda,\hat n_2)P_3(\gamma\mid\lambda,\hat n_3)\,d\rho(\lambda).P(α,β,γ∣n^1​,n^2​,n^3​)=∫Λ​P1​(α∣λ,n^1​)P2​(β∣λ,n^2​)P3​(γ∣λ,n^3​)dρ(λ).
  1. The GHZ sign s(n^1,n^2,n^3)s(\hat n_1,\hat n_2,\hat n_3)s(n^1​,n^2​,n^3​) is −1-1−1 for (x^,x^,x^)(\hat x,\hat x,\hat x)(x^,x^,x^) and +1+1+1 for (x^,y^,y^)(\hat x,\hat y,\hat y)(x^,y^​,y^​), (y^,x^,y^)(\hat y,\hat x,\hat y)(y^​,x^,y^​) and (y^,y^,x^)(\hat y,\hat y,\hat x)(y^​,y^​,x^) (see Eqs. (2)–(5)).
  2. Appendix 3 model. The local responses (Eq. (43)) are
Pj(α∣θj,x^)=1+αcos⁡θj2,Pj(α∣θj,y^)=1+αsin⁡θj2.P_j(\alpha\mid\theta_j,\hat x)=\frac{1+\alpha\cos\theta_j}{2},\qquad P_j(\alpha\mid\theta_j,\hat y)=\frac{1+\alpha\sin\theta_j}{2}.Pj​(α∣θj​,x^)=21+αcosθj​​,Pj​(α∣θj​,y^​)=21+αsinθj​​.

The setting-dependent density on angle triples (Eqs. (44)–(45)) is

ρ(θ1,θ2,θ3∣n^1,n^2,n^3)=14∑v1v2v3=sδ(ϑ(n^1,v1), ϑ(n^2,v2), ϑ(n^3,v3)),\rho(\theta_1,\theta_2,\theta_3\mid\hat n_1,\hat n_2,\hat n_3)=\tfrac14\sum_{v_1v_2v_3=s}\delta_{(\vartheta(\hat n_1,v_1),\,\vartheta(\hat n_2,v_2),\,\vartheta(\hat n_3,v_3))},ρ(θ1​,θ2​,θ3​∣n^1​,n^2​,n^3​)=41​v1​v2​v3​=s∑​δ(ϑ(n^1​,v1​),ϑ(n^2​,v2​),ϑ(n^3​,v3​))​,

where ϑ(x^,+1)=0\vartheta(\hat x,+1)=0ϑ(x^,+1)=0, ϑ(x^,−1)=π\vartheta(\hat x,-1)=\piϑ(x^,−1)=π, ϑ(y^,+1)=π/2\vartheta(\hat y,+1)=\pi/2ϑ(y^​,+1)=π/2 and ϑ(y^,−1)=−π/2\vartheta(\hat y,-1)=-\pi/2ϑ(y^​,−1)=−π/2 are the polar angles of ±x^\pm\hat x±x^ and ±y^\pm\hat y±y^​.

The locally causal model is the object that the GHZ theorem rules out. The Appendix 3 model shows that dropping Eq. (18) removes the obstruction.

Formalization Note The fixed state ψ\psiψ is implicit. Parties are indexed 0,1,20,1,20,1,2 in Lean. The GHZ sign is also +1+1+1 on the four setting triples that are not GHZ settings; the paper does not use those.

Definition code
import Mathlib
import Definitions.Def_DrezetGHZ_Quantum

/-!
# Beable models of the GHZ experiment (Drezet 2023, Eqs. (14), (17), (18), (33), (39)–(44))
-/

namespace DrezetGHZ

open MeasureTheory

/-- A **Bell-local (locally causal) beable model** of the three-party experiment
(Eqs. (14), (17), (18)).

* `ρ` is the probability distribution of the beables `λ ∈ Λ`; it does **not** depend on
  the settings (statistical independence / no superdeterminism, Eq. (18)).
* `P j λ n α` is the local probability `P_j(α | λ, n̂_j, ψ)` that party `j`
  (`0` = Alice, `1` = Bob, `2` = Charlie) records outcome `α ∈ {±1}` given the beable `λ`
  and **its own** setting `n` only (local factorizability, Eq. (17)).
  The fixed quantum state `ψ` is left implicit. -/
structure LocalCausalModel (Λ : Type*) [MeasurableSpace Λ] where
  /-- Setting-independent distribution `ρ(λ | ψ)` of the beables. -/
  ρ : Measure Λ
  isProbabilityMeasure : IsProbabilityMeasure ρ
  /-- Local response probabilities `P_j(α | λ, n̂_j, ψ)`. -/
  P : Fin 3 → Λ → Setting → ℤˣ → ℝ
  P_nonneg : ∀ j lam n α, 0 ≤ P j lam n α
  P_sum_one : ∀ j lam n, ∑ α, P j lam n α = 1
  P_measurable : ∀ j n α, Measurable fun lam => P j lam n α

/-- Joint outcome probability predicted by a locally causal model (Eq. (14) with (17), (18)):
`P(α, β, γ | n̂₁, n̂₂, n̂₃) = ∫ P₁(α|λ,n̂₁) P₂(β|λ,n̂₂) P₃(γ|λ,n̂₃) dρ(λ)`. -/
noncomputable def LocalCausalModel.predict {Λ : Type*} [MeasurableSpace Λ]
    (M : LocalCausalModel Λ) (n₁ n₂ n₃ : Setting) (α β γ : ℤˣ) : ℝ :=
  ∫ lam, M.P 0 lam n₁ α * M.P 1 lam n₂ β * M.P 2 lam n₃ γ ∂M.ρ

/-- The sign `s` of the GHZ constraint `αβγ = s` for the four GHZ settings
(Eqs. (2)–(5)): `-1` for `(x̂, x̂, x̂)`; `+1` for `(x̂, ŷ, ŷ)`, `(ŷ, x̂, ŷ)`, `(ŷ, ŷ, x̂)`.
(It is also `+1` on the other four setting triples, which play no role.) -/
def ghzSign : Setting → Setting → Setting → ℤˣ
  | .x, .x, .x => -1
  | _, _, _ => 1

/-- Local response probabilities of Appendix 3, Eq. (43):
`P_j(α | θ_j, x̂) = (1 + α cos θ_j)/2` and `P_j(α | θ_j, ŷ) = (1 + α sin θ_j)/2`,
where `θ_j` is the polar angle (in the `xy`-plane) of the unit vector `θ̂_j`. -/
noncomputable def appendixResponse (θ : ℝ) : Setting → ℤˣ → ℝ
  | .x, α => (1 + ((α : ℤ) : ℝ) * Real.cos θ) / 2
  | .y, α => (1 + ((α : ℤ) : ℝ) * Real.sin θ) / 2

/-- Polar angle of the unit vector `v n̂` (`v = ±1`, `n̂ ∈ {x̂, ŷ}`) in the `xy`-plane:
`x̂ ↦ 0`, `-x̂ ↦ π`, `ŷ ↦ π/2`, `-ŷ ↦ -π/2`. -/
noncomputable def settingAngle : Setting → ℤˣ → ℝ
  | .x, v => if v = 1 then 0 else Real.pi
  | .y, v => if v = 1 then Real.pi / 2 else -(Real.pi / 2)

/-- The setting-dependent ("superdeterministic") beable density of Appendix 3, Eq. (44):
`ρ(θ₁, θ₂, θ₃ | n̂₁, n̂₂, n̂₃, ψ) = ¼ ∑_{v₁v₂v₃ = s} δ(θ̂₁ − v₁n̂₁) δ(θ̂₂ − v₂n̂₂) δ(θ̂₃ − v₃n̂₃)`,
with `s = ghzSign n₁ n₂ n₃`, realised as a measure on angle triples `(θ₁, θ₂, θ₃) ∈ ℝ³`. -/
noncomputable def appendixDensity (n₁ n₂ n₃ : Setting) : Measure (ℝ × ℝ × ℝ) :=
  (1 / 4 : ENNReal) •
    ∑ v ∈ Finset.univ.filter (fun v : ℤˣ × ℤˣ × ℤˣ => v.1 * v.2.1 * v.2.2 = ghzSign n₁ n₂ n₃),
      Measure.dirac (settingAngle n₁ v.1, settingAngle n₂ v.2.1, settingAngle n₃ v.2.2)

end DrezetGHZ
Source
A. Drezet, "An Elementary Proof That Everett's Quantum Multiverse Is Nonlocal: Bell-Locality and Branch-Symmetry in the Many-Worlds Interpretation", arXiv:2306.07794v1 [quant-ph] (2023), https://arxiv.org/abs/2306.07794, p. 5 Eqs. (14), (17), (18); p. 13 Eq. (33); pp. 21–22 Appendix 3, Eqs. (39)–(45).
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind

Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted the Lean statements of this proposal, with full knowledge of the source paper and of the intended meaning. It is not a blind, independent audit and must not be mistaken for independent testimony; reviewers should compare the Lean code against the source themselves.

This file defines, inside the namespace DrezetGHZ, and depends on the quantum definitions (settings {x,y}\{x,y\}{x,y} and outcomes Z×={±1}\mathbb Z^\times=\{\pm1\}Z×={±1}):

A locally causal model on Λ\LambdaΛ. Fix a type Λ\LambdaΛ with a σ-algebra. A model consists of a measure ρ\rhoρ on Λ\LambdaΛ, a proof that ρ\rhoρ is a probability measure, and a function P:{0,1,2}×Λ×{x,y}×{±1}→RP:\{0,1,2\}\times\Lambda\times\{x,y\}\times\{\pm1\}\to\mathbb RP:{0,1,2}×Λ×{x,y}×{±1}→R such that:

  • Pj(λ,n,α)≥0P_j(\lambda,n,\alpha)\ge0Pj​(λ,n,α)≥0 for all arguments;
  • ∑α∈{±1}Pj(λ,n,α)=1\sum_{\alpha\in\{\pm1\}}P_j(\lambda,n,\alpha)=1∑α∈{±1}​Pj​(λ,n,α)=1 for all j,λ,nj,\lambda,nj,λ,n;
  • λ↦Pj(λ,n,α)\lambda\mapsto P_j(\lambda,n,\alpha)λ↦Pj​(λ,n,α) is measurable for every j,n,αj,n,\alphaj,n,α.

ρ\rhoρ carries no setting argument, and PjP_jPj​ receives only one setting.

Prediction. For settings n1,n2,n3n_1,n_2,n_3n1​,n2​,n3​ and outcomes α,β,γ\alpha,\beta,\gammaα,β,γ,

predict=∫ΛP0(λ,n1,α) P1(λ,n2,β) P2(λ,n3,γ) dρ(λ)\mathrm{predict}=\int_\Lambda P_0(\lambda,n_1,\alpha)\,P_1(\lambda,n_2,\beta)\,P_2(\lambda,n_3,\gamma)\,d\rho(\lambda)predict=∫Λ​P0​(λ,n1​,α)P1​(λ,n2​,β)P2​(λ,n3​,γ)dρ(λ)

is a Bochner integral. It would be 000 if the integrand were not integrable, but here the integrand is measurable and takes values in [0,1][0,1][0,1].

GHZ sign. s(x,x,x)=−1s(x,x,x)=-1s(x,x,x)=−1 and s=+1s=+1s=+1 on all seven other triples of settings.

Angle response. For θ∈R\theta\in\mathbb Rθ∈R: r(θ,x,α)=(1+αcos⁡θ)/2r(\theta,x,\alpha)=(1+\alpha\cos\theta)/2r(θ,x,α)=(1+αcosθ)/2 and r(θ,y,α)=(1+αsin⁡θ)/2r(\theta,y,\alpha)=(1+\alpha\sin\theta)/2r(θ,y,α)=(1+αsinθ)/2.

Setting angle. ϑ(x,v)=0\vartheta(x,v)=0ϑ(x,v)=0 if v=1v=1v=1 and π\piπ otherwise; ϑ(y,v)=π/2\vartheta(y,v)=\pi/2ϑ(y,v)=π/2 if v=1v=1v=1 and −π/2-\pi/2−π/2 otherwise.

Appendix density. For settings n1,n2,n3n_1,n_2,n_3n1​,n2​,n3​, the measure on R3\mathbb R^3R3

14∑(v1,v2,v3)∈{±1}3, v1v2v3=s(n1,n2,n3)δ(ϑ(n1,v1),ϑ(n2,v2),ϑ(n3,v3)).\tfrac14\sum_{(v_1,v_2,v_3)\in\{\pm1\}^3,\ v_1v_2v_3=s(n_1,n_2,n_3)}\delta_{(\vartheta(n_1,v_1),\vartheta(n_2,v_2),\vartheta(n_3,v_3))}.41​(v1​,v2​,v3​)∈{±1}3, v1​v2​v3​=s(n1​,n2​,n3​)∑​δ(ϑ(n1​,v1​),ϑ(n2​,v2​),ϑ(n3​,v3​))​.

Each such sum has exactly four point masses, so this is a probability measure.

Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Oct 8, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me