cfahlgren1's picture
download
raw
2.97 kB
import OAI.LinearAlgebra.MatrixMultiplication.AuxiliarySeparation.Convex.ConeSupport
import Mathlib.Geometry.Convex.Cone.Pointed
import Mathlib.Topology.Algebra.Module.FiniteDimension
import Mathlib.Tactic
namespace OAI
/-!
# Closed finitely generated cones
-/
open Topology
namespace MatrixMultiplication.AuxiliarySeparation
/-- A finite conic combination is a sum with nonnegative coefficients. -/
theorem mem_pointedCone_hull_range_iff {I E : Type*} [Fintype I]
[AddCommGroup E] [Module ℝ E] (A : I → E) (x : E) :
x ∈ PointedCone.hull ℝ (Set.range A) ↔
∃ c : I → ℝ, (∀ i, 0 ≤ c i) ∧ ∑ i, c i • A i = x := by
rw [PointedCone.hull, Submodule.mem_span_range_iff_exists_fun]
constructor
· rintro ⟨c, hc⟩
exact ⟨fun i ↦ (c i : ℝ), fun i ↦ (c i).2, hc⟩
· rintro ⟨c, hc, hcx⟩
exact ⟨fun i ↦ ⟨c i, hc i⟩, hcx⟩
/-- The cone spanned by a finite linearly independent family is closed. -/
theorem isClosed_pointedCone_hull_range_of_linearIndependent
{I E : Type*} [Fintype I] [NormedAddCommGroup E] [NormedSpace ℝ E]
(A : I → E) (hA : LinearIndependent ℝ A) :
IsClosed (PointedCone.hull ℝ (Set.range A) : Set E) := by
let f := Fintype.linearCombination ℝ A
have hf : IsClosedEmbedding f :=
LinearMap.isClosedEmbedding_of_injective
(LinearMap.ker_eq_bot.mpr hA.fintypeLinearCombination_injective)
have hnonneg : IsClosed {c : I → ℝ | ∀ i, 0 ≤ c i} := by
simpa only [Set.ofPred_forall] using
isClosed_iInter fun i ↦ isClosed_le (continuous_const : Continuous fun _ : I → ℝ ↦ (0 : ℝ)) (continuous_apply i)
have heq : (PointedCone.hull ℝ (Set.range A) : Set E) =
f '' {c : I → ℝ | ∀ i, 0 ≤ c i} := by
ext x
change x ∈ PointedCone.hull ℝ (Set.range A) ↔ _
rw [mem_pointedCone_hull_range_iff]
simp only [Set.mem_image, Set.mem_ofPred_eq]
rfl
rw [heq]
exact hf.isClosedMap _ hnonneg
/-- A cone generated by a finite family of real vectors is closed. -/
theorem isClosed_pointedCone_hull_range
{I E : Type*} [Fintype I] [NormedAddCommGroup E] [NormedSpace ℝ E]
(A : I → E) :
IsClosed (PointedCone.hull ℝ (Set.range A) : Set E) := by
classical
let S := {s : Finset I // LinearIndependent ℝ (fun i : s ↦ A i)}
have heq : (PointedCone.hull ℝ (Set.range A) : Set E) =
⋃ s : S, (PointedCone.hull ℝ (Set.range (fun i : s.1 ↦ A i)) : Set E) := by
ext x
constructor
· intro hx
obtain ⟨s, hs, hx⟩ := exists_linearIndependent_subcone A hx
exact Set.mem_iUnion.mpr ⟨⟨s, hs⟩, hx⟩
· intro hx
obtain ⟨s, hs⟩ := Set.mem_iUnion.mp hx
apply Submodule.span_mono _ hs
rintro _ ⟨i, rfl⟩
exact ⟨i.1, rfl⟩
rw [heq]
exact isClosed_iUnion_of_finite fun s : S ↦
isClosed_pointedCone_hull_range_of_linearIndependent _ s.2
end MatrixMultiplication.AuxiliarySeparation
end OAI

Xet Storage Details

Size:
2.97 kB
·
Xet hash:
39f965d68a5fb2485fb02b00f9592b5dcd33946b5deacf4a296093237a18df40

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.