Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for The Degraded Poisson Wiretap Channel

Definition
QAlgorithms_Papers_Independent_Intake100_P51

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The 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.
Definition code
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
Source
The Degraded Poisson Wiretap Channel, arXiv:1004.0269v1, https://arxiv.org/abs/1004.0269v1
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

QAlgorithms.Papers.Independent.Intake100.P51.ConditionallyIndependent

For arbitrary types Ω,A,B,C\Omega,A,B,CΩ,A,B,C, each equipped with a measurable-space structure, any measure μ\muμ on Ω\OmegaΩ, and arbitrary functions X:Ω→AX:\Omega\to AX:Ω→A, Y:Ω→BY:\Omega\to BY:Ω→B, and Z:Ω→CZ:\Omega\to CZ:Ω→C, this defines a proposition requiring that, for every measurable set s⊆Bs\subseteq Bs⊆B and every measurable set t⊆Ct\subseteq Ct⊆C,

Eμ[1{Y∈s, Z∈t}∣X∗ΣA](ω)=Eμ[1{Y∈s}∣X∗ΣA](ω) Eμ[1{Z∈t}∣X∗ΣA](ω)\mathbb E_\mu[\mathbf 1_{\{Y\in s,\ Z\in t\}}\mid X^*\Sigma_A](\omega) = \mathbb E_\mu[\mathbf 1_{\{Y\in s\}}\mid X^*\Sigma_A](\omega)\, \mathbb E_\mu[\mathbf 1_{\{Z\in t\}}\mid X^*\Sigma_A](\omega)Eμ​[1{Y∈s, Z∈t}​∣X∗ΣA​](ω)=Eμ​[1{Y∈s}​∣X∗ΣA​](ω)Eμ​[1{Z∈t}​∣X∗ΣA​](ω)

for μ\muμ-almost every ω\omegaω. Here X∗ΣAX^*\Sigma_AX∗ΣA​ is the measurable structure pulled back from AAA along XXX, each indicator takes values 000 and 111, and each conditional expectation uses the library’s total conditional-expectation operation. The exceptional null set may depend on sss and ttt. No measurability assumptions on X,Y,ZX,Y,ZX,Y,Z, probability assumption on μ\muμ, or integrability assumptions are imposed.

QAlgorithms.Papers.Independent.Intake100.P51.conditionalEvent

For arbitrary types Ω\OmegaΩ and AAA, each equipped with a measurable-space structure, a measure μ\muμ on Ω\OmegaΩ, any function X:Ω→AX:\Omega\to AX:Ω→A, and any set s⊆Ωs\subseteq\Omegas⊆Ω, this defines a real-valued function on Ω\OmegaΩ by

ω⟼Eμ[1s∣X∗ΣA](ω),\omega\longmapsto \mathbb E_\mu[\mathbf 1_s\mid X^*\Sigma_A](\omega),ω⟼Eμ​[1s​∣X∗ΣA​](ω),

where 1s\mathbf 1_s1s​ is 111 on sss and 000 elsewhere, and X∗ΣAX^*\Sigma_AX∗ΣA​ is the pullback measurable structure consisting of preimages under XXX of measurable subsets of AAA. The conditional expectation here is the library’s total conditional-expectation operation. There are no assumptions that XXX or sss is measurable, that this pullback structure is contained in the given measurable structure on Ω\OmegaΩ, that 1s\mathbf 1_s1s​ is integrable, or that μ\muμ is a probability measure.

QAlgorithms.Papers.Independent.Intake100.P51.gaussianInformationDifference

For any real numbers B,N1,N2B,N_1,N_2B,N1​,N2​ and any measure ρ\rhoρ on R\mathbb RR, let

μ=ρ⊗(N(0,max⁡{N1B,0})⊗N(0,max⁡{N2B,0})),\mu=\rho\otimes \left( \mathcal N(0,\max\{N_1B,0\}) \otimes \mathcal N(0,\max\{N_2B,0\}) \right),μ=ρ⊗(N(0,max{N1​B,0})⊗N(0,max{N2​B,0})),

and write x,u,vx,u,vx,u,v for the three coordinate functions on its underlying space R×(R×R)\mathbb R\times(\mathbb R\times\mathbb R)R×(R×R). This defines the real number

