Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Definitions for A new inequality for the von Neumann entropy

Definition
QAlgorithms_Papers_Independent_Intakethird100_P97

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of A new inequality for the von Neumann entropy (arXiv:quant-ph/0406162) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • FullRegister: PDF pp.2–3: the complete tensor basis, with A,B,C,D numbered 0,1,2,3.
  • FourPartyState: PDF pp.1–3: a normalized finite-dimensional four-party complex density operator. Dimension one is allowed, dimension zero is excluded, and no purity is assumed.
  • fourPartyReduction: PDF p.2: the actual subsystem partial trace of the same joint matrix. This is a coordinate adapter to the frozen traceRight, allowing unequal local finite dimensions. Its empty subsystem has a singleton basis.
  • fourPartyEntropyBits: PDF pp.1–2: base-two von Neumann entropy of the actual marginal, with 0 log 0 = 0.
  • entropyDifference: PDF p.2: conditional entropy S(X|Y) = S(XY)-S(Y). Applications use disjoint groups of factors.
  • mutualValue: PDF p.2: mutual information of disjoint groups of factors.
  • conditionalMutualValue: PDF p.2: I(X;Z|Y), with the conditioning group as the last argument. All applications to states use three pairwise disjoint groups.
  • Constraints: PDF p.3, Theorem 1: the three SSA saturation constraints; no block or recovery structure obtained in the proof is included as an assumption.
  • constraintValue: PDF p.5, Remark 3: individual constraints in the order ABC, CAB, ADB.
  • subsetMask: PDF p.6, table: the mask uses A as bit 0, B as bit 1, C as bit 2, D as bit 3. For every subset of these four labels the mask is between 0 and 15.
  • rayOne: PDF p.6: ray I, in binary-mask order, with empty entry zero. The fallback cannot occur for a subset of Fin 4. This is a formal entropy vector, not a state.
  • rayTwo: PDF p.6: ray II, in binary-mask order, with empty entry zero.
  • BasicInequalities: PDF p.2, all five basic quantum inequalities, for every disjoint subsystem grouping (including empty groups). This is a linear constraint predicate on formal entropy vectors, not a claim that such a vector is entropic.
  • marginalAB3: PDF p.5, Remark 4: actual AB marginal of a tripartite state, tensor-ordered A,(B,C).
  • marginalAC3: PDF p.5, Remark 4: actual AC marginal of the same tripartite state.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Defs_BipartiteSeparability

/-!
arXiv:quant-ph/0406162v1, Linden and Winter, PDF pp.1–7.
All entropies are in bits. Local dimensions are arbitrary positive integers.
Proposition 2 is recorded as reuse in items.json; Remark 3's unspecified generic
family and Conjecture 6 are deferred. No imported paper module is required.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Intakethird100.P97

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF pp.2–3: the complete tensor basis, with A,B,C,D numbered 0,1,2,3. -/
abbrev FullRegister (dims : Fin 4 → ℕ) := (i : Fin 4) → Fin (dims i)

/-- PDF pp.1–3: a normalized finite-dimensional four-party complex density operator.
Dimension one is allowed, dimension zero is excluded, and no purity is assumed. -/
structure FourPartyState where
  dims : Fin 4 → ℕ
  dims_pos : ∀ i, 0 < dims i
  rho : Matrix (FullRegister dims) (FullRegister dims) ℂ
  density : IsDensityMatrix rho

