File size: 3,843 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | 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
|