real⁡ ⁣(D ⁣(Lμ(x,x+u) ∥ Lμ(x)⊗Lμ(x+u)))−real⁡ ⁣(D ⁣(Lμ(x,x+u+v) ∥ Lμ(x)⊗Lμ(x+u+v))),\operatorname{real}\!\left( D\!\left(\mathcal L_\mu(x,x+u) \,\middle\|\, \mathcal L_\mu(x)\otimes\mathcal L_\mu(x+u)\right) \right) - \operatorname{real}\!\left( D\!\left(\mathcal L_\mu(x,x+u+v) \,\middle\|\, \mathcal L_\mu(x)\otimes\mathcal L_\mu(x+u+v)\right) \right),real(D(Lμ​(x,x+u)∥Lμ​(x)⊗Lμ​(x+u)))−real(D(Lμ​(x,x+u+v)∥Lμ​(x)⊗Lμ​(x+u+v))),

where Lμ\mathcal L_\muLμ​ denotes pushforward measure, DDD is Kullback–Leibler divergence, and real⁡\operatorname{real}real 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 ρ\rhoρ, 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 B,N1,N2B,N_1,N_2B,N1​,N2​ and any measure ρ\rhoρ on R\mathbb RR, this defines the measure

ρ⊗(N(0,max⁡{N1B,0})⊗N(0,max⁡{N2B,0}))\rho\otimes \left( \mathcal N(0,\max\{N_1B,0\}) \otimes \mathcal N(0,\max\{N_2B,0\}) \right)ρ⊗(N(0,max{N1​B,0})⊗N(0,max{N2​B,0}))

on R×(R×R)\mathbb R\times(\mathbb R\times\mathbb R)R×(R×R), where the second argument of each Gaussian is its variance. No sign assumptions are imposed on the parameters, and ρ\rhoρ need not be a probability measure. A nonpositive product NiBN_iBNi​B gives variance zero, so the corresponding Gaussian is the point mass at zero.

QAlgorithms.Papers.Independent.Intake100.P51.gaussianSecrecyValue

For arbitrary real numbers B,P,N1,N2B,P,N_1,N_2B,P,N1​,N2​, this defines 2Bsup⁡S2B\sup S2BsupS, where S⊆RS\subseteq\mathbb RS⊆R consists of all real numbers of the form

real⁡ ⁣(D ⁣(Lμρ(x,x+u) ∥ Lμρ(x)⊗Lμρ(x+u)))−real⁡ ⁣(D ⁣(Lμρ(x,x+u+v) ∥ Lμρ(x)⊗Lμρ(x+u+v)))\operatorname{real}\!\left( D\!\left(\mathcal L_{\mu_\rho}(x,x+u) \,\middle\|\, \mathcal L_{\mu_\rho}(x)\otimes\mathcal L_{\mu_\rho}(x+u)\right) \right) - \operatorname{real}\!\left( D\!\left(\mathcal L_{\mu_\rho}(x,x+u+v) \,\middle\|\, \mathcal L_{\mu_\rho}(x)\otimes\mathcal L_{\mu_\rho}(x+u+v)\right) \right)real(D(Lμρ​​(x,x+u)​Lμρ​​(x)⊗Lμρ​​(x+u)))−real(D(Lμρ​​(x,x+u+v)​Lμρ​​(x)⊗Lμρ​​(x+u+v)))

as ρ\rhoρ ranges over probability measures on R\mathbb RR for which x↦x2x\mapsto x^2x↦x2 is integrable and ∫Rx2 dρ(x)≤P\int_{\mathbb R}x^2\,d\rho(x)\le P∫R​x2dρ(x)≤P. Here

μρ=ρ⊗(N(0,max⁡{N1B,0})⊗N(0,max⁡{N2B,0})),\mu_\rho=\rho\otimes \left( \mathcal N(0,\max\{N_1B,0\}) \otimes \mathcal N(0,\max\{N_2B,0\}) \right),μρ​=ρ⊗(N(0,max{N1​B,0})⊗N(0,max{N2​B,0})),

x,u,vx,u,vx,u,v are its coordinate functions, Lμρ\mathcal L_{\mu_\rho}Lμρ​​ denotes pushforward measure, DDD is Kullback–Leibler divergence, and real⁡\operatorname{real}real converts finite divergence values to their real values and infinite values to zero. The constraint concerns the second moment, without any requirement that ρ\rhoρ have mean zero. The supremum is the library’s real-valued supremum, which is zero when SSS is empty or unbounded above; in particular, P<0P<0P<0 makes SSS empty. No signs are assumed for B,N1,N2B,N_1,N_2B,N1​,N2​, nonpositive variance products are truncated to zero, and B=0B=0B=0 makes the defined value zero.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me