File size: 2,085 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 | import OAI.Probability.ContinuumTransition.TransformBounds
namespace OAI
universe u_1
section
open scoped Topology
open Set
namespace ContinuumTemperature
lemma isCompact_convexJoin {E : Type u_1} [AddCommGroup E] [Module β E]
[TopologicalSpace E] [ContinuousAdd E] [ContinuousSMul β E]
{S T : Set E} (hS : IsCompact S) (hT : IsCompact T) :
IsCompact (convexJoin β S T) := by
have he : convexJoin β S T =
(fun p : β Γ E Γ E => (1-p.1) β’ p.2.1+p.1 β’ p.2.2) '' (Icc (0:β) 1 ΓΛ’ S ΓΛ’ T) := by
ext z
simp only [mem_convexJoin,segment_eq_image,mem_image,mem_prod,Prod.exists]
constructor
Β· rintro β¨x,hx,y,hy,c,hc,rflβ©
exact β¨c,x,y,β¨hc,hx,hyβ©,rflβ©
Β· rintro β¨c,x,y,β¨hc,hx,hyβ©,rflβ©
exact β¨x,hx,y,hy,c,hc,rflβ©
rw [he]
exact (isCompact_Icc.prod (hS.prod hT)).image (by fun_prop)
lemma compact_convexHull_union {E : Type u_1} [AddCommGroup E] [Module β E]
[TopologicalSpace E] [ContinuousAdd E] [ContinuousSMul β E]
{S T : Set E} (hS : IsCompact S) (hT : IsCompact T)
(hcS : Convex β S) (hcT : Convex β T) : IsCompact (convexHull β (S βͺ T)) := by
by_cases hs : S.Nonempty
Β· by_cases ht : T.Nonempty
Β· rw [hcS.convexHull_union hcT hs ht]
exact isCompact_convexJoin hS hT
Β· rw [not_nonempty_iff_eq_empty.mp ht,union_empty,hcS.convexHull_eq]
exact hS
Β· rw [not_nonempty_iff_eq_empty.mp hs,empty_union,hcT.convexHull_eq]
exact hT
lemma compact_convexHull_iUnion_fin {E : Type u_1} [AddCommGroup E] [Module β E]
[TopologicalSpace E] [ContinuousAdd E] [ContinuousSMul β E]
{n : β} (K : Fin n β Set E) (hk : β i, IsCompact (K i)) (hc : β i, Convex β (K i)) :
IsCompact (convexHull β (β i, K i)) := by
induction n with
| zero => simp
| succ n ih =>
rw [Set.iUnion_fin_add_one_eq_iUnion_succ,β convexHull_convexHull_union_right]
exact compact_convexHull_union (hk 0) (ih _ (fun i => hk i.succ) (fun i => hc i.succ))
(hc 0) (convex_convexHull _ _)
end ContinuumTemperature
end
end OAI
|