import InfoTheory.Problems.QuantumEntropyConeFourParty
import InfoTheory.Known
import InfoTheory.Bridge.Quantum
import InfoTheory.Bridge.FeketeAndCopyLemma
/-!
# Certificate for `InfoTheory.Problems.QuantumEntropyConeFourParty`
The frozen statement asks for a set function `h` on the subsets of four parties with `h ∅ = 0`,
strong subadditivity (SSA) and weak monotonicity (WM) that is not a limit of four-party von
Neumann entropy vectors `S ↦ quantumEntropyVec ρ S`. That is, it asks whether the closed
quantum entropy cone `cl Σ*₄` is strictly smaller than the SSA+WM cone (Pippenger 2003;
Linden–Winter 2005).
## Certified (about exactly these objects)
* **The marginals are states, so `matEntropy` is never junk.** `reducedMat_posSemidef` and
`reducedMat_trace` show that partial traces keep positive semidefiniteness and the trace.
So `marginalMat` (the reindexed marginal used in `quantumEntropyVec`) is a density matrix
(`marginalState`), and it is Hermitian (`marginalMat_isHermitian`). Two consequences:
`quantumEntropyVec_eq_spectral` gives `quantumEntropyVec ρ S = -∑ λ log₂ λ` over the spectrum
of `ρ_S`, and `quantumEntropyVec_eq_vonNeumannEntropy` identifies it with the Core
`vonNeumannEntropy`. Bounds: `quantumEntropyVec_nonneg` and `quantumEntropyVec_le`
(`≤ |S| log₂ d`).
* `quantumEntropyVec_empty`: `S(ρ_∅) = 0` for every state, matching `h ∅ = 0` in `Statement`.
`quantumEntropyVec_of_subsingleton` covers every one-dimensional marginal.
* **The constraint set meets the quantum cone.** `zero_satisfies_constraints` and
`zero_isQuantumAlmostEntropic`: the zero vector satisfies the three constraints and is the
entropy vector of the trivial state (`d = 1`).
* **Classical embedding (normalization check).** `quantumEntropyVec_diagState`: for a joint
distribution `P` on `Fin 4 → Fin d`, the diagonal state `diag(P)` has quantum entropy vector
equal to the Shannon entropy vector `subsetEntropyVec P`. Hence
`isQuantumAlmostEntropic_of_isEntropicVector` (`Γ*₄ ⊆ Σ*₄`) and
`isQuantumAlmostEntropic_of_inAlmostEntropicCone` (`cl Γ*₄ ⊆ cl Σ*₄`).
* **Genuinely quantum behaviour.** For `ψ = (|0000⟩ + |1100⟩)/√2` (`bellState`), the entropies
are `S(ρ₀) = S(ρ₁) = 1` and `S(ρ₀₁) = 0` (`bellState_entropy_zero`, `bellState_entropy_one`,
`bellState_entropy_zero_one`). So monotonicity fails: `bellState_not_isPolymatroid`. This
is why `Statement` uses WM instead of the monotonicity in `Γ₄`.
* **The open candidates satisfy the constraints.** Linden and Winter's two unresolved classes
of extreme rays of the SSA+WM cone are represented by rays I and II (`rayI`, `rayII`).
`rayI_satisfies_constraints` and `rayII_satisfies_constraints` show that each satisfies
`h ∅ = 0`, SSA and WM; the check is exhaustive over all pairs `S, T`.
`rays_violate_lindenWinter_and_ingleton` shows that each meets the hypotheses of the
Linden–Winter constrained inequality but violates its conclusion, and violates Ingleton by `2`.
So `¬ IsQuantumAlmostEntropic rayI` (or `rayII`) would prove `Statement`.
* **A new valid inequality proves `Statement`.** `statement_of_valid_inequality`: if a linear
form `∑ a_S h(S)` is nonnegative on every quantum entropy vector but negative at some `h`
satisfying the constraints, then `Statement` holds. This is one direction of the
"new unconstrained inequality" reading of `Statement`; the other needs Pippenger's cone theorem.
* **Zhang–Yeung would suffice.**
- `zhangYeung_diagState`: the classical Zhang–Yeung inequality (`zhangYeungForm`, in the
labelling of `InfoTheory.Bridge.zhang_yeung_subsetEntropyVec`) holds on every diagonal state.
This also checks the encoding of the form.
- `linComb_zhangYeung_rays`: rays I and II, relabelled by `0 ↔ 2`, `1 ↔ 3`
(`rayISwZ_eq`, `rayIISwZ_eq`), violate it by `2`.
- So `statement_of_zhangYeung`: if Zhang–Yeung held for von Neumann entropy, `Statement` would
follow.
## Not certified
* Whether Zhang–Yeung holds for von Neumann entropy (we found no result either way).
* SSA and WM for quantum states (Lieb–Ruskai 1973), so not that every quantum entropy vector
satisfies the constraints of `Statement`. Also not Pippenger's theorem that `cl Σ*ₙ` is a
convex cone, nor its `n ≤ 3` case.
* That rays I and II are extreme rays of the SSA+WM cone (checked numerically, not in Lean).
Also not the 76-ray enumeration with 6 of 8 classes realizable, nor Linden–Winter's
Corollary 5 that no state lies exactly on rays I or II. Given that enumeration and
Pippenger's cone theorem, `¬ Statement` holds iff rays I and II are both limits of quantum
entropy vectors. That is the open problem.
-/
open scoped BigOperators Matrix ComplexOrder
namespace InfoTheory.Known.Certificates.QuantumEntropyConeFourParty
open InfoTheory InfoTheory.Problems.QuantumEntropyConeFourParty
section Glue
variable {d : ℕ}
/-- Splitting a configuration of the four parties into its `S` part and its `Sᶜ` part is a
bijection, inverse to `glue`. -/
def glueEquiv (S : Finset (Fin 4)) : (↥S → Fin d) × (↥(Sᶜ) → Fin d) ≃ (Fin 4 → Fin d) where
toFun ik := glue S ik.1 ik.2
invFun x := (fun p => x p.1, fun p => x p.1)
left_inv := by
rintro ⟨i, k⟩
refine Prod.ext (funext fun p => ?_) (funext fun p => ?_)
· simp [glue, p.2]
· have hp : p.1 ∉ S := Finset.mem_compl.mp p.2
simp [glue, hp]
right_inv := by
intro x
funext p
by_cases h : p ∈ S <;> simp [glue, h]
theorem glue_injective_left (S : Finset (Fin 4)) (k : ↥(Sᶜ) → Fin d) :
Function.Injective (fun i : ↥S → Fin d => glue S i k) := by
intro i j hij
have := (glueEquiv (d := d) S).injective (a₁ := (i, k)) (a₂ := (j, k)) hij
exact congrArg Prod.fst this
theorem sum_glue {β : Type*} [AddCommMonoid β] (S : Finset (Fin 4))
(f : (Fin 4 → Fin d) → β) :
∑ i : ↥S → Fin d, ∑ k : ↥(Sᶜ) → Fin d, f (glue S i k) = ∑ x, f x := by
rw [← Fintype.sum_prod_type']
exact (glueEquiv S).sum_comp f
end Glue
section Marginals
variable {d : ℕ}
theorem reducedMat_eq_sum (ρ : Matrix (Fin 4 → Fin d) (Fin 4 → Fin d) ℂ) (S : Finset (Fin 4)) :
reducedMat ρ S = ∑ k : ↥(Sᶜ) → Fin d,
ρ.submatrix (fun i => glue S i k) (fun i => glue S i k) := by
ext i j
simp [reducedMat, Matrix.sum_apply]
/-- Partial traces of positive semidefinite matrices are positive semidefinite. -/
theorem reducedMat_posSemidef {ρ : Matrix (Fin 4 → Fin d) (Fin 4 → Fin d) ℂ}
(hρ : ρ.PosSemidef) (S : Finset (Fin 4)) : (reducedMat ρ S).PosSemidef := by
rw [reducedMat_eq_sum]
exact Matrix.posSemidef_sum _ fun k _ => hρ.submatrix _
/-- Partial traces preserve the trace. -/
theorem reducedMat_trace (ρ : Matrix (Fin 4 → Fin d) (Fin 4 → Fin d) ℂ) (S : Finset (Fin 4)) :
(reducedMat ρ S).trace = ρ.trace := by
simp only [Matrix.trace, Matrix.diag]
exact sum_glue S (fun x => ρ x x)
/-- The marginal on `S`, reindexed to `Fin _`, exactly as inside `quantumEntropyVec`. -/
noncomputable def marginalMat (ρ : FourPartyState d) (S : Finset (Fin 4)) :
Matrix (Fin (Fintype.card (↥S → Fin d))) (Fin (Fintype.card (↥S → Fin d))) ℂ :=
Matrix.reindex (Fintype.equivFin _) (Fintype.equivFin _) (reducedMat ρ.mat S)
theorem quantumEntropyVec_eq (ρ : FourPartyState d) (S : Finset (Fin 4)) :
quantumEntropyVec ρ S = matEntropy (marginalMat ρ S) := rfl
theorem trace_reindex_self {ι : Type*} [Fintype ι] [DecidableEq ι] {n : ℕ} (e : ι ≃ Fin n)
(M : Matrix ι ι ℂ) : (Matrix.reindex e e M).trace = M.trace := by
simp only [Matrix.trace, Matrix.diag, Matrix.reindex_apply, Matrix.submatrix_apply]
exact e.symm.sum_comp (fun i => M i i)
theorem marginalMat_posSemidef (ρ : FourPartyState d) (S : Finset (Fin 4)) :
(marginalMat ρ S).PosSemidef :=
(reducedMat_posSemidef ρ.posSemidef S).submatrix _
theorem marginalMat_trace (ρ : FourPartyState d) (S : Finset (Fin 4)) :
(marginalMat ρ S).trace = 1 := by
rw [marginalMat, trace_reindex_self, reducedMat_trace, ρ.trace_one]
/-- Every marginal of a four-party state is Hermitian, so `matEntropy` in `quantumEntropyVec`
always takes its spectral branch (never the junk value `0`). -/
theorem marginalMat_isHermitian (ρ : FourPartyState d) (S : Finset (Fin 4)) :
(marginalMat ρ S).IsHermitian :=
(marginalMat_posSemidef ρ S).isHermitian
/-- The marginal on `S` as a density matrix. -/
noncomputable def marginalState (ρ : FourPartyState d) (S : Finset (Fin 4)) :
DensityMatrix (Fintype.card (↥S → Fin d)) :=
⟨marginalMat ρ S, marginalMat_posSemidef ρ S, marginalMat_trace ρ S⟩
/-- `quantumEntropyVec ρ S = -∑ λ log₂ λ` over the eigenvalues `λ` of the marginal `ρ_S`. -/
theorem quantumEntropyVec_eq_spectral (ρ : FourPartyState d) (S : Finset (Fin 4)) :
quantumEntropyVec ρ S =
∑ a, negPLogP ((marginalMat_isHermitian ρ S).eigenvalues a) := by
simp only [quantumEntropyVec_eq, matEntropy, marginalMat_isHermitian ρ S, ↓reduceDIte]
theorem quantumEntropyVec_eq_vonNeumannEntropy (ρ : FourPartyState d) (S : Finset (Fin 4)) :
quantumEntropyVec ρ S = vonNeumannEntropy (marginalState ρ S) :=
(InfoTheory.Bridge.matEntropy_eq_vonNeumannEntropy (marginalState ρ S))
theorem quantumEntropyVec_nonneg (ρ : FourPartyState d) (S : Finset (Fin 4)) :
0 ≤ quantumEntropyVec ρ S := by
rw [quantumEntropyVec_eq_vonNeumannEntropy]
exact InfoTheory.Bridge.vonNeumannEntropy_nonneg _
/-- Each marginal entropy is at most `log₂` of the dimension of the marginal, `|S| log₂ d`. -/
theorem quantumEntropyVec_le (ρ : FourPartyState d) (S : Finset (Fin 4)) :
quantumEntropyVec ρ S ≤ S.card * log2 d := by
have hpos : 0 < Fintype.card (↥S → Fin d) := by
by_contra h0
have h0' : Fintype.card (↥S → Fin d) = 0 := Nat.eq_zero_of_not_pos h0
have htr := marginalMat_trace ρ S
rw [Matrix.trace, Finset.sum_eq_zero (fun a _ => absurd a.2 (by omega))] at htr
exact zero_ne_one htr
rw [quantumEntropyVec_eq]
refine (InfoTheory.Bridge.matEntropy_le_log2_of_posSemidef_trace_one
(marginalMat_posSemidef ρ S) (marginalMat_trace ρ S) hpos).trans (le_of_eq ?_)
rw [Fintype.card_fun, Fintype.card_coe, Fintype.card_fin, Nat.cast_pow, log2, log2,
Real.log_pow]
ring
/-- A trace-one matrix on a one-point index type becomes the `1 × 1` identity. -/
theorem reindex_eq_one_of_subsingleton {ι : Type*} [Fintype ι] [DecidableEq ι] [Subsingleton ι]
(M : Matrix ι ι ℂ) (hM : M.trace = 1) :
Matrix.reindex (Fintype.equivFin ι) (Fintype.equivFin ι) M = 1 := by
ext a b
have hab : a = b := (Fintype.equivFin ι).symm.injective (Subsingleton.elim _ _)
subst hab
have htr : M.trace = M ((Fintype.equivFin ι).symm a) ((Fintype.equivFin ι).symm a) := by
simp only [Matrix.trace, Matrix.diag]
exact Fintype.sum_subsingleton _ _
simp [Matrix.reindex_apply, ← htr, hM]
theorem matEntropy_one (n : ℕ) : matEntropy (1 : Matrix (Fin n) (Fin n) ℂ) = 0 := by
have h1 : (1 : Matrix (Fin n) (Fin n) ℂ) = Matrix.diagonal (fun _ => ((1 : ℝ) : ℂ)) := by
simp [Matrix.diagonal_one]
rw [h1, InfoTheory.Bridge.matEntropy_diag_real]
simp [negPLogP, log2]
/-- If the parties in `S` carry a one-dimensional space (e.g. `S = ∅`, or local dimension `1`),
the marginal entropy is `0`. -/
theorem quantumEntropyVec_of_subsingleton (ρ : FourPartyState d) (S : Finset (Fin 4))
[Subsingleton (↥S → Fin d)] : quantumEntropyVec ρ S = 0 := by
rw [quantumEntropyVec_eq, marginalMat,
reindex_eq_one_of_subsingleton _ (by rw [reducedMat_trace, ρ.trace_one]), matEntropy_one]
/-- **The empty marginal has entropy `0`** for every state, as for `h ∅ = 0` in `Statement`. -/
theorem quantumEntropyVec_empty (ρ : FourPartyState d) : quantumEntropyVec ρ ∅ = 0 := by
have : IsEmpty ↥(∅ : Finset (Fin 4)) := ⟨fun x => Finset.notMem_empty x.1 x.2⟩
exact quantumEntropyVec_of_subsingleton ρ ∅
end Marginals
section Trivial
/-- The trivial state with local dimension `1`. -/
noncomputable def trivialState : FourPartyState 1 where
mat := 1
posSemidef := Matrix.PosSemidef.one
trace_one := by simp [Matrix.trace_one]
theorem quantumEntropyVec_trivialState (S : Finset (Fin 4)) :
quantumEntropyVec trivialState S = 0 :=
quantumEntropyVec_of_subsingleton trivialState S
/-- The zero vector satisfies the three constraints of `Statement`. -/
theorem zero_satisfies_constraints :
(0 : Finset (Fin 4) → ℝ) ∅ = 0 ∧
(∀ S T : Finset (Fin 4),
(0 : Finset (Fin 4) → ℝ) (S ∪ T) + (0 : Finset (Fin 4) → ℝ) (S ∩ T) ≤
(0 : Finset (Fin 4) → ℝ) S + (0 : Finset (Fin 4) → ℝ) T) ∧
(∀ S T : Finset (Fin 4),
(0 : Finset (Fin 4) → ℝ) (S \ T) + (0 : Finset (Fin 4) → ℝ) (T \ S) ≤
(0 : Finset (Fin 4) → ℝ) S + (0 : Finset (Fin 4) → ℝ) T) := by
simp
/-- The zero vector is quantum (almost-)entropic: it is the entropy vector of the trivial state.
So the constraint set of `Statement` meets the quantum cone; the content of `Statement` is a
point of the SSA+WM cone outside its closure. -/
theorem zero_isQuantumAlmostEntropic : IsQuantumAlmostEntropic 0 := by
intro ε hε
refine ⟨1, trivialState, fun S => ?_⟩
simpa [quantumEntropyVec_trivialState] using hε
end Trivial
section Classical
variable {d : ℕ}
/-- The diagonal (classical) four-party state `diag(P)` of a joint distribution `P`. -/
noncomputable def diagState (P : ProbDist (Fin 4 → Fin d)) : FourPartyState d where
mat := Matrix.diagonal fun x => (P.pmf x : ℂ)
posSemidef := by
rw [Matrix.posSemidef_diagonal_iff]
intro x
exact Complex.zero_le_real.mpr (P.nonneg x)
trace_one := by
rw [Matrix.trace_diagonal, ← Complex.ofReal_sum, P.sum_one, Complex.ofReal_one]
theorem reducedMat_diagonal (v : (Fin 4 → Fin d) → ℂ) (S : Finset (Fin 4)) :
reducedMat (Matrix.diagonal v) S =
Matrix.diagonal fun i => ∑ k : ↥(Sᶜ) → Fin d, v (glue S i k) := by
ext i j
by_cases hij : i = j
· subst hij
simp [reducedMat]
· have hne : ∀ k, glue S i k ≠ glue S j k := fun k h => hij (glue_injective_left S k h)
simp [reducedMat, hne, hij]
/-- Restricting a glued configuration to `S` recovers its `S` part. -/
theorem restrict_glue (S : Finset (Fin 4)) (i : ↥S → Fin d) (k : ↥(Sᶜ) → Fin d) :
(fun p : ↥S => glue S i k p.1) = i := by
funext p
simp [glue, p.2]
/-- The `S`-marginal of `P` is the partial sum over the configurations of `Sᶜ`. -/
theorem marginal_pmf_eq (P : ProbDist (Fin 4 → Fin d)) (S : Finset (Fin 4))
(i : ↥S → Fin d) :
(P.map (fun x (p : ↥S) => x p.1)).pmf i = ∑ k : ↥(Sᶜ) → Fin d, P.pmf (glue S i k) := by
unfold ProbDist.map
dsimp only
rw [← sum_glue S]
simp only [restrict_glue]
simp
/-- **Classical embedding.** For the diagonal state `diag(P)`, the quantum entropy of every
marginal equals the Shannon entropy of the corresponding marginal of `P`: the quantum entropy
vector of `diag(P)` is the classical entropy vector `subsetEntropyVec P`. -/
theorem quantumEntropyVec_diagState (P : ProbDist (Fin 4 → Fin d)) (S : Finset (Fin 4)) :
quantumEntropyVec (diagState P) S = subsetEntropyVec P S := by
set f : (Fin 4 → Fin d) → (↥S → Fin d) := fun x p => x p.1 with hf
set e := Fintype.equivFin (↥S → Fin d) with he
have hv : (fun i : ↥S → Fin d => ∑ k : ↥(Sᶜ) → Fin d, (P.pmf (glue S i k) : ℂ)) =
fun i => (((P.map f).pmf i : ℝ) : ℂ) := by
funext i
rw [marginal_pmf_eq]
push_cast
rfl
have hmat : marginalMat (diagState P) S =
Matrix.diagonal (fun a => (((P.map f).pmf (e.symm a) : ℝ) : ℂ)) := by
rw [marginalMat]
change Matrix.reindex e e (reducedMat (Matrix.diagonal fun x => (P.pmf x : ℂ)) S) = _
rw [reducedMat_diagonal, hv, Matrix.reindex_apply, Matrix.submatrix_diagonal_equiv]
rfl
rw [quantumEntropyVec_eq, hmat, InfoTheory.Bridge.matEntropy_diag_real]
unfold subsetEntropyVec shannonEntropy
exact e.symm.sum_comp (fun i => negPLogP ((P.map f).pmf i))
/-- Every classical entropic vector of four random variables is a quantum entropy vector
(`Γ*₄ ⊆ Σ*₄`). -/
theorem isQuantumAlmostEntropic_of_isEntropicVector {h : Finset (Fin 4) → ℝ}
(hh : IsEntropicVector 4 h) : IsQuantumAlmostEntropic h := by
obtain ⟨k, P, hP⟩ := hh
intro ε hε
refine ⟨k, diagState P, fun S => ?_⟩
rw [quantumEntropyVec_diagState, ← hP S, sub_self, abs_zero]
exact hε
/-- The classical almost-entropic cone sits inside the closed quantum entropy cone
(`cl Γ*₄ ⊆ cl Σ*₄`). -/
theorem isQuantumAlmostEntropic_of_inAlmostEntropicCone {h : Finset (Fin 4) → ℝ}
(hh : InAlmostEntropicCone 4 h) : IsQuantumAlmostEntropic h := by
intro ε hε
obtain ⟨h', ⟨k, P, hP⟩, hclose⟩ := hh ε hε
refine ⟨k, diagState P, fun S => ?_⟩
rw [quantumEntropyVec_diagState, ← hP S]
exact hclose S
end Classical
section Bell
/-- A rank-one trace-one matrix `|φ⟩⟨φ|` has entropy `0`. -/
theorem matEntropy_vecMulVec_star {n : ℕ} (φ : Fin n → ℂ) (hφ : φ ⬝ᵥ star φ = 1) :
matEntropy (Matrix.vecMulVec φ (star φ)) = 0 := by
have hn : ∑ a, ‖φ a‖ ^ 2 = 1 := by
have h1 : ((∑ a, ‖φ a‖ ^ 2 : ℝ) : ℂ) = φ ⬝ᵥ star φ := by
push_cast
refine Finset.sum_congr rfl fun a _ => ?_
rw [Pi.star_apply, Complex.star_def, Complex.mul_conj, Complex.normSq_eq_norm_sq]
push_cast
rfl
rw [hφ] at h1
exact_mod_cast h1
have hmat : Matrix.vecMulVec φ (star φ) = (InfoTheory.Bridge.pureState φ hn).mat := by
ext i j
simp [InfoTheory.Bridge.pureState, Matrix.vecMulVec_apply]
rw [hmat, InfoTheory.Bridge.matEntropy_eq_vonNeumannEntropy,
InfoTheory.Bridge.vonNeumannEntropy_pure]
/-- The amplitude `1/√2`. -/
noncomputable def bellAmp : ℂ := ((Real.sqrt 2)⁻¹ : ℝ)
theorem bellAmp_mul_star : bellAmp * star bellAmp = ((1 / 2 : ℝ) : ℂ) := by
rw [bellAmp, Complex.star_def, Complex.conj_ofReal, ← Complex.ofReal_mul, ← mul_inv,
Real.mul_self_sqrt (by norm_num : (0 : ℝ) ≤ 2), one_div]
/-- The vector `|Φ⁺⟩₀₁ ⊗ |0⟩₂ ⊗ |0⟩₃ = (|0000⟩ + |1100⟩)/√2`: a Bell pair shared by parties
`0` and `1`, parties `2` and `3` in the basis state `|0⟩`. -/
noncomputable def bellVec : (Fin 4 → Fin 2) → ℂ :=
fun x => if x 0 = x 1 ∧ x 2 = 0 ∧ x 3 = 0 then bellAmp else 0
/-- The density matrix `|ψ⟩⟨ψ|` of `bellVec`. -/
noncomputable def bellMat : Matrix (Fin 4 → Fin 2) (Fin 4 → Fin 2) ℂ :=
Matrix.vecMulVec bellVec (star bellVec)
theorem glue_apply_of_mem {d : ℕ} {S : Finset (Fin 4)} (i : ↥S → Fin d) (k : ↥(Sᶜ) → Fin d)
{p : Fin 4} (hp : p ∈ S) : glue S i k p = i ⟨p, hp⟩ := by
simp [glue, hp]
theorem glue_apply_of_mem_compl {d : ℕ} {S : Finset (Fin 4)} (i : ↥S → Fin d)
(k : ↥(Sᶜ) → Fin d) {p : Fin 4} (hp : p ∈ Sᶜ) : glue S i k p = k ⟨p, hp⟩ := by
simp [glue, Finset.mem_compl.mp hp]
/-- Reduced entry of a rank-one matrix when, for the row index `i`, only the complement
configuration `k₀` carries amplitude. -/
theorem reducedMat_vecMulVec_of_single {d : ℕ} (ψ : (Fin 4 → Fin d) → ℂ) (S : Finset (Fin 4))
(i j : ↥S → Fin d) (k₀ : ↥(Sᶜ) → Fin d) (hz : ∀ k, k ≠ k₀ → ψ (glue S i k) = 0) :
reducedMat (Matrix.vecMulVec ψ (star ψ)) S i j = ψ (glue S i k₀) * star (ψ (glue S j k₀)) := by
simp only [reducedMat, Matrix.vecMulVec_apply, Pi.star_apply]
exact Finset.sum_eq_single k₀ (fun k _ hk => by rw [hz k hk, zero_mul])
(fun h => absurd (Finset.mem_univ _) h)
theorem fun_ext_singleton {α : Type*} {q : Fin 4} {i j : ↥({q} : Finset (Fin 4)) → α}
(h : i ⟨q, Finset.mem_singleton_self q⟩ = j ⟨q, Finset.mem_singleton_self q⟩) : i = j := by
funext ⟨p, hp⟩
obtain rfl := Finset.mem_singleton.mp hp
exact h
theorem fun_ext_compl {α : Type*} {S : Finset (Fin 4)} {k k' : ↥(Sᶜ) → α}
(h : ∀ (p : Fin 4) (hp : p ∈ Sᶜ), k ⟨p, hp⟩ = k' ⟨p, hp⟩) : k = k' := by
funext ⟨p, hp⟩
exact h p hp
theorem reducedMat_bellMat_zero :
reducedMat bellMat {0} = Matrix.diagonal (fun _ => ((1 / 2 : ℝ) : ℂ)) := by
ext i j
have h0 : (0 : Fin 4) ∈ ({0} : Finset (Fin 4)) := Finset.mem_singleton_self 0
let k₀ : ↥(({0} : Finset (Fin 4))ᶜ) → Fin 2 := fun p => if p.1 = 1 then i ⟨0, h0⟩ else 0
have hz : ∀ k, k ≠ k₀ → bellVec (glue {0} i k) = 0 := by
intro k hk
unfold bellVec
split_ifs with hc
· exfalso
obtain ⟨h01, h2, h3⟩ := hc
rw [glue_apply_of_mem _ _ h0, glue_apply_of_mem_compl _ _ (p := 1) (by decide)] at h01
rw [glue_apply_of_mem_compl _ _ (p := 2) (by decide)] at h2
rw [glue_apply_of_mem_compl _ _ (p := 3) (by decide)] at h3
refine hk (fun_ext_compl fun p hp => ?_)
have hp' : p = 1 ∨ p = 2 ∨ p = 3 := by revert hp; revert p; decide
rcases hp' with rfl | rfl | rfl
· simpa [k₀] using h01.symm
· simpa [k₀] using h2
· simpa [k₀] using h3
· rfl
have hci : glue {0} i k₀ 0 = glue {0} i k₀ 1 ∧ glue {0} i k₀ 2 = 0 ∧ glue {0} i k₀ 3 = 0 := by
rw [glue_apply_of_mem _ _ h0, glue_apply_of_mem_compl _ _ (p := 1) (by decide),
glue_apply_of_mem_compl _ _ (p := 2) (by decide),
glue_apply_of_mem_compl _ _ (p := 3) (by decide)]
simp [k₀]
have hi : bellVec (glue {0} i k₀) = bellAmp := by
unfold bellVec
split_ifs with h
· rfl
· exact absurd hci h
rw [bellMat, reducedMat_vecMulVec_of_single bellVec {0} i j k₀ hz, hi]
by_cases hij : i = j
· subst hij
rw [hi, bellAmp_mul_star, Matrix.diagonal_apply_eq]
· have hj : bellVec (glue {0} j k₀) = 0 := by
unfold bellVec
split_ifs with hc
· exfalso
apply hij
obtain ⟨h01, -, -⟩ := hc
rw [glue_apply_of_mem _ _ h0, glue_apply_of_mem_compl _ _ (p := 1) (by decide)] at h01
refine fun_ext_singleton ?_
simpa [k₀] using h01.symm
· rfl
rw [hj, star_zero, mul_zero, Matrix.diagonal_apply_ne _ hij]
theorem reducedMat_bellMat_one :
reducedMat bellMat {1} = Matrix.diagonal (fun _ => ((1 / 2 : ℝ) : ℂ)) := by
ext i j
have h1 : (1 : Fin 4) ∈ ({1} : Finset (Fin 4)) := Finset.mem_singleton_self 1
let k₀ : ↥(({1} : Finset (Fin 4))ᶜ) → Fin 2 := fun p => if p.1 = 0 then i ⟨1, h1⟩ else 0
have hz : ∀ k, k ≠ k₀ → bellVec (glue {1} i k) = 0 := by
intro k hk
unfold bellVec
split_ifs with hc
· exfalso
obtain ⟨h01, h2, h3⟩ := hc
rw [glue_apply_of_mem _ _ h1, glue_apply_of_mem_compl _ _ (p := 0) (by decide)] at h01
rw [glue_apply_of_mem_compl _ _ (p := 2) (by decide)] at h2
rw [glue_apply_of_mem_compl _ _ (p := 3) (by decide)] at h3
refine hk (fun_ext_compl fun p hp => ?_)
have hp' : p = 0 ∨ p = 2 ∨ p = 3 := by revert hp; revert p; decide
rcases hp' with rfl | rfl | rfl
· simpa [k₀] using h01
· simpa [k₀] using h2
· simpa [k₀] using h3
· rfl
have hci : glue {1} i k₀ 0 = glue {1} i k₀ 1 ∧ glue {1} i k₀ 2 = 0 ∧ glue {1} i k₀ 3 = 0 := by
rw [glue_apply_of_mem _ _ h1, glue_apply_of_mem_compl _ _ (p := 0) (by decide),
glue_apply_of_mem_compl _ _ (p := 2) (by decide),
glue_apply_of_mem_compl _ _ (p := 3) (by decide)]
simp [k₀]
have hi : bellVec (glue {1} i k₀) = bellAmp := by
unfold bellVec
split_ifs with h
· rfl
· exact absurd hci h
rw [bellMat, reducedMat_vecMulVec_of_single bellVec {1} i j k₀ hz, hi]
by_cases hij : i = j
· subst hij
rw [hi, bellAmp_mul_star, Matrix.diagonal_apply_eq]
· have hj : bellVec (glue {1} j k₀) = 0 := by
unfold bellVec
split_ifs with hc
· exfalso
apply hij
obtain ⟨h01, -, -⟩ := hc
rw [glue_apply_of_mem _ _ h1, glue_apply_of_mem_compl _ _ (p := 0) (by decide)] at h01
refine fun_ext_singleton ?_
simpa [k₀] using h01
· rfl
rw [hj, star_zero, mul_zero, Matrix.diagonal_apply_ne _ hij]
/-- The amplitude of `bellVec` on the `{0, 1}` part, with parties `2, 3` in `|00⟩`. -/
noncomputable def bellPair : (↥({0, 1} : Finset (Fin 4)) → Fin 2) → ℂ :=
fun i => bellVec (glue {0, 1} i (fun _ => 0))
theorem reducedMat_bellMat_zero_one :
reducedMat bellMat {0, 1} = Matrix.vecMulVec bellPair (star bellPair) := by
ext i j
have hz : ∀ k, k ≠ (fun _ => 0) → bellVec (glue {0, 1} i k) = 0 := by
intro k hk
unfold bellVec
split_ifs with hc
· exfalso
obtain ⟨-, h2, h3⟩ := hc
rw [glue_apply_of_mem_compl _ _ (p := 2) (by decide)] at h2
rw [glue_apply_of_mem_compl _ _ (p := 3) (by decide)] at h3
refine hk (fun_ext_compl fun p hp => ?_)
have hp' : p = 2 ∨ p = 3 := by revert hp; revert p; decide
rcases hp' with rfl | rfl
· exact h2
· exact h3
· rfl
rw [bellMat, reducedMat_vecMulVec_of_single bellVec {0, 1} i j _ hz]
rfl
theorem bellMat_trace : bellMat.trace = 1 := by
rw [← reducedMat_trace bellMat {0}, reducedMat_bellMat_zero, Matrix.trace_diagonal,
Finset.sum_const, Finset.card_univ]
have hc : Fintype.card (↥({0} : Finset (Fin 4)) → Fin 2) = 2 := by
simp
rw [hc]
push_cast
norm_num
/-- The four-party state `|ψ⟩⟨ψ|` with `ψ = (|0000⟩ + |1100⟩)/√2`. -/
noncomputable def bellState : FourPartyState 2 where
mat := bellMat
posSemidef := Matrix.posSemidef_vecMulVec_self_star _
trace_one := bellMat_trace
theorem negPLogP_half : negPLogP (1 / 2) = 1 / 2 := by
have hl : Real.log 2 ≠ 0 := (Real.log_pos (by norm_num)).ne'
unfold negPLogP
split_ifs with h
· norm_num at h
· rw [log2, one_div, Real.log_inv, neg_div, div_self hl]
ring
/-- A marginal equal to `I/2` on a qubit has entropy `1`. -/
theorem quantumEntropyVec_eq_one_of_half {S : Finset (Fin 4)} (hS : S.card = 1)
(hρ : reducedMat bellMat S = Matrix.diagonal (fun _ => ((1 / 2 : ℝ) : ℂ))) :
quantumEntropyVec bellState S = 1 := by
have hmat : marginalMat bellState S =
Matrix.diagonal (fun _ => ((1 / 2 : ℝ) : ℂ)) := by
rw [marginalMat]
change Matrix.reindex _ _ (reducedMat bellMat S) = _
rw [hρ, Matrix.reindex_apply, Matrix.submatrix_diagonal_equiv]
rfl
have hc : Fintype.card (↥S → Fin 2) = 2 := by
simp [hS]
rw [quantumEntropyVec_eq, hmat, InfoTheory.Bridge.matEntropy_diag_real, Finset.sum_const,
Finset.card_univ, Fintype.card_fin, hc, negPLogP_half]
norm_num
/-- **Bell pair, party 0:** `S(ρ₀) = 1`. -/
theorem bellState_entropy_zero : quantumEntropyVec bellState {0} = 1 :=
quantumEntropyVec_eq_one_of_half (Finset.card_singleton 0) reducedMat_bellMat_zero
/-- **Bell pair, party 1:** `S(ρ₁) = 1`. -/
theorem bellState_entropy_one : quantumEntropyVec bellState {1} = 1 :=
quantumEntropyVec_eq_one_of_half (Finset.card_singleton 1) reducedMat_bellMat_one
/-- **Bell pair, parties 0 and 1 jointly:** `S(ρ₀₁) = 0` (the pair is pure). -/
theorem bellState_entropy_zero_one : quantumEntropyVec bellState {0, 1} = 0 := by
set e := Fintype.equivFin (↥({0, 1} : Finset (Fin 4)) → Fin 2)
have hmat : marginalMat bellState {0, 1} =
Matrix.vecMulVec (bellPair ∘ e.symm) (star (bellPair ∘ e.symm)) := by
rw [marginalMat]
change Matrix.reindex e e (reducedMat bellMat {0, 1}) = _
rw [reducedMat_bellMat_zero_one]
ext a b
simp [Matrix.reindex_apply, Matrix.vecMulVec_apply]
have htr := marginalMat_trace bellState {0, 1}
rw [hmat, Matrix.trace_vecMulVec] at htr
rw [quantumEntropyVec_eq, hmat, matEntropy_vecMulVec_star _ htr]
/-- **Quantum entropy vectors violate monotonicity**, so the four-party quantum entropy region
is not contained in the Shannon polymatroid cone `Γ₄`: for the Bell-pair state,
`S(ρ₀₁) = 0 < 1 = S(ρ₀)`. -/
theorem bellState_not_isPolymatroid : ¬ IsPolymatroid 4 (quantumEntropyVec bellState) := by
rintro ⟨-, hmono, -⟩
have h := hmono {0} {0, 1} (by decide)
rw [bellState_entropy_zero, bellState_entropy_zero_one] at h
norm_num at h
end Bell
section LindenWinterRays
/-! ### The two unresolved extreme rays of the SSA+WM cone
Linden and Winter (2005, §4) report that the four-party SSA+WM cone has 76 extreme rays in
8 symmetry classes, that 6 classes are entropy vectors of quantum states, and that no state has
an entropy vector on the rays of the remaining two classes, I and II (their Corollary 5).
Parties `0, 1, 2, 3` here are their `A, B, C, D`. Subsets are tabulated by the bitmask
`∑_{p ∈ S} 2^p`. -/
/-- The bitmask `∑_{p ∈ S} 2^p` of a set of parties. -/
def subsetIdx (S : Finset (Fin 4)) : ℕ :=
(if (0 : Fin 4) ∈ S then 1 else 0) + (if (1 : Fin 4) ∈ S then 2 else 0) +
(if (2 : Fin 4) ∈ S then 4 else 0) + (if (3 : Fin 4) ∈ S then 8 else 0)
/-- Linden–Winter ray I: `h(A,B,C,D) = (3,3,2,2)`, `h(AB,AC,AD,BC,BD,CD) = (4,3,3,3,3,4)`,
`h(ABC,ABD,ACD,BCD) = (4,4,3,3)`, `h(ABCD) = 2`. -/
def rayIZ (S : Finset (Fin 4)) : ℤ :=
[0, 3, 3, 4, 2, 3, 3, 4, 2, 3, 3, 4, 4, 3, 3, 2].getD (subsetIdx S) 0
/-- Linden–Winter ray II: `h(A,B,C,D) = (3,3,3,3)`, `h(AB,AC,AD,BC,BD,CD) = (4,4,4,4,4,6)`,
`h(ABC,ABD,ACD,BCD) = (5,5,5,5)`, `h(ABCD) = 2`. -/
def rayIIZ (S : Finset (Fin 4)) : ℤ :=
[0, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 6, 5, 5, 2].getD (subsetIdx S) 0
/-- Ray I as a real set function. -/
def rayI (S : Finset (Fin 4)) : ℝ := rayIZ S
/-- Ray II as a real set function. -/
def rayII (S : Finset (Fin 4)) : ℝ := rayIIZ S
theorem rayIZ_constraints :
rayIZ ∅ = 0 ∧
(∀ S T : Finset (Fin 4), rayIZ (S ∪ T) + rayIZ (S ∩ T) ≤ rayIZ S + rayIZ T) ∧
(∀ S T : Finset (Fin 4), rayIZ (S \ T) + rayIZ (T \ S) ≤ rayIZ S + rayIZ T) := by
decide
theorem rayIIZ_constraints :
rayIIZ ∅ = 0 ∧
(∀ S T : Finset (Fin 4), rayIIZ (S ∪ T) + rayIIZ (S ∩ T) ≤ rayIIZ S + rayIIZ T) ∧
(∀ S T : Finset (Fin 4), rayIIZ (S \ T) + rayIIZ (T \ S) ≤ rayIIZ S + rayIIZ T) := by
decide
/-- **Ray I satisfies every constraint of `Statement`.** So `Statement` holds as soon as ray I
is shown not to be a limit of quantum entropy vectors. -/
theorem rayI_satisfies_constraints :
rayI ∅ = 0 ∧
(∀ S T : Finset (Fin 4), rayI (S ∪ T) + rayI (S ∩ T) ≤ rayI S + rayI T) ∧
(∀ S T : Finset (Fin 4), rayI (S \ T) + rayI (T \ S) ≤ rayI S + rayI T) := by
obtain ⟨h0, hssa, hwm⟩ := rayIZ_constraints
refine ⟨by simp [rayI, h0], fun S T => ?_, fun S T => ?_⟩
· unfold rayI
exact_mod_cast hssa S T
· unfold rayI
exact_mod_cast hwm S T
/-- **Ray II satisfies every constraint of `Statement`.** -/
theorem rayII_satisfies_constraints :
rayII ∅ = 0 ∧
(∀ S T : Finset (Fin 4), rayII (S ∪ T) + rayII (S ∩ T) ≤ rayII S + rayII T) ∧
(∀ S T : Finset (Fin 4), rayII (S \ T) + rayII (T \ S) ≤ rayII S + rayII T) := by
obtain ⟨h0, hssa, hwm⟩ := rayIIZ_constraints
refine ⟨by simp [rayII, h0], fun S T => ?_, fun S T => ?_⟩
· unfold rayII
exact_mod_cast hssa S T
· unfold rayII
exact_mod_cast hwm S T
/-- Rays I and II meet the hypotheses of the Linden–Winter constrained inequality,
`I(A:C|B) = I(B:C|A) = I(A:B|D) = 0`, but violate its conclusion `I(C:D) ≥ I(C:AB)`:
here `I(C:D) = 0` and `I(C:AB) = 2`. They also violate the Ingleton inequality
`I(A:B) ≤ I(A:B|C) + I(A:B|D) + I(C:D)` by `2`. -/
theorem rays_violate_lindenWinter_and_ingleton :
∀ h ∈ [rayIZ, rayIIZ],
h {0, 1} + h {1, 2} - h {0, 1, 2} - h {1} = 0 ∧
h {0, 1} + h {0, 2} - h {0, 1, 2} - h {0} = 0 ∧
h {0, 3} + h {1, 3} - h {0, 1, 3} - h {3} = 0 ∧
h {2} + h {3} - h {2, 3} = 0 ∧
h {2} + h {0, 1} - h {0, 1, 2} = 2 ∧
(h {0, 2} + h {1, 2} - h {0, 1, 2} - h {2}) + (h {0, 3} + h {1, 3} - h {0, 1, 3} - h {3}) +
(h {2} + h {3} - h {2, 3}) - (h {0} + h {1} - h {0, 1}) = -2 := by
decide
end LindenWinterRays
section LinearInequalities
/-! ### New valid linear inequalities prove `Statement`
A linear expression `∑ a_S h(S)` is encoded as a list of coefficient/subset pairs. -/
/-- The linear form `h ↦ ∑_{(a, S) ∈ l} a · h(S)`. -/
noncomputable def linComb (l : List (ℤ × Finset (Fin 4))) (h : Finset (Fin 4) → ℝ) : ℝ :=
(l.map fun p => (p.1 : ℝ) * h p.2).sum
/-- The `ℓ¹` norm of the coefficients. -/
def coeffNorm (l : List (ℤ × Finset (Fin 4))) : ℝ := (l.map fun p => |(p.1 : ℝ)|).sum
theorem coeffNorm_nonneg (l : List (ℤ × Finset (Fin 4))) : 0 ≤ coeffNorm l := by
unfold coeffNorm
induction l with
| nil => simp
| cons p l ih => simp only [List.map_cons, List.sum_cons]; positivity
theorem linComb_sub_le (l : List (ℤ × Finset (Fin 4))) {h q : Finset (Fin 4) → ℝ} {ε : ℝ}
(hε : ∀ S, |q S - h S| ≤ ε) : linComb l q - linComb l h ≤ coeffNorm l * ε := by
unfold linComb coeffNorm
induction l with
| nil => simp
| cons p l ih =>
simp only [List.map_cons, List.sum_cons]
have h1 : (p.1 : ℝ) * q p.2 - (p.1 : ℝ) * h p.2 ≤ |(p.1 : ℝ)| * ε := by
rw [← mul_sub]
calc (p.1 : ℝ) * (q p.2 - h p.2) ≤ |(p.1 : ℝ) * (q p.2 - h p.2)| := le_abs_self _
_ = |(p.1 : ℝ)| * |q p.2 - h p.2| := abs_mul _ _
_ ≤ |(p.1 : ℝ)| * ε := mul_le_mul_of_nonneg_left (hε p.2) (abs_nonneg _)
nlinarith [ih]
theorem linComb_intCast (l : List (ℤ × Finset (Fin 4))) (hZ : Finset (Fin 4) → ℤ) :
linComb l (fun S => (hZ S : ℝ)) = (((l.map fun p => p.1 * hZ p.2).sum : ℤ) : ℝ) := by
unfold linComb
induction l with
| nil => simp
| cons p l ih => simp only [List.map_cons, List.sum_cons, ih]; push_cast; ring
/-- **A new unconstrained inequality proves `Statement`.** If `∑ a_S S(ρ_S) ≥ 0` holds for every
four-party state, and some `h` with `h ∅ = 0`, SSA and WM violates it, then `h` is not a
limit of quantum entropy vectors. -/
theorem statement_of_valid_inequality (l : List (ℤ × Finset (Fin 4)))
(hvalid : ∀ (d : ℕ) (ρ : FourPartyState d), 0 ≤ linComb l (quantumEntropyVec ρ))
(h : Finset (Fin 4) → ℝ) (h0 : h ∅ = 0)
(hssa : ∀ S T : Finset (Fin 4), h (S ∪ T) + h (S ∩ T) ≤ h S + h T)
(hwm : ∀ S T : Finset (Fin 4), h (S \ T) + h (T \ S) ≤ h S + h T)
(hviol : linComb l h < 0) : Statement := by
refine ⟨h, h0, hssa, hwm, fun hq => ?_⟩
have hM : 0 < coeffNorm l + 1 := by linarith [coeffNorm_nonneg l]
have hδ : 0 < -linComb l h := by linarith
obtain ⟨d, ρ, hρ⟩ := hq (-linComb l h / (coeffNorm l + 1)) (div_pos hδ hM)
have hle := linComb_sub_le l (q := quantumEntropyVec ρ) (h := h)
(ε := -linComb l h / (coeffNorm l + 1)) (fun S => by rw [abs_sub_comm]; exact (hρ S).le)
have hlt : coeffNorm l * (-linComb l h / (coeffNorm l + 1)) < -linComb l h := by
rw [mul_div_assoc', div_lt_iff₀ hM]
nlinarith [coeffNorm_nonneg l]
linarith [hvalid d ρ]
/-- The Zhang–Yeung (1998) form
`I(0:1) + I(0:23) + 3 I(2:3|0) + I(2:3|1) - 2 I(2:3)`, with the subsets written exactly as in
`InfoTheory.Bridge.zhang_yeung_subsetEntropyVec`. -/
def zhangYeungForm : List (ℤ × Finset (Fin 4)) :=
[(1, {0}), (1, {1}), (-1, {0} ∪ {1}),
(1, {0}), (1, {2, 3}), (-1, {0} ∪ {2, 3}),
(3, {2} ∪ {0}), (3, {3} ∪ {0}), (-3, {2} ∪ {3} ∪ {0}), (-3, {0}),
(1, {2} ∪ {1}), (1, {3} ∪ {1}), (-1, {2} ∪ {3} ∪ {1}), (-1, {1}),
(-2, {2}), (-2, {3}), (2, {2} ∪ {3})]
/-- **Sanity check of `zhangYeungForm`: it is nonnegative on every classical state.** This is
the proved classical Zhang–Yeung inequality, transported along `quantumEntropyVec_diagState`. -/
theorem zhangYeung_diagState {k : ℕ} (P : ProbDist (Fin 4 → Fin k)) :
0 ≤ linComb zhangYeungForm (quantumEntropyVec (diagState P)) := by
have hv : quantumEntropyVec (diagState P) = subsetEntropyVec P :=
funext fun S => quantumEntropyVec_diagState P S
have key := InfoTheory.Bridge.zhang_yeung_subsetEntropyVec P
dsimp only at key
rw [hv]
simp only [linComb, zhangYeungForm, List.map_cons, List.map_nil, List.sum_cons, List.sum_nil,
Int.cast_one, Int.cast_neg, Int.cast_ofNat]
linarith
/-- The relabelling `0 ↔ 2`, `1 ↔ 3` of the parties. -/
def swapPairs : Fin 4 → Fin 4 := ![2, 3, 0, 1]
/-- Ray I relabelled by `swapPairs` (same symmetry class as ray I). -/
def rayISwZ (S : Finset (Fin 4)) : ℤ :=
[0, 2, 2, 4, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 2].getD (subsetIdx S) 0
/-- Ray II relabelled by `swapPairs` (same symmetry class as ray II). -/
def rayIISwZ (S : Finset (Fin 4)) : ℤ :=
[0, 3, 3, 6, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 2].getD (subsetIdx S) 0
theorem rayISwZ_eq : ∀ S : Finset (Fin 4), rayISwZ S = rayIZ (S.image swapPairs) := by
decide
theorem rayIISwZ_eq : ∀ S : Finset (Fin 4), rayIISwZ S = rayIIZ (S.image swapPairs) := by
decide
/-- Relabelled ray I as a real set function. -/
def rayISw (S : Finset (Fin 4)) : ℝ := rayISwZ S
/-- Relabelled ray II as a real set function. -/
def rayIISw (S : Finset (Fin 4)) : ℝ := rayIISwZ S
theorem rayISwZ_constraints :
rayISwZ ∅ = 0 ∧
(∀ S T : Finset (Fin 4), rayISwZ (S ∪ T) + rayISwZ (S ∩ T) ≤ rayISwZ S + rayISwZ T) ∧
(∀ S T : Finset (Fin 4), rayISwZ (S \ T) + rayISwZ (T \ S) ≤ rayISwZ S + rayISwZ T) := by
decide
theorem rayISw_satisfies_constraints :
rayISw ∅ = 0 ∧
(∀ S T : Finset (Fin 4), rayISw (S ∪ T) + rayISw (S ∩ T) ≤ rayISw S + rayISw T) ∧
(∀ S T : Finset (Fin 4), rayISw (S \ T) + rayISw (T \ S) ≤ rayISw S + rayISw T) := by
obtain ⟨h0, hssa, hwm⟩ := rayISwZ_constraints
refine ⟨by simp [rayISw, h0], fun S T => ?_, fun S T => ?_⟩
· unfold rayISw
exact_mod_cast hssa S T
· unfold rayISw
exact_mod_cast hwm S T
/-- **Rays I and II violate the Zhang–Yeung inequality** (after relabelling `0 ↔ 2`, `1 ↔ 3`),
by `2`. -/
theorem linComb_zhangYeung_rays :
linComb zhangYeungForm rayISw = -2 ∧ linComb zhangYeungForm rayIISw = -2 := by
rw [show rayISw = fun S => (rayISwZ S : ℝ) from rfl,
show rayIISw = fun S => (rayIISwZ S : ℝ) from rfl, linComb_intCast, linComb_intCast]
have h1 : ((zhangYeungForm.map fun p => p.1 * rayISwZ p.2).sum : ℤ) = -2 := by decide
have h2 : ((zhangYeungForm.map fun p => p.1 * rayIISwZ p.2).sum : ℤ) = -2 := by decide
rw [h1, h2]
norm_num
/-- **Zhang–Yeung for von Neumann entropy would prove `Statement`.** The classical inequality
holds on diagonal states (`zhangYeung_diagState`). If it held for all four-party quantum
states, relabelled ray I would lie outside the closed quantum entropy cone. -/
theorem statement_of_zhangYeung
(hZY : ∀ (d : ℕ) (ρ : FourPartyState d), 0 ≤ linComb zhangYeungForm (quantumEntropyVec ρ)) :
Statement := by
obtain ⟨h0, hssa, hwm⟩ := rayISw_satisfies_constraints
exact statement_of_valid_inequality zhangYeungForm hZY rayISw h0 hssa hwm
(by rw [linComb_zhangYeung_rays.1]; norm_num)
end LinearInequalities
end InfoTheory.Known.Certificates.QuantumEntropyConeFourParty