import OAI.Analysis.AncientFlat.Geometry.InnerExtensionCore
import OAI.Analysis.AncientFlat.Weighted.ExactYNorm
import OAI.Analysis.AncientFlat.Weighted.WeightedSourceHolder
namespace OAI
noncomputable section
open Set Filter
open scoped ContDiff ENNReal
namespace FlatWeighted
open ParabolicInterior
variable {V : Type} [NormedAddCommGroup V] [InnerProductSpace ℝ V]
def FiniteYBound (α w a T M : ℝ) (f : V × ℝ → ℂ) : Prop :=
∀ p : V × ℝ, -T≤p.2 ∧ p.2<0 → HolderBound α (finiteLocalDomain T a p) (pullback (w-4) p f) M
lemma finiteYNorm_bound {α w a T M : ℝ} {f : V × ℝ → ℂ} (hM : 0≤M)
(h : finiteYNorm α w a T f≤ENNReal.ofReal M) : FiniteYBound α w a T M f := by
intro p hp
apply holderNorm_holderBound hM
exact (le_iSup (fun P : {P : V × ℝ // -T≤P.2 ∧ P.2<0} =>
holderNorm α (finiteLocalDomain T a P.val) (pullback (w-4) P.val f)) ⟨p,hp⟩).trans h
lemma finiteYNorm_finite_bound {α w a T : ℝ} {f : V × ℝ → ℂ}
(h : finiteYNorm α w a T f≠⊤) : FiniteYBound α w a T (finiteYNorm α w a T f).toReal f :=
finiteYNorm_bound ENNReal.toReal_nonneg (by rw [ENNReal.ofReal_toReal h])
lemma zero_finiteLocalDomain (T a : ℝ) (ha : 0.trans_eq (mul_comm _ _)
lemma unchart_mem_finite {a T : ℝ} (ha : 0 (hpoint p hp).trans (mul_le_mul_of_nonneg_right hC1 hM),?_⟩
intro p hp q hq
have hp0 := (ht p hp).2
have hq0 := (ht q hq).2
have hr : 0≤pdist p q^α := Real.rpow_nonneg (pdist_nonneg _ _) _
by_cases hd : pdist p q