Exact Lean source
BosonicStochasticOrder
formalization/Cloning/BosonicStochasticOrder.lean
Source hash: b772937a0f0dfba3459001e3883004cc65e557d2503fb64839ed6106365b1680
Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.
The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.
Declarations in this module
1import Cloning.BosonicNumberLaw
2import Mathlib.Data.Nat.Choose.Sum
3import Mathlib.Analysis.Normed.Ring.InfiniteSum
4
5/-!
6# Stochastic domination of seeded bosonic number laws
7
8The hockey-stick binomial identity gives the exact convolution of a seeded
9number law with one further geometric variable. Nonnegative decreasing tests
10then have decreasing expectations with the seed. Such tests are automatically
11bounded by their value at zero, which also proves all required summability.
12-/
13
14noncomputable section
15open scoped BigOperators Topology
16namespace Cloning.BosonicStochasticOrder
17
18open Cloning BosonicNumberLaw
19set_option backward.isDefEq.respectTransparency false
20set_option maxHeartbeats 600000
21
22/-- One more seed quantum adds an independent geometric number variable.
23This is an exact finite coefficient identity, not a distribution hypothesis. -/
24theorem seededLaw_succ_convolution (r : ℝ) (l k : ℕ) :
25 seededLaw r (l + 1) k =
26 ∑ t ∈ Finset.range (k + 1), seededLaw r l t * Thermal.geometric r (k - t) := by
27 have hterm (t : ℕ) (ht : t ∈ Finset.range (k + 1)) :
28 seededLaw r l t * Thermal.geometric r (k - t) =
29 ((t + l).choose l : ℝ) * ((1 - r) ^ (l + 1 + 1) * r ^ k) := by
30 have htk : t ≤ k := Nat.lt_succ_iff.mp (Finset.mem_range.mp ht)
31 have hp : r ^ t * r ^ (k - t) = r ^ k := by
32 rw [← pow_add, Nat.add_sub_of_le htk]
33 unfold seededLaw Thermal.geometric
34 rw [Nat.add_comm l t, pow_succ (1 - r) (l + 1)]
35 calc
36 _ = ((t + l).choose l : ℝ) * ((1 - r) ^ (l + 1) * (1 - r)) *
37 (r ^ t * r ^ (k - t)) := by ring
38 _ = _ := by rw [hp]; ring
39 rw [Finset.sum_congr rfl hterm, ← Finset.sum_mul, ← Nat.cast_sum,
40 Nat.sum_range_add_choose]
41 unfold seededLaw
42 rw [show l + 1 + k = k + l + 1 by omega]
43 ring
44
45/-- Decreasing nonnegative tests are summable against every seeded law. -/
46theorem seededLaw_weighted_summable {r : ℝ} (hr0 : 0 ≤ r) (hr1 : r < 1)
47 {w : ℕ → ℝ} (hw0 : ∀ k, 0 ≤ w k) (hw : Antitone w) (l : ℕ) :
48 Summable (fun k ↦ seededLaw r l k * w k) := by
49 apply ((seededLaw_hasSum hr0 hr1 l).summable.mul_right (w 0)).of_norm_bounded
50 intro k
51 rw [Real.norm_eq_abs, abs_of_nonneg (mul_nonneg (seededLaw_nonneg hr0 hr1 l k) (hw0 k))]
52 exact mul_le_mul_of_nonneg_left (hw (Nat.zero_le k)) (seededLaw_nonneg hr0 hr1 l k)
53
54/-- Adding a geometric summand decreases the expectation of every decreasing
55nonnegative test, with all infinite sums justified by absolute convergence. -/
56theorem seededLaw_succ_antitone_moment_le {r : ℝ} (hr0 : 0 ≤ r) (hr1 : r < 1)
57 {w : ℕ → ℝ} (hw0 : ∀ k, 0 ≤ w k) (hw : Antitone w) (l : ℕ) :
58 (∑' k, seededLaw r (l + 1) k * w k) ≤ ∑' k, seededLaw r l k * w k := by
59 have hs := seededLaw_weighted_summable hr0 hr1 hw0 hw l
60 have hg := Thermal.geometric_hasSum hr0 hr1
61 have hsN : Summable (fun k ↦ ‖seededLaw r l k * w k‖) := by
62 simpa only [Real.norm_eq_abs,
63 abs_of_nonneg (mul_nonneg (seededLaw_nonneg hr0 hr1 l _) (hw0 _))] using hs
64 have hgN : Summable (fun k ↦ ‖Thermal.geometric r k‖) := by
65 simpa only [Real.norm_eq_abs, abs_of_nonneg (Thermal.geometric_nonneg hr0 hr1.le _)]
66 using hg.summable
67 have hc := hasSum_sum_range_mul_of_summable_norm hsN hgN
68 calc
69 _ ≤ ∑' k, ∑ t ∈ Finset.range (k + 1),
70 (seededLaw r l t * w t) * Thermal.geometric r (k - t) := by
71 apply (seededLaw_weighted_summable hr0 hr1 hw0 hw (l + 1)).tsum_le_tsum _ hc.summable
72 intro k
73 rw [seededLaw_succ_convolution, Finset.sum_mul]
74 apply Finset.sum_le_sum
75 intro t ht
76 have htk : t ≤ k := Nat.lt_succ_iff.mp (Finset.mem_range.mp ht)
77 calc
78 seededLaw r l t * Thermal.geometric r (k - t) * w k ≤
79 seededLaw r l t * Thermal.geometric r (k - t) * w t :=
80 mul_le_mul_of_nonneg_left (hw htk)
81 (mul_nonneg (seededLaw_nonneg hr0 hr1 l t) (Thermal.geometric_nonneg hr0 hr1.le _))
82 _ = _ := by ring
83 _ = _ := by rw [hc.tsum_eq, hg.tsum_eq, mul_one]
84
85/-- Full one-mode least-noise moment bound for every bounded nonnegative
86nonincreasing test. Boundedness follows from nonincreasingness on `ℕ`. -/
87theorem seededLaw_antitone_moment_le {r : ℝ} (hr0 : 0 ≤ r) (hr1 : r < 1)
88 {w : ℕ → ℝ} (hw0 : ∀ k, 0 ≤ w k) (hw : Antitone w) (l : ℕ) :
89 (∑' k, seededLaw r l k * w k) ≤ ∑' k, Thermal.geometric r k * w k := by
90 induction l with
91 | zero => simp only [seededLaw_zero, le_refl]
92 | succ l ih => exact (seededLaw_succ_antitone_moment_le hr0 hr1 hw0 hw l).trans ih
93
94end Cloning.BosonicStochasticOrder