Concatenated error parameter and quasi-independent error models
DefinitionKLZ97_modelThe definition layer for the threshold analysis of Knill, Laflamme and Zurek.
Concatenated failure parameter. One level of the fault tolerant construction turns a physical failure parameter into , where counts the minimal pairs of error locations that can make an encoded gate fail. levelError iterates this reduction: and , so is the failure parameter of an encoded gate after levels of concatenation.
Error models. For a network whose error locations are indexed by a finite set , with the event that location fails, the quasi-independent stochastic model with error probability asks that
for every set of error locations, and the quasi-independent monotonic model with constant relaxes this to . Probabilities (or strengths) take values in .
import Mathlib
namespace KLZ97
/-- `levelError f p h` is the failure parameter of an encoded gate at concatenation
level `h`, obtained from the physical failure parameter `p` by iterating the
one-level reduction `p ↦ f * p ^ 2`, where `f` is the number of minimal pairs of
error locations that can make an encoded gate fail. -/
noncomputable def levelError (f p : ℝ) : ℕ → ℝ
| 0 => p
| h + 1 => f * levelError f p h ^ 2
@[simp] theorem levelError_zero (f p : ℝ) : levelError f p 0 = p := rfl
@[simp] theorem levelError_succ (f p : ℝ) (h : ℕ) :
levelError f p (h + 1) = f * levelError f p h ^ 2 := rfl
/-- The quasi-independent **stochastic** error model with error probability `p`,
for a network whose error locations are indexed by the finite set `locs` and whose
failure event at location `i` is `fail i`: for every set `S` of error locations,
the probability that all locations of `S` fail is at most `p ^ |S|`. -/
def QuasiIndepStochastic {Ω ι : Type*} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω)
(locs : Finset ι) (fail : ι → Set Ω) (p : ENNReal) : Prop :=
∀ S : Finset ι, S ⊆ locs → μ (⋂ i ∈ S, fail i) ≤ p ^ S.card
/-- The quasi-independent **monotonic** error model with error parameter `p` and
constant `C`: for every set `S` of error locations, the strength of the summands in
which all locations of `S` have failed is at most `C * p ^ |S|`. -/
def QuasiIndepMonotone {Ω ι : Type*} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω)
(locs : Finset ι) (fail : ι → Set Ω) (C p : ENNReal) : Prop :=
∀ S : Finset ι, S ⊆ locs → μ (⋂ i ∈ S, fail i) ≤ C * p ^ S.card
end KLZ97
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — non-blind, authored by the drafting agent
Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted the Lean statement it describes, at the explicit request of the proposal owner, and not by an independent auditor working blind from the code alone. It therefore cannot corroborate the faithfulness of the formalization, and a reviewer should not treat it as independent evidence: it carries exactly the blind spots of the author of the statement.
This bundle introduces one recursively defined real-valued function and two predicates.
The function. For real numbers and , is the function determined by
It is a total function of a natural number: it is defined for every real and , including negative values and , with no positivity, smallness or threshold condition attached. Two rewriting facts accompany it, asserting exactly the two defining equations. Writing for , the values are , , , and so on.
The two predicates. Both are statements about the same data: an arbitrary type carrying a -algebra, an arbitrary measure on , an arbitrary type , a finite set of elements of , a family of subsets indexed by all of , and parameters taking values in (the extended non-negative reals).
The first predicate, with parameter , asserts:
where is the number of elements of .
The second predicate, with parameters and , asserts the same family of inequalities with the right-hand side .
Several points about what these say literally. The measure is an arbitrary measure, not required to be a probability measure, and the sets are not required to be measurable. The quantification is over subsets of , and includes : an intersection over the empty index set is all of , and , so the first predicate entails and the second entails . The predicates constrain only intersections — the probability that all locations of fail — and say nothing directly about unions, complements, or the values for . Arithmetic is in , where is a permitted value of , and ; with the inequalities for non-empty are vacuous, and with the second predicate holds for every . Taking a singleton gives , respectively , for each .