Download data/lean/OAI/Dynamics/EntropyCounterexample/CylinderModels.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.39 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Dynamics/EntropyCounterexample/CylinderModels.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Dynamics/EntropyCounterexample/CylinderModels.lean
-
curl -L -o CylinderModels.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Dynamics/EntropyCounterexample/CylinderModels.lean
6.39 kB
| import OAI.Dynamics.EntropyCounterexample.CylinderAttraction | |
| namespace OAI | |
| noncomputable section | |
| namespace Problem340 | |
| section Models | |
| variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] | |
| def clockMainCylinderHomeomorph (q : β) (xβ : X) (yβ : Y) : | |
| β₯(clockMainCylinder xβ yβ (0 : Fin (q + 1))) ββ (Fin q β Y) where | |
| toFun p k := p.1.2 k.succ | |
| invFun v := β¨(xβ, Fin.cases yβ v), rfl, rflβ© | |
| left_inv p := by | |
| apply Subtype.ext | |
| apply Prod.ext | |
| Β· exact p.2.1.symm | |
| Β· funext k | |
| refine Fin.cases ?_ (fun _ => rfl) k | |
| exact p.2.2.symm | |
| right_inv v := rfl | |
| continuous_toFun := by | |
| apply continuous_pi | |
| intro k | |
| exact (continuous_apply k.succ).comp (continuous_snd.comp continuous_subtype_val) | |
| continuous_invFun := by | |
| apply Continuous.subtype_mk | |
| apply Continuous.prodMk continuous_const | |
| apply continuous_pi | |
| intro k | |
| refine Fin.cases ?_ (fun j => ?_) k | |
| Β· exact continuous_const | |
| Β· exact continuous_apply j | |
| def sphereVectorCylinderHomeomorph {ΞΉ : Type*} (vβ : ΞΉ β Y) : | |
| β₯(sphereVectorCylinder (X := X) vβ) ββ X where | |
| toFun p := p.1.1 | |
| invFun x := β¨(x, vβ), rflβ© | |
| left_inv p := by | |
| apply Subtype.ext | |
| exact Prod.ext rfl p.2.symm | |
| right_inv x := rfl | |
| continuous_toFun := continuous_fst.comp continuous_subtype_val | |
| continuous_invFun := by | |
| exact (continuous_id.prodMk continuous_const).subtype_mk _ | |
| theorem clockMainCylinder_semiconj (q : β) (xβ : X) (yβ : Y) | |
| (F : X Γ (Fin (q + 1) β Y) β X Γ (Fin (q + 1) β Y)) (R : Y β Y) | |
| (hF : Set.MapsTo F (clockMainCylinder xβ yβ 0) (clockMainCylinder xβ yβ 0)) | |
| (hR : β p β clockMainCylinder xβ yβ (0 : Fin (q + 1)), | |
| β k : Fin q, (F p).2 k.succ = R (p.2 k.succ)) : | |
| Function.Semiconj (clockMainCylinderHomeomorph q xβ yβ) | |
| (hF.restrict F _ _) (fun v k => R (v k)) := by | |
| intro p | |
| funext k | |
| exact hR p.1 p.2 k | |
| theorem sphereVectorCylinder_semiconj {ΞΉ : Type*} (vβ : ΞΉ β Y) | |
| (F : X Γ (ΞΉ β Y) β X Γ (ΞΉ β Y)) (g : X β X) | |
| (hF : Set.MapsTo F (sphereVectorCylinder vβ) (sphereVectorCylinder vβ)) | |
| (hg : β p β sphereVectorCylinder vβ, (F p).1 = g p.1) : | |
| Function.Semiconj (sphereVectorCylinderHomeomorph (X := X) vβ) | |
| (hF.restrict F _ _) g := by | |
| intro p | |
| exact hg p.1 p.2 | |
| end Models | |
| end Problem340 | |
| namespace Problem340 | |
| theorem coverEntropy_univ_eq_of_compact_homeomorph | |
| {X Y : Type*} [UniformSpace X] [UniformSpace Y] | |
| [CompactSpace X] [CompactSpace Y] | |
| (e : X ββ Y) (F : X β X) (G : Y β Y) | |
| (h : Function.Semiconj e F G) : | |
| Dynamics.coverEntropy F Set.univ = Dynamics.coverEntropy G Set.univ := by | |
| have he : e '' Set.univ = Set.univ := Set.image_univ_of_surjective e.surjective | |
| have hei : e.symm '' Set.univ = Set.univ := Set.image_univ_of_surjective e.symm.surjective | |
| have hi : Function.Semiconj e.symm G F := by | |
| intro y | |
| apply e.injective | |
| simpa using (h (e.symm y)).symm | |
| apply le_antisymm | |
| Β· simpa only [hei] using | |
| Dynamics.coverEntropy_image_le_of_uniformContinuous hi | |
| (CompactSpace.uniformContinuous_of_continuous e.symm.continuous) Set.univ | |
| Β· simpa only [he] using | |
| Dynamics.coverEntropy_image_le_of_uniformContinuous h | |
| (CompactSpace.uniformContinuous_of_continuous e.continuous) Set.univ | |
| theorem coverEntropy_clockMainCylinder | |
| {X Y : Type*} [PseudoMetricSpace X] [PseudoMetricSpace Y] | |
| [T2Space X] [T2Space Y] [CompactSpace X] [CompactSpace Y] | |
| (q : β) (xβ : X) (yβ : Y) | |
| (F : X Γ (Fin (q + 1) β Y) β X Γ (Fin (q + 1) β Y)) (R : Y β Y) | |
| (hF : Set.MapsTo F (clockMainCylinder xβ yβ 0) (clockMainCylinder xβ yβ 0)) | |
| (hR : β p β clockMainCylinder xβ yβ (0 : Fin (q + 1)), | |
| β k : Fin q, (F p).2 k.succ = R (p.2 k.succ)) : | |
| Dynamics.coverEntropy F (clockMainCylinder xβ yβ 0) = | |
| Dynamics.coverEntropy (fun v : Fin q β Y => fun k => R (v k)) Set.univ := by | |
| let : CompactSpace β₯(clockMainCylinder xβ yβ (0 : Fin (q + 1))) := | |
| isCompact_iff_compactSpace.mp (isClosed_clockMainCylinder xβ yβ 0).isCompact | |
| rw [β Dynamics.coverEntropy_restrict hF] | |
| exact coverEntropy_univ_eq_of_compact_homeomorph | |
| (clockMainCylinderHomeomorph q xβ yβ) _ _ | |
| (clockMainCylinder_semiconj q xβ yβ F R hF hR) | |
| theorem coverEntropy_sphereVectorCylinder | |
| {X Y ΞΉ : Type*} [PseudoMetricSpace X] [PseudoMetricSpace Y] | |
| [T2Space X] [T2Space Y] [CompactSpace X] [CompactSpace Y] [Fintype ΞΉ] | |
| (vβ : ΞΉ β Y) (F : X Γ (ΞΉ β Y) β X Γ (ΞΉ β Y)) (g : X β X) | |
| (hF : Set.MapsTo F (sphereVectorCylinder vβ) (sphereVectorCylinder vβ)) | |
| (hg : β p β sphereVectorCylinder vβ, (F p).1 = g p.1) : | |
| Dynamics.coverEntropy F (sphereVectorCylinder vβ) = | |
| Dynamics.coverEntropy g Set.univ := by | |
| let : CompactSpace β₯(sphereVectorCylinder (X := X) vβ) := | |
| isCompact_iff_compactSpace.mp (isClosed_sphereVectorCylinder vβ).isCompact | |
| rw [β Dynamics.coverEntropy_restrict hF] | |
| exact coverEntropy_univ_eq_of_compact_homeomorph | |
| (sphereVectorCylinderHomeomorph (X := X) vβ) _ _ | |
| (sphereVectorCylinder_semiconj vβ F g hF hg) | |
| theorem coverEntropy_attractor_union_eq_zero | |
| {X Y : Type*} [PseudoMetricSpace X] [PseudoMetricSpace Y] | |
| [T2Space X] [T2Space Y] [CompactSpace X] [CompactSpace Y] | |
| (q : β) (xβ : X) (yβ : Y) (vβ : Fin (q + 1) β Y) | |
| (F : X Γ (Fin (q + 1) β Y) β X Γ (Fin (q + 1) β Y)) | |
| (R : Y β Y) (g : X β X) | |
| (hzero : Set.MapsTo F (clockMainCylinder xβ yβ 0) (clockMainCylinder xβ yβ 0)) | |
| (hinf : Set.MapsTo F (sphereVectorCylinder vβ) (sphereVectorCylinder vβ)) | |
| (hR : β p β clockMainCylinder xβ yβ (0 : Fin (q + 1)), | |
| β k : Fin q, (F p).2 k.succ = R (p.2 k.succ)) | |
| (hg : β p β sphereVectorCylinder vβ, (F p).1 = g p.1) | |
| (hREntropy : Dynamics.coverEntropy | |
| (fun v : Fin q β Y => fun k => R (v k)) Set.univ = 0) | |
| (hgEntropy : Dynamics.coverEntropy g Set.univ = 0) : | |
| Dynamics.coverEntropy F | |
| (clockMainCylinder xβ yβ 0 βͺ sphereVectorCylinder vβ) = 0 := by | |
| rw [Dynamics.coverEntropy_union, | |
| coverEntropy_clockMainCylinder q xβ yβ F R hzero hR, | |
| coverEntropy_sphereVectorCylinder vβ F g hinf hg, | |
| hREntropy, hgEntropy, max_self] | |
| end Problem340 | |
| end | |
| end OAI | |