Download lean/OAI/GroupTheory/PolycyclicRecognition/Analysis/BackwardSwitchProbability.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
theoremsurvivingSwitchProbability_le_one
(σ : ℕ→MeasureG) [∀ j, IsProbabilityMeasure (σ j)]
(S : ℕ→SetG) (n k : ℕ) (x : G) :
survivingSwitchProbability σ S n k x ≤1:=by
proof · 13
lines
induction k generalizing n x with
| zero => rfl
| succ k ih =>calc
_ ≤∫⁻ _ : G, ∫⁻ _ : G, (1 : ℝ≥0∞) ∂σ n ∂σ n :=by
apply lintegral_mono
intro s₁
apply lintegral_mono
intro s₂
by_cases hy : x * s₁ * s₂⁻¹∈S (n + 1)
· simpa only [indicator_of_mem hy] using ih (n + 1) (x * s₁ * s₂⁻¹)
· simp only [indicator_of_notMem hy, zero_le]
_ = 1:=by simp
theoremswitchThresholdProduct_le_survival
(σ : ℕ→MeasureG) (S : ℕ→SetG) (τ : ℕ→ℝ≥0)
(n k : ℕ)
(hreturn : ∀ j, j < n + k →∀ x ∈S j,
(τ j : ℝ≥0∞) ≤ twoSampleReturn (σ j) (S (j + 1)) x)
{x : G} (hx : x ∈S n) :
switchThresholdProduct τ n k ≤ survivingSwitchProbability σ S n k x :=by
proof · 32
lines
induction k generalizing n x with
| zero => rfl
| succ k ih =>letP:= switchThresholdProduct τ (n + 1) k
havehP : P≠∞:= switchThresholdProduct_ne_top τ (n + 1) k
have hnext (y : G) (hy : y ∈S (n + 1)) :
P≤ survivingSwitchProbability σ S (n + 1) k y :=by
apply ih (n + 1) (fun j hj => hreturn j (by omega)) hy
havehbound : P * twoSampleReturn (σ n) (S (n + 1)) x ≤
survivingSwitchProbability σ S n (k + 1) x :=bycalc
_ = ∫⁻ s₁, ∫⁻ s₂,
P * (S (n + 1)).indicator (fun _ => (1 : ℝ≥0∞)) (x * s₁ * s₂⁻¹)
∂σ n ∂σ n :=by
rw [twoSampleReturn, ← lintegral_const_mul' P _ hP]
apply lintegral_congr
intro s₁
exact (lintegral_const_mul' P _ hP).symm
_ ≤ _ :=by
apply lintegral_mono
intro s₁
apply lintegral_mono
intro s₂
by_cases hy : x * s₁ * s₂⁻¹∈S (n + 1)
· simpa only [indicator_of_mem hy, mul_one] using hnext _ hy
· simp only [indicator_of_notMem hy, mul_zero, le_refl]
change (τ n : ℝ≥0∞) * P≤ _
calc
_ = P * (τ n : ℝ≥0∞) := mul_comm _ _
_ ≤P * twoSampleReturn (σ n) (S (n + 1)) x :=
mul_le_mul' le_rfl (hreturn n (by omega) x hx)
_ ≤ _ := hbound