Download data/lean/OAI/Dynamics/EntropyCounterexample/ClockLocalExtension.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 7.53 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Dynamics/EntropyCounterexample/ClockLocalExtension.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Dynamics/EntropyCounterexample/ClockLocalExtension.lean
-
curl -L -o ClockLocalExtension.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Dynamics/EntropyCounterexample/ClockLocalExtension.lean
7.53 kB
| import OAI.Dynamics.EntropyCounterexample.ClockCharts | |
| import OAI.Dynamics.EntropyCounterexample.C1Coordinates | |
| namespace OAI | |
| noncomputable section | |
| open scoped ContDiff | |
| namespace Problem340 | |
| def clockLocalLift (tβ : β) (x : ClockAmbient) : β := | |
| tβ + (100 / (2 * Real.pi)) * | |
| Complex.arg (complexClockLinearIsometry.symm x / | |
| Complex.exp ((2 * Real.pi / 100 * tβ : β) * Complex.I)) | |
| theorem clockHomeomorph_clockLocalLift (tβ : β) (x : StandardClock) : | |
| clockHomeomorph ((clockLocalLift tβ x.1 : β) : AddCircle (100 : β)) = x := by | |
| let c : Circle := circleClockHomeomorph.symm x | |
| let cβ : Circle := AddCircle.toCircle (tβ : AddCircle (100 : β)) | |
| have hc : (c : β) = complexClockLinearIsometry.symm x.1 := rfl | |
| have hcβ : (cβ : β) = Complex.exp ((2 * Real.pi / 100 * tβ : β) * Complex.I) := rfl | |
| have hlift : clockLocalLift tβ x.1 = | |
| tβ + (100 / (2 * Real.pi)) * Complex.arg ((c / cβ : Circle) : β) := by | |
| simp only [clockLocalLift, Circle.coe_div, hc, hcβ] | |
| have hangle : (2 * Real.pi / 100) * | |
| (tβ + (100 / (2 * Real.pi)) * Complex.arg ((c / cβ : Circle) : β)) = | |
| (2 * Real.pi / 100) * tβ + Complex.arg ((c / cβ : Circle) : β) := by | |
| field_simp | |
| rw [clockHomeomorph_apply, hlift, AddCircle.toCircle_apply_mk, hangle, Circle.exp_add, | |
| Circle.exp_arg] | |
| change circleClockHomeomorph (cβ * (c / cβ)) = x | |
| simp [c, div_eq_mul_inv, mul_comm] | |
| theorem contDiffOn_arg_slitPlane {n : ββΟ} : | |
| ContDiffOn β n Complex.arg Complex.slitPlane := by | |
| intro z hz | |
| have hlog : ContDiffAt β n Complex.log z := | |
| (Complex.contDiffAt_log hz).restrict_scalars β | |
| have h := Complex.imCLM.contDiff.contDiffAt.comp z hlog | |
| have heq : (Complex.imCLM β Complex.log) = Complex.arg := by | |
| funext w | |
| exact Complex.log_im w | |
| rw [heq] at h | |
| exact h.contDiffWithinAt | |
| theorem clockLocalLift_extension (tβ : β) {n : ββΟ} : | |
| β U : Set ClockAmbient, IsOpen U β§ clockParam tβ β U β§ | |
| ContDiffOn β n (clockLocalLift tβ) U := by | |
| let D : ClockAmbient β β := fun x => complexClockLinearIsometry.symm x / | |
| Complex.exp ((2 * Real.pi / 100 * tβ : β) * Complex.I) | |
| have hD : ContDiff β n D := | |
| complexClockLinearIsometry.symm.toContinuousLinearEquiv.contDiff.div_const _ | |
| have hbase : D (clockParam tβ) = 1 := by | |
| simp [D, clockParam, Complex.exp_ne_zero] | |
| refine β¨D β»ΒΉ' Complex.slitPlane, Complex.isOpen_slitPlane.preimage hD.continuous, | |
| ?_, ?_β© | |
| Β· change D (clockParam tβ) β Complex.slitPlane | |
| rw [hbase] | |
| exact Complex.one_mem_slitPlane | |
| Β· exact contDiffOn_const.add (contDiffOn_const.mul | |
| (contDiffOn_arg_slitPlane.comp hD.contDiffOn fun _ hx => hx)) | |
| theorem hasLocalC1Extension_of_clock_lift | |
| {F : Type*} [NormedAddCommGroup F] [NormedSpace β F] | |
| (f : StandardClock β F) | |
| (hf : ContDiff β 1 (fun t : β => f (clockHomeomorph (t : AddCircle (100 : β))))) : | |
| HasLocalC1Extension (fun x : StandardClock => x.1) f := by | |
| intro x | |
| obtain β¨t, rflβ© := clockHomeomorph.surjective x | |
| induction t using QuotientAddGroup.induction_on with | |
| | H t => | |
| obtain β¨U, hU, htU, hlocalβ© := clockLocalLift_extension t (n := 1) | |
| refine β¨U, hU, ?_, | |
| fun y => f (clockHomeomorph ((clockLocalLift t y : β) : AddCircle (100 : β))), | |
| hf.comp_contDiffOn hlocal, ?_β© | |
| Β· simpa only [clockHomeomorph_coe] using htU | |
| Β· intro y _ | |
| change f y = f (clockHomeomorph ((clockLocalLift t y.1 : β) : AddCircle (100 : β))) | |
| rw [clockHomeomorph_clockLocalLift] | |
| theorem hasLocalC1Extension_of_clock_lift_with_parameters | |
| {E F : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| [NormedAddCommGroup F] [NormedSpace β F] | |
| (f : StandardClock Γ E β F) | |
| (hf : ContDiff β 1 (fun p : β Γ E => | |
| f (clockHomeomorph (p.1 : AddCircle (100 : β)), p.2))) : | |
| HasLocalC1Extension (fun x : StandardClock Γ E => (x.1.1, x.2)) f := by | |
| rintro β¨x, aβ© | |
| obtain β¨t, rflβ© := clockHomeomorph.surjective x | |
| induction t using QuotientAddGroup.induction_on with | |
| | H t => | |
| obtain β¨U, hU, htU, hlocalβ© := clockLocalLift_extension t (n := 1) | |
| refine β¨U ΓΛ’ Set.univ, hU.prod isOpen_univ, | |
| β¨?_, Set.mem_univ aβ©, | |
| fun p : ClockAmbient Γ E => | |
| f (clockHomeomorph ((clockLocalLift t p.1 : β) : AddCircle (100 : β)), p.2), | |
| ?_, ?_β© | |
| Β· simpa only [clockHomeomorph_coe] using htU | |
| Β· have hfst : ContDiffOn β 1 (fun p : ClockAmbient Γ E => clockLocalLift t p.1) | |
| (U ΓΛ’ Set.univ) := | |
| hlocal.comp contDiffOn_fst (fun _ hx => hx.1) | |
| have hpair : ContDiffOn β 1 | |
| (fun p : ClockAmbient Γ E => (clockLocalLift t p.1, p.2)) | |
| (U ΓΛ’ Set.univ) := hfst.prodMk contDiffOn_snd | |
| convert hf.comp_contDiffOn hpair using 1 | |
| rfl | |
| Β· rintro β¨y, bβ© _ | |
| change f (y, b) = | |
| f (clockHomeomorph ((clockLocalLift t y.1 : β) : AddCircle (100 : β)), b) | |
| rw [clockHomeomorph_clockLocalLift] | |
| def clockFunction {F : Type*} (b : β β F) (hb : Function.Periodic b 100) : | |
| StandardClock β F := hb.lift β clockHomeomorph.symm | |
| @[simp] | |
| theorem clockFunction_param {F : Type*} (b : β β F) | |
| (hb : Function.Periodic b 100) (t : β) : | |
| clockFunction b hb (clockHomeomorph (t : AddCircle (100 : β))) = b t := by | |
| change hb.lift (clockHomeomorph.symm (clockHomeomorph (t : AddCircle (100 : β)))) = b t | |
| rw [clockHomeomorph.symm_apply_apply] | |
| rfl | |
| theorem hasLocalC1Extension_clockFunction | |
| {F : Type*} [NormedAddCommGroup F] [NormedSpace β F] | |
| (b : β β F) (hb : Function.Periodic b 100) (hcont : ContDiff β 1 b) : | |
| HasLocalC1Extension (fun x : StandardClock => x.1) (clockFunction b hb) := by | |
| apply hasLocalC1Extension_of_clock_lift | |
| simpa only [clockFunction_param] using hcont | |
| theorem hasLocalC1Extension_of_clock_lift_on | |
| {E F : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| [NormedAddCommGroup F] [NormedSpace β F] | |
| {V : Set E} (hV : IsOpen V) (f : StandardClock Γ E β F) | |
| (hf : ContDiffOn β 1 (fun p : β Γ E => | |
| f (clockHomeomorph (p.1 : AddCircle (100 : β)), p.2)) (Set.univ ΓΛ’ V)) : | |
| HasLocalC1Extension (fun x : StandardClock Γ V => (x.1.1, x.2.1)) | |
| (fun x => f (x.1, x.2.1)) := by | |
| rintro β¨x, aβ© | |
| obtain β¨t, rflβ© := clockHomeomorph.surjective x | |
| induction t using QuotientAddGroup.induction_on with | |
| | H t => | |
| obtain β¨U, hU, htU, hlocalβ© := clockLocalLift_extension t (n := 1) | |
| refine β¨U ΓΛ’ V, hU.prod hV, β¨?_, a.2β©, | |
| fun p : ClockAmbient Γ E => | |
| f (clockHomeomorph ((clockLocalLift t p.1 : β) : AddCircle (100 : β)), p.2), | |
| ?_, ?_β© | |
| Β· simpa only [clockHomeomorph_coe] using htU | |
| Β· have hfst : ContDiffOn β 1 (fun p : ClockAmbient Γ E => clockLocalLift t p.1) | |
| (U ΓΛ’ V) := hlocal.comp contDiffOn_fst (fun _ hx => hx.1) | |
| have hpair : ContDiffOn β 1 | |
| (fun p : ClockAmbient Γ E => (clockLocalLift t p.1, p.2)) (U ΓΛ’ V) := | |
| hfst.prodMk contDiffOn_snd | |
| have hmaps : Set.MapsTo (fun p : ClockAmbient Γ E => (clockLocalLift t p.1, p.2)) | |
| (U ΓΛ’ V) (Set.univ ΓΛ’ V) := fun _ hp => β¨Set.mem_univ _, hp.2β© | |
| convert hf.comp hpair hmaps using 1 | |
| rfl | |
| Β· rintro β¨y, bβ© _ | |
| change f (y, b.1) = | |
| f (clockHomeomorph ((clockLocalLift t y.1 : β) : AddCircle (100 : β)), b.1) | |
| rw [clockHomeomorph_clockLocalLift] | |
| end Problem340 | |
| end | |
| end OAI | |