Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Infinitely many constrained inequalities for the von Neumann entropy

Definition
QAlgorithms_Papers_Independent_Intake100_P66

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of Infinitely many constrained inequalities for the von Neumann entropy (arXiv:1107.0624) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • entropyParty: PDF pp.3,7: distinct labels a,b,c,x_1,...,x_n.
  • entropyLabelA: PDF p.3: label A.
  • b: PDF p.3: label B.
  • c: PDF p.3: label C.
  • x: PDF p.3: the i-th X label (Lean indices start at zero).
  • entropyProductBasis: PDF pp.1,3: product computational basis for arbitrary finite local dimensions.
  • entropySubsystemBasis: PDF p.1: basis of a subsystem.
  • entropyJoinBasis: PDF p.1: assemble kept and discarded tensor coordinates without identification.
  • entropyMarginal: PDF p.1, S(J)=S(rho_J): the actual partial trace over complementary factors. The same discarded coordinate occurs in both matrix indices.
  • entropyOfSubset: PDF p.1: marginal von Neumann entropy in bits; the normalized empty coordinate is zero. For a density matrix the empty marginal is the one-dimensional trace-one matrix.
  • Form: PDF p.3, (5): coefficient vector on the nonempty entropy coordinates. It is stored on all subsets with the empty coordinate identically zero.
  • entropyAtom: PDF pp.1,3: the coordinate S(U); S(empty)=0 is eliminated syntactically.
  • evaluateEntropyForm: PDF p.3, (5): evaluation of a coefficient vector on a real set function.
  • cmiForm: PDF pp.1--3: coefficient vector of I(U:V|W).
  • miForm: PDF p.2, (2): mutual information, with disjoint grouped subsystems.
  • wmoForm: PDF p.1: weak monotonicity S(UV)+S(UW)-S(V)-S(W).
  • DisjointTriple: PDF pp.2,7: pairwise disjoint substitutions; empty subsets are allowed.
  • DisjointInstance: PDF p.3: all p+3 substituted parties are disjoint, without requiring exhaustion.
  • familyForm: PDF p.3, (10), and p.8, (37): C_p residual, right side minus left side. The subtraction p-1 is REAL subtraction, including when this definition is used at p=0.
  • primeForm: PDF p.9, (46): purified variant, still a statement about arbitrary mixed states.
  • cAsXForm: PDF p.10, (47): C is additionally permitted as an X party.
  • cAsXPrimeForm: PDF p.10, (48): purified C-as-X variant. The subtraction is S(AB), and its mutual-information coefficient is p+1.
  • IsSubmodular: PDF p.2: submodularity on every pair of subsets, equivalent to all disjoint SSA instances.
  • QuantumBasic: PDF pp.1--3: every quantum basic-inequality instance on this fixed ground set.
  • ClassicalBasic: PDF p.2: classical basic inequalities use monotonicity in place of WMO.
  • MatchingInstance: PDF p.3: a constrained instance is eligible only if each of its nontrivial zero constraints is one of the target constraints. An identically zero form imposes no constraint. This is coefficient equality, not vanishing at a witness.
  • Derivable: PDF p.3: finite nonnegative combination of eligible inequalities, plus an arbitrary real combination of the zero constraints. Equality is of coefficients.
  • constraints: PDF pp.3,9: the two fixed-label zero-CMI constraints.
  • standardX: PDF p.3: the standard X singleton substitution.
  • standardFamily: PDF p.3: the standard instance of C_n.
  • OtherFamily: PDF pp.6--9: other family instances whose constraints match the target pair.
  • specialPart: PDF p.7: the K part of a subset M=JK.
  • xCount: PDF p.7: |J|, the number of X labels in M.
  • clwTheta: PDF p.7, (29): the entire theta table, including its outer factor n+1.
  • clwLambda: PDF p.7, (30): the entire lambda table is negated.
  • clwMu: PDF p.7, (31)--(32): mu is supported on the EXACT subsets {a} and {a,b}.
  • separatingF: PDF p.7, (28): the explicitly constructed function f, not an arbitrary polymatroid.
  • oldWitness: PDF p.10: the explicit four-party table e, in the same label convention with D=x_1.
  • oldForm: PDF p.10: old Linden--Winter residual I(C:D)-I(AB:C), with labels fixed.
  • NewFourParty: PDF p.10: exactly the three new fixed-label four-party comparison forms.
  • oldConstraints: PDF p.10: all three constraints of the old inequality, including I(A:B|D)=0.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Information
import Definitions.Def_QAlgorithms_Defs_Ensemble

/-!
Cadney--Linden--Winter, arXiv:1107.0624v1. Finite nonzero local complex
Hilbert spaces, actual partial traces, and entropy in bits. The algebraic
independence statements use normalized real set functions, not entropy vectors
of states. Proposition 2 is recorded as accepted-library reuse in items.json.
The density predicate, entropy in bits, and partial trace are imported from the
frozen library. Remaining wrappers and coefficient tables are paper-specific.
Compilation is pending handoff.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P66

open scoped BigOperators
open QAlgorithms (IsDensityMatrix vnEntropy)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF pp.3,7: distinct labels a,b,c,x_1,...,x_n. -/
abbrev entropyParty (n : ℕ) := Fin 3 ⊕ Fin n

/-- PDF p.3: label A. -/
def entropyLabelA {n : ℕ} : entropyParty n := Sum.inl 0

/-- PDF p.3: label B. -/
def b {n : ℕ} : entropyParty n := Sum.inl 1

/-- PDF p.3: label C. -/
def c {n : ℕ} : entropyParty n := Sum.inl 2

/-- PDF p.3: the i-th X label (Lean indices start at zero). -/
def x {n : ℕ} (i : Fin n) : entropyParty n := Sum.inr i

/-- PDF pp.1,3: product computational basis for arbitrary finite local dimensions. -/
abbrev entropyProductBasis {n : ℕ} (d : entropyParty n → ℕ) := (j : entropyParty n) → Fin (d j)

/-- PDF p.1: basis of a subsystem. -/
abbrev entropySubsystemBasis {n : ℕ} (d : entropyParty n → ℕ) (S : Finset (entropyParty n)) :=
  (j : S) → Fin (d j.1)

/-- PDF p.1: assemble kept and discarded tensor coordinates without identification. -/
def entropyJoinBasis {n : ℕ} {d : entropyParty n → ℕ} {S : Finset (entropyParty n)}
    (u : entropySubsystemBasis d S) (z : entropySubsystemBasis d Sᶜ) : entropyProductBasis d :=
  fun j => if hj : j ∈ S then u ⟨j, hj⟩ else z ⟨j, by simpa using hj⟩

/-- PDF p.1, S(J)=S(rho_J): the actual partial trace over complementary factors.
The same discarded coordinate occurs in both matrix indices. -/
def entropyMarginal {n : ℕ} (d : entropyParty n → ℕ)
    (rho : Matrix (entropyProductBasis d) (entropyProductBasis d) ℂ) (S : Finset (entropyParty n)) :
    Matrix (entropySubsystemBasis d S) (entropySubsystemBasis d S) ℂ :=
  QAlgorithms.traceLeft
    (fun u v : entropySubsystemBasis d Sᶜ × entropySubsystemBasis d S =>
      rho (entropyJoinBasis u.2 u.1) (entropyJoinBasis v.2 v.1))

/-- PDF p.1: marginal von Neumann entropy in bits; the normalized empty coordinate is zero.
For a density matrix the empty marginal is the one-dimensional trace-one matrix. -/
def entropyOfSubset {n : ℕ} (d : entropyParty n → ℕ)
    (rho : Matrix (entropyProductBasis d) (entropyProductBasis d) ℂ) (S : Finset (entropyParty n)) : ℝ :=
  if S = ∅ then 0 else vnEntropy (entropyMarginal d rho S)

example {n : ℕ} (d : entropyParty n → ℕ) (rho : Matrix (entropyProductBasis d) (entropyProductBasis d) ℂ) :
    entropyOfSubset d rho ∅ = 0 := by simp [entropyOfSubset]

example {n : ℕ} {d : entropyParty n → ℕ} {S : Finset (entropyParty n)}
    (u : entropySubsystemBasis d S) (z : entropySubsystemBasis d Sᶜ) (j : entropyParty n) (hj : j ∈ S) :
    entropyJoinBasis u z j = u ⟨j, hj⟩ := by simp [entropyJoinBasis, hj]

section LinearForms

variable {P : Type*} [Fintype P] [DecidableEq P]

/-- PDF p.3, (5): coefficient vector on the nonempty entropy coordinates.
It is stored on all subsets with the empty coordinate identically zero. -/
abbrev Form (P : Type*) := Finset P → ℝ

/-- PDF pp.1,3: the coordinate S(U); S(empty)=0 is eliminated syntactically. -/
def entropyAtom (U : Finset P) : Form P :=
  if U = ∅ then 0 else fun V => if V = U then 1 else 0

/-- PDF p.3, (5): evaluation of a coefficient vector on a real set function. -/
def evaluateEntropyForm (L : Form P) (h : Finset P → ℝ) : ℝ := ∑ U, L U * h U

