Download data/lean/OAI/Dynamics/EntropyCounterexample/ClockProfiles.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.84 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Dynamics/EntropyCounterexample/ClockProfiles.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Dynamics/EntropyCounterexample/ClockProfiles.lean
-
curl -L -o ClockProfiles.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Dynamics/EntropyCounterexample/ClockProfiles.lean
3.84 kB
| import OAI.Dynamics.EntropyCounterexample.GainProfile | |
| import OAI.Dynamics.EntropyCounterexample.ClockPeriodization | |
| namespace OAI | |
| noncomputable section | |
| namespace Problem340 | |
| def periodicGain (L : β) (t : β) : β := | |
| ClockPeriodization.periodize 100 (fun x : β Γ β => gainProfile L x.1) (t, 0) | |
| lemma gainProfile_nonzero_mem {L t : β} (h : gainProfile L t β 0) : | |
| t β Set.Ioo (6 : β) 96 := by | |
| by_contra ht | |
| exact h (gainProfile_zero_outside ht) | |
| lemma periodicGain_contDiff (L : β) : | |
| ContDiff β (β€ : ββ) (periodicGain L) := by | |
| apply (ClockPeriodization.contDiff_periodize (P := 100) (a := 6) (b := 96) | |
| (by norm_num) ((gainProfile_contDiff L).comp contDiff_fst) ?_).comp | |
| (contDiff_id.prodMk contDiff_const) | |
| intro x hx | |
| exact β¨(gainProfile_nonzero_mem hx).1.le, (gainProfile_nonzero_mem hx).2.leβ© | |
| lemma periodicGain_periodic (L : β) : Function.Periodic (periodicGain L) 100 := by | |
| intro t | |
| exact ClockPeriodization.periodize_add_period 100 | |
| (fun x : β Γ β => gainProfile L x.1) t 0 | |
| lemma periodicGain_mem_Icc {L : β} (hL : 0 β€ L) (t : β) : | |
| periodicGain L t β Set.Icc (0 : β) L := by | |
| apply ClockPeriodization.periodize_mem_Icc (a := 6) (b := 96) | |
| (by norm_num) (by norm_num) hL | |
| Β· intro x hx | |
| exact gainProfile_nonzero_mem hx | |
| Β· intro x | |
| exact gainProfile_mem_Icc hL x.1 | |
| lemma periodicGain_eq {L t : β} (ht : t β Set.Icc (0 : β) 100) : | |
| periodicGain L t = gainProfile L t := by | |
| apply ClockPeriodization.periodize_eq_on_fundamental (by norm_num) ?_ ht (0 : β) | |
| intro x hx | |
| obtain β¨hx0, hx1β© := gainProfile_nonzero_mem hx | |
| constructor <;> linarith | |
| lemma periodicGain_eq_gain (L : β) {t : β} (ht : t β Set.Icc (7 : β) 90) : | |
| periodicGain L t = L := by | |
| rw [periodicGain_eq (by constructor <;> linarith [ht.1, ht.2])] | |
| exact gainProfile_eq_gain L ht | |
| lemma periodicGain_eq_zero (L : β) {t : β} (ht : t β Set.Icc (2 : β) 5) : | |
| periodicGain L t = 0 := by | |
| rw [periodicGain_eq (by constructor <;> linarith [ht.1, ht.2])] | |
| exact gainProfile_eq_zero L ht | |
| theorem exists_periodic_gain {L : β} (hL : 0 β€ L) : | |
| β a : β β β, ContDiff β (β€ : ββ) a β§ Function.Periodic a 100 β§ | |
| (β t, a t β Set.Icc (0 : β) L) β§ | |
| (β t β Set.Icc (2 : β) 5, a t = 0) β§ | |
| (β t β Set.Icc (7 : β) 90, a t = L) := | |
| β¨periodicGain L, periodicGain_contDiff L, periodicGain_periodic L, | |
| periodicGain_mem_Icc hL, fun _ ht => periodicGain_eq_zero L ht, | |
| fun _ ht => periodicGain_eq_gain L htβ© | |
| section CircleLift | |
| local instance : Fact ((0 : β) < 100) := β¨by norm_numβ© | |
| lemma gainProfile_liftIco_coe_eq_periodicGain (L t : β) : | |
| AddCircle.liftIco (100 : β) 0 (gainProfile L) (t : AddCircle (100 : β)) = | |
| periodicGain L t := by | |
| let r := AddCircle.equivIco (100 : β) 0 (t : AddCircle (100 : β)) | |
| have hr : (r : β) β Set.Icc (0 : β) 100 := by | |
| simpa only [zero_add] using Set.Ico_subset_Icc_self r.property | |
| have hrep : ((r : β) : AddCircle (100 : β)) = (t : AddCircle (100 : β)) := | |
| AddCircle.coe_equivIco | |
| have hp := periodicGain_periodic L | |
| calc | |
| AddCircle.liftIco (100 : β) 0 (gainProfile L) (t : AddCircle (100 : β)) = | |
| gainProfile L r := rfl | |
| _ = periodicGain L r := (periodicGain_eq hr).symm | |
| _ = hp.lift ((r : β) : AddCircle (100 : β)) := (hp.lift_coe _).symm | |
| _ = hp.lift (t : AddCircle (100 : β)) := congrArg hp.lift hrep | |
| _ = periodicGain L t := hp.lift_coe t | |
| lemma gainProfile_liftIco_coe_contDiff (L : β) : | |
| ContDiff β (β€ : ββ) (fun t : β => | |
| AddCircle.liftIco (100 : β) 0 (gainProfile L) (t : AddCircle (100 : β))) := by | |
| simpa only [gainProfile_liftIco_coe_eq_periodicGain] using periodicGain_contDiff L | |
| end CircleLift | |
| end Problem340 | |
| end | |
| end OAI | |