import OAI.GroupTheory.PolycyclicRecognition.Analysis.RescaledAlternatingEndpoints import OAI.GroupTheory.PolycyclicRecognition.Analysis.RescaledTupleVolume namespace OAI /-! # Haar-volume rate of the actual alternating product The compact coordinate image furnished by scalar Remez is transported through the actual exponential chart. The output determinant is the weight of the union template, not the sum of the input weights. -/ noncomputable section namespace PolycyclicRecognition open Module MeasureTheory Filter Set open scoped Manifold Topology variable {L I : Type*} [LieRing L] [LieAlgebra ℝ L] {E G : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] [TopologicalSpace G] [ChartedSpace E G] [Group G] [LieGroup (π“˜(ℝ, E)) ⊀ G] [MeasurableSpace G] [BorelSpace G] theorem alternating_haar_image_growing_sequence {m h c : β„•} (lie : L ≃ₗ⁅ℝ⁆ GroupLieAlgebra (π“˜(ℝ, E)) G) (Exp : GroupLieAlgebra (π“˜(ℝ, E)) G β†’ G) (chart : GroupLieAlgebra (π“˜(ℝ, E)) G β‰ƒβ‚œ G) (hchart : βˆ€ x, chart x = Exp x) (hzero : Exp 0 = 1) (a : DynkinCoefficients c 2) (hm : βˆ€ x y, Exp (finiteDynkinPolynomial a ![x, y]) = Exp x * Exp y) (X : I β†’ L) (words : Finset (FreeMagma I)) (bβ‚€ : Basis (Fin (finrank ℝ L)) ℝ L) (Ξ² : WordBasisSelections X words) (cost : words β†’ ℝ) (b₁ bβ‚‚ : β„• β†’ Basis (Fin (finrank ℝ L)) ℝ L) (e : (Fin m β†’ ℝ) ≃L[ℝ] (Fin h β†’ (Fin (finrank ℝ L) β†’ ℝ) Γ— (Fin (finrank ℝ L) β†’ ℝ))) (scale : β„• β†’ ℝ) (hscale : Tendsto scale atTop atTop) (rem : RemezPolynomialInput) (hn : 1 ≀ finrank ℝ L) (pβ‚€ : AlternatingLawData (finrank ℝ L)) (hlim : Tendsto (fun r => let b := exponentialRescaleBasis (WordBasisSelections.basis X words Ξ²) (fun j => cost (Ξ².val j)) (scale r) (basisBracket b, boxCoordinateChange b (b₁ r), boxCoordinateChange b (bβ‚‚ r))) atTop (𝓝 pβ‚€)) (zβ‚€ : Fin h β†’ (Fin (finrank ℝ L) β†’ ℝ) Γ— (Fin (finrank ℝ L) β†’ ℝ)) (hs : Function.Surjective (fderiv ℝ (alternatingCoordinateProduct a pβ‚€.1 pβ‚€.2.1 pβ‚€.2.2) zβ‚€)) (R : β„• β†’ ℝ) (hR : βˆ€ r, 0 ≀ R r) (hRupper : HasSubexponentialUpperBoundSeq scale R) (A : β„• β†’ Set (Fin m β†’ ℝ)) (hA : βˆ€ r, MeasurableSet (A r)) (hAR : βˆ€ r, A r βŠ† Metric.closedBall 0 (R r)) (hAlower : HasSubexponentialLowerBoundSeq scale (fun r => (volume (A r)).toReal)) : βˆƒ C : β„• β†’ Set G, (βˆ€ r, IsCompact (C r)) ∧ (βˆ€αΆ  r in atTop, C r βŠ† (fun x => (List.ofFn (fun j => Exp (lie ((b₁ r).equivFun.symm (e x j).1)) * Exp (lie ((bβ‚‚ r).equivFun.symm (e x j).2)))).prod) '' A r) ∧ HasSubexponentialLowerBoundSeq scale (fun r => ((Measure.map ((Exp ∘ lie) ∘ bβ‚€.equivFun.symm) volume) (C r)).toReal / Real.exp (scale r * columnBasisWeight cost Ξ².val)) := by let b := fun r => exponentialRescaleBasis (WordBasisSelections.basis X words Ξ²) (fun j => cost (Ξ².val j)) (scale r) let p : β„• β†’ AlternatingLawData (finrank ℝ L) := fun r => (basisBracket (b r), boxCoordinateChange (b r) (b₁ r), boxCoordinateChange (b r) (bβ‚‚ r)) obtain ⟨K, hK, hKA, hKlower⟩ := alternating_product_image_growing_sequence a e scale hscale rem hn p pβ‚€ hlim zβ‚€ hs R hR hRupper A hA hAR hAlower let f := fun r => (Exp ∘ lie) ∘ (b r).equivFun.symm have hf (r : β„•) : f r = exponentialBasisHomeomorph lie chart (b r) := by funext x exact (exponentialBasisHomeomorph_apply lie Exp chart hchart (b r) x).symm refine ⟨fun r => f r '' K r, fun r => (hK r).image (by rw [hf]; fun_prop), ?_, ?_⟩ Β· filter_upwards [hKA] with r hr rintro y ⟨z, hz, rfl⟩ obtain ⟨x, hx, hxy⟩ := hr hz refine ⟨x, hx, ?_⟩ rw [← hxy] exact (exp_flatAlternatingProduct (b r) (b₁ r) (bβ‚‚ r) (Exp ∘ lie) (by simpa using hzero) a (model_binary_dynkin lie Exp a hm) e x).symm Β· let d := |(columnBasisMatrix (wordListCoordinates X words bβ‚€) Ξ².val).det| have hd : 0 < d := abs_pos.mpr (wordBasis_det_ne_zero X words bβ‚€ Ξ²) have he (r : β„•) : ((Measure.map ((Exp ∘ lie) ∘ bβ‚€.equivFun.symm) volume) (f r '' K r)).toReal / Real.exp (scale r * columnBasisWeight cost Ξ².val) = d * (volume (K r)).toReal := by rw [exponential_rescaled_subset_measure lie Exp chart hchart X words bβ‚€ Ξ² cost (scale r) (K r)] rw [ENNReal.toReal_mul, ENNReal.toReal_mul, ENNReal.toReal_ofReal hd.le, ENNReal.toReal_ofReal (Real.exp_pos _).le] field_simp simpa only [he] using (sequence_subexponential_lower_const hscale hd).mul hKlower end PolycyclicRecognition end end OAI