/-- PDF pp.1--3: coefficient vector of I(U:V|W). -/
def cmiForm (U V W : Finset P) : Form P :=
  entropyAtom (U ∪ W) + entropyAtom (V ∪ W) - entropyAtom W - entropyAtom (U ∪ V ∪ W)

/-- PDF p.2, (2): mutual information, with disjoint grouped subsystems. -/
def miForm (U V : Finset P) : Form P := entropyAtom U + entropyAtom V - entropyAtom (U ∪ V)

/-- PDF p.1: weak monotonicity S(UV)+S(UW)-S(V)-S(W). -/
def wmoForm (U V W : Finset P) : Form P :=
  entropyAtom (U ∪ V) + entropyAtom (U ∪ W) - entropyAtom V - entropyAtom W

/-- PDF pp.2,7: pairwise disjoint substitutions; empty subsets are allowed. -/
def DisjointTriple (U V W : Finset P) : Prop :=
  Disjoint U V ∧ Disjoint U W ∧ Disjoint V W

/-- PDF p.3: all p+3 substituted parties are disjoint, without requiring exhaustion. -/
def DisjointInstance {p : ℕ} (U V W : Finset P) (alpha : Fin p → Finset P) : Prop :=
  DisjointTriple U V W ∧
    (∀ i, Disjoint (alpha i) (U ∪ V ∪ W)) ∧
    (∀ i j, i ≠ j → Disjoint (alpha i) (alpha j))

/-- PDF p.3, (10), and p.8, (37): C_p residual, right side minus left side.
The subtraction p-1 is REAL subtraction, including when this definition is used at p=0. -/
def familyForm {p : ℕ} (U V W : Finset P) (alpha : Fin p → Finset P) : Form P :=
  (∑ i, cmiForm U V (alpha i)) + (∑ i, entropyAtom (alpha i)) -
    entropyAtom (Finset.univ.biUnion alpha) - ((p : ℝ) - 1) • miForm (U ∪ V) W

/-- PDF p.9, (46): purified variant, still a statement about arbitrary mixed states. -/
def primeForm {p : ℕ} (U V W : Finset P) (alpha : Fin p → Finset P) : Form P :=
  (∑ i, cmiForm U V (alpha i)) + (∑ i, entropyAtom (alpha i)) +
    cmiForm U V (W ∪ Finset.univ.biUnion alpha) +
    entropyAtom (U ∪ V ∪ W ∪ Finset.univ.biUnion alpha) - entropyAtom (U ∪ V ∪ W) -
    (p : ℝ) • miForm (U ∪ V) W

/-- PDF p.10, (47): C is additionally permitted as an X party. -/
def cAsXForm {p : ℕ} (U V W : Finset P) (alpha : Fin p → Finset P) : Form P :=
  (∑ i, cmiForm U V (alpha i)) + (∑ i, entropyAtom (alpha i)) + cmiForm U V W +
    entropyAtom W - entropyAtom (W ∪ Finset.univ.biUnion alpha) - (p : ℝ) • miForm (U ∪ V) W

/-- PDF p.10, (48): purified C-as-X variant. The subtraction is S(AB), and
its mutual-information coefficient is p+1. -/
def cAsXPrimeForm {p : ℕ} (U V W : Finset P) (alpha : Fin p → Finset P) : Form P :=
  (∑ i, cmiForm U V (alpha i)) + (∑ i, entropyAtom (alpha i)) +
    cmiForm U V (W ∪ Finset.univ.biUnion alpha) +
    entropyAtom (U ∪ V ∪ W ∪ Finset.univ.biUnion alpha) + cmiForm U V W + entropyAtom W -
    entropyAtom (U ∪ V) - ((p : ℝ) + 1) • miForm (U ∪ V) W

/-- PDF p.2: submodularity on every pair of subsets, equivalent to all disjoint SSA instances. -/
def IsSubmodular (h : Finset P → ℝ) : Prop :=
  ∀ U V, h (U ∪ V) + h (U ∩ V) ≤ h U + h V

/-- PDF pp.1--3: every quantum basic-inequality instance on this fixed ground set. -/
def QuantumBasic (L : Form P) : Prop :=
  ∃ U V W, DisjointTriple U V W ∧ (L = cmiForm U V W ∨ L = wmoForm U V W)

/-- PDF p.2: classical basic inequalities use monotonicity in place of WMO. -/
def ClassicalBasic (L : Form P) : Prop :=
  (∃ U V W, DisjointTriple U V W ∧ L = cmiForm U V W) ∨
    (∃ U V, U ⊆ V ∧ L = entropyAtom V - entropyAtom U)

/-- PDF p.3: a constrained instance is eligible only if each of its nontrivial
zero constraints is one of the target constraints. An identically zero form
imposes no constraint. This is coefficient equality, not vanishing at a witness. -/
def MatchingInstance {p : ℕ} (Z : Finset (Form P))
    (U V W : Finset P) (alpha : Fin p → Finset P) : Prop :=
  DisjointInstance U V W alpha ∧
    (cmiForm U W V = 0 ∨ cmiForm U W V ∈ Z) ∧
    (cmiForm V W U = 0 ∨ cmiForm V W U ∈ Z)

/-- PDF p.3: finite nonnegative combination of eligible inequalities, plus
an arbitrary real combination of the zero constraints. Equality is of coefficients. -/
def Derivable (allowed : Set (Form P)) (Z : Finset (Form P)) (target : Form P) : Prop :=
  ∃ (k : ℕ) (L : Fin k → Form P) (w : Fin k → ℝ) (r : Z → ℝ),
    (∀ i, L i ∈ allowed) ∧ (∀ i, 0 ≤ w i) ∧
      target = (∑ i, w i • L i) + ∑ z : Z, r z • z.1

example : entropyAtom (∅ : Finset P) = 0 := by simp [entropyAtom]

example (h : Finset P → ℝ) : evaluateEntropyForm (0 : Form P) h = 0 := by simp [evaluateEntropyForm]

example (U V : Finset P) : DisjointTriple U V ∅ ↔ Disjoint U V := by
  simp [DisjointTriple]

end LinearForms

/-- PDF pp.3,9: the two fixed-label zero-CMI constraints. -/
def constraints (n : ℕ) : Finset (Form (entropyParty n)) :=
  {cmiForm {entropyLabelA} {c} {b}, cmiForm {b} {c} {entropyLabelA}}

/-- PDF p.3: the standard X singleton substitution. -/
def standardX {n : ℕ} (i : Fin n) : Finset (entropyParty n) := {x i}

/-- PDF p.3: the standard instance of C_n. -/
def standardFamily (n : ℕ) : Form (entropyParty n) := familyForm {entropyLabelA} {b} {c} standardX

/-- PDF pp.6--9: other family instances whose constraints match the target pair. -/
def OtherFamily (n : ℕ) (L : Form (entropyParty n)) : Prop :=
  ∃ (p : ℕ) (U V W : Finset (entropyParty n)) (alpha : Fin p → Finset (entropyParty n)),
    2 ≤ p ∧ p ≠ n ∧ MatchingInstance (constraints n) U V W alpha ∧
      L = familyForm U V W alpha

/-- PDF p.7: the K part of a subset M=JK. -/
def specialPart {n : ℕ} (M : Finset (entropyParty n)) : Finset (Fin 3) :=
  Finset.univ.filter (fun j => Sum.inl j ∈ M)

/-- PDF p.7: |J|, the number of X labels in M. -/
def xCount {n : ℕ} (M : Finset (entropyParty n)) : ℕ :=
  (Finset.univ.filter (fun i : Fin n => x i ∈ M)).card

/-- PDF p.7, (29): the entire theta table, including its outer factor n+1. -/
def clwTheta (n : ℕ) (K : Finset (Fin 3)) : ℝ :=
  let t : ℝ := n
  (t + 1) *
    (if 0 ∈ K then
      if 1 ∈ K then 2*t^3 + 8*t^2 + 4*t - 1
      else if 2 ∈ K then 2*t^3 + 5*t^2 + 2*t else 2*t^3 + 5*t^2
    else if 1 ∈ K then
      if 2 ∈ K then 6*t^2 + 4*t - 1 else 4*t^2 + 2*t - 1
    else if 2 ∈ K then 3*t^2 + t else 0)

/-- PDF p.7, (30): the entire lambda table is negated. -/
def clwLambda (n : ℕ) (K : Finset (Fin 3)) : ℝ :=
  let t : ℝ := n
  let tableValue : ℝ :=
    if 0 ∈ K then
      if 1 ∈ K then 2*t^3 + 8*t^2 + 4*t - 1
      else 2*t^3 + 5*t^2 + 2*t
    else if 1 ∈ K then
      if 2 ∈ K then 6*t^2 + 4*t - 1 else 4*t^2 + 2*t - 1
    else if 2 ∈ K then 4*t^2 + 2*t - 1 else t^2
  Neg.neg tableValue

