import CompanionTheory.RealGroups.UnitaryAdmissibility.ArchimedeanUnitaryDual.AdmissibleOf
import CompanionTheory.RealGroups.UnitaryAdmissibility.ArchimedeanUnitaryDual.StSandwich
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.StatementCommutativeStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.SimpleOfCommutativeStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.StatementStarStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.HeckeAlgebraStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.ModularityStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.TransferStatementBisStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.ProjectionStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.PairingStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.FixedVectorStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.MovingStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.SeparatedMovingStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.IsomorphismStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.OperatorStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.FactorizationStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.CartanDecompositionGLStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.DictionaryStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.DefinitenessStatementStatement
import CompanionTheory.RealGroups.UnitaryAdmissibility.ArchimedeanUnitaryDual.ArchimedeanDenseStabilizers.StabOfMemLevelOpen
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.ArchimedeanPrincipalSeriesStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.StTensorStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.DeltaStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.HenselStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.SandwichStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.AnisotropicOfHenselAndSandwichStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.ExistenceOfSandwichStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.PairingOfSandwichStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.PlaneOfHenselAndPairingStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.SplittingOfSandwichAndPairingStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.FrameOfAnisotropicPlaneSplittingStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.WittStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.TorusStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.DecompositionOfFrameWittTorusStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.IwahoriStatementStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.LatticeCongruenceSubgroupsOpenCompactStatement
import CompanionTheory.SpectralGeometry.LocalGlobalProofs.StableLattices.IsometricLatticeCongruenceSubgroupsStatement

namespace CompanionTheory.Rg.Fl.B

theorem stFrame : CompanionTheory.Rg.FlB.StFrame :=
  GlobalTheory.T.frame_of_anisotropic_plane_splitting (GlobalTheory.T.anisotropic_of_hensel_and_sandwich GlobalTheory.T.HenselStatement GlobalTheory.T.SandwichStatement) (GlobalTheory.T.plane_of_hensel_and_pairing GlobalTheory.T.HenselStatement (GlobalTheory.T.pairing_of_sandwich_statement GlobalTheory.T.SandwichStatement))
    (GlobalTheory.T.splitting_of_sandwich_and_pairing GlobalTheory.T.SandwichStatement (GlobalTheory.T.pairing_of_sandwich_statement GlobalTheory.T.SandwichStatement))

theorem stCartanU : StCartanU :=
  GlobalTheory.T.isometric_lattice_congruence_subgroups GlobalTheory.T.DeltaStatement (GlobalTheory.T.existence_of_sandwich_statement GlobalTheory.T.SandwichStatement) stFrame GlobalTheory.T.TorusStatement (GlobalTheory.T.decomposition_of_frame_witt_torus stFrame GlobalTheory.T.WittStatement GlobalTheory.T.TorusStatement)
    GlobalTheory.T.IwahoriStatement GlobalTheory.T.lattice_congruence_subgroups_open_compact

theorem locPI : LocPI :=
  locPI_of (GlobalTheory.T.simple_of_commutative_statement GlobalTheory.T.StatementCommutative) GlobalTheory.T.StatementStar GlobalTheory.T.HeckeAlgebraTheorem GlobalTheory.T.ModularityStatement GlobalTheory.T.TransferStatementBis GlobalTheory.T.PairingStatement stCartanU GlobalTheory.T.CartanDecompositionGL
    GlobalTheory.T.MovingStatement GlobalTheory.T.DictionaryStatement GlobalTheory.T.DefinitenessStatement CompanionTheory.Rg.FlSep.stSepDefB GlobalTheory.T.SeparatedMovingStatement

theorem unitaryIrreducibleAdmissible : GlobalTheory.Published.UnitaryIrreducibleAdmissible := admissible_of locPI GlobalTheory.T.ProjectionStatement

theorem flathTensorProduct : GlobalTheory.Published.FlathTensorProduct :=
  flath_of locPI GlobalTheory.T.ProjectionStatement GlobalTheory.T.FixedVectorStatement GlobalTheory.T.FactorizationStatement GlobalTheory.T.ArchimedeanPrincipalSeries GlobalTheory.T.IsomorphismStatement GlobalTheory.T.OperatorStatement GlobalTheory.T.stTensor'

end CompanionTheory.Rg.Fl.B
