Documentation

CslibFrontier.Crypto.Computational.Quantum.Mixture

Fair mixtures of native quantum challenge ensembles #

Mixing two challenge ensembles with a fair classical bit preserves native quantum indistinguishability. The same circuit tests both branches: the concrete bound is the average of the two branch bounds, with the input-length cap and separate qubit, gate, query and exact encoded-description budgets unchanged. The bit is sampled by the challenge experiment, not by an additional circuit.

These are original closure results for the existing native model. They do not compile a typed probabilistic reduction into a native circuit or claim a cost for challenge sampling.

Main results #

theorem Cslib.Crypto.NativeQuantum.supportsLengthAt_bind_iff {ι : Type u_1} (μ : ℕ → PMF ι) (X : ι → ℕ → PMF (List Bool)) (L : ℕ → ℕ) (n : ℕ) :
SupportsLengthAt (fun (n : ℕ) => (μ n).bind fun (i : ι) => X i n) L n ↔ ∀ i ∈ (μ n).support, SupportsLengthAt (X i) L n

A mixed ensemble meets a length cap exactly when every supported branch meets it. The distribution of branches may depend on the security parameter.

theorem Cslib.Crypto.NativeQuantum.SupportsLength.bind {ι : Type u_1} {X : ι → ℕ → PMF (List Bool)} {L : ℕ → ℕ} (h : ∀ (i : ι), SupportsLength (X i) L) (μ : ℕ → PMF ι) :
SupportsLength (fun (n : ℕ) => (μ n).bind fun (i : ι) => X i n) L

Mixing ensembles with a common length cap preserves that cap.

theorem Cslib.Crypto.NativeQuantum.IndistinguishableWithin.bind_uniformBool {X Y : Bool → ℕ → PMF (List Bool)} {L : ℕ → ℕ} {ε : Bool → ℕ → Quantum.OracleCircuit.Resources → NNReal} (h : ∀ (b : Bool), IndistinguishableWithin (X b) (Y b) L (ε b)) :
IndistinguishableWithin (fun (n : ℕ) => (Probability.PMF.uniformOfFintype Bool).bind fun (b : Bool) => X b n) (fun (n : ℕ) => (Probability.PMF.uniformOfFintype Bool).bind fun (b : Bool) => Y b n) L fun (n : ℕ) (budget : Quantum.OracleCircuit.Resources) => (ε false n budget + ε true n budget) / 2

A fair mixture averages the two concrete error bounds. The native test, input-length cap and each of its four resource budgets are unchanged.

Fair mixtures preserve asymptotic native quantum indistinguishability. The same uniform circuit family tests both branches at every security parameter.