/-- PDF p.7, (31)--(32): mu is supported on the EXACT subsets {a} and {a,b}. -/
def clwMu {n : ℕ} (M : Finset (entropyParty n)) : ℝ :=
  if M = {entropyLabelA} then 2*(n : ℝ)^2*((n : ℝ)+1)
  else if M = {entropyLabelA,b} then 2*(n : ℝ)*((n : ℝ)+1)^2 else 0

/-- PDF p.7, (28): the explicitly constructed function f, not an arbitrary polymatroid. -/
def separatingF (n : ℕ) (M : Finset (entropyParty n)) : ℝ :=
  clwTheta n (specialPart M) + (xCount M : ℝ) * clwLambda n (specialPart M) - clwMu M

example (n : ℕ) : separatingF n ∅ = 0 := by
  have hAB : (∅ : Finset (entropyParty n)) ≠ {entropyLabelA, b} :=
    Ne.symm (Finset.insert_ne_empty _ _)
  simp [separatingF, clwTheta, clwLambda, specialPart, xCount, clwMu, hAB]

example (n : ℕ) : clwTheta n ∅ = 0 := by simp [clwTheta]

example (n : ℕ) : clwLambda n ∅ = -(n : ℝ)^2 := by simp [clwLambda]

/-- PDF p.10: the explicit four-party table e, in the same label convention with D=x_1. -/
def oldWitness (M : Finset (entropyParty 1)) : ℝ :=
  if entropyLabelA ∈ M then
    if b ∈ M then
      if c ∈ M then (if x 0 ∈ M then 4 else 6) else 6
    else if c ∈ M then 5 else (if x 0 ∈ M then 5 else 5)
  else if b ∈ M then
    if c ∈ M then 5 else (if x 0 ∈ M then 5 else 5)
  else if c ∈ M then (if x 0 ∈ M then 6 else 2)
  else if x 0 ∈ M then 4 else 0

/-- PDF p.10: old Linden--Winter residual I(C:D)-I(AB:C), with labels fixed. -/
def oldForm : Form (entropyParty 1) := miForm {c} {x 0} - miForm {entropyLabelA,b} {c}

/-- PDF p.10: exactly the three new fixed-label four-party comparison forms. -/
def NewFourParty (L : Form (entropyParty 1)) : Prop :=
  L = primeForm {entropyLabelA} {b} {c} standardX ∨ L = cAsXForm {entropyLabelA} {b} {c} standardX ∨
    L = cAsXPrimeForm {entropyLabelA} {b} {c} standardX

/-- PDF p.10: all three constraints of the old inequality, including I(A:B|D)=0. -/
def oldConstraints : Finset (Form (entropyParty 1)) :=
  insert (cmiForm {entropyLabelA} {b} {x 0}) (constraints 1)

example : oldWitness ∅ = 0 := by simp [oldWitness]

example : oldWitness ({c} : Finset (entropyParty 1)) = 2 := by
  simp [oldWitness, entropyLabelA, b, c, x, Fin.ext_iff]

end QAlgorithms.Papers.Independent.Intake100.P66
Source
Infinitely many constrained inequalities for the von Neumann entropy, arXiv:1107.0624v1, https://arxiv.org/abs/1107.0624v1
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

QAlgorithms.Papers.Independent.Intake100.P66.ClassicalBasic

For a type PPP, a form is a real-valued function on finite subsets of PPP. For each finite subset SSS, write eSe_SeS​ for the form whose value at TTT is 111 when S≠∅S\ne\varnothingS=∅ and T=ST=ST=S, and 000 otherwise; in particular, e∅=0e_\varnothing=0e∅​=0. A form LLL satisfies this predicate exactly when either there exist pairwise disjoint finite subsets U,V,W⊆PU,V,W\subseteq PU,V,W⊆P such that

L=eU∪W+eV∪W−eW−eU∪V∪W,L=e_{U\cup W}+e_{V\cup W}-e_W-e_{U\cup V\cup W},L=eU∪W​+eV∪W​−eW​−eU∪V∪W​,

or there exist finite subsets U⊆V⊆PU\subseteq V\subseteq PU⊆V⊆P such that L=eV−eUL=e_V-e_UL=eV​−eU​. All equalities are equalities of functions on finite subsets. The sets may be empty, and U=VU=VU=V is permitted in the second alternative, yielding the zero form.

QAlgorithms.Papers.Independent.Intake100.P66.Derivable

For a type PPP, let a form mean a real-valued function on finite subsets of PPP. Given a set A\mathcal AA of allowed forms, a finite set ZZZ of forms, and a target form FFF, this predicate holds exactly when there exist a natural number kkk, forms LiL_iLi​ and real numbers wiw_iwi​ for 0≤i<k0\le i<k0≤i<k, and a real number rzr_zrz​ for each z∈Zz\in Zz∈Z, such that every LiL_iLi​ belongs to A\mathcal AA, every wi≥0w_i\ge0wi​≥0, and, for every finite subset T⊆PT\subseteq PT⊆P,

F(T)=∑i=0k−1wiLi(T)+∑z∈Zrzz(T).F(T)=\sum_{i=0}^{k-1}w_iL_i(T)+\sum_{z\in Z}r_z z(T).F(T)=i=0∑k−1​wi​Li​(T)+z∈Z∑​rz​z(T).

The coefficients rzr_zrz​ have no sign restriction. The case k=0k=0k=0 is permitted, as is Z=∅Z=\varnothingZ=∅, with the corresponding sums equal to zero.

QAlgorithms.Papers.Independent.Intake100.P66.DisjointInstance

For a type PPP with decidable equality, any natural number ppp, finite subsets U,V,W⊆PU,V,W\subseteq PU,V,W⊆P, and an indexed family (αi)0≤i<p(\alpha_i)_{0\le i<p}(αi​)0≤i<p​ of finite subsets of PPP, this defines the conjunction of the following conditions: U,V,WU,V,WU,V,W are pairwise disjoint; each αi\alpha_iαi​ is disjoint from U∪V∪WU\cup V\cup WU∪V∪W; and αi∩αj=∅\alpha_i\cap\alpha_j=\varnothingαi​∩αj​=∅ whenever i≠ji\ne ji=j. Every set is allowed to be empty. When p=0p=0p=0, the conditions involving the indexed family are vacuous, leaving only pairwise disjointness of U,V,WU,V,WU,V,W.

QAlgorithms.Papers.Independent.Intake100.P66.DisjointTriple

For a type PPP with decidable equality and finite subsets U,V,W⊆PU,V,W\subseteq PU,V,W⊆P, this defines the proposition that all three pairs are disjoint:

U∩V=∅,U∩W=∅,V∩W=∅.U\cap V=\varnothing,\qquad U\cap W=\varnothing,\qquad V\cap W=\varnothing.U∩V=∅,U∩W=∅,V∩W=∅.

Any or all of the sets may be empty.

QAlgorithms.Papers.Independent.Intake100.P66.Form

For every type PPP, Form⁡(P)\operatorname{Form}(P)Form(P) is the type of all real-valued functions on finite subsets of PPP. Thus a form assigns a real number to each finite subset, with no restrictions on those values and no requirement that PPP itself be finite.

QAlgorithms.Papers.Independent.Intake100.P66.IsSubmodular

For a type PPP with decidable equality and any real-valued function hhh on its finite subsets, this defines the proposition that for every pair of finite subsets U,V⊆PU,V\subseteq PU,V⊆P,

h(U∪V)+h(U∩V)≤h(U)+h(V).h(U\cup V)+h(U\cap V)\le h(U)+h(V).h(U∪V)+h(U∩V)≤h(U)+h(V).

The quantification includes empty and overlapping sets. No normalization, nonnegativity, or monotonicity of hhh is assumed.

QAlgorithms.Papers.Independent.Intake100.P66.MatchingInstance

For a type PPP, let forms be real-valued functions on finite subsets of PPP, and define eS(T)=1e_S(T)=1eS​(T)=1 if S≠∅S\ne\varnothingS=∅ and T=ST=ST=S, and eS(T)=0e_S(T)=0eS​(T)=0 otherwise. Write

C(R,S∣T)=eR∪T+eS∪T−eT−eR∪S∪T.\mathcal C(R,S\mid T)=e_{R\cup T}+e_{S\cup T}-e_T-e_{R\cup S\cup T}.C(R,S∣T)=eR∪T​+eS∪T​−eT​−eR∪S∪T​.

Given a natural number ppp, a finite set ZZZ of forms, finite subsets U,V,W⊆PU,V,W\subseteq PU,V,W⊆P, and a family (αi)0≤i<p(\alpha_i)_{0\le i<p}(αi​)0≤i<p​ of finite subsets of PPP, this predicate holds exactly when U,V,WU,V,WU,V,W are pairwise disjoint, each αi\alpha_iαi​ is disjoint from U∪V∪WU\cup V\cup WU∪V∪W, the sets αi,αj\alpha_i,\alpha_jαi​,αj​ are disjoint whenever i≠ji\ne ji=j, and both conditions