/-- PDF p.2: the actual subsystem partial trace of the same joint matrix.
This is a coordinate adapter to the frozen traceRight, allowing unequal local
finite dimensions. Its empty subsystem has a singleton basis. -/
def fourPartyReduction {dims : Fin 4 → ℕ}
    (rho : Matrix (FullRegister dims) (FullRegister dims) ℂ) (s : Finset (Fin 4)) :
    Matrix ((i : {i : Fin 4 // i ∈ s}) → Fin (dims i.1))
      ((i : {i : Fin 4 // i ∈ s}) → Fin (dims i.1)) ℂ :=
  let join : (((i : {i : Fin 4 // i ∈ s}) → Fin (dims i.1)) ×
      ((i : {i : Fin 4 // i ∉ s}) → Fin (dims i.1))) → FullRegister dims :=
    fun x i => if h : i ∈ s then x.1 ⟨i, h⟩ else x.2 ⟨i, h⟩
  traceRight (fun x y => rho (join x) (join y))

/-- PDF pp.1–2: base-two von Neumann entropy of the actual marginal, with 0 log 0 = 0. -/
def fourPartyEntropyBits (q : FourPartyState) (s : Finset (Fin 4)) : ℝ :=
  vnEntropy (fourPartyReduction q.rho s)

/-- PDF p.2: conditional entropy S(X|Y) = S(XY)-S(Y).
Applications use disjoint groups of factors. -/
def entropyDifference (h : Finset (Fin 4) → ℝ) (x y : Finset (Fin 4)) : ℝ :=
  h (x ∪ y) - h y

/-- PDF p.2: mutual information of disjoint groups of factors. -/
def mutualValue (h : Finset (Fin 4) → ℝ) (x y : Finset (Fin 4)) : ℝ :=
  h x + h y - h (x ∪ y)

/-- PDF p.2: I(X;Z|Y), with the conditioning group as the last argument.
All applications to states use three pairwise disjoint groups. -/
def conditionalMutualValue (h : Finset (Fin 4) → ℝ) (x z y : Finset (Fin 4)) : ℝ :=
  h (x ∪ y) + h (y ∪ z) - h (x ∪ y ∪ z) - h y

local notation "A" => ({0} : Finset (Fin 4))
local notation "B" => ({1} : Finset (Fin 4))
local notation "C" => ({2} : Finset (Fin 4))
local notation "D" => ({3} : Finset (Fin 4))

/-- PDF p.3, Theorem 1: the three SSA saturation constraints; no block or recovery
structure obtained in the proof is included as an assumption. -/
def Constraints (h : Finset (Fin 4) → ℝ) : Prop :=
  conditionalMutualValue h A C B = 0 ∧ conditionalMutualValue h B C A = 0 ∧ conditionalMutualValue h A B D = 0

/-- PDF p.5, Remark 3: individual constraints in the order ABC, CAB, ADB. -/
def constraintValue (h : Finset (Fin 4) → ℝ) (i : Fin 3) : ℝ :=
  if i = 0 then conditionalMutualValue h A C B else if i = 1 then conditionalMutualValue h B C A else conditionalMutualValue h A B D

/-- PDF p.6, table: the mask uses A as bit 0, B as bit 1, C as bit 2, D as bit 3.
For every subset of these four labels the mask is between 0 and 15. -/
def subsetMask (s : Finset (Fin 4)) : ℕ := ∑ i ∈ s, 2 ^ i.val

/-- PDF p.6: ray I, in binary-mask order, with empty entry zero. The fallback
cannot occur for a subset of Fin 4. This is a formal entropy vector, not a state. -/
def rayOne (s : Finset (Fin 4)) : ℝ :=
  ([0, 3, 3, 4, 2, 3, 3, 4, 2, 3, 3, 4, 4, 3, 3, 2] : List ℝ).getD (subsetMask s) 0

/-- PDF p.6: ray II, in binary-mask order, with empty entry zero. -/
def rayTwo (s : Finset (Fin 4)) : ℝ :=
  ([0, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 6, 5, 5, 2] : List ℝ).getD (subsetMask s) 0

/-- PDF p.2, all five basic quantum inequalities, for every disjoint subsystem
grouping (including empty groups). This is a linear constraint predicate on formal
entropy vectors, not a claim that such a vector is entropic. -/
def BasicInequalities (h : Finset (Fin 4) → ℝ) : Prop :=
  h ∅ = 0 ∧
  (∀ x, 0 ≤ h x) ∧
  (∀ x y, Disjoint x y → 0 ≤ entropyDifference h x y + h x) ∧
  (∀ x y z, Disjoint x y → Disjoint x z → Disjoint y z →
    0 ≤ entropyDifference h z x + entropyDifference h z y) ∧
  (∀ x y, Disjoint x y → 0 ≤ mutualValue h x y) ∧
  (∀ x z y, Disjoint x z → Disjoint x y → Disjoint z y → 0 ≤ conditionalMutualValue h x z y)

/-- PDF p.5, Remark 4: actual AB marginal of a tripartite state, tensor-ordered A,(B,C). -/
def marginalAB3 {X Y Z : Type*} [Fintype Z]
    (rho : Matrix (X × (Y × Z)) (X × (Y × Z)) ℂ) : Matrix (X × Y) (X × Y) ℂ :=
  fun x y => ∑ z, rho (x.1, (x.2, z)) (y.1, (y.2, z))

/-- PDF p.5, Remark 4: actual AC marginal of the same tripartite state. -/
def marginalAC3 {X Y Z : Type*} [Fintype Y]
    (rho : Matrix (X × (Y × Z)) (X × (Y × Z)) ℂ) : Matrix (X × Z) (X × Z) ℂ :=
  fun x y => ∑ z, rho (x.1, (z, x.2)) (y.1, (z, y.2))

/-- Sanity: tracing a zero matrix yields a zero matrix, not a normalized state. -/
example {dims : Fin 4 → ℕ} (s : Finset (Fin 4)) :
    fourPartyReduction (0 : Matrix (FullRegister dims) (FullRegister dims) ℂ) s = 0 := by
  funext x y
  simp [fourPartyReduction, traceRight]

/-- Sanity: the conditional-entropy expression is the source's entropy difference. -/
example (h : Finset (Fin 4) → ℝ) : entropyDifference h A C = h (A ∪ C) - h C := rfl

/-- Sanity: ray I's C and CD entries reproduce the printed table. -/
example : rayOne C = 2 ∧ rayOne (C ∪ D) = 4 := by
  simp [rayOne, subsetMask, Finset.sum_insert, Finset.sum_singleton]
  <;> norm_num

/-- Sanity: ray II's ABC and total entries reproduce the printed table. -/
example : rayTwo (A ∪ B ∪ C) = 5 ∧ rayTwo (A ∪ B ∪ C ∪ D) = 2 := by
  simp [rayTwo, subsetMask, Finset.sum_insert, Finset.sum_singleton]
  <;> norm_num

end QAlgorithms.Papers.Independent.Intakethird100.P97
Source
A new inequality for the von Neumann entropy, arXiv:quant-ph/0406162v1, https://arxiv.org/abs/quant-ph/0406162v1
Read-back

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

QAlgorithms.Papers.Independent.Intakethird100.P97.BasicInequalities

For any real-valued function hhh on the subsets of Ω={0,1,2,3}\Omega=\{0,1,2,3\}Ω={0,1,2,3}, this predicate means that all the following conditions hold:

h(∅)=0,h(x)≥0for every x⊆Ω,h(x∪y)−h(y)+h(x)≥0whenever x∩y=∅,h(z∪x)−h(x)+h(z∪y)−h(y)≥0whenever x,y,z are pairwise disjoint,h(x)+h(y)−h(x∪y)≥0whenever x∩y=∅,h(x∪y)+h(y∪z)−h(x∪y∪z)−h(y)≥0whenever x,z,y are pairwise disjoint.\begin{gathered} h(\varnothing)=0,\qquad h(x)\ge 0\quad\text{for every }x\subseteq\Omega,\\ h(x\cup y)-h(y)+h(x)\ge0 \quad\text{whenever }x\cap y=\varnothing,\\ h(z\cup x)-h(x)+h(z\cup y)-h(y)\ge0 \quad\text{whenever }x,y,z\text{ are pairwise disjoint},\\ h(x)+h(y)-h(x\cup y)\ge0 \quad\text{whenever }x\cap y=\varnothing,\\ h(x\cup y)+h(y\cup z)-h(x\cup y\cup z)-h(y)\ge0 \quad\text{whenever }x,z,y\text{ are pairwise disjoint}. \end{gathered}h(∅)=0,h(x)≥0for every x⊆Ω,h(x∪y)−h(y)+h(x)≥0whenever x∩y=∅,h(z∪x)−h(x)+h(z∪y)−h(y)≥0whenever x,y,z are pairwise disjoint,h(x)+h(y)−h(x∪y)≥0whenever x∩y=∅,h(x∪y)+h(y∪z)−h(x∪y∪z)−h(y)≥0whenever x,z,y are pairwise disjoint.​

Every subset variable ranges over all subsets of Ω\OmegaΩ, including the empty set. No assumption that hhh arises from a state or an entropy is part of this definition.

QAlgorithms.Papers.Independent.Intakethird100.P97.Constraints

For any real-valued function hhh on the subsets of {0,1,2,3}\{0,1,2,3\}{0,1,2,3}, this defines the conjunction of the three equalities

h(A∪B)+h(B∪C)−h(A∪B∪C)−h(B)=0,h(B∪A)+h(A∪C)−h(B∪A∪C)−h(A)=0,h(A∪D)+h(D∪B)−h(A∪D∪B)−h(D)=0.\begin{aligned} h(A\cup B)+h(B\cup C)-h(A\cup B\cup C)-h(B)&=0,\\ h(B\cup A)+h(A\cup C)-h(B\cup A\cup C)-h(A)&=0,\\ h(A\cup D)+h(D\cup B)-h(A\cup D\cup B)-h(D)&=0. \end{aligned}h(A∪B)+h(B∪C)−h(A∪B∪C)−h(B)h(B∪A)+h(A∪C)−h(B∪A∪C)−h(A)h(A∪D)+h(D∪B)−h(A∪D∪B)−h(D)​=0,=0,=0.​

Here A,B,C,DA,B,C,DA,B,C,D are the subset symbols referenced in the declaration; their elements are not specified in the supplied declarations. No additional condition on hhh is included.

QAlgorithms.Papers.Independent.Intakethird100.P97.FourPartyState

A four-party state consists of dimensions d(i)∈Nd(i)\in\mathbb Nd(i)∈N for each i∈{0,1,2,3}i\in\{0,1,2,3\}i∈{0,1,2,3}, a proof that every d(i)>0d(i)>0d(i)>0, and a complex matrix ρ\rhoρ whose rows and columns are indexed by assignments uuu with 0≤u(i)<d(i)0\le u(i)<d(i)0≤u(i)<d(i), together with the requirements that ρ\rhoρ is positive semidefinite and tr⁡ρ=1\operatorname{tr}\rho=1trρ=1. Dimensions equal to 111 are allowed.

QAlgorithms.Papers.Independent.Intakethird100.P97.FullRegister

For any function d:{0,1,2,3}→Nd:\{0,1,2,3\}\to\mathbb Nd:{0,1,2,3}→N, this defines the full register as the set of assignments

∏i=03{0,…,d(i)−1}.\prod_{i=0}^{3}\{0,\ldots,d(i)-1\}.i=0∏3​{0,…,d(i)−1}.

Thus an assignment chooses one index below d(i)d(i)d(i) for each of the four parties. No positivity condition is imposed here: if any d(i)=0d(i)=0d(i)=0, the full register is empty.

QAlgorithms.Papers.Independent.Intakethird100.P97.conditionalMutualValue

For any real-valued function hhh on the subsets of {0,1,2,3}\{0,1,2,3\}{0,1,2,3} and any three such subsets, supplied in the order x,z,yx,z,yx,z,y, this defines

h(x∪y)+h(y∪z)−h(x∪y∪z)−h(y).h(x\cup y)+h(y\cup z)-h(x\cup y\cup z)-h(y).h(x∪y)+h(y∪z)−h(x∪y∪z)−h(y).

There are no assumptions on hhh, and the subsets may overlap or be empty.

QAlgorithms.Papers.Independent.Intakethird100.P97.constraintValue

For any real-valued function hhh on the subsets of {0,1,2,3}\{0,1,2,3\}{0,1,2,3} and any index i∈{0,1,2}i\in\{0,1,2\}i∈{0,1,2}, this defines

{h(A∪B)+h(B∪C)−h(A∪B∪C)−h(B),i=0,h(B∪A)+h(A∪C)−h(B∪A∪C)−h(A),i=1,h(A∪D)+h(D∪B)−h(A∪D∪B)−h(D),i=2.\begin{cases} h(A\cup B)+h(B\cup C)-h(A\cup B\cup C)-h(B),&i=0,\\ h(B\cup A)+h(A\cup C)-h(B\cup A\cup C)-h(A),&i=1,\\ h(A\cup D)+h(D\cup B)-h(A\cup D\cup B)-h(D),&i=2. \end{cases}⎩⎨⎧​h(A∪B)+h(B∪C)−h(A∪B∪C)−h(B),h(B∪A)+h(A∪C)−h(B∪A∪C)−h(A),h(A∪D)+h(D∪B)−h(A∪D∪B)−h(D),​i=0,i=1,i=2.​

Here A,B,C,DA,B,C,DA,B,C,D are the subset symbols referenced in the declaration; their elements are not specified in the supplied declarations. No assumptions are imposed on hhh.

QAlgorithms.Papers.Independent.Intakethird100.P97.entropyDifference

For any real-valued function hhh on the subsets of {0,1,2,3}\{0,1,2,3\}{0,1,2,3} and any two such subsets x,yx,yx,y, this defines

h(x∪y)−h(y).h(x\cup y)-h(y).h(x∪y)−h(y).

There are no assumptions on hhh, and the subsets may overlap or be empty; in particular, the value is 000 whenever x⊆yx\subseteq yx⊆y.

QAlgorithms.Papers.Independent.Intakethird100.P97.fourPartyEntropyBits

For a four-party state qqq, consisting of positive dimensions d(0),…,d(3)d(0),\ldots,d(3)d(0),…,d(3) and a positive semidefinite complex matrix ρ\rhoρ of trace 111 indexed by full assignments, and any subset s⊆{0,1,2,3}s\subseteq\{0,1,2,3\}s⊆{0,1,2,3}, this defines the real number

−Re⁡tr⁡(f(ρs)),f(t)=tlog⁡2t,-\operatorname{Re}\operatorname{tr}\bigl(f(\rho_s)\bigr), \qquad f(t)=t\log_2 t,−Retr(f(ρs​)),f(t)=tlog2​t,

where fff is applied by continuous functional calculus and

ρs(u,v)=∑wρ(u⊔w,v⊔w)\rho_s(u,v)=\sum_w\rho(u\sqcup w,v\sqcup w)ρs​(u,v)=w∑​ρ(u⊔w,v⊔w)

sums over assignments on the parties outside sss. The function has f(0)=0f(0)=0f(0)=0 under the total logarithm convention used here. The subset sss may be empty or contain all four parties.

QAlgorithms.Papers.Independent.Intakethird100.P97.fourPartyReduction

For any dimensions d:{0,1,2,3}→Nd:\{0,1,2,3\}\to\mathbb Nd:{0,1,2,3}→N, any complex matrix ρ\rhoρ indexed by full assignments u(i)<d(i)u(i)<d(i)u(i)<d(i), and any subset s⊆{0,1,2,3}s\subseteq\{0,1,2,3\}s⊆{0,1,2,3}, this defines a complex matrix ρs\rho_sρs​ indexed by assignments on sss, with entries

ρs(u,v)=∑w∈∏i∉s{0,…,d(i)−1}ρ(u⊔w,v⊔w),\rho_s(u,v)=\sum_{w\in\prod_{i\notin s}\{0,\ldots,d(i)-1\}} \rho(u\sqcup w,v\sqcup w),ρs​(u,v)=w∈∏i∈/s​{0,…,d(i)−1}∑​ρ(u⊔w,v⊔w),

where u⊔wu\sqcup wu⊔w uses uuu on sss and www outside sss. No positivity, trace, or positive-dimension hypothesis is imposed. Empty sums are zero, while an assignment on an empty set of parties has exactly one possible value. In particular, s=∅s=\varnothings=∅ gives a one-by-one matrix with entry tr⁡ρ\operatorname{tr}\rhotrρ, and taking all four parties gives ρ\rhoρ with its indices identified in the indicated way.

QAlgorithms.Papers.Independent.Intakethird100.P97.marginalAB3

For arbitrary types X,Y,ZX,Y,ZX,Y,Z, with a specified finite enumeration of ZZZ, and any complex matrix ρ\rhoρ whose row and column indices belong to X×(Y×Z)X\times(Y\times Z)X×(Y×Z), this defines a matrix on X×YX\times YX×Y by

(marginalAB3⁡(ρ))(a,b),(a′,b′)=∑c∈Zρ(a,(b,c)),(a′,(b′,c))(a,a′∈X, b,b′∈Y).\bigl(\operatorname{marginalAB3}(\rho)\bigr)_{(a,b),(a',b')} = \sum_{c\in Z} \rho_{(a,(b,c)),(a',(b',c))} \qquad(a,a'\in X,\ b,b'\in Y).(marginalAB3(ρ))(a,b),(a′,b′)​=c∈Z∑​ρ(a,(b,c)),(a′,(b′,c))​(a,a′∈X, b,b′∈Y).

Neither XXX nor YYY is required to be finite or nonempty, and ρ\rhoρ is not required to be positive semidefinite or normalized. The finite type ZZZ may be empty, in which case every entry of the resulting matrix is zero.

QAlgorithms.Papers.Independent.Intakethird100.P97.marginalAC3

For arbitrary types X,Y,ZX,Y,ZX,Y,Z, with a specified finite enumeration of YYY, and any complex matrix ρ\rhoρ whose row and column indices belong to X×(Y×Z)X\times(Y\times Z)X×(Y×Z), this defines a matrix on X×ZX\times ZX×Z by

(marginalAC3⁡(ρ))(a,c),(a′,c′)=∑b∈Yρ(a,(b,c)),(a′,(b,c′))(a,a′∈X, c,c′∈Z).\bigl(\operatorname{marginalAC3}(\rho)\bigr)_{(a,c),(a',c')} = \sum_{b\in Y} \rho_{(a,(b,c)),(a',(b,c'))} \qquad(a,a'\in X,\ c,c'\in Z).(marginalAC3(ρ))(a,c),(a′,c′)​=b∈Y∑​ρ(a,(b,c)),(a′,(b,c′))​(a,a′∈X, c,c′∈Z).

Neither XXX nor ZZZ is required to be finite or nonempty, and ρ\rhoρ is not required to be positive semidefinite or normalized. The finite type YYY may be empty, in which case every entry of the resulting matrix is zero.

QAlgorithms.Papers.Independent.Intakethird100.P97.mutualValue

For any real-valued function hhh on the subsets of {0,1,2,3}\{0,1,2,3\}{0,1,2,3} and any two such subsets x,yx,yx,y, this defines

h(x)+h(y)−h(x∪y).h(x)+h(y)-h(x\cup y).h(x)+h(y)−h(x∪y).

There are no assumptions on hhh or disjointness requirements on x,yx,yx,y. Empty subsets are included; if either subset is empty, the value is h(∅)h(\varnothing)h(∅).

QAlgorithms.Papers.Independent.Intakethird100.P97.rayOne

For any subset s⊆{0,1,2,3}s\subseteq\{0,1,2,3\}s⊆{0,1,2,3}, let m=∑i∈s2im=\sum_{i\in s}2^im=∑i∈s​2i. This defines the real number at zero-based position mmm in the list

[0,3,3,4,2,3,3,4,2,3,3,4,4,3,3,2].[0,3,3,4,2,3,3,4,2,3,3,4,4,3,3,2].[0,3,3,4,2,3,3,4,2,3,3,4,4,3,3,2].

The lookup specifies a default value of 000 for an out-of-range position, although every permitted subset gives 0≤m≤150\le m\le150≤m≤15, so that default is never used. In particular, the empty subset has value 000 and the full subset has value 222.

QAlgorithms.Papers.Independent.Intakethird100.P97.rayTwo

For any subset s⊆{0,1,2,3}s\subseteq\{0,1,2,3\}s⊆{0,1,2,3}, let m=∑i∈s2im=\sum_{i\in s}2^im=∑i∈s​2i. This defines the real number at zero-based position mmm in the list

[0,3,3,4,3,4,4,5,3,4,4,5,6,5,5,2].[0,3,3,4,3,4,4,5,3,4,4,5,6,5,5,2].[0,3,3,4,3,4,4,5,3,4,4,5,6,5,5,2].

The lookup specifies a default value of 000 for an out-of-range position, although every permitted subset gives 0≤m≤150\le m\le150≤m≤15, so that default is never used. In particular, the empty subset has value 000 and the full subset has value 222.

QAlgorithms.Papers.Independent.Intakethird100.P97.subsetMask

For any subset s⊆{0,1,2,3}s\subseteq\{0,1,2,3\}s⊆{0,1,2,3}, this defines the natural number

∑i∈s2i.\sum_{i\in s}2^i.i∈s∑​2i.

The empty subset has value 000, and the full subset has value 151515; every possible value lies between 000 and 151515, inclusive.

Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me