Definitions for Device-independent quantum key distribution based on measurement inputs
DefinitionQAlgorithms_Papers_Independent_Intakethird100_P47The objects the formalized statements of Device-independent quantum key distribution based on measurement inputs (arXiv:1308.6447) are stated in. Each was checked against the paper by a blind read-back and a moderator.
Behavior: Binary conditional probabilities p(a,b|A,B), with inputs first (PDF pp.2,5).IsBehavior: A nonnegative normalized binary conditional distribution (PDF pp.2,5).bipartitePOVMBehavior: The bipartite Born behavior for two binary local POVMs in arbitrary finite dimensions (PDF pp.3,5). The state and local effects are independent of the other party's input.HasFiniteQuantumRealization: A finite-dimensional quantum realization of the entire binary behavior (PDF pp.3,5). All dimensions are allowed; one shared density and two local binary POVMs produce every input/output probability. No Hardy, purity, product-state or uniqueness premise is built in.PairLaw: A binary pair law; also used for the accepted key and fixed Eve guess (PDF pp.4,8).IsPairLaw: A nonnegative normalized pair law (PDF pp.4,8).HardyParameters: Noncommuting local rank-one bases of (3); party false is Alice (PDF p.3).localKet: The two local measurement bases, including the conjugates and minus in (3) (PDF p.3).hardyPhi: The four ordered product vectors of (2) (PDF pp.2–3).gsResidual: The Gram–Schmidt residual in (4), with the inner product linear in its second slot (PDF p.3).gsDenominatorSq: The squared denominator of (4); used only for the source's unit input vectors (PDF p.3).gsStep: One normalized step of (4); strict denominator positivity is a conclusion below (PDF p.3).hardyGS: The explicitly constructed four vectors of (4), not an arbitrary Hardy witness (PDF p.3).psiH: The source's Hardy state is the last constructed Gram–Schmidt vector (PDF p.3).hardySpan: The forbidden-event span S of II A (PDF p.3).hardyBehavior: The Born probabilities for the specific two-qubit projective bases (3) (PDF pp.2–3). Projectors are constructed from the local vectors; the input/output order is explicit.HardyConditions: All four Hardy conditions (1), including strictly positive success (PDF p.2).binarySettingLaw: The product setting law (5), with each parameter the probability of input zero (PDF p.4).biasedInput: The four independently signed biases in III; true selects plus epsilon (PDF p.4).acceptedMass: Joint probability of the input pair and the event S = {a=b=0} (PDF pp.3,6).siftingProbability: Pr[S], the sifting probability (PDF pp.3,6).aliceMass: The two unnormalized Alice masses sigma and nu in (15a,b) (PDF p.6).acceptedLaw: Input pair law conditioned on S, used only when acceptance is positive (PDF p.6).aliceMarginal: Alice's marginal of any binary pair law (PDF pp.6,8).hardyStatistics: The signed Hardy specialization of (12), in order h1,h2,h3,h4 (PDF p.5).noisyHardy: Visibility family (13); eta=0 is white noise and eta=1 is ideal (PDF p.5).guessLaw: The accepted joint law of Alice's bit A and the fixed Eve guess G (PDF p.8). p0,p1 are accepted-round group masses; zero-mass groups contribute zero.balanceRetention: Independent bit-dependent retention kernel in VI B (PDF p.8).retention: Probability of retention in a normalized pair law (PDF p.8).retainedLaw: Pair law conditioned on the public keep flag; the old fixed guess is unchanged (PDF p.8). It is used only when the retention probability is positive.pairEntropy: Shannon entropy in bits of a finite pair law; zero terms have 0 log 0 = 0 (PDF pp.6,8).
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Information
import Definitions.Def_QAlgorithms_Defs_Ensemble
/-!
Statements from arXiv:1308.6447v3. Binary labels use false = 0, true = 1.
A behavior is evaluated in the order (Alice input, Bob input, Alice output, Bob output).
Only the algebraic results pinned by the source are stated. Operational security claims
and cited background are inventoried in HARD.md and GAPS.json.
-/
namespace QAlgorithms.Papers.Independent.Intakethird100.P47
open scoped ComplexConjugate
open scoped BigOperators
/-- Binary conditional probabilities p(a,b|A,B), with inputs first (PDF pp.2,5). -/
abbrev Behavior := Bool → Bool → Bool → Bool → ℝ
/-- A nonnegative normalized binary conditional distribution (PDF pp.2,5). -/
def IsBehavior (p : Behavior) : Prop :=
(∀ A B a b, 0 ≤ p A B a b) ∧ (∀ A B, ∑ a, ∑ b, p A B a b = 1)
/-- The bipartite Born behavior for two binary local POVMs in arbitrary finite dimensions
(PDF pp.3,5). The state and local effects are independent of the other party's input. -/
noncomputable def bipartitePOVMBehavior {dA dB : ℕ}
(rho : Matrix (Fin dA × Fin dB) (Fin dA × Fin dB) ℂ)
(M : Bool → Bool → Matrix (Fin dA) (Fin dA) ℂ)
(N : Bool → Bool → Matrix (Fin dB) (Fin dB) ℂ) : Behavior :=
fun A B a b => effectProb (Matrix.kronecker (M A a) (N B b)) rho
/-- A finite-dimensional quantum realization of the entire binary behavior (PDF pp.3,5).
All dimensions are allowed; one shared density and two local binary POVMs produce every
input/output probability. No Hardy, purity, product-state or uniqueness premise is built in. -/
def HasFiniteQuantumRealization (p : Behavior) : Prop :=
∃ (dA dB : ℕ)
(rho : Matrix (Fin dA × Fin dB) (Fin dA × Fin dB) ℂ)
(M : Bool → Bool → Matrix (Fin dA) (Fin dA) ℂ)
(N : Bool → Bool → Matrix (Fin dB) (Fin dB) ℂ),
IsDensityMatrix rho ∧ (∀ A, IsPOVM (M A)) ∧ (∀ B, IsPOVM (N B)) ∧
p = bipartitePOVMBehavior rho M N
/-- A binary pair law; also used for the accepted key and fixed Eve guess (PDF pp.4,8). -/
abbrev PairLaw := Bool → Bool → ℝ
/-- A nonnegative normalized pair law (PDF pp.4,8). -/
def IsPairLaw (w : PairLaw) : Prop :=
(∀ A B, 0 ≤ w A B) ∧ (∑ A, ∑ B, w A B = 1)
/-- Noncommuting local rank-one bases of (3); party false is Alice (PDF p.3). -/
structure HardyParameters where
alpha : Bool → ℂ
beta : Bool → ℂ
normalized : ∀ P, ‖alpha P‖ ^ 2 + ‖beta P‖ ^ 2 = 1
alpha_pos : ∀ P, 0 < ‖alpha P‖
alpha_lt_one : ∀ P, ‖alpha P‖ < 1
/-- The two local measurement bases, including the conjugates and minus in (3) (PDF p.3). -/
noncomputable def localKet (d : HardyParameters) (P X a : Bool) :
EuclideanSpace ℂ Bool :=
if X then
if a then conj (d.beta P) • ket false - conj (d.alpha P) • ket true
else d.alpha P • ket false + d.beta P • ket true
else ket a
/-- The four ordered product vectors of (2) (PDF pp.2–3). -/
noncomputable def hardyPhi (d : HardyParameters) : Fin 4 → EuclideanSpace ℂ (Bool × Bool) :=
![tensorVec (localKet d false true true) (localKet d true true true),
tensorVec (ket false) (localKet d true true false),
tensorVec (localKet d false true false) (ket false),
tensorVec (ket false) (ket false)]
/-- The Gram–Schmidt residual in (4), with the inner product linear in its second slot (PDF p.3). -/
noncomputable def gsResidual (us : List (EuclideanSpace ℂ (Bool × Bool)))
(v : EuclideanSpace ℂ (Bool × Bool)) : EuclideanSpace ℂ (Bool × Bool) :=
v - (us.map (fun u => (inner ℂ u v) • u)).sum
/-- The squared denominator of (4); used only for the source's unit input vectors (PDF p.3). -/
noncomputable def gsDenominatorSq (us : List (EuclideanSpace ℂ (Bool × Bool)))
(v : EuclideanSpace ℂ (Bool × Bool)) : ℝ :=
1 - (us.map (fun u => ‖inner ℂ u v‖ ^ 2)).sum
/-- One normalized step of (4); strict denominator positivity is a conclusion below (PDF p.3). -/
noncomputable def gsStep (us : List (EuclideanSpace ℂ (Bool × Bool)))
(v : EuclideanSpace ℂ (Bool × Bool)) : EuclideanSpace ℂ (Bool × Bool) :=
((Real.sqrt (gsDenominatorSq us v) : ℂ)⁻¹) • gsResidual us v
/-- The explicitly constructed four vectors of (4), not an arbitrary Hardy witness (PDF p.3). -/
noncomputable def hardyGS (d : HardyParameters) : Fin 4 → EuclideanSpace ℂ (Bool × Bool) :=
let v0 := hardyPhi d 0
let v1 := gsStep [v0] (hardyPhi d 1)
let v2 := gsStep [v0, v1] (hardyPhi d 2)
let v3 := gsStep [v0, v1, v2] (hardyPhi d 3)
![v0, v1, v2, v3]
/-- The source's Hardy state is the last constructed Gram–Schmidt vector (PDF p.3). -/
noncomputable def psiH (d : HardyParameters) : EuclideanSpace ℂ (Bool × Bool) :=
hardyGS d 3
/-- The forbidden-event span S of II A (PDF p.3). -/
noncomputable def hardySpan (d : HardyParameters) :
Submodule ℂ (EuclideanSpace ℂ (Bool × Bool)) :=
Submodule.span ℂ (Set.range (fun i : Fin 3 => hardyPhi d (Fin.castSucc i)))
/-- The Born probabilities for the specific two-qubit projective bases (3) (PDF pp.2–3).
Projectors are constructed from the local vectors; the input/output order is explicit. -/
noncomputable def hardyBehavior (d : HardyParameters)
(rho : Matrix (Bool × Bool) (Bool × Bool) ℂ) : Behavior :=
fun A B a b => effectProb
(pureDensity (tensorVec (localKet d false A a) (localKet d true B b))) rho
/-- All four Hardy conditions (1), including strictly positive success (PDF p.2). -/
def HardyConditions (p : Behavior) : Prop :=
0 < p false false false false ∧ p true false false false = 0 ∧
p false true false false = 0 ∧ p true true true true = 0
/-- The product setting law (5), with each parameter the probability of input zero (PDF p.4). -/
def binarySettingLaw (pA pB : ℝ) : PairLaw :=
fun A B => (if A then 1 - pA else pA) * (if B then 1 - pB else pB)
/-- The four independently signed biases in III; true selects plus epsilon (PDF p.4). -/
def biasedInput (pA pB epsilon : ℝ) (e : Bool × Bool) : PairLaw :=
binarySettingLaw (pA + (if e.1 then epsilon else -epsilon))
(pB + (if e.2 then epsilon else -epsilon))
/-- Joint probability of the input pair and the event S = {a=b=0} (PDF pp.3,6). -/
def acceptedMass (p : Behavior) (w : PairLaw) : PairLaw :=
fun A B => w A B * p A B false false
/-- Pr[S], the sifting probability (PDF pp.3,6). -/
noncomputable def siftingProbability (p : Behavior) (w : PairLaw) : ℝ :=
∑ A, ∑ B, acceptedMass p w A B
/-- The two unnormalized Alice masses sigma and nu in (15a,b) (PDF p.6). -/
noncomputable def aliceMass (p : Behavior) (w : PairLaw) (A : Bool) : ℝ :=
∑ B, acceptedMass p w A B
/-- Input pair law conditioned on S, used only when acceptance is positive (PDF p.6). -/
noncomputable def acceptedLaw (p : Behavior) (w : PairLaw) : PairLaw :=
fun A B => acceptedMass p w A B / siftingProbability p w
/-- Alice's marginal of any binary pair law (PDF pp.6,8). -/
noncomputable def aliceMarginal (j : PairLaw) (A : Bool) : ℝ := ∑ B, j A B
/-- The signed Hardy specialization of (12), in order h1,h2,h3,h4 (PDF p.5). -/
def hardyStatistics (p : Behavior) : Fin 4 → ℝ :=
![p false false false false, -p true false false false,
-p false true false false, -p true true true true]
/-- Visibility family (13); eta=0 is white noise and eta=1 is ideal (PDF p.5). -/
noncomputable def noisyHardy (d : HardyParameters) (eta : ℝ) :
Matrix (Bool × Bool) (Bool × Bool) ℂ :=
(((1 - eta) / 4 : ℝ) : ℂ) • (1 : Matrix (Bool × Bool) (Bool × Bool) ℂ) +
(eta : ℂ) • pureDensity (psiH d)
/-- The accepted joint law of Alice's bit A and the fixed Eve guess G (PDF p.8).
p0,p1 are accepted-round group masses; zero-mass groups contribute zero. -/
def guessLaw (p0 p1 P0 P1 : ℝ) : PairLaw :=
fun A G => if G then (if A then p1 * P1 else p1 * (1 - P1))
else (if A then p0 * (1 - P0) else p0 * P0)
/-- Independent bit-dependent retention kernel in VI B (PDF p.8). -/
noncomputable def balanceRetention (j : PairLaw) (A : Bool) : ℝ :=
min (aliceMarginal j false) (aliceMarginal j true) / aliceMarginal j A
/-- Probability of retention in a normalized pair law (PDF p.8). -/
noncomputable def retention (j : PairLaw) (k : Bool → ℝ) : ℝ :=
∑ A, ∑ B, j A B * k A
/-- Pair law conditioned on the public keep flag; the old fixed guess is unchanged (PDF p.8).
It is used only when the retention probability is positive. -/
noncomputable def retainedLaw (j : PairLaw) (k : Bool → ℝ) : PairLaw :=
fun A B => j A B * k A / retention j k
/-- Shannon entropy in bits of a finite pair law; zero terms have 0 log 0 = 0 (PDF pp.6,8). -/
noncomputable def pairEntropy (j : PairLaw) : ℝ :=
-(∑ A, ∑ B, j A B * (Real.log (j A B) / Real.log 2))
/-! Sanity examples pin definitions and conventions; no headline proofs are supplied. -/
example : IsBehavior (fun _ _ _ _ => 1 / 4) := by
norm_num [IsBehavior]
/-- A zero input matrix produces zero Born mass, rather than a normalized law. -/
example {dA dB : ℕ}
(M : Bool → Bool → Matrix (Fin dA) (Fin dA) ℂ)
(N : Bool → Bool → Matrix (Fin dB) (Fin dB) ℂ) :
bipartitePOVMBehavior (0 : Matrix (Fin dA × Fin dB) (Fin dA × Fin dB) ℂ) M N =
(fun _ _ _ _ => 0) := by
funext A B a b
simp [bipartitePOVMBehavior, effectProb]
/-- A normalized one-dimensional system with identity effects has unit (0,0) mass. -/
example :
bipartitePOVMBehavior (1 : Matrix (Fin 1 × Fin 1) (Fin 1 × Fin 1) ℂ)
(fun _ a => if a then 0 else 1) (fun _ b => if b then 0 else 1)
false false false false = 1 := by
norm_num [bipartitePOVMBehavior, effectProb, Matrix.kronecker,
Matrix.kroneckerMap, Matrix.trace, Matrix.mul_apply]
/-- Supplying one normalized state and local POVMs certifies their computed behavior. -/
example {dA dB : ℕ}
(rho : Matrix (Fin dA × Fin dB) (Fin dA × Fin dB) ℂ)
(M : Bool → Bool → Matrix (Fin dA) (Fin dA) ℂ)
(N : Bool → Bool → Matrix (Fin dB) (Fin dB) ℂ)
(hrho : IsDensityMatrix rho) (hM : ∀ A, IsPOVM (M A)) (hN : ∀ B, IsPOVM (N B)) :
HasFiniteQuantumRealization (bipartitePOVMBehavior rho M N) := by
exact ⟨dA, dB, rho, M, N, hrho, hM, hN, rfl⟩
example : IsPairLaw (fun _ _ => 1 / 4) := by
norm_num [IsPairLaw]
example (d : HardyParameters) (P a : Bool) : localKet d P false a = ket a := by
rfl
example (d : HardyParameters) :
localKet d false true true =
conj (d.beta false) • ket false - conj (d.alpha false) • ket true := by
rfl
example (d : HardyParameters) : hardyPhi d 3 = tensorVec (ket false) (ket false) := by
rfl
example (v : EuclideanSpace ℂ (Bool × Bool)) :
gsResidual [] v = v ∧ gsDenominatorSq [] v = 1 := by
simp [gsResidual, gsDenominatorSq]
example (v : EuclideanSpace ℂ (Bool × Bool)) : gsStep [] v = v := by
simp [gsStep, gsDenominatorSq, gsResidual]
example (d : HardyParameters) : hardyGS d 0 = hardyPhi d 0 ∧ psiH d = hardyGS d 3 := by
exact ⟨rfl, rfl⟩
example (d : HardyParameters) : hardyPhi d 0 ∈ hardySpan d := by
exact Submodule.subset_span ⟨(0 : Fin 3), rfl⟩
example (d : HardyParameters) (rho : Matrix (Bool × Bool) (Bool × Bool) ℂ) :
hardyBehavior d rho false false false false =
effectProb (pureDensity (tensorVec (ket false) (ket false))) rho := by
rfl
example : ¬ HardyConditions (fun _ _ _ _ => 0) := by
simp [HardyConditions]
example : binarySettingLaw (1 / 2) (1 / 2) false true = 1 / 4 := by
norm_num [binarySettingLaw]
example (pA pB : ℝ) (e : Bool × Bool) : biasedInput pA pB 0 e = binarySettingLaw pA pB := by
simp [biasedInput]
example (p : Behavior) (w : PairLaw) :
acceptedMass p w false true = w false true * p false true false false := by
rfl
example (p : Behavior) (w : PairLaw) :
siftingProbability p w = ∑ A, aliceMass p w A := by
rfl
example (p : Behavior) (w : PairLaw) (A : Bool) :
aliceMarginal (acceptedLaw p w) A =
∑ B, acceptedMass p w A B / siftingProbability p w := by
rfl
example (p : Behavior) : hardyStatistics p 2 = -p false true false false := by
rfl
example (d : HardyParameters) : noisyHardy d 1 = pureDensity (psiH d) := by
simp [noisyHardy]
example (p0 p1 P0 P1 : ℝ) : guessLaw p0 p1 P0 P1 true false = p0 * (1 - P0) := by
rfl
example (j : PairLaw) (A : Bool) : balanceRetention j A =
min (aliceMarginal j false) (aliceMarginal j true) / aliceMarginal j A := by
rfl
example (j : PairLaw) : retention j (fun _ => 0) = 0 := by
simp [retention]
example (j : PairLaw) (k : Bool → ℝ) (A B : Bool) :
retainedLaw j k A B = j A B * k A / retention j k := by
rfl
example : pairEntropy (fun _ _ => 0) = 0 := by
simp [pairEntropy]
end QAlgorithms.Papers.Independent.Intakethird100.P47
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intakethird100.P47.Behavior
A behavior is an arbitrary real-valued function of four Boolean variables . This type imposes no positivity or normalization conditions.
QAlgorithms.Papers.Independent.Intakethird100.P47.HardyConditions
For any real-valued function of four Boolean arguments, means exactly
where denotes false and denotes true. No nonnegativity or normalization requirements on the other values of are included.
QAlgorithms.Papers.Independent.Intakethird100.P47.HardyParameters
A set of Hardy parameters consists of two functions , together with the requirements that, for each Boolean ,
QAlgorithms.Papers.Independent.Intakethird100.P47.HasFiniteQuantumRealization
For any real-valued function of four Boolean arguments, this property means that there exist natural numbers , a complex matrix on the product of the two corresponding index sets, and complex matrix families and of sizes and , respectively, such that is positive semidefinite with , every and is positive semidefinite, and
for every choice of Boolean arguments, with false represented by and true by . The existential quantifiers allow zero dimensions, but either dimension being zero makes the trace-one requirement impossible.
QAlgorithms.Papers.Independent.Intakethird100.P47.IsBehavior
For a real-valued function of four Boolean variables, being a behavior satisfying this predicate means that for every , and that, for every fixed ,
QAlgorithms.Papers.Independent.Intakethird100.P47.IsPairLaw
For a real-valued function of two Boolean variables, this predicate means that for every , and that
QAlgorithms.Papers.Independent.Intakethird100.P47.PairLaw
A pair law is an arbitrary real-valued function of two Boolean variables . This type imposes no positivity or normalization conditions.
QAlgorithms.Papers.Independent.Intakethird100.P47.acceptedLaw
For any real-valued function of four Boolean arguments and any real-valued function on Boolean pairs, is the function
No positivity or normalization hypotheses are imposed, and the denominator need not be nonzero; if it is zero, real division by zero makes every entry of this function zero.
QAlgorithms.Papers.Independent.Intakethird100.P47.acceptedMass
For any real-valued function of four Boolean arguments and any real-valued function on Boolean pairs, is the function on Boolean pairs defined by
Neither function is assumed to be nonnegative or normalized.
QAlgorithms.Papers.Independent.Intakethird100.P47.aliceMarginal
For any real-valued function on Boolean pairs and any Boolean , is the real number
The function is not assumed to be nonnegative or normalized.
QAlgorithms.Papers.Independent.Intakethird100.P47.aliceMass
For any real-valued function of four Boolean arguments, any real-valued function on Boolean pairs, and any Boolean , define
There are no nonnegativity or normalization assumptions on either function.
QAlgorithms.Papers.Independent.Intakethird100.P47.balanceRetention
For any function and Boolean , where denotes false and denotes true, define . This definition assigns
to . No nonnegativity, normalization, or positivity assumption is imposed on or its row sums. Division is total: if , the assigned value is .
QAlgorithms.Papers.Independent.Intakethird100.P47.biasedInput
For arbitrary real numbers and any Boolean pair , let if is true and otherwise, and let if is true and otherwise. Then is the real-valued function
There are no restrictions on the three real parameters or on whether lie in .
QAlgorithms.Papers.Independent.Intakethird100.P47.binarySettingLaw
For arbitrary real numbers , is the real-valued function on Boolean pairs given, with and , by
The parameters are not restricted to , so its entries are not required to be nonnegative.
QAlgorithms.Papers.Independent.Intakethird100.P47.bipartitePOVMBehavior
For any natural numbers , any complex matrix indexed by , and any families of complex matrices of size and of size , where represent the Boolean values false and true, this definition assigns the real-valued function
There are no positivity, trace, or normalization assumptions on these matrices. Either dimension may be zero; in that case the trace is an empty sum and every value of is zero.
QAlgorithms.Papers.Independent.Intakethird100.P47.gsDenominatorSq
For any finite list of vectors and any vector in , this definition returns the real number
No normalization or orthogonality is assumed, so this number need not be nonnegative; repeated list entries contribute separately, and an empty list gives .
QAlgorithms.Papers.Independent.Intakethird100.P47.gsResidual
For any finite list of vectors and any vector in , this definition returns
There are no normalization or orthogonality hypotheses on the vectors; repeated list entries contribute separately, and an empty list gives the result .
QAlgorithms.Papers.Independent.Intakethird100.P47.gsStep
For any finite list of vectors and any vector in , this definition returns
The real square root is regarded as a complex scalar before taking its inverse. No normalization or orthogonality is assumed; repeated list entries contribute separately. For an empty list the result is . If the expression under the square root is nonpositive, its real square root is , whose inverse is defined to be , so the result is the zero vector.
QAlgorithms.Papers.Independent.Intakethird100.P47.guessLaw
For arbitrary real numbers , this defines a real-valued function on two Boolean arguments . Writing for false and for true, its four values are
There are no hypotheses restricting the four parameters, so nonnegativity and normalization are not required.
QAlgorithms.Papers.Independent.Intakethird100.P47.hardyBehavior
For parameters satisfying and for each , and any complex matrix whose rows and columns are indexed by , define local vectors
where denotes false, denotes true, and are coordinate unit vectors. The real-valued function on four Boolean arguments is
where and . No positivity, trace, or Hermitian assumption is imposed on , and no nonnegativity or normalization condition is imposed separately on the resulting function.
QAlgorithms.Papers.Independent.Intakethird100.P47.hardyGS
Given complex coefficients for each Boolean , satisfying and , let be the Boolean coordinate vector and let . Define
This definition returns the indexed family in obtained by setting and, successively for , setting
Both inner-product indices range over the Booleans. Each reciprocal is taken in after embedding the real square root; a nonpositive expression under a square root gives square root and reciprocal .
QAlgorithms.Papers.Independent.Intakethird100.P47.hardyPhi
Given complex coefficients for each Boolean , satisfying and , this definition returns the four vectors in :
Here is the coordinate vector at Boolean , and the tensor notation means ; the four indices are .
QAlgorithms.Papers.Independent.Intakethird100.P47.hardySpan
For parameters consisting of complex numbers , indexed by (where denotes false and denotes true), satisfying and for each , define and , where are the coordinate unit vectors in . Then is the complex linear subspace of spanned by the three vectors , , and , with tensor coordinates .
QAlgorithms.Papers.Independent.Intakethird100.P47.hardyStatistics
For any real-valued function of four Boolean arguments, is the function on the four indices with ordered values
where Boolean denotes false and Boolean denotes true. No positivity, normalization, or additional equations are assumed for .
QAlgorithms.Papers.Independent.Intakethird100.P47.localKet
Given complex coefficients for each Boolean , satisfying and , and Boolean arguments , this definition returns the vector in given by
where has coordinate at and at the other Boolean coordinate.
QAlgorithms.Papers.Independent.Intakethird100.P47.noisyHardy
For parameters satisfying and for each , and any real number , define and , where , , and are coordinate unit vectors. In , whose tensor coordinates satisfy , set , , , and ; define and, for , recursively define
Here the square root is the real square root, embedded into before inversion; the real square root is zero for a nonpositive argument, and the inverse of zero is zero. Then is the complex matrix indexed by Boolean pairs given by
The parameter is unrestricted and need not lie in .
QAlgorithms.Papers.Independent.Intakethird100.P47.pairEntropy
For any real-valued function on Boolean pairs, this defines
where denotes false and true. No nonnegativity or normalization is required. The real logarithm used here is total: , and for negative inputs ; in particular, an entry equal to zero contributes zero.
QAlgorithms.Papers.Independent.Intakethird100.P47.psiH
Given complex coefficients for each Boolean , satisfying and , let be the Boolean coordinate vector and let . Form
Set and, successively for , set
This definition returns in . Each reciprocal is taken in after embedding the real square root; a nonpositive expression under a square root gives square root and reciprocal .
QAlgorithms.Papers.Independent.Intakethird100.P47.retainedLaw
For arbitrary functions and , this defines a new function on Boolean pairs by
Here and denote false and true. There are no sign, normalization, or nonzero-denominator assumptions; if the denominator vanishes, every value of the resulting function is .
QAlgorithms.Papers.Independent.Intakethird100.P47.retention
For arbitrary functions and , with denoting false and true, this defines the real number
Neither function is subject to any sign, normalization, or range restriction.
QAlgorithms.Papers.Independent.Intakethird100.P47.siftingProbability
For any real-valued function of four Boolean arguments and any real-valued function on Boolean pairs, the real number is
No nonnegativity or normalization assumptions are imposed on or , and the definition does not require this number to lie in .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.