C(U,W∣V)=0 or C(U,W∣V)∈Z,C(V,W∣U)=0 or C(V,W∣U)∈Z\mathcal C(U,W\mid V)=0\ \text{or}\ \mathcal C(U,W\mid V)\in Z, \qquad \mathcal C(V,W\mid U)=0\ \text{or}\ \mathcal C(V,W\mid U)\in ZC(U,W∣V)=0 or C(U,W∣V)∈Z,C(V,W∣U)=0 or C(V,W∣U)∈Z

hold. Zero means the identically zero form. No set is required to be nonempty; p=0p=0p=0 is allowed, in which case all conditions involving members of the family are vacuous.

QAlgorithms.Papers.Independent.Intake100.P66.NewFourParty

Let A,B,C,XA,B,C,XA,B,C,X be four distinct parties, with X=x0X=x_0X=x0​, and let LLL be any real-valued function on their subsets. For each nonempty subset SSS, let eSe_SeS​ be the function that is 111 at SSS and 000 at every other subset; juxtaposition below denotes the subset consisting of the displayed parties. The defined predicate holds exactly when LLL equals at least one of the following three functions:

eAX+eBX+eACX+eBCX−eABX−eCX−eAB−eC,eAX+eBX+eAC+eBC−eABX−eCX−eAB−eC,eAX+eBX+eACX+eBCX+eAC+eBC−eABX−eCX+eABC−3eAB−2eC.\begin{aligned} &e_{AX}+e_{BX}+e_{ACX}+e_{BCX} -e_{ABX}-e_{CX}-e_{AB}-e_C,\\ &e_{AX}+e_{BX}+e_{AC}+e_{BC} -e_{ABX}-e_{CX}-e_{AB}-e_C,\\ &e_{AX}+e_{BX}+e_{ACX}+e_{BCX}+e_{AC}+e_{BC} -e_{ABX}-e_{CX}+e_{ABC}-3e_{AB}-2e_C. \end{aligned}​eAX​+eBX​+eACX​+eBCX​−eABX​−eCX​−eAB​−eC​,eAX​+eBX​+eAC​+eBC​−eABX​−eCX​−eAB​−eC​,eAX​+eBX​+eACX​+eBCX​+eAC​+eBC​−eABX​−eCX​+eABC​−3eAB​−2eC​.​

These are equalities of functions on every subset, including the empty subset; the disjunction does not require a unique choice.

QAlgorithms.Papers.Independent.Intake100.P66.OtherFamily

For every natural number nnn, let Pn={A,B,C}⊔{Xi:0≤i<n}P_n=\{A,B,C\}\sqcup\{X_i:0\le i<n\}Pn​={A,B,C}⊔{Xi​:0≤i<n}, with distinct labels, and let LLL be a real-valued function on finite subsets of PnP_nPn​. Define the form eSe_SeS​ by eS(T)=1e_S(T)=1eS​(T)=1 if S≠∅S\ne\varnothingS=∅ and T=ST=ST=S, and 000 otherwise, and write

C(R,S∣T)=eR∪T+eS∪T−eT−eR∪S∪T.\mathcal C(R,S\mid T)=e_{R\cup T}+e_{S\cup T}-e_T-e_{R\cup S\cup T}.C(R,S∣T)=eR∪T​+eS∪T​−eT​−eR∪S∪T​.

The predicate holds exactly when there exist a natural number p≥2p\ge2p≥2 with p≠np\ne np=n, finite subsets U,V,W⊆PnU,V,W\subseteq P_nU,V,W⊆Pn​, and finite subsets αi⊆Pn\alpha_i\subseteq P_nαi​⊆Pn​ for 0≤i<p0\le i<p0≤i<p, such that U,V,WU,V,WU,V,W are pairwise disjoint, every αi\alpha_iαi​ is disjoint from U∪V∪WU\cup V\cup WU∪V∪W, distinct αi\alpha_iαi​ are pairwise disjoint, and each of the two forms C(U,W∣V)\mathcal C(U,W\mid V)C(U,W∣V) and C(V,W∣U)\mathcal C(V,W\mid U)C(V,W∣U) is either the zero form or a member of

Zn={e{A,B}+e{B,C}−e{B}−e{A,B,C},e{A,B}+e{A,C}−e{A}−e{A,B,C}},Z_n= \left\{ e_{\{A,B\}}+e_{\{B,C\}}-e_{\{B\}}-e_{\{A,B,C\}}, \quad e_{\{A,B\}}+e_{\{A,C\}}-e_{\{A\}}-e_{\{A,B,C\}} \right\},Zn​={e{A,B}​+e{B,C}​−e{B}​−e{A,B,C}​,e{A,B}​+e{A,C}​−e{A}​−e{A,B,C}​},

and, putting E=⋃i=0p−1αiE=\bigcup_{i=0}^{p-1}\alpha_iE=⋃i=0p−1​αi​, the following equality of forms holds:

L=∑i=0p−1C(U,V∣αi)+∑i=0p−1eαi−eE−(p−1)(eU∪V+eW−eU∪V∪W).L= \sum_{i=0}^{p-1}\mathcal C(U,V\mid\alpha_i) +\sum_{i=0}^{p-1}e_{\alpha_i} -e_E -(p-1)\left(e_{U\cup V}+e_W-e_{U\cup V\cup W}\right).L=i=0∑p−1​C(U,V∣αi​)+i=0∑p−1​eαi​​−eE​−(p−1)(eU∪V​+eW​−eU∪V∪W​).

The sets U,V,W,αiU,V,W,\alpha_iU,V,W,αi​ may be empty, and n=0n=0n=0 is included.

QAlgorithms.Papers.Independent.Intake100.P66.QuantumBasic

For a type PPP with decidable equality and a real-valued function LLL on its finite subsets, define aS(T)=1a_S(T)=1aS​(T)=1 when T=S≠∅T=S\ne\varnothingT=S=∅, and aS(T)=0a_S(T)=0aS​(T)=0 otherwise. This defines the proposition that there exist finite subsets U,V,W⊆PU,V,W\subseteq PU,V,W⊆P satisfying U∩V=U∩W=V∩W=∅U\cap V=U\cap W=V\cap W=\varnothingU∩V=U∩W=V∩W=∅, such that either

L=aU∪W+aV∪W−aW−aU∪V∪WL=a_{U\cup W}+a_{V\cup W}-a_W-a_{U\cup V\cup W}L=aU∪W​+aV∪W​−aW​−aU∪V∪W​

or

L=aU∪V+aU∪W−aV−aW.L=a_{U\cup V}+a_{U\cup W}-a_V-a_W.L=aU∪V​+aU∪W​−aV​−aW​.

These are equalities of entire functions, with pointwise operations. Empty sets are permitted, and a∅a_\varnothinga∅​ is zero; choosing all three sets empty therefore permits LLL to be the zero function.

QAlgorithms.Papers.Independent.Intake100.P66.b

For every natural number nnn, the label bbb is the element 111 of the first summand of {0,1,2}⊔{0,…,n−1}\{0,1,2\}\sqcup\{0,\ldots,n-1\}{0,1,2}⊔{0,…,n−1}. This label exists also when n=0n=0n=0.

QAlgorithms.Papers.Independent.Intake100.P66.c

For every natural number nnn, the label ccc is the element 222 of the first summand of {0,1,2}⊔{0,…,n−1}\{0,1,2\}\sqcup\{0,\ldots,n-1\}{0,1,2}⊔{0,…,n−1}. This label exists also when n=0n=0n=0.

QAlgorithms.Papers.Independent.Intake100.P66.cAsXForm

For a type PPP with decidable equality, any natural number ppp, finite subsets U,V,W⊆PU,V,W\subseteq PU,V,W⊆P, and finite subsets (αi)0≤i<p(\alpha_i)_{0\le i<p}(αi​)0≤i<p​, let A=⋃i<pαiA=\bigcup_{i<p}\alpha_iA=⋃i<p​αi​ and define aS(T)=1a_S(T)=1aS​(T)=1 if T=S≠∅T=S\ne\varnothingT=S=∅, and 000 otherwise. This defines the real-valued function

cAsXForm⁡(U,V,W,α)=∑i<p(aU∪αi+aV∪αi−aαi−aU∪V∪αi)+∑i<paαi+(aU∪W+aV∪W−aW−aU∪V∪W)+aW−aW∪A−p(aU∪V+aW−aU∪V∪W),\begin{aligned} \operatorname{cAsXForm}(U,V,W,\alpha) ={}&\sum_{i<p}\bigl(a_{U\cup\alpha_i}+a_{V\cup\alpha_i}-a_{\alpha_i}-a_{U\cup V\cup\alpha_i}\bigr) +\sum_{i<p}a_{\alpha_i}\\ &+\bigl(a_{U\cup W}+a_{V\cup W}-a_W-a_{U\cup V\cup W}\bigr) +a_W-a_{W\cup A}\\ &-p\bigl(a_{U\cup V}+a_W-a_{U\cup V\cup W}\bigr), \end{aligned}cAsXForm(U,V,W,α)=​i<p∑​(aU∪αi​​+aV∪αi​​−aαi​​−aU∪V∪αi​​)+i<p∑​aαi​​+(aU∪W​+aV∪W​−aW​−aU∪V∪W​)+aW​−aW∪A​−p(aU∪V​+aW​−aU∪V∪W​),​

