Definitions for The Degraded Poisson Wiretap Channel
DefinitionQAlgorithms_Papers_Independent_Intake100_P51The objects the formalized statements of The Degraded Poisson Wiretap Channel (arXiv:1004.0269) are stated in. Each was checked against the paper by a blind read-back and a moderator.
conditionalEvent: PDF pp.5,19: conditional probability of an event given the entire random object X, defined by conditional expectation of its indicator. In all uses, X and the event are measurable and mu is a probability measure, so the indicator is integrable and the conditioning sigma algebra is a subalgebra.ConditionallyIndependent: PDF pp.5,18–19: conditional independence given sigma(X), tested on every pair of measurable output events. This conditional-expectation formulation works on arbitrary probability spaces and imposes no standard-Borel assumption on the underlying sample space.gaussianJoint: PDF p.4: independent input and independent centered Gaussian noises. The two variance parameters are N1B and N2B, rather than their square roots. Only positive bandwidth and noise parameters are used in the limit theorem.gaussianInformationDifference: PDF pp.4–5: the actual scalar Gaussian wiretap information difference. Under the power and positive-noise assumptions in gaussianSecrecyValue, both information terms are finite (bounded by the scalar Gaussian capacity), which justifies the real subtraction. The observations share the first noise.gaussianSecrecyValue: PDF pp.5–6: the variational finite-bandwidth value used by the source, with 2*B scalar channel uses per second. For B>0, P>=0 and N1,N2>0 the set is nonempty (the point mass at zero is admissible) and bounded above by the Gaussian main-channel capacity. The second moment must be integrable; otherwise Lean's totalized integral would admit inputs of infinite power.
import Mathlib
/-!
Statements from Laourine and Wagner, arXiv:1004.0269v1, PDF pp.4–6,18–19.
The source's operational Poisson results are deferred in the assigned HARD.md;
no analytic expression is substituted for an operational capacity definition.
Information is classical, uses natural logarithms, and retains infinite values.
Compilation is pending the authorized batch handoff.
-/
noncomputable section
namespace QAlgorithms.Papers.Independent.Intake100.P51
open MeasureTheory Filter
open InformationTheory (klDiv)
open scoped ENNReal
attribute [local instance] Classical.propDecidable
/-- PDF pp.5,19: conditional probability of an event given the entire random
object X, defined by conditional expectation of its indicator. In all uses,
X and the event are measurable and mu is a probability measure, so the
indicator is integrable and the conditioning sigma algebra is a subalgebra. -/
def conditionalEvent {Omega A : Type*} [MeasurableSpace Omega]
[MeasurableSpace A] (mu : Measure Omega) (X : Omega → A)
(s : Set Omega) : Omega → ℝ :=
MeasureTheory.condExp (MeasurableSpace.comap X inferInstance) mu
(s.indicator (fun _ => (1 : ℝ)))
/-- PDF pp.5,18–19: conditional independence given sigma(X), tested on every
pair of measurable output events. This conditional-expectation formulation
works on arbitrary probability spaces and imposes no standard-Borel assumption
on the underlying sample space. -/
def ConditionallyIndependent {Omega A B C : Type*} [MeasurableSpace Omega]
[MeasurableSpace A] [MeasurableSpace B] [MeasurableSpace C]
(mu : Measure Omega) (X : Omega → A) (Y : Omega → B) (Z : Omega → C) : Prop :=
∀ (s : Set B) (t : Set C), MeasurableSet s → MeasurableSet t →
conditionalEvent mu X (Y ⁻¹' s ∩ Z ⁻¹' t) =ᵐ[mu]
(fun omega => conditionalEvent mu X (Y ⁻¹' s) omega *
conditionalEvent mu X (Z ⁻¹' t) omega)
/-- Sanity: one deterministic, normalized observation has no mutual information. -/
example : klDiv ((Measure.dirac ()).map (fun x : Unit => (x, x)))
(((Measure.dirac ()).map (fun x : Unit => x)).prod
((Measure.dirac ()).map (fun x : Unit => x))) = 0 := by
simp [Measure.dirac_prod_dirac]
/-- Sanity: the impossible event has conditional probability zero. -/
example {Omega A : Type*} [MeasurableSpace Omega] [MeasurableSpace A]
(mu : Measure Omega) (X : Omega → A) :
conditionalEvent mu X ∅ = 0 := by
funext omega
simp [conditionalEvent, MeasureTheory.condExp_zero]
/-- PDF p.4: independent input and independent centered Gaussian noises.
The two variance parameters are N1*B and N2*B, rather than their square roots.
Only positive bandwidth and noise parameters are used in the limit theorem. -/
def gaussianJoint (B N1 N2 : ℝ) (input : Measure ℝ) : Measure (ℝ × (ℝ × ℝ)) :=
input.prod ((ProbabilityTheory.gaussianReal 0 (Real.toNNReal (N1 * B))).prod
(ProbabilityTheory.gaussianReal 0 (Real.toNNReal (N2 * B))))
/-- PDF pp.4–5: the actual scalar Gaussian wiretap information difference.
Under the power and positive-noise assumptions in gaussianSecrecyValue,
both information terms are finite (bounded by the scalar Gaussian capacity),
which justifies the real subtraction. The observations share the first noise. -/
def gaussianInformationDifference (B N1 N2 : ℝ) (input : Measure ℝ) : ℝ :=
let mu := gaussianJoint B N1 N2 input
(klDiv (mu.map (fun p => (p.1, p.1 + p.2.1)))
((mu.map (fun p => p.1)).prod (mu.map (fun p => p.1 + p.2.1)))).toReal -
(klDiv (mu.map (fun p => (p.1, p.1 + p.2.1 + p.2.2)))
((mu.map (fun p => p.1)).prod
(mu.map (fun p => p.1 + p.2.1 + p.2.2)))).toReal
/-- PDF pp.5–6: the variational finite-bandwidth value used by the source,
with 2*B scalar channel uses per second. For B>0, P>=0 and N1,N2>0 the
set is nonempty (the point mass at zero is admissible) and bounded above by
the Gaussian main-channel capacity. The second moment must be integrable;
otherwise Lean's totalized integral would admit inputs of infinite power. -/
def gaussianSecrecyValue (B P N1 N2 : ℝ) : ℝ :=
2 * B * sSup {r : ℝ | ∃ input : Measure ℝ,
IsProbabilityMeasure input ∧ Integrable (fun x : ℝ => x ^ 2) input ∧
(∫ x : ℝ, x ^ 2 ∂input) ≤ P ∧
r = gaussianInformationDifference B N1 N2 input}
/-- Sanity: at bandwidth zero, all three deterministic zero coordinates
have their normalized joint point-mass law. The limit only uses B>0. -/
example (N1 N2 : ℝ) : gaussianJoint 0 N1 N2 (Measure.dirac 0) =
Measure.dirac (0, (0, 0)) := by
simp [gaussianJoint, Real.toNNReal_zero, ProbabilityTheory.gaussianReal_zero_var,
Measure.dirac_prod_dirac]
end QAlgorithms.Papers.Independent.Intake100.P51
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intake100.P51.ConditionallyIndependent
For arbitrary types , each equipped with a measurable-space structure, any measure on , and arbitrary functions , , and , this defines a proposition requiring that, for every measurable set and every measurable set ,
for -almost every . Here is the measurable structure pulled back from along , each indicator takes values and , and each conditional expectation uses the library’s total conditional-expectation operation. The exceptional null set may depend on and . No measurability assumptions on , probability assumption on , or integrability assumptions are imposed.
QAlgorithms.Papers.Independent.Intake100.P51.conditionalEvent
For arbitrary types and , each equipped with a measurable-space structure, a measure on , any function , and any set , this defines a real-valued function on by
where is on and elsewhere, and is the pullback measurable structure consisting of preimages under of measurable subsets of . The conditional expectation here is the library’s total conditional-expectation operation. There are no assumptions that or is measurable, that this pullback structure is contained in the given measurable structure on , that is integrable, or that is a probability measure.
QAlgorithms.Papers.Independent.Intake100.P51.gaussianInformationDifference
For any real numbers and any measure on , let
and write for the three coordinate functions on its underlying space . This defines the real number
where denotes pushforward measure, is Kullback–Leibler divergence, and is the library’s conversion from the extended-valued divergence to a real number, which sends infinite values to zero. Thus conversion occurs separately before subtraction. There are no positivity assumptions on the parameters, probability assumption on , or finiteness assumptions on the divergences; a zero Gaussian variance means a point mass at zero.
QAlgorithms.Papers.Independent.Intake100.P51.gaussianJoint
For any real numbers and any measure on , this defines the measure
on , where the second argument of each Gaussian is its variance. No sign assumptions are imposed on the parameters, and need not be a probability measure. A nonpositive product gives variance zero, so the corresponding Gaussian is the point mass at zero.
QAlgorithms.Papers.Independent.Intake100.P51.gaussianSecrecyValue
For arbitrary real numbers , this defines , where consists of all real numbers of the form
as ranges over probability measures on for which is integrable and . Here
are its coordinate functions, denotes pushforward measure, is Kullback–Leibler divergence, and converts finite divergence values to their real values and infinite values to zero. The constraint concerns the second moment, without any requirement that have mean zero. The supremum is the library’s real-valued supremum, which is zero when is empty or unbounded above; in particular, makes empty. No signs are assumed for , nonpositive variance products are truncated to zero, and makes the defined value zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.