import Mathlib import OAI.Analysis.BiholderTransport.Volume.UpperJacobianBarrier import OAI.Analysis.BiholderTransport.Regularity.ActiveDifference import OAI.Analysis.BiholderTransport.LinearAlgebra.ChartFirstMatrix namespace OAI section noncomputable section open Set Filter Manifold Bundle open scoped Topology ContDiff namespace WeakMTWTransport section FirstRank variable {n : β„•} {M : Type*} [MetricSpace M] [CompactSpace M] [Nonempty M] [ChartedSpace (Model n) M] [IsManifold π“˜(ℝ,Model n) ∞ M] [RiemannianBundle (fun x : M => TangentSpace π“˜(ℝ,Model n) x)] [IsContMDiffRiemannianBundle π“˜(ℝ,Model n) ∞ (Model n) (fun x : M => TangentSpace π“˜(ℝ,Model n) x)] [IsRiemannianManifold π“˜(ℝ,Model n) M] omit [CompactSpace M] [Nonempty M] [IsContMDiffRiemannianBundle π“˜(ℝ,Model n) ∞ (Model n) (fun x : M => TangentSpace π“˜(ℝ,Model n) x)] [IsRiemannianManifold π“˜(ℝ,Model n) M] in lemma ChartFixedPrefixLimit.positive_rank_direction {a:M} {v G:M β†’ ℝ} {t:ℝ} {q:β„• β†’ subgradientGraph (n := n) (cTransform v)} {qβ‚€:subgradientGraph (n := n) (cTransform v)} (J:ChartFixedPrefixLimit a v G t q qβ‚€) (hbase:qβ‚€.1.1∈(extChartAt π“˜(ℝ,Model n) a).source) : let b:=graphBaseCoordinate a qβ‚€.1 let p:=graphVelocityCoordinate a qβ‚€.1 let E:=TangentSpace π“˜(ℝ,Model n) ((extChartAt π“˜(ℝ,Model n) a).symm b) let ΞΊ:Type:={i:Fin (Module.finrank ℝ (Model n)+1) // 0chartFiberInverse a b (J.pjβ‚€ i) let P:E:=chartFiberInverse a b p let S:=Submodule.span ℝ (range (fun i=>pj i-P)) βˆ€ (A C:ℝ),0U (J.pjβ‚€ i) let P:E:=U p let S:=Submodule.span ℝ (range (fun i=>pj i-P)) have hb : b∈(extChartAt π“˜(ℝ,Model n) a).target := (extChartAt π“˜(ℝ,Model n) a).map_source hbase have hx : x∈T.baseSet := by simpa only [x,T,TangentBundle.trivializationAt_baseSet,extChartAt_source] using (extChartAt π“˜(ℝ,Model n) a).map_target hb have hUV (d:E):U (V d)=d := T.symmL_continuousLinearMapAt (R := ℝ) hx d have hVU (d:Model n):V (U d)=d := T.continuousLinearMapAt_symmL (R := ℝ) hx d intro A C hA hbound level Bc Bo hprofiles hparameter have hres:=positive_barycentric_restriction (fun i=>U (J.pjβ‚€ i)) J.wβ‚€ J.nonnegLimit J.totalLimit let : Nonempty ΞΊ:=hres.1 have hparam:0Bo (level (U (J.pjβ‚€ i))))] classical have hS:Sβ‰ βŠ₯:=active_difference_ne_bot hres.2.1 hprofiles hparam let L:E β†’L[ℝ] E β†’L[ℝ] ℝ:=J.L.bilinearComp V V have hk:S≀LinearMap.ker L.toLinearMap := by apply Submodule.span_le.mpr rintro _ ⟨i,rfl⟩ change L (pj i-P)=0 ext d change J.L (V (U (J.pjβ‚€ i)-U p)) (V d)=0 rw [map_sub,hVU,hVU] exact J.kernel i (V d) apply unit_positive_direction_of_rank_one_semibound S hA hS intro d hd have hl:L d=0 := hk hd have hzero:J.L (V d) (V d)=0 := congrArg (fun f:E β†’L[ℝ] ℝ=>f d) hl have HH:=hbound (V d) rw [hUV] at HH have HU:=J.upper (V d) rw [hzero] at HU linarith only [HH,HU] end FirstRank end WeakMTWTransport end end end OAI