with pointwise operations and real scalar multiplication. No disjointness or nonemptiness is assumed. When p=0p=0p=0, the sums vanish, A=∅A=\varnothingA=∅, and the resulting function is aU∪W+aV∪W−aW−aU∪V∪Wa_{U\cup W}+a_{V\cup W}-a_W-a_{U\cup V\cup W}aU∪W​+aV∪W​−aW​−aU∪V∪W​.

QAlgorithms.Papers.Independent.Intake100.P66.cAsXPrimeForm

For a type PPP with decidable equality, any natural number ppp, finite subsets U,V,W⊆PU,V,W\subseteq PU,V,W⊆P, and finite subsets (αi)0≤i<p(\alpha_i)_{0\le i<p}(αi​)0≤i<p​, let A=⋃i<pαiA=\bigcup_{i<p}\alpha_iA=⋃i<p​αi​ and define aS(T)=1a_S(T)=1aS​(T)=1 if T=S≠∅T=S\ne\varnothingT=S=∅, and 000 otherwise. This defines the real-valued function

cAsXPrimeForm⁡(U,V,W,α)=∑i<p(aU∪αi+aV∪αi−aαi−aU∪V∪αi)+∑i<paαi+(aU∪W∪A+aV∪W∪A−aW∪A−aU∪V∪W∪A)+aU∪V∪W∪A+(aU∪W+aV∪W−aW−aU∪V∪W)+aW−aU∪V−(p+1)(aU∪V+aW−aU∪V∪W),\begin{aligned} \operatorname{cAsXPrimeForm}(U,V,W,\alpha) ={}&\sum_{i<p}\bigl(a_{U\cup\alpha_i}+a_{V\cup\alpha_i}-a_{\alpha_i}-a_{U\cup V\cup\alpha_i}\bigr) +\sum_{i<p}a_{\alpha_i}\\ &+\bigl(a_{U\cup W\cup A}+a_{V\cup W\cup A}-a_{W\cup A}-a_{U\cup V\cup W\cup A}\bigr) +a_{U\cup V\cup W\cup A}\\ &+\bigl(a_{U\cup W}+a_{V\cup W}-a_W-a_{U\cup V\cup W}\bigr) +a_W-a_{U\cup V}\\ &-(p+1)\bigl(a_{U\cup V}+a_W-a_{U\cup V\cup W}\bigr), \end{aligned}cAsXPrimeForm(U,V,W,α)=​i<p∑​(aU∪αi​​+aV∪αi​​−aαi​​−aU∪V∪αi​​)+i<p∑​aαi​​+(aU∪W∪A​+aV∪W∪A​−aW∪A​−aU∪V∪W∪A​)+aU∪V∪W∪A​+(aU∪W​+aV∪W​−aW​−aU∪V∪W​)+aW​−aU∪V​−(p+1)(aU∪V​+aW​−aU∪V∪W​),​

with pointwise operations and p+1p+1p+1 interpreted in R\mathbb RR. No disjointness or nonemptiness is required. The case p=0p=0p=0 is included, with empty sums and A=∅A=\varnothingA=∅; every empty-set atom is zero.

QAlgorithms.Papers.Independent.Intake100.P66.clwLambda

For every natural number nnn and every subset K⊆{0,1,2}K\subseteq\{0,1,2\}K⊆{0,1,2}, put t=nt=nt=n, regarded as a real number. This definition returns the negative of the following real number:

