Definitions for Dual universality of hash functions and its applications to quantum cryptography
DefinitionQAlgorithms_Papers_Independent_Intake100_P31The objects the formalized statements of Dual universality of hash functions and its applications to quantum cryptography (arXiv:1101.0064) are stated in. Each was checked against the paper by a blind read-back and a moderator.
BinaryBlock: PDF p.3: binary block words, with coordinates in the field F_2.BinaryLinearCode: PDF p.3: a binary linear code is an actual vector subspace.avg: PDF p.3: uniform indexed average; repeated values retain multiplicity.seedProbability: PDF p.3: probability of an event on the uniformly sampled seed.minDim: PDF p.4: actual attained minimum dimension, with a nonempty seed type.maxDim: PDF p.4: actual attained maximum dimension.UniversalAt: PDF p.4 (6),(7): inclusion bound at the specified dimension parameter.HashUniversal: PDF p.3 (1): declared codomain size is retained, without a rank assumption.optimalParameter: PDF p.4: the optimal parameter for minimum dimension t.dualParameter: PDF p.4 Theorem 1: the transformed universality parameter.SubUniversalAt: PDF p.6 Definition 10: subcodes; the ambient dimension is dim B.ExtUniversalAt: PDF p.6 Definition 9: extended codes, tested outside the fixed inner code.PairUniversalAt: PDF p.7 Definition 12: both codes vary on the same seed.wt: PDF p.8: Hamming weight.codeWeightCount: PDF p.8 (31): the number A_k of codewords, not its normalized distribution.weightParameter: PDF p.8 (31): epsilon_k(C).spectrumParameter: PDF p.8 (32): max over 1 through n; the unused n=0 convention is zero.pairSpectrumParameter: PDF p.9: the maximum encloses the entire difference.permLinear: PDF p.8 (30): coordinate permutation x maps to x composed with sigma.permCode: PDF p.8 (30): one code for each permutation, retaining all repetitions.ErrorLaw: PDF p.9: a normalized additive error law, independent of word and seed.mlDecode: PDF pp.9--11: ML word decoder, with a fixed deterministic choice among ties. The maximization is over the noise coset determined by the syndrome; its fixed choice depends only on that coset. Subtracting this error representative gives an ML codeword, not a maximum-likelihood quotient-message decoder.cosetWordError: PDF p.11: uniform coset message, uniform word within that coset; ML word recovery in large followed by projection modulo small. Averaging over all words of large counts each quotient coset equally.hammingBad: PDF p.9 (35), corrected translation: any tied-or-better nonzero competitor. This conservative indicator includes all ties and dominates any Hamming decoder.bsc: PDF p.10: the iid BSC probability including endpoints p=0 and p=1.weightMass: PDF p.9: the actual weight marginal of the additive law.noiseBound: PDF p.10 (37),(38): the full weight sum, including the harmless k=0 term.wordNoiseBound: PDF p.10 (38): word-error bound sums k=1,...,n, excluding zero noise.E0: PDF p.10 (40): Gallager E0 in bits.gallagerExponent: PDF p.10 (42): supremum on the compact interval; continuous for p in [0,1], so nonempty, bounded and attained in every theorem below.gallagerBound: PDF p.10 (39): eps^s remains inside the minimization.bernoulliDivergenceBits: PDF p.10: bernoulliDivergenceBits in bits, with infinite off-support values.typeExponent: PDF p.10 (43),(44): complete-lattice infimum, including deterministic channels.expFactor: PDF p.10 (43): 2^(-n A), with 2^(-infinity)=0.tiltedBernoulli: PDF p.17: support-preserving tiltedBernoulli Bernoulli law, including theta=0.tiltedExponent: PDF p.17 (73): the tiltedBernoulli variational expression in the extended reals.entropyEnvelope: PDF p.13 (53): valid also when a union bound exceeds one.seededToeplitz: PDF p.3 Example 2: a Toeplitz seed. One unused uniform seed bit gives identical multiplicities for the usual a+b-1 diagonal-bit construction.modifiedM: PDF p.6: M=(T,I_b).modifiedN: PDF p.6: N=(I_a,T^transpose), over the same seed.Env: PDF p.12 (50): environment label (phase x, bit z).phaseBitPauli: PDF p.12 (50): Z^x X^z, in the computational basis labelled by F_2^n.iidPauli: PDF p.13, iid assumption: the phase and bit errors are independent per qubit.pauliDilation: PDF pp.12--13: actual Pauli Stinespring dilation, with the entire error label in Eve's register. For a normalized law this is an isometry.pauliComplement: PDF p.13: complementary output obtained by tracing out Bob, with no postprocessing, dephasing, or deletion of environment coherences.cosetDensity: PDF p.13: the actual uniform MIXTURE on a coset, not the coherent CSS state.coherentCoset: PDF p.13: normalized virtual coherent CSS coset vector, explicitly separate from the actual mixture sent by Alice.cosetEve: PDF p.13: conditional Eve density for the actual coset-mixture encoder.meanEve: PDF p.13: Eve marginal for the uniform large-code input.traceLeak: PDF pp.13--14: full trace norm of the actual cq state minus the independent uniform-key state. Each quotient coset has exactly card(small) representatives, so averaging over a in large is exactly averaging uniform quotient messages.holevoLeak: PDF pp.13--14: Holevo information in bits of the same physical cq ensemble.phaseMass: PDF p.12: the phase marginal of the actual joint Pauli law.phaseError: PDF p.13 (54)--(56): actual dual quotient decoding error. No scalar success probability is supplied by the caller. Logical success is modulo large-perp.residualPhase: PDF p.13: virtual phase correction subtracts the selected syndrome noise representative. The remaining phase label is this decoded dual codeword; phase correction succeeds exactly when it lies in large-perp.phaseRecovered: PDF p.13: physical phase-recovered Pauli map on the CSS code space before logical decoding; bit errors are left in place. The phase correction depends only on the measured small-code syndrome, by the noise-coset tie convention.messageLength: PDF p.13: message length of a specific seed's quotient.iidPhaseBound: PDF p.14 (59)--(61): common upper bound on average residual phase error.logRate: PDF p.14: exponential rate in bits, with perfect secrecy assigned +infinity. Only positive block lengths are passed by the asymptotic statement.phaseTraceBound: PDF p.14 (60): the phase-error trace bound.deltaTraceBound: PDF p.14 (64): the delta-biased trace bound used in the comparison.classicalCosetEve: PDF p.15, separate classical broadcast model: Bob gets the noiseless word; Eve gets BSC(p). This is Eve's conditional distribution for a uniform coset input.classicalLeak: PDF p.15: mutual information of the actual classical quotient-message/Eve law, averaged over uniform messages. Eve's marginal is uniform on F_2^n; zero terms contribute zero, including the deterministic BSC endpoints.
import Definitions.Def_QAlgorithms_Defs_QECC
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
/-!
Statements from Tsurumaru--Hayashi, arXiv:1101.0064v4.
All local definitions belong to this paper. Logarithms and entropies are in bits.
Deferred claims and printed corrections are inventoried in the unit artifacts.
-/
noncomputable section
namespace QAlgorithms.Papers.Independent.Intake100.P31
open scoped BigOperators Matrix ComplexConjugate
open QAlgorithms
/-- PDF p.3: binary block words, with coordinates in the field F_2. -/
abbrev BinaryBlock (n : ℕ) := Fin n → ZMod 2
/-- PDF p.3: a binary linear code is an actual vector subspace. -/
abbrev BinaryLinearCode (n : ℕ) := Submodule (ZMod 2) (BinaryBlock n)
local instance {n : ℕ} (C : BinaryLinearCode n) : Fintype C := Fintype.ofFinite C
/-- PDF p.3: uniform indexed average; repeated values retain multiplicity. -/
def avg {I : Type*} [Fintype I] (f : I → ℝ) : ℝ :=
(Fintype.card I : ℝ)⁻¹ * ∑ r, f r
/-- PDF p.3: probability of an event on the uniformly sampled seed. -/
def seedProbability {I : Type*} [Fintype I] (P : I → Prop) : ℝ := by
classical
exact avg (fun r => if P r then 1 else 0)
/-- PDF p.4: actual attained minimum dimension, with a nonempty seed type. -/
def minDim {n : ℕ} {I : Type*} [Fintype I] [Nonempty I] (C : I → BinaryLinearCode n) : ℕ :=
Finset.univ.inf' Finset.univ_nonempty (fun r => Module.finrank (ZMod 2) (C r))
/-- PDF p.4: actual attained maximum dimension. -/
def maxDim {n : ℕ} {I : Type*} [Fintype I] [Nonempty I] (C : I → BinaryLinearCode n) : ℕ :=
Finset.univ.sup' Finset.univ_nonempty (fun r => Module.finrank (ZMod 2) (C r))
/-- PDF p.4 (6),(7): inclusion bound at the specified dimension parameter. -/
def UniversalAt {n : ℕ} {I : Type*} [Fintype I]
(C : I → BinaryLinearCode n) (t : ℕ) (eps : ℝ) : Prop :=
∀ x : BinaryBlock n, x ≠ 0 → seedProbability (fun r => x ∈ C r) ≤
eps * (2 : ℝ) ^ ((t : ℝ) - n)
/-- PDF p.3 (1): declared codomain size is retained, without a rank assumption. -/
def HashUniversal {n m : ℕ} {I : Type*} [Fintype I]
(f : I → BinaryBlock n →ₗ[ZMod 2] BinaryBlock m) (eps : ℝ) : Prop :=
∀ a b, a ≠ b → seedProbability (fun r => f r a = f r b) ≤ eps / (2 : ℝ) ^ m
/-- PDF p.4: the optimal parameter for minimum dimension t. -/
def optimalParameter (n t : ℕ) : ℝ :=
((2 : ℝ) ^ n - (2 : ℝ) ^ ((n : ℝ) - t)) / ((2 : ℝ) ^ n - 1)
/-- PDF p.4 Theorem 1: the transformed universality parameter. -/
def dualParameter (n t : ℕ) (eps : ℝ) : ℝ :=
2 * (1 - (2 : ℝ) ^ ((t : ℝ) - n) * eps) + (eps - 1) * (2 : ℝ) ^ t
/-- PDF p.6 Definition 10: subcodes; the ambient dimension is dim B. -/
def SubUniversalAt {n : ℕ} {I : Type*} [Fintype I]
(B : BinaryLinearCode n) (C : I → BinaryLinearCode n) (t : ℕ) (eps : ℝ) : Prop :=
(∀ r, C r ≤ B) ∧ ∀ x ∈ B, x ≠ 0 → seedProbability (fun r => x ∈ C r) ≤
eps * (2 : ℝ) ^ ((t : ℝ) - Module.finrank (ZMod 2) B)
/-- PDF p.6 Definition 9: extended codes, tested outside the fixed inner code. -/
def ExtUniversalAt {n : ℕ} {I : Type*} [Fintype I]
(B : BinaryLinearCode n) (C : I → BinaryLinearCode n) (t : ℕ) (eps : ℝ) : Prop :=
(∀ r, B ≤ C r) ∧ ∀ x, x ∉ B → seedProbability (fun r => x ∈ C r) ≤
eps * (2 : ℝ) ^ ((t : ℝ) - n)
/-- PDF p.7 Definition 12: both codes vary on the same seed. -/
def PairUniversalAt {n : ℕ} {I : Type*} [Fintype I]
(small large : I → BinaryLinearCode n) (t : ℕ) (eps : ℝ) : Prop :=
(∀ r, small r ≤ large r) ∧ ∀ x : BinaryBlock n, x ≠ 0 →
seedProbability (fun r => x ∈ large r ∧ x ∉ small r) ≤
eps * (2 : ℝ) ^ ((t : ℝ) - n)
/-- PDF p.8: Hamming weight. -/
def wt {n : ℕ} (x : BinaryBlock n) : ℕ := by
classical
exact (Finset.univ.filter (fun i => x i ≠ 0)).card
/-- PDF p.8 (31): the number A_k of codewords, not its normalized distribution. -/
def codeWeightCount {n : ℕ} (C : BinaryLinearCode n) (k : ℕ) : ℕ := by
classical
exact (Finset.univ.filter (fun x : BinaryBlock n => x ∈ C ∧ wt x = k)).card
/-- PDF p.8 (31): epsilon_k(C). -/
def weightParameter {n : ℕ} (C : BinaryLinearCode n) (k : ℕ) : ℝ :=
(codeWeightCount C k : ℝ) / (Nat.choose n k : ℝ) *
(2 : ℝ) ^ ((n : ℝ) - Module.finrank (ZMod 2) C)
/-- PDF p.8 (32): max over 1 through n; the unused n=0 convention is zero. -/
def spectrumParameter {n : ℕ} (C : BinaryLinearCode n) : ℝ :=
if h : n = 0 then 0 else
(Finset.range n).sup' (Finset.nonempty_range_iff.mpr h)
(fun k => weightParameter C (k + 1))
/-- PDF p.9: the maximum encloses the entire difference. -/
def pairSpectrumParameter {n : ℕ} (small large : BinaryLinearCode n) : ℝ :=
if h : n = 0 then 0 else
(Finset.range n).sup' (Finset.nonempty_range_iff.mpr h)
(fun k => weightParameter large (k + 1) - weightParameter small (k + 1) *
(Fintype.card small : ℝ) / (Fintype.card large : ℝ))
/-- PDF p.8 (30): coordinate permutation x maps to x composed with sigma. -/
def permLinear {n : ℕ} (s : Equiv.Perm (Fin n)) : BinaryBlock n →ₗ[ZMod 2] BinaryBlock n where
toFun x := fun i => x (s i)
map_add' _ _ := rfl
map_smul' _ _ := rfl
/-- PDF p.8 (30): one code for each permutation, retaining all repetitions. -/
def permCode {n : ℕ} (C : BinaryLinearCode n) (s : Equiv.Perm (Fin n)) : BinaryLinearCode n :=
C.comap (permLinear s.symm)
/-- PDF p.9: a normalized additive error law, independent of word and seed. -/
structure ErrorLaw (n : ℕ) where
mass : BinaryBlock n → ℝ
nonneg : ∀ x, 0 ≤ mass x
total : ∑ x, mass x = 1
/-- PDF pp.9--11: ML word decoder, with a fixed deterministic choice among ties.
The maximization is over the noise coset determined by the syndrome; its fixed
choice depends only on that coset. Subtracting this error representative gives
an ML codeword, not a maximum-likelihood quotient-message decoder. -/
def mlDecode {n : ℕ} (C : BinaryLinearCode n) (P : BinaryBlock n → ℝ) (y : BinaryBlock n) : C := by
classical
let S : Finset (BinaryBlock n) := Finset.univ.filter (fun e => y - e ∈ C)
have hS : S.Nonempty := ⟨y, by simp [S]⟩
let h := Finset.exists_max_image S P hS
exact ⟨y - Classical.choose h, (Finset.mem_filter.mp (Classical.choose_spec h).1).2⟩
/-- PDF p.11: uniform coset message, uniform word within that coset; ML word
recovery in large followed by projection modulo small. Averaging over all words
of large counts each quotient coset equally. -/
def cosetWordError {n : ℕ} (small large : BinaryLinearCode n) (P : BinaryBlock n → ℝ) : ℝ := by
classical
exact (Fintype.card large : ℝ)⁻¹ * ∑ a : large, ∑ x : BinaryBlock n,
P x * (if (mlDecode large P (a.val + x)).val - a.val ∈ small then 0 else 1)
/-- PDF p.9 (35), corrected translation: any tied-or-better nonzero competitor.
This conservative indicator includes all ties and dominates any Hamming decoder. -/
def hammingBad {n : ℕ} (C : BinaryLinearCode n) (x : BinaryBlock n) : ℝ := by
classical
exact if ∃ c : C, c.val ≠ 0 ∧ wt (x - c.val) ≤ wt x then 1 else 0
/-- PDF p.10: the iid BSC probability including endpoints p=0 and p=1. -/
def bsc {n : ℕ} (p : ℝ) (x : BinaryBlock n) : ℝ :=
∏ i, if x i = 0 then 1 - p else p
/-- PDF p.9: the actual weight marginal of the additive law. -/
def weightMass {n : ℕ} (P : BinaryBlock n → ℝ) (k : ℕ) : ℝ := by
classical
exact ∑ x : BinaryBlock n, if wt x = k then P x else 0
/-- PDF p.10 (37),(38): the full weight sum, including the harmless k=0 term. -/
def noiseBound {n : ℕ} (P : BinaryBlock n → ℝ) (R eps : ℝ) : ℝ :=
eps * ∑ k ∈ Finset.range (n + 1), weightMass P k *
(2 : ℝ) ^ (-(n : ℝ) * max (1 - binEntropy2 (min ((k : ℝ) / n) (1 / 2)) - R) 0)
/-- PDF p.10 (38): word-error bound sums k=1,...,n, excluding zero noise. -/
def wordNoiseBound {n : ℕ} (P : BinaryBlock n → ℝ) (R eps : ℝ) : ℝ :=
eps * ∑ j ∈ Finset.range n, weightMass P (j + 1) *
(2 : ℝ) ^ (-(n : ℝ) * max (1 - binEntropy2 (min (((j + 1 : ℕ) : ℝ) / n) (1 / 2)) - R) 0)
/-- PDF p.10 (40): Gallager E0 in bits. -/
def E0 (s p : ℝ) : ℝ :=
s - (1 + s) * Real.logb 2 (p ^ (1 / (1 + s)) + (1 - p) ^ (1 / (1 + s)))
/-- PDF p.10 (42): supremum on the compact interval; continuous for p in [0,1],
so nonempty, bounded and attained in every theorem below. -/
def gallagerExponent (R p : ℝ) : ℝ :=
sSup ((fun s : ℝ => -s * R + E0 s p) '' Set.Icc 0 1)
/-- PDF p.10 (39): eps^s remains inside the minimization. -/
def gallagerBound (n : ℕ) (R p eps : ℝ) : ℝ :=
sInf ((fun s : ℝ => eps ^ s * (2 : ℝ) ^ (-(n : ℝ) * (-s * R + E0 s p))) ''
Set.Icc 0 1)
/-- PDF p.10: bernoulliDivergenceBits in bits, with infinite off-support values. -/
def bernoulliDivergenceBits (q p : ℝ) : EReal :=
if (p = 0 ∧ q ≠ 0) ∨ (p = 1 ∧ q ≠ 1) then ⊤ else
((q * Real.logb 2 (q / p) + (1 - q) * Real.logb 2 ((1 - q) / (1 - p)) : ℝ) : EReal)
/-- PDF p.10 (43),(44): complete-lattice infimum, including deterministic channels. -/
def typeExponent (R p : ℝ) : EReal :=
sInf ((fun q : ℝ => ((max (1 - binEntropy2 q - R) 0 : ℝ) : EReal) +
bernoulliDivergenceBits q p) '' Set.Icc 0 (1 / 2))
/-- PDF p.10 (43): 2^(-n A), with 2^(-infinity)=0. -/
def expFactor (n : ℕ) (A : EReal) : ℝ :=
if A = ⊤ then 0 else (2 : ℝ) ^ (-(n : ℝ) * A.toReal)
/-- PDF p.17: support-preserving tiltedBernoulli Bernoulli law, including theta=0. -/
def tiltedBernoulli (p theta : ℝ) : ℝ :=
if p = 0 then 0 else if p = 1 then 1 else
p ^ theta / (p ^ theta + (1 - p) ^ theta)
/-- PDF p.17 (73): the tiltedBernoulli variational expression in the extended reals. -/
def tiltedExponent (R p : ℝ) : EReal :=
sInf ((fun theta : ℝ => bernoulliDivergenceBits (tiltedBernoulli p theta) p +
((max (1 - binEntropy2 (tiltedBernoulli p theta) - R) 0 : ℝ) : EReal)) '' Set.Icc 0 1)
/-- PDF p.13 (53): valid also when a union bound exceeds one. -/
def entropyEnvelope (l : ℕ) (u : ℝ) : ℝ :=
if u ≤ 1 / 2 then binEntropy2 u + l * u else 1 + l * u
/-- PDF p.3 Example 2: a Toeplitz seed. One unused uniform seed bit gives
identical multiplicities for the usual a+b-1 diagonal-bit construction. -/
def seededToeplitz (a b : ℕ) (r : Fin (a + b) → ZMod 2) : Matrix (Fin b) (Fin a) (ZMod 2) :=
fun i j => r ⟨i.val + (a - 1 - j.val), by omega⟩
/-- PDF p.6: M=(T,I_b). -/
def modifiedM (a b : ℕ) (r : Fin (a + b) → ZMod 2) :
Matrix (Fin b) (Fin (a + b)) (ZMod 2) :=
fun i j => if h : j.val < a then seededToeplitz a b r i ⟨j.val, h⟩
else if j.val = a + i.val then 1 else 0
/-- PDF p.6: N=(I_a,T^transpose), over the same seed. -/
def modifiedN (a b : ℕ) (r : Fin (a + b) → ZMod 2) :
Matrix (Fin a) (Fin (a + b)) (ZMod 2) :=
fun i j => if h : j.val < a then (if j.val = i.val then 1 else 0)
else seededToeplitz a b r ⟨j.val - a, by omega⟩ i
/-! Small definition tests; theorem proofs below are intentionally omitted. -/
example : avg (fun _ : Unit => (3 : ℝ)) = 3 := by simp [avg]
example : bernoulliDivergenceBits 0 0 = 0 := by simp [bernoulliDivergenceBits]
example : bernoulliDivergenceBits 1 0 = ⊤ := by simp [bernoulliDivergenceBits]
example : tiltedBernoulli 0 0 = 0 := by simp [tiltedBernoulli]
example : entropyEnvelope 4 0 = 0 := by simp [entropyEnvelope, binEntropy2]
example {n : ℕ} (x : BinaryBlock n) : bsc (n := n) (1 / 2) x = (1 / 2 : ℝ) ^ n := by
unfold bsc
have hhalf : (1 : ℝ) - 1 / 2 = 1 / 2 := by norm_num
simp only [hhalf, ite_self, Finset.prod_const, Finset.card_univ, Fintype.card_fin]
/-- PDF p.12 (50): environment label (phase x, bit z). -/
abbrev Env (n : ℕ) := BinaryBlock n × BinaryBlock n
/-- PDF p.12 (50): Z^x X^z, in the computational basis labelled by F_2^n. -/
def phaseBitPauli {n : ℕ} (x z : BinaryBlock n) : Matrix (BinaryBlock n) (BinaryBlock n) ℂ := by
classical
exact fun b a => if b = a + z then (-1 : ℂ) ^ (∑ i, x i * b i).val else 0
/-- PDF p.13, iid assumption: the phase and bit errors are independent per qubit. -/
def iidPauli {n : ℕ} (pPhase pBit : ℝ) (e : Env n) : ℝ :=
bsc pPhase e.1 * bsc pBit e.2
/-- PDF pp.12--13: actual Pauli Stinespring dilation, with the entire error label
in Eve's register. For a normalized law this is an isometry. -/
def pauliDilation {n : ℕ} (W : Env n → ℝ) :
Matrix (BinaryBlock n × Env n) (BinaryBlock n) ℂ :=
fun be a => (Real.sqrt (W be.2) : ℂ) * phaseBitPauli be.2.1 be.2.2 be.1 a
/-- PDF p.13: complementary output obtained by tracing out Bob, with no
postprocessing, dephasing, or deletion of environment coherences. -/
def pauliComplement {n : ℕ} (W : Env n → ℝ) (rho : Matrix (BinaryBlock n) (BinaryBlock n) ℂ) :
Matrix (Env n) (Env n) ℂ :=
traceLeft (pauliDilation W * rho * (pauliDilation W).conjTranspose)
/-- PDF p.13: the actual uniform MIXTURE on a coset, not the coherent CSS state. -/
def cosetDensity {n : ℕ} (small : BinaryLinearCode n) (a : BinaryBlock n) :
Matrix (BinaryBlock n) (BinaryBlock n) ℂ := by
classical
exact Matrix.diagonal (fun b => if b - a ∈ small then
((Fintype.card small : ℝ)⁻¹ : ℂ) else 0)
/-- PDF p.13: normalized virtual coherent CSS coset vector, explicitly separate
from the actual mixture sent by Alice. -/
def coherentCoset {n : ℕ} (small : BinaryLinearCode n) (a : BinaryBlock n) : EuclideanSpace ℂ (BinaryBlock n) := by
classical
exact WithLp.toLp 2 (fun b => if b - a ∈ small then
((Real.sqrt (Fintype.card small))⁻¹ : ℂ) else 0)
/-- PDF p.13: conditional Eve density for the actual coset-mixture encoder. -/
def cosetEve {n : ℕ} (small : BinaryLinearCode n) (W : Env n → ℝ) (a : BinaryBlock n) :
Matrix (Env n) (Env n) ℂ := pauliComplement W (cosetDensity small a)
/-- PDF p.13: Eve marginal for the uniform large-code input. -/
def meanEve {n : ℕ} (large : BinaryLinearCode n) (W : Env n → ℝ) : Matrix (Env n) (Env n) ℂ :=
((Fintype.card large : ℝ)⁻¹ : ℂ) • ∑ a : large,
pauliComplement W (cosetDensity (⊥ : BinaryLinearCode n) a.val)
/-- PDF pp.13--14: full trace norm of the actual cq state minus the independent
uniform-key state. Each quotient coset has exactly card(small) representatives,
so averaging over a in large is exactly averaging uniform quotient messages. -/
def traceLeak {n : ℕ} (small large : BinaryLinearCode n) (W : Env n → ℝ) : ℝ :=
(Fintype.card large : ℝ)⁻¹ * ∑ a : large,
traceNorm (cosetEve small W a.val - meanEve large W)
/-- PDF pp.13--14: Holevo information in bits of the same physical cq ensemble. -/
def holevoLeak {n : ℕ} (small large : BinaryLinearCode n) (W : Env n → ℝ) : ℝ :=
vnEntropy (meanEve large W) -
(Fintype.card large : ℝ)⁻¹ * ∑ a : large, vnEntropy (cosetEve small W a.val)
/-- PDF p.12: the phase marginal of the actual joint Pauli law. -/
def phaseMass {n : ℕ} (W : Env n → ℝ) (x : BinaryBlock n) : ℝ := ∑ z, W (x, z)
/-- PDF p.13 (54)--(56): actual dual quotient decoding error. No scalar success
probability is supplied by the caller. Logical success is modulo large-perp. -/
def phaseError {n : ℕ} (small large : BinaryLinearCode n) (W : Env n → ℝ) : ℝ :=
cosetWordError (binDual large) (binDual small) (phaseMass W)
/-- PDF p.13: virtual phase correction subtracts the selected syndrome noise
representative. The remaining phase label is this decoded dual codeword;
phase correction succeeds exactly when it lies in large-perp. -/
def residualPhase {n : ℕ} (small : BinaryLinearCode n) (W : Env n → ℝ) (x : BinaryBlock n) : BinaryBlock n :=
(mlDecode (binDual small) (phaseMass W) x).val
/-- PDF p.13: physical phase-recovered Pauli map on the CSS code space before
logical decoding; bit errors are left in place. The phase correction depends
only on the measured small-code syndrome, by the noise-coset tie convention. -/
def phaseRecovered {n : ℕ} (small : BinaryLinearCode n) (W : Env n → ℝ)
(rho : Matrix (BinaryBlock n) (BinaryBlock n) ℂ) : Matrix (BinaryBlock n) (BinaryBlock n) ℂ :=
∑ e : Env n, (W e : ℂ) •
(phaseBitPauli (residualPhase small W e.1) e.2 * rho *
(phaseBitPauli (residualPhase small W e.1) e.2).conjTranspose)
/-- PDF p.13: message length of a specific seed's quotient. -/
def messageLength {n : ℕ} (small large : BinaryLinearCode n) : ℕ :=
Module.finrank (ZMod 2) large - Module.finrank (ZMod 2) small
/-- PDF p.14 (59)--(61): common upper bound on average residual phase error. -/
def iidPhaseBound (n t : ℕ) (p eps : ℝ) : ℝ :=
(2 : ℝ) ^ (-(n : ℝ) * gallagerExponent (1 - (t : ℝ) / n) p) * max eps 1
example {n : ℕ} (small : BinaryLinearCode n) (a b c : BinaryBlock n) (h : b ≠ c) :
cosetDensity small a b c = 0 := by
classical
simp [cosetDensity, Matrix.diagonal, h]
example {n : ℕ} (rho : Matrix (BinaryBlock n) (BinaryBlock n) ℂ) :
pauliComplement (fun _ : Env n => 0) rho = 0 := by
have hd : pauliDilation (fun _ : Env n => 0) = 0 := by
ext be a
simp only [pauliDilation, Real.sqrt_zero, Complex.ofReal_zero, zero_mul,
Matrix.zero_apply]
simp only [pauliComplement, hd, zero_mul]
ext a b
simp [traceLeft]
/-- PDF p.14: exponential rate in bits, with perfect secrecy assigned +infinity.
Only positive block lengths are passed by the asymptotic statement. -/
def logRate (n : ℕ) (e : ℝ) : EReal :=
if e = 0 then ⊤ else ((-Real.logb 2 e / n : ℝ) : EReal)
/-- PDF p.14 (60): the phase-error trace bound. -/
def phaseTraceBound (n : ℕ) (S p eps : ℝ) : ℝ :=
(2 : ℝ) ^ (-(1 / 2 : ℝ) * n * gallagerExponent (1 - S) p + 3 / 2) * max (Real.sqrt eps) 1
/-- PDF p.14 (64): the delta-biased trace bound used in the comparison. -/
def deltaTraceBound (n : ℕ) (S p eps : ℝ) : ℝ :=
(4 + Real.sqrt (n + 1) * Real.sqrt eps) *
(2 : ℝ) ^ (-(1 / 2 : ℝ) * n * gallagerExponent (1 - S) p)
/-- PDF p.15, separate classical broadcast model: Bob gets the noiseless word;
Eve gets BSC(p). This is Eve's conditional distribution for a uniform coset input. -/
def classicalCosetEve {n : ℕ} (small : BinaryLinearCode n) (p : ℝ) (a y : BinaryBlock n) : ℝ :=
(Fintype.card small : ℝ)⁻¹ * ∑ b : small, bsc p (y - (a + b.val))
/-- PDF p.15: mutual information of the actual classical quotient-message/Eve
law, averaged over uniform messages. Eve's marginal is uniform on F_2^n;
zero terms contribute zero, including the deterministic BSC endpoints. -/
def classicalLeak {n : ℕ} (small : BinaryLinearCode n) (p : ℝ) : ℝ :=
avg (fun a : BinaryBlock n => ∑ y : BinaryBlock n, classicalCosetEve small p a y *
Real.logb 2 (classicalCosetEve small p a y * (2 : ℝ) ^ n))
example : logRate 1 0 = ⊤ := by simp [logRate]
example (u : ℝ) (hu : (1 / 2 : ℝ) < u) (l : ℕ) : entropyEnvelope l u = 1 + l * u := by
unfold entropyEnvelope
exact if_neg (not_le.mpr hu)
end QAlgorithms.Papers.Independent.Intake100.P31
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intake100.P31.BinaryBlock
For every natural number , a binary block of length is a function , where . The value is allowed; there is exactly one length-zero block, the empty function.
QAlgorithms.Papers.Independent.Intake100.P31.BinaryLinearCode
For every natural number , a binary linear code of length is an -linear subspace of the space of functions , where . No dimension or distance condition is imposed. When , the ambient space and its only subspace consist solely of the zero block.
QAlgorithms.Papers.Independent.Intake100.P31.E0
For arbitrary real numbers , this defines
The powers are total real powers, and , where the total real logarithm equals for and is at . There are no restrictions on or ; division by zero is , so at the value is .
QAlgorithms.Papers.Independent.Intake100.P31.Env
For every natural number , abbreviates , where is the set of functions from to . Thus an element is an ordered pair of binary blocks of length ; when , this product has exactly one element.
QAlgorithms.Papers.Independent.Intake100.P31.ErrorLaw
For a natural number , this structure consists of a real-valued function , together with the requirements for every binary vector and . No independence or coordinate symmetry is required. When , the domain contains only the empty vector, whose mass must therefore be one.
QAlgorithms.Papers.Independent.Intake100.P31.ExtUniversalAt
For any natural number , any type equipped with a finite enumeration, any -linear subspace , any family of -linear subspaces of , any natural number , and any real number , this property means both that for every seed and that every outside satisfies . The exponent uses real subtraction; no dimension condition on or nonnegativity condition on is imposed. Empty is allowed, giving a zero left side and vacuous containment requirements. If , the probability requirements are vacuous and containment forces every ; when , the entire property holds automatically.
QAlgorithms.Papers.Independent.Intake100.P31.HashUniversal
For any natural numbers , any type equipped with a finite enumeration, any family of -linear maps , and any real number , this property means that every pair of distinct blocks satisfies . Neither nonemptiness of nor nonnegativity of is assumed; for empty , the left side is zero. When , there are no distinct input blocks, so the property holds vacuously. The value is also allowed.
QAlgorithms.Papers.Independent.Intake100.P31.PairUniversalAt
For any natural numbers , finite seed type with a specified finite enumeration, families of binary linear subspaces indexed by , and real number , this property means that for every seed , and that every nonzero vector satisfies . The exponent uses subtraction in . There is no nonemptiness assumption on and no restriction on ; when is empty, the left side is defined as zero because the real inverse of zero is zero. When , there are no nonzero vectors, so the condition on is vacuous.
QAlgorithms.Papers.Independent.Intake100.P31.SubUniversalAt
For any natural number , any type equipped with a finite enumeration, any -linear subspace , any family of -linear subspaces of , any natural number , and any real number , this property means both that for every seed and that every nonzero satisfies . The exponent uses real subtraction; is not required to equal or bound any code dimension, and need not be nonnegative. Empty is allowed, giving a zero left side and vacuous containment requirements. If , the probability requirements are vacuous, while the containment requirements force every ; this includes .
QAlgorithms.Papers.Independent.Intake100.P31.UniversalAt
For any natural number , any type equipped with a finite enumeration, any family of -linear subspaces of , any natural number , and any real number , this property means that every nonzero satisfies . The exponent uses subtraction in , without truncation. No relation between and the code dimensions, no nonnegativity of , and no nonemptiness of is assumed. For empty , the left side is zero; for , there are no nonzero blocks, so the property holds vacuously.
QAlgorithms.Papers.Independent.Intake100.P31.avg
For any type equipped with a finite enumeration and any function , its average is defined to be . The set may be empty; in that case the sum and the resulting average are both zero, using the convention in .
QAlgorithms.Papers.Independent.Intake100.P31.bernoulliDivergenceBits
For arbitrary real numbers , this defines an extended real number by
The second branch is a real number embedded into the extended reals. No assumption places or in . Division by zero is , and uses the total real logarithm with and otherwise; consequently, the value at and at is .
QAlgorithms.Papers.Independent.Intake100.P31.bsc
For every natural number , real number , and binary vector , this defines the real number
There is no assumption that . For , the empty product is .
QAlgorithms.Papers.Independent.Intake100.P31.classicalCosetEve
For every natural number , every binary linear subspace , every real number , and every , this defines
All vector operations are over . A linear subspace contains zero, so . There is no assumption that . The definition includes , when the vector space and its unique subspace are singletons, the product is empty, and the value is .
QAlgorithms.Papers.Independent.Intake100.P31.classicalLeak
For every natural number , every binary linear subspace , and every real number , this defines
where
and vector operations are over . The average over ranges over the entire binary vector space. No restriction on is imposed; the real logarithm is total, taking value at zero and at a nonzero argument . For , the value is .
QAlgorithms.Papers.Independent.Intake100.P31.codeWeightCount
For any natural numbers and binary linear subspace , this defines the number . Thus it counts all code vectors with exactly nonzero coordinates, including the zero vector when . The count is one for and zero for ; these conventions also apply when .
QAlgorithms.Papers.Independent.Intake100.P31.coherentCoset
For every natural number , binary linear subspace , and arbitrary block , this defines a vector in the complex Euclidean space indexed by , with coordinates
The positive real coefficient is embedded into , and subtraction is coordinatewise in . Since contains zero, its cardinality is nonzero. When , the vector has a single coordinate, equal to .
QAlgorithms.Papers.Independent.Intake100.P31.cosetDensity
For every natural number , binary linear subspace , and block , this defines the complex matrix
Thus its diagonal is the reciprocal of the number of elements of on the coset and zero elsewhere, and all off-diagonal entries vanish. The subspace contains zero, so ; is arbitrary and need not belong to . For , this is the one-by-one matrix with entry .
QAlgorithms.Papers.Independent.Intake100.P31.cosetEve
For every natural number , binary linear subspace , arbitrary function , and , this defines the complex matrix
Here the environment index set is , and is obtained from by summing out its index:
The dot product is computed in , with its value represented by or in the exponent. No nonnegativity or normalization is assumed for ; the real square root is zero on negative inputs. The definition includes , when and are singletons.
QAlgorithms.Papers.Independent.Intake100.P31.cosetWordError
For any natural number , binary linear subspaces , and arbitrary function , this defines , where is one when its condition holds and zero otherwise, and for a classically chosen maximizer of over . That maximizing set is always nonempty, and ties have no specified resolution. There is no assumption that or that is a probability mass function. The divisor is positive because contains zero. When , the value is zero for every .
QAlgorithms.Papers.Independent.Intake100.P31.deltaTraceBound
For every natural number , including , and arbitrary real numbers , this defines
where
The supremum, logarithms, and real powers use their total real definitions; in particular, an unbounded-above set has real supremum , and when . No range restrictions are imposed on . At the value is .
QAlgorithms.Papers.Independent.Intake100.P31.dualParameter
For arbitrary natural numbers and any real number , this real-valued parameter is defined to be , where in the exponent is subtraction in . No restriction on or relation between and is imposed, and either natural number may be zero.
QAlgorithms.Papers.Independent.Intake100.P31.entropyEnvelope
For every natural number , including , and every real number , define the real number
There is no assumption that lies in . The logarithm is the total real logarithm, with and for negative ; thus the definition also assigns values outside the usual entropy domain.
QAlgorithms.Papers.Independent.Intake100.P31.expFactor
For every natural number and extended real number , this defines
where is itself when finite and is when . Thus the value at is . For , the value is at and for every other .
QAlgorithms.Papers.Independent.Intake100.P31.gallagerBound
For every natural number and arbitrary real numbers , this defines the real infimum
Both endpoints are included. All powers are total real powers, and uses the total real logarithm, which is at zero and equals otherwise. No positivity assumptions on or are imposed, and is included; under these power conventions.
QAlgorithms.Papers.Independent.Intake100.P31.gallagerExponent
For arbitrary real numbers , this defines the real supremum
The interval includes both endpoints, and no restriction on or is imposed. Powers use total real exponentiation, and uses the total real logarithm, with and for .
QAlgorithms.Papers.Independent.Intake100.P31.hammingBad
For any natural number , binary linear subspace , and vector , this defines the real number one if there exists a nonzero such that , and zero otherwise, with ranging over . Equality of the two weights is included. If is the zero subspace, or if , the value is zero; in particular it is zero when .
QAlgorithms.Papers.Independent.Intake100.P31.holevoLeak
For every natural number , binary linear subspaces , and arbitrary , this defines
where uses continuous functional calculus, , and
Here is diagonal with entry at , and
The exponent uses the binary dot product; real square roots of negative inputs and the real logarithm at zero are zero. No inclusion between and , nonnegativity of , or normalization of these matrices is assumed. The definition includes .
QAlgorithms.Papers.Independent.Intake100.P31.iidPauli
For every natural number , real numbers , and pair , where , this defines
Neither real parameter is required to lie in , so nonnegativity is not assumed. When , both products are empty and the value is .
QAlgorithms.Papers.Independent.Intake100.P31.iidPhaseBound
For arbitrary natural numbers and arbitrary real numbers , this defines
where
There is no assumption that , , , or ; powers and logarithms use their total real-valued definitions. Division by zero is zero, so for the defined value is .
QAlgorithms.Papers.Independent.Intake100.P31.logRate
For every natural number , including , and every real number , this defines an extended real number by
The second branch is calculated in and then embedded into the extended reals. No positivity assumption is imposed on : the real logarithm is total, with for . Division by zero is also total, so whenever , whereas .
QAlgorithms.Papers.Independent.Intake100.P31.maxDim
For any natural number , any nonempty type equipped with a finite enumeration, and any family of -linear subspaces of , the maximum dimension is defined to be , a natural number. Nonemptiness of is an assumption. The value is allowed, in which case this maximum is zero.
QAlgorithms.Papers.Independent.Intake100.P31.meanEve
For every natural number , binary linear subspace , and arbitrary real function on , this defines
where is the coordinate vector at . Explicitly,
Here is the binary dot product, interpreted as or in the exponent. The sum averages over all codewords of ; is nonzero because contains zero. No sign or normalization condition is imposed on , and negative values have real square root zero. The definition also applies when .
QAlgorithms.Papers.Independent.Intake100.P31.messageLength
For every natural number and binary linear subspaces , this defines
The subtraction is natural-number subtraction, so it is truncated at zero. No inclusion is assumed. In particular, the value is zero when , including when .
QAlgorithms.Papers.Independent.Intake100.P31.minDim
For any natural number , any nonempty type equipped with a finite enumeration, and any family of -linear subspaces of , the minimum dimension is defined to be , a natural number. Nonemptiness of is an assumption. The value is allowed, in which case this minimum is zero.
QAlgorithms.Papers.Independent.Intake100.P31.mlDecode
For any natural number , binary linear subspace , arbitrary real-valued function , and vector , this defines an element of as follows: form the finite nonempty set , choose a vector maximizing over , and return . The set is nonempty because it contains . The choice among maximizers is made by classical choice, with no specified tie-breaking rule, and need not be nonnegative or normalized. When , the returned vector is the unique empty vector.
QAlgorithms.Papers.Independent.Intake100.P31.modifiedM
For all natural numbers and every seed , define a matrix over by
Thus , where for ; natural-number subtraction is truncated at zero. Zero dimensions are permitted: gives , and gives a matrix with no rows.
QAlgorithms.Papers.Independent.Intake100.P31.modifiedN
For all natural numbers and every seed , define an matrix over by
Equivalently, , where for ; all natural-number subtractions are truncated at zero. Zero dimensions are permitted: gives a matrix with no rows, and gives .
QAlgorithms.Papers.Independent.Intake100.P31.noiseBound
For every natural number , arbitrary function , and real numbers , this defines
where , using the total real logarithm with . No distribution assumption on or restrictions on are imposed. Division is real division, with division by zero equal to ; in particular, for the value is .
QAlgorithms.Papers.Independent.Intake100.P31.optimalParameter
For arbitrary natural numbers , this real-valued parameter is defined to be , where in the exponent is subtraction in , so is allowed and produces a negative exponent. There is no assumption relating and . When , the denominator is zero and the defined value is zero, using real division by zero.
QAlgorithms.Papers.Independent.Intake100.P31.pairSpectrumParameter
For any natural number and binary linear subspaces , with no containment assumption, this defines zero when ; when , it defines , where and count the vectors in the respective subspaces. The exponents use real subtraction. Both subspaces contain zero, so their cardinalities are positive.
QAlgorithms.Papers.Independent.Intake100.P31.pauliComplement
For every natural number , arbitrary function , and arbitrary complex matrix indexed by , this defines a complex matrix indexed by by taking and summing over the matching row and column indices. Explicitly, its entry indexed by and is
All block operations and each inner sum in an exponent are in , with ; the two displayed integer exponent values are then added. Real square roots are embedded into and equal zero on negative inputs. Neither nor is required to satisfy probability, positivity, Hermiticity, or trace conditions. When , the expression is the one-by-one matrix with entry .
QAlgorithms.Papers.Independent.Intake100.P31.pauliDilation
For every natural number and arbitrary real-valued function , where , this defines a complex matrix with rows indexed by and columns indexed by , with entries
The addition and dot-product sum are in , and takes values . The square root is the real square root, embedded into ; it is zero for a negative argument. No nonnegativity or normalization condition on is imposed. For , the matrix has the single entry .
QAlgorithms.Papers.Independent.Intake100.P31.permCode
For any natural number , binary linear subspace , and permutation of , this defines the binary linear subspace , equivalently . When , this is the unique subspace of the zero-dimensional binary vector space.
QAlgorithms.Papers.Independent.Intake100.P31.permLinear
For any natural number and permutation of , this defines an -linear map from to itself by . Thus output coordinate is input coordinate . This includes , when the vector space has just its zero vector and the map is the unique map on that space.
QAlgorithms.Papers.Independent.Intake100.P31.phaseBitPauli
For every natural number and binary blocks , this defines a complex matrix with rows and columns indexed by , whose entry in row and column is
Addition and the sum in the exponent are computed in , and represents the resulting field element by the integer or . The sign therefore uses the output block . For , the sum is empty and the resulting one-by-one matrix has entry .
QAlgorithms.Papers.Independent.Intake100.P31.phaseError
For every natural number , binary linear subspaces , and arbitrary , put and , with dot product over . This defines
For a binary linear code , , where is a chosen maximizer of among all satisfying . This finite candidate set is nonempty because it contains ; the definition does not specify which maximizer is chosen in a tie. No inclusion between and or probability-law condition on is required. When , the displayed indicator is always zero, so the value is zero.
QAlgorithms.Papers.Independent.Intake100.P31.phaseMass
For every natural number , arbitrary function , and , this defines
There is no assumption that is nonnegative or sums to one. For , the sum has one term.
QAlgorithms.Papers.Independent.Intake100.P31.phaseRecovered
For every natural number , binary linear subspace , arbitrary real function on , and arbitrary complex matrix indexed by , this defines
The dot product is binary and its value is represented by or in the exponent. To define , set , choose a maximizer of among the vectors satisfying , and put , where consists of vectors orthogonal to every member of . The candidate set contains , and tie choices are unspecified. No positivity or trace condition is imposed on , and no sign or normalization condition is imposed on . For , the result is .
QAlgorithms.Papers.Independent.Intake100.P31.phaseTraceBound
For every natural number , including , and arbitrary real numbers , this defines
where
Here the supremum is the real supremum, using the total real supremum operation, which returns for an unbounded-above set; logarithms and real powers likewise use their total real definitions. There are no assumptions that lie in probability ranges, and the real square root is for nonpositive inputs. In particular, at the value is .
QAlgorithms.Papers.Independent.Intake100.P31.residualPhase
For every natural number , binary linear subspace , arbitrary , and , let and . This defines
where is a chosen maximizer of subject to . The candidate set is finite and contains , and ties are resolved by an unspecified choice. The returned vector belongs to . No nonnegativity or normalization is assumed for ; when , the returned vector is the unique empty binary vector.
QAlgorithms.Papers.Independent.Intake100.P31.seedProbability
For any type equipped with a finite enumeration and any predicate on , the seed probability of is defined to be , where the indicator is when holds and otherwise. No decidability assumption on is required. For nonempty , this is the fraction of seeds satisfying ; for empty , it is zero because real inversion sends zero to zero.
QAlgorithms.Papers.Independent.Intake100.P31.seededToeplitz
For all natural numbers and every binary seed , where , define a matrix over by
The subtractions in the seed index are natural-number subtractions, truncated at zero; whenever a column index exists, has its usual nonnegative value. If or , the matrix has no entries. When both dimensions are positive, the final seed coordinate is unused.
QAlgorithms.Papers.Independent.Intake100.P31.spectrumParameter
For any natural number and binary linear subspace , this defines zero when ; when , it defines , where ranges over and subtraction in the exponent is in . Only positive weights through enter this maximum; weight zero is excluded.
QAlgorithms.Papers.Independent.Intake100.P31.tiltedBernoulli
For arbitrary real numbers , this defines
There is no restriction on or , and powers use total real exponentiation. If the denominator in the final branch is zero, the quotient is .
QAlgorithms.Papers.Independent.Intake100.P31.tiltedExponent
For arbitrary real numbers , this defines the extended real infimum
where is if , is if , and otherwise is ; ; and is when and otherwise is the real number embedded into the extended reals. Both interval endpoints are included, and are unrestricted. Powers use total real exponentiation, division by zero is , and uses the total real logarithm with and otherwise .
QAlgorithms.Papers.Independent.Intake100.P31.traceLeak
For every natural number , binary linear subspaces , and arbitrary , this defines
The matrix is diagonal, with entry at if and zero otherwise. The square root in the trace is defined by continuous functional calculus. The map has entries
with binary dot product in the exponent and real square root zero for negative inputs. There is no factor multiplying the trace norm. Neither nor any probability-law condition on is required; is included.
QAlgorithms.Papers.Independent.Intake100.P31.typeExponent
For arbitrary real numbers , this defines the extended real infimum
where and
The finite terms are embedded into the extended reals, both interval endpoints are included, and are unrestricted. Here , the total real logarithm has and otherwise equals , and division by zero is .
QAlgorithms.Papers.Independent.Intake100.P31.weightMass
For every natural number , arbitrary function , and natural number , this defines
No nonnegativity or normalization is required of . The value is when ; when , it is for and otherwise.
QAlgorithms.Papers.Independent.Intake100.P31.weightParameter
For any natural numbers and binary linear subspace , this defines the real number , where the coordinate index ranges over and the exponent uses subtraction in . The definition allows every natural : if , both the count and are zero, and real division by zero is defined to give zero, so the resulting parameter is zero. When , the parameter is one for and zero for .
QAlgorithms.Papers.Independent.Intake100.P31.wordNoiseBound
For every natural number , arbitrary function , and real numbers , this defines
where , using the total real logarithm with . No distribution assumption on or restrictions on are imposed. For , the sum is empty and the value is .
QAlgorithms.Papers.Independent.Intake100.P31.wt
For any natural number and binary vector , this defines its weight to be , the number of nonzero coordinates. When , this is the cardinality of the empty set and equals zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.