cfahlgren1/math / lean /ComparatorChallenges /StandardMapEntropy.lean
cfahlgren1's picture
download
raw
1.79 kB
import Mathlib
namespace OAI
open MeasureTheory Set
open scoped ENNReal BigOperators
namespace StandardMapEntropy
abbrev Circle := AddCircle (1 : ℝ)
abbrev Torus := Circle × Circle
lemma sine_periodic : Function.Periodic (fun x : ℝ => Real.sin (2 * Real.pi * x)) 1 := by
intro x
dsimp only
rw [show 2 * Real.pi * (x + 1) = 2 * Real.pi * x + 2 * Real.pi by ring]
exact Real.sin_add_two_pi _
noncomputable def sine (x : Circle) : ℝ := sine_periodic.lift x
noncomputable def standardMap (k : ℝ) (z : Torus) : Torus :=
(z.1 + z.2 + (k * sine z.1 : ℝ), z.2 + (k * sine z.1 : ℝ))
noncomputable def area : Measure Torus :=
(volume : Measure Circle).prod (volume : Measure Circle)
def FinitePartition (r : ℕ) := { p : Torus → Fin (r + 1) // Measurable p }
def blockAtom {r : ℕ} (f : Torus → Torus) (p : FinitePartition r)
(n : ℕ) (w : Fin n → Fin (r + 1)) : Set Torus :=
{ z | ∀ i : Fin n, p.val (f^[i.val] z) = w i }
noncomputable def blockEntropy {r : ℕ} (μ : Measure Torus) (f : Torus → Torus)
(p : FinitePartition r) (n : ℕ) : ℝ :=
- ∑ w : Fin n → Fin (r + 1),
(μ (blockAtom f p n w)).toReal * Real.log (μ (blockAtom f p n w)).toReal
noncomputable def partitionEntropy {r : ℕ} (μ : Measure Torus) (f : Torus → Torus)
(p : FinitePartition r) : ℝ≥0∞ :=
⨅ n : ℕ, ENNReal.ofReal (blockEntropy μ f p (n + 1) / (n + 1 : ℝ))
noncomputable def metricEntropy (μ : Measure Torus) (f : Torus → Torus) : ℝ≥0∞ :=
⨆ r : ℕ, ⨆ p : FinitePartition r, partitionEntropy μ f p
def MainObligation : Prop :=
∃ k₀ : ℝ, 0 < k₀ ∧ ∀ k : ℝ, k₀ ≤ k → 0 < metricEntropy area (standardMap k)
theorem main_entropy : MainObligation := by
sorry
end StandardMapEntropy
end OAI

Xet Storage Details

Size:
1.79 kB
·
Xet hash:
7786f525b827209bbb55d25dc8b5779df6896a03fe04fe710e5fdd28fd98b6a6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.