{t2,K=∅,2t3+5t2+2t,K={0} or {0,2},4t2+2t−1,K={1} or {2},2t3+8t2+4t−1,K={0,1} or {0,1,2},6t2+4t−1,K={1,2}.\begin{cases} t^2,&K=\varnothing,\\ 2t^3+5t^2+2t,&K=\{0\}\text{ or }\{0,2\},\\ 4t^2+2t-1,&K=\{1\}\text{ or }\{2\},\\ 2t^3+8t^2+4t-1,&K=\{0,1\}\text{ or }\{0,1,2\},\\ 6t^2+4t-1,&K=\{1,2\}. \end{cases}⎩⎨⎧​t2,2t3+5t2+2t,4t2+2t−1,2t3+8t2+4t−1,6t2+4t−1,​K=∅,K={0} or {0,2},K={1} or {2},K={0,1} or {0,1,2},K={1,2}.​

The negation applies to the entire selected expression. All arithmetic is real arithmetic; n=0n=0n=0 and every possible KKK are included.

QAlgorithms.Papers.Independent.Intake100.P66.clwMu

For every natural number nnn and every finite subset MMM of Pn={A,B,C}⊔{Xi:0≤i<n}P_n=\{A,B,C\}\sqcup\{X_i:0\le i<n\}Pn​={A,B,C}⊔{Xi​:0≤i<n}, where A,B,CA,B,CA,B,C are the distinct labels of the first summand, this definition returns

{2n2(n+1),M={A},2n(n+1)2,M={A,B},0,otherwise.\begin{cases} 2n^2(n+1),&M=\{A\},\\ 2n(n+1)^2,&M=\{A,B\},\\ 0,&\text{otherwise}. \end{cases}⎩⎨⎧​2n2(n+1),2n(n+1)2,0,​M={A},M={A,B},otherwise.​

Here nnn is interpreted as a real number in the displayed arithmetic, and the conditions require exact equality of subsets. Empty MMM is permitted; when n=0n=0n=0, the value is zero for every MMM.

QAlgorithms.Papers.Independent.Intake100.P66.clwTheta

For every natural number nnn and every subset K⊆{0,1,2}K\subseteq\{0,1,2\}K⊆{0,1,2}, put t=nt=nt=n, regarded as a real number. This definition returns the real number

(t+1){0,K=∅,2t3+5t2,K={0},4t2+2t−1,K={1},3t2+t,K={2},2t3+8t2+4t−1,K={0,1} or {0,1,2},2t3+5t2+2t,K={0,2},6t2+4t−1,K={1,2}.(t+1) \begin{cases} 0,&K=\varnothing,\\ 2t^3+5t^2,&K=\{0\},\\ 4t^2+2t-1,&K=\{1\},\\ 3t^2+t,&K=\{2\},\\ 2t^3+8t^2+4t-1,&K=\{0,1\}\text{ or }\{0,1,2\},\\ 2t^3+5t^2+2t,&K=\{0,2\},\\ 6t^2+4t-1,&K=\{1,2\}. \end{cases}(t+1)⎩⎨⎧​0,2t3+5t2,4t2+2t−1,3t2+t,2t3+8t2+4t−1,2t3+5t2+2t,6t2+4t−1,​K=∅,K={0},K={1},K={2},K={0,1} or {0,1,2},K={0,2},K={1,2}.​

All arithmetic in this expression is real arithmetic, and the definition includes n=0n=0n=0 and every possible KKK.

QAlgorithms.Papers.Independent.Intake100.P66.cmiForm

For a type PPP with decidable equality and finite subsets U,V,W⊆PU,V,W\subseteq PU,V,W⊆P, define aSa_SaS​ to be the function on finite subsets given by aS(T)=1a_S(T)=1aS​(T)=1 when T=S≠∅T=S\ne\varnothingT=S=∅, and aS(T)=0a_S(T)=0aS​(T)=0 otherwise. This declaration defines the real-valued function

cmiForm⁡(U,V,W)=aU∪W+aV∪W−aW−aU∪V∪W,\operatorname{cmiForm}(U,V,W)=a_{U\cup W}+a_{V\cup W}-a_W-a_{U\cup V\cup W},cmiForm(U,V,W)=aU∪W​+aV∪W​−aW​−aU∪V∪W​,

where function operations are pointwise. The sets may overlap or be empty; an atom indexed by the empty set is the zero function.

QAlgorithms.Papers.Independent.Intake100.P66.constraints

For every natural number nnn, let Pn={A,B,C}⊔{Xi:0≤i<n}P_n=\{A,B,C\}\sqcup\{X_i:0\le i<n\}Pn​={A,B,C}⊔{Xi​:0≤i<n}, where A,B,CA,B,CA,B,C are the three distinct labels in the first summand and the XiX_iXi​ are the labels in the second. A form is a real-valued function on finite subsets of PnP_nPn​; write eS(T)=1e_S(T)=1eS​(T)=1 if S≠∅S\ne\varnothingS=∅ and T=ST=ST=S, and 000 otherwise. The definition returns the finite set of forms

{e{A,B}+e{B,C}−e{B}−e{A,B,C},e{A,B}+e{A,C}−e{A}−e{A,B,C}}.\left\{ e_{\{A,B\}}+e_{\{B,C\}}-e_{\{B\}}-e_{\{A,B,C\}}, \quad e_{\{A,B\}}+e_{\{A,C\}}-e_{\{A\}}-e_{\{A,B,C\}} \right\}.{e{A,B}​+e{B,C}​−e{B}​−e{A,B,C}​,e{A,B}​+e{A,C}​−e{A}​−e{A,B,C}​}.

These are forms themselves; the definition imposes no equation or inequality on their evaluations. The case n=0n=0n=0 is included.

QAlgorithms.Papers.Independent.Intake100.P66.entropyAtom

For every type PPP and every finite subset U⊆PU\subseteq PU⊆P, entropyAtom⁡(U)\operatorname{entropyAtom}(U)entropyAtom(U) is the real-valued function on finite subsets V⊆PV\subseteq PV⊆P that is identically zero when U=∅U=\varnothingU=∅, and otherwise equals 111 when V=UV=UV=U and 000 when V≠UV\ne UV=U. In particular, its value at the empty subset is always zero.

QAlgorithms.Papers.Independent.Intake100.P66.entropyJoinBasis

For every natural number nnn, every dimension function d:Pn→Nd:P_n\to\mathbb Nd:Pn​→N, every finite subset S⊆PnS\subseteq P_nS⊆Pn​, and assignments uuu on SSS and zzz on its complement Sc=Pn∖SS^c=P_n\setminus SSc=Pn​∖S, with 0≤u(j)<d(j)0\le u(j)<d(j)0≤u(j)<d(j) and 0≤z(j)<d(j)0\le z(j)<d(j)0≤z(j)<d(j) on their respective domains, where Pn={0,1,2}⊔{0,…,n−1}P_n=\{0,1,2\}\sqcup\{0,\ldots,n-1\}Pn​={0,1,2}⊔{0,…,n−1}, entropyJoinBasis⁡(u,z)\operatorname{entropyJoinBasis}(u,z)entropyJoinBasis(u,z) is the full assignment taking value u(j)u(j)u(j) when j∈Sj\in Sj∈S and z(j)z(j)z(j) otherwise. Empty subsets and complements are allowed, with their unique empty assignments; dimensions may be zero, although then any required assignment containing that coordinate does not exist.

QAlgorithms.Papers.Independent.Intake100.P66.entropyLabelA

For every natural number nnn, the label entropyLabelA⁡\operatorname{entropyLabelA}entropyLabelA is the element 000 of the first summand of {0,1,2}⊔{0,…,n−1}\{0,1,2\}\sqcup\{0,\ldots,n-1\}{0,1,2}⊔{0,…,n−1}. This label exists also when n=0n=0n=0.

QAlgorithms.Papers.Independent.Intake100.P66.entropyMarginal

For every natural number nnn, every function d:Pn→Nd:P_n\to\mathbb Nd:Pn​→N, every complex matrix ρ\rhoρ indexed by full assignments j↦v(j)∈{0,…,d(j)−1}j\mapsto v(j)\in\{0,\ldots,d(j)-1\}j↦v(j)∈{0,…,d(j)−1}, and every finite subset S⊆PnS\subseteq P_nS⊆Pn​, where Pn={0,1,2}⊔{0,…,n−1}P_n=\{0,1,2\}\sqcup\{0,\ldots,n-1\}Pn​={0,1,2}⊔{0,…,n−1}, entropyMarginal⁡(d,ρ,S)\operatorname{entropyMarginal}(d,\rho,S)entropyMarginal(d,ρ,S) is the complex matrix indexed by assignments on SSS whose entries are

entropyMarginal⁡(d,ρ,S)u,v=∑z∈∏j∈Sc{0,…,d(j)−1}ρ u⊔z, v⊔z,\operatorname{entropyMarginal}(d,\rho,S)_{u,v} =\sum_{z\in\prod_{j\in S^c}\{0,\ldots,d(j)-1\}} \rho_{\,u\sqcup z,\,v\sqcup z},entropyMarginal(d,ρ,S)u,v​=z∈∏j∈Sc​{0,…,d(j)−1}∑​ρu⊔z,v⊔z​,

where u⊔zu\sqcup zu⊔z agrees with uuu on SSS and with zzz on ScS^cSc. No Hermitian, positivity, or trace condition is imposed on ρ\rhoρ, and dimensions may be zero. An empty set of complementary assignments gives a zero sum, whereas an empty complement has exactly one assignment. In particular, for S=∅S=\varnothingS=∅ the resulting matrix has one entry, equal to tr⁡ρ\operatorname{tr}\rhotrρ.

QAlgorithms.Papers.Independent.Intake100.P66.entropyOfSubset

For every natural number nnn, every dimension function d:Pn→Nd:P_n\to\mathbb Nd:Pn​→N, every complex matrix ρ\rhoρ indexed by the full assignments in ∏j∈Pn{0,…,d(j)−1}\prod_{j\in P_n}\{0,\ldots,d(j)-1\}∏j∈Pn​​{0,…,d(j)−1}, and every finite subset S⊆PnS\subseteq P_nS⊆Pn​, where Pn={0,1,2}⊔{0,…,n−1}P_n=\{0,1,2\}\sqcup\{0,\ldots,n-1\}Pn​={0,1,2}⊔{0,…,n−1}, entropyOfSubset⁡(d,ρ,S)\operatorname{entropyOfSubset}(d,\rho,S)entropyOfSubset(d,ρ,S) is defined to be 000 if S=∅S=\varnothingS=∅ and otherwise to be

−Re⁡tr⁡ ⁣(f(RS)),f(t)=tlog⁡2t,(RS)u,v=∑z∈∏j∈Sc{0,…,d(j)−1}ρ u⊔z, v⊔z,-\operatorname{Re}\operatorname{tr}\!\left(f(R_S)\right), \qquad f(t)=t\log_2 t,\qquad (R_S)_{u,v}=\sum_{z\in\prod_{j\in S^c}\{0,\ldots,d(j)-1\}} \rho_{\,u\sqcup z,\,v\sqcup z},−Retr(f(RS​)),f(t)=tlog2​t,(RS​)u,v​=z∈∏j∈Sc​{0,…,d(j)−1}∑​ρu⊔z,v⊔z​,

where u,vu,vu,v are assignments on SSS, u⊔zu\sqcup zu⊔z joins the two assignments, and f(RS)f(R_S)f(RS​) uses the real continuous functional calculus. The real logarithm is the total real logarithm used in the definition, with log⁡20=0\log_2 0=0log2​0=0 and log⁡2t=log⁡∣t∣/log⁡2\log_2 t=\log|t|/\log 2log2​t=log∣t∣/log2 for t≠0t\ne0t=0. No positivity, normalization, Hermitian, or positive-dimension hypothesis is imposed; the expression uses these total operations even outside the density-matrix setting.

QAlgorithms.Papers.Independent.Intake100.P66.entropyParty

For every natural number nnn, entropyParty⁡(n)\operatorname{entropyParty}(n)entropyParty(n) is the disjoint union {0,1,2}⊔{0,…,n−1}\{0,1,2\}\sqcup\{0,\ldots,n-1\}{0,1,2}⊔{0,…,n−1}, with the two summands distinguished even when their numerical labels coincide. It has 3+n3+n3+n elements; when n=0n=0n=0, only the three elements of the first summand remain.

QAlgorithms.Papers.Independent.Intake100.P66.entropyProductBasis

For every natural number nnn and every function d:Pn→Nd:P_n\to\mathbb Nd:Pn​→N, where Pn={0,1,2}⊔{0,…,n−1}P_n=\{0,1,2\}\sqcup\{0,\ldots,n-1\}Pn​={0,1,2}⊔{0,…,n−1}, entropyProductBasis⁡(d)\operatorname{entropyProductBasis}(d)entropyProductBasis(d) is the set of assignments uuu that choose, for every j∈Pnj\in P_nj∈Pn​, an integer u(j)u(j)u(j) satisfying 0≤u(j)<d(j)0\le u(j)<d(j)0≤u(j)<d(j). No positivity assumption is imposed on ddd; if d(j)=0d(j)=0d(j)=0 for any party jjj, this set of assignments is empty.

QAlgorithms.Papers.Independent.Intake100.P66.entropySubsystemBasis

For every natural number nnn, every function d:Pn→Nd:P_n\to\mathbb Nd:Pn​→N, and every finite subset S⊆PnS\subseteq P_nS⊆Pn​, where Pn={0,1,2}⊔{0,…,n−1}P_n=\{0,1,2\}\sqcup\{0,\ldots,n-1\}Pn​={0,1,2}⊔{0,…,n−1}, entropySubsystemBasis⁡(d,S)\operatorname{entropySubsystemBasis}(d,S)entropySubsystemBasis(d,S) is the set of assignments uuu choosing an integer 0≤u(j)<d(j)0\le u(j)<d(j)0≤u(j)<d(j) for each j∈Sj\in Sj∈S. For S=∅S=\varnothingS=∅ this set contains exactly the empty assignment, regardless of ddd; if d(j)=0d(j)=0d(j)=0 for some j∈Sj\in Sj∈S, it is empty.

QAlgorithms.Papers.Independent.Intake100.P66.evaluateEntropyForm

For a finite type PPP with decidable equality, a real-valued function LLL on the finite subsets of PPP, and any function hhh from those subsets to R\mathbb RR, this defines

evaluateEntropyForm⁡(L,h)=∑U⊆PL(U)h(U).\operatorname{evaluateEntropyForm}(L,h)=\sum_{U\subseteq P}L(U)h(U).evaluateEntropyForm(L,h)=U⊆P∑​L(U)h(U).

The sum includes every subset, including the empty set. Neither function is required to satisfy normalization, positivity, or entropy properties; in particular, the empty-set contribution is L(∅)h(∅)L(\varnothing)h(\varnothing)L(∅)h(∅). The type PPP may itself be empty.

QAlgorithms.Papers.Independent.Intake100.P66.familyForm

For a type PPP with decidable equality, any natural number ppp, finite subsets U,V,W⊆PU,V,W\subseteq PU,V,W⊆P, and finite subsets (αi)0≤i<p(\alpha_i)_{0\le i<p}(αi​)0≤i<p​, let A=⋃i<pαiA=\bigcup_{i<p}\alpha_iA=⋃i<p​αi​ and let aS(T)=1a_S(T)=1aS​(T)=1 if T=S≠∅T=S\ne\varnothingT=S=∅, and 000 otherwise. This defines the following real-valued function on finite subsets, with all operations pointwise:

familyForm⁡(U,V,W,α)=∑i<p(aU∪αi+aV∪αi−aαi−aU∪V∪αi)+∑i<paαi−aA−(p−1)(aU∪V+aW−aU∪V∪W).\operatorname{familyForm}(U,V,W,\alpha) =\sum_{i<p}\bigl(a_{U\cup\alpha_i}+a_{V\cup\alpha_i}-a_{\alpha_i}-a_{U\cup V\cup\alpha_i}\bigr) +\sum_{i<p}a_{\alpha_i}-a_A -(p-1)\bigl(a_{U\cup V}+a_W-a_{U\cup V\cup W}\bigr).familyForm(U,V,W,α)=i<p∑​(aU∪αi​​+aV∪αi​​−aαi​​−aU∪V∪αi​​)+i<p∑​aαi​​−aA​−(p−1)(aU∪V​+aW​−aU∪V∪W​).

No disjointness or nonemptiness is assumed. Here p−1p-1p−1 is subtraction in R\mathbb RR; when p=0p=0p=0, both sums vanish, A=∅A=\varnothingA=∅, and the resulting function is aU∪V+aW−aU∪V∪Wa_{U\cup V}+a_W-a_{U\cup V\cup W}aU∪V​+aW​−aU∪V∪W​.

QAlgorithms.Papers.Independent.Intake100.P66.miForm

For a type PPP with decidable equality and finite subsets U,V⊆PU,V\subseteq PU,V⊆P, define aS(T)=1a_S(T)=1aS​(T)=1 when T=S≠∅T=S\ne\varnothingT=S=∅, and aS(T)=0a_S(T)=0aS​(T)=0 otherwise, for every finite subset T⊆PT\subseteq PT⊆P. This declaration defines the real-valued function

miForm⁡(U,V)=aU+aV−aU∪V,\operatorname{miForm}(U,V)=a_U+a_V-a_{U\cup V},miForm(U,V)=aU​+aV​−aU∪V​,

with pointwise addition and subtraction. No disjointness or nonemptiness is required, and a∅a_\varnothinga∅​ is the zero function.

QAlgorithms.Papers.Independent.Intake100.P66.oldConstraints

Let P={A,B,C,X}P=\{A,B,C,X\}P={A,B,C,X} be four distinct labels, corresponding respectively to the three elements of Fin⁡3\operatorname{Fin}3Fin3 and the sole element of Fin⁡1\operatorname{Fin}1Fin1. A form is a real-valued function on the subsets of PPP. For each nonempty S⊆PS\subseteq PS⊆P, let eSe_SeS​ be the form that is 111 at SSS and 000 elsewhere; concatenated labels denote sets, such as AB={A,B}AB=\{A,B\}AB={A,B}. The declaration defines the following finite set of forms:

{eAX+eBX−eX−eABX,eAB+eBC−eB−eABC,eAB+eAC−eA−eABC}.\left\{ e_{AX}+e_{BX}-e_X-e_{ABX},\quad e_{AB}+e_{BC}-e_B-e_{ABC},\quad e_{AB}+e_{AC}-e_A-e_{ABC} \right\}.{eAX​+eBX​−eX​−eABX​,eAB​+eBC​−eB​−eABC​,eAB​+eAC​−eA​−eABC​}.

QAlgorithms.Papers.Independent.Intake100.P66.oldForm

On the four distinct parties A,B,C,XA,B,C,XA,B,C,X, where X=x0X=x_0X=x0​, the definition specifies a real-valued function LLL on all subsets S⊆{A,B,C,X}S\subseteq\{A,B,C,X\}S⊆{A,B,C,X} by

L(S)=1S={X}−1S={C,X}−1S={A,B}+1S={A,B,C},L(S)= \mathbf1_{S=\{X\}} -\mathbf1_{S=\{C,X\}} -\mathbf1_{S=\{A,B\}} +\mathbf1_{S=\{A,B,C\}},L(S)=1S={X}​−1S={C,X}​−1S={A,B}​+1S={A,B,C}​,

where each indicator is 111 when its subscripted equality holds and 000 otherwise. Thus its coefficients are 111 on {X}\{X\}{X} and {A,B,C}\{A,B,C\}{A,B,C}, −1-1−1 on {C,X}\{C,X\}{C,X} and {A,B}\{A,B\}{A,B}, and 000 on every other subset, including the empty subset.

QAlgorithms.Papers.Independent.Intake100.P66.oldWitness

On the four distinct parties A,B,C,XA,B,C,XA,B,C,X, where XXX is the party labelled x0x_0x0​, the definition assigns a real number to every subset M⊆{A,B,C,X}M\subseteq\{A,B,C,X\}M⊆{A,B,C,X} by the complete table

oldWitness⁡(M)={0,M=∅,2,M={C},4,M∈{{X},{A,B,C,X}},5,M∈{{A},{A,X},{A,C},{A,C,X},{B},{B,X},{B,C},{B,C,X}},6,M∈{{A,B},{A,B,X},{A,B,C},{C,X}}.\operatorname{oldWitness}(M)= \begin{cases} 0,&M=\varnothing,\\ 2,&M=\{C\},\\ 4,&M\in\bigl\{\{X\},\{A,B,C,X\}\bigr\},\\ 5,&M\in\bigl\{\{A\},\{A,X\},\{A,C\},\{A,C,X\}, \{B\},\{B,X\},\{B,C\},\{B,C,X\}\bigr\},\\ 6,&M\in\bigl\{\{A,B\},\{A,B,X\},\{A,B,C\},\{C,X\}\bigr\}. \end{cases}oldWitness(M)=⎩⎨⎧​0,2,4,5,6,​M=∅,M={C},M∈{{X},{A,B,C,X}},M∈{{A},{A,X},{A,C},{A,C,X},{B},{B,X},{B,C},{B,C,X}},M∈{{A,B},{A,B,X},{A,B,C},{C,X}}.​

QAlgorithms.Papers.Independent.Intake100.P66.primeForm

For a type PPP with decidable equality, any natural number ppp, finite subsets U,V,W⊆PU,V,W\subseteq PU,V,W⊆P, and finite subsets (αi)0≤i<p(\alpha_i)_{0\le i<p}(αi​)0≤i<p​, let A=⋃i<pαiA=\bigcup_{i<p}\alpha_iA=⋃i<p​αi​ and define aS(T)=1a_S(T)=1aS​(T)=1 if T=S≠∅T=S\ne\varnothingT=S=∅, and 000 otherwise. This defines the real-valued function

primeForm⁡(U,V,W,α)=∑i<p(aU∪αi+aV∪αi−aαi−aU∪V∪αi)+∑i<paαi+(aU∪W∪A+aV∪W∪A−aW∪A−aU∪V∪W∪A)+aU∪V∪W∪A−aU∪V∪W−p(aU∪V+aW−aU∪V∪W),\begin{aligned} \operatorname{primeForm}(U,V,W,\alpha) ={}&\sum_{i<p}\bigl(a_{U\cup\alpha_i}+a_{V\cup\alpha_i}-a_{\alpha_i}-a_{U\cup V\cup\alpha_i}\bigr) +\sum_{i<p}a_{\alpha_i}\\ &+\bigl(a_{U\cup W\cup A}+a_{V\cup W\cup A}-a_{W\cup A}-a_{U\cup V\cup W\cup A}\bigr)\\ &+a_{U\cup V\cup W\cup A}-a_{U\cup V\cup W} -p\bigl(a_{U\cup V}+a_W-a_{U\cup V\cup W}\bigr), \end{aligned}primeForm(U,V,W,α)=​i<p∑​(aU∪αi​​+aV∪αi​​−aαi​​−aU∪V∪αi​​)+i<p∑​aαi​​+(aU∪W∪A​+aV∪W∪A​−aW∪A​−aU∪V∪W∪A​)+aU∪V∪W∪A​−aU∪V∪W​−p(aU∪V​+aW​−aU∪V∪W​),​

with pointwise operations and ppp regarded as a real scalar. No disjointness or nonemptiness is required. The case p=0p=0p=0 is included: the sums vanish, A=∅A=\varnothingA=∅, and the resulting function is aU∪W+aV∪W−aW−aU∪V∪Wa_{U\cup W}+a_{V\cup W}-a_W-a_{U\cup V\cup W}aU∪W​+aV∪W​−aW​−aU∪V∪W​.

QAlgorithms.Papers.Independent.Intake100.P66.separatingF

For every natural number nnn, including n=0n=0n=0, let the party set be Pn={A,B,C}⊔{Xi:0≤i<n}P_n=\{A,B,C\}\sqcup\{X_i:0\le i<n\}Pn​={A,B,C}⊔{Xi​:0≤i<n}, with all these labels distinct. For every subset M⊆PnM\subseteq P_nM⊆Pn​, put K=M∩{A,B,C}K=M\cap\{A,B,C\}K=M∩{A,B,C} and r=∣{i:Xi∈M}∣r=|\{i:X_i\in M\}|r=∣{i:Xi​∈M}∣. The definition assigns the real number

Fn(M)=(n+1)Tn(K)−rLn(K)−{2n2(n+1),M={A},2n(n+1)2,M={A,B},0,otherwise,F_n(M)=(n+1)T_n(K)-rL_n(K)- \begin{cases} 2n^2(n+1),&M=\{A\},\\ 2n(n+1)^2,&M=\{A,B\},\\ 0,&\text{otherwise}, \end{cases}Fn​(M)=(n+1)Tn​(K)−rLn​(K)−⎩⎨⎧​2n2(n+1),2n(n+1)2,0,​M={A},M={A,B},otherwise,​

where the integer nnn is interpreted as a real number in these expressions, and

KTn(K)Ln(K)∅0n2{A}2n3+5n22n3+5n2+2n{B}4n2+2n−14n2+2n−1{C}3n2+n4n2+2n−1{A,B} or {A,B,C}2n3+8n2+4n−12n3+8n2+4n−1{A,C}2n3+5n2+2n2n3+5n2+2n{B,C}6n2+4n−16n2+4n−1\begin{array}{c|c|c} K&T_n(K)&L_n(K)\\ \hline \varnothing&0&n^2\\ \{A\}&2n^3+5n^2&2n^3+5n^2+2n\\ \{B\}&4n^2+2n-1&4n^2+2n-1\\ \{C\}&3n^2+n&4n^2+2n-1\\ \{A,B\}\text{ or }\{A,B,C\}&2n^3+8n^2+4n-1&2n^3+8n^2+4n-1\\ \{A,C\}&2n^3+5n^2+2n&2n^3+5n^2+2n\\ \{B,C\}&6n^2+4n-1&6n^2+4n-1 \end{array}K∅{A}{B}{C}{A,B} or {A,B,C}{A,C}{B,C}​Tn​(K)02n3+5n24n2+2n−13n2+n2n3+8n2+4n−12n3+5n2+2n6n2+4n−1​Ln​(K)n22n3+5n2+2n4n2+2n−14n2+2n−12n3+8n2+4n−12n3+5n2+2n6n2+4n−1​​

In particular, the definition applies to the empty subset; when n=0n=0n=0, there are no XiX_iXi​ labels.

QAlgorithms.Papers.Independent.Intake100.P66.specialPart

For every natural number nnn and every finite subset MMM of the disjoint union Pn={A,B,C}⊔{Xi:0≤i<n}P_n=\{A,B,C\}\sqcup\{X_i:0\le i<n\}Pn​={A,B,C}⊔{Xi​:0≤i<n}, where A,B,CA,B,CA,B,C correspond respectively to indices 0,1,20,1,20,1,2 in the first summand, this definition returns

{j∈{0,1,2}:the label at index j in the first summand belongs to M}.\{j\in\{0,1,2\}:\text{the label at index }j\text{ in the first summand belongs to }M\}.{j∈{0,1,2}:the label at index j in the first summand belongs to M}.

Thus its output records membership of A,B,CA,B,CA,B,C as a subset of {0,1,2}\{0,1,2\}{0,1,2}. Empty MMM and n=0n=0n=0 are permitted.

QAlgorithms.Papers.Independent.Intake100.P66.standardFamily

For every natural number nnn, let Pn={A,B,C}⊔{Xi:0≤i<n}P_n=\{A,B,C\}\sqcup\{X_i:0\le i<n\}Pn​={A,B,C}⊔{Xi​:0≤i<n}, with all these labels distinct, and put Xall={Xi:0≤i<n}X_{\mathrm{all}}=\{X_i:0\le i<n\}Xall​={Xi​:0≤i<n}. A form is a real-valued function on finite subsets of PnP_nPn​; define eS(T)=1e_S(T)=1eS​(T)=1 when S≠∅S\ne\varnothingS=∅ and T=ST=ST=S, and 000 otherwise. This definition returns the form

∑i=0n−1(e{A,Xi}+e{B,Xi}−e{Xi}−e{A,B,Xi})+∑i=0n−1e{Xi}−eXall−(n−1)(e{A,B}+e{C}−e{A,B,C}).\begin{aligned} &\sum_{i=0}^{n-1} \left( e_{\{A,X_i\}}+e_{\{B,X_i\}}-e_{\{X_i\}}-e_{\{A,B,X_i\}} \right) +\sum_{i=0}^{n-1}e_{\{X_i\}} -e_{X_{\mathrm{all}}}\\ &\hspace{2em} -(n-1)\left(e_{\{A,B\}}+e_{\{C\}}-e_{\{A,B,C\}}\right). \end{aligned}​i=0∑n−1​(e{A,Xi​}​+e{B,Xi​}​−e{Xi​}​−e{A,B,Xi​}​)+i=0∑n−1​e{Xi​}​−eXall​​−(n−1)(e{A,B}​+e{C}​−e{A,B,C}​).​

The coefficient n−1n-1n−1 is subtraction in the real numbers. In particular, when n=0n=0n=0, both indexed sums and eXall=e∅e_{X_{\mathrm{all}}}=e_\varnothingeXall​​=e∅​ vanish, and the resulting form is e{A,B}+e{C}−e{A,B,C}e_{\{A,B\}}+e_{\{C\}}-e_{\{A,B,C\}}e{A,B}​+e{C}​−e{A,B,C}​.

QAlgorithms.Papers.Independent.Intake100.P66.standardX

For every natural number nnn and every index iii with 0≤i<n0\le i<n0≤i<n, consider the label set Pn={A,B,C}⊔{Xj:0≤j<n}P_n=\{A,B,C\}\sqcup\{X_j:0\le j<n\}Pn​={A,B,C}⊔{Xj​:0≤j<n}, where XjX_jXj​ is the label corresponding to jjj in the second summand. The definition returns the singleton subset {Xi}\{X_i\}{Xi​} of PnP_nPn​. When n=0n=0n=0, there is no admissible index iii, so this specifies an empty indexed family.

QAlgorithms.Papers.Independent.Intake100.P66.wmoForm

For a type PPP with decidable equality and finite subsets U,V,W⊆PU,V,W\subseteq PU,V,W⊆P, define aS(T)=1a_S(T)=1aS​(T)=1 when T=S≠∅T=S\ne\varnothingT=S=∅, and aS(T)=0a_S(T)=0aS​(T)=0 otherwise, for every finite subset T⊆PT\subseteq PT⊆P. This declaration defines the real-valued function

wmoForm⁡(U,V,W)=aU∪V+aU∪W−aV−aW,\operatorname{wmoForm}(U,V,W)=a_{U\cup V}+a_{U\cup W}-a_V-a_W,wmoForm(U,V,W)=aU∪V​+aU∪W​−aV​−aW​,

with pointwise operations. The sets may overlap or be empty, and every atom indexed by the empty set contributes zero.

QAlgorithms.Papers.Independent.Intake100.P66.x

For every natural number nnn and every index iii with 0≤i<n0\le i<n0≤i<n, x(i)x(i)x(i) is the element labeled iii in the second summand of {0,1,2}⊔{0,…,n−1}\{0,1,2\}\sqcup\{0,\ldots,n-1\}{0,1,2}⊔{0,…,n−1}. It is distinct from every element of the first summand. When n=0n=0n=0, there is no admissible index iii.

QAlgorithms.Papers.Independent.Intake100.P66.xCount

For every natural number nnn and every finite subset MMM of the disjoint union Pn={A,B,C}⊔{Xi:0≤i<n}P_n=\{A,B,C\}\sqcup\{X_i:0\le i<n\}Pn​={A,B,C}⊔{Xi​:0≤i<n}, where XiX_iXi​ is the label corresponding to iii in the second summand, this definition returns the natural number

∣{i:0≤i<n, Xi∈M}∣.\left|\{i:0\le i<n,\ X_i\in M\}\right|.∣{i:0≤i<n, Xi​∈M}∣.

In particular, it returns zero when MMM contains no XiX_iXi​, including for every MMM when n=0n=0n=0.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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