F3 — AuditSealed K ↔ ∀ s a a', equalPriorBayesError (K (s, a)) (K (s, a')) = 1/2.
∀ {S : Type uS} {A : Type uA} {Y : Type uY} [inst : Fintype Y] (K : AuditCP.AuditChannel S A Y),
AuditCP.AuditSealed K ↔ ∀ (s : S) (a a' : A), AuditCP.equalPriorBayesError (K (s, a)) (K (s, a')) = 1 / 2- DeclAuditCP.auditSealed_iff_no_binary_decision_advantageDeclaration kindtheorem
∀ {S : Type uS} {A : Type uA} {Y : Type uY} [inst : Fintype Y] (K : AuditCP.AuditChannel S A Y), AuditCP.AuditSealed K ↔ ∀ (s : S) (a a' : A), AuditCP.equalPriorBayesError (K (s, a)) (K (s, a')) = 1 / 2 - DeclAuditCP.equalPriorBayesError_eq_half_iffDeclaration kindtheorem
F3b —
equalPriorBayesError p q = 1/2 ↔ p = q.∀ {Y : Type uY} [inst : Fintype Y] (p q : PMF Y), AuditCP.equalPriorBayesError p q = 1 / 2 ↔ p = q - DeclAuditCP.finiteTotalVariation_eq_zero_iffDeclaration kindtheorem
finiteTotalVariation p q = 0 ↔ p = q.∀ {Y : Type uY} [inst : Fintype Y] (p q : PMF Y), AuditCP.finiteTotalVariation p q = 0 ↔ p = q - DeclAuditCP.equalPriorBayesError_eq_half_one_sub_tvDeclaration kindtheorem
F3a —
equalPriorBayesError p q = (1 - finiteTotalVariation p q) / 2.∀ {Y : Type uY} [inst : Fintype Y] (p q : PMF Y), AuditCP.equalPriorBayesError p q = (1 - AuditCP.finiteTotalVariation p q) / 2 - DeclAuditCP.sum_pmfMass_eq_oneDeclaration kindtheorem
On a finite type, the real point masses of
psum to1.∀ {Y : Type uY} [inst : Fintype Y] (p : PMF Y), ∑ y, AuditCP.pmfMass p y = 1 - DeclAuditCP.min_eq_add_sub_abs_div_twoDeclaration kindtheorem
min x y = (x + y - |x - y|) / 2.∀ (x y : ℝ), min x y = (x + y - |x - y|) / 2
- DefinitionAuditCP.AuditChanneldef
B6 —
AuditChannel S A YisAuditExperiment (S × A) Y, an experiment whose parameter is split into a public coordinateSand an audit coordinateA.AuditCP.AuditIndex → AuditCP.AuditIndex → AuditCP.AuditIndex → Type (max u v w)
- DefinitionAuditCP.AuditSealeddef
The channel
Kis audit-sealed: its output law at fixed public statesdoes not depend on the audit statea.{S : Type uS} → {A : Type uA} → {Y : Type uY} → AuditCP.AuditChannel S A Y → Prop - DefinitionAuditCP.equalPriorBayesErrordef
The equal-prior Bayes error between
pandq,(1/2) * ∑ y, min (pmfMass p y) (pmfMass q y).{Y : Type uY} → [Fintype Y] → PMF Y → PMF Y → ℝ - DefinitionAuditCP.finiteTotalVariationdef
The total variation distance between
pandq, half theℓ¹distance of their point masses,(1/2) * ∑ y, |pmfMass p y - pmfMass q y|.{Y : Type uY} → [Fintype Y] → PMF Y → PMF Y → ℝ - DefinitionAuditCP.pmfMassdef
The real-valued point mass of
yunder the MathlibPMFp,(p y).toReal.{Y : Type uY} → PMF Y → Y → ℝ
Verification
- Replay
- accepted
- Axioms
- Classical.choiceQuot.soundpropext
- Statement identity
- not-applicable
- Substrate
- Lean 4 kernel v4.31.0
- Dictionary pin
- design-lab@5802df4 · initial
- Frozen export
- 2b5c97530787
- Verified
- 2026-09-24T00:00:00Z