@@ -24,8 +24,10 @@ section RegularSpace
2424variable [RegularSpace β]
2525
2626theorem continuousOn_Icc_extendFrom_Ioo
27- (hab : a ≠ b) ( hf : ContinuousOn f (Ioo a b)) (ha : Tendsto f (𝓝[>] a) (𝓝 la))
27+ (hf : ContinuousOn f (Ioo a b)) (ha : Tendsto f (𝓝[>] a) (𝓝 la))
2828 (hb : Tendsto f (𝓝[<] b) (𝓝 lb)) : ContinuousOn (extendFrom (Ioo a b) f) (Icc a b) := by
29+ by_cases! hab : a = b
30+ · simp [hab]
2931 apply continuousOn_extendFrom
3032 · rw [closure_Ioo hab]
3133 · intro x x_in
@@ -35,20 +37,24 @@ theorem continuousOn_Icc_extendFrom_Ioo
3537 · exact ⟨f x, hf x h⟩
3638
3739theorem continuousOn_uIcc_extendFrom_uIoo
38- (hab : a ≠ b) ( hf : ContinuousOn f (uIoo a b))
40+ (hf : ContinuousOn f (uIoo a b))
3941 (ha : Tendsto f (𝓝[uIoo a b] a) (𝓝 la)) (hb : Tendsto f (𝓝[uIoo a b] b) (𝓝 lb)) :
4042 ContinuousOn (extendFrom (uIoo a b) f) (uIcc a b) := by
43+ by_cases! hab : a = b
44+ · simp [hab]
4145 obtain hab' | hba' := hab.lt_or_gt
4246 · simp only [hab', uIoo_of_lt, nhdsWithin_Ioo_eq_nhdsGT, nhdsWithin_Ioo_eq_nhdsLT,
4347 uIcc_of_lt] at ha hb hf ⊢
44- exact continuousOn_Icc_extendFrom_Ioo hab hf ha hb
48+ exact continuousOn_Icc_extendFrom_Ioo hf ha hb
4549 · simp only [hba', uIoo_of_gt, nhdsWithin_Ioo_eq_nhdsGT, nhdsWithin_Ioo_eq_nhdsLT,
4650 uIcc_of_gt] at ha hb hf ⊢
47- exact continuousOn_Icc_extendFrom_Ioo hab.symm hf hb ha
51+ exact continuousOn_Icc_extendFrom_Ioo hf hb ha
4852
4953theorem continuousOn_Ico_extendFrom_Ioo
50- (hab : a < b) ( hf : ContinuousOn f (Ioo a b)) (ha : Tendsto f (𝓝[>] a) (𝓝 la)) :
54+ (hf : ContinuousOn f (Ioo a b)) (ha : Tendsto f (𝓝[>] a) (𝓝 la)) :
5155 ContinuousOn (extendFrom (Ioo a b) f) (Ico a b) := by
56+ by_cases! hab : a ≥ b
57+ · simp [hab]
5258 apply continuousOn_extendFrom
5359 · rw [closure_Ioo hab.ne]
5460 exact Ico_subset_Icc_self
@@ -59,9 +65,10 @@ theorem continuousOn_Ico_extendFrom_Ioo
5965 · exact ⟨f x, hf x h⟩
6066
6167theorem continuousOn_Ioc_extendFrom_Ioo
62- (hab : a < b) ( hf : ContinuousOn f (Ioo a b)) (hb : Tendsto f (𝓝[<] b) (𝓝 lb)) :
68+ (hf : ContinuousOn f (Ioo a b)) (hb : Tendsto f (𝓝[<] b) (𝓝 lb)) :
6369 ContinuousOn (extendFrom (Ioo a b) f) (Ioc a b) := by
64- have := continuousOn_Ico_extendFrom_Ioo (f := f ∘ OrderDual.ofDual) (la := lb) hab.dual
70+ have := continuousOn_Ico_extendFrom_Ioo (f := f ∘ OrderDual.ofDual) (a := OrderDual.toDual b)
71+ (b := OrderDual.toDual a) (la := lb)
6572 rw [Ico_toDual, Ioi_toDual, Ioo_toDual] at this
6673 exact this hf hb
6774
0 commit comments