import Mathlib import OAI.Probability.CriticalPercolation.LinearGroups.LocalProjectiveAction namespace OAI section noncomputable section open Set Function Filter MeasureTheory NormedSpace Module open scoped Classical Topology ENNReal namespace CriticalPercolation.LocalProjective variable {K V : Type*} [NontriviallyNormedField K] [NormedAddCommGroup V] [NormedSpace K V] variable [CompleteSpace K] [FiniteDimensional K V] omit [CompleteSpace K] in lemma small_intersection_rank (U W : Submodule K V) (he : finrank K U=finrank K W) (hne : U≠W) : finrank K ↥(U⊓W) subspace W.val)) := by intro U W hne change μ (subspace U.val∩subspace W.val)=0 rw [←subspace_inf] apply hnull rw [←U.property.1] apply small_intersection_rank _ _ (U.property.1.trans W.property.1.symm) exact fun he => hne (Subtype.ext he) have hs := tsum_measure_le_measure_univ (fun W:T => (measurable_subspace W.val).nullMeasurableSet) hdis have hc : (∑' _ : T, ε)≤∑' W:T, μ (subspace W.val) := ENNReal.tsum_le_tsum (fun W => W.property.2) rw [ENNReal.tsum_const_eq_top_of_ne_zero hε] at hc exact (measure_ne_top μ Set.univ) (top_unique (hc.trans hs)) omit [CompleteSpace K] in lemma exists_minimal_positive_subspace (μ : Measure (Space K V)) [IsProbabilityMeasure μ] (h : ∃ W : Submodule K V, W≠⊤ ∧ μ (subspace W)≠0) : ∃ W : Submodule K V, W≠⊥ ∧ W≠⊤ ∧ μ (subspace W)≠0 ∧ ∀ U : Submodule K V, finrank K U rw [←hμ] rw [Measure.map_apply (continuous_action a).measurable (measurable_subspace _),preimage_action_subspace] lemma exists_finite_positive_subspace_orbit {G : Type*} [Group G] (ρ : G →* (V ≃L[K] V)) (μ : Measure (Space K V)) [IsProbabilityMeasure μ] (hμ : ∀ g, Measure.map (action (ρ g)) μ=μ) (h : ∃ W : Submodule K V, W≠⊤ ∧ μ (subspace W)≠0) : ∃ W : Submodule K V, W≠⊥ ∧ W≠⊤ ∧ (Set.range (fun g => W.map (ρ g).toLinearEquiv.toLinearMap)).Finite := by obtain ⟨W,hWb,hWt,hWμ,hnull⟩ := exists_minimal_positive_subspace μ h refine ⟨W,hWb,hWt,?_⟩ apply (finite_positive_subspaces μ (finrank K W) _ hWμ hnull).subset rintro U ⟨g,rfl⟩ refine ⟨(ρ g).toLinearEquiv.finrank_map_eq W,?_⟩ exact (measure_subspace_map_eq μ (ρ g) (hμ g) W).ge end CriticalPercolation.LocalProjective end end end OAI