Sync from openai/math@faee2cf485a8 (part 27)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- lean/OAI.lean+914-914
- lean/OAI/Topology/CoarseAssembly.lean+190-190
- lean/OAI/Topology/CoarseAssembly/UnconditionalConclusion.lean+60-60
- lean/OAI/Topology/CoarseAssembly/UniformCycleNormalization.lean+53-53
- lean/OAI/Topology/CoarseAssembly/UniformSubdivision.lean+47-47
- lean/OAI/Topology/CoarseAssembly/UnitalCycleInvertible.lean+32-32
- lean/OAI/Topology/CoarseAssembly/UnitalCycleNormalization.lean+43-43
- lean/OAI/Topology/CoarseAssembly/UnitalRepresentative.lean+130-130
- lean/OAI/Topology/CoarseAssembly/UnitalStructureAlgebra.lean+66-66
- lean/OAI/Topology/CoarseAssembly/UnitaryHomotopyIndex.lean+59-59
- lean/OAI/Topology/CoarseAssembly/UnitaryIndex.lean+76-76
- lean/OAI/Topology/CoarseAssembly/UnrestrictedBoundedHomotopy.lean+80-80
- lean/OAI/Topology/CoarseAssembly/WindingHomotopy.lean+83-83
- lean/OAI/Topology/CoarseAssembly/WindingIndexEvaluation.lean+60-60
- lean/OAI/Topology/EilenbergGanea/AffineTransport.lean+449-449
- lean/OAI/Topology/EilenbergGanea/CliqueCohomology.lean+232-232
- lean/OAI/Topology/EilenbergGanea/CubicalCover.lean+822-822
- lean/OAI/Topology/EilenbergGanea/Dimension.lean+115-115
- lean/OAI/Topology/EilenbergGanea/IntegralDegree.lean
- lean/OAI/Topology/EilenbergGanea/IntegralModules.lean+308-308
- lean/OAI/Topology/EilenbergGanea/LevelBasis.lean+968-968
- lean/OAI/Topology/EilenbergGanea/LevelTransport.lean+626-626
- lean/OAI/Topology/EilenbergGanea/Main.lean+43-43
- lean/OAI/Topology/EilenbergGanea/Model.lean+61-61
- lean/OAI/Topology/EilenbergGanea/PresentationAlignment.lean
- lean/OAI/Topology/EilenbergGanea/PresentationComparison.lean
- lean/OAI/Topology/EilenbergGanea/Regularization.lean
- lean/OAI/Topology/EilenbergGanea/Seed.lean+164-164
- lean/OAI/Topology/EilenbergGanea/SeedChains.lean
- lean/OAI/Topology/EilenbergGanea/SeedConnection.lean+277-277
- lean/OAI/Topology/EilenbergGanea/SeedContraction.lean
- lean/OAI/Topology/EilenbergGanea/SeedHolonomy.lean+191-191
- lean/OAI/Topology/EilenbergGanea/SmallHolonomy.lean+744-744
- lean/OAI/Topology/EilenbergGanea/UnitaryWords.lean+890-890
- lean/OAI/Topology/EilenbergGanea/WordEquations.lean+388-388
- lean/OAI/Topology/HahnSeries/Pivots.lean+852-852
- lean/OAI/Topology/Homotopy/BasedMaps.lean+71-71
- lean/OAI/Topology/Homotopy/ConeHomotopy.lean+234-234
- lean/OAI/Topology/Homotopy/CubicalNullity.lean+263-263
- lean/OAI/Topology/Homotopy/CubicalSpheres.lean+341-341
- lean/OAI/Topology/Homotopy/FiberCone.lean+393-393
- lean/OAI/Topology/Homotopy/FiberKernel.lean+57-57
- lean/OAI/Topology/Homotopy/HomotopyFiber.lean+319-319
- lean/OAI/Topology/Homotopy/LoopHomotopy.lean+143-143
- lean/OAI/Topology/Homotopy/OpenCollapse.lean+128-128
- lean/OAI/Topology/Homotopy/RayTelescope.lean
- lean/OAI/Topology/TorusCompression/Boundary.lean
- lean/README.md
- lean/docs/027.md
- lean/docs/049.md
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914import OAI.Algebra.AffineCancellation.Mainimport OAI.Algebra.AlgebraicObstruction.AlgebraicInputimport OAI.Algebra.AlgebraicObstruction.Holonomyimport OAI.Algebra.AuslanderReiten.Allimport OAI.Algebra.BogomolovPop.Injectivityimport OAI.Algebra.Cohomology.SemilinearCochainsimport OAI.Algebra.DepthFive.Mainimport OAI.Algebra.Determinantal.Mainimport OAI.Algebra.Divisor.Normalizationimport OAI.Algebra.Divisor.RationalRecoveryimport OAI.Algebra.Drinfeld.Completionimport OAI.Algebra.FiniteTensor.Mainimport OAI.Algebra.Finitistic.Mainimport OAI.Algebra.FinitisticAsymmetry.Mainimport OAI.Algebra.FormalGroup.Honda.Mainimport OAI.Algebra.FormulaHitting.Mainimport OAI.Algebra.FrobeniusObstruction.Obstructionimport OAI.Algebra.GroupRing.CylinderRetentionimport OAI.Algebra.GroupRing.Mainimport OAI.Algebra.MarkedTensor.Mainimport OAI.Algebra.Module.CompactPadicimport OAI.Algebra.OddKaplansky.GeneralTransferimport OAI.Algebra.PolynomialChains.Realimport OAI.Algebra.Universal.Cosetimport OAI.Algebra.Universal.GraphDecidabilityimport OAI.AlgebraicGeometry.AbhyankarSathaye.Counterexampleimport OAI.AlgebraicGeometry.CartierSectionsimport OAI.AlgebraicGeometry.CharacterVarietiesimport OAI.AlgebraicGeometry.CommutingDerivations.OrdinaryExtraMainimport OAI.AlgebraicGeometry.LogKodaira.FiberNegativeimport OAI.AlgebraicGeometry.LogKodaira.RootFactorimport OAI.AlgebraicGeometry.NumericalDimension.IndexedTransferimport OAI.AlgebraicGeometry.NumericalDimension.RelativeNegativityimport OAI.AlgebraicGeometry.NumericalDimension.TwistedPushforwardimport OAI.AlgebraicGeometry.PlaneCurves.Nagataimport OAI.AlgebraicGeometry.RelativeTriviality.RelativeTrivialityimport OAI.AlgebraicGeometry.SectionFields.Mainimport OAI.AlgebraicGeometry.Seshadri.Mainimport OAI.AlgebraicGeometry.Stability.NumericalWallsimport OAI.AlgebraicGeometry.StableCoordinate.Allimport OAI.AlgebraicGeometry.SurfaceConesimport OAI.Analysis.AffineBernstein.Mainimport OAI.Analysis.AllenCahn.Mainimport OAI.Analysis.AncientFlat.Mainimport OAI.Analysis.BackwardIntertwiners.AlgebraCorollaryimport OAI.Analysis.BernoulliCone.Mainimport OAI.Analysis.BiholderTransport.Mainimport OAI.Analysis.BoundedHochschild.AtomicPrimitivesimport OAI.Analysis.BoundedHochschild.CenterPowersimport OAI.Analysis.BoundedHochschild.CentralLinearPatchimport OAI.Analysis.BoundedHochschild.CocycleNormalPartsimport OAI.Analysis.BoundedHochschild.CommutativePrimitivesimport OAI.Analysis.BoundedHochschild.FactorFinitePathsimport OAI.Analysis.BoundedHochschild.FactorPrimitiveimport OAI.Analysis.BoundedHochschild.FreeWordsimport OAI.Analysis.BoundedHochschild.MainResultimport OAI.Analysis.BoundedHochschild.MatrixDisplacementimport OAI.Analysis.BoundedHochschild.TypeIICornersimport OAI.Analysis.BoundedHochschild.TypeIPrimitivesimport OAI.Analysis.BoundedHochschild.UnitaryLiftsimport OAI.Analysis.BoxTransport.Routingimport OAI.Analysis.Brenier.Stabilityimport OAI.Analysis.BrownMeasure.Mainimport OAI.Analysis.C0Absorption.Mainimport OAI.Analysis.CStarAlgebra.PureInfiniteness.Mainimport OAI.Analysis.CardinalInterpolation.ModTwelveimport OAI.Analysis.CharacterCriterion.Mainimport OAI.Analysis.CircleDomains.LengthAreaimport OAI.Analysis.CircleDomains.Developmentimport OAI.Analysis.Commutator.Mainimport OAI.Analysis.Conductivity.Mainimport OAI.Analysis.Cotype.Mainimport OAI.Analysis.CoulombIonization.Mainimport OAI.Analysis.CoulombRadii.Mainimport OAI.Analysis.CoulombTransport.Mainimport OAI.Analysis.Crouzeix.Mainimport OAI.Analysis.Daugavet.Mainimport OAI.Analysis.DiamondDistortion.Mainimport OAI.Analysis.DirectCrouzeix.Mainimport OAI.Analysis.DiskMaximal.Mainimport OAI.Analysis.FactorGeneration.Mainimport OAI.Analysis.FiniteFactor.Mainimport OAI.Analysis.ForestSpace.Mainimport OAI.Analysis.Fourier.HeightLayersimport OAI.Analysis.Fourier.SphereExtensionimport OAI.Analysis.FourierExtension.LpEstimateimport OAI.Analysis.FourierLLogL.PaperMainimport OAI.Analysis.FreeEntropy.Mainimport OAI.Analysis.FreeGroupFactor.Mainimport OAI.Analysis.FreeWords.Mainimport OAI.Analysis.Graph.Gradientsimport OAI.Analysis.GroupDeterminants.Mainimport OAI.Analysis.HardSphere.Mainimport OAI.Analysis.HenonEmden.Mainimport OAI.Analysis.HilbertCrouzeix.Mainimport OAI.Analysis.HotSpots.Mainimport OAI.Analysis.HyperbolicConesimport OAI.Analysis.Hyperinvariantimport OAI.Analysis.IncompressibleFlow.AffineExtensionimport OAI.Analysis.InnerProductSpace.ComplexSolvabilityimport OAI.Analysis.IntegralMeans.Mainimport OAI.Analysis.IntegralMeans.SharpEndpointsimport OAI.Analysis.InterpolatedFactors.Interpolationimport OAI.Analysis.IrrationalRotation.Mainimport OAI.Analysis.JiangSu.Mainimport OAI.Analysis.Kakeya.FixedScaleimport OAI.Analysis.Kaplansky.Mainimport OAI.Analysis.Kaplansky.StableFinitenessimport OAI.Analysis.Laughlin.Mainimport OAI.Analysis.Laughlin.UniformGapimport OAI.Analysis.LaughlinFock.Mainimport OAI.Analysis.LaughlinFock.TensorIntegralsimport OAI.Analysis.LaughlinGap.Mainimport OAI.Analysis.LaughlinGap.ThreeAveragingimport OAI.Analysis.LiebThirring.CoerciveInverseimport OAI.Analysis.LiebThirring.CompactAlternativeimport OAI.Analysis.LiebThirring.ContinuousRepresentativeimport OAI.Analysis.LiebThirring.DiscreteSpectrumimport OAI.Analysis.LiebThirring.Eigenspaceimport OAI.Analysis.LiebThirring.EigenvalueSumimport OAI.Analysis.LiebThirring.FormCongruenceimport OAI.Analysis.LiebThirring.FreeFormimport OAI.Analysis.LiebThirring.LocalCompactnessimport OAI.Analysis.LiebThirring.LocalWeightimport OAI.Analysis.LiebThirring.LowestEigenvalueimport OAI.Analysis.LiebThirring.Mainimport OAI.Analysis.LiebThirring.Multiplicationimport OAI.Analysis.LiebThirring.NegativeResolventimport OAI.Analysis.LiebThirring.OneStateimport OAI.Analysis.LiebThirring.OperatorFormimport OAI.Analysis.LiebThirring.OperatorGraphimport OAI.Analysis.LiebThirring.PotentialCompactnessimport OAI.Analysis.LiebThirring.PotentialSplitimport OAI.Analysis.LiebThirring.Resolventimport OAI.Analysis.LiebThirring.SchrodingerOperatorimport OAI.Analysis.LiebThirring.SobolevBoundimport OAI.Analysis.LiebThirring.SpectralMainimport OAI.Analysis.LiebThirring.SpectralMomentimport OAI.Analysis.LiebThirring.WeightedCutoffimport OAI.Analysis.LienardCycles.Mainimport OAI.Analysis.Lipschitz.TriangularLatticeimport OAI.Analysis.LipschitzEquivalence.Mainimport OAI.Analysis.LipschitzFree.Mainimport OAI.Analysis.LipschitzFree.Renormingimport OAI.Analysis.LipschitzHilbert.Mainimport OAI.Analysis.Littlewood.Mainimport OAI.Analysis.Littlewood.FiniteFlatnessimport OAI.Analysis.LpDimension.Mainimport OAI.Analysis.Mahlerimport OAI.Analysis.Mahler.Classificationimport OAI.Analysis.MarkovType.Allimport OAI.Analysis.MassAction.Mainimport OAI.Analysis.MatrixSigning.Mainimport OAI.Analysis.MetricEntropy.Mainimport OAI.Analysis.ModularRecovery.Mainimport OAI.Analysis.MumfordShah.CompactExclusionimport OAI.Analysis.MutuallyUnbiased.Bases.ThreeMainimport OAI.Analysis.MutuallyUnbiased.Mainimport OAI.Analysis.Naimark.Tracialimport OAI.Analysis.NavierStokes.VelocitySpaceimport OAI.Analysis.NefAdjoint.FractionalDensityimport OAI.Analysis.NefAdjoint.SectionGaugeimport OAI.Analysis.NodalLength.Mainimport OAI.Analysis.Nonexpansiveimport OAI.Analysis.NuclearUltrapower.Mainimport OAI.Analysis.NumericalRange.Mainimport OAI.Analysis.PathSelection.Mainimport OAI.Analysis.PeriodicLattice.Mainimport OAI.Analysis.PlanarEndpoint.Mainimport OAI.Analysis.Polynomial.Exhaustionimport OAI.Analysis.ProductSpaces.Mainimport OAI.Analysis.Pureness.Mainimport OAI.Analysis.Quantum.DimensionTen.Mainimport OAI.Analysis.RCDHeat.Mainimport OAI.Analysis.RecursivePotentials.EquivalentNormsimport OAI.Analysis.RecursivePotentials.JoinedGeometryimport OAI.Analysis.RecursivePotentials.Mainimport OAI.Analysis.RecursivePotentials.Modelimport OAI.Analysis.RecursivePotentials.TreeGeometryimport OAI.Analysis.RecursivePotentials.VariableCompletionimport OAI.Analysis.RecursivePotentials.VariableEstimatesimport OAI.Analysis.RecursivePotentials.VariableLpimport OAI.Analysis.RecursivePotentials.VariableStabilityimport OAI.Analysis.RecursivePotentials.ZeroRootGeometryimport OAI.Analysis.RelativeGeneration.Mainimport OAI.Analysis.RieszRectifiability.Mainimport OAI.Analysis.RotationWeights.Mainimport OAI.Analysis.SegmentLenses.HeadRangesimport OAI.Analysis.SegmentLenses.Mainimport OAI.Analysis.SeparableQuotients.Mainimport OAI.Analysis.SeparableQuotients.Positive.Mainimport OAI.Analysis.SignedDisk.Mainimport OAI.Analysis.SphereIsometry.Mainimport OAI.Analysis.Steinitz.Mainimport OAI.Analysis.StrictMeans.Mainimport OAI.Analysis.StructuralCrouzeix.Endpointimport OAI.Analysis.SymmetricDomains.Mainimport OAI.Analysis.TemperedDistribution.ConformalIdentitiesimport OAI.Analysis.TraceCone.Mainimport OAI.Analysis.TracialCohomology.Vanishingimport OAI.Analysis.TracialSplitting.Mainimport OAI.Analysis.TreePotential.Mainimport OAI.Analysis.Triangular.Mainimport OAI.Analysis.TriangularHilbert.Mainimport OAI.Analysis.Unitarizability.AllDiscreteimport OAI.Analysis.Unitarizability.UniverseTransportimport OAI.Analysis.VlasovMaxwell.Mainimport OAI.Analysis.WeakInfiniteness.Mainimport OAI.CategoryTheory.Globular.Mainimport OAI.CategoryTheory.ThickClosure.Mainimport OAI.CategoryTheory.Thomason.RankedFaithfulnessimport OAI.Combinatorics.Automata.Mainimport OAI.Combinatorics.BalancedRyser.Mainimport OAI.Combinatorics.BooleanFunctions.Mainimport OAI.Combinatorics.Chromatic.Mainimport OAI.Combinatorics.CliqueFree.Mainimport OAI.Combinatorics.Coboundary.Mainimport OAI.Combinatorics.CompleteCrossing.Mainimport OAI.Combinatorics.ContingencyTables.FactorialLiftimport OAI.Combinatorics.Crossing.Mainimport OAI.Combinatorics.CycleDecomposition.Mainimport OAI.Combinatorics.DiscreteConvexity.Mainimport OAI.Combinatorics.Distances.PolynomialIsolationimport OAI.Combinatorics.EditDistance.Mainimport OAI.Combinatorics.EuclideanRamsey.Circleimport OAI.Combinatorics.EuclideanRamsey.Mainimport OAI.Combinatorics.EuclideanRamsey.NineStatementimport OAI.Combinatorics.EuclideanRamsey.Quadraticimport OAI.Combinatorics.EuclideanRamsey.Sphericalimport OAI.Combinatorics.EuclideanRamsey.Transitiveimport OAI.Combinatorics.ExpectationThreshold.Mainimport OAI.Combinatorics.FiniteCircle.Mainimport OAI.Combinatorics.GotsmanLinial.Mainimport OAI.Combinatorics.GraphSpectrum.SampledChromaticimport OAI.Combinatorics.GraphThreshold.Mainimport OAI.Combinatorics.HadwigerCounterexample.Mainimport OAI.Combinatorics.HalvingLines.Mainimport OAI.Combinatorics.Hamiltonian.Mainimport OAI.Combinatorics.Honeycomb.FiniteCylinderimport OAI.Combinatorics.Honeycomb.PolygonMomentimport OAI.Combinatorics.HoneycombBridges.ExactLengthimport OAI.Combinatorics.HoneycombBridges.Geometryimport OAI.Combinatorics.HoneycombChordsimport OAI.Combinatorics.HoneycombCorridor.CorridorTransferimport OAI.Combinatorics.IndependentSets.Mainimport OAI.Combinatorics.InfiniteMatroid.Corollariesimport OAI.Combinatorics.InfiniteMatroid.Mainimport OAI.Combinatorics.KMedian.Mainimport OAI.Combinatorics.KMedian.Thresholdimport OAI.Combinatorics.KMedianRecovery.Mainimport OAI.Combinatorics.KMedianRecovery.Refined.Mainimport OAI.Combinatorics.KMedianRecovery.Refined.Recoveryimport OAI.Combinatorics.KServer.Mainimport OAI.Combinatorics.ListHadwiger.Mainimport OAI.Combinatorics.MatchingCount.Mainimport OAI.Combinatorics.MatchingEntropy.Mainimport OAI.Combinatorics.Permanent.Mainimport OAI.Combinatorics.PolynomialVacuum.Mainimport OAI.Combinatorics.PortMatching.Reductionimport OAI.Combinatorics.Progressions.Mainimport OAI.Combinatorics.Ramsey.CycleClique.Mainimport OAI.Combinatorics.Ramsey.Hypercubeimport OAI.Combinatorics.RamseyFive.Mainimport OAI.Combinatorics.StableGraphs.ExteriorBoundsimport OAI.Combinatorics.StripMass.Mainimport OAI.Combinatorics.SumProduct.Alignment.Mainimport OAI.Combinatorics.ThinTrees.AlgorithmicMainimport OAI.Combinatorics.TriangleFace.Mainimport OAI.Combinatorics.MatchingPSD.AffineLiftimport OAI.Combinatorics.MatchingPSD.Mainimport OAI.Combinatorics.MatrixRemoval.Mainimport OAI.Combinatorics.MatroidCounting.CommonBasesimport OAI.Combinatorics.ParityLifts.AsymptoticBoundsimport OAI.Combinatorics.PerfectMatching.AlgorithmPartitionimport OAI.Combinatorics.PerfectMatching.Ascentimport OAI.Combinatorics.PerfectMatching.CompletePairsimport OAI.Combinatorics.PerfectMatching.Completionimport OAI.Combinatorics.PerfectMatching.CountCorrectimport OAI.Combinatorics.PerfectMatching.DyadicEntropyimport OAI.Combinatorics.PerfectMatching.DyadicEnvelopeimport OAI.Combinatorics.PerfectMatching.ElementaryCountimport OAI.Combinatorics.PerfectMatching.EntropyUpperimport OAI.Combinatorics.PerfectMatching.FeasibilityRepairimport OAI.Combinatorics.PerfectMatching.ForcedReductionimport OAI.Combinatorics.PerfectMatching.Mainimport OAI.Combinatorics.PerfectMatching.Modelimport OAI.Combinatorics.PerfectMatching.ObjectivePenaltyimport OAI.Combinatorics.PerfectMatching.ParameterBoundsimport OAI.Combinatorics.PerfectMatching.Partitionimport OAI.Combinatorics.PerfectMatching.Separableimport OAI.Combinatorics.PerfectMatching.SeparableCountimport OAI.Combinatorics.PerfectMatching.SeparableCovarianceimport OAI.Combinatorics.PerfectMatching.SeparableLowerimport OAI.Combinatorics.PerfectMatching.SizeBoundsimport OAI.Combinatorics.PerfectMatching.Violationimport OAI.Combinatorics.PerfectMatching.WeightedSpectrumimport OAI.Combinatorics.PlanarL1.Embeddingimport OAI.Combinatorics.ProgressionColoring.Mainimport OAI.Combinatorics.Ryser.Mainimport OAI.Combinatorics.Ryser.OddExtensionsimport OAI.Combinatorics.SecondNeighborhood.Mainimport OAI.Combinatorics.Sensitivity.Mainimport OAI.Combinatorics.SharpRamsey.Mainimport OAI.Combinatorics.SharpThreshold.Mainimport OAI.Combinatorics.Sidorenko.RandomHostimport OAI.Combinatorics.SnakyCertificate.Mainimport OAI.Combinatorics.SparsestCut.Mainimport OAI.Combinatorics.SphericalRamseyimport OAI.Combinatorics.SphericalRamsey.Resultimport OAI.Combinatorics.SquareDifference.Mainimport OAI.Combinatorics.ThinTrees.Mainimport OAI.Combinatorics.TreeEdit.Mainimport OAI.Combinatorics.TreewidthL1.Mainimport OAI.Combinatorics.TriangleRemoval.Mainimport OAI.Combinatorics.TwoWayAutomata.ExplicitFamilyimport OAI.Combinatorics.TwoWayAutomata.Mainimport OAI.Combinatorics.TwoWayAutomata.PolynomialBoundimport OAI.Combinatorics.UniformKServer.Mainimport OAI.Combinatorics.VariableWLimport OAI.Combinatorics.YoungDiagram.RealCapacityimport OAI.Combinatorics.YoungDiagram.RealLargeCapacityimport OAI.Computability.BinPacking.Mainimport OAI.Computability.DegreeRigidity.Mainimport OAI.Computability.DepthThreeimport OAI.Computability.DeterministicSum.Mainimport OAI.Computability.DirectedFeedback.Mainimport OAI.Computability.FourierCircuit.Mainimport OAI.Computability.FourierTransform.Mainimport OAI.Computability.GeneralizedCircuits.Meshimport OAI.Computability.Logspace.Deterministicimport OAI.Computability.Logspace.Equalityimport OAI.Computability.LoopMatching.Endpointimport OAI.Computability.MatchingCount.ArgRoutineimport OAI.Computability.MatchingCount.BinaryAlgorithmimport OAI.Computability.MatchingCount.BinaryParserimport OAI.Computability.MatchingCount.BinarySolveimport OAI.Computability.MatchingCount.CappedPowerimport OAI.Computability.MatchingCount.CutAlgebraimport OAI.Computability.MatchingCount.DenseOracleimport OAI.Computability.MatchingCount.DivisionRoutineimport OAI.Computability.MatchingCount.FiniteStackimport OAI.Computability.MatchingCount.FoldRoutineimport OAI.Computability.MatchingCount.GuardRoutineimport OAI.Computability.MatchingCount.IntegerRoutineimport OAI.Computability.MatchingCount.IterateRoutineimport OAI.Computability.MatchingCount.LengthRoutineimport OAI.Computability.MatchingCount.ListNumericimport OAI.Computability.MatchingCount.ListRoutineimport OAI.Computability.MatchingCount.MapRoutineimport OAI.Computability.MatchingCount.OddCutParityimport OAI.Computability.MatchingCount.OddCutUncrossimport OAI.Computability.MatchingCount.OddMincutimport OAI.Computability.MatchingCount.OptionCasesimport OAI.Computability.MatchingCount.OracleBoundsimport OAI.Computability.MatchingCount.OrbitRoutineimport OAI.Computability.MatchingCount.PairRoutineimport OAI.Computability.MatchingCount.ParamRoutineimport OAI.Computability.MatchingCount.ParserSupportimport OAI.Computability.MatchingCount.PolyCodingimport OAI.Computability.MatchingCount.ProjectionRoutineimport OAI.Computability.MatchingCount.RawBitsBridgeimport OAI.Computability.MatchingCount.RawContractionimport OAI.Computability.MatchingCount.RawContractionCompilerimport OAI.Computability.MatchingCount.RawDataimport OAI.Computability.MatchingCount.RawFlowimport OAI.Computability.MatchingCount.RawFlowCompilerimport OAI.Computability.MatchingCount.RawFlowSizeimport OAI.Computability.MatchingCount.RawInputimport OAI.Computability.MatchingCount.RawOddBoundsimport OAI.Computability.MatchingCount.RawOddCompilerimport OAI.Computability.MatchingCount.RawOddCutimport OAI.Computability.MatchingCount.RawOptimizerimport OAI.Computability.MatchingCount.RawOptimizerCompilerimport OAI.Computability.MatchingCount.RawOptimizerDataimport OAI.Computability.MatchingCount.RawOptimizerDataCompilerimport OAI.Computability.MatchingCount.RawOptimizerRowsimport OAI.Computability.MatchingCount.RawOptimizerRowsCompilerimport OAI.Computability.MatchingCount.RawPrimitivesimport OAI.Computability.MatchingCount.RawRoutineimport OAI.Computability.MatchingCount.RawSearchimport OAI.Computability.MatchingCount.RawSearchCompilerimport OAI.Computability.MatchingCount.RawSearchSizeimport OAI.Computability.MatchingCount.RawSizeimport OAI.Computability.MatchingCount.RecursiveBoundsimport OAI.Computability.MatchingCount.RecursiveCodingimport OAI.Computability.MatchingCount.RecursiveCompilerimport OAI.Computability.MatchingCount.RecursiveEvalimport OAI.Computability.MatchingCount.ResidualSearchimport OAI.Computability.MatchingCount.ScaledAlgorithmimport OAI.Computability.MatchingCount.ScaledBoundsimport OAI.Computability.MatchingCount.ScaledStateimport OAI.Computability.MatchingCount.SelectRoutineimport OAI.Computability.MatchingCount.SequenceRoutineimport OAI.Computability.MatchingCount.StackCopyimport OAI.Computability.MatchingCount.StackEmbedimport OAI.Computability.MatchingCount.StackFrameimport OAI.Computability.MatchingCount.StackMacrosimport OAI.Computability.MatchingCount.StackPairimport OAI.Computability.MatchingCount.StackRoutineimport OAI.Computability.MatchingCount.SumRoutineimport OAI.Computability.MatchingCount.TerminalMincutimport OAI.Computability.MatchingCount.UnaryArithmeticimport OAI.Computability.MatchingCount.UnaryClogimport OAI.Computability.MatchingCount.UnaryDivisionimport OAI.Computability.MatchingCount.UnitFlowimport OAI.Computability.MatchingCount.UnitMincutimport OAI.Computability.MaxCut.Mainimport OAI.Computability.MeanPayoff.Mainimport OAI.Computability.MinUncut.Mainimport OAI.Computability.PerfectCompleteness.Mainimport OAI.Computability.QuantumFactoring.Mainimport OAI.Computability.RandomMean.Mainimport OAI.Computability.RationalHitting.Mainimport OAI.Computability.Scheduling.Mainimport OAI.Computability.SpaceSimulation.Mainimport OAI.Computability.StarHeight.Mainimport OAI.Computability.Superstring.Mainimport OAI.Computability.TypeSystem.Normalizationimport OAI.Computability.UniqueGames.Mainimport OAI.Computability.VertexCover.Mainimport OAI.Computability.WLIdentification.Mainimport OAI.Computability.WeisfeilerLeman.Mainimport OAI.Computability.WitnessedChoice.Mainimport OAI.Dynamics.ConditionalShuffle.TwoColorsimport OAI.Dynamics.EntropyCounterexampleimport OAI.Dynamics.MultipleMixing.Mainimport OAI.Dynamics.SmoothObstruction.Mainimport OAI.Dynamics.StandardMap.ComponentsMainimport OAI.Dynamics.StandardMap.EntropyEndpointimport OAI.Dynamics.StandardMap.EntropyLyapunovimport OAI.Dynamics.ThreeTorus.Mainimport OAI.Dynamics.TriangleBilliards.Mainimport OAI.GameTheory.SnakyConditional.Mainimport OAI.GameTheory.SnakyTwentyOne.Mainimport OAI.Geometry.Anticanonical.BranchedQuotientimport OAI.Geometry.Anticanonical.DeckRecoveryimport OAI.Geometry.Anticanonical.DeletedFacesimport OAI.Geometry.Anticanonical.HilbertEstimatesimport OAI.Geometry.Arnold.Mainimport OAI.Geometry.BallPacking.Mainimport OAI.Geometry.BallPacking.Necessity.Mainimport OAI.Geometry.Borsuk.Mainimport OAI.Geometry.CAT0Fillings.Mainimport OAI.Geometry.Cannon.Mainimport OAI.Geometry.ConjugatePoints.ThreeManifoldimport OAI.Geometry.CoveringDensity.Mainimport OAI.Geometry.CubicTorus.Mainimport OAI.Geometry.CylinderCovering.Mainimport OAI.Geometry.DoublingHilbert.CompactBanachimport OAI.Geometry.DoublingHilbert.Mainimport OAI.Geometry.HarmonicGrowth.Mainimport OAI.Geometry.HeilbronnTriangleimport OAI.Geometry.HyperbolicGroups.BipartiteLinkimport OAI.Geometry.HyperbolicGroups.ClosedPictureimport OAI.Geometry.HyperbolicGroups.LetterFillingAreaimport OAI.Geometry.HyperbolicGroups.LocalSegmentContinuationimport OAI.Geometry.HyperbolicGroups.LocalSegmentToolsimport OAI.Geometry.HyperbolicGroups.Mainimport OAI.Geometry.HyperbolicGroups.Parityimport OAI.Geometry.HyperbolicGroups.PolygonContractionimport OAI.Geometry.HyperbolicGroups.TreePathDepthimport OAI.Geometry.HypersurfaceGerms.Mainimport OAI.Geometry.Immersion.ClosedSurface.Mainimport OAI.Geometry.IntegralFillings.Mainimport OAI.Geometry.IsometricImmersion.Allimport OAI.Geometry.Kahlerimport OAI.Geometry.KahlerSplitting.Mainimport OAI.Geometry.LatticeCoveringimport OAI.Geometry.LogVolume.BrunnMinkowskiimport OAI.Geometry.Manifold.ProjectiveSphereimport OAI.Geometry.NearbyLagrangian.Mainimport OAI.Geometry.NearbyLagrangian.TubeKernelimport OAI.Geometry.NegativeCurvature.Tubeimport OAI.Geometry.NilpotentCharts.Mainimport OAI.Geometry.NodalSets.Mainimport OAI.Geometry.Perimeter.Regularity.Mainimport OAI.Geometry.PeriodicTiling.Mainimport OAI.Geometry.PinnedDistances.Pinsimport OAI.Geometry.PlaneColoring.Fiveimport OAI.Geometry.PlaneColoring.Mainimport OAI.Geometry.PolarProducts.Mainimport OAI.Geometry.PrescribedPotential.AtlasLocalizationimport OAI.Geometry.PrescribedPotential.AugmentedVolumeimport OAI.Geometry.PrescribedPotential.CalabiFrameCalculusimport OAI.Geometry.PrescribedPotential.CalabiFrameScalarsimport OAI.Geometry.PrescribedPotential.CalabiRicciContractionimport OAI.Geometry.PrescribedPotential.ClosedRangeSmoothimport OAI.Geometry.PrescribedPotential.CommutatorSupportimport OAI.Geometry.PrescribedPotential.CompletedProductimport OAI.Geometry.PrescribedPotential.CompletedRealificationimport OAI.Geometry.PrescribedPotential.CompletedVolumeimport OAI.Geometry.PrescribedPotential.CoordinateEllipticityimport OAI.Geometry.PrescribedPotential.CoordinateExtensionimport OAI.Geometry.PrescribedPotential.CoordinateMinimumBoundimport OAI.Geometry.PrescribedPotential.CoordinatePotentialimport OAI.Geometry.PrescribedPotential.DerivativeEllipticGainimport OAI.Geometry.PrescribedPotential.DerivativeLocalizationimport OAI.Geometry.PrescribedPotential.EvenRellichimport OAI.Geometry.PrescribedPotential.FixedScaleBootstrapimport OAI.Geometry.PrescribedPotential.FredholmKernelimport OAI.Geometry.PrescribedPotential.FredholmRegularityimport OAI.Geometry.PrescribedPotential.GlobalBoundsimport OAI.Geometry.PrescribedPotential.GlobalErrorimport OAI.Geometry.PrescribedPotential.GlobalFiniteEmbeddingimport OAI.Geometry.PrescribedPotential.GlobalNonlinearCommutatorimport OAI.Geometry.PrescribedPotential.GlobalProductimport OAI.Geometry.PrescribedPotential.GlobalRellichimport OAI.Geometry.PrescribedPotential.GlobalSmoothimport OAI.Geometry.PrescribedPotential.HigherMetricOperatorimport OAI.Geometry.PrescribedPotential.HigherPoissonimport OAI.Geometry.PrescribedPotential.HigherResolventimport OAI.Geometry.PrescribedPotential.LinearizedCommutatorimport OAI.Geometry.PrescribedPotential.MetricQuasilinearEquationimport OAI.Geometry.PrescribedPotential.NonlinearCoreCommutatorimport OAI.Geometry.PrescribedPotential.NonlinearRemainderStrongimport OAI.Geometry.PrescribedPotential.PathCalabiBoundimport OAI.Geometry.PrescribedPotential.PathCoordinateDensityimport OAI.Geometry.PrescribedPotential.PathFrameBoundsimport OAI.Geometry.PrescribedPotential.PointPoissonimport OAI.Geometry.PrescribedPotential.PositiveOpennessimport OAI.Geometry.PrescribedPotential.PositivePotentialLinearizationimport OAI.Geometry.PrescribedPotential.PotentialDensityDifferentialimport OAI.Geometry.PrescribedPotential.PrescribedPotentialimport OAI.Geometry.PrescribedPotential.QuantitativeResolventimport OAI.Geometry.PrescribedPotential.RealMapSmoothimport OAI.Geometry.PrescribedPotential.RealPoissonimport OAI.Geometry.PrescribedPotential.RealSmoothCompactnessimport OAI.Geometry.PrescribedPotential.RegularityCutoffsimport OAI.Geometry.PrescribedPotential.RegularityJetsimport OAI.Geometry.PrescribedPotential.SmoothChartInverseimport OAI.Geometry.PrescribedPotential.SmoothLocalPathimport OAI.Geometry.PrescribedPotential.SmoothPathLimitimport OAI.Geometry.PrescribedPotential.SmoothSequenceCompactnessimport OAI.Geometry.PrescribedPotential.SobolevDetDifferentialimport OAI.Geometry.PrescribedPotential.SobolevExponentialimport OAI.Geometry.PrescribedPotential.SobolevFirstGainimport OAI.Geometry.PrescribedPotential.SobolevOpennessimport OAI.Geometry.PrescribedPotential.TwoScaleRegularityimport OAI.Geometry.PrescribedPotential.UniformPathSobolevimport OAI.Geometry.PrescribedPotential.WeakDerivativeLocalizationimport OAI.Geometry.PrescribedPotential.WeakPositiveimport OAI.Geometry.PrescribedRicci.BoundedSmoothPoissonimport OAI.Geometry.PrescribedRicci.CalabiGradientimport OAI.Geometry.PrescribedRicci.CalabiMetricC1import OAI.Geometry.PrescribedRicci.CalabiRoughimport OAI.Geometry.PrescribedRicci.CalabiTraceimport OAI.Geometry.PrescribedRicci.CalabiTraceBoundimport OAI.Geometry.PrescribedRicci.ChernBianchiimport OAI.Geometry.PrescribedRicci.ChernLuConnectionimport OAI.Geometry.PrescribedRicci.ChernRoughimport OAI.Geometry.PrescribedRicci.CofactorCoreimport OAI.Geometry.PrescribedRicci.CofactorCoreEquationimport OAI.Geometry.PrescribedRicci.CofactorLocalizationimport OAI.Geometry.PrescribedRicci.CompactPathBoundsimport OAI.Geometry.PrescribedRicci.CompactPathRicciimport OAI.Geometry.PrescribedRicci.FixedCofactorBootstrapimport OAI.Geometry.PrescribedRicci.FixedCofactorStepimport OAI.Geometry.PrescribedRicci.GlobalSmoothCompactimport OAI.Geometry.PrescribedRicci.IntegratedKahlerEnergyimport OAI.Geometry.PrescribedRicci.JetProductL2import OAI.Geometry.PrescribedRicci.KahlerCauchySchwarzimport OAI.Geometry.PrescribedRicci.KahlerChartGradientimport OAI.Geometry.PrescribedRicci.KahlerChartLpimport OAI.Geometry.PrescribedRicci.KahlerEnergyProductimport OAI.Geometry.PrescribedRicci.KahlerIntegralPosimport OAI.Geometry.PrescribedRicci.KahlerL2Comparisonimport OAI.Geometry.PrescribedRicci.KahlerPoincareimport OAI.Geometry.PrescribedRicci.KahlerPoissonL2import OAI.Geometry.PrescribedRicci.KahlerSobolevimport OAI.Geometry.PrescribedRicci.KahlerVolumeMeasureimport OAI.Geometry.PrescribedRicci.KahlerVolumeVariationimport OAI.Geometry.PrescribedRicci.MongeAmpereC0import OAI.Geometry.PrescribedRicci.MongeAmpereEnergyimport OAI.Geometry.PrescribedRicci.MongeAmpereL2import OAI.Geometry.PrescribedRicci.NormalizeVolumePathimport OAI.Geometry.PrescribedRicci.PathLocalGainimport OAI.Geometry.PrescribedRicci.PathUniformHigherimport OAI.Geometry.PrescribedRicci.PathUniformSobolevBaseimport OAI.Geometry.PrescribedRicci.PositiveOpennessimport OAI.Geometry.PrescribedRicci.PositivePathLimitimport OAI.Geometry.PrescribedRicci.PrescribedRicciimport OAI.Geometry.PrescribedRicci.SmoothLocalInverseimport OAI.Geometry.PrescribedRicci.SmoothPathLimitimport OAI.Geometry.PrescribedRicci.SmoothPositivePathimport OAI.Geometry.PrescribedRicci.TameCofactorGainimport OAI.Geometry.PrescribedRicci.TraceMaximumimport OAI.Geometry.PrescribedRicci.UniformCalabiimport OAI.Geometry.PrescribedRicci.UniformChernLuimport OAI.Geometry.PrescribedRicci.UniformMetricBoundsimport OAI.Geometry.PrescribedRicci.UniformPathPatchesimport OAI.Geometry.PrescribedRicci.WeightedMongeAmpereEnergyimport OAI.Geometry.ProjectionBodies.Mainimport OAI.Geometry.ProjectionBody.Mainimport OAI.Geometry.ProjectionVolume.Mainimport OAI.Geometry.QuadricBundles.Mainimport OAI.Geometry.Riemannian.HarmonicCore.Mainimport OAI.Geometry.RuledCovering.Mainimport OAI.Geometry.SmoothYau.Mainimport OAI.Geometry.SplitTangent.AllCompactLeavesimport OAI.Geometry.SplitTangent.AllProjectiveLeavesimport OAI.Geometry.SplitTangent.AnalyticFiniteRelationsimport OAI.Geometry.SplitTangent.ArbitraryPlaqueLeavesimport OAI.Geometry.SplitTangent.BasicDerivativeKernelimport OAI.Geometry.SplitTangent.BoxFirstTransportimport OAI.Geometry.SplitTangent.ChartSubmersionimport OAI.Geometry.SplitTangent.CompactLeafQuotientimport OAI.Geometry.SplitTangent.CompactPositiveLeafimport OAI.Geometry.SplitTangent.ComplementaryLeafIntersectionsimport OAI.Geometry.SplitTangent.DenseCompactLeavesimport OAI.Geometry.SplitTangent.DenseRationalVariationimport OAI.Geometry.SplitTangent.EmbeddedLeafChartsimport OAI.Geometry.SplitTangent.EmbeddedRationalCurveimport OAI.Geometry.SplitTangent.EmbeddedTangentLiftimport OAI.Geometry.SplitTangent.EverywhereSmoothLeafQuotientimport OAI.Geometry.SplitTangent.GenericLeafProductCoverimport OAI.Geometry.SplitTangent.GlobalAffineRelationsimport OAI.Geometry.SplitTangent.GlobalLeafRelationsimport OAI.Geometry.SplitTangent.GlobalProductsimport OAI.Geometry.SplitTangent.GlobalTopologicalProductimport OAI.Geometry.SplitTangent.HolomorphicBasicTransportimport OAI.Geometry.SplitTangent.HolomorphicLeafBasicimport OAI.Geometry.SplitTangent.HolomorphicManifoldProductimport OAI.Geometry.SplitTangent.IntegrabilityReductionimport OAI.Geometry.SplitTangent.IntrinsicPositiveLeafimport OAI.Geometry.SplitTangent.LeafAffineRelationsimport OAI.Geometry.SplitTangent.LeafAlgebraicDependenceimport OAI.Geometry.SplitTangent.LeafClosureRelationsimport OAI.Geometry.SplitTangent.LeafCompactLimitsimport OAI.Geometry.SplitTangent.LeafGermIdentityimport OAI.Geometry.SplitTangent.LeafHomogeneousRelationsimport OAI.Geometry.SplitTangent.LeafLimitRelationsimport OAI.Geometry.SplitTangent.LeafLimitsSinglePlaqueimport OAI.Geometry.SplitTangent.LeafPolynomialGrowthimport OAI.Geometry.SplitTangent.LeafProductsimport OAI.Geometry.SplitTangent.LeafTopologyimport OAI.Geometry.SplitTangent.ManifoldJetAnalyticimport OAI.Geometry.SplitTangent.OpenPositiveLeavesimport OAI.Geometry.SplitTangent.PlaqueConnectedSetsimport OAI.Geometry.SplitTangent.PlaqueTangentImageimport OAI.Geometry.SplitTangent.PolynomialLeafGermsimport OAI.Geometry.SplitTangent.PositiveCoverLiftimport OAI.Geometry.SplitTangent.ProductCriteriaimport OAI.Geometry.SplitTangent.ProjectiveHypersurfacesimport OAI.Geometry.SplitTangent.ProjectivePositiveLeafimport OAI.Geometry.SplitTangent.ProjectiveTangentBoximport OAI.Geometry.SplitTangent.QuotientSubmersionsimport OAI.Geometry.SplitTangent.RCCovariantVanishingimport OAI.Geometry.SplitTangent.RationalCoverLiftimport OAI.Geometry.SplitTangent.RationalReparamimport OAI.Geometry.SplitTangent.RationalVariationimport OAI.Geometry.SplitTangent.TangentCurveLeafimport OAI.Geometry.SplitTangent.TangentRationalChainsimport OAI.Geometry.SplitTangent.TransverseDiscreteimport OAI.Geometry.SplitTangent.TransverseQuotientimport OAI.Geometry.SplitTangent.ZariskiPairOpenimport OAI.Geometry.Symplectic.MorseBounds.Mainimport OAI.Geometry.TamingCompatibility.Mainimport OAI.Geometry.TranslativeCovering.Mainimport OAI.Geometry.TriangularCovering.Mainimport OAI.Geometry.UnitDistances.Mainimport OAI.Geometry.Varifold.NullComparisonimport OAI.Geometry.WeakHessian.Mainimport OAI.Geometry.WeakMTW.Mainimport OAI.GroupTheory.ArithmeticGerms.Stabilizersimport OAI.GroupTheory.ArtinCAT0.Mainimport OAI.GroupTheory.BooneHigman.Mainimport OAI.GroupTheory.CyclicSeries.Lengthimport OAI.GroupTheory.FiniteIndex.Realizationimport OAI.GroupTheory.FiniteKernel.VirtualAbelianimport OAI.GroupTheory.FiniteLattice.LabelledCollectionimport OAI.GroupTheory.FiniteLattice.NormalPreimageimport OAI.GroupTheory.FiniteType.Mainimport OAI.GroupTheory.Heisenberg.BarDetectorimport OAI.GroupTheory.Hyperbolic.Mainimport OAI.GroupTheory.Kervaire.Mainimport OAI.GroupTheory.PChains.Cancellationimport OAI.GroupTheory.PeriodicGroups.Mainimport OAI.GroupTheory.SimpleAmenable.Mainimport OAI.GroupTheory.SimpleOvergroups.Mainimport OAI.GroupTheory.Thompson.Mainimport OAI.GroupTheory.UniversalGroup.Mainimport OAI.InformationTheory.AmplitudeDamping.Mainimport OAI.InformationTheory.BooleanNoise.Mainimport OAI.InformationTheory.DimensionTen.StateKeyimport OAI.InformationTheory.Entanglement.Mainimport OAI.InformationTheory.PhotonNumber.Inequalityimport OAI.InformationTheory.QuantumCircuit.Mainimport OAI.InformationTheory.QuantumCircuit.Regularityimport OAI.InformationTheory.SecretKey.DimensionTenimport OAI.InformationTheory.SecretKey.Mainimport OAI.InformationTheory.SoftChannel.Mainimport OAI.LinearAlgebra.Barker.Mainimport OAI.LinearAlgebra.CirculantHadamard.Mainimport OAI.LinearAlgebra.CliffordAlgebra.KugaSatakeimport OAI.LinearAlgebra.Descent.Rationalimport OAI.LinearAlgebra.Hadamard.Mainimport OAI.LinearAlgebra.MatrixFields.Mainimport OAI.LinearAlgebra.MatrixMultiplication.Mainimport OAI.LinearAlgebra.TensorProduct.ScalarDescentimport OAI.MathematicalPhysics.AlternatingFlow.Developmentimport OAI.MathematicalPhysics.Anderson.Certificatesimport OAI.MathematicalPhysics.BFSS.Mainimport OAI.MathematicalPhysics.Coulomb.OuterRadiusimport OAI.MathematicalPhysics.CriticalMixing.Mainimport OAI.MathematicalPhysics.CriticalSK.LowerExponentsimport OAI.MathematicalPhysics.CriticalSK.Mainimport OAI.MathematicalPhysics.Elasticity.Uniquenessimport OAI.MathematicalPhysics.HardSphere.GrandCanonicalimport OAI.MathematicalPhysics.Heisenberg.Mainimport OAI.MathematicalPhysics.NavierStokes.BalancedTransport.MainResultimport OAI.MathematicalPhysics.NavierStokes.Material.Mainimport OAI.MathematicalPhysics.NavierStokes.ShearFlows.Mainimport OAI.MathematicalPhysics.NavierStokes.VelocityDetection.Mainimport OAI.MathematicalPhysics.PEPSFilters.GeometricOptimizerimport OAI.MathematicalPhysics.PEPSMove.PhysicalMoveimport OAI.MathematicalPhysics.PEPSSubvolume.Mainimport OAI.MathematicalPhysics.PlanarAnderson.Spectrumimport OAI.MathematicalPhysics.PrefixFlows.Mainimport OAI.MathematicalPhysics.RapidForcing.Mainimport OAI.MathematicalPhysics.RecorderFlows.Mainimport OAI.MathematicalPhysics.SheetFlows.SheetProgramimport OAI.MathematicalPhysics.TensorNetwork.VectorColumnimport OAI.MeasureTheory.DyadicAvoidance.Mainimport OAI.MeasureTheory.Falconer.Mainimport OAI.MeasureTheory.FalconerCompletion.Mainimport OAI.MeasureTheory.SelfSimilar.Mainimport OAI.MeasureTheory.SelfSimilar.DimensionCorollariesimport OAI.ModelTheory.AbstractElementary.ModelExistenceimport OAI.ModelTheory.Categoricity.Mainimport OAI.ModelTheory.Choiceless.Separationimport OAI.NumberTheory.Catalan.Mainimport OAI.NumberTheory.CubicGauss.Mainimport OAI.NumberTheory.CubicGram.Mainimport OAI.NumberTheory.DirichletL.Hecke.Nonvanishingimport OAI.NumberTheory.DirichletL.Nonvanishingimport OAI.NumberTheory.DuffinSchaeffer.Reductionsimport OAI.NumberTheory.EgyptianFractions.Allimport OAI.NumberTheory.GaussianMoat.Mainimport OAI.NumberTheory.Jacobsthal.Mainimport OAI.NumberTheory.JointDickman.PaperMainimport OAI.NumberTheory.NumberField.UnitRadicalsimport OAI.NumberTheory.OrdinaryCorrelations.AbsoluteDefect.Mainimport OAI.NumberTheory.OrdinaryCorrelations.Elliott.Mainimport OAI.NumberTheory.OrdinaryCorrelations.HighTrace.Mainimport OAI.NumberTheory.Ostmann.Mainimport OAI.NumberTheory.PiExponent.Mainimport OAI.NumberTheory.PowerFree.Mainimport OAI.NumberTheory.PrimeGaps.RatioCorollaryimport OAI.NumberTheory.PrimePackets.Mainimport OAI.NumberTheory.QuadraticForms.ComponentLengthsimport OAI.NumberTheory.ShortEgyptian.Mainimport OAI.NumberTheory.SiegelZeros.Mainimport OAI.NumberTheory.SingleFold.Mainimport OAI.NumberTheory.TotientAsymptotic.Mainimport OAI.NumberTheory.TotientFibers.FiniteFiberimport OAI.Optimization.Tropical.TruffetCounterexampleimport OAI.Probability.Ballisticity.Mainimport OAI.Probability.Ballisticity.VelocityHemisphereimport OAI.Probability.BenjaminiSchrammimport OAI.Probability.BinarySweep.Mainimport OAI.Probability.ClassicalON.Mainimport OAI.Probability.Contingency.LocalRepairimport OAI.Probability.Contingency.PreparedResidualimport OAI.Probability.ContinuumTransition.Mainimport OAI.Probability.CoordinateSweeps.Mainimport OAI.Probability.CriticalPercolation.Mainimport OAI.Probability.CriticalZ3.Mainimport OAI.Probability.CubeShuffle.WeightedMomentsimport OAI.Probability.DilutedSpin.Mainimport OAI.Probability.DirectionalWalk.Mainimport OAI.Probability.EntangledGames.Mainimport OAI.Probability.FKPressure.Mainimport OAI.Probability.FirstPassage.Mainimport OAI.Probability.FKMaps.Convergenceimport OAI.Probability.FreeIsing.Mainimport OAI.Probability.GaussianInformation.Mainimport OAI.Probability.GaussianPropeller.Mainimport OAI.Probability.GaussianRegression.Mainimport OAI.Probability.GaussianReplacement.Streamingimport OAI.Probability.Honeycomb.FreeEnergyimport OAI.Probability.Honeycomb.TriangleVisitsimport OAI.Probability.Ising.Mainimport OAI.Probability.IsingPerceptron.FullReplicaIBPimport OAI.Probability.IsingPerceptron.VariationalFinitenessimport OAI.Probability.JammingConcavity.DeletionUniformRowEstimatesimport OAI.Probability.JammingConcavity.RowFiniteDiagonalRowGeneralInterpolationimport OAI.Probability.JammingConcavity.RowQuadraticTerminalLimitimport OAI.Probability.JammingConcavity.VarianceTensorizationimport OAI.Probability.LatticeSurface.Brownian.BrownianClockFacetimport OAI.Probability.LatticeSurface.Brownian.BrownianClockSupportimport OAI.Probability.LatticeSurface.Brownian.BrownianPathimport OAI.Probability.LatticeSurface.Brownian.BrownianPathIdentitiesimport OAI.Probability.LatticeSurface.Coercivity.HoleWeightedimport OAI.Probability.LatticeSurface.Convexity.ClusterDynamicsDefsimport OAI.Probability.LatticeSurface.Convexity.FiniteLevelBarrierimport OAI.Probability.LatticeSurface.Convexity.Metropolisimport OAI.Probability.LatticeSurface.Convexity.MetropolisSupportimport OAI.Probability.LatticeSurface.Convexity.ProductSumsimport OAI.Probability.LatticeSurface.Convexity.SupportUnitimport OAI.Probability.LatticeSurface.Convexity.TailNumericsimport OAI.Probability.LatticeSurface.Convexity.TransportResamplingimport OAI.Probability.LatticeSurface.Dynamics.CompactCouplingimport OAI.Probability.LatticeSurface.Dynamics.LatticeShiftimport OAI.Probability.LatticeSurface.Dynamics.ProjectionComparisonimport OAI.Probability.LatticeSurface.Dynamics.ProjectionGlobalimport OAI.Probability.LatticeSurface.Dynamics.ProjectionLimitimport OAI.Probability.LatticeSurface.Dynamics.TiltApplicationimport OAI.Probability.LatticeSurface.Dynamics.TiltSupportimport OAI.Probability.LatticeSurface.Dynamics.WeightedInitialimport OAI.Probability.LatticeSurface.Geometry.ContactVolumeimport OAI.Probability.LatticeSurface.Moments.Averagesimport OAI.Probability.Localization.Mainimport OAI.Probability.LogConcave.Mainimport OAI.Probability.MatroidProphetimport OAI.Probability.MatroidSecretary.Mainimport OAI.Probability.MemoryPrecision.Mainimport OAI.Probability.ParisiFinite.ParisiCanonicalTransportimport OAI.Probability.ParisiFinite.ParisiEntropyDecompositionimport OAI.Probability.ParisiFinite.RealShiftNormSqLeimport OAI.Probability.ParisiFinite.SpinFlipimport OAI.Probability.ParisiFinite.WeightedGradientFieldimport OAI.Probability.Perceptron.Mainimport OAI.Probability.PosteriorReplicas.Mainimport OAI.Probability.ProbabilityMeasure.ArctanCenterimport OAI.Probability.ProjectionMoments.Mainimport OAI.Probability.RadialTransition.DensityIntervalimport OAI.Probability.RadialTransition.Mainimport OAI.Probability.RandomSAT.Mainimport OAI.Probability.Renewal.Mainimport OAI.Probability.SATComputability.Mainimport OAI.Probability.SATVariance.Mainimport OAI.Probability.SKBarriers.Mainimport OAI.Probability.SKCutoff.Denominatorimport OAI.Probability.SKFluctuations.ComparisonMinimumRealOverlapConclusionimport OAI.Probability.SKGap.Mainimport OAI.Probability.SKSupport.Mainimport OAI.Probability.SKValue.Mainimport OAI.Probability.SLE.MainReductionimport OAI.Probability.SLE.MomentGaugeimport OAI.Probability.SLE.SausageChargeimport OAI.Probability.SLEGauge.Mainimport OAI.Probability.SLELocalization.CircleMeansimport OAI.Probability.SLELocalization.DriverStabilityimport OAI.Probability.SLELocalization.FilledObstacleimport OAI.Probability.SLELocalization.LoewnerCocycleimport OAI.Probability.SLELocalization.MappedExitimport OAI.Probability.SLELocalization.MeshSlabimport OAI.Probability.SLELocalization.PastObstacleimport OAI.Probability.SLELocalization.RetainedFirstMomentimport OAI.Probability.SLELocalization.SlitMapsimport OAI.Probability.SLELocalization.SpatialLimitimport OAI.Probability.SLELocalization.StrongRestartimport OAI.Probability.SLELocalization.TraceAvoidanceimport OAI.Probability.SLELocalization.TruncatedEnergyimport OAI.Probability.SignedSweeps.Mainimport OAI.Probability.SpanningForest.Mainimport OAI.Probability.SphericalField.Mainimport OAI.Probability.SphericalPerceptron.PressureComparisonimport OAI.Probability.StrongRayleighimport OAI.Probability.Subsphere.Mainimport OAI.Probability.SwitchChainimport OAI.Probability.ThorpCompatibility.Mainimport OAI.Probability.ThorpResults.FullDevelopmentimport OAI.Probability.ThorpRouting.Mainimport OAI.Probability.ThorpRouting.RegularTraceimport OAI.Probability.ThorpShuffle.FirstFourierimport OAI.Probability.ThorpShuffle.FirstMainimport OAI.Probability.ThorpShuffle.FixedLists.Mainimport OAI.Probability.ThorpShuffle.Mainimport OAI.Probability.ThreeState.Mainimport OAI.Probability.ThreeStateClauses.Mainimport OAI.Probability.TraceReconstructionimport OAI.Probability.UnimodularPercolation.CayleyMainimport OAI.Probability.UnimodularPercolation.Mainimport OAI.Probability.UnimodularPercolation.UnimodularMainimport OAI.Probability.Voronoi.CardyFormulaimport OAI.RepresentationTheory.AlperinWeights.Brauerimport OAI.RepresentationTheory.Block.Defectimport OAI.RepresentationTheory.FoulkesHoweimport OAI.RepresentationTheory.FoulkesSixth.Mainimport OAI.RepresentationTheory.GraphModels.NormalActionsimport OAI.RepresentationTheory.KazhdanLusztig.Invarianceimport OAI.RepresentationTheory.PartialPermutation.Mainimport OAI.RepresentationTheory.ProjectiveInduction.CosetTransportimport OAI.RepresentationTheory.RestrictedTilting.Mainimport OAI.RepresentationTheory.RowColumn.Occupiedimport OAI.RepresentationTheory.Saxl.Mainimport OAI.RepresentationTheory.SpinAngle.TypeAngleimport OAI.RepresentationTheory.TensorSquares.Mainimport OAI.RepresentationTheory.Torus.ConvexWeightsimport OAI.RepresentationTheory.VertexAlgebra.Mainimport OAI.RingTheory.BassTrace.Mainimport OAI.RingTheory.BassTrace.TorsionFreeimport OAI.RingTheory.DirectFiniteness.FinitelyPresentedimport OAI.RingTheory.DirectFiniteness.Mainimport OAI.RingTheory.DivisionRing.FiniteDescentimport OAI.RingTheory.FormalGroup.Mainimport OAI.RingTheory.GroupAction.TraceOneimport OAI.RingTheory.Kurosh.Mainimport OAI.RingTheory.Multiplicity.Mainimport OAI.RingTheory.Tachikawa.Counterexampleimport OAI.SetTheory.PartitionConsistency.Mainimport OAI.SetTheory.PartitionPrinciple.Mainimport OAI.Topology.ArtinGroups.Mainimport OAI.Topology.ArtinGroups.ParabolicIntersections.Mainimport OAI.Topology.EilenbergGanea.Mainimport OAI.Topology.TorusCompression.Boundaryimport OAI.Topology.CoarseAssemblyimport OAI.RepresentationTheory.UniversalSquare.Mainimport OAI.Probability.SKRatio.Mainimport OAI.Geometry.Relativity.CKS.Mainimport OAI.Geometry.SurfaceImmersion.Allimport OAI.GroupTheory.PolycyclicRecognition123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914import OAI.Algebra.AffineCancellation.Mainimport OAI.Algebra.AlgebraicObstruction.AlgebraicInputimport OAI.Algebra.AlgebraicObstruction.Holonomyimport OAI.Algebra.AuslanderReiten.Allimport OAI.Algebra.BogomolovPop.Injectivityimport OAI.Algebra.Cohomology.SemilinearCochainsimport OAI.Algebra.DepthFive.Mainimport OAI.Algebra.Determinantal.Mainimport OAI.Algebra.Divisor.Normalizationimport OAI.Algebra.Divisor.RationalRecoveryimport OAI.Algebra.Drinfeld.Completionimport OAI.Algebra.FiniteTensor.Mainimport OAI.Algebra.Finitistic.Mainimport OAI.Algebra.FinitisticAsymmetry.Mainimport OAI.Algebra.FormalGroup.Honda.Mainimport OAI.Algebra.FormulaHitting.Mainimport OAI.Algebra.FrobeniusObstruction.Obstructionimport OAI.Algebra.GroupRing.CylinderRetentionimport OAI.Algebra.GroupRing.Mainimport OAI.Algebra.MarkedTensor.Mainimport OAI.Algebra.Module.CompactPadicimport OAI.Algebra.OddKaplansky.GeneralTransferimport OAI.Algebra.PolynomialChains.Realimport OAI.Algebra.Universal.Cosetimport OAI.Algebra.Universal.GraphDecidabilityimport OAI.AlgebraicGeometry.AbhyankarSathaye.Counterexampleimport OAI.AlgebraicGeometry.CartierSectionsimport OAI.AlgebraicGeometry.CharacterVarietiesimport OAI.AlgebraicGeometry.CommutingDerivations.OrdinaryExtraMainimport OAI.AlgebraicGeometry.LogKodaira.FiberNegativeimport OAI.AlgebraicGeometry.LogKodaira.RootFactorimport OAI.AlgebraicGeometry.NumericalDimension.IndexedTransferimport OAI.AlgebraicGeometry.NumericalDimension.RelativeNegativityimport OAI.AlgebraicGeometry.NumericalDimension.TwistedPushforwardimport OAI.AlgebraicGeometry.PlaneCurves.Nagataimport OAI.AlgebraicGeometry.RelativeTriviality.RelativeTrivialityimport OAI.AlgebraicGeometry.SectionFields.Mainimport OAI.AlgebraicGeometry.Seshadri.Mainimport OAI.AlgebraicGeometry.Stability.NumericalWallsimport OAI.AlgebraicGeometry.StableCoordinate.Allimport OAI.AlgebraicGeometry.SurfaceConesimport OAI.Analysis.AffineBernstein.Mainimport OAI.Analysis.AllenCahn.Mainimport OAI.Analysis.AncientFlat.Mainimport OAI.Analysis.BackwardIntertwiners.AlgebraCorollaryimport OAI.Analysis.BernoulliCone.Mainimport OAI.Analysis.BiholderTransport.Mainimport OAI.Analysis.BoundedHochschild.AtomicPrimitivesimport OAI.Analysis.BoundedHochschild.CenterPowersimport OAI.Analysis.BoundedHochschild.CentralLinearPatchimport OAI.Analysis.BoundedHochschild.CocycleNormalPartsimport OAI.Analysis.BoundedHochschild.CommutativePrimitivesimport OAI.Analysis.BoundedHochschild.FactorFinitePathsimport OAI.Analysis.BoundedHochschild.FactorPrimitiveimport OAI.Analysis.BoundedHochschild.FreeWordsimport OAI.Analysis.BoundedHochschild.MainResultimport OAI.Analysis.BoundedHochschild.MatrixDisplacementimport OAI.Analysis.BoundedHochschild.TypeIICornersimport OAI.Analysis.BoundedHochschild.TypeIPrimitivesimport OAI.Analysis.BoundedHochschild.UnitaryLiftsimport OAI.Analysis.BoxTransport.Routingimport OAI.Analysis.Brenier.Stabilityimport OAI.Analysis.BrownMeasure.Mainimport OAI.Analysis.C0Absorption.Mainimport OAI.Analysis.CStarAlgebra.PureInfiniteness.Mainimport OAI.Analysis.CardinalInterpolation.ModTwelveimport OAI.Analysis.CharacterCriterion.Mainimport OAI.Analysis.CircleDomains.LengthAreaimport OAI.Analysis.CircleDomains.Developmentimport OAI.Analysis.Commutator.Mainimport OAI.Analysis.Conductivity.Mainimport OAI.Analysis.Cotype.Mainimport OAI.Analysis.CoulombIonization.Mainimport OAI.Analysis.CoulombRadii.Mainimport OAI.Analysis.CoulombTransport.Mainimport OAI.Analysis.Crouzeix.Mainimport OAI.Analysis.Daugavet.Mainimport OAI.Analysis.DiamondDistortion.Mainimport OAI.Analysis.DirectCrouzeix.Mainimport OAI.Analysis.DiskMaximal.Mainimport OAI.Analysis.FactorGeneration.Mainimport OAI.Analysis.FiniteFactor.Mainimport OAI.Analysis.ForestSpace.Mainimport OAI.Analysis.Fourier.HeightLayersimport OAI.Analysis.Fourier.SphereExtensionimport OAI.Analysis.FourierExtension.LpEstimateimport OAI.Analysis.FourierLLogL.PaperMainimport OAI.Analysis.FreeEntropy.Mainimport OAI.Analysis.FreeGroupFactor.Mainimport OAI.Analysis.FreeWords.Mainimport OAI.Analysis.Graph.Gradientsimport OAI.Analysis.GroupDeterminants.Mainimport OAI.Analysis.HardSphere.Mainimport OAI.Analysis.HenonEmden.Mainimport OAI.Analysis.HilbertCrouzeix.Mainimport OAI.Analysis.HotSpots.Mainimport OAI.Analysis.HyperbolicConesimport OAI.Analysis.Hyperinvariantimport OAI.Analysis.IncompressibleFlow.AffineExtensionimport OAI.Analysis.InnerProductSpace.ComplexSolvabilityimport OAI.Analysis.IntegralMeans.Mainimport OAI.Analysis.IntegralMeans.SharpEndpointsimport OAI.Analysis.InterpolatedFactors.Interpolationimport OAI.Analysis.IrrationalRotation.Mainimport OAI.Analysis.JiangSu.Mainimport OAI.Analysis.Kakeya.FixedScaleimport OAI.Analysis.Kaplansky.Mainimport OAI.Analysis.Kaplansky.StableFinitenessimport OAI.Analysis.Laughlin.Mainimport OAI.Analysis.Laughlin.UniformGapimport OAI.Analysis.LaughlinFock.Mainimport OAI.Analysis.LaughlinFock.TensorIntegralsimport OAI.Analysis.LaughlinGap.Mainimport OAI.Analysis.LaughlinGap.ThreeAveragingimport OAI.Analysis.LiebThirring.CoerciveInverseimport OAI.Analysis.LiebThirring.CompactAlternativeimport OAI.Analysis.LiebThirring.ContinuousRepresentativeimport OAI.Analysis.LiebThirring.DiscreteSpectrumimport OAI.Analysis.LiebThirring.Eigenspaceimport OAI.Analysis.LiebThirring.EigenvalueSumimport OAI.Analysis.LiebThirring.FormCongruenceimport OAI.Analysis.LiebThirring.FreeFormimport OAI.Analysis.LiebThirring.LocalCompactnessimport OAI.Analysis.LiebThirring.LocalWeightimport OAI.Analysis.LiebThirring.LowestEigenvalueimport OAI.Analysis.LiebThirring.Mainimport OAI.Analysis.LiebThirring.Multiplicationimport OAI.Analysis.LiebThirring.NegativeResolventimport OAI.Analysis.LiebThirring.OneStateimport OAI.Analysis.LiebThirring.OperatorFormimport OAI.Analysis.LiebThirring.OperatorGraphimport OAI.Analysis.LiebThirring.PotentialCompactnessimport OAI.Analysis.LiebThirring.PotentialSplitimport OAI.Analysis.LiebThirring.Resolventimport OAI.Analysis.LiebThirring.SchrodingerOperatorimport OAI.Analysis.LiebThirring.SobolevBoundimport OAI.Analysis.LiebThirring.SpectralMainimport OAI.Analysis.LiebThirring.SpectralMomentimport OAI.Analysis.LiebThirring.WeightedCutoffimport OAI.Analysis.LienardCycles.Mainimport OAI.Analysis.Lipschitz.TriangularLatticeimport OAI.Analysis.LipschitzEquivalence.Mainimport OAI.Analysis.LipschitzFree.Mainimport OAI.Analysis.LipschitzFree.Renormingimport OAI.Analysis.LipschitzHilbert.Mainimport OAI.Analysis.Littlewood.Mainimport OAI.Analysis.Littlewood.FiniteFlatnessimport OAI.Analysis.LpDimension.Mainimport OAI.Analysis.Mahlerimport OAI.Analysis.Mahler.Classificationimport OAI.Analysis.MarkovType.Allimport OAI.Analysis.MassAction.Mainimport OAI.Analysis.MatrixSigning.Mainimport OAI.Analysis.MetricEntropy.Mainimport OAI.Analysis.ModularRecovery.Mainimport OAI.Analysis.MumfordShah.CompactExclusionimport OAI.Analysis.MutuallyUnbiased.Bases.ThreeMainimport OAI.Analysis.MutuallyUnbiased.Mainimport OAI.Analysis.Naimark.Tracialimport OAI.Analysis.NavierStokes.VelocitySpaceimport OAI.Analysis.NefAdjoint.FractionalDensityimport OAI.Analysis.NefAdjoint.SectionGaugeimport OAI.Analysis.NodalLength.Mainimport OAI.Analysis.Nonexpansiveimport OAI.Analysis.NuclearUltrapower.Mainimport OAI.Analysis.NumericalRange.Mainimport OAI.Analysis.PathSelection.Mainimport OAI.Analysis.PeriodicLattice.Mainimport OAI.Analysis.PlanarEndpoint.Mainimport OAI.Analysis.Polynomial.Exhaustionimport OAI.Analysis.ProductSpaces.Mainimport OAI.Analysis.Pureness.Mainimport OAI.Analysis.Quantum.DimensionTen.Mainimport OAI.Analysis.RCDHeat.Mainimport OAI.Analysis.RecursivePotentials.EquivalentNormsimport OAI.Analysis.RecursivePotentials.JoinedGeometryimport OAI.Analysis.RecursivePotentials.Mainimport OAI.Analysis.RecursivePotentials.Modelimport OAI.Analysis.RecursivePotentials.TreeGeometryimport OAI.Analysis.RecursivePotentials.VariableCompletionimport OAI.Analysis.RecursivePotentials.VariableEstimatesimport OAI.Analysis.RecursivePotentials.VariableLpimport OAI.Analysis.RecursivePotentials.VariableStabilityimport OAI.Analysis.RecursivePotentials.ZeroRootGeometryimport OAI.Analysis.RelativeGeneration.Mainimport OAI.Analysis.RieszRectifiability.Mainimport OAI.Analysis.RotationWeights.Mainimport OAI.Analysis.SegmentLenses.HeadRangesimport OAI.Analysis.SegmentLenses.Mainimport OAI.Analysis.SeparableQuotients.Mainimport OAI.Analysis.SeparableQuotients.Positive.Mainimport OAI.Analysis.SignedDisk.Mainimport OAI.Analysis.SphereIsometry.Mainimport OAI.Analysis.Steinitz.Mainimport OAI.Analysis.StrictMeans.Mainimport OAI.Analysis.StructuralCrouzeix.Endpointimport OAI.Analysis.SymmetricDomains.Mainimport OAI.Analysis.TemperedDistribution.ConformalIdentitiesimport OAI.Analysis.TraceCone.Mainimport OAI.Analysis.TracialCohomology.Vanishingimport OAI.Analysis.TracialSplitting.Mainimport OAI.Analysis.TreePotential.Mainimport OAI.Analysis.Triangular.Mainimport OAI.Analysis.TriangularHilbert.Mainimport OAI.Analysis.Unitarizability.AllDiscreteimport OAI.Analysis.Unitarizability.UniverseTransportimport OAI.Analysis.VlasovMaxwell.Mainimport OAI.Analysis.WeakInfiniteness.Mainimport OAI.CategoryTheory.Globular.Mainimport OAI.CategoryTheory.ThickClosure.Mainimport OAI.CategoryTheory.Thomason.RankedFaithfulnessimport OAI.Combinatorics.Automata.Mainimport OAI.Combinatorics.BalancedRyser.Mainimport OAI.Combinatorics.BooleanFunctions.Mainimport OAI.Combinatorics.Chromatic.Mainimport OAI.Combinatorics.CliqueFree.Mainimport OAI.Combinatorics.Coboundary.Mainimport OAI.Combinatorics.CompleteCrossing.Mainimport OAI.Combinatorics.ContingencyTables.FactorialLiftimport OAI.Combinatorics.Crossing.Mainimport OAI.Combinatorics.CycleDecomposition.Mainimport OAI.Combinatorics.DiscreteConvexity.Mainimport OAI.Combinatorics.Distances.PolynomialIsolationimport OAI.Combinatorics.EditDistance.Mainimport OAI.Combinatorics.EuclideanRamsey.Circleimport OAI.Combinatorics.EuclideanRamsey.Mainimport OAI.Combinatorics.EuclideanRamsey.NineStatementimport OAI.Combinatorics.EuclideanRamsey.Quadraticimport OAI.Combinatorics.EuclideanRamsey.Sphericalimport OAI.Combinatorics.EuclideanRamsey.Transitiveimport OAI.Combinatorics.ExpectationThreshold.Mainimport OAI.Combinatorics.FiniteCircle.Mainimport OAI.Combinatorics.GotsmanLinial.Mainimport OAI.Combinatorics.GraphSpectrum.SampledChromaticimport OAI.Combinatorics.GraphThreshold.Mainimport OAI.Combinatorics.HadwigerCounterexample.Mainimport OAI.Combinatorics.HalvingLines.Mainimport OAI.Combinatorics.Hamiltonian.Mainimport OAI.Combinatorics.Honeycomb.FiniteCylinderimport OAI.Combinatorics.Honeycomb.PolygonMomentimport OAI.Combinatorics.HoneycombBridges.ExactLengthimport OAI.Combinatorics.HoneycombBridges.Geometryimport OAI.Combinatorics.HoneycombChordsimport OAI.Combinatorics.HoneycombCorridor.CorridorTransferimport OAI.Combinatorics.IndependentSets.Mainimport OAI.Combinatorics.InfiniteMatroid.Corollariesimport OAI.Combinatorics.InfiniteMatroid.Mainimport OAI.Combinatorics.KMedian.Mainimport OAI.Combinatorics.KMedian.Thresholdimport OAI.Combinatorics.KMedianRecovery.Mainimport OAI.Combinatorics.KMedianRecovery.Refined.Mainimport OAI.Combinatorics.KMedianRecovery.Refined.Recoveryimport OAI.Combinatorics.KServer.Mainimport OAI.Combinatorics.ListHadwiger.Mainimport OAI.Combinatorics.MatchingCount.Mainimport OAI.Combinatorics.MatchingEntropy.Mainimport OAI.Combinatorics.Permanent.Mainimport OAI.Combinatorics.PolynomialVacuum.Mainimport OAI.Combinatorics.PortMatching.Reductionimport OAI.Combinatorics.Progressions.Mainimport OAI.Combinatorics.Ramsey.CycleClique.Mainimport OAI.Combinatorics.Ramsey.Hypercubeimport OAI.Combinatorics.RamseyFive.Mainimport OAI.Combinatorics.StableGraphs.ExteriorBoundsimport OAI.Combinatorics.StripMass.Mainimport OAI.Combinatorics.SumProduct.Alignment.Mainimport OAI.Combinatorics.ThinTrees.AlgorithmicMainimport OAI.Combinatorics.TriangleFace.Mainimport OAI.Combinatorics.MatchingPSD.AffineLiftimport OAI.Combinatorics.MatchingPSD.Mainimport OAI.Combinatorics.MatrixRemoval.Mainimport OAI.Combinatorics.MatroidCounting.CommonBasesimport OAI.Combinatorics.ParityLifts.AsymptoticBoundsimport OAI.Combinatorics.PerfectMatching.AlgorithmPartitionimport OAI.Combinatorics.PerfectMatching.Ascentimport OAI.Combinatorics.PerfectMatching.CompletePairsimport OAI.Combinatorics.PerfectMatching.Completionimport OAI.Combinatorics.PerfectMatching.CountCorrectimport OAI.Combinatorics.PerfectMatching.DyadicEntropyimport OAI.Combinatorics.PerfectMatching.DyadicEnvelopeimport OAI.Combinatorics.PerfectMatching.ElementaryCountimport OAI.Combinatorics.PerfectMatching.EntropyUpperimport OAI.Combinatorics.PerfectMatching.FeasibilityRepairimport OAI.Combinatorics.PerfectMatching.ForcedReductionimport OAI.Combinatorics.PerfectMatching.Mainimport OAI.Combinatorics.PerfectMatching.Modelimport OAI.Combinatorics.PerfectMatching.ObjectivePenaltyimport OAI.Combinatorics.PerfectMatching.ParameterBoundsimport OAI.Combinatorics.PerfectMatching.Partitionimport OAI.Combinatorics.PerfectMatching.Separableimport OAI.Combinatorics.PerfectMatching.SeparableCountimport OAI.Combinatorics.PerfectMatching.SeparableCovarianceimport OAI.Combinatorics.PerfectMatching.SeparableLowerimport OAI.Combinatorics.PerfectMatching.SizeBoundsimport OAI.Combinatorics.PerfectMatching.Violationimport OAI.Combinatorics.PerfectMatching.WeightedSpectrumimport OAI.Combinatorics.PlanarL1.Embeddingimport OAI.Combinatorics.ProgressionColoring.Mainimport OAI.Combinatorics.Ryser.Mainimport OAI.Combinatorics.Ryser.OddExtensionsimport OAI.Combinatorics.SecondNeighborhood.Mainimport OAI.Combinatorics.Sensitivity.Mainimport OAI.Combinatorics.SharpRamsey.Mainimport OAI.Combinatorics.SharpThreshold.Mainimport OAI.Combinatorics.Sidorenko.RandomHostimport OAI.Combinatorics.SnakyCertificate.Mainimport OAI.Combinatorics.SparsestCut.Mainimport OAI.Combinatorics.SphericalRamseyimport OAI.Combinatorics.SphericalRamsey.Resultimport OAI.Combinatorics.SquareDifference.Mainimport OAI.Combinatorics.ThinTrees.Mainimport OAI.Combinatorics.TreeEdit.Mainimport OAI.Combinatorics.TreewidthL1.Mainimport OAI.Combinatorics.TriangleRemoval.Mainimport OAI.Combinatorics.TwoWayAutomata.ExplicitFamilyimport OAI.Combinatorics.TwoWayAutomata.Mainimport OAI.Combinatorics.TwoWayAutomata.PolynomialBoundimport OAI.Combinatorics.UniformKServer.Mainimport OAI.Combinatorics.VariableWLimport OAI.Combinatorics.YoungDiagram.RealCapacityimport OAI.Combinatorics.YoungDiagram.RealLargeCapacityimport OAI.Computability.BinPacking.Mainimport OAI.Computability.DegreeRigidity.Mainimport OAI.Computability.DepthThreeimport OAI.Computability.DeterministicSum.Mainimport OAI.Computability.DirectedFeedback.Mainimport OAI.Computability.FourierCircuit.Mainimport OAI.Computability.FourierTransform.Mainimport OAI.Computability.GeneralizedCircuits.Meshimport OAI.Computability.Logspace.Deterministicimport OAI.Computability.Logspace.Equalityimport OAI.Computability.LoopMatching.Endpointimport OAI.Computability.MatchingCount.ArgRoutineimport OAI.Computability.MatchingCount.BinaryAlgorithmimport OAI.Computability.MatchingCount.BinaryParserimport OAI.Computability.MatchingCount.BinarySolveimport OAI.Computability.MatchingCount.CappedPowerimport OAI.Computability.MatchingCount.CutAlgebraimport OAI.Computability.MatchingCount.DenseOracleimport OAI.Computability.MatchingCount.DivisionRoutineimport OAI.Computability.MatchingCount.FiniteStackimport OAI.Computability.MatchingCount.FoldRoutineimport OAI.Computability.MatchingCount.GuardRoutineimport OAI.Computability.MatchingCount.IntegerRoutineimport OAI.Computability.MatchingCount.IterateRoutineimport OAI.Computability.MatchingCount.LengthRoutineimport OAI.Computability.MatchingCount.ListNumericimport OAI.Computability.MatchingCount.ListRoutineimport OAI.Computability.MatchingCount.MapRoutineimport OAI.Computability.MatchingCount.OddCutParityimport OAI.Computability.MatchingCount.OddCutUncrossimport OAI.Computability.MatchingCount.OddMincutimport OAI.Computability.MatchingCount.OptionCasesimport OAI.Computability.MatchingCount.OracleBoundsimport OAI.Computability.MatchingCount.OrbitRoutineimport OAI.Computability.MatchingCount.PairRoutineimport OAI.Computability.MatchingCount.ParamRoutineimport OAI.Computability.MatchingCount.ParserSupportimport OAI.Computability.MatchingCount.PolyCodingimport OAI.Computability.MatchingCount.ProjectionRoutineimport OAI.Computability.MatchingCount.RawBitsBridgeimport OAI.Computability.MatchingCount.RawContractionimport OAI.Computability.MatchingCount.RawContractionCompilerimport OAI.Computability.MatchingCount.RawDataimport OAI.Computability.MatchingCount.RawFlowimport OAI.Computability.MatchingCount.RawFlowCompilerimport OAI.Computability.MatchingCount.RawFlowSizeimport OAI.Computability.MatchingCount.RawInputimport OAI.Computability.MatchingCount.RawOddBoundsimport OAI.Computability.MatchingCount.RawOddCompilerimport OAI.Computability.MatchingCount.RawOddCutimport OAI.Computability.MatchingCount.RawOptimizerimport OAI.Computability.MatchingCount.RawOptimizerCompilerimport OAI.Computability.MatchingCount.RawOptimizerDataimport OAI.Computability.MatchingCount.RawOptimizerDataCompilerimport OAI.Computability.MatchingCount.RawOptimizerRowsimport OAI.Computability.MatchingCount.RawOptimizerRowsCompilerimport OAI.Computability.MatchingCount.RawPrimitivesimport OAI.Computability.MatchingCount.RawRoutineimport OAI.Computability.MatchingCount.RawSearchimport OAI.Computability.MatchingCount.RawSearchCompilerimport OAI.Computability.MatchingCount.RawSearchSizeimport OAI.Computability.MatchingCount.RawSizeimport OAI.Computability.MatchingCount.RecursiveBoundsimport OAI.Computability.MatchingCount.RecursiveCodingimport OAI.Computability.MatchingCount.RecursiveCompilerimport OAI.Computability.MatchingCount.RecursiveEvalimport OAI.Computability.MatchingCount.ResidualSearchimport OAI.Computability.MatchingCount.ScaledAlgorithmimport OAI.Computability.MatchingCount.ScaledBoundsimport OAI.Computability.MatchingCount.ScaledStateimport OAI.Computability.MatchingCount.SelectRoutineimport OAI.Computability.MatchingCount.SequenceRoutineimport OAI.Computability.MatchingCount.StackCopyimport OAI.Computability.MatchingCount.StackEmbedimport OAI.Computability.MatchingCount.StackFrameimport OAI.Computability.MatchingCount.StackMacrosimport OAI.Computability.MatchingCount.StackPairimport OAI.Computability.MatchingCount.StackRoutineimport OAI.Computability.MatchingCount.SumRoutineimport OAI.Computability.MatchingCount.TerminalMincutimport OAI.Computability.MatchingCount.UnaryArithmeticimport OAI.Computability.MatchingCount.UnaryClogimport OAI.Computability.MatchingCount.UnaryDivisionimport OAI.Computability.MatchingCount.UnitFlowimport OAI.Computability.MatchingCount.UnitMincutimport OAI.Computability.MaxCut.Mainimport OAI.Computability.MeanPayoff.Mainimport OAI.Computability.MinUncut.Mainimport OAI.Computability.PerfectCompleteness.Mainimport OAI.Computability.QuantumFactoring.Mainimport OAI.Computability.RandomMean.Mainimport OAI.Computability.RationalHitting.Mainimport OAI.Computability.Scheduling.Mainimport OAI.Computability.SpaceSimulation.Mainimport OAI.Computability.StarHeight.Mainimport OAI.Computability.Superstring.Mainimport OAI.Computability.TypeSystem.Normalizationimport OAI.Computability.UniqueGames.Mainimport OAI.Computability.VertexCover.Mainimport OAI.Computability.WLIdentification.Mainimport OAI.Computability.WeisfeilerLeman.Mainimport OAI.Computability.WitnessedChoice.Mainimport OAI.Dynamics.ConditionalShuffle.TwoColorsimport OAI.Dynamics.EntropyCounterexampleimport OAI.Dynamics.MultipleMixing.Mainimport OAI.Dynamics.SmoothObstruction.Mainimport OAI.Dynamics.StandardMap.ComponentsMainimport OAI.Dynamics.StandardMap.EntropyEndpointimport OAI.Dynamics.StandardMap.EntropyLyapunovimport OAI.Dynamics.ThreeTorus.Mainimport OAI.Dynamics.TriangleBilliards.Mainimport OAI.GameTheory.SnakyConditional.Mainimport OAI.GameTheory.SnakyTwentyOne.Mainimport OAI.Geometry.Anticanonical.BranchedQuotientimport OAI.Geometry.Anticanonical.DeckRecoveryimport OAI.Geometry.Anticanonical.DeletedFacesimport OAI.Geometry.Anticanonical.HilbertEstimatesimport OAI.Geometry.Arnold.Mainimport OAI.Geometry.BallPacking.Mainimport OAI.Geometry.BallPacking.Necessity.Mainimport OAI.Geometry.Borsuk.Mainimport OAI.Geometry.CAT0Fillings.Mainimport OAI.Geometry.Cannon.Mainimport OAI.Geometry.ConjugatePoints.ThreeManifoldimport OAI.Geometry.CoveringDensity.Mainimport OAI.Geometry.CubicTorus.Mainimport OAI.Geometry.CylinderCovering.Mainimport OAI.Geometry.DoublingHilbert.CompactBanachimport OAI.Geometry.DoublingHilbert.Mainimport OAI.Geometry.HarmonicGrowth.Mainimport OAI.Geometry.HeilbronnTriangleimport OAI.Geometry.HyperbolicGroups.BipartiteLinkimport OAI.Geometry.HyperbolicGroups.ClosedPictureimport OAI.Geometry.HyperbolicGroups.LetterFillingAreaimport OAI.Geometry.HyperbolicGroups.LocalSegmentContinuationimport OAI.Geometry.HyperbolicGroups.LocalSegmentToolsimport OAI.Geometry.HyperbolicGroups.Mainimport OAI.Geometry.HyperbolicGroups.Parityimport OAI.Geometry.HyperbolicGroups.PolygonContractionimport OAI.Geometry.HyperbolicGroups.TreePathDepthimport OAI.Geometry.HypersurfaceGerms.Mainimport OAI.Geometry.Immersion.ClosedSurface.Mainimport OAI.Geometry.IntegralFillings.Mainimport OAI.Geometry.IsometricImmersion.Allimport OAI.Geometry.Kahlerimport OAI.Geometry.KahlerSplitting.Mainimport OAI.Geometry.LatticeCoveringimport OAI.Geometry.LogVolume.BrunnMinkowskiimport OAI.Geometry.Manifold.ProjectiveSphereimport OAI.Geometry.NearbyLagrangian.Mainimport OAI.Geometry.NearbyLagrangian.TubeKernelimport OAI.Geometry.NegativeCurvature.Tubeimport OAI.Geometry.NilpotentCharts.Mainimport OAI.Geometry.NodalSets.Mainimport OAI.Geometry.Perimeter.Regularity.Mainimport OAI.Geometry.PeriodicTiling.Mainimport OAI.Geometry.PinnedDistances.Pinsimport OAI.Geometry.PlaneColoring.Fiveimport OAI.Geometry.PlaneColoring.Mainimport OAI.Geometry.PolarProducts.Mainimport OAI.Geometry.PrescribedPotential.AtlasLocalizationimport OAI.Geometry.PrescribedPotential.AugmentedVolumeimport OAI.Geometry.PrescribedPotential.CalabiFrameCalculusimport OAI.Geometry.PrescribedPotential.CalabiFrameScalarsimport OAI.Geometry.PrescribedPotential.CalabiRicciContractionimport OAI.Geometry.PrescribedPotential.ClosedRangeSmoothimport OAI.Geometry.PrescribedPotential.CommutatorSupportimport OAI.Geometry.PrescribedPotential.CompletedProductimport OAI.Geometry.PrescribedPotential.CompletedRealificationimport OAI.Geometry.PrescribedPotential.CompletedVolumeimport OAI.Geometry.PrescribedPotential.CoordinateEllipticityimport OAI.Geometry.PrescribedPotential.CoordinateExtensionimport OAI.Geometry.PrescribedPotential.CoordinateMinimumBoundimport OAI.Geometry.PrescribedPotential.CoordinatePotentialimport OAI.Geometry.PrescribedPotential.DerivativeEllipticGainimport OAI.Geometry.PrescribedPotential.DerivativeLocalizationimport OAI.Geometry.PrescribedPotential.EvenRellichimport OAI.Geometry.PrescribedPotential.FixedScaleBootstrapimport OAI.Geometry.PrescribedPotential.FredholmKernelimport OAI.Geometry.PrescribedPotential.FredholmRegularityimport OAI.Geometry.PrescribedPotential.GlobalBoundsimport OAI.Geometry.PrescribedPotential.GlobalErrorimport OAI.Geometry.PrescribedPotential.GlobalFiniteEmbeddingimport OAI.Geometry.PrescribedPotential.GlobalNonlinearCommutatorimport OAI.Geometry.PrescribedPotential.GlobalProductimport OAI.Geometry.PrescribedPotential.GlobalRellichimport OAI.Geometry.PrescribedPotential.GlobalSmoothimport OAI.Geometry.PrescribedPotential.HigherMetricOperatorimport OAI.Geometry.PrescribedPotential.HigherPoissonimport OAI.Geometry.PrescribedPotential.HigherResolventimport OAI.Geometry.PrescribedPotential.LinearizedCommutatorimport OAI.Geometry.PrescribedPotential.MetricQuasilinearEquationimport OAI.Geometry.PrescribedPotential.NonlinearCoreCommutatorimport OAI.Geometry.PrescribedPotential.NonlinearRemainderStrongimport OAI.Geometry.PrescribedPotential.PathCalabiBoundimport OAI.Geometry.PrescribedPotential.PathCoordinateDensityimport OAI.Geometry.PrescribedPotential.PathFrameBoundsimport OAI.Geometry.PrescribedPotential.PointPoissonimport OAI.Geometry.PrescribedPotential.PositiveOpennessimport OAI.Geometry.PrescribedPotential.PositivePotentialLinearizationimport OAI.Geometry.PrescribedPotential.PotentialDensityDifferentialimport OAI.Geometry.PrescribedPotential.PrescribedPotentialimport OAI.Geometry.PrescribedPotential.QuantitativeResolventimport OAI.Geometry.PrescribedPotential.RealMapSmoothimport OAI.Geometry.PrescribedPotential.RealPoissonimport OAI.Geometry.PrescribedPotential.RealSmoothCompactnessimport OAI.Geometry.PrescribedPotential.RegularityCutoffsimport OAI.Geometry.PrescribedPotential.RegularityJetsimport OAI.Geometry.PrescribedPotential.SmoothChartInverseimport OAI.Geometry.PrescribedPotential.SmoothLocalPathimport OAI.Geometry.PrescribedPotential.SmoothPathLimitimport OAI.Geometry.PrescribedPotential.SmoothSequenceCompactnessimport OAI.Geometry.PrescribedPotential.SobolevDetDifferentialimport OAI.Geometry.PrescribedPotential.SobolevExponentialimport OAI.Geometry.PrescribedPotential.SobolevFirstGainimport OAI.Geometry.PrescribedPotential.SobolevOpennessimport OAI.Geometry.PrescribedPotential.TwoScaleRegularityimport OAI.Geometry.PrescribedPotential.UniformPathSobolevimport OAI.Geometry.PrescribedPotential.WeakDerivativeLocalizationimport OAI.Geometry.PrescribedPotential.WeakPositiveimport OAI.Geometry.PrescribedRicci.BoundedSmoothPoissonimport OAI.Geometry.PrescribedRicci.CalabiGradientimport OAI.Geometry.PrescribedRicci.CalabiMetricC1import OAI.Geometry.PrescribedRicci.CalabiRoughimport OAI.Geometry.PrescribedRicci.CalabiTraceimport OAI.Geometry.PrescribedRicci.CalabiTraceBoundimport OAI.Geometry.PrescribedRicci.ChernBianchiimport OAI.Geometry.PrescribedRicci.ChernLuConnectionimport OAI.Geometry.PrescribedRicci.ChernRoughimport OAI.Geometry.PrescribedRicci.CofactorCoreimport OAI.Geometry.PrescribedRicci.CofactorCoreEquationimport OAI.Geometry.PrescribedRicci.CofactorLocalizationimport OAI.Geometry.PrescribedRicci.CompactPathBoundsimport OAI.Geometry.PrescribedRicci.CompactPathRicciimport OAI.Geometry.PrescribedRicci.FixedCofactorBootstrapimport OAI.Geometry.PrescribedRicci.FixedCofactorStepimport OAI.Geometry.PrescribedRicci.GlobalSmoothCompactimport OAI.Geometry.PrescribedRicci.IntegratedKahlerEnergyimport OAI.Geometry.PrescribedRicci.JetProductL2import OAI.Geometry.PrescribedRicci.KahlerCauchySchwarzimport OAI.Geometry.PrescribedRicci.KahlerChartGradientimport OAI.Geometry.PrescribedRicci.KahlerChartLpimport OAI.Geometry.PrescribedRicci.KahlerEnergyProductimport OAI.Geometry.PrescribedRicci.KahlerIntegralPosimport OAI.Geometry.PrescribedRicci.KahlerL2Comparisonimport OAI.Geometry.PrescribedRicci.KahlerPoincareimport OAI.Geometry.PrescribedRicci.KahlerPoissonL2import OAI.Geometry.PrescribedRicci.KahlerSobolevimport OAI.Geometry.PrescribedRicci.KahlerVolumeMeasureimport OAI.Geometry.PrescribedRicci.KahlerVolumeVariationimport OAI.Geometry.PrescribedRicci.MongeAmpereC0import OAI.Geometry.PrescribedRicci.MongeAmpereEnergyimport OAI.Geometry.PrescribedRicci.MongeAmpereL2import OAI.Geometry.PrescribedRicci.NormalizeVolumePathimport OAI.Geometry.PrescribedRicci.PathLocalGainimport OAI.Geometry.PrescribedRicci.PathUniformHigherimport OAI.Geometry.PrescribedRicci.PathUniformSobolevBaseimport OAI.Geometry.PrescribedRicci.PositiveOpennessimport OAI.Geometry.PrescribedRicci.PositivePathLimitimport OAI.Geometry.PrescribedRicci.PrescribedRicciimport OAI.Geometry.PrescribedRicci.SmoothLocalInverseimport OAI.Geometry.PrescribedRicci.SmoothPathLimitimport OAI.Geometry.PrescribedRicci.SmoothPositivePathimport OAI.Geometry.PrescribedRicci.TameCofactorGainimport OAI.Geometry.PrescribedRicci.TraceMaximumimport OAI.Geometry.PrescribedRicci.UniformCalabiimport OAI.Geometry.PrescribedRicci.UniformChernLuimport OAI.Geometry.PrescribedRicci.UniformMetricBoundsimport OAI.Geometry.PrescribedRicci.UniformPathPatchesimport OAI.Geometry.PrescribedRicci.WeightedMongeAmpereEnergyimport OAI.Geometry.ProjectionBodies.Mainimport OAI.Geometry.ProjectionBody.Mainimport OAI.Geometry.ProjectionVolume.Mainimport OAI.Geometry.QuadricBundles.Mainimport OAI.Geometry.Riemannian.HarmonicCore.Mainimport OAI.Geometry.RuledCovering.Mainimport OAI.Geometry.SmoothYau.Mainimport OAI.Geometry.SplitTangent.AllCompactLeavesimport OAI.Geometry.SplitTangent.AllProjectiveLeavesimport OAI.Geometry.SplitTangent.AnalyticFiniteRelationsimport OAI.Geometry.SplitTangent.ArbitraryPlaqueLeavesimport OAI.Geometry.SplitTangent.BasicDerivativeKernelimport OAI.Geometry.SplitTangent.BoxFirstTransportimport OAI.Geometry.SplitTangent.ChartSubmersionimport OAI.Geometry.SplitTangent.CompactLeafQuotientimport OAI.Geometry.SplitTangent.CompactPositiveLeafimport OAI.Geometry.SplitTangent.ComplementaryLeafIntersectionsimport OAI.Geometry.SplitTangent.DenseCompactLeavesimport OAI.Geometry.SplitTangent.DenseRationalVariationimport OAI.Geometry.SplitTangent.EmbeddedLeafChartsimport OAI.Geometry.SplitTangent.EmbeddedRationalCurveimport OAI.Geometry.SplitTangent.EmbeddedTangentLiftimport OAI.Geometry.SplitTangent.EverywhereSmoothLeafQuotientimport OAI.Geometry.SplitTangent.GenericLeafProductCoverimport OAI.Geometry.SplitTangent.GlobalAffineRelationsimport OAI.Geometry.SplitTangent.GlobalLeafRelationsimport OAI.Geometry.SplitTangent.GlobalProductsimport OAI.Geometry.SplitTangent.GlobalTopologicalProductimport OAI.Geometry.SplitTangent.HolomorphicBasicTransportimport OAI.Geometry.SplitTangent.HolomorphicLeafBasicimport OAI.Geometry.SplitTangent.HolomorphicManifoldProductimport OAI.Geometry.SplitTangent.IntegrabilityReductionimport OAI.Geometry.SplitTangent.IntrinsicPositiveLeafimport OAI.Geometry.SplitTangent.LeafAffineRelationsimport OAI.Geometry.SplitTangent.LeafAlgebraicDependenceimport OAI.Geometry.SplitTangent.LeafClosureRelationsimport OAI.Geometry.SplitTangent.LeafCompactLimitsimport OAI.Geometry.SplitTangent.LeafGermIdentityimport OAI.Geometry.SplitTangent.LeafHomogeneousRelationsimport OAI.Geometry.SplitTangent.LeafLimitRelationsimport OAI.Geometry.SplitTangent.LeafLimitsSinglePlaqueimport OAI.Geometry.SplitTangent.LeafPolynomialGrowthimport OAI.Geometry.SplitTangent.LeafProductsimport OAI.Geometry.SplitTangent.LeafTopologyimport OAI.Geometry.SplitTangent.ManifoldJetAnalyticimport OAI.Geometry.SplitTangent.OpenPositiveLeavesimport OAI.Geometry.SplitTangent.PlaqueConnectedSetsimport OAI.Geometry.SplitTangent.PlaqueTangentImageimport OAI.Geometry.SplitTangent.PolynomialLeafGermsimport OAI.Geometry.SplitTangent.PositiveCoverLiftimport OAI.Geometry.SplitTangent.ProductCriteriaimport OAI.Geometry.SplitTangent.ProjectiveHypersurfacesimport OAI.Geometry.SplitTangent.ProjectivePositiveLeafimport OAI.Geometry.SplitTangent.ProjectiveTangentBoximport OAI.Geometry.SplitTangent.QuotientSubmersionsimport OAI.Geometry.SplitTangent.RCCovariantVanishingimport OAI.Geometry.SplitTangent.RationalCoverLiftimport OAI.Geometry.SplitTangent.RationalReparamimport OAI.Geometry.SplitTangent.RationalVariationimport OAI.Geometry.SplitTangent.TangentCurveLeafimport OAI.Geometry.SplitTangent.TangentRationalChainsimport OAI.Geometry.SplitTangent.TransverseDiscreteimport OAI.Geometry.SplitTangent.TransverseQuotientimport OAI.Geometry.SplitTangent.ZariskiPairOpenimport OAI.Geometry.Symplectic.MorseBounds.Mainimport OAI.Geometry.TamingCompatibility.Mainimport OAI.Geometry.TranslativeCovering.Mainimport OAI.Geometry.TriangularCovering.Mainimport OAI.Geometry.UnitDistances.Mainimport OAI.Geometry.Varifold.NullComparisonimport OAI.Geometry.WeakHessian.Mainimport OAI.Geometry.WeakMTW.Mainimport OAI.GroupTheory.ArithmeticGerms.Stabilizersimport OAI.GroupTheory.ArtinCAT0.Mainimport OAI.GroupTheory.BooneHigman.Mainimport OAI.GroupTheory.CyclicSeries.Lengthimport OAI.GroupTheory.FiniteIndex.Realizationimport OAI.GroupTheory.FiniteKernel.VirtualAbelianimport OAI.GroupTheory.FiniteLattice.LabelledCollectionimport OAI.GroupTheory.FiniteLattice.NormalPreimageimport OAI.GroupTheory.FiniteType.Mainimport OAI.GroupTheory.Heisenberg.BarDetectorimport OAI.GroupTheory.Hyperbolic.Mainimport OAI.GroupTheory.Kervaire.Mainimport OAI.GroupTheory.PChains.Cancellationimport OAI.GroupTheory.PeriodicGroups.Mainimport OAI.GroupTheory.SimpleAmenable.Mainimport OAI.GroupTheory.SimpleOvergroups.Mainimport OAI.GroupTheory.Thompson.Mainimport OAI.GroupTheory.UniversalGroup.Mainimport OAI.InformationTheory.AmplitudeDamping.Mainimport OAI.InformationTheory.BooleanNoise.Mainimport OAI.InformationTheory.DimensionTen.StateKeyimport OAI.InformationTheory.Entanglement.Mainimport OAI.InformationTheory.PhotonNumber.Inequalityimport OAI.InformationTheory.QuantumCircuit.Mainimport OAI.InformationTheory.QuantumCircuit.Regularityimport OAI.InformationTheory.SecretKey.DimensionTenimport OAI.InformationTheory.SecretKey.Mainimport OAI.InformationTheory.SoftChannel.Mainimport OAI.LinearAlgebra.Barker.Mainimport OAI.LinearAlgebra.CirculantHadamard.Mainimport OAI.LinearAlgebra.CliffordAlgebra.KugaSatakeimport OAI.LinearAlgebra.Descent.Rationalimport OAI.LinearAlgebra.Hadamard.Mainimport OAI.LinearAlgebra.MatrixFields.Mainimport OAI.LinearAlgebra.MatrixMultiplication.Mainimport OAI.LinearAlgebra.TensorProduct.ScalarDescentimport OAI.MathematicalPhysics.AlternatingFlow.Developmentimport OAI.MathematicalPhysics.Anderson.Certificatesimport OAI.MathematicalPhysics.BFSS.Mainimport OAI.MathematicalPhysics.Coulomb.OuterRadiusimport OAI.MathematicalPhysics.CriticalMixing.Mainimport OAI.MathematicalPhysics.CriticalSK.LowerExponentsimport OAI.MathematicalPhysics.CriticalSK.Mainimport OAI.MathematicalPhysics.Elasticity.Uniquenessimport OAI.MathematicalPhysics.HardSphere.GrandCanonicalimport OAI.MathematicalPhysics.Heisenberg.Mainimport OAI.MathematicalPhysics.NavierStokes.BalancedTransport.MainResultimport OAI.MathematicalPhysics.NavierStokes.Material.Mainimport OAI.MathematicalPhysics.NavierStokes.ShearFlows.Mainimport OAI.MathematicalPhysics.NavierStokes.VelocityDetection.Mainimport OAI.MathematicalPhysics.PEPSFilters.GeometricOptimizerimport OAI.MathematicalPhysics.PEPSMove.PhysicalMoveimport OAI.MathematicalPhysics.PEPSSubvolume.Mainimport OAI.MathematicalPhysics.PlanarAnderson.Spectrumimport OAI.MathematicalPhysics.PrefixFlows.Mainimport OAI.MathematicalPhysics.RapidForcing.Mainimport OAI.MathematicalPhysics.RecorderFlows.Mainimport OAI.MathematicalPhysics.SheetFlows.SheetProgramimport OAI.MathematicalPhysics.TensorNetwork.VectorColumnimport OAI.MeasureTheory.DyadicAvoidance.Mainimport OAI.MeasureTheory.Falconer.Mainimport OAI.MeasureTheory.FalconerCompletion.Mainimport OAI.MeasureTheory.SelfSimilar.Mainimport OAI.MeasureTheory.SelfSimilar.DimensionCorollariesimport OAI.ModelTheory.AbstractElementary.ModelExistenceimport OAI.ModelTheory.Categoricity.Mainimport OAI.ModelTheory.Choiceless.Separationimport OAI.NumberTheory.Catalan.Mainimport OAI.NumberTheory.CubicGauss.Mainimport OAI.NumberTheory.CubicGram.Mainimport OAI.NumberTheory.DirichletL.Hecke.Nonvanishingimport OAI.NumberTheory.DirichletL.Nonvanishingimport OAI.NumberTheory.DuffinSchaeffer.Reductionsimport OAI.NumberTheory.EgyptianFractions.Allimport OAI.NumberTheory.GaussianMoat.Mainimport OAI.NumberTheory.Jacobsthal.Mainimport OAI.NumberTheory.JointDickman.PaperMainimport OAI.NumberTheory.NumberField.UnitRadicalsimport OAI.NumberTheory.OrdinaryCorrelations.AbsoluteDefect.Mainimport OAI.NumberTheory.OrdinaryCorrelations.Elliott.Mainimport OAI.NumberTheory.OrdinaryCorrelations.HighTrace.Mainimport OAI.NumberTheory.Ostmann.Mainimport OAI.NumberTheory.PiExponent.Mainimport OAI.NumberTheory.PowerFree.Mainimport OAI.NumberTheory.PrimeGaps.RatioCorollaryimport OAI.NumberTheory.PrimePackets.Mainimport OAI.NumberTheory.QuadraticForms.ComponentLengthsimport OAI.NumberTheory.ShortEgyptian.Mainimport OAI.NumberTheory.SiegelZeros.Mainimport OAI.NumberTheory.SingleFold.Mainimport OAI.NumberTheory.TotientAsymptotic.Mainimport OAI.NumberTheory.TotientFibers.FiniteFiberimport OAI.Optimization.Tropical.TruffetCounterexampleimport OAI.Probability.Ballisticity.Mainimport OAI.Probability.Ballisticity.VelocityHemisphereimport OAI.Probability.BenjaminiSchrammimport OAI.Probability.BinarySweep.Mainimport OAI.Probability.ClassicalON.Mainimport OAI.Probability.Contingency.LocalRepairimport OAI.Probability.Contingency.PreparedResidualimport OAI.Probability.ContinuumTransition.Mainimport OAI.Probability.CoordinateSweeps.Mainimport OAI.Probability.CriticalPercolation.Mainimport OAI.Probability.CriticalZ3.Mainimport OAI.Probability.CubeShuffle.WeightedMomentsimport OAI.Probability.DilutedSpin.Mainimport OAI.Probability.DirectionalWalk.Mainimport OAI.Probability.EntangledGames.Mainimport OAI.Probability.FKPressure.Mainimport OAI.Probability.FirstPassage.Mainimport OAI.Probability.FKMaps.Convergenceimport OAI.Probability.FreeIsing.Mainimport OAI.Probability.GaussianInformation.Mainimport OAI.Probability.GaussianPropeller.Mainimport OAI.Probability.GaussianRegression.Mainimport OAI.Probability.GaussianReplacement.Streamingimport OAI.Probability.Honeycomb.FreeEnergyimport OAI.Probability.Honeycomb.TriangleVisitsimport OAI.Probability.Ising.Mainimport OAI.Probability.IsingPerceptron.FullReplicaIBPimport OAI.Probability.IsingPerceptron.VariationalFinitenessimport OAI.Probability.JammingConcavity.DeletionUniformRowEstimatesimport OAI.Probability.JammingConcavity.RowFiniteDiagonalRowGeneralInterpolationimport OAI.Probability.JammingConcavity.RowQuadraticTerminalLimitimport OAI.Probability.JammingConcavity.VarianceTensorizationimport OAI.Probability.LatticeSurface.Brownian.BrownianClockFacetimport OAI.Probability.LatticeSurface.Brownian.BrownianClockSupportimport OAI.Probability.LatticeSurface.Brownian.BrownianPathimport OAI.Probability.LatticeSurface.Brownian.BrownianPathIdentitiesimport OAI.Probability.LatticeSurface.Coercivity.HoleWeightedimport OAI.Probability.LatticeSurface.Convexity.ClusterDynamicsDefsimport OAI.Probability.LatticeSurface.Convexity.FiniteLevelBarrierimport OAI.Probability.LatticeSurface.Convexity.Metropolisimport OAI.Probability.LatticeSurface.Convexity.MetropolisSupportimport OAI.Probability.LatticeSurface.Convexity.ProductSumsimport OAI.Probability.LatticeSurface.Convexity.SupportUnitimport OAI.Probability.LatticeSurface.Convexity.TailNumericsimport OAI.Probability.LatticeSurface.Convexity.TransportResamplingimport OAI.Probability.LatticeSurface.Dynamics.CompactCouplingimport OAI.Probability.LatticeSurface.Dynamics.LatticeShiftimport OAI.Probability.LatticeSurface.Dynamics.ProjectionComparisonimport OAI.Probability.LatticeSurface.Dynamics.ProjectionGlobalimport OAI.Probability.LatticeSurface.Dynamics.ProjectionLimitimport OAI.Probability.LatticeSurface.Dynamics.TiltApplicationimport OAI.Probability.LatticeSurface.Dynamics.TiltSupportimport OAI.Probability.LatticeSurface.Dynamics.WeightedInitialimport OAI.Probability.LatticeSurface.Geometry.ContactVolumeimport OAI.Probability.LatticeSurface.Moments.Averagesimport OAI.Probability.Localization.Mainimport OAI.Probability.LogConcave.Mainimport OAI.Probability.MatroidProphetimport OAI.Probability.MatroidSecretary.Mainimport OAI.Probability.MemoryPrecision.Mainimport OAI.Probability.ParisiFinite.ParisiCanonicalTransportimport OAI.Probability.ParisiFinite.ParisiEntropyDecompositionimport OAI.Probability.ParisiFinite.RealShiftNormSqLeimport OAI.Probability.ParisiFinite.SpinFlipimport OAI.Probability.ParisiFinite.WeightedGradientFieldimport OAI.Probability.Perceptron.Mainimport OAI.Probability.PosteriorReplicas.Mainimport OAI.Probability.ProbabilityMeasure.ArctanCenterimport OAI.Probability.ProjectionMoments.Mainimport OAI.Probability.RadialTransition.DensityIntervalimport OAI.Probability.RadialTransition.Mainimport OAI.Probability.RandomSAT.Mainimport OAI.Probability.Renewal.Mainimport OAI.Probability.SATComputability.Mainimport OAI.Probability.SATVariance.Mainimport OAI.Probability.SKBarriers.Mainimport OAI.Probability.SKCutoff.Denominatorimport OAI.Probability.SKFluctuations.ComparisonMinimumRealOverlapConclusionimport OAI.Probability.SKGap.Mainimport OAI.Probability.SKSupport.Mainimport OAI.Probability.SKValue.Mainimport OAI.Probability.SLE.MainReductionimport OAI.Probability.SLE.MomentGaugeimport OAI.Probability.SLE.SausageChargeimport OAI.Probability.SLEGauge.Mainimport OAI.Probability.SLELocalization.CircleMeansimport OAI.Probability.SLELocalization.DriverStabilityimport OAI.Probability.SLELocalization.FilledObstacleimport OAI.Probability.SLELocalization.LoewnerCocycleimport OAI.Probability.SLELocalization.MappedExitimport OAI.Probability.SLELocalization.MeshSlabimport OAI.Probability.SLELocalization.PastObstacleimport OAI.Probability.SLELocalization.RetainedFirstMomentimport OAI.Probability.SLELocalization.SlitMapsimport OAI.Probability.SLELocalization.SpatialLimitimport OAI.Probability.SLELocalization.StrongRestartimport OAI.Probability.SLELocalization.TraceAvoidanceimport OAI.Probability.SLELocalization.TruncatedEnergyimport OAI.Probability.SignedSweeps.Mainimport OAI.Probability.SpanningForest.Mainimport OAI.Probability.SphericalField.Mainimport OAI.Probability.SphericalPerceptron.PressureComparisonimport OAI.Probability.StrongRayleighimport OAI.Probability.Subsphere.Mainimport OAI.Probability.SwitchChainimport OAI.Probability.ThorpCompatibility.Mainimport OAI.Probability.ThorpResults.FullDevelopmentimport OAI.Probability.ThorpRouting.Mainimport OAI.Probability.ThorpRouting.RegularTraceimport OAI.Probability.ThorpShuffle.FirstFourierimport OAI.Probability.ThorpShuffle.FirstMainimport OAI.Probability.ThorpShuffle.FixedLists.Mainimport OAI.Probability.ThorpShuffle.Mainimport OAI.Probability.ThreeState.Mainimport OAI.Probability.ThreeStateClauses.Mainimport OAI.Probability.TraceReconstructionimport OAI.Probability.UnimodularPercolation.CayleyMainimport OAI.Probability.UnimodularPercolation.Mainimport OAI.Probability.UnimodularPercolation.UnimodularMainimport OAI.Probability.Voronoi.CardyFormulaimport OAI.RepresentationTheory.AlperinWeights.Brauerimport OAI.RepresentationTheory.Block.Defectimport OAI.RepresentationTheory.FoulkesHoweimport OAI.RepresentationTheory.FoulkesSixth.Mainimport OAI.RepresentationTheory.GraphModels.NormalActionsimport OAI.RepresentationTheory.KazhdanLusztig.Invarianceimport OAI.RepresentationTheory.PartialPermutation.Mainimport OAI.RepresentationTheory.ProjectiveInduction.CosetTransportimport OAI.RepresentationTheory.RestrictedTilting.Mainimport OAI.RepresentationTheory.RowColumn.Occupiedimport OAI.RepresentationTheory.Saxl.Mainimport OAI.RepresentationTheory.SpinAngle.TypeAngleimport OAI.RepresentationTheory.TensorSquares.Mainimport OAI.RepresentationTheory.Torus.ConvexWeightsimport OAI.RepresentationTheory.VertexAlgebra.Mainimport OAI.RingTheory.BassTrace.Mainimport OAI.RingTheory.BassTrace.TorsionFreeimport OAI.RingTheory.DirectFiniteness.FinitelyPresentedimport OAI.RingTheory.DirectFiniteness.Mainimport OAI.RingTheory.DivisionRing.FiniteDescentimport OAI.RingTheory.FormalGroup.Mainimport OAI.RingTheory.GroupAction.TraceOneimport OAI.RingTheory.Kurosh.Mainimport OAI.RingTheory.Multiplicity.Mainimport OAI.RingTheory.Tachikawa.Counterexampleimport OAI.SetTheory.PartitionConsistency.Mainimport OAI.SetTheory.PartitionPrinciple.Mainimport OAI.Topology.ArtinGroups.Mainimport OAI.Topology.ArtinGroups.ParabolicIntersections.Mainimport OAI.Topology.EilenbergGanea.Mainimport OAI.Topology.TorusCompression.Boundaryimport OAI.Topology.CoarseAssemblyimport OAI.RepresentationTheory.UniversalSquare.Mainimport OAI.Probability.SKRatio.Mainimport OAI.Geometry.Relativity.CKS.Mainimport OAI.Geometry.SurfaceImmersion.Allimport OAI.GroupTheory.PolycyclicRecognition
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190import OAI.Topology.CoarseAssembly.FiberedPersistenceimport OAI.Topology.CoarseAssembly.HomotopyFillingimport OAI.Topology.CoarseAssembly.LatticeHatimport OAI.Topology.CoarseAssembly.FilledDiscimport OAI.Topology.CoarseAssembly.FilledEdgesimport OAI.Topology.CoarseAssembly.FilledWalksimport OAI.Topology.CoarseAssembly.CompactFamilyMapimport OAI.Topology.CoarseAssembly.FamilyFillingimport OAI.Topology.CoarseAssembly.RipsProperEmbeddingimport OAI.Topology.CoarseAssembly.RoeInclusionimport OAI.Topology.CoarseAssembly.BoundaryGeometryimport OAI.Topology.CoarseAssembly.BoundaryWalksimport OAI.Topology.CoarseAssembly.BoundaryComponentsimport OAI.Topology.CoarseAssembly.HexagonSidesimport OAI.Topology.CoarseAssembly.RipsMapCalculusimport OAI.Topology.CoarseAssembly.RipsReindeximport OAI.Topology.CoarseAssembly.ConcretePersistenceimport OAI.Topology.CoarseAssembly.BoundaryLoopMapsimport OAI.Topology.CoarseAssembly.BoundaryAssemblyMapsimport OAI.Topology.CoarseAssembly.BoundaryConclusionimport OAI.Topology.CoarseAssembly.PublishedInputReductionimport OAI.Topology.CoarseAssembly.CycleCompactPerturbationimport OAI.Topology.CoarseAssembly.UnitalCycleNormalizationimport OAI.Topology.CoarseAssembly.FiniteCycleimport OAI.Topology.CoarseAssembly.FredholmSquareimport OAI.Topology.CoarseAssembly.UnitalCycleInvertibleimport OAI.Topology.CoarseAssembly.CompactFunctionalCalculusimport OAI.Topology.CoarseAssembly.RipsEmbeddingimport OAI.Topology.CoarseAssembly.ClopenRestrictionimport OAI.Topology.CoarseAssembly.ClopenNaturalityimport OAI.Topology.CoarseAssembly.CountableAdditivityimport OAI.Topology.CoarseAssembly.SeparatedRipsimport OAI.Topology.CoarseAssembly.RipsCompactSupportimport OAI.Topology.CoarseAssembly.RipsFamilyMapimport OAI.Topology.CoarseAssembly.RipsFamilyRestrictionimport OAI.Topology.CoarseAssembly.RipsPathCoarseningimport OAI.Topology.CoarseAssembly.CocycleCircleMapimport OAI.Topology.CoarseAssembly.RipsPathsimport OAI.Topology.CoarseAssembly.CocyclePathLiftingimport OAI.Topology.CoarseAssembly.FiniteRipsimport OAI.Topology.CoarseAssembly.RipsWindingTestimport OAI.Topology.CoarseAssembly.LoopCircleimport OAI.Topology.CoarseAssembly.CirclePairingimport OAI.Topology.CoarseAssembly.FiniteWindingIndeximport OAI.Topology.CoarseAssembly.InclusionModuleimport OAI.Topology.CoarseAssembly.BoundaryEmbeddingimport OAI.Topology.CoarseAssembly.SeparatedUnionimport OAI.Topology.CoarseAssembly.GraphMetricimport OAI.Topology.CoarseAssembly.SeparatedGeometryimport OAI.Topology.CoarseAssembly.ConcreteSpacesimport OAI.Topology.CoarseAssembly.ConcreteTransferMapsimport OAI.Topology.CoarseAssembly.ConcreteTransferimport OAI.Topology.CoarseAssembly.Averagingimport OAI.Topology.CoarseAssembly.ProjectionBlocksimport OAI.Topology.CoarseAssembly.SpatialAveragingimport OAI.Topology.CoarseAssembly.AveragingPropagationimport OAI.Topology.CoarseAssembly.KazhdanInputimport OAI.Topology.CoarseAssembly.TensorFibersimport OAI.Topology.CoarseAssembly.TransferCriterionimport OAI.Topology.CoarseAssembly.FiniteFiberMapsimport OAI.Topology.CoarseAssembly.CongruenceSurjectiveimport OAI.Topology.CoarseAssembly.CongruenceEdgeOperatorsimport OAI.Topology.CoarseAssembly.GraphFiberOperatorsimport OAI.Topology.CoarseAssembly.PathFiberOperatorsimport OAI.Topology.CoarseAssembly.DiscConnectedimport OAI.Topology.CoarseAssembly.FiberConnectedimport OAI.Topology.CoarseAssembly.FiberDegreeimport OAI.Topology.CoarseAssembly.AnalyticKHomologyimport OAI.Topology.CoarseAssembly.Assemblyimport OAI.Topology.CoarseAssembly.BoundaryIndeximport OAI.Topology.CoarseAssembly.BlockOperatorsimport OAI.Topology.CoarseAssembly.BoundedGeometryimport OAI.Topology.CoarseAssembly.ChosenHolonomyimport OAI.Topology.CoarseAssembly.CongruenceQuotientsimport OAI.Topology.CoarseAssembly.CongruenceMapsimport OAI.Topology.CoarseAssembly.CongruenceFibersimport OAI.Topology.CoarseAssembly.Conjugationimport OAI.Topology.CoarseAssembly.ControlledMatricesimport OAI.Topology.CoarseAssembly.FiniteWordsimport OAI.Topology.CoarseAssembly.FiberedGraphimport OAI.Topology.CoarseAssembly.FiberConstantsimport OAI.Topology.CoarseAssembly.FiberEmbeddingimport OAI.Topology.CoarseAssembly.FredholmModuleimport OAI.Topology.CoarseAssembly.Holonomyimport OAI.Topology.CoarseAssembly.HilbertSumimport OAI.Topology.CoarseAssembly.Latticeimport OAI.Topology.CoarseAssembly.LatticeChargeimport OAI.Topology.CoarseAssembly.LocallyFiniteimport OAI.Topology.CoarseAssembly.NonUnitalK1import OAI.Topology.CoarseAssembly.Persistenceimport OAI.Topology.CoarseAssembly.RipsRealizationimport OAI.Topology.CoarseAssembly.Roeimport OAI.Topology.CoarseAssembly.RoeCalculusimport OAI.Topology.CoarseAssembly.RoeTransferimport OAI.Topology.CoarseAssembly.RoeRowsimport OAI.Topology.CoarseAssembly.Sandwichimport OAI.Topology.CoarseAssembly.ShortLoopsimport OAI.Topology.CoarseAssembly.SpatialBlocksimport OAI.Topology.CoarseAssembly.TopologicalK1import OAI.Topology.CoarseAssembly.TraceObstructionimport OAI.Topology.CoarseAssembly.TraceSeparationimport OAI.Topology.CoarseAssembly.TransferLiftimport OAI.Topology.CoarseAssembly.RealNormalizationimport OAI.Topology.CoarseAssembly.InvolutiveNormalizationimport OAI.Topology.CoarseAssembly.ScalarCycleNormalizationimport OAI.Topology.CoarseAssembly.LocalCompactPerturbationimport OAI.Topology.CoarseAssembly.ScalarCutDownimport OAI.Topology.CoarseAssembly.SupportedNormalizationimport OAI.Topology.CoarseAssembly.PointCoefficientimport OAI.Topology.CoarseAssembly.FredholmParametriximport OAI.Topology.CoarseAssembly.ToeplitzCompressionimport OAI.Topology.CoarseAssembly.CycleIndeximport OAI.Topology.CoarseAssembly.RepresentedCutDownimport OAI.Topology.CoarseAssembly.RepresentedNormalizationimport OAI.Topology.CoarseAssembly.RepresentedIndeximport OAI.Topology.CoarseAssembly.CompactIndeximport OAI.Topology.CoarseAssembly.OperatorNormalizationimport OAI.Topology.CoarseAssembly.EssentialToeplitzimport OAI.Topology.CoarseAssembly.ExplicitCutDownimport OAI.Topology.CoarseAssembly.RawCycleIndeximport OAI.Topology.CoarseAssembly.DegenerateCutDownimport OAI.Topology.CoarseAssembly.UnitaryIndeximport OAI.Topology.CoarseAssembly.CompactIndexPairingimport OAI.Topology.CoarseAssembly.CircleInputReductionimport OAI.Topology.CoarseAssembly.CircleCoefficientimport OAI.Topology.CoarseAssembly.ExplicitCircleFamilyimport OAI.Topology.CoarseAssembly.ExplicitBoundaryConclusionimport OAI.Topology.CoarseAssembly.StructureQuotientimport OAI.Topology.CoarseAssembly.ControlledBoundaryHomotopyimport OAI.Topology.CoarseAssembly.CayleyNaturalityimport OAI.Topology.CoarseAssembly.RipsPartitionimport OAI.Topology.CoarseAssembly.PartitionIsometryimport OAI.Topology.CoarseAssembly.RipsBoundaryRepresentativeimport OAI.Topology.CoarseAssembly.AmpleRipsFamilyimport OAI.Topology.CoarseAssembly.MultiplierBoundaryHomotopyimport OAI.Topology.CoarseAssembly.RelativeNaturalityimport OAI.Topology.CoarseAssembly.SeparatedFamilyHomotopyimport OAI.Topology.CoarseAssembly.SeparatedFamilyPerturbationimport OAI.Topology.CoarseAssembly.SpatialBoundaryNaturalityimport OAI.Topology.CoarseAssembly.CoefficientRoeHomimport OAI.Topology.CoarseAssembly.PartitionInclusionimport OAI.Topology.CoarseAssembly.CoefficientInclusionimport OAI.Topology.CoarseAssembly.ExplicitBoundaryRepresentativeimport OAI.Topology.CoarseAssembly.NormalizedRipsFamilyimport OAI.Topology.CoarseAssembly.RipsBoundaryDegeneracyimport OAI.Topology.CoarseAssembly.RipsFamilyCompactPerturbationimport OAI.Topology.CoarseAssembly.RipsScaleCompatibilityimport OAI.Topology.CoarseAssembly.MultiplierUnitaryHomotopyimport OAI.Topology.CoarseAssembly.RelativeTwoDiagonalimport OAI.Topology.CoarseAssembly.IsometryDilationimport OAI.Topology.CoarseAssembly.RelativePartialIsometryimport OAI.Topology.CoarseAssembly.MultiplierIsometryInvarianceimport OAI.Topology.CoarseAssembly.RipsEmbeddingIndependenceimport OAI.Topology.CoarseAssembly.PointwiseEmbeddingTransitionimport OAI.Topology.CoarseAssembly.RipsUnitaryFamilyimport OAI.Topology.CoarseAssembly.OrthogonalSumBoundaryimport OAI.Topology.CoarseAssembly.RipsDirectSumBoundaryimport OAI.Topology.CoarseAssembly.SeparatedFamilyNearbyimport OAI.Topology.CoarseAssembly.ControlledCoarseAssemblyimport OAI.Topology.CoarseAssembly.RipsFiniteHomotopyimport OAI.Topology.CoarseAssembly.RipsFixedRepresentationHomotopyimport OAI.Topology.CoarseAssembly.RipsUnrestrictedHomotopyimport OAI.Topology.CoarseAssembly.RegularizedRipsFamilyimport OAI.Topology.CoarseAssembly.BoundedTransformNaturalityimport OAI.Topology.CoarseAssembly.SeparatedRipsIndeximport OAI.Topology.CoarseAssembly.RipsFiniteTailimport OAI.Topology.CoarseAssembly.RegularizedCoarseningimport OAI.Topology.CoarseAssembly.LateRipsCoarseningimport OAI.Topology.CoarseAssembly.SeparatedCoarseAssemblyimport OAI.Topology.CoarseAssembly.SeparatedIndexNaturalityimport OAI.Topology.CoarseAssembly.IndexFamilyTransportimport OAI.Topology.CoarseAssembly.ConstructedConclusionimport OAI.Topology.CoarseAssembly.AveragingEnergyimport OAI.Topology.CoarseAssembly.RegularConstantsimport OAI.Topology.CoarseAssembly.UnconditionalConclusion/-!# A bounded-geometry counterexample to coarse NovikovThe concrete graph union has an infinite-order assembly-kernel class,and its constructed analytic assembly map fails to be injective bothintegrally and rationally.-/123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190import OAI.Topology.CoarseAssembly.FiberedPersistenceimport OAI.Topology.CoarseAssembly.HomotopyFillingimport OAI.Topology.CoarseAssembly.LatticeHatimport OAI.Topology.CoarseAssembly.FilledDiscimport OAI.Topology.CoarseAssembly.FilledEdgesimport OAI.Topology.CoarseAssembly.FilledWalksimport OAI.Topology.CoarseAssembly.CompactFamilyMapimport OAI.Topology.CoarseAssembly.FamilyFillingimport OAI.Topology.CoarseAssembly.RipsProperEmbeddingimport OAI.Topology.CoarseAssembly.RoeInclusionimport OAI.Topology.CoarseAssembly.BoundaryGeometryimport OAI.Topology.CoarseAssembly.BoundaryWalksimport OAI.Topology.CoarseAssembly.BoundaryComponentsimport OAI.Topology.CoarseAssembly.HexagonSidesimport OAI.Topology.CoarseAssembly.RipsMapCalculusimport OAI.Topology.CoarseAssembly.RipsReindeximport OAI.Topology.CoarseAssembly.ConcretePersistenceimport OAI.Topology.CoarseAssembly.BoundaryLoopMapsimport OAI.Topology.CoarseAssembly.BoundaryAssemblyMapsimport OAI.Topology.CoarseAssembly.BoundaryConclusionimport OAI.Topology.CoarseAssembly.PublishedInputReductionimport OAI.Topology.CoarseAssembly.CycleCompactPerturbationimport OAI.Topology.CoarseAssembly.UnitalCycleNormalizationimport OAI.Topology.CoarseAssembly.FiniteCycleimport OAI.Topology.CoarseAssembly.FredholmSquareimport OAI.Topology.CoarseAssembly.UnitalCycleInvertibleimport OAI.Topology.CoarseAssembly.CompactFunctionalCalculusimport OAI.Topology.CoarseAssembly.RipsEmbeddingimport OAI.Topology.CoarseAssembly.ClopenRestrictionimport OAI.Topology.CoarseAssembly.ClopenNaturalityimport OAI.Topology.CoarseAssembly.CountableAdditivityimport OAI.Topology.CoarseAssembly.SeparatedRipsimport OAI.Topology.CoarseAssembly.RipsCompactSupportimport OAI.Topology.CoarseAssembly.RipsFamilyMapimport OAI.Topology.CoarseAssembly.RipsFamilyRestrictionimport OAI.Topology.CoarseAssembly.RipsPathCoarseningimport OAI.Topology.CoarseAssembly.CocycleCircleMapimport OAI.Topology.CoarseAssembly.RipsPathsimport OAI.Topology.CoarseAssembly.CocyclePathLiftingimport OAI.Topology.CoarseAssembly.FiniteRipsimport OAI.Topology.CoarseAssembly.RipsWindingTestimport OAI.Topology.CoarseAssembly.LoopCircleimport OAI.Topology.CoarseAssembly.CirclePairingimport OAI.Topology.CoarseAssembly.FiniteWindingIndeximport OAI.Topology.CoarseAssembly.InclusionModuleimport OAI.Topology.CoarseAssembly.BoundaryEmbeddingimport OAI.Topology.CoarseAssembly.SeparatedUnionimport OAI.Topology.CoarseAssembly.GraphMetricimport OAI.Topology.CoarseAssembly.SeparatedGeometryimport OAI.Topology.CoarseAssembly.ConcreteSpacesimport OAI.Topology.CoarseAssembly.ConcreteTransferMapsimport OAI.Topology.CoarseAssembly.ConcreteTransferimport OAI.Topology.CoarseAssembly.Averagingimport OAI.Topology.CoarseAssembly.ProjectionBlocksimport OAI.Topology.CoarseAssembly.SpatialAveragingimport OAI.Topology.CoarseAssembly.AveragingPropagationimport OAI.Topology.CoarseAssembly.KazhdanInputimport OAI.Topology.CoarseAssembly.TensorFibersimport OAI.Topology.CoarseAssembly.TransferCriterionimport OAI.Topology.CoarseAssembly.FiniteFiberMapsimport OAI.Topology.CoarseAssembly.CongruenceSurjectiveimport OAI.Topology.CoarseAssembly.CongruenceEdgeOperatorsimport OAI.Topology.CoarseAssembly.GraphFiberOperatorsimport OAI.Topology.CoarseAssembly.PathFiberOperatorsimport OAI.Topology.CoarseAssembly.DiscConnectedimport OAI.Topology.CoarseAssembly.FiberConnectedimport OAI.Topology.CoarseAssembly.FiberDegreeimport OAI.Topology.CoarseAssembly.AnalyticKHomologyimport OAI.Topology.CoarseAssembly.Assemblyimport OAI.Topology.CoarseAssembly.BoundaryIndeximport OAI.Topology.CoarseAssembly.BlockOperatorsimport OAI.Topology.CoarseAssembly.BoundedGeometryimport OAI.Topology.CoarseAssembly.ChosenHolonomyimport OAI.Topology.CoarseAssembly.CongruenceQuotientsimport OAI.Topology.CoarseAssembly.CongruenceMapsimport OAI.Topology.CoarseAssembly.CongruenceFibersimport OAI.Topology.CoarseAssembly.Conjugationimport OAI.Topology.CoarseAssembly.ControlledMatricesimport OAI.Topology.CoarseAssembly.FiniteWordsimport OAI.Topology.CoarseAssembly.FiberedGraphimport OAI.Topology.CoarseAssembly.FiberConstantsimport OAI.Topology.CoarseAssembly.FiberEmbeddingimport OAI.Topology.CoarseAssembly.FredholmModuleimport OAI.Topology.CoarseAssembly.Holonomyimport OAI.Topology.CoarseAssembly.HilbertSumimport OAI.Topology.CoarseAssembly.Latticeimport OAI.Topology.CoarseAssembly.LatticeChargeimport OAI.Topology.CoarseAssembly.LocallyFiniteimport OAI.Topology.CoarseAssembly.NonUnitalK1import OAI.Topology.CoarseAssembly.Persistenceimport OAI.Topology.CoarseAssembly.RipsRealizationimport OAI.Topology.CoarseAssembly.Roeimport OAI.Topology.CoarseAssembly.RoeCalculusimport OAI.Topology.CoarseAssembly.RoeTransferimport OAI.Topology.CoarseAssembly.RoeRowsimport OAI.Topology.CoarseAssembly.Sandwichimport OAI.Topology.CoarseAssembly.ShortLoopsimport OAI.Topology.CoarseAssembly.SpatialBlocksimport OAI.Topology.CoarseAssembly.TopologicalK1import OAI.Topology.CoarseAssembly.TraceObstructionimport OAI.Topology.CoarseAssembly.TraceSeparationimport OAI.Topology.CoarseAssembly.TransferLiftimport OAI.Topology.CoarseAssembly.RealNormalizationimport OAI.Topology.CoarseAssembly.InvolutiveNormalizationimport OAI.Topology.CoarseAssembly.ScalarCycleNormalizationimport OAI.Topology.CoarseAssembly.LocalCompactPerturbationimport OAI.Topology.CoarseAssembly.ScalarCutDownimport OAI.Topology.CoarseAssembly.SupportedNormalizationimport OAI.Topology.CoarseAssembly.PointCoefficientimport OAI.Topology.CoarseAssembly.FredholmParametriximport OAI.Topology.CoarseAssembly.ToeplitzCompressionimport OAI.Topology.CoarseAssembly.CycleIndeximport OAI.Topology.CoarseAssembly.RepresentedCutDownimport OAI.Topology.CoarseAssembly.RepresentedNormalizationimport OAI.Topology.CoarseAssembly.RepresentedIndeximport OAI.Topology.CoarseAssembly.CompactIndeximport OAI.Topology.CoarseAssembly.OperatorNormalizationimport OAI.Topology.CoarseAssembly.EssentialToeplitzimport OAI.Topology.CoarseAssembly.ExplicitCutDownimport OAI.Topology.CoarseAssembly.RawCycleIndeximport OAI.Topology.CoarseAssembly.DegenerateCutDownimport OAI.Topology.CoarseAssembly.UnitaryIndeximport OAI.Topology.CoarseAssembly.CompactIndexPairingimport OAI.Topology.CoarseAssembly.CircleInputReductionimport OAI.Topology.CoarseAssembly.CircleCoefficientimport OAI.Topology.CoarseAssembly.ExplicitCircleFamilyimport OAI.Topology.CoarseAssembly.ExplicitBoundaryConclusionimport OAI.Topology.CoarseAssembly.StructureQuotientimport OAI.Topology.CoarseAssembly.ControlledBoundaryHomotopyimport OAI.Topology.CoarseAssembly.CayleyNaturalityimport OAI.Topology.CoarseAssembly.RipsPartitionimport OAI.Topology.CoarseAssembly.PartitionIsometryimport OAI.Topology.CoarseAssembly.RipsBoundaryRepresentativeimport OAI.Topology.CoarseAssembly.AmpleRipsFamilyimport OAI.Topology.CoarseAssembly.MultiplierBoundaryHomotopyimport OAI.Topology.CoarseAssembly.RelativeNaturalityimport OAI.Topology.CoarseAssembly.SeparatedFamilyHomotopyimport OAI.Topology.CoarseAssembly.SeparatedFamilyPerturbationimport OAI.Topology.CoarseAssembly.SpatialBoundaryNaturalityimport OAI.Topology.CoarseAssembly.CoefficientRoeHomimport OAI.Topology.CoarseAssembly.PartitionInclusionimport OAI.Topology.CoarseAssembly.CoefficientInclusionimport OAI.Topology.CoarseAssembly.ExplicitBoundaryRepresentativeimport OAI.Topology.CoarseAssembly.NormalizedRipsFamilyimport OAI.Topology.CoarseAssembly.RipsBoundaryDegeneracyimport OAI.Topology.CoarseAssembly.RipsFamilyCompactPerturbationimport OAI.Topology.CoarseAssembly.RipsScaleCompatibilityimport OAI.Topology.CoarseAssembly.MultiplierUnitaryHomotopyimport OAI.Topology.CoarseAssembly.RelativeTwoDiagonalimport OAI.Topology.CoarseAssembly.IsometryDilationimport OAI.Topology.CoarseAssembly.RelativePartialIsometryimport OAI.Topology.CoarseAssembly.MultiplierIsometryInvarianceimport OAI.Topology.CoarseAssembly.RipsEmbeddingIndependenceimport OAI.Topology.CoarseAssembly.PointwiseEmbeddingTransitionimport OAI.Topology.CoarseAssembly.RipsUnitaryFamilyimport OAI.Topology.CoarseAssembly.OrthogonalSumBoundaryimport OAI.Topology.CoarseAssembly.RipsDirectSumBoundaryimport OAI.Topology.CoarseAssembly.SeparatedFamilyNearbyimport OAI.Topology.CoarseAssembly.ControlledCoarseAssemblyimport OAI.Topology.CoarseAssembly.RipsFiniteHomotopyimport OAI.Topology.CoarseAssembly.RipsFixedRepresentationHomotopyimport OAI.Topology.CoarseAssembly.RipsUnrestrictedHomotopyimport OAI.Topology.CoarseAssembly.RegularizedRipsFamilyimport OAI.Topology.CoarseAssembly.BoundedTransformNaturalityimport OAI.Topology.CoarseAssembly.SeparatedRipsIndeximport OAI.Topology.CoarseAssembly.RipsFiniteTailimport OAI.Topology.CoarseAssembly.RegularizedCoarseningimport OAI.Topology.CoarseAssembly.LateRipsCoarseningimport OAI.Topology.CoarseAssembly.SeparatedCoarseAssemblyimport OAI.Topology.CoarseAssembly.SeparatedIndexNaturalityimport OAI.Topology.CoarseAssembly.IndexFamilyTransportimport OAI.Topology.CoarseAssembly.ConstructedConclusionimport OAI.Topology.CoarseAssembly.AveragingEnergyimport OAI.Topology.CoarseAssembly.RegularConstantsimport OAI.Topology.CoarseAssembly.UnconditionalConclusion/-!# A bounded-geometry counterexample to coarse NovikovThe concrete graph union has an infinite-order assembly-kernel class,and its constructed analytic assembly map fails to be injective bothintegrally and rationally.-/
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960import OAI.Topology.CoarseAssembly.Definitionsimport OAI.Topology.CoarseAssembly.CongruenceElementaryimport OAI.Topology.CoarseAssembly.ConstructedConclusionnamespace OAI/-! # The unconditional bounded-geometry counterexampleThe geometric construction, analytic assembly, integral spectral certificateand finite congruence generation are combined here.-/noncomputable sectionnamespace CoarseAssemblyopen Congruence Rips Analyticattribute [local instance] OAI.CoarseAssembly.unconditionalConclusionMetrictheorem provedKazhdanInput : PublishedKazhdanInput :=publishedKazhdanInput_of_elementaryReduction elementaryReduction_surjective/-- The constructed ordinary coarse assembly map has an infinite-orderkernel class and fails injectivity both integrally and rationally. -/theorem bounded_geometry_counterexample_unconditional :ProperSpace VertexUnion ∧ UniformFiniteBalls VertexUnion ∧(∀ x y : VertexUnion, x ≠ y → 1 ≤ dist x y) ∧∃ α : KX1 VertexUnion,(∀ n : ℤ, n ≠ 0 → n • α ≠ 0) ∧ constructedCoarseAssembly α = 0 ∧(1 : ℚ) ⊗ₜ[ℤ] α ≠ 0 ∧¬ Function.Injective constructedCoarseAssembly ∧¬ Function.Injective (constructedCoarseAssembly.toIntLinearMap.lTensor ℚ) :=bounded_geometry_counterexample_from_gap provedKazhdanInput/-- The graph-family clauses of the main theorem, together with the fullcoarse-assembly conclusion for its concrete separated union. -/theorem bounded_geometry_graph_counterexample_unconditional :(∀ j, Finite (FiberVertex j) ∧(fiberedGraph elementaryMoves chosenHolonomyUnit j).Connected) ∧(∃ D : ℕ, ∀ j (x : FiberVertex j),Nat.card {y // (fiberedGraph elementaryMoves chosenHolonomyUnit j).Adj x y} ≤ D) ∧ProperSpace VertexUnion ∧ UniformFiniteBalls VertexUnion ∧(∀ x y : VertexUnion, x ≠ y → 1 ≤ dist x y) ∧∃ α : KX1 VertexUnion,(∀ n : ℤ, n ≠ 0 → n • α ≠ 0) ∧ constructedCoarseAssembly α = 0 ∧(1 : ℚ) ⊗ₜ[ℤ] α ≠ 0 ∧¬ Function.Injective constructedCoarseAssembly ∧¬ Function.Injective (constructedCoarseAssembly.toIntLinearMap.lTensor ℚ) := byrefine ⟨?_, ?_, bounded_geometry_counterexample_unconditional⟩· intro jexact ⟨inferInstance, fiberedGraph_connected elementaryMoves chosenHolonomyUnit j⟩· exact ⟨7 * (symmetricMoves elementaryMoves).card * 2 ^ 9,fun _ x => card_fibered_neighbors_le elementaryMoves chosenHolonomyUnit x⟩end CoarseAssemblyendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960import OAI.Topology.CoarseAssembly.Definitionsimport OAI.Topology.CoarseAssembly.CongruenceElementaryimport OAI.Topology.CoarseAssembly.ConstructedConclusionnamespace OAI/-! # The unconditional bounded-geometry counterexampleThe geometric construction, analytic assembly, integral spectral certificateand finite congruence generation are combined here.-/noncomputable sectionnamespace CoarseAssemblyopen Congruence Rips Analyticattribute [local instance] OAI.CoarseAssembly.unconditionalConclusionMetrictheorem provedKazhdanInput : PublishedKazhdanInput :=publishedKazhdanInput_of_elementaryReduction elementaryReduction_surjective/-- The constructed ordinary coarse assembly map has an infinite-orderkernel class and fails injectivity both integrally and rationally. -/theorem bounded_geometry_counterexample_unconditional :ProperSpace VertexUnion ∧ UniformFiniteBalls VertexUnion ∧(∀ x y : VertexUnion, x ≠ y → 1 ≤ dist x y) ∧∃ α : KX1 VertexUnion,(∀ n : ℤ, n ≠ 0 → n • α ≠ 0) ∧ constructedCoarseAssembly α = 0 ∧(1 : ℚ) ⊗ₜ[ℤ] α ≠ 0 ∧¬ Function.Injective constructedCoarseAssembly ∧¬ Function.Injective (constructedCoarseAssembly.toIntLinearMap.lTensor ℚ) :=bounded_geometry_counterexample_from_gap provedKazhdanInput/-- The graph-family clauses of the main theorem, together with the fullcoarse-assembly conclusion for its concrete separated union. -/theorem bounded_geometry_graph_counterexample_unconditional :(∀ j, Finite (FiberVertex j) ∧(fiberedGraph elementaryMoves chosenHolonomyUnit j).Connected) ∧(∃ D : ℕ, ∀ j (x : FiberVertex j),Nat.card {y // (fiberedGraph elementaryMoves chosenHolonomyUnit j).Adj x y} ≤ D) ∧ProperSpace VertexUnion ∧ UniformFiniteBalls VertexUnion ∧(∀ x y : VertexUnion, x ≠ y → 1 ≤ dist x y) ∧∃ α : KX1 VertexUnion,(∀ n : ℤ, n ≠ 0 → n • α ≠ 0) ∧ constructedCoarseAssembly α = 0 ∧(1 : ℚ) ⊗ₜ[ℤ] α ≠ 0 ∧¬ Function.Injective constructedCoarseAssembly ∧¬ Function.Injective (constructedCoarseAssembly.toIntLinearMap.lTensor ℚ) := byrefine ⟨?_, ?_, bounded_geometry_counterexample_unconditional⟩· intro jexact ⟨inferInstance, fiberedGraph_connected elementaryMoves chosenHolonomyUnit j⟩· exact ⟨7 * (symmetricMoves elementaryMoves).card * 2 ^ 9,fun _ x => card_fibered_neighbors_le elementaryMoves chosenHolonomyUnit x⟩end CoarseAssemblyendend OAI
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253import OAI.Topology.CoarseAssembly.SigmaCycleimport OAI.Topology.CoarseAssembly.RepresentedNormalizationnamespace OAI/-! # Uniformly bounded representatives for countable families -/noncomputable sectionnamespace CoarseAssembly.Analyticopen scoped ZeroAtInftytheorem involution_norm_le_one {H : HilbertSpace} (F : End H)(hself : IsSelfAdjoint F) (hsq : F * F = 1) : ‖F‖ ≤ 1 := byhave he : ‖F‖ ^ 2 = ‖(1 : End H)‖ := byrw [← hself.norm_mul_self, hsq]have hi : ‖(1 : End H)‖ ≤ 1 := ContinuousLinearMap.norm_id_lenlinarith [norm_nonneg F]variable {A : Type} [CStarAlgebra A]def normalizedCycle (c : OddCycle A) : OddCycle A :=(exists_represented_involutive_representative c).choosetheorem normalizedCycle_class (c : OddCycle A) :cycleClass A (normalizedCycle c) = cycleClass A c :=(exists_represented_involutive_representative c).choose_spec.1theorem normalizedCycle_selfAdjoint (c : OddCycle A) :IsSelfAdjoint (normalizedCycle c).operator :=(exists_represented_involutive_representative c).choose_spec.2.1theorem normalizedCycle_sq (c : OddCycle A) :(normalizedCycle c).operator * (normalizedCycle c).operator = 1 :=(exists_represented_involutive_representative c).choose_spec.2.2.1theorem normalizedCycle_norm (c : OddCycle A) : ‖(normalizedCycle c).operator‖ ≤ 1 :=involution_norm_le_one _ (normalizedCycle_selfAdjoint c) (normalizedCycle_sq c)variable (Y : ℕ → Type) [∀ j, TopologicalSpace (Y j)] [∀ j, CompactSpace (Y j)]/-- Actual locally finite cycle for an arbitrary countable family of compact-source cycles. -/def normalizedFamilyCycle (c : ∀ j, OddCycle C(Y j, ℂ)) : OddCycle C₀(Sigma Y, ℂ) :=sigmaCycle Y (fun j => normalizedCycle (c j)) 1 (by norm_num)(fun j => normalizedCycle_norm (c j)) (fun j => normalizedCycle_selfAdjoint (c j))(fun j => normalizedCycle_sq (c j))end CoarseAssembly.Analyticendend OAI1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253import OAI.Topology.CoarseAssembly.SigmaCycleimport OAI.Topology.CoarseAssembly.RepresentedNormalizationnamespace OAI/-! # Uniformly bounded representatives for countable families -/noncomputable sectionnamespace CoarseAssembly.Analyticopen scoped ZeroAtInftytheorem involution_norm_le_one {H : HilbertSpace} (F : End H)(hself : IsSelfAdjoint F) (hsq : F * F = 1) : ‖F‖ ≤ 1 := byhave he : ‖F‖ ^ 2 = ‖(1 : End H)‖ := byrw [← hself.norm_mul_self, hsq]have hi : ‖(1 : End H)‖ ≤ 1 := ContinuousLinearMap.norm_id_lenlinarith [norm_nonneg F]variable {A : Type} [CStarAlgebra A]def normalizedCycle (c : OddCycle A) : OddCycle A :=(exists_represented_involutive_representative c).choosetheorem normalizedCycle_class (c : OddCycle A) :cycleClass A (normalizedCycle c) = cycleClass A c :=(exists_represented_involutive_representative c).choose_spec.1theorem normalizedCycle_selfAdjoint (c : OddCycle A) :IsSelfAdjoint (normalizedCycle c).operator :=(exists_represented_involutive_representative c).choose_spec.2.1theorem normalizedCycle_sq (c : OddCycle A) :(normalizedCycle c).operator * (normalizedCycle c).operator = 1 :=(exists_represented_involutive_representative c).choose_spec.2.2.1theorem normalizedCycle_norm (c : OddCycle A) : ‖(normalizedCycle c).operator‖ ≤ 1 :=involution_norm_le_one _ (normalizedCycle_selfAdjoint c) (normalizedCycle_sq c)variable (Y : ℕ → Type) [∀ j, TopologicalSpace (Y j)] [∀ j, CompactSpace (Y j)]/-- Actual locally finite cycle for an arbitrary countable family of compact-source cycles. -/def normalizedFamilyCycle (c : ∀ j, OddCycle C(Y j, ℂ)) : OddCycle C₀(Sigma Y, ℂ) :=sigmaCycle Y (fun j => normalizedCycle (c j)) 1 (by norm_num)(fun j => normalizedCycle_norm (c j)) (fun j => normalizedCycle_selfAdjoint (c j))(fun j => normalizedCycle_sq (c j))end CoarseAssembly.Analyticendend OAI
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647import OAI.Topology.CoarseAssembly.FredholmModuleimport Mathlib.Topology.UniformSpace.HeineCantorimport Mathlib.Algebra.Order.Archimedean.Real.Basicnamespace OAI/-! # Finite subdivisions of an actual norm-continuous homotopy -/noncomputable sectionnamespace CoarseAssembly.Analyticdef intervalGrid (N : ℕ) (hN : 0 < N) (j : ℕ) : Interval :=⟨((min j N : ℕ) : ℝ) / N, div_nonneg (Nat.cast_nonneg _) (Nat.cast_nonneg _),(div_le_one (Nat.cast_pos.mpr hN)).mpr (by exact_mod_cast Nat.min_le_right j N)⟩@[simp] theorem intervalGrid_start (N : ℕ) (hN : 0 < N) : intervalGrid N hN 0 = start := byapply Subtype.extsimp [intervalGrid, start]@[simp] theorem intervalGrid_finish (N : ℕ) (hN : 0 < N) : intervalGrid N hN N = finish := byapply Subtype.extsimp [intervalGrid, finish, Nat.ne_of_gt hN]theorem intervalGrid_dist (N : ℕ) (hN : 0 < N) (j : ℕ) (hj : j < N) :dist (intervalGrid N hN (j + 1)) (intervalGrid N hN j) = (N : ℝ)⁻¹ := bychange |((min (j + 1) N : ℕ) : ℝ) / N - ((min j N : ℕ) : ℝ) / N| = _rw [Nat.min_eq_left (Nat.succ_le_of_lt hj), Nat.min_eq_left hj.le, Nat.cast_succ]have he : ((j : ℝ) + 1) / N - (j : ℝ) / N = 1 / N := by ringrw [he, abs_of_nonneg (by positivity), one_div]theorem exists_interval_subdivision {E : Type*} [PseudoMetricSpace E](f : Interval → E) (hf : Continuous f) (ε : ℝ) (hε : 0 < ε) :∃ (N : ℕ) (hN : 0 < N), ∀ j, j < N →dist (f (intervalGrid N hN (j + 1))) (f (intervalGrid N hN j)) < ε := byobtain ⟨δ, hδ, hclose⟩ := Metric.uniformContinuous_iff.mp(CompactSpace.uniformContinuous_of_continuous hf) ε hεobtain ⟨N, hN, hn⟩ := Real.exists_nat_pos_inv_lt hδrefine ⟨N, hN, fun j hj => hclose ?_⟩rw [intervalGrid_dist N hN j hj]exact hnend CoarseAssembly.Analyticendend OAI1234567891011121314151617181920212223242526272829303132333435363738394041424344454647import OAI.Topology.CoarseAssembly.FredholmModuleimport Mathlib.Topology.UniformSpace.HeineCantorimport Mathlib.Algebra.Order.Archimedean.Real.Basicnamespace OAI/-! # Finite subdivisions of an actual norm-continuous homotopy -/noncomputable sectionnamespace CoarseAssembly.Analyticdef intervalGrid (N : ℕ) (hN : 0 < N) (j : ℕ) : Interval :=⟨((min j N : ℕ) : ℝ) / N, div_nonneg (Nat.cast_nonneg _) (Nat.cast_nonneg _),(div_le_one (Nat.cast_pos.mpr hN)).mpr (by exact_mod_cast Nat.min_le_right j N)⟩@[simp] theorem intervalGrid_start (N : ℕ) (hN : 0 < N) : intervalGrid N hN 0 = start := byapply Subtype.extsimp [intervalGrid, start]@[simp] theorem intervalGrid_finish (N : ℕ) (hN : 0 < N) : intervalGrid N hN N = finish := byapply Subtype.extsimp [intervalGrid, finish, Nat.ne_of_gt hN]theorem intervalGrid_dist (N : ℕ) (hN : 0 < N) (j : ℕ) (hj : j < N) :dist (intervalGrid N hN (j + 1)) (intervalGrid N hN j) = (N : ℝ)⁻¹ := bychange |((min (j + 1) N : ℕ) : ℝ) / N - ((min j N : ℕ) : ℝ) / N| = _rw [Nat.min_eq_left (Nat.succ_le_of_lt hj), Nat.min_eq_left hj.le, Nat.cast_succ]have he : ((j : ℝ) + 1) / N - (j : ℝ) / N = 1 / N := by ringrw [he, abs_of_nonneg (by positivity), one_div]theorem exists_interval_subdivision {E : Type*} [PseudoMetricSpace E](f : Interval → E) (hf : Continuous f) (ε : ℝ) (hε : 0 < ε) :∃ (N : ℕ) (hN : 0 < N), ∀ j, j < N →dist (f (intervalGrid N hN (j + 1))) (f (intervalGrid N hN j)) < ε := byobtain ⟨δ, hδ, hclose⟩ := Metric.uniformContinuous_iff.mp(CompactSpace.uniformContinuous_of_continuous hf) ε hεobtain ⟨N, hN, hn⟩ := Real.exists_nat_pos_inv_lt hδrefine ⟨N, hN, fun j hj => hclose ?_⟩rw [intervalGrid_dist N hN j hj]exact hnend CoarseAssembly.Analyticendend OAI
1234567891011121314151617181920212223242526272829303132import OAI.Topology.CoarseAssembly.FredholmInvertiblenamespace OAI/-! # Invertible self-adjoint representatives for unital odd cycles -/noncomputable sectionnamespace CoarseAssembly.Analyticvariable {A : Type} [CStarAlgebra A]theorem exists_invertible_selfAdjoint_representative (c : OddCycle A)(hunital : c.representation 1 = 1) :∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧d.representation 1 = 1 ∧ IsSelfAdjoint d.operator ∧ IsUnit d.operator := byobtain ⟨d, hdc, hdunit, hdself⟩ := exists_selfAdjoint_representative c hunitalhave hc : IsCompactOperator (d.operator * d.operator - 1 : End d.space) := bysimpa only [hdunit, mul_one] using d.square_compact 1have hp := kernelProjection_compact d.operator hchave hps : IsCompactOperator (star (kernelProjection d.operator) : End d.space) := byrw [(kernelProjection_selfAdjoint d.operator).star_eq]exact hprefine ⟨d.compactPerturb (kernelProjection d.operator) hp hps,(compactPerturb_class d _ hp hps).trans hdc, hdunit,kernel_corrected_selfAdjoint d.operator hdself, kernel_corrected_isUnit d.operator hdself hc⟩end CoarseAssembly.Analyticendend OAI1234567891011121314151617181920212223242526272829303132import OAI.Topology.CoarseAssembly.FredholmInvertiblenamespace OAI/-! # Invertible self-adjoint representatives for unital odd cycles -/noncomputable sectionnamespace CoarseAssembly.Analyticvariable {A : Type} [CStarAlgebra A]theorem exists_invertible_selfAdjoint_representative (c : OddCycle A)(hunital : c.representation 1 = 1) :∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧d.representation 1 = 1 ∧ IsSelfAdjoint d.operator ∧ IsUnit d.operator := byobtain ⟨d, hdc, hdunit, hdself⟩ := exists_selfAdjoint_representative c hunitalhave hc : IsCompactOperator (d.operator * d.operator - 1 : End d.space) := bysimpa only [hdunit, mul_one] using d.square_compact 1have hp := kernelProjection_compact d.operator hchave hps : IsCompactOperator (star (kernelProjection d.operator) : End d.space) := byrw [(kernelProjection_selfAdjoint d.operator).star_eq]exact hprefine ⟨d.compactPerturb (kernelProjection d.operator) hp hps,(compactPerturb_class d _ hp hps).trans hdc, hdunit,kernel_corrected_selfAdjoint d.operator hdself, kernel_corrected_isUnit d.operator hdself hc⟩end CoarseAssembly.Analyticendend OAI
12345678910111213141516171819202122232425262728293031323334353637383940414243import OAI.Topology.CoarseAssembly.CycleCompactPerturbationimport Mathlib.Tactic.Modulenamespace OAI/-! # Self-adjoint normalization of a unital Fredholm cycleThe compact adjoint defect allows replacement of the operator by itsself-adjoint part, with the represented algebra and K-homology class fixed.-/noncomputable sectionnamespace CoarseAssembly.Analyticvariable {A : Type} [CStarAlgebra A]theorem exists_selfAdjoint_representative (c : OddCycle A)(hunital : c.representation 1 = 1) :∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧d.representation 1 = 1 ∧ IsSelfAdjoint d.operator := bylet K : End c.space := (1 / 2 : ℝ) • (star c.operator - c.operator)have hdefect : IsCompactOperator (star c.operator - c.operator : End c.space) := bysimpa only [hunital, mul_one] using c.adjoint_compact 1have hK : IsCompactOperator K := hdefect.smul (1 / 2 : ℝ)have hstar : star K = -K := bydsimp only [K]rw [star_smul, star_trivial, star_sub, star_star]modulehave hKs : IsCompactOperator (star K : End c.space) := byrw [hstar]exact hK.negrefine ⟨c.compactPerturb K hK hKs, compactPerturb_class c K hK hKs, hunital, ?_⟩change star (c.operator + K) = c.operator + Krw [star_add, hstar]dsimp only [K]moduleend CoarseAssembly.Analyticendend OAI12345678910111213141516171819202122232425262728293031323334353637383940414243import OAI.Topology.CoarseAssembly.CycleCompactPerturbationimport Mathlib.Tactic.Modulenamespace OAI/-! # Self-adjoint normalization of a unital Fredholm cycleThe compact adjoint defect allows replacement of the operator by itsself-adjoint part, with the represented algebra and K-homology class fixed.-/noncomputable sectionnamespace CoarseAssembly.Analyticvariable {A : Type} [CStarAlgebra A]theorem exists_selfAdjoint_representative (c : OddCycle A)(hunital : c.representation 1 = 1) :∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧d.representation 1 = 1 ∧ IsSelfAdjoint d.operator := bylet K : End c.space := (1 / 2 : ℝ) • (star c.operator - c.operator)have hdefect : IsCompactOperator (star c.operator - c.operator : End c.space) := bysimpa only [hunital, mul_one] using c.adjoint_compact 1have hK : IsCompactOperator K := hdefect.smul (1 / 2 : ℝ)have hstar : star K = -K := bydsimp only [K]rw [star_smul, star_trivial, star_sub, star_star]modulehave hKs : IsCompactOperator (star K : End c.space) := byrw [hstar]exact hK.negrefine ⟨c.compactPerturb K hK hKs, compactPerturb_class c K hK hKs, hunital, ?_⟩change star (c.operator + K) = c.operator + Krw [star_add, hstar]dsimp only [K]moduleend CoarseAssembly.Analyticendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130import OAI.Topology.CoarseAssembly.BinaryCycleimport OAI.Topology.CoarseAssembly.CharacterExtensionimport OAI.Topology.CoarseAssembly.ProjectionSwapimport OAI.Topology.CoarseAssembly.UniformCycleNormalizationnamespace OAI/-! # Unital representatives for compact-source analytic classesAdjoin a degenerate character cycle and exchange the complementarysubspaces by the explicit projection-swap unitary. This proves thatcompletion of a representation by a character preserves its class.-/noncomputable sectionnamespace CoarseAssembly.Analyticvariable {H : HilbertSpace}theorem projectionSwap_representation (P R : End H) (hP : IsStarProjection P)(hPR : P * R = R) (hRP : R * P = R) (z : ℂ) :binaryBlock H H (R + z • (1 - P)) (z • P) =operatorConjugation (projectionSwapUnitary H P hP).toLinearIsometry(binaryBlock H H R (z • 1)) := byrw [projectionSwapUnitary_conjugation]have hu := projectionSwap_sq H P hP.isIdempotentElemsuffices hi : binaryBlock H H (R + z • (1 - P)) (z • P) * projectionSwap H P =projectionSwap H P * binaryBlock H H R (z • 1) byhave hi' := congrArg (fun T => T * projectionSwap H P) hisimpa only [mul_assoc, hu, mul_one] using hi'apply ContinuousLinearMap.extintro xchange binaryBlock H H (R + z • (1 - P)) (z • P) (projectionSwap H P x) =projectionSwap H P (binaryBlock H H R (z • 1) x)rw [projectionSwap_apply H, binaryBlock_apply H H, binaryBlock_apply H H,projectionSwap_apply H]apply (WithLp.ofLp_injective 2)have hp (y : H) : P (P y) = P y := DFunLike.congr_fun hP.isIdempotentElem yhave hpr (y : H) : P (R y) = R y := DFunLike.congr_fun hPR yhave hrp (y : H) : R (P y) = R y := DFunLike.congr_fun hRP ychange((R + z • (1 - P)) (P x.fst + (1 - P) x.snd),(z • P) ((1 - P) x.fst + P x.snd)) =(P (R x.fst) + (1 - P) ((z • (1 : End H)) x.snd),(1 - P) (R x.fst) + P ((z • (1 : End H)) x.snd))simp only [add_apply, smul_apply, sub_apply, one_apply_eq_self, map_add, map_sub,map_smul, hp, hpr, hrp]ext <;> moduletheorem projectionSwap_operator (P F : End H) (hP : IsStarProjection P)(hF : IsSelfAdjoint F) (hQ : F * (1 - P) = 1 - P) :binaryBlock H H F 1 =operatorConjugation (projectionSwapUnitary H P hP).toLinearIsometry(binaryBlock H H F 1) := byrw [projectionSwapUnitary_conjugation]have hu := projectionSwap_sq H P hP.isIdempotentElemhave hc := (commute_of_complement F P hF hP.isSelfAdjoint hQ).eqhave hQ' : (1 - P) * F = 1 - P := byhave h := congrArg star hQsimpa only [star_mul, star_sub, star_one, hP.isSelfAdjoint.star_eq, hF.star_eq] using hsuffices hi : binaryBlock H H F 1 * projectionSwap H P =projectionSwap H P * binaryBlock H H F 1 byhave hi' := congrArg (fun T => T * projectionSwap H P) hisimpa only [mul_assoc, hu, mul_one] using hi'apply ContinuousLinearMap.extintro xchange binaryBlock H H F 1 (projectionSwap H P x) =projectionSwap H P (binaryBlock H H F 1 x)rw [projectionSwap_apply H, binaryBlock_apply H H, binaryBlock_apply H H,projectionSwap_apply H]apply (WithLp.ofLp_injective 2)have hfp (y : H) : F (P y) = P (F y) := DFunLike.congr_fun hc yhave hfq (y : H) : F ((1 - P) y) = (1 - P) y := DFunLike.congr_fun hQ yhave hqf (y : H) : (1 - P) (F y) = (1 - P) y := DFunLike.congr_fun hQ' ychange (F (P x.fst + (1 - P) x.snd), (1 - P) x.fst + P x.snd) =(P (F x.fst) + (1 - P) x.snd, (1 - P) (F x.fst) + P x.snd)rw [map_add, hfp, hfq, hqf]variable {A : Type} [CStarAlgebra A]theorem characterExtension_class (c : OddCycle A) (χ : A →⋆ₐ[ℂ] ℂ)(hF : IsSelfAdjoint c.operator)(hQ : c.operator * (1 - c.representation 1) = 1 - c.representation 1)(hsq : IsCompactOperator (c.operator * c.operator - 1 : End c.space)) :cycleClass A (c.characterExtension χ hF hQ hsq) = cycleClass A c := bylet d := identityOperatorCycle(characterProjectionRepresentation χ (1 : End c.space) (IsStarProjection.one _))let e := identityOperatorCycle(characterProjectionRepresentation χ (c.representation 1) (representation_unit_projection c))have he : (c.binarySum d).UnitaryEquivalent((c.characterExtension χ hF hQ hsq).binarySum e) := byrefine ⟨projectionSwapUnitary c.space (c.representation 1) (representation_unit_projection c),?_, ?_⟩· intro achange binaryBlock c.space c.space(c.representation a + χ a • (1 - c.representation 1)) (χ a • c.representation 1) = _exact projectionSwap_representation _ _ (representation_unit_projection c)(by rw [← map_mul, one_mul]) (by rw [← map_mul, mul_one]) (χ a)· exact projectionSwap_operator _ _ (representation_unit_projection c) hF hQhave h := unitary_eq _ _ herw [binarySum_class, binarySum_class,degenerate_zero d (identityOperatorCycle_degenerate _),degenerate_zero e (identityOperatorCycle_degenerate _), add_zero, add_zero] at hexact h.symm/-- Every analytic cycle over an algebra with a character has a unitalrepresentative. The assertion includes equality in the actual cycle quotient. -/theorem exists_unital_representative (c : OddCycle A) (χ : A →⋆ₐ[ℂ] ℂ) :∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧ d.representation 1 = 1 := bylet d := c.cutDownlet e := d.characterExtension χ (cutDown_selfAdjoint c) (cutDown_complement c)(cutDown_square_compact c)refine ⟨e, ?_, characterExtension_unital d χ _ _ _⟩exact (characterExtension_class d χ _ _ _).trans (cutDown_class c)/-- The representatives needed by whole-family Rips localization can bechosen unital, self-adjoint, involutive, and uniformly bounded by one. -/theorem exists_unital_involutive_representative (c : OddCycle A) (χ : A →⋆ₐ[ℂ] ℂ) :∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧ d.representation 1 = 1 ∧IsSelfAdjoint d.operator ∧ d.operator * d.operator = 1 ∧ ‖d.operator‖ ≤ 1 := byobtain ⟨d, hdc, hdu⟩ := exists_unital_representative c χobtain ⟨e, hed, heu, hes, heq⟩ := exists_involutive_representative d hduexact ⟨e, hed.trans hdc, heu, hes, heq, involution_norm_le_one _ hes heq⟩end CoarseAssembly.Analyticendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130import OAI.Topology.CoarseAssembly.BinaryCycleimport OAI.Topology.CoarseAssembly.CharacterExtensionimport OAI.Topology.CoarseAssembly.ProjectionSwapimport OAI.Topology.CoarseAssembly.UniformCycleNormalizationnamespace OAI/-! # Unital representatives for compact-source analytic classesAdjoin a degenerate character cycle and exchange the complementarysubspaces by the explicit projection-swap unitary. This proves thatcompletion of a representation by a character preserves its class.-/noncomputable sectionnamespace CoarseAssembly.Analyticvariable {H : HilbertSpace}theorem projectionSwap_representation (P R : End H) (hP : IsStarProjection P)(hPR : P * R = R) (hRP : R * P = R) (z : ℂ) :binaryBlock H H (R + z • (1 - P)) (z • P) =operatorConjugation (projectionSwapUnitary H P hP).toLinearIsometry(binaryBlock H H R (z • 1)) := byrw [projectionSwapUnitary_conjugation]have hu := projectionSwap_sq H P hP.isIdempotentElemsuffices hi : binaryBlock H H (R + z • (1 - P)) (z • P) * projectionSwap H P =projectionSwap H P * binaryBlock H H R (z • 1) byhave hi' := congrArg (fun T => T * projectionSwap H P) hisimpa only [mul_assoc, hu, mul_one] using hi'apply ContinuousLinearMap.extintro xchange binaryBlock H H (R + z • (1 - P)) (z • P) (projectionSwap H P x) =projectionSwap H P (binaryBlock H H R (z • 1) x)rw [projectionSwap_apply H, binaryBlock_apply H H, binaryBlock_apply H H,projectionSwap_apply H]apply (WithLp.ofLp_injective 2)have hp (y : H) : P (P y) = P y := DFunLike.congr_fun hP.isIdempotentElem yhave hpr (y : H) : P (R y) = R y := DFunLike.congr_fun hPR yhave hrp (y : H) : R (P y) = R y := DFunLike.congr_fun hRP ychange((R + z • (1 - P)) (P x.fst + (1 - P) x.snd),(z • P) ((1 - P) x.fst + P x.snd)) =(P (R x.fst) + (1 - P) ((z • (1 : End H)) x.snd),(1 - P) (R x.fst) + P ((z • (1 : End H)) x.snd))simp only [add_apply, smul_apply, sub_apply, one_apply_eq_self, map_add, map_sub,map_smul, hp, hpr, hrp]ext <;> moduletheorem projectionSwap_operator (P F : End H) (hP : IsStarProjection P)(hF : IsSelfAdjoint F) (hQ : F * (1 - P) = 1 - P) :binaryBlock H H F 1 =operatorConjugation (projectionSwapUnitary H P hP).toLinearIsometry(binaryBlock H H F 1) := byrw [projectionSwapUnitary_conjugation]have hu := projectionSwap_sq H P hP.isIdempotentElemhave hc := (commute_of_complement F P hF hP.isSelfAdjoint hQ).eqhave hQ' : (1 - P) * F = 1 - P := byhave h := congrArg star hQsimpa only [star_mul, star_sub, star_one, hP.isSelfAdjoint.star_eq, hF.star_eq] using hsuffices hi : binaryBlock H H F 1 * projectionSwap H P =projectionSwap H P * binaryBlock H H F 1 byhave hi' := congrArg (fun T => T * projectionSwap H P) hisimpa only [mul_assoc, hu, mul_one] using hi'apply ContinuousLinearMap.extintro xchange binaryBlock H H F 1 (projectionSwap H P x) =projectionSwap H P (binaryBlock H H F 1 x)rw [projectionSwap_apply H, binaryBlock_apply H H, binaryBlock_apply H H,projectionSwap_apply H]apply (WithLp.ofLp_injective 2)have hfp (y : H) : F (P y) = P (F y) := DFunLike.congr_fun hc yhave hfq (y : H) : F ((1 - P) y) = (1 - P) y := DFunLike.congr_fun hQ yhave hqf (y : H) : (1 - P) (F y) = (1 - P) y := DFunLike.congr_fun hQ' ychange (F (P x.fst + (1 - P) x.snd), (1 - P) x.fst + P x.snd) =(P (F x.fst) + (1 - P) x.snd, (1 - P) (F x.fst) + P x.snd)rw [map_add, hfp, hfq, hqf]variable {A : Type} [CStarAlgebra A]theorem characterExtension_class (c : OddCycle A) (χ : A →⋆ₐ[ℂ] ℂ)(hF : IsSelfAdjoint c.operator)(hQ : c.operator * (1 - c.representation 1) = 1 - c.representation 1)(hsq : IsCompactOperator (c.operator * c.operator - 1 : End c.space)) :cycleClass A (c.characterExtension χ hF hQ hsq) = cycleClass A c := bylet d := identityOperatorCycle(characterProjectionRepresentation χ (1 : End c.space) (IsStarProjection.one _))let e := identityOperatorCycle(characterProjectionRepresentation χ (c.representation 1) (representation_unit_projection c))have he : (c.binarySum d).UnitaryEquivalent((c.characterExtension χ hF hQ hsq).binarySum e) := byrefine ⟨projectionSwapUnitary c.space (c.representation 1) (representation_unit_projection c),?_, ?_⟩· intro achange binaryBlock c.space c.space(c.representation a + χ a • (1 - c.representation 1)) (χ a • c.representation 1) = _exact projectionSwap_representation _ _ (representation_unit_projection c)(by rw [← map_mul, one_mul]) (by rw [← map_mul, mul_one]) (χ a)· exact projectionSwap_operator _ _ (representation_unit_projection c) hF hQhave h := unitary_eq _ _ herw [binarySum_class, binarySum_class,degenerate_zero d (identityOperatorCycle_degenerate _),degenerate_zero e (identityOperatorCycle_degenerate _), add_zero, add_zero] at hexact h.symm/-- Every analytic cycle over an algebra with a character has a unitalrepresentative. The assertion includes equality in the actual cycle quotient. -/theorem exists_unital_representative (c : OddCycle A) (χ : A →⋆ₐ[ℂ] ℂ) :∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧ d.representation 1 = 1 := bylet d := c.cutDownlet e := d.characterExtension χ (cutDown_selfAdjoint c) (cutDown_complement c)(cutDown_square_compact c)refine ⟨e, ?_, characterExtension_unital d χ _ _ _⟩exact (characterExtension_class d χ _ _ _).trans (cutDown_class c)/-- The representatives needed by whole-family Rips localization can bechosen unital, self-adjoint, involutive, and uniformly bounded by one. -/theorem exists_unital_involutive_representative (c : OddCycle A) (χ : A →⋆ₐ[ℂ] ℂ) :∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧ d.representation 1 = 1 ∧IsSelfAdjoint d.operator ∧ d.operator * d.operator = 1 ∧ ‖d.operator‖ ≤ 1 := byobtain ⟨d, hdc, hdu⟩ := exists_unital_representative c χobtain ⟨e, hed, heu, hes, heq⟩ := exists_involutive_representative d hduexact ⟨e, hed.trans hdc, heu, hes, heq, involution_norm_le_one _ hes heq⟩end CoarseAssembly.Analyticendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566import OAI.Topology.CoarseAssembly.StructureQuotientimport Mathlib.Analysis.CStarAlgebra.Spectrumnamespace OAI/-! # The unit of the controlled pseudolocal algebra -/noncomputable sectionnamespace CoarseAssembly.DiscreteRoevariable {X H : Type*} [DecidableEq X] [PseudoMetricSpace X][NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]local instance : IsScalarTower ℂ (Operator X H) (Operator X H) wheresmul_assoc c T S := by ext v; simplocal instance : SMulCommClass ℂ (Operator X H) (Operator X H) wheresmul_comm c T S := by ext v; simplocal instance : ContinuousStar (Operator X H) := ⟨operator_star_continuous⟩omit [CompleteSpace H] intheorem propagationLE_one : PropagationLE 0 (1 : Operator X H) := byintro x y hxyhave hne : x ≠ y := by intro h; simp [h] at hxyext vsimp [entry_apply, lp.single_apply, hne]theorem structureGenerator_one : StructureGenerator (1 : Operator X H) := byrefine ⟨⟨0, le_rfl, propagationLE_one⟩, ?_, ?_⟩· intro fsimp only [one_mul, mul_one, sub_self]exact isCompactOperator_zero· rw [star_one (Operator X H)]intro fsimp only [one_mul, mul_one, sub_self]exact isCompactOperator_zerotheorem structureAlgebra_one : (1 : Operator X H) ∈ structureAlgebra (X := X) (H := H) :=(NonUnitalStarSubalgebra.le_topologicalClosure _)(NonUnitalStarAlgebra.subset_adjoin ℂ _ (structureGenerator_one (X := X) (H := H)))/-- The controlled structure algebra with its actual identity operator. -/def unitalStructureAlgebra : StarSubalgebra ℂ (Operator X H) wherecarrier := structureAlgebra (X := X) (H := H)add_mem' := (structureAlgebra (X := X) (H := H)).add_memmul_mem' := (structureAlgebra (X := X) (H := H)).mul_memstar_mem' := fun h => star_mem halgebraMap_mem' z := byrw [Algebra.algebraMap_eq_smul_one]exact (structureAlgebra (X := X) (H := H)).smul_mem z structureAlgebra_onetheorem unitalStructureAlgebra_closed :IsClosed (unitalStructureAlgebra (X := X) (H := H) : Set (Operator X H)) :=NonUnitalStarSubalgebra.isClosed_topologicalClosure _instance : CompleteSpace (unitalStructureAlgebra (X := X) (H := H)) :=unitalStructureAlgebra_closed.completeSpace_coeinstance : CStarAlgebra (unitalStructureAlgebra (X := X) (H := H)) :=StarSubalgebra.cstarAlgebra _ (h_closed := unitalStructureAlgebra_closed)end CoarseAssembly.DiscreteRoeendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566import OAI.Topology.CoarseAssembly.StructureQuotientimport Mathlib.Analysis.CStarAlgebra.Spectrumnamespace OAI/-! # The unit of the controlled pseudolocal algebra -/noncomputable sectionnamespace CoarseAssembly.DiscreteRoevariable {X H : Type*} [DecidableEq X] [PseudoMetricSpace X][NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]local instance : IsScalarTower ℂ (Operator X H) (Operator X H) wheresmul_assoc c T S := by ext v; simplocal instance : SMulCommClass ℂ (Operator X H) (Operator X H) wheresmul_comm c T S := by ext v; simplocal instance : ContinuousStar (Operator X H) := ⟨operator_star_continuous⟩omit [CompleteSpace H] intheorem propagationLE_one : PropagationLE 0 (1 : Operator X H) := byintro x y hxyhave hne : x ≠ y := by intro h; simp [h] at hxyext vsimp [entry_apply, lp.single_apply, hne]theorem structureGenerator_one : StructureGenerator (1 : Operator X H) := byrefine ⟨⟨0, le_rfl, propagationLE_one⟩, ?_, ?_⟩· intro fsimp only [one_mul, mul_one, sub_self]exact isCompactOperator_zero· rw [star_one (Operator X H)]intro fsimp only [one_mul, mul_one, sub_self]exact isCompactOperator_zerotheorem structureAlgebra_one : (1 : Operator X H) ∈ structureAlgebra (X := X) (H := H) :=(NonUnitalStarSubalgebra.le_topologicalClosure _)(NonUnitalStarAlgebra.subset_adjoin ℂ _ (structureGenerator_one (X := X) (H := H)))/-- The controlled structure algebra with its actual identity operator. -/def unitalStructureAlgebra : StarSubalgebra ℂ (Operator X H) wherecarrier := structureAlgebra (X := X) (H := H)add_mem' := (structureAlgebra (X := X) (H := H)).add_memmul_mem' := (structureAlgebra (X := X) (H := H)).mul_memstar_mem' := fun h => star_mem halgebraMap_mem' z := byrw [Algebra.algebraMap_eq_smul_one]exact (structureAlgebra (X := X) (H := H)).smul_mem z structureAlgebra_onetheorem unitalStructureAlgebra_closed :IsClosed (unitalStructureAlgebra (X := X) (H := H) : Set (Operator X H)) :=NonUnitalStarSubalgebra.isClosed_topologicalClosure _instance : CompleteSpace (unitalStructureAlgebra (X := X) (H := H)) :=unitalStructureAlgebra_closed.completeSpace_coeinstance : CStarAlgebra (unitalStructureAlgebra (X := X) (H := H)) :=StarSubalgebra.cstarAlgebra _ (h_closed := unitalStructureAlgebra_closed)end CoarseAssembly.DiscreteRoeendend OAI
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859import OAI.Topology.CoarseAssembly.CompactIndexPairingnamespace OAI/-! # Homotopy invariance in the unitary argument of the index pairing -/noncomputable sectionnamespace CoarseAssembly.Analyticopen scoped CStarAlgebravariable {A : Type} [CStarAlgebra A]theorem rawCycleIndex_unitaryHomotopy (c : OddCycle A) (u : Interval → A)(hu : Continuous u) (hul : ∀ t, star (u t) * u t = 1)(hur : ∀ t, u t * star (u t) = 1) :rawCycleIndex c (u start) = rawCycleIndex c (u finish) := byapply fredholmIndex_homotopy (fun t => rawCycleToeplitz c (u t))· have hrep : Continuous (fun t => c.representation (u t)) := (map_continuous c.representation).comp huhave hext : Continuous (fun t => unitaryExtension c (u t)) := hrep.add continuous_constexact ((continuous_const.mul hext).mul continuous_const).add continuous_const· intro texact rawCycleToeplitz_fredholm c (u t) (hul t) (hur t)theorem indexPairing_unitaryHomotopy (u : Interval → A) (hu : Continuous u)(hul : ∀ t, star (u t) * u t = 1) (hur : ∀ t, u t * star (u t) = 1) :indexPairing (u start) (hul start) (hur start) =indexPairing (u finish) (hul finish) (hur finish) := byapply hom_extintro csimp only [indexPairing_cycleClass]exact rawCycleIndex_unitaryHomotopy c u hu hul huropen scoped ZeroAtInftyvariable {X : Type} [TopologicalSpace X] [CompactSpace X]theorem compactIndexPairing_homotopy {f g : C(X, Circle)} (F : f.Homotopy g) :compactIndexPairing f = compactIndexPairing g := bylet u : Interval → C(X, ℂ) := fun t => compactUnitary (homotopySlice F t)have hu : Continuous u := bylet coeCircle : C(Circle, ℂ) := ⟨fun z => (z : ℂ), continuous_subtype_val⟩exact (ContinuousMap.continuous_postcomp coeCircle).comp F.toContinuousMap.curry.continuoushave hul (t : Interval) : star (u t) * u t = 1 := compactUnitary_star_mul _have hur (t : Interval) : u t * star (u t) = 1 := compactUnitary_mul_star _have hi := indexPairing_unitaryHomotopy u hu hul hurhave he : indexPairing (compactUnitary f) (compactUnitary_star_mul f)(compactUnitary_mul_star f) = indexPairing (compactUnitary g)(compactUnitary_star_mul g) (compactUnitary_mul_star g) := bysimpa only [u, homotopySlice_start, homotopySlice_finish] using hiunfold compactIndexPairingrw [he]end CoarseAssembly.Analyticendend OAI1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859import OAI.Topology.CoarseAssembly.CompactIndexPairingnamespace OAI/-! # Homotopy invariance in the unitary argument of the index pairing -/noncomputable sectionnamespace CoarseAssembly.Analyticopen scoped CStarAlgebravariable {A : Type} [CStarAlgebra A]theorem rawCycleIndex_unitaryHomotopy (c : OddCycle A) (u : Interval → A)(hu : Continuous u) (hul : ∀ t, star (u t) * u t = 1)(hur : ∀ t, u t * star (u t) = 1) :rawCycleIndex c (u start) = rawCycleIndex c (u finish) := byapply fredholmIndex_homotopy (fun t => rawCycleToeplitz c (u t))· have hrep : Continuous (fun t => c.representation (u t)) := (map_continuous c.representation).comp huhave hext : Continuous (fun t => unitaryExtension c (u t)) := hrep.add continuous_constexact ((continuous_const.mul hext).mul continuous_const).add continuous_const· intro texact rawCycleToeplitz_fredholm c (u t) (hul t) (hur t)theorem indexPairing_unitaryHomotopy (u : Interval → A) (hu : Continuous u)(hul : ∀ t, star (u t) * u t = 1) (hur : ∀ t, u t * star (u t) = 1) :indexPairing (u start) (hul start) (hur start) =indexPairing (u finish) (hul finish) (hur finish) := byapply hom_extintro csimp only [indexPairing_cycleClass]exact rawCycleIndex_unitaryHomotopy c u hu hul huropen scoped ZeroAtInftyvariable {X : Type} [TopologicalSpace X] [CompactSpace X]theorem compactIndexPairing_homotopy {f g : C(X, Circle)} (F : f.Homotopy g) :compactIndexPairing f = compactIndexPairing g := bylet u : Interval → C(X, ℂ) := fun t => compactUnitary (homotopySlice F t)have hu : Continuous u := bylet coeCircle : C(Circle, ℂ) := ⟨fun z => (z : ℂ), continuous_subtype_val⟩exact (ContinuousMap.continuous_postcomp coeCircle).comp F.toContinuousMap.curry.continuoushave hul (t : Interval) : star (u t) * u t = 1 := compactUnitary_star_mul _have hur (t : Interval) : u t * star (u t) = 1 := compactUnitary_mul_star _have hi := indexPairing_unitaryHomotopy u hu hul hurhave he : indexPairing (compactUnitary f) (compactUnitary_star_mul f)(compactUnitary_mul_star f) = indexPairing (compactUnitary g)(compactUnitary_star_mul g) (compactUnitary_mul_star g) := bysimpa only [u, homotopySlice_start, homotopySlice_finish] using hiunfold compactIndexPairingrw [he]end CoarseAssembly.Analyticendend OAI
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576import OAI.Topology.CoarseAssembly.DegenerateCutDownnamespace OAI/-! # Unitary invariance of the explicit cycle index -/noncomputable sectionnamespace CoarseAssembly.Analyticvariable {H K : HilbertSpace}theorem operatorConjugation_equiv (e : H ≃ₗᵢ[ℂ] K) (T : End H) :operatorConjugation e.toLinearIsometry T = e.conjStarAlgEquiv T := byhave he : e.toLinearIsometry.toContinuousLinearMap.adjoint =(e.symm : K →L[ℂ] H) := e.adjoint_eq_symmext xchange e (T (e.toLinearIsometry.toContinuousLinearMap.adjoint x)) = e (T (e.symm x))rw [he]rfltheorem symmetricCutDown_map (φ : End H →⋆ₐ[ℂ] End K) (P F : End H) :φ (symmetricCutDown P F) = symmetricCutDown (φ P) (φ F) := byhave hs (r : ℝ) (T : End H) : φ (r • T) = r • φ T := φ.toAlgHom.map_smul_of_tower r Tunfold symmetricCutDownrw [map_add, hs, map_add, map_star,map_mul, map_mul, map_sub, map_one]theorem positiveProjection_map (φ : End H →⋆ₐ[ℂ] End K) (F : End H) :φ (positiveProjection F) = positiveProjection (φ F) := byhave hs (r : ℝ) (T : End H) : φ (r • T) = r • φ T := φ.toAlgHom.map_smul_of_tower r Tunfold positiveProjectionrw [hs, map_add, map_one]theorem toeplitzCompression_map (φ : End H →⋆ₐ[ℂ] End K) (P U : End H) :φ (toeplitzCompression P U) = toeplitzCompression (φ P) (φ U) := bysimp only [toeplitzCompression, map_add, map_mul, map_sub, map_one]theorem fredholmIndex_conjugation (e : H ≃ₗᵢ[ℂ] K) (T : End H) (hT : T.IsFredholm) :(e.conjStarAlgEquiv T).toLinearMap.index = T.toLinearMap.index := byhave he := e.toContinuousLinearEquiv.isFredholmhave hei := e.symm.toContinuousLinearEquiv.isFredholmhave hz : (e.toContinuousLinearEquiv : H →L[ℂ] K).toLinearMap.index = 0 :=LinearMap.index_of_bijective e.bijectivehave hzi : (e.symm.toContinuousLinearEquiv : K →L[ℂ] H).toLinearMap.index = 0 :=LinearMap.index_of_bijective e.symm.bijectivechange ((e.toContinuousLinearEquiv : H →L[ℂ] K) ∘L T ∘L(e.symm.toContinuousLinearEquiv : K →L[ℂ] H)).toLinearMap.index = _rw [he.index_comp (hT.comp hei), hT.index_comp hei, hz, hzi, zero_add, add_zero]variable {A : Type} [CStarAlgebra A]theorem rawCycleToeplitz_unitary (c d : OddCycle A) (h : c.UnitaryEquivalent d) (u : A) :rawCycleToeplitz d u = h.unitary.conjStarAlgEquiv (rawCycleToeplitz c u) := bylet φ : End c.space →⋆ₐ[ℂ] End d.space := h.unitary.conjStarAlgEquiv.toStarAlgHomhave hrep (a : A) : d.representation a = φ (c.representation a) :=(h.representation_eq a).trans (operatorConjugation_equiv h.unitary _)have hop : d.operator = φ c.operator :=h.operator_eq.trans (operatorConjugation_equiv h.unitary _)change rawCycleToeplitz d u = φ (rawCycleToeplitz c u)unfold rawCycleToeplitzrw [toeplitzCompression_map φ, positiveProjection_map φ, symmetricCutDown_map φ]simp only [unitaryExtension, map_add, map_sub, map_one]rw [hop, hrep 1, hrep u]theorem rawCycleIndex_unitary (c d : OddCycle A) (h : c.UnitaryEquivalent d) (u : A)(hul : star u * u = 1) (hur : u * star u = 1) : rawCycleIndex d u = rawCycleIndex c u := byunfold rawCycleIndexrw [rawCycleToeplitz_unitary c d h u]exact fredholmIndex_conjugation h.unitary _ (rawCycleToeplitz_fredholm c u hul hur)end CoarseAssembly.Analyticendend OAI12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576import OAI.Topology.CoarseAssembly.DegenerateCutDownnamespace OAI/-! # Unitary invariance of the explicit cycle index -/noncomputable sectionnamespace CoarseAssembly.Analyticvariable {H K : HilbertSpace}theorem operatorConjugation_equiv (e : H ≃ₗᵢ[ℂ] K) (T : End H) :operatorConjugation e.toLinearIsometry T = e.conjStarAlgEquiv T := byhave he : e.toLinearIsometry.toContinuousLinearMap.adjoint =(e.symm : K →L[ℂ] H) := e.adjoint_eq_symmext xchange e (T (e.toLinearIsometry.toContinuousLinearMap.adjoint x)) = e (T (e.symm x))rw [he]rfltheorem symmetricCutDown_map (φ : End H →⋆ₐ[ℂ] End K) (P F : End H) :φ (symmetricCutDown P F) = symmetricCutDown (φ P) (φ F) := byhave hs (r : ℝ) (T : End H) : φ (r • T) = r • φ T := φ.toAlgHom.map_smul_of_tower r Tunfold symmetricCutDownrw [map_add, hs, map_add, map_star,map_mul, map_mul, map_sub, map_one]theorem positiveProjection_map (φ : End H →⋆ₐ[ℂ] End K) (F : End H) :φ (positiveProjection F) = positiveProjection (φ F) := byhave hs (r : ℝ) (T : End H) : φ (r • T) = r • φ T := φ.toAlgHom.map_smul_of_tower r Tunfold positiveProjectionrw [hs, map_add, map_one]theorem toeplitzCompression_map (φ : End H →⋆ₐ[ℂ] End K) (P U : End H) :φ (toeplitzCompression P U) = toeplitzCompression (φ P) (φ U) := bysimp only [toeplitzCompression, map_add, map_mul, map_sub, map_one]theorem fredholmIndex_conjugation (e : H ≃ₗᵢ[ℂ] K) (T : End H) (hT : T.IsFredholm) :(e.conjStarAlgEquiv T).toLinearMap.index = T.toLinearMap.index := byhave he := e.toContinuousLinearEquiv.isFredholmhave hei := e.symm.toContinuousLinearEquiv.isFredholmhave hz : (e.toContinuousLinearEquiv : H →L[ℂ] K).toLinearMap.index = 0 :=LinearMap.index_of_bijective e.bijectivehave hzi : (e.symm.toContinuousLinearEquiv : K →L[ℂ] H).toLinearMap.index = 0 :=LinearMap.index_of_bijective e.symm.bijectivechange ((e.toContinuousLinearEquiv : H →L[ℂ] K) ∘L T ∘L(e.symm.toContinuousLinearEquiv : K →L[ℂ] H)).toLinearMap.index = _rw [he.index_comp (hT.comp hei), hT.index_comp hei, hz, hzi, zero_add, add_zero]variable {A : Type} [CStarAlgebra A]theorem rawCycleToeplitz_unitary (c d : OddCycle A) (h : c.UnitaryEquivalent d) (u : A) :rawCycleToeplitz d u = h.unitary.conjStarAlgEquiv (rawCycleToeplitz c u) := bylet φ : End c.space →⋆ₐ[ℂ] End d.space := h.unitary.conjStarAlgEquiv.toStarAlgHomhave hrep (a : A) : d.representation a = φ (c.representation a) :=(h.representation_eq a).trans (operatorConjugation_equiv h.unitary _)have hop : d.operator = φ c.operator :=h.operator_eq.trans (operatorConjugation_equiv h.unitary _)change rawCycleToeplitz d u = φ (rawCycleToeplitz c u)unfold rawCycleToeplitzrw [toeplitzCompression_map φ, positiveProjection_map φ, symmetricCutDown_map φ]simp only [unitaryExtension, map_add, map_sub, map_one]rw [hop, hrep 1, hrep u]theorem rawCycleIndex_unitary (c d : OddCycle A) (h : c.UnitaryEquivalent d) (u : A)(hul : star u * u = 1) (hur : u * star u = 1) : rawCycleIndex d u = rawCycleIndex c u := byunfold rawCycleIndexrw [rawCycleToeplitz_unitary c d h u]exact fredholmIndex_conjugation h.unitary _ (rawCycleToeplitz_fredholm c u hul hur)end CoarseAssembly.Analyticendend OAI
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980import OAI.Topology.CoarseAssembly.BoundedFamilySubdivisionnamespace OAI/-! # Whole-union boundary invariance without uniform homotopy speedsFinite subdivisions are chosen separately on each component. The two sumsof consecutive samples have uniformly close localized operators. Rotationand direct-sum additivity cancel the common interior samples in actual Roe K₁.-/noncomputable sectionnamespace CoarseAssembly.Ripsopen Analytic DiscreteRoevariable {Q : ℕ → Type} [∀ i, MetricSpace (Q i)] [∀ i, Fintype (Q i)][∀ i, DecidableEq (Q i)] {r : ℝ}namespace BoundedFamilyHomotopytheorem sampled_telescope (h : BoundedFamilyHomotopy Q r)(χ : ∀ i, C(Point (Q i) r, ℂ) →⋆ₐ[ℂ] ℂ)(o : ∀ i, Q i) (hr : 0 ≤ r) (N : ℕ → ℕ) (τ : ℕ → ℕ → Interval)(hnear : (h.sample χ (fun i => N i + 1) τ).boundary o hr =(h.sample χ (fun i => N i + 1) (fun i j => τ i (j + 1))).boundary o hr) :(h.eval (fun i => τ i 0)).boundary o hr =(h.eval (fun i => τ i (N i + 1))).boundary o hr := bylet := separatedMetric ohave hleft := h.sample_head_tail_boundary χ o hr N τhave hright := h.sample_head_tail_boundary χ o hr N(fun i => lastEndpointFirst (N i) (τ i))have hh : (fun i => lastEndpointFirst (N i) (τ i) 0) =(fun i => τ i (N i + 1)) := funext (fun i => lastEndpointFirst_zero (N i) (τ i))have ht : (fun i j => lastEndpointFirst (N i) (τ i) (j + 1)) =(fun i j => τ i (j + 1)) := funext (fun i => funext (fun j => lastEndpointFirst_succ (N i) (τ i) j))have hh' := congrArg (fun t : ℕ → Interval => (h.eval t).boundary o hr) hhhave ht' := congrArg (fun t : ℕ → ℕ → Interval => (h.sample χ N t).boundary o hr) hthave hright' := hright.trans (congrArg₂ (fun a b => a + b) hh' ht')have hrotate := h.sample_rotate_boundary χ o hr N τexact add_right_cancel (hleft.symm.trans (hnear.trans (hrotate.symm.trans hright')))theorem endpoint_boundary_eq (h : BoundedFamilyHomotopy Q r)(χ : ∀ i, C(Point (Q i) r, ℂ) →⋆ₐ[ℂ] ℂ)(o : ∀ i, Q i) (hr : 0 ≤ r) :(h.eval (fun _ => start)).boundary o hr = (h.eval (fun _ => finish)).boundary o hr := bylet s := h.smallSubdivisionhave he := h.sampled_telescope χ o hr s.count s.time(h.sampled_boundary_eq χ o hr s.count s.time s.step)have h0 : (fun i => s.time i 0) = (fun _ => start) := funext s.at_starthave h1 : (fun i => s.time i (s.count i + 1)) = (fun _ => finish) := funext s.at_finishhave he0 := congrArg (fun t : ℕ → Interval => (h.eval t).boundary o hr) h0have he1 := congrArg (fun t : ℕ → Interval => (h.eval t).boundary o hr) h1exact he0.symm.trans (he.trans he1)end BoundedFamilyHomotopy/-- Arbitrary componentwise continuous unital self-adjoint homotopies witha common operator bound preserve the whole-union Roe boundary. -/theorem ampleRipsFamilyBoundary_boundedHomotopy(o : ∀ i, Q i) (hr : 0 ≤ r)(χ : ∀ i, C(Point (Q i) r, ℂ) →⋆ₐ[ℂ] ℂ)(h : ∀ i, OddHomotopy C(Point (Q i) r, ℂ))(hπ : ∀ t i, (h i).representation t 1 = 1)(hs : ∀ t i, IsSelfAdjoint ((h i).operator t))(C : ℝ) (hC : 1 ≤ C) (hn : ∀ t i, ‖(h i).operator t‖ ≤ C) :letI := separatedMetric oampleRipsFamilyBoundary o r hr (fun i => (h i).eval start) (hπ start) (hs start)C (zero_le_one.trans hC) (hn start) =ampleRipsFamilyBoundary o r hr (fun i => (h i).eval finish) (hπ finish) (hs finish)C (zero_le_one.trans hC) (hn finish) := bylet H : BoundedFamilyHomotopy Q r := ⟨h, hπ, hs, C, hC, hn⟩exact H.endpoint_boundary_eq χ o hrend CoarseAssembly.Ripsendend OAI1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980import OAI.Topology.CoarseAssembly.BoundedFamilySubdivisionnamespace OAI/-! # Whole-union boundary invariance without uniform homotopy speedsFinite subdivisions are chosen separately on each component. The two sumsof consecutive samples have uniformly close localized operators. Rotationand direct-sum additivity cancel the common interior samples in actual Roe K₁.-/noncomputable sectionnamespace CoarseAssembly.Ripsopen Analytic DiscreteRoevariable {Q : ℕ → Type} [∀ i, MetricSpace (Q i)] [∀ i, Fintype (Q i)][∀ i, DecidableEq (Q i)] {r : ℝ}namespace BoundedFamilyHomotopytheorem sampled_telescope (h : BoundedFamilyHomotopy Q r)(χ : ∀ i, C(Point (Q i) r, ℂ) →⋆ₐ[ℂ] ℂ)(o : ∀ i, Q i) (hr : 0 ≤ r) (N : ℕ → ℕ) (τ : ℕ → ℕ → Interval)(hnear : (h.sample χ (fun i => N i + 1) τ).boundary o hr =(h.sample χ (fun i => N i + 1) (fun i j => τ i (j + 1))).boundary o hr) :(h.eval (fun i => τ i 0)).boundary o hr =(h.eval (fun i => τ i (N i + 1))).boundary o hr := bylet := separatedMetric ohave hleft := h.sample_head_tail_boundary χ o hr N τhave hright := h.sample_head_tail_boundary χ o hr N(fun i => lastEndpointFirst (N i) (τ i))have hh : (fun i => lastEndpointFirst (N i) (τ i) 0) =(fun i => τ i (N i + 1)) := funext (fun i => lastEndpointFirst_zero (N i) (τ i))have ht : (fun i j => lastEndpointFirst (N i) (τ i) (j + 1)) =(fun i j => τ i (j + 1)) := funext (fun i => funext (fun j => lastEndpointFirst_succ (N i) (τ i) j))have hh' := congrArg (fun t : ℕ → Interval => (h.eval t).boundary o hr) hhhave ht' := congrArg (fun t : ℕ → ℕ → Interval => (h.sample χ N t).boundary o hr) hthave hright' := hright.trans (congrArg₂ (fun a b => a + b) hh' ht')have hrotate := h.sample_rotate_boundary χ o hr N τexact add_right_cancel (hleft.symm.trans (hnear.trans (hrotate.symm.trans hright')))theorem endpoint_boundary_eq (h : BoundedFamilyHomotopy Q r)(χ : ∀ i, C(Point (Q i) r, ℂ) →⋆ₐ[ℂ] ℂ)(o : ∀ i, Q i) (hr : 0 ≤ r) :(h.eval (fun _ => start)).boundary o hr = (h.eval (fun _ => finish)).boundary o hr := bylet s := h.smallSubdivisionhave he := h.sampled_telescope χ o hr s.count s.time(h.sampled_boundary_eq χ o hr s.count s.time s.step)have h0 : (fun i => s.time i 0) = (fun _ => start) := funext s.at_starthave h1 : (fun i => s.time i (s.count i + 1)) = (fun _ => finish) := funext s.at_finishhave he0 := congrArg (fun t : ℕ → Interval => (h.eval t).boundary o hr) h0have he1 := congrArg (fun t : ℕ → Interval => (h.eval t).boundary o hr) h1exact he0.symm.trans (he.trans he1)end BoundedFamilyHomotopy/-- Arbitrary componentwise continuous unital self-adjoint homotopies witha common operator bound preserve the whole-union Roe boundary. -/theorem ampleRipsFamilyBoundary_boundedHomotopy(o : ∀ i, Q i) (hr : 0 ≤ r)(χ : ∀ i, C(Point (Q i) r, ℂ) →⋆ₐ[ℂ] ℂ)(h : ∀ i, OddHomotopy C(Point (Q i) r, ℂ))(hπ : ∀ t i, (h i).representation t 1 = 1)(hs : ∀ t i, IsSelfAdjoint ((h i).operator t))(C : ℝ) (hC : 1 ≤ C) (hn : ∀ t i, ‖(h i).operator t‖ ≤ C) :letI := separatedMetric oampleRipsFamilyBoundary o r hr (fun i => (h i).eval start) (hπ start) (hs start)C (zero_le_one.trans hC) (hn start) =ampleRipsFamilyBoundary o r hr (fun i => (h i).eval finish) (hπ finish) (hs finish)C (zero_le_one.trans hC) (hn finish) := bylet H : BoundedFamilyHomotopy Q r := ⟨h, hπ, hs, C, hC, hn⟩exact H.endpoint_boundary_eq χ o hrend CoarseAssembly.Ripsendend OAI
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283import OAI.Topology.CoarseAssembly.MultiplicativeIndexPairingnamespace OAI/-! # The explicit homotopy from a lifted loop to its winding power -/noncomputable sectionnamespace CoarseAssemblyopen unitInterval/-- The degree-`n` self-map of the additive circle. -/def circleDegree (n : ℤ) : C(WindingCircle, WindingCircle) :=⟨fun z => n • z, continuous_id.zsmul n⟩theorem windingCircle_intCast (n : ℤ) : ((n : ℝ) : WindingCircle) = 0 := byhave h : ((n • (1 : ℝ) : ℝ) : WindingCircle) = 0 := byrw [AddCircle.coe_zsmul, AddCircle.coe_period, smul_zero]simpa only [zsmul_eq_mul, mul_one] using h/-- Straight-line interpolation of the real lift with `t ↦ n*t`. -/def windingInterpolation (n : ℤ) (L : Path (0 : ℝ) (n : ℝ)) (s : unitInterval) :Path (0 : WindingCircle) 0 wheretoFun t := (((1 - (s : ℝ)) * L t + (s : ℝ) * n * (t : ℝ) : ℝ) : WindingCircle)continuous_toFun := (AddCircle.continuous_mk' 1).comp((L.continuous.const_mul _).add (continuous_subtype_val.const_mul _))source' := by simptarget' := byhave he : (1 - (s : ℝ)) * (n : ℝ) + (s : ℝ) * n * 1 = n := by ringsimp only [Path.target, Set.Icc.coe_one, he]exact windingCircle_intCast ndef windingInterpolationMap (n : ℤ) (L : Path (0 : ℝ) (n : ℝ)) :unitInterval × WindingCircle → WindingCircle :=fun p => loopCircle (windingInterpolation n L p.1) p.2theorem windingInterpolationMap_continuous (n : ℤ) (L : Path (0 : ℝ) (n : ℝ)) :Continuous (windingInterpolationMap n L) := bylet q : unitInterval × unitInterval → unitInterval × WindingCircle :=fun p => (p.1, ((p.2 : ℝ) : WindingCircle))have hq : Continuous q := continuous_fst.prodMk((AddCircle.continuous_mk' 1).comp (continuous_subtype_val.comp continuous_snd))have hqs : Function.Surjective q := byrintro ⟨s, z⟩obtain ⟨t, ht⟩ := circle_parameter_surjective zexact ⟨(s, t), Prod.ext rfl ht⟩apply ((hq.isClosedMap.isQuotientMap hq hqs).continuous_iff).2have he : windingInterpolationMap n L ∘ q = fun p : unitInterval × unitInterval =>(((1 - (p.1 : ℝ)) * L p.2 + (p.1 : ℝ) * n * (p.2 : ℝ) : ℝ) : WindingCircle) := byfunext pexact loopCircle_apply (windingInterpolation n L p.1) p.2rw [he]apply (AddCircle.continuous_mk' 1).compexact ((continuous_const.sub (continuous_subtype_val.comp continuous_fst)).mul(L.continuous.comp continuous_snd)).add(((continuous_subtype_val.comp continuous_fst).mul continuous_const).mul(continuous_subtype_val.comp continuous_snd))def windingHomotopy (g : C(WindingCircle, WindingCircle)) (n : ℤ)(L : Path (0 : ℝ) (n : ℝ))(hL : ∀ t : unitInterval, g (t : ℝ) = (L t : WindingCircle)) :g.Homotopy (circleDegree n) wheretoFun := windingInterpolationMap n Lcontinuous_toFun := windingInterpolationMap_continuous n Lmap_zero_left z := byobtain ⟨t, rfl⟩ := circle_parameter_surjective zrw [windingInterpolationMap, loopCircle_apply, hL t]change ((((1 - (0 : ℝ)) * L t + (0 : ℝ) * n * (t : ℝ)) : ℝ) : WindingCircle) = _simpmap_one_left z := byobtain ⟨t, rfl⟩ := circle_parameter_surjective zrw [windingInterpolationMap, loopCircle_apply]change ((((1 - (1 : ℝ)) * L t + (1 : ℝ) * n * (t : ℝ)) : ℝ) : WindingCircle) =n • ((t : ℝ) : WindingCircle)simpa only [sub_self, zero_mul, zero_add, one_mul, zsmul_eq_mul] using(AddCircle.coe_zsmul (p := (1 : ℝ)) (n := n) (x := (t : ℝ)))end CoarseAssemblyendend OAI1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283import OAI.Topology.CoarseAssembly.MultiplicativeIndexPairingnamespace OAI/-! # The explicit homotopy from a lifted loop to its winding power -/noncomputable sectionnamespace CoarseAssemblyopen unitInterval/-- The degree-`n` self-map of the additive circle. -/def circleDegree (n : ℤ) : C(WindingCircle, WindingCircle) :=⟨fun z => n • z, continuous_id.zsmul n⟩theorem windingCircle_intCast (n : ℤ) : ((n : ℝ) : WindingCircle) = 0 := byhave h : ((n • (1 : ℝ) : ℝ) : WindingCircle) = 0 := byrw [AddCircle.coe_zsmul, AddCircle.coe_period, smul_zero]simpa only [zsmul_eq_mul, mul_one] using h/-- Straight-line interpolation of the real lift with `t ↦ n*t`. -/def windingInterpolation (n : ℤ) (L : Path (0 : ℝ) (n : ℝ)) (s : unitInterval) :Path (0 : WindingCircle) 0 wheretoFun t := (((1 - (s : ℝ)) * L t + (s : ℝ) * n * (t : ℝ) : ℝ) : WindingCircle)continuous_toFun := (AddCircle.continuous_mk' 1).comp((L.continuous.const_mul _).add (continuous_subtype_val.const_mul _))source' := by simptarget' := byhave he : (1 - (s : ℝ)) * (n : ℝ) + (s : ℝ) * n * 1 = n := by ringsimp only [Path.target, Set.Icc.coe_one, he]exact windingCircle_intCast ndef windingInterpolationMap (n : ℤ) (L : Path (0 : ℝ) (n : ℝ)) :unitInterval × WindingCircle → WindingCircle :=fun p => loopCircle (windingInterpolation n L p.1) p.2theorem windingInterpolationMap_continuous (n : ℤ) (L : Path (0 : ℝ) (n : ℝ)) :Continuous (windingInterpolationMap n L) := bylet q : unitInterval × unitInterval → unitInterval × WindingCircle :=fun p => (p.1, ((p.2 : ℝ) : WindingCircle))have hq : Continuous q := continuous_fst.prodMk((AddCircle.continuous_mk' 1).comp (continuous_subtype_val.comp continuous_snd))have hqs : Function.Surjective q := byrintro ⟨s, z⟩obtain ⟨t, ht⟩ := circle_parameter_surjective zexact ⟨(s, t), Prod.ext rfl ht⟩apply ((hq.isClosedMap.isQuotientMap hq hqs).continuous_iff).2have he : windingInterpolationMap n L ∘ q = fun p : unitInterval × unitInterval =>(((1 - (p.1 : ℝ)) * L p.2 + (p.1 : ℝ) * n * (p.2 : ℝ) : ℝ) : WindingCircle) := byfunext pexact loopCircle_apply (windingInterpolation n L p.1) p.2rw [he]apply (AddCircle.continuous_mk' 1).compexact ((continuous_const.sub (continuous_subtype_val.comp continuous_fst)).mul(L.continuous.comp continuous_snd)).add(((continuous_subtype_val.comp continuous_fst).mul continuous_const).mul(continuous_subtype_val.comp continuous_snd))def windingHomotopy (g : C(WindingCircle, WindingCircle)) (n : ℤ)(L : Path (0 : ℝ) (n : ℝ))(hL : ∀ t : unitInterval, g (t : ℝ) = (L t : WindingCircle)) :g.Homotopy (circleDegree n) wheretoFun := windingInterpolationMap n Lcontinuous_toFun := windingInterpolationMap_continuous n Lmap_zero_left z := byobtain ⟨t, rfl⟩ := circle_parameter_surjective zrw [windingInterpolationMap, loopCircle_apply, hL t]change ((((1 - (0 : ℝ)) * L t + (0 : ℝ) * n * (t : ℝ)) : ℝ) : WindingCircle) = _simpmap_one_left z := byobtain ⟨t, rfl⟩ := circle_parameter_surjective zrw [windingInterpolationMap, loopCircle_apply]change ((((1 - (1 : ℝ)) * L t + (1 : ℝ) * n * (t : ℝ)) : ℝ) : WindingCircle) =n • ((t : ℝ) : WindingCircle)simpa only [sub_self, zero_mul, zero_add, one_mul, zsmul_eq_mul] using(AddCircle.coe_zsmul (p := (1 : ℝ)) (n := n) (x := (t : ℝ)))end CoarseAssemblyendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960import OAI.Topology.CoarseAssembly.WindingHomotopynamespace OAI/-! # Reducing the winding index formula to one generator evaluationThe pairing, its naturality, homotopy invariance and power law are proved.Only an actual circle class with coordinate index one remains to construct.-/noncomputable sectionnamespace CoarseAssemblyopen Analytic unitIntervaltheorem circleUnitary_degree (n : ℤ) : circleUnitary (circleDegree n) =circleUnitary (ContinuousMap.id WindingCircle) ^ n := byapply ContinuousMap.extintro zexact AddCircle.toCircle_zsmul z ntheorem winding_index_hom (g : C(WindingCircle, WindingCircle)) (n : ℤ)(L : Path (0 : ℝ) (n : ℝ))(hL : ∀ t : unitInterval, g (t : ℝ) = (L t : WindingCircle)) :compactIndexPairing (circleUnitary g) =n • compactIndexPairing (circleUnitary (ContinuousMap.id WindingCircle)) := bylet toCircleMap : C(WindingCircle, Circle) := ⟨AddCircle.toCircle, AddCircle.continuous_toCircle⟩have h := compactIndexPairing_homotopy((ContinuousMap.Homotopy.refl toCircleMap).comp (windingHomotopy g n L hL))change compactIndexPairing (circleUnitary g) = compactIndexPairing (circleUnitary (circleDegree n)) at hrw [circleUnitary_degree, compactIndexPairing_zpow] at hexact htheorem winding_index (g : C(WindingCircle, WindingCircle)) (n : ℤ)(L : Path (0 : ℝ) (n : ℝ))(hL : ∀ t : unitInterval, g (t : ℝ) = (L t : WindingCircle))(α : LocallyFiniteK1 WindingCircle) :compactIndexPairing (circleUnitary g) α =n * compactIndexPairing (circleUnitary (ContinuousMap.id WindingCircle)) α := bysimpa only [AddMonoidHom.smul_apply, zsmul_eq_mul, Int.cast_id] usingDFunLike.congr_fun (winding_index_hom g n L hL) α/-- All the published circle fields follow from a single coordinate-index-one class. -/def circleInputOfIndexOne (α : LocallyFiniteK1 WindingCircle)(hα : compactIndexPairing (circleUnitary (ContinuousMap.id WindingCircle)) α = 1) :PublishedCircleInput wherefundamental := αpairing f := compactIndexPairing (circleUnitary f)loop_naturality f γ := byhave h := DFunLike.congr_fun (compactIndexPairing_natural (circleUnitary f) γ) αexact hwinding g n L hL := byrw [winding_index g n L hL α, hα, mul_one]end CoarseAssemblyendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960import OAI.Topology.CoarseAssembly.WindingHomotopynamespace OAI/-! # Reducing the winding index formula to one generator evaluationThe pairing, its naturality, homotopy invariance and power law are proved.Only an actual circle class with coordinate index one remains to construct.-/noncomputable sectionnamespace CoarseAssemblyopen Analytic unitIntervaltheorem circleUnitary_degree (n : ℤ) : circleUnitary (circleDegree n) =circleUnitary (ContinuousMap.id WindingCircle) ^ n := byapply ContinuousMap.extintro zexact AddCircle.toCircle_zsmul z ntheorem winding_index_hom (g : C(WindingCircle, WindingCircle)) (n : ℤ)(L : Path (0 : ℝ) (n : ℝ))(hL : ∀ t : unitInterval, g (t : ℝ) = (L t : WindingCircle)) :compactIndexPairing (circleUnitary g) =n • compactIndexPairing (circleUnitary (ContinuousMap.id WindingCircle)) := bylet toCircleMap : C(WindingCircle, Circle) := ⟨AddCircle.toCircle, AddCircle.continuous_toCircle⟩have h := compactIndexPairing_homotopy((ContinuousMap.Homotopy.refl toCircleMap).comp (windingHomotopy g n L hL))change compactIndexPairing (circleUnitary g) = compactIndexPairing (circleUnitary (circleDegree n)) at hrw [circleUnitary_degree, compactIndexPairing_zpow] at hexact htheorem winding_index (g : C(WindingCircle, WindingCircle)) (n : ℤ)(L : Path (0 : ℝ) (n : ℝ))(hL : ∀ t : unitInterval, g (t : ℝ) = (L t : WindingCircle))(α : LocallyFiniteK1 WindingCircle) :compactIndexPairing (circleUnitary g) α =n * compactIndexPairing (circleUnitary (ContinuousMap.id WindingCircle)) α := bysimpa only [AddMonoidHom.smul_apply, zsmul_eq_mul, Int.cast_id] usingDFunLike.congr_fun (winding_index_hom g n L hL) α/-- All the published circle fields follow from a single coordinate-index-one class. -/def circleInputOfIndexOne (α : LocallyFiniteK1 WindingCircle)(hα : compactIndexPairing (circleUnitary (ContinuousMap.id WindingCircle)) α = 1) :PublishedCircleInput wherefundamental := αpairing f := compactIndexPairing (circleUnitary f)loop_naturality f γ := byhave h := DFunLike.congr_fun (compactIndexPairing_natural (circleUnitary f) γ) αexact hwinding g n L hL := byrw [winding_index g n L hL α, hα, mul_one]end CoarseAssemblyendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449import OAI.Topology.EilenbergGanea.SmallHolonomyimport OAI.GroupTheory.RightAngledArtin.TraceWordsnamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiffnamespace EilenbergGaneanamespace AffineTransport/-- A finite family of proper quaternion subspaces cannot cover ℍ. -/theorem exists_avoid_subspaces {I : Type*} [Finite I](p : I → Submodule ℝ ℍ) (hp : ∀ i, p i ≠ ⊤) :∃ q : ℍ, ∀ i, q ∉ p i := byhave ho (i) : IsOpen ((p i : Set ℍ)ᶜ) :=(p i).closed_of_finiteDimensional.isOpen_complhave hd (i) : Dense ((p i : Set ℍ)ᶜ) := byapply interior_eq_empty_iff_dense_compl.mpapply Set.not_nonempty_iff_eq_empty.mpintro hexact hp i ((p i).eq_top_of_nonempty_interior' h)obtain ⟨q,hq⟩ := (dense_iInter_of_isOpen ho hd).nonemptyexact ⟨q,Set.mem_iInter.mp hq⟩/-- Simultaneous general position for finitely many local quaternion gauges.Different vertices may use different invertible linear transformations in eachchart. No flatness or topology is assumed in this finite-dimensional lemma. -/theorem exists_triangle_general_position {A V : Type*} [Finite A] [Fintype V](T : A → V → ℍ ≃ₗ[ℝ] ℍ) :∃ q : V → ℍ, ∀ a (s : Finset V), s.card ≤ 3 →LinearIndepOn ℝ (fun v => T a v (q v)) (s : Set V) := byclassicalsuffices ∀ U : Finset V, ∃ q : V → ℍ, ∀ a (s : Finset V), s ⊆ U → s.card ≤ 3 →LinearIndepOn ℝ (fun v => T a v (q v)) (s : Set V) byobtain ⟨q,hq⟩ := this Finset.univexact ⟨q,fun a s h => hq a s (Finset.subset_univ _) h⟩intro Uinduction U using Finset.induction with| empty =>refine ⟨0,?_⟩intro a s hs _have : s = ∅ := Finset.subset_empty.mp hssubst ssimpa only [Finset.coe_empty,Pi.zero_apply] usinglinearIndepOn_empty ℝ (fun v => T a v (0 : ℍ))| @insert v U hv ih =>obtain ⟨q,hq⟩ := ihlet I := A × {s : Finset V // s ⊆ U ∧ s.card ≤ 2}let p : I → Submodule ℝ ℍ := fun i =>(Submodule.span ℝ ((fun w => T i.1 w (q w)) '' (i.2.val : Set V))).comap(T i.1 v).toLinearMaphave hp (i : I) : p i ≠ ⊤ := byhave hf : Module.finrank ℝ (Submodule.span ℝ((fun w => T i.1 w (q w)) '' (i.2.val : Set V))) ≤ 2 := byhave hh := finrank_span_finset_le_card (R := ℝ) (i.2.val.image (fun w => T i.1 w (q w)))rw [Finset.coe_image] at hhexact hh.trans ((Finset.card_image_le).trans i.2.property.2)have hproper : Submodule.span ℝ ((fun w => T i.1 w (q w)) ''(i.2.val : Set V)) ≠ ⊤ := byapply ne_of_lt (Submodule.lt_top_of_finrank_lt_finrank _)rw [Quaternion.finrank_eq_four]omegaintro hhapply hproperapply top_uniqueintro x _have hm : (T i.1 v).symm x ∈ p i := by rw [hh]; trivialsimpa only [p,Submodule.mem_comap,LinearEquiv.coe_coe,LinearEquiv.apply_symm_apply] using hmobtain ⟨z,hz⟩ := exists_avoid_subspaces p hprefine ⟨Function.update q v z,?_⟩intro a s hs hcby_cases hvs : v ∈ s· have hsub : s.erase v ⊆ U := byintro w hwhave hh := hs (Finset.mem_of_mem_erase hw)exact (Finset.mem_insert.mp hh).resolve_left (Finset.ne_of_mem_erase hw)have hcard : (s.erase v).card ≤ 2 := byhave he := Finset.card_erase_add_one hvsomegahave heq : ∀ w ∈ (s.erase v : Finset V), Function.update q v z w = q w := byintro w hwexact Function.update_of_ne (Finset.ne_of_mem_erase hw) _ _have hi : LinearIndepOn ℝ (fun w => T a w (Function.update q v z w))((s.erase v : Finset V) : Set V) := byapply (hq a (s.erase v) hsub (by omega)).congrintro w hwdsimp onlyrw [heq w hw]have hn : T a v (Function.update q v z v) ∉ Submodule.span ℝ((fun w => T a w (Function.update q v z w)) ''((s.erase v : Finset V) : Set V)) := byrw [Function.update_self]have him : ((fun w => T a w (Function.update q v z w)) ''((s.erase v : Finset V) : Set V)) =((fun w => T a w (q w)) '' ((s.erase v : Finset V) : Set V)) := byapply Set.image_congrintro w hwrw [heq w hw]rw [him]exact hz ⟨a,⟨s.erase v,hsub,hcard⟩⟩have ht := (linearIndepOn_insert (by simp : v ∉ ((s.erase v : Finset V) : Set V))).mpr⟨hi,hn⟩simpa only [← Finset.coe_insert,Finset.insert_erase hvs] using ht· have hsub : s ⊆ U := byintro w hwhave hh := hs hwrcases Finset.mem_insert.mp hh with rfl | hh· exact False.elim (hvs hw)· exact hhapply (hq a s hsub hc).congrintro w hwdsimp onlyrw [Function.update_of_ne (by intro h; subst w; exact hvs hw)]@[simp] theorem unit_norm (h : SU2) : ‖(h : ℍ)‖ = 1 :=(quaternion_mem_unitary_iff _).mp h.propertydef leftLinearEquiv (h : SU2) : ℍ ≃ₗ[ℝ] ℍ wheretoFun q := (h : ℍ) * qinvFun q := (h⁻¹ : SU2) * qleft_inv q := by simp [← mul_assoc,← Submonoid.coe_mul]right_inv q := by simp [← mul_assoc,← Submonoid.coe_mul]map_add' _ _ := mul_add _ _ _map_smul' r q := mul_smul_comm r (h : ℍ) q@[simp] theorem leftLinearEquiv_apply (h : SU2) (q : ℍ) :leftLinearEquiv h q = (h : ℍ) * q := rfltheorem normalize_left (h : SU2) {q : ℍ} (hq : q ≠ 0) :normalizeQuaternion ((h : ℍ) * q) = h * normalizeQuaternion q := byhave hh : (h : ℍ) * q ≠ 0 := byexact (leftLinearEquiv h).map_ne_zero_iff.mpr hqapply Subtype.extrw [normalizeQuaternion_coe_of_ne_zero hh]change ‖(h : ℍ) * q‖⁻¹ • ((h : ℍ) * q) = (h : ℍ) * (normalizeQuaternion q : ℍ)rw [normalizeQuaternion_coe_of_ne_zero hq,norm_mul,unit_norm,one_mul,mul_smul_comm]section FiniteSimplexvariable {V : Type*} [Fintype V]def coordinateSimplex : Set (V → ℝ) :={weights | (∀ vertex, 0 ≤ weights vertex) ∧ ∑ vertex, weights vertex = 1}/-- Closed coordinate face of the standard simplex. -/def face (s : Finset V) : Set (V → ℝ) :={b | b ∈ coordinateSimplex ∧ ∀ v ∉ s, b v = 0}/-- The whole two-skeleton of a finite standard simplex. -/def triangleSet : Set (V → ℝ) :=⋃ s : {s : Finset V // s.card ≤ 3}, face s.valabbrev TrianglePoint (V : Type*) [Fintype V] := (triangleSet : Set (V → ℝ))theorem mem_triangleSet {b : V → ℝ} : b ∈ triangleSet ↔∃ s : Finset V, s.card ≤ 3 ∧ b ∈ coordinateSimplex ∧ ∀ v ∉ s, b v = 0 := bysimp only [triangleSet,Set.mem_iUnion,face,Set.mem_ofPred_eq,Subtype.exists,exists_prop]omit [Fintype V] inprivate theorem isClosed_face_support (s : Finset V) :IsClosed {b : V → ℝ | ∀ v ∉ s, b v = 0} := byhave he : {b : V → ℝ | ∀ v ∉ s, b v = 0} =⋂ v, ⋂ (_ : v ∉ s), {b : V → ℝ | b v = 0} := by ext b; simprw [he]exact isClosed_iInter fun v => isClosed_iInter fun _ =>isClosed_eq (continuous_apply v) continuous_consttheorem isCompact_face (s : Finset V) : IsCompact (face s) := byhave compact_simplex : IsCompact (coordinateSimplex : Set (V → ℝ)) := byconvert isCompact_range(Convexity.StdSimplex.isEmbedding_toFun_comp_weights ℝ V).continuous using 1rw [Convexity.StdSimplex.range_toFun_comp_weights]ext weightssimp [coordinateSimplex]exact compact_simplex.inter_right (isClosed_face_support s)theorem isCompact_triangleSet : IsCompact (triangleSet : Set (V → ℝ)) :=isCompact_iUnion fun _ => isCompact_face _instance : CompactSpace (TrianglePoint V) :=isCompact_iff_compactSpace.mp isCompact_triangleSettheorem point_simplex (b : TrianglePoint V) : (b : V → ℝ) ∈ coordinateSimplex := byobtain ⟨_,_,h,_⟩ := mem_triangleSet.mp b.propertyexact htheorem point_exists_nonzero (b : TrianglePoint V) : ∃ v, (b : V → ℝ) v ≠ 0 := byby_contra! hhave he := (point_simplex b).2simp only [h,Finset.sum_const_zero] at henorm_num at hevariable (h : V → V → SU2) (q : V → ℍ)def rawGauge (a : V) (b : V → ℝ) : ℍ := ∑ v, b v • ((h a v : ℍ) * q v)def GeneralPosition : Prop := ∀ a (s : Finset V), s.card ≤ 3 →LinearIndepOn ℝ (fun v => (h a v : ℍ) * q v) (s : Set V)theorem exists_generalPosition : ∃ q : V → ℍ, GeneralPosition h q := byobtain ⟨q,hq⟩ := exists_triangle_general_position (fun a v => leftLinearEquiv (h a v))exact ⟨q,hq⟩theorem rawGauge_ne_zero (hq : GeneralPosition h q) (a : V) (b : TrianglePoint V) :rawGauge h q a b ≠ 0 := byclassicalobtain ⟨s,hs,hb,hout⟩ := mem_triangleSet.mp b.propertyintro hehave he' : ∑ v ∈ s, (b : V → ℝ) v • ((h a v : ℍ) * q v) = 0 := byrw [← he]apply Finset.sum_subset (Finset.subset_univ _)intro v _ hvrw [hout v hv,zero_smul]have hz := (linearIndepOn_iff'.mp (hq a s hs)) s b (Set.Subset.refl _) he'have hall : ∀ v, (b : V → ℝ) v = 0 := byintro vby_cases hv : v ∈ s· exact hz v hv· exact hout v hvhave heq := hb.2simp only [hall,Finset.sum_const_zero] at heqnorm_num at heqdef gauge (a : V) (b : TrianglePoint V) : SU2 := normalizeQuaternion (rawGauge h q a b)theorem continuous_rawGauge (a : V) : Continuous (rawGauge h q a) :=continuous_finsetSum _ fun v _ => (continuous_apply v).smul continuous_consttheorem continuous_gauge (hq : GeneralPosition h q) (a : V) : Continuous (gauge h q a) := byapply continuous_iff_continuousAt.mprintro bexact ContinuousAt.comp (f := fun c : TrianglePoint V => rawGauge h q a c)(normalizeQuaternion_continuousAt (rawGauge_ne_zero h q hq a b))((continuous_rawGauge h q a).comp continuous_subtype_val).continuousAt/-- Uniform modulus over all charts, including across the edges of all simplices. -/theorem gauges_uniform (hq : GeneralPosition h q) {ε : ℝ} (hε : 0 < ε) :∃ δ > 0, ∀ b c : TrianglePoint V, dist b c < δ →∀ a, dist (gauge h q a b) (gauge h q a c) < ε := byhave hc : Continuous (fun b : TrianglePoint V => fun a => gauge h q a b) :=continuous_pi fun a => continuous_gauge h q hq ahave hu := CompactSpace.uniformContinuous_of_continuous hcobtain ⟨δ,hδ,H⟩ := Metric.uniformContinuous_iff.mp hu ε hεrefine ⟨δ,hδ,?_⟩intro b c hbc aexact lt_of_le_of_lt (dist_le_pi_dist (fun a => gauge h q a b) (fun a => gauge h q a c) a) (H hbc)end FiniteSimplextheorem unitary_dist_left (a b c : SU2) : dist (a * b) (a * c) = dist b c := bychange dist ((a : ℍ) * (b : ℍ)) ((a : ℍ) * (c : ℍ)) = dist (b : ℍ) (c : ℍ)rw [dist_eq_norm,dist_eq_norm,← mul_sub,norm_mul,unit_norm,one_mul]theorem unitary_dist_inv_mul_one (a b : SU2) : dist (a⁻¹ * b) 1 = dist a b := byrw [← unitary_dist_left a (a⁻¹ * b) 1]simp [dist_comm]theorem unitary_dist_mul_one_le (a b : SU2) :dist (a * b) 1 ≤ dist a 1 + dist b 1 := bycalcdist (a * b) 1 ≤ dist (a * b) a + dist a 1 := dist_triangle _ _ __ = dist b 1 + dist a 1 := byexact congrArg (fun t => t + dist a 1) (by simpa only [mul_one] using unitary_dist_left a b 1)_ = dist a 1 + dist b 1 := add_comm _ _section Connectionvariable {V : Type*} [Fintype V]variable (L : SimpleGraph V)def Related (a b : V) : Prop := a = b ∨ L.Adj a bomit [Fintype V] intheorem Related.refl (a : V) : Related L a a := Or.inl rflomit [Fintype V] intheorem Related.symm {a b : V} : Related L a b → Related L b a := byrintro (rfl | h)· exact Related.refl L _· exact Or.inr h.symmdef Star (a : V) (b : TrianglePoint V) : Prop :=∀ v, (b : V → ℝ) v ≠ 0 → Related L a vdef CliquePoint (b : TrianglePoint V) : Prop :=∀ a, (b : V → ℝ) a ≠ 0 → Star L a bdef Compatible (b c : TrianglePoint V) : Prop :=∀ v w, ((b : V → ℝ) v ≠ 0 ∨ (c : V → ℝ) v ≠ 0) →((b : V → ℝ) w ≠ 0 ∨ (c : V → ℝ) w ≠ 0) → Related L v wdef root (b : TrianglePoint V) : V := Classical.choose (point_exists_nonzero b)theorem root_mem (b : TrianglePoint V) : (b : V → ℝ) (root b) ≠ 0 :=Classical.choose_spec (point_exists_nonzero b)variable (h : V → V → SU2) (q : V → ℍ)def FlatConnection : Prop := ∀ a b c, Related L a b → Related L b c →Related L a c → h a b * h b c = h a ctheorem rawGauge_transition (hf : FlatConnection L h) {a c : V}{b : TrianglePoint V} (hac : Related L a c) (ha : Star L a b) (hc : Star L c b) :rawGauge h q a b = (h a c : ℍ) * rawGauge h q c b := byclassicalsimp only [rawGauge,Finset.mul_sum]apply Finset.sum_congr rflintro v _by_cases hv : (b : V → ℝ) v = 0· simp [hv]· rw [mul_smul_comm,← mul_assoc,← Submonoid.coe_mul,hf a c v hac (hc v hv) (ha v hv)]theorem gauge_transition (hf : FlatConnection L h) (hq : GeneralPosition h q){a c : V} {b : TrianglePoint V} (hac : Related L a c)(ha : Star L a b) (hc : Star L c b) :gauge h q a b = h a c * gauge h q c b := byunfold gaugerw [rawGauge_transition L h q hf hac ha hc]exact normalize_left _ (rawGauge_ne_zero h q hq c b)def chartTransport (a : V) (b c : TrianglePoint V) : SU2 :=(gauge h q a b)⁻¹ * gauge h q a cdef transport (b c : TrianglePoint V) : SU2 := chartTransport h q (root b) b ctheorem transport_chart (hf : FlatConnection L h) (hq : GeneralPosition h q){b c : TrianglePoint V} (hb : Compatible L b c) {a : V}(hab : Star L a b) (hac : Star L a c) :transport h q b c = chartTransport h q a b c := byhave hrb : Star L (root b) b := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inl hv)have hrc : Star L (root b) c := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inr hv)have har : Related L a (root b) := hab _ (root_mem b)unfold transport chartTransportrw [gauge_transition L h q hf hq har hab hrb,gauge_transition L h q hf hq har hac hrc]grouptheorem compatible_symm {b c : TrianglePoint V} (hb : Compatible L b c) :Compatible L c b := fun v w hv hw => hb v w hv.symm hw.symmtheorem transport_reverse (hf : FlatConnection L h) (hq : GeneralPosition h q){b c : TrianglePoint V} (hb : Compatible L b c) :transport h q c b = (transport h q b c)⁻¹ := byhave hrc : Star L (root b) c := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inr hv)have hrb : Star L (root b) b := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inl hv)rw [transport_chart L h q hf hq (compatible_symm L hb) hrc hrb]unfold transport chartTransportgrouptheorem chartTransport_trans (a : V) (b c d : TrianglePoint V) :chartTransport h q a b c * chartTransport h q a c d = chartTransport h q a b d := byunfold chartTransportgrouptheorem exists_large_coordinate (b : TrianglePoint V) :∃ a, 1 / (Fintype.card V + 1 : ℝ) < (b : V → ℝ) a := byby_contra! Hhave hs := Finset.sum_le_sum (s := Finset.univ) (fun a _ => H a)have hb := (point_simplex b).2rw [hb,Finset.sum_const,Finset.card_univ,nsmul_eq_mul] at hshave hn : 0 ≤ (Fintype.card V : ℝ) := Nat.cast_nonneg _have hd : 0 < (Fintype.card V : ℝ) + 1 := by positivityhave he := (le_div_iff₀ hd).mp (by simpa only [mul_one_div] using hs)linariththeorem nearby_star {b c : TrianglePoint V} {a : V}(ha : 1 / (Fintype.card V + 1 : ℝ) < (b : V → ℝ) a)(hc : CliquePoint L c) (hbc : dist b c < 1 / (Fintype.card V + 1 : ℝ)) :Star L a c := byapply hc aintro hehave hd := lt_of_le_of_lt (dist_le_pi_dist (b : V → ℝ) (c : V → ℝ) a) hbcrw [he, Real.dist_eq,sub_zero,abs_of_nonneg ((point_simplex b).1 a)] at hdexact (not_lt_of_ge ha.le) hdtheorem chartTransport_dist (a : V) (b c : TrianglePoint V) :dist (chartTransport h q a b c) 1 = dist (gauge h q a b) (gauge h q a c) :=unitary_dist_inv_mul_one _ _theorem transport_uniform (hq : GeneralPosition h q) {ε : ℝ} (hε : 0 < ε) :∃ δ > 0, ∀ b c : TrianglePoint V, dist b c < δ → dist (transport h q b c) 1 < ε := byobtain ⟨δ,hδ,H⟩ := gauges_uniform h q hq hεexact ⟨δ,hδ,fun b c hbc => (chartTransport_dist h q _ b c).symm ▸ H b c hbc (root b)⟩/-- Two compatible pieces, rather than a chosen homotopy class of paths, suffice. -/def edgeTransport (b c d : TrianglePoint V) : SU2 := transport h q b c * transport h q c dtheorem edgeTransport_chart (hf : FlatConnection L h) (hq : GeneralPosition h q){b c d : TrianglePoint V} (hbc : Compatible L b c) (hcd : Compatible L c d){a : V} (hab : Star L a b) (hac : Star L a c) (had : Star L a d) :edgeTransport h q b c d = chartTransport h q a b d := byrw [edgeTransport,transport_chart L h q hf hq hbc hab hac,transport_chart L h q hf hq hcd hac had,chartTransport_trans]theorem edgeTransport_reverse (hf : FlatConnection L h) (hq : GeneralPosition h q){b c d : TrianglePoint V} (hbc : Compatible L b c) (hcd : Compatible L c d) :edgeTransport h q d c b = (edgeTransport h q b c d)⁻¹ := byrw [edgeTransport,edgeTransport,transport_reverse L h q hf hq hbc,transport_reverse L h q hf hq hcd,mul_inv_rev]theorem edgeTransport_uniform (hq : GeneralPosition h q) {ε : ℝ} (hε : 0 < ε) :∃ δ > 0, ∀ b c d : TrianglePoint V, dist b c < δ → dist c d < δ →dist (edgeTransport h q b c d) 1 < ε := byobtain ⟨δ,hδ,H⟩ := transport_uniform h q hq (show 0 < ε/2 by positivity)refine ⟨δ,hδ,?_⟩intro b c d hbc hcdapply lt_of_le_of_lt (unitary_dist_mul_one_le _ _)have h₁ := H b c hbchave h₂ := H c d hcdlinarith/-- All three edge images in one chart have exactly trivial triangle holonomy. -/theorem edgeTransport_triangle (hf : FlatConnection L h) (hq : GeneralPosition h q)(b c d u v w : TrianglePoint V) {a : V}(hbu : Compatible L b u) (huc : Compatible L u c)(hcv : Compatible L c v) (hvd : Compatible L v d)(hdw : Compatible L d w) (hwb : Compatible L w b)(hab : Star L a b) (hac : Star L a c) (had : Star L a d)(hau : Star L a u) (hav : Star L a v) (haw : Star L a w) :edgeTransport h q b u c * edgeTransport h q c v d * edgeTransport h q d w b = 1 := byrw [edgeTransport_chart L h q hf hq hbu huc hab hau hac,edgeTransport_chart L h q hf hq hcv hvd hac hav had,edgeTransport_chart L h q hf hq hdw hwb had haw hab]unfold chartTransportgroup/-- A uniform local chart for any finite or infinite family of nearby clique points. -/theorem nearby_family_chart {I : Type*} (b : TrianglePoint V) (c : I → TrianglePoint V)(hc : ∀ i, CliquePoint L (c i))(hbc : ∀ i, dist b (c i) < 1 / (Fintype.card V + 1 : ℝ)) :∃ a, ∀ i, Star L a (c i) := byobtain ⟨a,ha⟩ := exists_large_coordinate bexact ⟨a,fun i => nearby_star L ha (hc i) (hbc i)⟩end Connectionend AffineTransportend EilenbergGaneaendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449import OAI.Topology.EilenbergGanea.SmallHolonomyimport OAI.GroupTheory.RightAngledArtin.TraceWordsnamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiffnamespace EilenbergGaneanamespace AffineTransport/-- A finite family of proper quaternion subspaces cannot cover ℍ. -/theorem exists_avoid_subspaces {I : Type*} [Finite I](p : I → Submodule ℝ ℍ) (hp : ∀ i, p i ≠ ⊤) :∃ q : ℍ, ∀ i, q ∉ p i := byhave ho (i) : IsOpen ((p i : Set ℍ)ᶜ) :=(p i).closed_of_finiteDimensional.isOpen_complhave hd (i) : Dense ((p i : Set ℍ)ᶜ) := byapply interior_eq_empty_iff_dense_compl.mpapply Set.not_nonempty_iff_eq_empty.mpintro hexact hp i ((p i).eq_top_of_nonempty_interior' h)obtain ⟨q,hq⟩ := (dense_iInter_of_isOpen ho hd).nonemptyexact ⟨q,Set.mem_iInter.mp hq⟩/-- Simultaneous general position for finitely many local quaternion gauges.Different vertices may use different invertible linear transformations in eachchart. No flatness or topology is assumed in this finite-dimensional lemma. -/theorem exists_triangle_general_position {A V : Type*} [Finite A] [Fintype V](T : A → V → ℍ ≃ₗ[ℝ] ℍ) :∃ q : V → ℍ, ∀ a (s : Finset V), s.card ≤ 3 →LinearIndepOn ℝ (fun v => T a v (q v)) (s : Set V) := byclassicalsuffices ∀ U : Finset V, ∃ q : V → ℍ, ∀ a (s : Finset V), s ⊆ U → s.card ≤ 3 →LinearIndepOn ℝ (fun v => T a v (q v)) (s : Set V) byobtain ⟨q,hq⟩ := this Finset.univexact ⟨q,fun a s h => hq a s (Finset.subset_univ _) h⟩intro Uinduction U using Finset.induction with| empty =>refine ⟨0,?_⟩intro a s hs _have : s = ∅ := Finset.subset_empty.mp hssubst ssimpa only [Finset.coe_empty,Pi.zero_apply] usinglinearIndepOn_empty ℝ (fun v => T a v (0 : ℍ))| @insert v U hv ih =>obtain ⟨q,hq⟩ := ihlet I := A × {s : Finset V // s ⊆ U ∧ s.card ≤ 2}let p : I → Submodule ℝ ℍ := fun i =>(Submodule.span ℝ ((fun w => T i.1 w (q w)) '' (i.2.val : Set V))).comap(T i.1 v).toLinearMaphave hp (i : I) : p i ≠ ⊤ := byhave hf : Module.finrank ℝ (Submodule.span ℝ((fun w => T i.1 w (q w)) '' (i.2.val : Set V))) ≤ 2 := byhave hh := finrank_span_finset_le_card (R := ℝ) (i.2.val.image (fun w => T i.1 w (q w)))rw [Finset.coe_image] at hhexact hh.trans ((Finset.card_image_le).trans i.2.property.2)have hproper : Submodule.span ℝ ((fun w => T i.1 w (q w)) ''(i.2.val : Set V)) ≠ ⊤ := byapply ne_of_lt (Submodule.lt_top_of_finrank_lt_finrank _)rw [Quaternion.finrank_eq_four]omegaintro hhapply hproperapply top_uniqueintro x _have hm : (T i.1 v).symm x ∈ p i := by rw [hh]; trivialsimpa only [p,Submodule.mem_comap,LinearEquiv.coe_coe,LinearEquiv.apply_symm_apply] using hmobtain ⟨z,hz⟩ := exists_avoid_subspaces p hprefine ⟨Function.update q v z,?_⟩intro a s hs hcby_cases hvs : v ∈ s· have hsub : s.erase v ⊆ U := byintro w hwhave hh := hs (Finset.mem_of_mem_erase hw)exact (Finset.mem_insert.mp hh).resolve_left (Finset.ne_of_mem_erase hw)have hcard : (s.erase v).card ≤ 2 := byhave he := Finset.card_erase_add_one hvsomegahave heq : ∀ w ∈ (s.erase v : Finset V), Function.update q v z w = q w := byintro w hwexact Function.update_of_ne (Finset.ne_of_mem_erase hw) _ _have hi : LinearIndepOn ℝ (fun w => T a w (Function.update q v z w))((s.erase v : Finset V) : Set V) := byapply (hq a (s.erase v) hsub (by omega)).congrintro w hwdsimp onlyrw [heq w hw]have hn : T a v (Function.update q v z v) ∉ Submodule.span ℝ((fun w => T a w (Function.update q v z w)) ''((s.erase v : Finset V) : Set V)) := byrw [Function.update_self]have him : ((fun w => T a w (Function.update q v z w)) ''((s.erase v : Finset V) : Set V)) =((fun w => T a w (q w)) '' ((s.erase v : Finset V) : Set V)) := byapply Set.image_congrintro w hwrw [heq w hw]rw [him]exact hz ⟨a,⟨s.erase v,hsub,hcard⟩⟩have ht := (linearIndepOn_insert (by simp : v ∉ ((s.erase v : Finset V) : Set V))).mpr⟨hi,hn⟩simpa only [← Finset.coe_insert,Finset.insert_erase hvs] using ht· have hsub : s ⊆ U := byintro w hwhave hh := hs hwrcases Finset.mem_insert.mp hh with rfl | hh· exact False.elim (hvs hw)· exact hhapply (hq a s hsub hc).congrintro w hwdsimp onlyrw [Function.update_of_ne (by intro h; subst w; exact hvs hw)]@[simp] theorem unit_norm (h : SU2) : ‖(h : ℍ)‖ = 1 :=(quaternion_mem_unitary_iff _).mp h.propertydef leftLinearEquiv (h : SU2) : ℍ ≃ₗ[ℝ] ℍ wheretoFun q := (h : ℍ) * qinvFun q := (h⁻¹ : SU2) * qleft_inv q := by simp [← mul_assoc,← Submonoid.coe_mul]right_inv q := by simp [← mul_assoc,← Submonoid.coe_mul]map_add' _ _ := mul_add _ _ _map_smul' r q := mul_smul_comm r (h : ℍ) q@[simp] theorem leftLinearEquiv_apply (h : SU2) (q : ℍ) :leftLinearEquiv h q = (h : ℍ) * q := rfltheorem normalize_left (h : SU2) {q : ℍ} (hq : q ≠ 0) :normalizeQuaternion ((h : ℍ) * q) = h * normalizeQuaternion q := byhave hh : (h : ℍ) * q ≠ 0 := byexact (leftLinearEquiv h).map_ne_zero_iff.mpr hqapply Subtype.extrw [normalizeQuaternion_coe_of_ne_zero hh]change ‖(h : ℍ) * q‖⁻¹ • ((h : ℍ) * q) = (h : ℍ) * (normalizeQuaternion q : ℍ)rw [normalizeQuaternion_coe_of_ne_zero hq,norm_mul,unit_norm,one_mul,mul_smul_comm]section FiniteSimplexvariable {V : Type*} [Fintype V]def coordinateSimplex : Set (V → ℝ) :={weights | (∀ vertex, 0 ≤ weights vertex) ∧ ∑ vertex, weights vertex = 1}/-- Closed coordinate face of the standard simplex. -/def face (s : Finset V) : Set (V → ℝ) :={b | b ∈ coordinateSimplex ∧ ∀ v ∉ s, b v = 0}/-- The whole two-skeleton of a finite standard simplex. -/def triangleSet : Set (V → ℝ) :=⋃ s : {s : Finset V // s.card ≤ 3}, face s.valabbrev TrianglePoint (V : Type*) [Fintype V] := (triangleSet : Set (V → ℝ))theorem mem_triangleSet {b : V → ℝ} : b ∈ triangleSet ↔∃ s : Finset V, s.card ≤ 3 ∧ b ∈ coordinateSimplex ∧ ∀ v ∉ s, b v = 0 := bysimp only [triangleSet,Set.mem_iUnion,face,Set.mem_ofPred_eq,Subtype.exists,exists_prop]omit [Fintype V] inprivate theorem isClosed_face_support (s : Finset V) :IsClosed {b : V → ℝ | ∀ v ∉ s, b v = 0} := byhave he : {b : V → ℝ | ∀ v ∉ s, b v = 0} =⋂ v, ⋂ (_ : v ∉ s), {b : V → ℝ | b v = 0} := by ext b; simprw [he]exact isClosed_iInter fun v => isClosed_iInter fun _ =>isClosed_eq (continuous_apply v) continuous_consttheorem isCompact_face (s : Finset V) : IsCompact (face s) := byhave compact_simplex : IsCompact (coordinateSimplex : Set (V → ℝ)) := byconvert isCompact_range(Convexity.StdSimplex.isEmbedding_toFun_comp_weights ℝ V).continuous using 1rw [Convexity.StdSimplex.range_toFun_comp_weights]ext weightssimp [coordinateSimplex]exact compact_simplex.inter_right (isClosed_face_support s)theorem isCompact_triangleSet : IsCompact (triangleSet : Set (V → ℝ)) :=isCompact_iUnion fun _ => isCompact_face _instance : CompactSpace (TrianglePoint V) :=isCompact_iff_compactSpace.mp isCompact_triangleSettheorem point_simplex (b : TrianglePoint V) : (b : V → ℝ) ∈ coordinateSimplex := byobtain ⟨_,_,h,_⟩ := mem_triangleSet.mp b.propertyexact htheorem point_exists_nonzero (b : TrianglePoint V) : ∃ v, (b : V → ℝ) v ≠ 0 := byby_contra! hhave he := (point_simplex b).2simp only [h,Finset.sum_const_zero] at henorm_num at hevariable (h : V → V → SU2) (q : V → ℍ)def rawGauge (a : V) (b : V → ℝ) : ℍ := ∑ v, b v • ((h a v : ℍ) * q v)def GeneralPosition : Prop := ∀ a (s : Finset V), s.card ≤ 3 →LinearIndepOn ℝ (fun v => (h a v : ℍ) * q v) (s : Set V)theorem exists_generalPosition : ∃ q : V → ℍ, GeneralPosition h q := byobtain ⟨q,hq⟩ := exists_triangle_general_position (fun a v => leftLinearEquiv (h a v))exact ⟨q,hq⟩theorem rawGauge_ne_zero (hq : GeneralPosition h q) (a : V) (b : TrianglePoint V) :rawGauge h q a b ≠ 0 := byclassicalobtain ⟨s,hs,hb,hout⟩ := mem_triangleSet.mp b.propertyintro hehave he' : ∑ v ∈ s, (b : V → ℝ) v • ((h a v : ℍ) * q v) = 0 := byrw [← he]apply Finset.sum_subset (Finset.subset_univ _)intro v _ hvrw [hout v hv,zero_smul]have hz := (linearIndepOn_iff'.mp (hq a s hs)) s b (Set.Subset.refl _) he'have hall : ∀ v, (b : V → ℝ) v = 0 := byintro vby_cases hv : v ∈ s· exact hz v hv· exact hout v hvhave heq := hb.2simp only [hall,Finset.sum_const_zero] at heqnorm_num at heqdef gauge (a : V) (b : TrianglePoint V) : SU2 := normalizeQuaternion (rawGauge h q a b)theorem continuous_rawGauge (a : V) : Continuous (rawGauge h q a) :=continuous_finsetSum _ fun v _ => (continuous_apply v).smul continuous_consttheorem continuous_gauge (hq : GeneralPosition h q) (a : V) : Continuous (gauge h q a) := byapply continuous_iff_continuousAt.mprintro bexact ContinuousAt.comp (f := fun c : TrianglePoint V => rawGauge h q a c)(normalizeQuaternion_continuousAt (rawGauge_ne_zero h q hq a b))((continuous_rawGauge h q a).comp continuous_subtype_val).continuousAt/-- Uniform modulus over all charts, including across the edges of all simplices. -/theorem gauges_uniform (hq : GeneralPosition h q) {ε : ℝ} (hε : 0 < ε) :∃ δ > 0, ∀ b c : TrianglePoint V, dist b c < δ →∀ a, dist (gauge h q a b) (gauge h q a c) < ε := byhave hc : Continuous (fun b : TrianglePoint V => fun a => gauge h q a b) :=continuous_pi fun a => continuous_gauge h q hq ahave hu := CompactSpace.uniformContinuous_of_continuous hcobtain ⟨δ,hδ,H⟩ := Metric.uniformContinuous_iff.mp hu ε hεrefine ⟨δ,hδ,?_⟩intro b c hbc aexact lt_of_le_of_lt (dist_le_pi_dist (fun a => gauge h q a b) (fun a => gauge h q a c) a) (H hbc)end FiniteSimplextheorem unitary_dist_left (a b c : SU2) : dist (a * b) (a * c) = dist b c := bychange dist ((a : ℍ) * (b : ℍ)) ((a : ℍ) * (c : ℍ)) = dist (b : ℍ) (c : ℍ)rw [dist_eq_norm,dist_eq_norm,← mul_sub,norm_mul,unit_norm,one_mul]theorem unitary_dist_inv_mul_one (a b : SU2) : dist (a⁻¹ * b) 1 = dist a b := byrw [← unitary_dist_left a (a⁻¹ * b) 1]simp [dist_comm]theorem unitary_dist_mul_one_le (a b : SU2) :dist (a * b) 1 ≤ dist a 1 + dist b 1 := bycalcdist (a * b) 1 ≤ dist (a * b) a + dist a 1 := dist_triangle _ _ __ = dist b 1 + dist a 1 := byexact congrArg (fun t => t + dist a 1) (by simpa only [mul_one] using unitary_dist_left a b 1)_ = dist a 1 + dist b 1 := add_comm _ _section Connectionvariable {V : Type*} [Fintype V]variable (L : SimpleGraph V)def Related (a b : V) : Prop := a = b ∨ L.Adj a bomit [Fintype V] intheorem Related.refl (a : V) : Related L a a := Or.inl rflomit [Fintype V] intheorem Related.symm {a b : V} : Related L a b → Related L b a := byrintro (rfl | h)· exact Related.refl L _· exact Or.inr h.symmdef Star (a : V) (b : TrianglePoint V) : Prop :=∀ v, (b : V → ℝ) v ≠ 0 → Related L a vdef CliquePoint (b : TrianglePoint V) : Prop :=∀ a, (b : V → ℝ) a ≠ 0 → Star L a bdef Compatible (b c : TrianglePoint V) : Prop :=∀ v w, ((b : V → ℝ) v ≠ 0 ∨ (c : V → ℝ) v ≠ 0) →((b : V → ℝ) w ≠ 0 ∨ (c : V → ℝ) w ≠ 0) → Related L v wdef root (b : TrianglePoint V) : V := Classical.choose (point_exists_nonzero b)theorem root_mem (b : TrianglePoint V) : (b : V → ℝ) (root b) ≠ 0 :=Classical.choose_spec (point_exists_nonzero b)variable (h : V → V → SU2) (q : V → ℍ)def FlatConnection : Prop := ∀ a b c, Related L a b → Related L b c →Related L a c → h a b * h b c = h a ctheorem rawGauge_transition (hf : FlatConnection L h) {a c : V}{b : TrianglePoint V} (hac : Related L a c) (ha : Star L a b) (hc : Star L c b) :rawGauge h q a b = (h a c : ℍ) * rawGauge h q c b := byclassicalsimp only [rawGauge,Finset.mul_sum]apply Finset.sum_congr rflintro v _by_cases hv : (b : V → ℝ) v = 0· simp [hv]· rw [mul_smul_comm,← mul_assoc,← Submonoid.coe_mul,hf a c v hac (hc v hv) (ha v hv)]theorem gauge_transition (hf : FlatConnection L h) (hq : GeneralPosition h q){a c : V} {b : TrianglePoint V} (hac : Related L a c)(ha : Star L a b) (hc : Star L c b) :gauge h q a b = h a c * gauge h q c b := byunfold gaugerw [rawGauge_transition L h q hf hac ha hc]exact normalize_left _ (rawGauge_ne_zero h q hq c b)def chartTransport (a : V) (b c : TrianglePoint V) : SU2 :=(gauge h q a b)⁻¹ * gauge h q a cdef transport (b c : TrianglePoint V) : SU2 := chartTransport h q (root b) b ctheorem transport_chart (hf : FlatConnection L h) (hq : GeneralPosition h q){b c : TrianglePoint V} (hb : Compatible L b c) {a : V}(hab : Star L a b) (hac : Star L a c) :transport h q b c = chartTransport h q a b c := byhave hrb : Star L (root b) b := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inl hv)have hrc : Star L (root b) c := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inr hv)have har : Related L a (root b) := hab _ (root_mem b)unfold transport chartTransportrw [gauge_transition L h q hf hq har hab hrb,gauge_transition L h q hf hq har hac hrc]grouptheorem compatible_symm {b c : TrianglePoint V} (hb : Compatible L b c) :Compatible L c b := fun v w hv hw => hb v w hv.symm hw.symmtheorem transport_reverse (hf : FlatConnection L h) (hq : GeneralPosition h q){b c : TrianglePoint V} (hb : Compatible L b c) :transport h q c b = (transport h q b c)⁻¹ := byhave hrc : Star L (root b) c := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inr hv)have hrb : Star L (root b) b := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inl hv)rw [transport_chart L h q hf hq (compatible_symm L hb) hrc hrb]unfold transport chartTransportgrouptheorem chartTransport_trans (a : V) (b c d : TrianglePoint V) :chartTransport h q a b c * chartTransport h q a c d = chartTransport h q a b d := byunfold chartTransportgrouptheorem exists_large_coordinate (b : TrianglePoint V) :∃ a, 1 / (Fintype.card V + 1 : ℝ) < (b : V → ℝ) a := byby_contra! Hhave hs := Finset.sum_le_sum (s := Finset.univ) (fun a _ => H a)have hb := (point_simplex b).2rw [hb,Finset.sum_const,Finset.card_univ,nsmul_eq_mul] at hshave hn : 0 ≤ (Fintype.card V : ℝ) := Nat.cast_nonneg _have hd : 0 < (Fintype.card V : ℝ) + 1 := by positivityhave he := (le_div_iff₀ hd).mp (by simpa only [mul_one_div] using hs)linariththeorem nearby_star {b c : TrianglePoint V} {a : V}(ha : 1 / (Fintype.card V + 1 : ℝ) < (b : V → ℝ) a)(hc : CliquePoint L c) (hbc : dist b c < 1 / (Fintype.card V + 1 : ℝ)) :Star L a c := byapply hc aintro hehave hd := lt_of_le_of_lt (dist_le_pi_dist (b : V → ℝ) (c : V → ℝ) a) hbcrw [he, Real.dist_eq,sub_zero,abs_of_nonneg ((point_simplex b).1 a)] at hdexact (not_lt_of_ge ha.le) hdtheorem chartTransport_dist (a : V) (b c : TrianglePoint V) :dist (chartTransport h q a b c) 1 = dist (gauge h q a b) (gauge h q a c) :=unitary_dist_inv_mul_one _ _theorem transport_uniform (hq : GeneralPosition h q) {ε : ℝ} (hε : 0 < ε) :∃ δ > 0, ∀ b c : TrianglePoint V, dist b c < δ → dist (transport h q b c) 1 < ε := byobtain ⟨δ,hδ,H⟩ := gauges_uniform h q hq hεexact ⟨δ,hδ,fun b c hbc => (chartTransport_dist h q _ b c).symm ▸ H b c hbc (root b)⟩/-- Two compatible pieces, rather than a chosen homotopy class of paths, suffice. -/def edgeTransport (b c d : TrianglePoint V) : SU2 := transport h q b c * transport h q c dtheorem edgeTransport_chart (hf : FlatConnection L h) (hq : GeneralPosition h q){b c d : TrianglePoint V} (hbc : Compatible L b c) (hcd : Compatible L c d){a : V} (hab : Star L a b) (hac : Star L a c) (had : Star L a d) :edgeTransport h q b c d = chartTransport h q a b d := byrw [edgeTransport,transport_chart L h q hf hq hbc hab hac,transport_chart L h q hf hq hcd hac had,chartTransport_trans]theorem edgeTransport_reverse (hf : FlatConnection L h) (hq : GeneralPosition h q){b c d : TrianglePoint V} (hbc : Compatible L b c) (hcd : Compatible L c d) :edgeTransport h q d c b = (edgeTransport h q b c d)⁻¹ := byrw [edgeTransport,edgeTransport,transport_reverse L h q hf hq hbc,transport_reverse L h q hf hq hcd,mul_inv_rev]theorem edgeTransport_uniform (hq : GeneralPosition h q) {ε : ℝ} (hε : 0 < ε) :∃ δ > 0, ∀ b c d : TrianglePoint V, dist b c < δ → dist c d < δ →dist (edgeTransport h q b c d) 1 < ε := byobtain ⟨δ,hδ,H⟩ := transport_uniform h q hq (show 0 < ε/2 by positivity)refine ⟨δ,hδ,?_⟩intro b c d hbc hcdapply lt_of_le_of_lt (unitary_dist_mul_one_le _ _)have h₁ := H b c hbchave h₂ := H c d hcdlinarith/-- All three edge images in one chart have exactly trivial triangle holonomy. -/theorem edgeTransport_triangle (hf : FlatConnection L h) (hq : GeneralPosition h q)(b c d u v w : TrianglePoint V) {a : V}(hbu : Compatible L b u) (huc : Compatible L u c)(hcv : Compatible L c v) (hvd : Compatible L v d)(hdw : Compatible L d w) (hwb : Compatible L w b)(hab : Star L a b) (hac : Star L a c) (had : Star L a d)(hau : Star L a u) (hav : Star L a v) (haw : Star L a w) :edgeTransport h q b u c * edgeTransport h q c v d * edgeTransport h q d w b = 1 := byrw [edgeTransport_chart L h q hf hq hbu huc hab hau hac,edgeTransport_chart L h q hf hq hcv hvd hac hav had,edgeTransport_chart L h q hf hq hdw hwb had haw hab]unfold chartTransportgroup/-- A uniform local chart for any finite or infinite family of nearby clique points. -/theorem nearby_family_chart {I : Type*} (b : TrianglePoint V) (c : I → TrianglePoint V)(hc : ∀ i, CliquePoint L (c i))(hbc : ∀ i, dist b (c i) < 1 / (Fintype.card V + 1 : ℝ)) :∃ a, ∀ i, Star L a (c i) := byobtain ⟨a,ha⟩ := exists_large_coordinate bexact ⟨a,fun i => nearby_star L ha (hc i) (hbc i)⟩end Connectionend AffineTransportend EilenbergGaneaendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232import OAI.Topology.EilenbergGanea.Modelimport Mathlib.CategoryTheory.Abelian.Projective.Extimport Mathlib.RepresentationTheory.Homological.GroupCohomology.Basicimport Mathlib.RepresentationTheory.Homological.GroupCohomology.LowDegreeimport Mathlib.RepresentationTheory.Homological.GroupCohomology.LongExactSequencenamespace OAInoncomputable sectionopen Classical Setnamespace EilenbergGaneasection CliqueSquarevariable {V : Type*} (L : SimpleGraph V)def generatorExponent (v : V) : ArtinGroup L →* Multiplicative ℤ := byclassicalexact artinLift L (fun w => Multiplicative.ofAdd (if w = v then 1 else 0))(fun _ _ _ => Commute.all _ _)@[simp] theorem generatorExponent_of [DecidableEq V] (v w : V) :generatorExponent L v (artinGenerator L w) = Multiplicative.ofAdd (if w = v then 1 else 0) := byclassicalsimp [generatorExponent]def heightDifference (v b : V) : (height L).ker :=⟨artinGenerator L v * (artinGenerator L b)⁻¹, by simp⟩theorem heightDifference_commute (v w b : V)(hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :Commute (heightDifference L v b) (heightDifference L w b) := byapply Subtype.extexact (((adjacent_generators_commute L hvw).mul_right(adjacent_generators_commute L hvb).inv_right).mul_left(((adjacent_generators_commute L hwb).symm.inv_left).mul_right (Commute.refl _)))def cliqueSquare (v w b : V) (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :Multiplicative (ℤ × ℤ) →* (height L).ker wheretoFun n := heightDifference L v b ^ n.toAdd.1 * heightDifference L w b ^ n.toAdd.2map_one' := by simpmap_mul' n m := bychange _ ^ (n.toAdd.1 + m.toAdd.1) * _ ^ (n.toAdd.2 + m.toAdd.2) = _rw [zpow_add, zpow_add]simp only [mul_assoc]congr 1rw [← mul_assoc, ((heightDifference_commute L v w b hvw hvb hwb).zpow_zpow m.toAdd.1 n.toAdd.2).eq, mul_assoc]theorem cliqueSquare_injective (v w b : V) (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :Function.Injective (cliqueSquare L v w b hvw hvb hwb) := byclassicalhave hvw' : v ≠ w := L.ne_of_adj hvwhave hvb' : v ≠ b := L.ne_of_adj hvbhave hwb' : w ≠ b := L.ne_of_adj hwbintro n m hehave h₁ := congrArg (fun x : (height L).ker => generatorExponent L v x.val) hehave h₂ := congrArg (fun x : (height L).ker => generatorExponent L w x.val) hehave hn₁ : n.toAdd.1 = m.toAdd.1 := bysimpa [cliqueSquare, heightDifference, generatorExponent_of, hvw', hvw'.symm, hvb', hvb'.symm] using congrArg Multiplicative.toAdd h₁have hn₂ : n.toAdd.2 = m.toAdd.2 := bysimpa [cliqueSquare, heightDifference, generatorExponent_of, hvw', hwb', hwb'.symm] using congrArg Multiplicative.toAdd h₂exact congrArg Multiplicative.ofAdd (Prod.ext hn₁ hn₂)end CliqueSquaredef seedCliqueVertex : SeedCell := .inl (.inl none)def seedCliqueEdge : SeedCell := .inr (.inl (.inl (false, 0)))def seedCliqueFace : SeedCell := .inr (.inr ⟨false, ⟨0, by decide⟩⟩)theorem source_contains_int_square :∃ f : Multiplicative (ℤ × ℤ) →* SourceGroup, Function.Injective f := byhave hve : seedGraph.Adj seedCliqueVertex seedCliqueEdge := bychange properFace _ _ ∨ _leftsimp [properFace, seedCliqueVertex, seedCliqueEdge, edgeVertices, circleStart]have hvf : seedGraph.Adj seedCliqueVertex seedCliqueFace := bychange properFace _ _ ∨ _leftsimp [properFace, seedCliqueVertex, seedCliqueFace, sectorVertices, sectorEdges, edgeVertices, sectorCircleEdge, sectorLetter, seedWord, circleStart, circleEnd]have hef : seedGraph.Adj seedCliqueEdge seedCliqueFace := bychange properFace _ _ ∨ _leftsimp [properFace, seedCliqueEdge, seedCliqueFace, sectorEdges, sectorCircleEdge, sectorLetter, seedWord]exact ⟨cliqueSquare seedGraph _ _ _ hve hvf hef,cliqueSquare_injective seedGraph _ _ _ hve hvf hef⟩section CupCocycleopen groupCohomologyvariable {G : Type} [Group G]/-- The cup product of two integral exponent homomorphisms. -/def exponentCup (a b : G →* Multiplicative ℤ) : cocycles₂ (Rep.trivial ℤ G ℤ) :=⟨fun p => (a p.1).toAdd * (b p.2).toAdd, byrw [mem_cocycles₂_iff]intro g h jsimp only [map_mul, toAdd_mul]change ((a g).toAdd + (a h).toAdd) * (b j).toAdd + (a g).toAdd * (b h).toAdd =(a h).toAdd * (b j).toAdd + (a g).toAdd * ((b h).toAdd + (b j).toAdd)ring⟩/-- Antisymmetrizing on a commuting pair detects a nonzero integral class. -/theorem exponentCup_not_coboundary (a b : G →* Multiplicative ℤ) (g h : G)(hc : Commute g h)(hag : (a g).toAdd = 1) (hah : (a h).toAdd = 0)(hbg : (b g).toAdd = 0) (hbh : (b h).toAdd = 1) :⇑(exponentCup a b) ∉ coboundaries₂ (Rep.trivial ℤ G ℤ) := byrintro ⟨f, hf⟩have h₁ := congrFun hf (g, h)have h₂ := congrFun hf (h, g)change f h - f (g*h) + f g = (a g).toAdd * (b h).toAdd at h₁change f g - f (h*g) + f h = (a h).toAdd * (b g).toAdd at h₂rw [hag, hbh] at h₁rw [hah, hbg, ← hc.eq] at h₂change (f h : ℤ) - f (g*h) + f g = 1 * 1 at h₁change (f g : ℤ) - f (g*h) + f h = 0 * 0 at h₂linariththeorem exponentCup_class_ne_zero (a b : G →* Multiplicative ℤ) (g h : G)(hc : Commute g h)(hag : (a g).toAdd = 1) (hah : (a h).toAdd = 0)(hbg : (b g).toAdd = 0) (hbh : (b h).toAdd = 1) :H2π _ (exponentCup a b) ≠ 0 := byintro heexact exponentCup_not_coboundary a b g h hc hag hah hbg hbh((H2π_eq_zero_iff (A := Rep.trivial ℤ G ℤ) (exponentCup a b)).mp he)end CupCocyclesection CliqueCohomologyopen groupCohomologyvariable {V : Type} (L : SimpleGraph V)theorem clique_exponent_class_nonzero (v w b : V)(hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :∃ x : H2 (Rep.trivial ℤ (height L).ker ℤ), x ≠ 0 := byclassicallet a := (generatorExponent L v).comp (height L).ker.subtypelet d := (generatorExponent L w).comp (height L).ker.subtypehave hvw' := L.ne_of_adj hvwhave hvb' := L.ne_of_adj hvbhave hwb' := L.ne_of_adj hwbrefine ⟨H2π _ (exponentCup a d), exponentCup_class_ne_zero a d(heightDifference L v b) (heightDifference L w b)(heightDifference_commute L v w b hvw hvb hwb) ?_ ?_ ?_ ?_⟩all_goals simp [a, d, heightDifference, hvw', hvw'.symm, hvb'.symm, hwb'.symm]end CliqueCohomologyopen CategoryTheory CategoryTheory.Limitssectionvariable {C D : Type*} [Category* C] [Category* D] [Abelian C] [Abelian D]{X Y : C} (P : ProjectiveResolution X) (F : C ⥤ D)[F.Additive] [F.Full] [F.Faithful][F.PreservesProjectiveObjects] [F.PreservesHomology]/-- Vanishing in the literal projective-dimension sense forces every2-cocycle in a projective resolution to be a coboundary; the fully faithfulexact functor permits us to use this for the representation/group-ring equivalence. -/theorem cocycle_boundary_of_projectiveDimension_lt_two[HasProjectiveDimensionLT (F.obj X) 2](f : P.complex.X 2 ⟶ Y) (hf : P.complex.d 3 2 ≫ f = 0) :∃ g : P.complex.X 1 ⟶ Y, P.complex.d 2 1 ≫ g = f := bylet := HasExt.standard Dlet Q := F.mapProjectiveResolution Phave hmf : Q.complex.d 3 2 ≫ F.map f = 0 := bychange F.map (P.complex.d 3 2) ≫ F.map f = 0rw [← F.map_comp, hf, F.map_zero]have hc := Abelian.Ext.eq_zero_of_hasProjectiveDimensionLT (Q.extMk (F.map f) 3 rfl hmf) 2 (by rfl)obtain ⟨g, hg⟩ := (Q.extMk_eq_zero_iff (F.map f) 3 rfl hmf 1 rfl).mp hcchange F.obj (P.complex.X 1) ⟶ F.obj Y at gchange F.map (P.complex.d 2 1) ≫ g = F.map f at hgrefine ⟨F.preimage g, F.map_injective ?_⟩rw [F.map_comp, F.map_preimage]exact hg/-- The same vanishing expressed in the library's older linear-Yoneda modelof Ext. This theorem proves rather than assumes the bridge between the two APIs. -/theorem isZero_homology_two_of_projectiveDimension_lt_two(R : Type*) [Ring R] [Linear R C][HasProjectiveDimensionLT (F.obj X) 2] :IsZero ((P.complex.linearYonedaObj R Y).homology 2) := byrw [← HomologicalComplex.exactAt_iff_isZero_homology]rw [HomologicalComplex.exactAt_iff' _ 1 2 3 (by simp) (by simp)]rw [ShortComplex.moduleCat_exact_iff]intro f hfchange P.complex.d 3 2 ≫ f = 0 at hfexact cocycle_boundary_of_projectiveDimension_lt_two P F f hfendopen CategoryTheory CategoryTheory.Limitstheorem two_le_cohomologicalDimension_of_H2_nonzero (G : Type) [Group G](hx : ∃ x : groupCohomology.H2 (Rep.trivial ℤ G ℤ), x ≠ 0) :2 ≤ cohomologicalDimension G := bychange (2 : ℕ) ≤ CategoryTheory.projectiveDimension(ModuleCat.of (MonoidAlgebra ℤ G) (Representation.trivial ℤ G ℤ).asModule)rw [CategoryTheory.projectiveDimension_ge_iff]intro hdlet F := Rep.toModuleMonoidAlgebra (k := ℤ) (G := G)let P := Rep.barResolution ℤ Glet : F.Additive := Functor.additive_of_preserves_binary_products Fhave : HasProjectiveDimensionLT (F.obj (Rep.trivial ℤ G ℤ)) 2 := hdhave hz := isZero_homology_two_of_projectiveDimension_lt_two(Y := Rep.trivial ℤ G ℤ) P F ℤhave hz' : IsZero (groupCohomology.H2 (Rep.trivial ℤ G ℤ)) :=hz.of_iso (groupCohomologyIso (Rep.trivial ℤ G ℤ) 2 P)obtain ⟨x, hx⟩ := hxexact hx ((ModuleCat.isZero_iff_subsingleton.mp hz').elim x 0)theorem height_kernel_two_le_cohomologicalDimension {V : Type} (L : SimpleGraph V)(v w b : V) (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :2 ≤ cohomologicalDimension (height L).ker :=two_le_cohomologicalDimension_of_H2_nonzero _ (clique_exponent_class_nonzero L v w b hvw hvb hwb)theorem source_two_le_cohomologicalDimension : 2 ≤ cohomologicalDimension SourceGroup := byapply height_kernel_two_le_cohomologicalDimension seedGraph seedCliqueVertex seedCliqueEdge seedCliqueFace· change properFace _ _ ∨ _leftsimp [properFace, seedCliqueVertex, seedCliqueEdge, edgeVertices, circleStart]· change properFace _ _ ∨ _leftsimp [properFace, seedCliqueVertex, seedCliqueFace, sectorVertices, sectorEdges, edgeVertices, sectorCircleEdge, sectorLetter, seedWord, circleStart, circleEnd]· change properFace _ _ ∨ _leftsimp [properFace, seedCliqueEdge, seedCliqueFace, sectorEdges, sectorCircleEdge, sectorLetter, seedWord]end EilenbergGaneaendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232import OAI.Topology.EilenbergGanea.Modelimport Mathlib.CategoryTheory.Abelian.Projective.Extimport Mathlib.RepresentationTheory.Homological.GroupCohomology.Basicimport Mathlib.RepresentationTheory.Homological.GroupCohomology.LowDegreeimport Mathlib.RepresentationTheory.Homological.GroupCohomology.LongExactSequencenamespace OAInoncomputable sectionopen Classical Setnamespace EilenbergGaneasection CliqueSquarevariable {V : Type*} (L : SimpleGraph V)def generatorExponent (v : V) : ArtinGroup L →* Multiplicative ℤ := byclassicalexact artinLift L (fun w => Multiplicative.ofAdd (if w = v then 1 else 0))(fun _ _ _ => Commute.all _ _)@[simp] theorem generatorExponent_of [DecidableEq V] (v w : V) :generatorExponent L v (artinGenerator L w) = Multiplicative.ofAdd (if w = v then 1 else 0) := byclassicalsimp [generatorExponent]def heightDifference (v b : V) : (height L).ker :=⟨artinGenerator L v * (artinGenerator L b)⁻¹, by simp⟩theorem heightDifference_commute (v w b : V)(hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :Commute (heightDifference L v b) (heightDifference L w b) := byapply Subtype.extexact (((adjacent_generators_commute L hvw).mul_right(adjacent_generators_commute L hvb).inv_right).mul_left(((adjacent_generators_commute L hwb).symm.inv_left).mul_right (Commute.refl _)))def cliqueSquare (v w b : V) (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :Multiplicative (ℤ × ℤ) →* (height L).ker wheretoFun n := heightDifference L v b ^ n.toAdd.1 * heightDifference L w b ^ n.toAdd.2map_one' := by simpmap_mul' n m := bychange _ ^ (n.toAdd.1 + m.toAdd.1) * _ ^ (n.toAdd.2 + m.toAdd.2) = _rw [zpow_add, zpow_add]simp only [mul_assoc]congr 1rw [← mul_assoc, ((heightDifference_commute L v w b hvw hvb hwb).zpow_zpow m.toAdd.1 n.toAdd.2).eq, mul_assoc]theorem cliqueSquare_injective (v w b : V) (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :Function.Injective (cliqueSquare L v w b hvw hvb hwb) := byclassicalhave hvw' : v ≠ w := L.ne_of_adj hvwhave hvb' : v ≠ b := L.ne_of_adj hvbhave hwb' : w ≠ b := L.ne_of_adj hwbintro n m hehave h₁ := congrArg (fun x : (height L).ker => generatorExponent L v x.val) hehave h₂ := congrArg (fun x : (height L).ker => generatorExponent L w x.val) hehave hn₁ : n.toAdd.1 = m.toAdd.1 := bysimpa [cliqueSquare, heightDifference, generatorExponent_of, hvw', hvw'.symm, hvb', hvb'.symm] using congrArg Multiplicative.toAdd h₁have hn₂ : n.toAdd.2 = m.toAdd.2 := bysimpa [cliqueSquare, heightDifference, generatorExponent_of, hvw', hwb', hwb'.symm] using congrArg Multiplicative.toAdd h₂exact congrArg Multiplicative.ofAdd (Prod.ext hn₁ hn₂)end CliqueSquaredef seedCliqueVertex : SeedCell := .inl (.inl none)def seedCliqueEdge : SeedCell := .inr (.inl (.inl (false, 0)))def seedCliqueFace : SeedCell := .inr (.inr ⟨false, ⟨0, by decide⟩⟩)theorem source_contains_int_square :∃ f : Multiplicative (ℤ × ℤ) →* SourceGroup, Function.Injective f := byhave hve : seedGraph.Adj seedCliqueVertex seedCliqueEdge := bychange properFace _ _ ∨ _leftsimp [properFace, seedCliqueVertex, seedCliqueEdge, edgeVertices, circleStart]have hvf : seedGraph.Adj seedCliqueVertex seedCliqueFace := bychange properFace _ _ ∨ _leftsimp [properFace, seedCliqueVertex, seedCliqueFace, sectorVertices, sectorEdges, edgeVertices, sectorCircleEdge, sectorLetter, seedWord, circleStart, circleEnd]have hef : seedGraph.Adj seedCliqueEdge seedCliqueFace := bychange properFace _ _ ∨ _leftsimp [properFace, seedCliqueEdge, seedCliqueFace, sectorEdges, sectorCircleEdge, sectorLetter, seedWord]exact ⟨cliqueSquare seedGraph _ _ _ hve hvf hef,cliqueSquare_injective seedGraph _ _ _ hve hvf hef⟩section CupCocycleopen groupCohomologyvariable {G : Type} [Group G]/-- The cup product of two integral exponent homomorphisms. -/def exponentCup (a b : G →* Multiplicative ℤ) : cocycles₂ (Rep.trivial ℤ G ℤ) :=⟨fun p => (a p.1).toAdd * (b p.2).toAdd, byrw [mem_cocycles₂_iff]intro g h jsimp only [map_mul, toAdd_mul]change ((a g).toAdd + (a h).toAdd) * (b j).toAdd + (a g).toAdd * (b h).toAdd =(a h).toAdd * (b j).toAdd + (a g).toAdd * ((b h).toAdd + (b j).toAdd)ring⟩/-- Antisymmetrizing on a commuting pair detects a nonzero integral class. -/theorem exponentCup_not_coboundary (a b : G →* Multiplicative ℤ) (g h : G)(hc : Commute g h)(hag : (a g).toAdd = 1) (hah : (a h).toAdd = 0)(hbg : (b g).toAdd = 0) (hbh : (b h).toAdd = 1) :⇑(exponentCup a b) ∉ coboundaries₂ (Rep.trivial ℤ G ℤ) := byrintro ⟨f, hf⟩have h₁ := congrFun hf (g, h)have h₂ := congrFun hf (h, g)change f h - f (g*h) + f g = (a g).toAdd * (b h).toAdd at h₁change f g - f (h*g) + f h = (a h).toAdd * (b g).toAdd at h₂rw [hag, hbh] at h₁rw [hah, hbg, ← hc.eq] at h₂change (f h : ℤ) - f (g*h) + f g = 1 * 1 at h₁change (f g : ℤ) - f (g*h) + f h = 0 * 0 at h₂linariththeorem exponentCup_class_ne_zero (a b : G →* Multiplicative ℤ) (g h : G)(hc : Commute g h)(hag : (a g).toAdd = 1) (hah : (a h).toAdd = 0)(hbg : (b g).toAdd = 0) (hbh : (b h).toAdd = 1) :H2π _ (exponentCup a b) ≠ 0 := byintro heexact exponentCup_not_coboundary a b g h hc hag hah hbg hbh((H2π_eq_zero_iff (A := Rep.trivial ℤ G ℤ) (exponentCup a b)).mp he)end CupCocyclesection CliqueCohomologyopen groupCohomologyvariable {V : Type} (L : SimpleGraph V)theorem clique_exponent_class_nonzero (v w b : V)(hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :∃ x : H2 (Rep.trivial ℤ (height L).ker ℤ), x ≠ 0 := byclassicallet a := (generatorExponent L v).comp (height L).ker.subtypelet d := (generatorExponent L w).comp (height L).ker.subtypehave hvw' := L.ne_of_adj hvwhave hvb' := L.ne_of_adj hvbhave hwb' := L.ne_of_adj hwbrefine ⟨H2π _ (exponentCup a d), exponentCup_class_ne_zero a d(heightDifference L v b) (heightDifference L w b)(heightDifference_commute L v w b hvw hvb hwb) ?_ ?_ ?_ ?_⟩all_goals simp [a, d, heightDifference, hvw', hvw'.symm, hvb'.symm, hwb'.symm]end CliqueCohomologyopen CategoryTheory CategoryTheory.Limitssectionvariable {C D : Type*} [Category* C] [Category* D] [Abelian C] [Abelian D]{X Y : C} (P : ProjectiveResolution X) (F : C ⥤ D)[F.Additive] [F.Full] [F.Faithful][F.PreservesProjectiveObjects] [F.PreservesHomology]/-- Vanishing in the literal projective-dimension sense forces every2-cocycle in a projective resolution to be a coboundary; the fully faithfulexact functor permits us to use this for the representation/group-ring equivalence. -/theorem cocycle_boundary_of_projectiveDimension_lt_two[HasProjectiveDimensionLT (F.obj X) 2](f : P.complex.X 2 ⟶ Y) (hf : P.complex.d 3 2 ≫ f = 0) :∃ g : P.complex.X 1 ⟶ Y, P.complex.d 2 1 ≫ g = f := bylet := HasExt.standard Dlet Q := F.mapProjectiveResolution Phave hmf : Q.complex.d 3 2 ≫ F.map f = 0 := bychange F.map (P.complex.d 3 2) ≫ F.map f = 0rw [← F.map_comp, hf, F.map_zero]have hc := Abelian.Ext.eq_zero_of_hasProjectiveDimensionLT (Q.extMk (F.map f) 3 rfl hmf) 2 (by rfl)obtain ⟨g, hg⟩ := (Q.extMk_eq_zero_iff (F.map f) 3 rfl hmf 1 rfl).mp hcchange F.obj (P.complex.X 1) ⟶ F.obj Y at gchange F.map (P.complex.d 2 1) ≫ g = F.map f at hgrefine ⟨F.preimage g, F.map_injective ?_⟩rw [F.map_comp, F.map_preimage]exact hg/-- The same vanishing expressed in the library's older linear-Yoneda modelof Ext. This theorem proves rather than assumes the bridge between the two APIs. -/theorem isZero_homology_two_of_projectiveDimension_lt_two(R : Type*) [Ring R] [Linear R C][HasProjectiveDimensionLT (F.obj X) 2] :IsZero ((P.complex.linearYonedaObj R Y).homology 2) := byrw [← HomologicalComplex.exactAt_iff_isZero_homology]rw [HomologicalComplex.exactAt_iff' _ 1 2 3 (by simp) (by simp)]rw [ShortComplex.moduleCat_exact_iff]intro f hfchange P.complex.d 3 2 ≫ f = 0 at hfexact cocycle_boundary_of_projectiveDimension_lt_two P F f hfendopen CategoryTheory CategoryTheory.Limitstheorem two_le_cohomologicalDimension_of_H2_nonzero (G : Type) [Group G](hx : ∃ x : groupCohomology.H2 (Rep.trivial ℤ G ℤ), x ≠ 0) :2 ≤ cohomologicalDimension G := bychange (2 : ℕ) ≤ CategoryTheory.projectiveDimension(ModuleCat.of (MonoidAlgebra ℤ G) (Representation.trivial ℤ G ℤ).asModule)rw [CategoryTheory.projectiveDimension_ge_iff]intro hdlet F := Rep.toModuleMonoidAlgebra (k := ℤ) (G := G)let P := Rep.barResolution ℤ Glet : F.Additive := Functor.additive_of_preserves_binary_products Fhave : HasProjectiveDimensionLT (F.obj (Rep.trivial ℤ G ℤ)) 2 := hdhave hz := isZero_homology_two_of_projectiveDimension_lt_two(Y := Rep.trivial ℤ G ℤ) P F ℤhave hz' : IsZero (groupCohomology.H2 (Rep.trivial ℤ G ℤ)) :=hz.of_iso (groupCohomologyIso (Rep.trivial ℤ G ℤ) 2 P)obtain ⟨x, hx⟩ := hxexact hx ((ModuleCat.isZero_iff_subsingleton.mp hz').elim x 0)theorem height_kernel_two_le_cohomologicalDimension {V : Type} (L : SimpleGraph V)(v w b : V) (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :2 ≤ cohomologicalDimension (height L).ker :=two_le_cohomologicalDimension_of_H2_nonzero _ (clique_exponent_class_nonzero L v w b hvw hvb hwb)theorem source_two_le_cohomologicalDimension : 2 ≤ cohomologicalDimension SourceGroup := byapply height_kernel_two_le_cohomologicalDimension seedGraph seedCliqueVertex seedCliqueEdge seedCliqueFace· change properFace _ _ ∨ _leftsimp [properFace, seedCliqueVertex, seedCliqueEdge, edgeVertices, circleStart]· change properFace _ _ ∨ _leftsimp [properFace, seedCliqueVertex, seedCliqueFace, sectorVertices, sectorEdges, edgeVertices, sectorCircleEdge, sectorLetter, seedWord, circleStart, circleEnd]· change properFace _ _ ∨ _leftsimp [properFace, seedCliqueEdge, seedCliqueFace, sectorEdges, sectorCircleEdge, sectorLetter, seedWord]end EilenbergGaneaendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822import OAI.AlgebraicTopology.Cubical.Realizationimport OAI.AlgebraicTopology.Cubical.ArtinChainsimport OAI.Topology.EilenbergGanea.Modelimport OAI.Topology.EilenbergGanea.SeedConnectionimport Mathlib.Topology.Covering.Quotientimport Mathlib.Topology.Covering.Deckimport Mathlib.Topology.Homotopy.Liftingnamespace OAInoncomputable sectionopen Classical Set Topologyopen scoped Quaternionnamespace EilenbergGanea.DescendingCube.Dataopen CubeInterpolationvariable {G A : Type*} [Group G] {f : A → G} (D : Data f)variable [Fintype A]omit [Fintype A] intheorem cellComm (c : D.Cell) : (c.directions : Set A).Pairwise(fun a b => Commute (f a) (f b)) :=fun _ ha _ hb he => D.commute c.top _ _ (c.subset ha) (c.subset hb) heomit [Fintype A] intheorem ones_eq_filter (c : D.Cell) (x : D.Coordinates c) :D.ones c x = c.directions.filter (fun a => D.fullCoord c x a = 1) := byext asimp only [mem_ones,Finset.mem_filter]constructor· rintro ⟨ha,hx⟩exact ⟨ha,by simpa only [fullCoord,dite_eq_left ha] using hx⟩· rintro ⟨ha,hx⟩exact ⟨ha,by simpa only [fullCoord,dite_eq_left ha] using hx⟩omit [Fintype A] intheorem normalize_fullCoord (c : D.Cell) (x : D.Coordinates c) :CubeInterpolation.normalize (D.fullCoord c x) = D.normalizedCoord c x := byfunext aby_cases ha : a ∈ c.directions· simp only [CubeInterpolation.normalize,fullCoord,normalizedCoord,dite_eq_left ha]· simp [CubeInterpolation.normalize,fullCoord,normalizedCoord,ha]def interpolation (p : D.Point) (φ : G → ℝ) : ℝ :=operator f (D.active p) (D.cellComm (D.pointCell p)) p.coord φ p.toptheorem active_characteristic_subset (c : D.Cell) (x : D.Coordinates c) :D.active (D.characteristic c x) ⊆ c.directions := byintro a haby_contra happly ((D.mem_active _ _).mp ha)change D.normalizedCoord c x a = 0simp [normalizedCoord,h]theorem interpolation_characteristic (c : D.Cell) (x : D.Coordinates c) (φ : G → ℝ) :D.interpolation (D.characteristic c x) φ =operator f c.directions (D.cellComm c) (D.fullCoord c x) φ c.top := byhave hsub := D.active_characteristic_subset c xhave he := operator_subset f (D.active (D.characteristic c x)) c.directions(D.cellComm c) hsub (D.normalizedCoord c x) (byintro a _ hnexact not_not.mp (by simpa only [mem_active,characteristic] using hn))have hn := operator_normalize f c.directions (D.cellComm c) (D.fullCoord c x)simp only [normalize_fullCoord,← ones_eq_filter] at hnhave hh := congrArg (fun T : Module.End ℝ (G → ℝ) => T φ c.top) hnrw [Module.End.mul_apply,translation_apply,he] at hhexact hh.symmtheorem interpolation_continuous (φ : G → ℝ) :Continuous (fun p : D.Point => D.interpolation p φ) := byapply D.evaluation_quotient.continuous_iff.mprapply continuous_sigmaintro cchange Continuous (fun x : D.Coordinates c => D.interpolation (D.characteristic c x) φ)simp only [interpolation_characteristic]exact operator_continuous f c.directions _ (D.fullCoord c)(fun a _ => D.fullCoord_continuous c a) φ c.toptheorem interpolation_vertex_pos (p : D.Point) :0 < D.interpolation p (fun a => if a = p.top then 1 else 0) := byapply operator_pos· intro a _; exact ⟨p.nonneg a,p.lt_one a⟩· intro a; split_ifs <;> norm_num· simpomit [Fintype A] intheorem descending_operator_delta_zero (s : Finset A) (g : G) (hs : s ⊆ D.desc g)(x : A → ℝ) (b : G) (hb : D.length g ≤ D.length b) (hne : b ≠ g) :operator f s (fun a ha d hd hne => D.commute g a d (hs ha) (hs hd) hne)x (fun a => if a = b then 1 else 0) g = 0 := byinduction s using Finset.induction_on generalizing g with| empty => simp [operator_empty,hne.symm]| @insert a s ha ih =>have hga := hs (Finset.mem_insert_self a s)have hs0 : s ⊆ D.desc g := fun d hd => hs (Finset.mem_insert_of_mem hd)have hs1 : s ⊆ D.desc (g * f a) := byintro d hdexact D.preserve g a d hga (hs0 hd) (by intro he; exact ha (he ▸ hd))have hd := D.decrease g a hgahave hb1 : D.length (g*f a) ≤ D.length b := by omegahave hne1 : b ≠ g*f a := by intro he; rw [he] at hb; omegahave hc : (↑(insert a s) : Set A).Pairwise (fun a d => Commute (f a) (f d)) :=fun _ ha _ hd hne => D.commute g _ _ (hs ha) (hs hd) hnechange operator f (insert a s) hc x (fun a => if a = b then 1 else 0) g = 0rw [operator_insert f s a ha,Module.End.mul_apply,blend_apply]rw [ih g hs0 hb hne,ih (g*f a) hs1 hb1 hne1]ringtheorem interpolation_vertex_zero (p : D.Point) (b : G)(hb : D.length p.top ≤ D.length b) (hne : b ≠ p.top) :D.interpolation p (fun a => if a = b then 1 else 0) = 0 :=D.descending_operator_delta_zero (D.active p) p.top (D.pointCell p).subset p.coord b hb hnetheorem interpolation_top_eq (p q : D.Point)(he : ∀ φ, D.interpolation p φ = D.interpolation q φ) : p.top = q.top := byhave length_le (p q : D.Point) (he : ∀ φ, D.interpolation p φ = D.interpolation q φ) :D.length q.top ≤ D.length p.top := byby_contra hnhave hlt : D.length p.top < D.length q.top := lt_of_not_ge hnhave hne : q.top ≠ p.top := by intro eq; rw [eq] at hlt; exact lt_irrefl _ hlthave hz := D.interpolation_vertex_zero p q.top hlt.le hnehave hp := D.interpolation_vertex_pos qrw [← he,hz] at hpexact lt_irrefl _ hphave h₁ := length_le p q heby_contra hnehave hz := D.interpolation_vertex_zero q p.top h₁ hnehave hp := D.interpolation_vertex_pos prw [he,hz] at hpexact lt_irrefl _ hpvariable (exponent : A → G →* Multiplicative ℝ)variable (hexponent : ∀ g a, a ∈ D.desc g → ∀ b, b ∈ D.desc g →(exponent a (f b)).toAdd = if a = b then 1 else 0)include hexponent intheorem interpolation_exponent (p : D.Point) (a : A) (ha : a ∈ D.desc p.top) :D.interpolation p (fun g => (exponent a g).toAdd) =(exponent a p.top).toAdd + p.coord a := byrefine (operator_linear f (exponent a) (D.active p)(D.cellComm (D.pointCell p)) p.coord p.top).trans ?_congr 1have he : ∀ b ∈ D.active p, (exponent a (f b)).toAdd = if a = b then 1 else 0 :=fun b hb => hexponent p.top a ha b ((D.pointCell p).subset hb)simp only [Finset.sum_congr rfl (fun b hb => congrArg (fun t : ℝ => p.coord b * t) (he b hb)),mul_ite,mul_one,mul_zero,Finset.sum_ite_eq]by_cases h : p.coord a = 0· simp [h]· simp [mem_active,h]include exponent hexponent intheorem interpolation_injective : Function.Injective(fun p : D.Point => fun φ : G → ℝ => D.interpolation p φ) := byintro p q hehave he' : ∀ φ, D.interpolation p φ = D.interpolation q φ := fun φ => congrFun he φhave hb := D.interpolation_top_eq p q he'apply Point.ext hbfunext aby_cases ha : a ∈ D.desc p.top· have hq : a ∈ D.desc q.top := by simpa only [hb] using hahave hh := he' (fun g => (exponent a g).toAdd)rw [D.interpolation_exponent exponent hexponent p a ha,D.interpolation_exponent exponent hexponent q a hq,hb] at hhexact add_left_cancel hh· have hp : p.coord a = 0 := by_contra (fun hn => ha (p.support a hn))have hq : q.coord a = 0 := byby_contra hnexact ha (by simpa only [hb] using q.support a hn)rw [hp,hq]include exponent hexponent intheorem point_t2 : T2Space D.Point :=T2Space.of_injective_continuous(D.interpolation_injective exponent hexponent)(continuous_pi (fun φ => D.interpolation_continuous φ))end EilenbergGanea.DescendingCube.Dataopen Classical Topologynamespace WeakRealization/-- A homeomorphism is induced by point-separating coordinates and actualcontinuous lifts on each characteristic disk, in both directions. -/def homeomorph {ι κ X Y Z : Type*} {E : ι → Type*} {F : κ → Type*}[TopologicalSpace X] [TopologicalSpace Y][∀ i, TopologicalSpace (E i)] [∀ j, TopologicalSpace (F j)](e : ((i : ι) × E i) → X) (f : ((j : κ) × F j) → Y)(he : IsQuotientMap e) (hf : IsQuotientMap f)(J : X → Z) (K : Y → Z) (hJ : Function.Injective J) (hK : Function.Injective K)(hxy : ∀ i, ∃ φ : C(E i,Y), ∀ t, K (φ t) = J (e ⟨i,t⟩))(hyx : ∀ j, ∃ φ : C(F j,X), ∀ t, J (φ t) = K (f ⟨j,t⟩)) : X ≃ₜ Y := byhave hx : ∀ x, ∃ y, K y = J x := byintro xobtain ⟨⟨i,t⟩,rfl⟩ := he.surjective xobtain ⟨φ,hφ⟩ := hxy iexact ⟨φ t,hφ t⟩have hy : ∀ y, ∃ x, J x = K y := byintro yobtain ⟨⟨j,t⟩,rfl⟩ := hf.surjective yobtain ⟨φ,hφ⟩ := hyx jexact ⟨φ t,hφ t⟩let A : X → Y := fun x => (hx x).chooselet B : Y → X := fun y => (hy y).choosehave hA : ∀ x, K (A x) = J x := fun x => (hx x).choose_spechave hB : ∀ y, J (B y) = K y := fun y => (hy y).choose_specrefine {toEquiv := {toFun := AinvFun := Bleft_inv := fun x => hJ ((hB (A x)).trans (hA x))right_inv := fun y => hK ((hA (B y)).trans (hB y)) }continuous_toFun := ?_continuous_invFun := ?_ }· apply he.continuous_iff.mprapply continuous_sigmaintro iobtain ⟨φ,hφ⟩ := hxy ihave hh : (fun t => A (e ⟨i,t⟩)) = φ := byfunext texact hK ((hA _).trans (hφ t).symm)change Continuous (fun t => A (e ⟨i,t⟩))rw [hh]exact φ.continuous· apply hf.continuous_iff.mprapply continuous_sigmaintro jobtain ⟨φ,hφ⟩ := hyx jhave hh : (fun t => B (f ⟨j,t⟩)) = φ := byfunext texact hJ ((hB _).trans (hφ t).symm)change Continuous (fun t => B (f ⟨j,t⟩))rw [hh]exact φ.continuousend WeakRealizationnamespace EilenbergGanea.CubeInterpolationopen CubicalChains.Reorientationvariable {G V : Type*} [Group G]/-- Interpolation in a listed cube, independent of any topological model. -/def listed (f : V → G) (w : List V) (x : V → ℝ) : Module.End ℝ (G → ℝ) :=(w.map (fun v => blend (f v) (x v))).prod@[simp] theorem listed_nil (f : V → G) (x : V → ℝ) : listed f [] x = 1 := rfl@[simp] theorem listed_cons (f : V → G) (v : V) (w : List V) (x : V → ℝ) :listed f (v::w) x = blend (f v) (x v) * listed f w x := rfltheorem operator_listed [DecidableEq V] (f : V → G) (w : List V) (hw : w.Nodup)(hc : (w.toFinset : Set V).Pairwise (fun v u => Commute (f v) (f u))) (x : V → ℝ) :operator f w.toFinset hc x = listed f w x :=Finset.noncommProd_toFinset w _ _ hw/-- Literal multilinear invariance under reversing selected cube directions. -/theorem listed_reorientation (f : V → G) (w : List (Signed V))(hw : w.Pairwise (fun a b => Commute (f a.1) (f b.1)))(x : Signed V → ℝ) (z : V → ℝ)(hx : ∀ a ∈ w, x a = if a.2 then 1-z a.1 else z a.1) (φ : G → ℝ) (g : G) :listed (step f) w x φ g = listed f (w.map Prod.fst) z φ (origin f g w) := byinduction w generalizing g with| nil => rfl| cons a w ih =>obtain ⟨ha,hw⟩ := List.pairwise_cons.mp hwhave hxw : ∀ b ∈ w, x b = if b.2 then 1-z b.1 else z b.1 :=fun b hb => hx b (by simp [hb])simp only [listed_cons,List.map_cons,Module.End.mul_apply,blend_apply,ih hw hxw,hx a (by simp),step,origin]cases hb : a.2· simp only [Bool.false_eq_true,↓reduceIte]rw [origin_shift f g (f a.1) w ha]· simp only [↓reduceIte]rw [origin_shift f g (f a.1)⁻¹ w (fun b hb => (ha b hb).inv_left),inv_mul_cancel_right]ringend EilenbergGanea.CubeInterpolationnamespace EilenbergGanea.ArtinCubicalTopologyopen TraceWords CubeInterpolation CubicalChains.Reorientationvariable {V : Type*} [Fintype V] (L : SimpleGraph V)local instance : Std.Symm L.Adj := ⟨fun _ _ h => h.symm⟩local instance : Std.Irrefl L.Adj := ⟨fun _ => L.irrefl⟩abbrev f := artinGenerator Labbrev comm := fun v w h => adjacent_generators_commute L (v := v) (w := w) habbrev D := artinDescendingData Labbrev Positive := CubeRealization.Point L (f L) (comm L)abbrev Descending := (D L).Pointomit [Fintype V] in@[simp] theorem step_eq (a : Letter V) : step (f L) a = letterValue (f L) (invLetter a) := bycases a with | mk v b => cases b <;> rfldef exponent (v : V) : ArtinGroup L →* Multiplicative ℝ :=artinLift L (fun w => Multiplicative.ofAdd (if v = w then (1 : ℝ) else 0))(fun _ _ _ => Commute.all _ _)omit [Fintype V] in@[simp] theorem exponent_generator (v w : V) :(exponent L v (f L w)).toAdd = if v = w then 1 else 0 := bysimp [exponent,f]omit [Fintype V] in@[simp] theorem height_generator (v : V) : (height L (f L v)).toAdd = 1 := byexact congrArg Multiplicative.toAdd (PresentedGroup.toGroup.of _)def signedExponent (a : Letter V) : ArtinGroup L →* Multiplicative ℝ :=artinLift L (fun v => Multiplicative.ofAdd(if a.1 = v then (if a.2 then (-1 : ℝ) else 1) else 0))(fun _ _ _ => Commute.all _ _)theorem signedExponent_step (g : ArtinGroup L) (a : Letter V) (ha : a ∈ (D L).desc g)(b : Letter V) (hb : b ∈ (D L).desc g) :(signedExponent L a (letterValue (f L) (invLetter b))).toAdd = if a = b then 1 else 0 := byby_cases he : a = b· subst brcases a with ⟨v,b⟩cases b <;> simp [signedExponent,letterValue,invLetter,f]· have hi : Independent L a b := rightDescents_pairwise L g(by simpa [D,artinDescendingData] using ha) (by simpa [D,artinDescendingData] using hb) hehave hv : a.1 ≠ b.1 := hi.nercases b with ⟨v,b⟩cases b <;> simp [signedExponent,letterValue,invLetter,f,hv,he]theorem positive_interp_inj : Function.Injective(fun p : Positive L => fun φ => CubeRealization.interpolation L (f L) (comm L) p φ) :=CubeRealization.interpolation_injective L (f L) (comm L) (height L) (height_generator L)(exponent L) (exponent_generator L)theorem descending_interp_inj : Function.Injective(fun p : Descending L => fun φ => (D L).interpolation p φ) :=(D L).interpolation_injective (signedExponent L) (byintro g a ha b hbby_cases he : a = b <;> simpa [he] using signedExponent_step L g a ha b hb)def flip (b : Bool) (t : unitInterval) : unitInterval :=if b then unitInterval.symm t else t@[simp] theorem flip_flip (b : Bool) (t : unitInterval) : flip b (flip b t) = t := bycases b <;> simp [flip]theorem flip_continuous (b : Bool) : Continuous (flip b) := bycases b· exact continuous_id· exact unitInterval.continuous_symmdef vertexEquiv (w : Word V) (hw : (w.map Prod.fst).Nodup) :w.toFinset ≃ (w.map Prod.fst).toFinset :=Equiv.ofBijective (fun a => ⟨a.val.1,byexact List.mem_toFinset.mpr (List.mem_map.mpr ⟨a.val,List.mem_toFinset.mp a.property,rfl⟩)⟩) (byconstructor· intro a b heapply Subtype.extexact (List.nodup_map_iff_inj_on (hw.of_map Prod.fst)).mp hwa.val (List.mem_toFinset.mp a.property) b.val (List.mem_toFinset.mp b.property) (congrArg Subtype.val he)· intro vobtain ⟨a,ha,he⟩ := List.mem_map.mp (List.mem_toFinset.mp v.property)exact ⟨⟨a,by simpa using ha⟩,Subtype.ext he⟩)omit [Fintype V] in@[simp] theorem vertexEquiv_val (w : Word V) (hw : (w.map Prod.fst).Nodup)(a : w.toFinset) : (vertexEquiv w hw a).val = a.val.1 := rfldef toPositiveCoords (w : Word V) (hw : (w.map Prod.fst).Nodup)(x : w.toFinset → unitInterval) : (w.map Prod.fst).toFinset → unitInterval :=fun v => flip ((vertexEquiv w hw).symm v).val.2 (x ((vertexEquiv w hw).symm v))omit [Fintype V] in@[simp] theorem toPositiveCoords_apply (w : Word V) (hw : (w.map Prod.fst).Nodup)(x : w.toFinset → unitInterval) (a : w.toFinset) :toPositiveCoords w hw x (vertexEquiv w hw a) = flip a.val.2 (x a) := bysimp [toPositiveCoords]omit [Fintype V] intheorem toPositiveCoords_continuous (w : Word V) (hw : (w.map Prod.fst).Nodup) :Continuous (toPositiveCoords w hw) :=continuous_pi (fun _ => (flip_continuous _).comp (continuous_apply _))def toDescendingCoords (w : Word V) (hw : (w.map Prod.fst).Nodup)(z : (w.map Prod.fst).toFinset → unitInterval) : w.toFinset → unitInterval :=fun a => flip a.val.2 (z (vertexEquiv w hw a))omit [Fintype V] intheorem toDescendingCoords_continuous (w : Word V) (hw : (w.map Prod.fst).Nodup) :Continuous (toDescendingCoords w hw) :=continuous_pi (fun _ => (flip_continuous _).comp (continuous_apply _))omit [Fintype V] in@[simp] theorem toPositive_toDescending (w : Word V) (hw : (w.map Prod.fst).Nodup)(z : (w.map Prod.fst).toFinset → unitInterval) :toPositiveCoords w hw (toDescendingCoords w hw z) = z := byfunext vobtain ⟨a,rfl⟩ := (vertexEquiv w hw).surjective vsimp [toDescendingCoords]def positiveCell (g : ArtinGroup L) (w : Word V) (hw : (w.map Prod.fst).Pairwise L.Adj) :CubeRealization.Cell (G := ArtinGroup L) L wherebase := origin (f L) g wdirections := (w.map Prod.fst).toFinsetclique := fun _ ha _ hb he => hw.forall (List.mem_toFinset.mp ha) (List.mem_toFinset.mp hb) hedef descendingCell (g : ArtinGroup L) (w : Word V)(hd : ∀ a ∈ w, a ∈ rightDescents L g) : (D L).Cell wheretop := gdirections := w.toFinsetsubset a ha := by simpa [D,artinDescendingData] using hd a (List.mem_toFinset.mp ha)theorem interpolation_reorientation (g : ArtinGroup L) (w : Word V)(hw : (w.map Prod.fst).Pairwise L.Adj) (hd : ∀ a ∈ w, a ∈ rightDescents L g)(x : (D L).Coordinates (descendingCell L g w hd)) (φ : ArtinGroup L → ℝ) :(D L).interpolation ((D L).characteristic (descendingCell L g w hd) x) φ =CubeRealization.interpolation L (f L) (comm L)(CubeRealization.characteristic (f L) (comm L) (positiveCell L g w hw)(toPositiveCoords w hw.nodup x)) φ := byrefine ((D L).interpolation_characteristic (descendingCell L g w hd) x φ).trans ?_refine Eq.trans ?_ (CubeRealization.interpolation_characteristic L (f L) (comm L)(positiveCell L g w hw) (toPositiveCoords w hw.nodup x) φ).symmhave hf : (fun a : Letter V => letterValue (artinGenerator L) (invLetter a)) = step (f L) :=funext (fun a => (step_eq L a).symm)erw [operator_listed _ w (hw.nodup.of_map Prod.fst),operator_listed _ _ hw.nodup]have hop := congrArg (fun k : Letter V → ArtinGroup L => listed k w) hfrw [hop]apply listed_reorientation· exact (List.pairwise_map.mp hw).imp (fun hh => adjacent_generators_commute L hh)· intro a halet aa : w.toFinset := ⟨a,by simpa using ha⟩have h₁ : (D L).fullCoord (descendingCell L g w hd) x a = (x aa : ℝ) := byexact (D L).fullCoord_mem (descendingCell L g w hd) x aahave h₂ : CubeRealization.fullCoord (positiveCell L g w hw)(toPositiveCoords w hw.nodup x) a.1 = (flip a.2 (x aa) : ℝ) := byhave hh := CubeRealization.fullCoord_mem (positiveCell L g w hw)(toPositiveCoords w hw.nodup x) (vertexEquiv w hw.nodup aa)exact hh.trans (congrArg (fun z : unitInterval => (z : ℝ))(toPositiveCoords_apply w hw.nodup x aa))rw [h₁,h₂]cases h : a.2 <;> simp [flip]theorem descendingCell_rep (c : (D L).Cell) :∃ (g : ArtinGroup L) (w : Word V) (_hw : (w.map Prod.fst).Pairwise L.Adj)(hd : ∀ a ∈ w, a ∈ rightDescents L g), descendingCell L g w hd = c := bylet w := c.directions.toListhave hd : ∀ a ∈ w, a ∈ rightDescents L c.top := byintro a hahave hh := c.subset (Finset.mem_toList.mp ha)simpa [D,artinDescendingData] using hhhave hw : (w.map Prod.fst).Pairwise L.Adj := byapply List.pairwise_map.mprapply c.directions.nodup_toList.pairwise_of_forall_neintro a ha b hb heexact rightDescents_pairwise L c.top (hd a ha) (hd b hb) herefine ⟨c.top,w,hw,hd,?_⟩cases c with| mk g s hs =>dsimp only [descendingCell,w]congrexact s.toList_toFinsetomit [Fintype V] intheorem positiveCell_rep (c : CubeRealization.Cell (G := ArtinGroup L) L) :∃ (g : ArtinGroup L) (w : Word V) (hw : (w.map Prod.fst).Pairwise L.Adj)(_hd : ∀ a ∈ w, a ∈ rightDescents L g), positiveCell L g w hw = c := bylet v := c.directions.toListhave hv : v.Pairwise L.Adj := c.directions.nodup_toList.pairwise_of_forall_ne(fun a ha b hb he => c.clique (Finset.mem_toList.mp ha) (Finset.mem_toList.mp hb) he)let o := CubeDescents.orient L c.base vhave hw : (o.2.map Prod.fst).Pairwise L.Adj := bysimpa only [o,CubeDescents.orient_map] using hvhave hd : ∀ a ∈ o.2, a ∈ rightDescents L o.1 := CubeDescents.orient_descents L c.base v hvrefine ⟨o.1,o.2,hw,hd,?_⟩have hb : origin (f L) o.1 o.2 = c.base := CubeDescents.origin_orient L c.base v hvhave hs : (o.2.map Prod.fst).toFinset = c.directions := bysimp only [o,CubeDescents.orient_map,v,Finset.toList_toFinset]cases c with| mk g s hc =>change CubeRealization.Cell.mk (origin (f L) o.1 o.2) (o.2.map Prod.fst).toFinset _ = _congrtheorem descending_local_lift (c : (D L).Cell) :∃ φ : C((D L).Coordinates c,Positive L), ∀ x,(fun ψ => CubeRealization.interpolation L (f L) (comm L) (φ x) ψ) =(fun ψ => (D L).interpolation ((D L).characteristic c x) ψ) := byobtain ⟨g,w,hw,hd,rfl⟩ := descendingCell_rep L crefine ⟨⟨fun x => CubeRealization.characteristic (f L) (comm L) (positiveCell L g w hw)(toPositiveCoords w hw.nodup x),(CubeRealization.characteristic_continuous (f L) (comm L) (positiveCell L g w hw)).comp(toPositiveCoords_continuous w hw.nodup)⟩,?_⟩intro xfunext ψexact (interpolation_reorientation L g w hw hd x ψ).symmtheorem positive_local_lift (c : CubeRealization.Cell (G := ArtinGroup L) L) :∃ φ : C(CubeRealization.Coordinates c,Descending L), ∀ x,(fun ψ => (D L).interpolation (φ x) ψ) =(fun ψ => CubeRealization.interpolation L (f L) (comm L)(CubeRealization.characteristic (f L) (comm L) c x) ψ) := byobtain ⟨g,w,hw,hd,rfl⟩ := positiveCell_rep L crefine ⟨⟨fun x => (D L).characteristic (descendingCell L g w hd) (toDescendingCoords w hw.nodup x),((D L).characteristic_continuous (descendingCell L g w hd)).comp(toDescendingCoords_continuous w hw.nodup)⟩,?_⟩intro xfunext ψchange (D L).interpolation ((D L).characteristic (descendingCell L g w hd)(toDescendingCoords w hw.nodup x)) ψ = _change (w.map Prod.fst).toFinset → unitInterval at xsimpa only [toPositive_toDescending] using interpolation_reorientation L g w hw hd(toDescendingCoords w hw.nodup x) ψ/-- Reorientation preserves the actual weak topologies, not only cellular chains. -/def reorient : Descending L ≃ₜ Positive L :=WeakRealization.homeomorph (D L).evaluation (CubeRealization.evaluation (f L) (comm L))(D L).evaluation_quotient (CubeRealization.evaluation_quotient (f L) (comm L))(fun p ψ => (D L).interpolation p ψ)(fun p ψ => CubeRealization.interpolation L (f L) (comm L) p ψ)(descending_interp_inj L) (positive_interp_inj L)(descending_local_lift L) (positive_local_lift L)variable [Nonempty V]/-- The ordinary positive-cube CW realization is genuinely contractible. -/theorem positive_contractible : ContractibleSpace (Positive L) := bylet : ContractibleSpace (Descending L) := artinDescending_contractible Lexact (reorient L).symm.contractibleSpaceend EilenbergGanea.ArtinCubicalTopologyopen Classical Set Topologynamespace CompactChart/-- A characteristic map which has singleton fibers over its open cell has acontinuous inverse there. Compactness is used only on the closed disk; noregularity of the attaching sphere is required. -/theorem continuousOn_symm {A X : Type*} [TopologicalSpace A] [TopologicalSpace X][T2Space X] (e : PartialEquiv A X) (K : Set A) (hK : IsCompact K)(hsub : e.source ⊆ K) (hc : ContinuousOn e K)(hboundary : ∀ a ∈ K, e a ∈ e.target → a ∈ e.source) :ContinuousOn e.symm e.target := bylet : CompactSpace K := isCompact_iff_compactSpace.mp hKlet f : K → X := fun a => e ahave hf : Continuous f := continuousOn_iff_continuous_domRestrict.mp hclet r := e.target.restrictPreimage fhave hr : Function.Surjective r := byintro xrefine ⟨⟨⟨e.symm x,hsub (e.map_target x.property)��,?_⟩,?_⟩· change e (e.symm x) ∈ e.targetrw [e.right_inv x.property]exact x.property· exact Subtype.ext (e.right_inv x.property)have hq : IsQuotientMap r :=(hf.isClosedMap.restrictPreimage e.target).isQuotientMap hf.restrictPreimage hrapply continuousOn_iff_continuous_domRestrict.mprapply hq.continuous_iff.mprhave he : (fun x : e.target => e.symm x) ∘ r =(fun a : f ⁻¹' e.target => (a.val.val : A)) := byfunext aexact e.left_inv (hboundary a.val a.val.property a.property)change Continuous ((fun x : e.target => e.symm x) ∘ r)rw [he]exact continuous_subtype_val.comp continuous_subtype_valend CompactChartnamespace EilenbergGanea.CubeRealizationsectionopen Metricvariable {G V : Type*} [Group G] [Fintype V]variable {L : SimpleGraph V} (f : V → G)variable (comm : ∀ v w, L.Adj v w → Commute (f v) (f w))theorem chartInverse_continuousOn_of_t2 [T2Space (Point (G := G) L f comm)]{n : ℕ} (c : DimCell (G := G) (L := L) n) :ContinuousOn (chart f comm c).symm (chart f comm c).target := byapply CompactChart.continuousOn_symm (chart f comm c) (closedBall 0 1)(isCompact_closedBall _ _) ball_subset_closedBall (chart_continuous f comm c).continuousOnintro t ht hechange pointCell (chart f comm c t) = c.val at hechange t ∈ ball 0 1by_contra hnhave hs : t ∈ sphere 0 1 := mem_sphere.mpr(le_antisymm (mem_closedBall.mp ht) (le_of_not_gt hn))have hd := boundary_dimension_lt f comm c hsrw [he,c.property] at hdexact (lt_irrefl _) hd/-- The ordinary CW structure follows from the genuine normalized-cube gluing;only Hausdorffness and compact characteristic disks are used. -/@[instance_reducible] def cwComplexOfT2 [T2Space (Point (G := G) L f comm)] : CWComplex (univ : Set (Point (G := G) L f comm)) wherecell := DimCell (G := G) (L := L)map := fun _ c => chart f comm csource_eq := fun _ _ => rflcontinuousOn := fun _ c => (chart_continuous f comm c).continuousOncontinuousOn_symm := fun _ c => chartInverse_continuousOn_of_t2 f comm cpairwiseDisjoint' := byintro a _ b _ habchange Disjoint (chart f comm a.2 '' ball 0 1) (chart f comm b.2 '' ball 0 1)rw [chart_image_ball,chart_image_ball]apply Set.disjoint_left.mprintro p ha hbapply habhave he : a.2.val = b.2.val := ha.symm.trans hbhave hn : a.1 = b.1 := a.2.property.symm.trans ((congrArg (fun c => c.directions.card) he).trans b.2.property)cases a with | mk n a =>cases b with | mk m b =>dsimp at hnsubst mexact congrArg (Sigma.mk n) (Subtype.ext he)mapsTo' := chart_mapsTo f commclosed' := byintro A _ hAapply (evaluation_quotient f comm).isClosed_preimage.mprw [isClosed_sigma_iff]intro clet d : DimCell (G := G) (L := L) c.directions.card := ⟨c,rfl⟩have hh := (hA _ d).preimage (characteristic_continuous f comm c)rw [chart_image_disk] at hhchange IsClosed (characteristic f comm c ⁻¹' (A ∩ Set.range (characteristic f comm c))) at hhchange IsClosed (characteristic f comm c ⁻¹' A)simpa only [Set.preimage_inter,Set.preimage_range,Set.inter_univ] using hhunion' := byapply Set.eq_univ_of_forallintro plet d : DimCell (G := G) (L := L) (pointCell p).directions.card := ⟨pointCell p,rfl⟩apply Set.mem_iUnion.mprrefine ⟨_,Set.mem_iUnion.mpr ⟨d,?_⟩⟩rw [chart_image_disk]exact ⟨pointCoordinates p,characteristic_point f comm p⟩endvariable {G Q V : Type*} [Group G] [Group Q] [Fintype V]variable {L : SimpleGraph V} (f : V → G)variable (comm : ∀ v w, L.Adj v w → Commute (f v) (f w))variable (q : G →* Q)include comm inomit [Fintype V] intheorem mappedComm : ∀ v w, L.Adj v w → Commute ((q ∘ f) v) ((q ∘ f) w) :=fun v w hvw => (comm v w hvw).map q/-- Applying a group homomorphism only to the initial vertices of cubes. -/def mapPoint (p : Point (G := G) L f comm) : Point (G := Q) L (q ∘ f) (mappedComm f comm q) wherebase := q p.basecoord := p.coordnonneg := p.nonneglt_one := p.lt_oneclique := p.cliquedef mapCell (c : Cell (G := G) L) : Cell (G := Q) L wherebase := q c.basedirections := c.directionsclique := c.cliqueomit [Fintype V] in@[simp] theorem mapPoint_base (p : Point (G := G) L f comm) :(mapPoint f comm q p).base = q p.base := rflomit [Fintype V] in@[simp] theorem mapPoint_coord (p : Point (G := G) L f comm) :(mapPoint f comm q p).coord = p.coord := rflomit [Fintype V] in@[simp] theorem mapPoint_characteristic (c : Cell (G := G) L) (x : Coordinates c) :mapPoint f comm q (characteristic f comm c x) =characteristic (q ∘ f) (mappedComm f comm q) (mapCell q c) x := byapply Point.ext· change q (c.base * product f comm (ones c x) _) =q c.base * product (q ∘ f) (mappedComm f comm q) (ones c x) _rw [map_mul]congr 1exact Finset.map_noncommProd _ _ _ q· rfltheorem mapPoint_continuous : Continuous (mapPoint f comm q) := byapply (evaluation_quotient f comm).continuous_iff.mprapply continuous_sigmaintro cchange Continuous (fun x => mapPoint f comm q (characteristic f comm c x))simp only [mapPoint_characteristic]exact characteristic_continuous (q ∘ f) (mappedComm f comm q) (mapCell q c)omit [Fintype V] intheorem mapCell_surjective (hq : Function.Surjective q) : Function.Surjective (mapCell (L := L) q) := byrintro ⟨a,s,hs⟩obtain ⟨g,rfl⟩ := hq aexact ⟨⟨g,s,hs⟩,rfl⟩omit [Fintype V] intheorem mapPoint_surjective (hq : Function.Surjective q) : Function.Surjective (mapPoint f comm q) := byrintro ⟨a,x,hx,ht,hc⟩obtain ⟨g,rfl⟩ := hq aexact ⟨⟨g,x,hx,ht,hc⟩,rfl⟩/-- The base-label quotient is a genuine topological quotient for the weakcubical topologies, proved by lifting each actual characteristic disk. -/theorem mapPoint_quotient (hq : Function.Surjective q) : IsQuotientMap (mapPoint f comm q) := byapply isQuotientMap_iff_isClosed.mprrefine ⟨mapPoint_surjective f comm q hq,?_⟩intro Aconstructor· exact fun hA => hA.preimage (mapPoint_continuous f comm q)· intro hAapply (evaluation_quotient (q ∘ f) (mappedComm f comm q)).isClosed_preimage.mprw [isClosed_sigma_iff]intro cobtain ⟨d,rfl⟩ := mapCell_surjective q hq chave hh := hA.preimage (characteristic_continuous f comm d)change IsClosed ((fun x => mapPoint f comm q (characteristic f comm d x)) ⁻¹' A) at hhchange IsClosed ((fun x : Coordinates d =>characteristic (q ∘ f) (mappedComm f comm q) (mapCell q d) x) ⁻¹' A)simpa only [mapPoint_characteristic] using hhomit [Fintype V] in/-- The literal group-kernel orbits are exactly the fibers of the cube map. -/theorem mapPoint_eq_iff_orbit (p r : Point (G := G) L f comm) :mapPoint f comm q p = mapPoint f comm q r ↔ p ∈ MulAction.orbit q.ker r := byconstructor· intro hehave hb : q p.base = q r.base := congrArg Point.base hehave hx : p.coord = r.coord := congrArg (fun z : Point (G := Q) L (q ∘ f)(mappedComm f comm q) => z.coord) helet g : q.ker := ⟨p.base * r.base⁻¹,by simp only [MonoidHom.mem_ker,map_mul,map_inv,hb,mul_inv_cancel]⟩refine ⟨g,?_⟩apply Point.ext· change (p.base * r.base⁻¹) * r.base = p.basesimp [mul_assoc]· exact hx.symm· rintro ⟨g,rfl⟩apply Point.ext· change q ((g : G) * r.base) = q r.baserw [map_mul,g.property,one_mul]· rfl/-- The quotient homeomorphism respects the actual weak topologies. -/def kernelQuotientHomeomorph (hq : Function.Surjective q) :Quotient (MulAction.orbitRel q.ker (Point (G := G) L f comm)) ≃ₜPoint (G := Q) L (q ∘ f) (mappedComm f comm q) :=(Homeomorph.Quotient.congrRight (fun p r => (mapPoint_eq_iff_orbit f comm q p r).symm)).trans(Topology.IsQuotientMap.homeomorph (f := ⟨mapPoint f comm q,mapPoint_continuous f comm q⟩)(mapPoint_quotient f comm q hq))variable (h : G →* Multiplicative ℤ) (hf : ∀ v, (h (f v)).toAdd = 1)variable (exponent : V → G →* Multiplicative ℝ)variable (hexponent : ∀ v w, (exponent v (f w)).toAdd = if v = w then 1 else 0)include h hf exponent hexponent intheorem quotientPoint_t2 (hq : Function.Surjective q) :T2Space (Point (G := Q) L (q ∘ f) (mappedComm f comm q)) := bylet := point_t2 L f comm h hf exponent hexponentlet := point_weaklyLocallyCompact L f commexact (kernelQuotientHomeomorph f comm q hq).t2Spaceinclude h hf exponent hexponent intheorem mapPoint_covering (hq : Function.Surjective q) :IsQuotientCoveringMap (mapPoint f comm q) q.ker wheretoIsQuotientMap := mapPoint_quotient f comm q hqcontinuous_const_smul := continuous_const_smulapply_eq_iff_mem_orbit := mapPoint_eq_iff_orbit f comm q _ _disjoint := (subgroup_quotient_covering f comm h hf exponent hexponent q.ker).disjointend EilenbergGanea.CubeRealizationnamespace EilenbergGaneauniverse unamespace ArtinCubicalTopologyopen CubeRealizationvariable {V : Type u} [Fintype V] [Nonempty V] (L : SimpleGraph V)omit [Fintype V] intheorem height_surjective : Function.Surjective (height L) := byintro nlet v : V := Classical.choice inferInstancerefine ⟨f L v ^ n.toAdd,?_⟩rw [map_zpow]apply Multiplicative.toAdd.injectivechange n.toAdd • (height L (f L v)).toAdd = n.toAddsimp only [height_generator,zsmul_eq_mul,mul_one,Int.cast_id]def HeightQuotient := Point L ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))instance : TopologicalSpace (HeightQuotient L) := inferInstanceAs (TopologicalSpace(Point L ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))))/-- An ordinary cubical classifying space for the height kernel, with one cubefor every integral level and clique. Contractibility above is the explicitword-length contraction, and the fundamental-group identification reusesMathlib's checked covering-monodromy equivalence. -/theorem height_hasClassifyingSpace (d : ℕ)(hd : ∀ s : Finset V, (s : Set V).Pairwise L.Adj → s.card ≤ d) :HasClassifyingSpace.{u} (height L).ker d := bylet X := Point L ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))let E := Positive Llet : ContractibleSpace E := positive_contractible Llet : T2Space X := quotientPoint_t2 (f L) (comm L) (height L)(height L) (height_generator L) (exponent L) (exponent_generator L) (height_surjective L)let : Topology.CWComplex (Set.univ : Set X) :=cwComplexOfT2 ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))let p : E → X := mapPoint (f L) (comm L) (height L)have hp : IsQuotientCoveringMap p (height L).ker :=mapPoint_covering (f L) (comm L) (height L) (height L) (height_generator L)(exponent L) (exponent_generator L) (height_surjective L)have hs : Function.Surjective p := mapPoint_surjective (f L) (comm L) (height L) (height_surjective L)let : PathConnectedSpace X := hs.pathConnectedSpace hp.continuouslet e : E := Classical.choice (inferInstance : Nonempty E)refine ⟨X,inferInstance,inferInstance,inferInstance,?_,inferInstance,p e,?_,E,inferInstance,inferInstance,p,hp.isCoveringMap,hs⟩· intro k hkexact ⟨fun c => Nat.not_lt_of_ge ((c.property.symm ▸ hd c.val.directions c.val.clique)) hk⟩· exact ⟨(hp.fundamentalGroupEquiv ⟨e,rfl⟩).trans (MulEquiv.inv' ((height L).ker)).symm⟩end ArtinCubicalTopology/-- The fixed source group has an ordinary three-dimensional classifying CWspace, with an actually contractible surjective covering. -/theorem source_hasClassifyingSpace_three : HasClassifyingSpace.{0} SourceGroup 3 :=ArtinCubicalTopology.height_hasClassifyingSpace seedGraph 3 SeedConnection.clique_card_le_threeend EilenbergGaneaendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822import OAI.AlgebraicTopology.Cubical.Realizationimport OAI.AlgebraicTopology.Cubical.ArtinChainsimport OAI.Topology.EilenbergGanea.Modelimport OAI.Topology.EilenbergGanea.SeedConnectionimport Mathlib.Topology.Covering.Quotientimport Mathlib.Topology.Covering.Deckimport Mathlib.Topology.Homotopy.Liftingnamespace OAInoncomputable sectionopen Classical Set Topologyopen scoped Quaternionnamespace EilenbergGanea.DescendingCube.Dataopen CubeInterpolationvariable {G A : Type*} [Group G] {f : A → G} (D : Data f)variable [Fintype A]omit [Fintype A] intheorem cellComm (c : D.Cell) : (c.directions : Set A).Pairwise(fun a b => Commute (f a) (f b)) :=fun _ ha _ hb he => D.commute c.top _ _ (c.subset ha) (c.subset hb) heomit [Fintype A] intheorem ones_eq_filter (c : D.Cell) (x : D.Coordinates c) :D.ones c x = c.directions.filter (fun a => D.fullCoord c x a = 1) := byext asimp only [mem_ones,Finset.mem_filter]constructor· rintro ⟨ha,hx⟩exact ⟨ha,by simpa only [fullCoord,dite_eq_left ha] using hx⟩· rintro ⟨ha,hx⟩exact ⟨ha,by simpa only [fullCoord,dite_eq_left ha] using hx⟩omit [Fintype A] intheorem normalize_fullCoord (c : D.Cell) (x : D.Coordinates c) :CubeInterpolation.normalize (D.fullCoord c x) = D.normalizedCoord c x := byfunext aby_cases ha : a ∈ c.directions· simp only [CubeInterpolation.normalize,fullCoord,normalizedCoord,dite_eq_left ha]· simp [CubeInterpolation.normalize,fullCoord,normalizedCoord,ha]def interpolation (p : D.Point) (φ : G → ℝ) : ℝ :=operator f (D.active p) (D.cellComm (D.pointCell p)) p.coord φ p.toptheorem active_characteristic_subset (c : D.Cell) (x : D.Coordinates c) :D.active (D.characteristic c x) ⊆ c.directions := byintro a haby_contra happly ((D.mem_active _ _).mp ha)change D.normalizedCoord c x a = 0simp [normalizedCoord,h]theorem interpolation_characteristic (c : D.Cell) (x : D.Coordinates c) (φ : G → ℝ) :D.interpolation (D.characteristic c x) φ =operator f c.directions (D.cellComm c) (D.fullCoord c x) φ c.top := byhave hsub := D.active_characteristic_subset c xhave he := operator_subset f (D.active (D.characteristic c x)) c.directions(D.cellComm c) hsub (D.normalizedCoord c x) (byintro a _ hnexact not_not.mp (by simpa only [mem_active,characteristic] using hn))have hn := operator_normalize f c.directions (D.cellComm c) (D.fullCoord c x)simp only [normalize_fullCoord,← ones_eq_filter] at hnhave hh := congrArg (fun T : Module.End ℝ (G → ℝ) => T φ c.top) hnrw [Module.End.mul_apply,translation_apply,he] at hhexact hh.symmtheorem interpolation_continuous (φ : G → ℝ) :Continuous (fun p : D.Point => D.interpolation p φ) := byapply D.evaluation_quotient.continuous_iff.mprapply continuous_sigmaintro cchange Continuous (fun x : D.Coordinates c => D.interpolation (D.characteristic c x) φ)simp only [interpolation_characteristic]exact operator_continuous f c.directions _ (D.fullCoord c)(fun a _ => D.fullCoord_continuous c a) φ c.toptheorem interpolation_vertex_pos (p : D.Point) :0 < D.interpolation p (fun a => if a = p.top then 1 else 0) := byapply operator_pos· intro a _; exact ⟨p.nonneg a,p.lt_one a⟩· intro a; split_ifs <;> norm_num· simpomit [Fintype A] intheorem descending_operator_delta_zero (s : Finset A) (g : G) (hs : s ⊆ D.desc g)(x : A → ℝ) (b : G) (hb : D.length g ≤ D.length b) (hne : b ≠ g) :operator f s (fun a ha d hd hne => D.commute g a d (hs ha) (hs hd) hne)x (fun a => if a = b then 1 else 0) g = 0 := byinduction s using Finset.induction_on generalizing g with| empty => simp [operator_empty,hne.symm]| @insert a s ha ih =>have hga := hs (Finset.mem_insert_self a s)have hs0 : s ⊆ D.desc g := fun d hd => hs (Finset.mem_insert_of_mem hd)have hs1 : s ⊆ D.desc (g * f a) := byintro d hdexact D.preserve g a d hga (hs0 hd) (by intro he; exact ha (he ▸ hd))have hd := D.decrease g a hgahave hb1 : D.length (g*f a) ≤ D.length b := by omegahave hne1 : b ≠ g*f a := by intro he; rw [he] at hb; omegahave hc : (↑(insert a s) : Set A).Pairwise (fun a d => Commute (f a) (f d)) :=fun _ ha _ hd hne => D.commute g _ _ (hs ha) (hs hd) hnechange operator f (insert a s) hc x (fun a => if a = b then 1 else 0) g = 0rw [operator_insert f s a ha,Module.End.mul_apply,blend_apply]rw [ih g hs0 hb hne,ih (g*f a) hs1 hb1 hne1]ringtheorem interpolation_vertex_zero (p : D.Point) (b : G)(hb : D.length p.top ≤ D.length b) (hne : b ≠ p.top) :D.interpolation p (fun a => if a = b then 1 else 0) = 0 :=D.descending_operator_delta_zero (D.active p) p.top (D.pointCell p).subset p.coord b hb hnetheorem interpolation_top_eq (p q : D.Point)(he : ∀ φ, D.interpolation p φ = D.interpolation q φ) : p.top = q.top := byhave length_le (p q : D.Point) (he : ∀ φ, D.interpolation p φ = D.interpolation q φ) :D.length q.top ≤ D.length p.top := byby_contra hnhave hlt : D.length p.top < D.length q.top := lt_of_not_ge hnhave hne : q.top ≠ p.top := by intro eq; rw [eq] at hlt; exact lt_irrefl _ hlthave hz := D.interpolation_vertex_zero p q.top hlt.le hnehave hp := D.interpolation_vertex_pos qrw [← he,hz] at hpexact lt_irrefl _ hphave h₁ := length_le p q heby_contra hnehave hz := D.interpolation_vertex_zero q p.top h₁ hnehave hp := D.interpolation_vertex_pos prw [he,hz] at hpexact lt_irrefl _ hpvariable (exponent : A → G →* Multiplicative ℝ)variable (hexponent : ∀ g a, a ∈ D.desc g → ∀ b, b ∈ D.desc g →(exponent a (f b)).toAdd = if a = b then 1 else 0)include hexponent intheorem interpolation_exponent (p : D.Point) (a : A) (ha : a ∈ D.desc p.top) :D.interpolation p (fun g => (exponent a g).toAdd) =(exponent a p.top).toAdd + p.coord a := byrefine (operator_linear f (exponent a) (D.active p)(D.cellComm (D.pointCell p)) p.coord p.top).trans ?_congr 1have he : ∀ b ∈ D.active p, (exponent a (f b)).toAdd = if a = b then 1 else 0 :=fun b hb => hexponent p.top a ha b ((D.pointCell p).subset hb)simp only [Finset.sum_congr rfl (fun b hb => congrArg (fun t : ℝ => p.coord b * t) (he b hb)),mul_ite,mul_one,mul_zero,Finset.sum_ite_eq]by_cases h : p.coord a = 0· simp [h]· simp [mem_active,h]include exponent hexponent intheorem interpolation_injective : Function.Injective(fun p : D.Point => fun φ : G → ℝ => D.interpolation p φ) := byintro p q hehave he' : ∀ φ, D.interpolation p φ = D.interpolation q φ := fun φ => congrFun he φhave hb := D.interpolation_top_eq p q he'apply Point.ext hbfunext aby_cases ha : a ∈ D.desc p.top· have hq : a ∈ D.desc q.top := by simpa only [hb] using hahave hh := he' (fun g => (exponent a g).toAdd)rw [D.interpolation_exponent exponent hexponent p a ha,D.interpolation_exponent exponent hexponent q a hq,hb] at hhexact add_left_cancel hh· have hp : p.coord a = 0 := by_contra (fun hn => ha (p.support a hn))have hq : q.coord a = 0 := byby_contra hnexact ha (by simpa only [hb] using q.support a hn)rw [hp,hq]include exponent hexponent intheorem point_t2 : T2Space D.Point :=T2Space.of_injective_continuous(D.interpolation_injective exponent hexponent)(continuous_pi (fun φ => D.interpolation_continuous φ))end EilenbergGanea.DescendingCube.Dataopen Classical Topologynamespace WeakRealization/-- A homeomorphism is induced by point-separating coordinates and actualcontinuous lifts on each characteristic disk, in both directions. -/def homeomorph {ι κ X Y Z : Type*} {E : ι → Type*} {F : κ → Type*}[TopologicalSpace X] [TopologicalSpace Y][∀ i, TopologicalSpace (E i)] [∀ j, TopologicalSpace (F j)](e : ((i : ι) × E i) → X) (f : ((j : κ) × F j) → Y)(he : IsQuotientMap e) (hf : IsQuotientMap f)(J : X → Z) (K : Y → Z) (hJ : Function.Injective J) (hK : Function.Injective K)(hxy : ∀ i, ∃ φ : C(E i,Y), ∀ t, K (φ t) = J (e ⟨i,t⟩))(hyx : ∀ j, ∃ φ : C(F j,X), ∀ t, J (φ t) = K (f ⟨j,t⟩)) : X ≃ₜ Y := byhave hx : ∀ x, ∃ y, K y = J x := byintro xobtain ⟨⟨i,t⟩,rfl⟩ := he.surjective xobtain ⟨φ,hφ⟩ := hxy iexact ⟨φ t,hφ t⟩have hy : ∀ y, ∃ x, J x = K y := byintro yobtain ⟨⟨j,t⟩,rfl⟩ := hf.surjective yobtain ⟨φ,hφ⟩ := hyx jexact ⟨φ t,hφ t⟩let A : X → Y := fun x => (hx x).chooselet B : Y → X := fun y => (hy y).choosehave hA : ∀ x, K (A x) = J x := fun x => (hx x).choose_spechave hB : ∀ y, J (B y) = K y := fun y => (hy y).choose_specrefine {toEquiv := {toFun := AinvFun := Bleft_inv := fun x => hJ ((hB (A x)).trans (hA x))right_inv := fun y => hK ((hA (B y)).trans (hB y)) }continuous_toFun := ?_continuous_invFun := ?_ }· apply he.continuous_iff.mprapply continuous_sigmaintro iobtain ⟨φ,hφ⟩ := hxy ihave hh : (fun t => A (e ⟨i,t⟩)) = φ := byfunext texact hK ((hA _).trans (hφ t).symm)change Continuous (fun t => A (e ⟨i,t⟩))rw [hh]exact φ.continuous· apply hf.continuous_iff.mprapply continuous_sigmaintro jobtain ⟨φ,hφ⟩ := hyx jhave hh : (fun t => B (f ⟨j,t⟩)) = φ := byfunext texact hJ ((hB _).trans (hφ t).symm)change Continuous (fun t => B (f ⟨j,t⟩))rw [hh]exact φ.continuousend WeakRealizationnamespace EilenbergGanea.CubeInterpolationopen CubicalChains.Reorientationvariable {G V : Type*} [Group G]/-- Interpolation in a listed cube, independent of any topological model. -/def listed (f : V → G) (w : List V) (x : V → ℝ) : Module.End ℝ (G → ℝ) :=(w.map (fun v => blend (f v) (x v))).prod@[simp] theorem listed_nil (f : V → G) (x : V → ℝ) : listed f [] x = 1 := rfl@[simp] theorem listed_cons (f : V → G) (v : V) (w : List V) (x : V → ℝ) :listed f (v::w) x = blend (f v) (x v) * listed f w x := rfltheorem operator_listed [DecidableEq V] (f : V → G) (w : List V) (hw : w.Nodup)(hc : (w.toFinset : Set V).Pairwise (fun v u => Commute (f v) (f u))) (x : V → ℝ) :operator f w.toFinset hc x = listed f w x :=Finset.noncommProd_toFinset w _ _ hw/-- Literal multilinear invariance under reversing selected cube directions. -/theorem listed_reorientation (f : V → G) (w : List (Signed V))(hw : w.Pairwise (fun a b => Commute (f a.1) (f b.1)))(x : Signed V → ℝ) (z : V → ℝ)(hx : ∀ a ∈ w, x a = if a.2 then 1-z a.1 else z a.1) (φ : G → ℝ) (g : G) :listed (step f) w x φ g = listed f (w.map Prod.fst) z φ (origin f g w) := byinduction w generalizing g with| nil => rfl| cons a w ih =>obtain ⟨ha,hw⟩ := List.pairwise_cons.mp hwhave hxw : ∀ b ∈ w, x b = if b.2 then 1-z b.1 else z b.1 :=fun b hb => hx b (by simp [hb])simp only [listed_cons,List.map_cons,Module.End.mul_apply,blend_apply,ih hw hxw,hx a (by simp),step,origin]cases hb : a.2· simp only [Bool.false_eq_true,↓reduceIte]rw [origin_shift f g (f a.1) w ha]· simp only [↓reduceIte]rw [origin_shift f g (f a.1)⁻¹ w (fun b hb => (ha b hb).inv_left),inv_mul_cancel_right]ringend EilenbergGanea.CubeInterpolationnamespace EilenbergGanea.ArtinCubicalTopologyopen TraceWords CubeInterpolation CubicalChains.Reorientationvariable {V : Type*} [Fintype V] (L : SimpleGraph V)local instance : Std.Symm L.Adj := ⟨fun _ _ h => h.symm⟩local instance : Std.Irrefl L.Adj := ⟨fun _ => L.irrefl⟩abbrev f := artinGenerator Labbrev comm := fun v w h => adjacent_generators_commute L (v := v) (w := w) habbrev D := artinDescendingData Labbrev Positive := CubeRealization.Point L (f L) (comm L)abbrev Descending := (D L).Pointomit [Fintype V] in@[simp] theorem step_eq (a : Letter V) : step (f L) a = letterValue (f L) (invLetter a) := bycases a with | mk v b => cases b <;> rfldef exponent (v : V) : ArtinGroup L →* Multiplicative ℝ :=artinLift L (fun w => Multiplicative.ofAdd (if v = w then (1 : ℝ) else 0))(fun _ _ _ => Commute.all _ _)omit [Fintype V] in@[simp] theorem exponent_generator (v w : V) :(exponent L v (f L w)).toAdd = if v = w then 1 else 0 := bysimp [exponent,f]omit [Fintype V] in@[simp] theorem height_generator (v : V) : (height L (f L v)).toAdd = 1 := byexact congrArg Multiplicative.toAdd (PresentedGroup.toGroup.of _)def signedExponent (a : Letter V) : ArtinGroup L →* Multiplicative ℝ :=artinLift L (fun v => Multiplicative.ofAdd(if a.1 = v then (if a.2 then (-1 : ℝ) else 1) else 0))(fun _ _ _ => Commute.all _ _)theorem signedExponent_step (g : ArtinGroup L) (a : Letter V) (ha : a ∈ (D L).desc g)(b : Letter V) (hb : b ∈ (D L).desc g) :(signedExponent L a (letterValue (f L) (invLetter b))).toAdd = if a = b then 1 else 0 := byby_cases he : a = b· subst brcases a with ⟨v,b⟩cases b <;> simp [signedExponent,letterValue,invLetter,f]· have hi : Independent L a b := rightDescents_pairwise L g(by simpa [D,artinDescendingData] using ha) (by simpa [D,artinDescendingData] using hb) hehave hv : a.1 ≠ b.1 := hi.nercases b with ⟨v,b⟩cases b <;> simp [signedExponent,letterValue,invLetter,f,hv,he]theorem positive_interp_inj : Function.Injective(fun p : Positive L => fun φ => CubeRealization.interpolation L (f L) (comm L) p φ) :=CubeRealization.interpolation_injective L (f L) (comm L) (height L) (height_generator L)(exponent L) (exponent_generator L)theorem descending_interp_inj : Function.Injective(fun p : Descending L => fun φ => (D L).interpolation p φ) :=(D L).interpolation_injective (signedExponent L) (byintro g a ha b hbby_cases he : a = b <;> simpa [he] using signedExponent_step L g a ha b hb)def flip (b : Bool) (t : unitInterval) : unitInterval :=if b then unitInterval.symm t else t@[simp] theorem flip_flip (b : Bool) (t : unitInterval) : flip b (flip b t) = t := bycases b <;> simp [flip]theorem flip_continuous (b : Bool) : Continuous (flip b) := bycases b· exact continuous_id· exact unitInterval.continuous_symmdef vertexEquiv (w : Word V) (hw : (w.map Prod.fst).Nodup) :w.toFinset ≃ (w.map Prod.fst).toFinset :=Equiv.ofBijective (fun a => ⟨a.val.1,byexact List.mem_toFinset.mpr (List.mem_map.mpr ⟨a.val,List.mem_toFinset.mp a.property,rfl⟩)⟩) (byconstructor· intro a b heapply Subtype.extexact (List.nodup_map_iff_inj_on (hw.of_map Prod.fst)).mp hwa.val (List.mem_toFinset.mp a.property) b.val (List.mem_toFinset.mp b.property) (congrArg Subtype.val he)· intro vobtain ⟨a,ha,he⟩ := List.mem_map.mp (List.mem_toFinset.mp v.property)exact ⟨⟨a,by simpa using ha⟩,Subtype.ext he⟩)omit [Fintype V] in@[simp] theorem vertexEquiv_val (w : Word V) (hw : (w.map Prod.fst).Nodup)(a : w.toFinset) : (vertexEquiv w hw a).val = a.val.1 := rfldef toPositiveCoords (w : Word V) (hw : (w.map Prod.fst).Nodup)(x : w.toFinset → unitInterval) : (w.map Prod.fst).toFinset → unitInterval :=fun v => flip ((vertexEquiv w hw).symm v).val.2 (x ((vertexEquiv w hw).symm v))omit [Fintype V] in@[simp] theorem toPositiveCoords_apply (w : Word V) (hw : (w.map Prod.fst).Nodup)(x : w.toFinset → unitInterval) (a : w.toFinset) :toPositiveCoords w hw x (vertexEquiv w hw a) = flip a.val.2 (x a) := bysimp [toPositiveCoords]omit [Fintype V] intheorem toPositiveCoords_continuous (w : Word V) (hw : (w.map Prod.fst).Nodup) :Continuous (toPositiveCoords w hw) :=continuous_pi (fun _ => (flip_continuous _).comp (continuous_apply _))def toDescendingCoords (w : Word V) (hw : (w.map Prod.fst).Nodup)(z : (w.map Prod.fst).toFinset → unitInterval) : w.toFinset → unitInterval :=fun a => flip a.val.2 (z (vertexEquiv w hw a))omit [Fintype V] intheorem toDescendingCoords_continuous (w : Word V) (hw : (w.map Prod.fst).Nodup) :Continuous (toDescendingCoords w hw) :=continuous_pi (fun _ => (flip_continuous _).comp (continuous_apply _))omit [Fintype V] in@[simp] theorem toPositive_toDescending (w : Word V) (hw : (w.map Prod.fst).Nodup)(z : (w.map Prod.fst).toFinset → unitInterval) :toPositiveCoords w hw (toDescendingCoords w hw z) = z := byfunext vobtain ⟨a,rfl⟩ := (vertexEquiv w hw).surjective vsimp [toDescendingCoords]def positiveCell (g : ArtinGroup L) (w : Word V) (hw : (w.map Prod.fst).Pairwise L.Adj) :CubeRealization.Cell (G := ArtinGroup L) L wherebase := origin (f L) g wdirections := (w.map Prod.fst).toFinsetclique := fun _ ha _ hb he => hw.forall (List.mem_toFinset.mp ha) (List.mem_toFinset.mp hb) hedef descendingCell (g : ArtinGroup L) (w : Word V)(hd : ∀ a ∈ w, a ∈ rightDescents L g) : (D L).Cell wheretop := gdirections := w.toFinsetsubset a ha := by simpa [D,artinDescendingData] using hd a (List.mem_toFinset.mp ha)theorem interpolation_reorientation (g : ArtinGroup L) (w : Word V)(hw : (w.map Prod.fst).Pairwise L.Adj) (hd : ∀ a ∈ w, a ∈ rightDescents L g)(x : (D L).Coordinates (descendingCell L g w hd)) (φ : ArtinGroup L → ℝ) :(D L).interpolation ((D L).characteristic (descendingCell L g w hd) x) φ =CubeRealization.interpolation L (f L) (comm L)(CubeRealization.characteristic (f L) (comm L) (positiveCell L g w hw)(toPositiveCoords w hw.nodup x)) φ := byrefine ((D L).interpolation_characteristic (descendingCell L g w hd) x φ).trans ?_refine Eq.trans ?_ (CubeRealization.interpolation_characteristic L (f L) (comm L)(positiveCell L g w hw) (toPositiveCoords w hw.nodup x) φ).symmhave hf : (fun a : Letter V => letterValue (artinGenerator L) (invLetter a)) = step (f L) :=funext (fun a => (step_eq L a).symm)erw [operator_listed _ w (hw.nodup.of_map Prod.fst),operator_listed _ _ hw.nodup]have hop := congrArg (fun k : Letter V → ArtinGroup L => listed k w) hfrw [hop]apply listed_reorientation· exact (List.pairwise_map.mp hw).imp (fun hh => adjacent_generators_commute L hh)· intro a halet aa : w.toFinset := ⟨a,by simpa using ha⟩have h₁ : (D L).fullCoord (descendingCell L g w hd) x a = (x aa : ℝ) := byexact (D L).fullCoord_mem (descendingCell L g w hd) x aahave h₂ : CubeRealization.fullCoord (positiveCell L g w hw)(toPositiveCoords w hw.nodup x) a.1 = (flip a.2 (x aa) : ℝ) := byhave hh := CubeRealization.fullCoord_mem (positiveCell L g w hw)(toPositiveCoords w hw.nodup x) (vertexEquiv w hw.nodup aa)exact hh.trans (congrArg (fun z : unitInterval => (z : ℝ))(toPositiveCoords_apply w hw.nodup x aa))rw [h₁,h₂]cases h : a.2 <;> simp [flip]theorem descendingCell_rep (c : (D L).Cell) :∃ (g : ArtinGroup L) (w : Word V) (_hw : (w.map Prod.fst).Pairwise L.Adj)(hd : ∀ a ∈ w, a ∈ rightDescents L g), descendingCell L g w hd = c := bylet w := c.directions.toListhave hd : ∀ a ∈ w, a ∈ rightDescents L c.top := byintro a hahave hh := c.subset (Finset.mem_toList.mp ha)simpa [D,artinDescendingData] using hhhave hw : (w.map Prod.fst).Pairwise L.Adj := byapply List.pairwise_map.mprapply c.directions.nodup_toList.pairwise_of_forall_neintro a ha b hb heexact rightDescents_pairwise L c.top (hd a ha) (hd b hb) herefine ⟨c.top,w,hw,hd,?_⟩cases c with| mk g s hs =>dsimp only [descendingCell,w]congrexact s.toList_toFinsetomit [Fintype V] intheorem positiveCell_rep (c : CubeRealization.Cell (G := ArtinGroup L) L) :∃ (g : ArtinGroup L) (w : Word V) (hw : (w.map Prod.fst).Pairwise L.Adj)(_hd : ∀ a ∈ w, a ∈ rightDescents L g), positiveCell L g w hw = c := bylet v := c.directions.toListhave hv : v.Pairwise L.Adj := c.directions.nodup_toList.pairwise_of_forall_ne(fun a ha b hb he => c.clique (Finset.mem_toList.mp ha) (Finset.mem_toList.mp hb) he)let o := CubeDescents.orient L c.base vhave hw : (o.2.map Prod.fst).Pairwise L.Adj := bysimpa only [o,CubeDescents.orient_map] using hvhave hd : ∀ a ∈ o.2, a ∈ rightDescents L o.1 := CubeDescents.orient_descents L c.base v hvrefine ⟨o.1,o.2,hw,hd,?_⟩have hb : origin (f L) o.1 o.2 = c.base := CubeDescents.origin_orient L c.base v hvhave hs : (o.2.map Prod.fst).toFinset = c.directions := bysimp only [o,CubeDescents.orient_map,v,Finset.toList_toFinset]cases c with| mk g s hc =>change CubeRealization.Cell.mk (origin (f L) o.1 o.2) (o.2.map Prod.fst).toFinset _ = _congrtheorem descending_local_lift (c : (D L).Cell) :∃ φ : C((D L).Coordinates c,Positive L), ∀ x,(fun ψ => CubeRealization.interpolation L (f L) (comm L) (φ x) ψ) =(fun ψ => (D L).interpolation ((D L).characteristic c x) ψ) := byobtain ⟨g,w,hw,hd,rfl⟩ := descendingCell_rep L crefine ⟨⟨fun x => CubeRealization.characteristic (f L) (comm L) (positiveCell L g w hw)(toPositiveCoords w hw.nodup x),(CubeRealization.characteristic_continuous (f L) (comm L) (positiveCell L g w hw)).comp(toPositiveCoords_continuous w hw.nodup)⟩,?_⟩intro xfunext ψexact (interpolation_reorientation L g w hw hd x ψ).symmtheorem positive_local_lift (c : CubeRealization.Cell (G := ArtinGroup L) L) :∃ φ : C(CubeRealization.Coordinates c,Descending L), ∀ x,(fun ψ => (D L).interpolation (φ x) ψ) =(fun ψ => CubeRealization.interpolation L (f L) (comm L)(CubeRealization.characteristic (f L) (comm L) c x) ψ) := byobtain ⟨g,w,hw,hd,rfl⟩ := positiveCell_rep L crefine ⟨⟨fun x => (D L).characteristic (descendingCell L g w hd) (toDescendingCoords w hw.nodup x),((D L).characteristic_continuous (descendingCell L g w hd)).comp(toDescendingCoords_continuous w hw.nodup)⟩,?_⟩intro xfunext ψchange (D L).interpolation ((D L).characteristic (descendingCell L g w hd)(toDescendingCoords w hw.nodup x)) ψ = _change (w.map Prod.fst).toFinset → unitInterval at xsimpa only [toPositive_toDescending] using interpolation_reorientation L g w hw hd(toDescendingCoords w hw.nodup x) ψ/-- Reorientation preserves the actual weak topologies, not only cellular chains. -/def reorient : Descending L ≃ₜ Positive L :=WeakRealization.homeomorph (D L).evaluation (CubeRealization.evaluation (f L) (comm L))(D L).evaluation_quotient (CubeRealization.evaluation_quotient (f L) (comm L))(fun p ψ => (D L).interpolation p ψ)(fun p ψ => CubeRealization.interpolation L (f L) (comm L) p ψ)(descending_interp_inj L) (positive_interp_inj L)(descending_local_lift L) (positive_local_lift L)variable [Nonempty V]/-- The ordinary positive-cube CW realization is genuinely contractible. -/theorem positive_contractible : ContractibleSpace (Positive L) := bylet : ContractibleSpace (Descending L) := artinDescending_contractible Lexact (reorient L).symm.contractibleSpaceend EilenbergGanea.ArtinCubicalTopologyopen Classical Set Topologynamespace CompactChart/-- A characteristic map which has singleton fibers over its open cell has acontinuous inverse there. Compactness is used only on the closed disk; noregularity of the attaching sphere is required. -/theorem continuousOn_symm {A X : Type*} [TopologicalSpace A] [TopologicalSpace X][T2Space X] (e : PartialEquiv A X) (K : Set A) (hK : IsCompact K)(hsub : e.source ⊆ K) (hc : ContinuousOn e K)(hboundary : ∀ a ∈ K, e a ∈ e.target → a ∈ e.source) :ContinuousOn e.symm e.target := bylet : CompactSpace K := isCompact_iff_compactSpace.mp hKlet f : K → X := fun a => e ahave hf : Continuous f := continuousOn_iff_continuous_domRestrict.mp hclet r := e.target.restrictPreimage fhave hr : Function.Surjective r := byintro xrefine ⟨⟨⟨e.symm x,hsub (e.map_target x.property)⟩,?_⟩,?_⟩· change e (e.symm x) ∈ e.targetrw [e.right_inv x.property]exact x.property· exact Subtype.ext (e.right_inv x.property)have hq : IsQuotientMap r :=(hf.isClosedMap.restrictPreimage e.target).isQuotientMap hf.restrictPreimage hrapply continuousOn_iff_continuous_domRestrict.mprapply hq.continuous_iff.mprhave he : (fun x : e.target => e.symm x) ∘ r =(fun a : f ⁻¹' e.target => (a.val.val : A)) := byfunext aexact e.left_inv (hboundary a.val a.val.property a.property)change Continuous ((fun x : e.target => e.symm x) ∘ r)rw [he]exact continuous_subtype_val.comp continuous_subtype_valend CompactChartnamespace EilenbergGanea.CubeRealizationsectionopen Metricvariable {G V : Type*} [Group G] [Fintype V]variable {L : SimpleGraph V} (f : V → G)variable (comm : ∀ v w, L.Adj v w → Commute (f v) (f w))theorem chartInverse_continuousOn_of_t2 [T2Space (Point (G := G) L f comm)]{n : ℕ} (c : DimCell (G := G) (L := L) n) :ContinuousOn (chart f comm c).symm (chart f comm c).target := byapply CompactChart.continuousOn_symm (chart f comm c) (closedBall 0 1)(isCompact_closedBall _ _) ball_subset_closedBall (chart_continuous f comm c).continuousOnintro t ht hechange pointCell (chart f comm c t) = c.val at hechange t ∈ ball 0 1by_contra hnhave hs : t ∈ sphere 0 1 := mem_sphere.mpr(le_antisymm (mem_closedBall.mp ht) (le_of_not_gt hn))have hd := boundary_dimension_lt f comm c hsrw [he,c.property] at hdexact (lt_irrefl _) hd/-- The ordinary CW structure follows from the genuine normalized-cube gluing;only Hausdorffness and compact characteristic disks are used. -/@[instance_reducible] def cwComplexOfT2 [T2Space (Point (G := G) L f comm)] : CWComplex (univ : Set (Point (G := G) L f comm)) wherecell := DimCell (G := G) (L := L)map := fun _ c => chart f comm csource_eq := fun _ _ => rflcontinuousOn := fun _ c => (chart_continuous f comm c).continuousOncontinuousOn_symm := fun _ c => chartInverse_continuousOn_of_t2 f comm cpairwiseDisjoint' := byintro a _ b _ habchange Disjoint (chart f comm a.2 '' ball 0 1) (chart f comm b.2 '' ball 0 1)rw [chart_image_ball,chart_image_ball]apply Set.disjoint_left.mprintro p ha hbapply habhave he : a.2.val = b.2.val := ha.symm.trans hbhave hn : a.1 = b.1 := a.2.property.symm.trans ((congrArg (fun c => c.directions.card) he).trans b.2.property)cases a with | mk n a =>cases b with | mk m b =>dsimp at hnsubst mexact congrArg (Sigma.mk n) (Subtype.ext he)mapsTo' := chart_mapsTo f commclosed' := byintro A _ hAapply (evaluation_quotient f comm).isClosed_preimage.mprw [isClosed_sigma_iff]intro clet d : DimCell (G := G) (L := L) c.directions.card := ⟨c,rfl⟩have hh := (hA _ d).preimage (characteristic_continuous f comm c)rw [chart_image_disk] at hhchange IsClosed (characteristic f comm c ⁻¹' (A ∩ Set.range (characteristic f comm c))) at hhchange IsClosed (characteristic f comm c ⁻¹' A)simpa only [Set.preimage_inter,Set.preimage_range,Set.inter_univ] using hhunion' := byapply Set.eq_univ_of_forallintro plet d : DimCell (G := G) (L := L) (pointCell p).directions.card := ⟨pointCell p,rfl⟩apply Set.mem_iUnion.mprrefine ⟨_,Set.mem_iUnion.mpr ⟨d,?_⟩⟩rw [chart_image_disk]exact ⟨pointCoordinates p,characteristic_point f comm p⟩endvariable {G Q V : Type*} [Group G] [Group Q] [Fintype V]variable {L : SimpleGraph V} (f : V → G)variable (comm : ∀ v w, L.Adj v w → Commute (f v) (f w))variable (q : G →* Q)include comm inomit [Fintype V] intheorem mappedComm : ∀ v w, L.Adj v w → Commute ((q ∘ f) v) ((q ∘ f) w) :=fun v w hvw => (comm v w hvw).map q/-- Applying a group homomorphism only to the initial vertices of cubes. -/def mapPoint (p : Point (G := G) L f comm) : Point (G := Q) L (q ∘ f) (mappedComm f comm q) wherebase := q p.basecoord := p.coordnonneg := p.nonneglt_one := p.lt_oneclique := p.cliquedef mapCell (c : Cell (G := G) L) : Cell (G := Q) L wherebase := q c.basedirections := c.directionsclique := c.cliqueomit [Fintype V] in@[simp] theorem mapPoint_base (p : Point (G := G) L f comm) :(mapPoint f comm q p).base = q p.base := rflomit [Fintype V] in@[simp] theorem mapPoint_coord (p : Point (G := G) L f comm) :(mapPoint f comm q p).coord = p.coord := rflomit [Fintype V] in@[simp] theorem mapPoint_characteristic (c : Cell (G := G) L) (x : Coordinates c) :mapPoint f comm q (characteristic f comm c x) =characteristic (q ∘ f) (mappedComm f comm q) (mapCell q c) x := byapply Point.ext· change q (c.base * product f comm (ones c x) _) =q c.base * product (q ∘ f) (mappedComm f comm q) (ones c x) _rw [map_mul]congr 1exact Finset.map_noncommProd _ _ _ q· rfltheorem mapPoint_continuous : Continuous (mapPoint f comm q) := byapply (evaluation_quotient f comm).continuous_iff.mprapply continuous_sigmaintro cchange Continuous (fun x => mapPoint f comm q (characteristic f comm c x))simp only [mapPoint_characteristic]exact characteristic_continuous (q ∘ f) (mappedComm f comm q) (mapCell q c)omit [Fintype V] intheorem mapCell_surjective (hq : Function.Surjective q) : Function.Surjective (mapCell (L := L) q) := byrintro ⟨a,s,hs⟩obtain ⟨g,rfl⟩ := hq aexact ⟨⟨g,s,hs⟩,rfl⟩omit [Fintype V] intheorem mapPoint_surjective (hq : Function.Surjective q) : Function.Surjective (mapPoint f comm q) := byrintro ⟨a,x,hx,ht,hc⟩obtain ⟨g,rfl⟩ := hq aexact ⟨⟨g,x,hx,ht,hc⟩,rfl⟩/-- The base-label quotient is a genuine topological quotient for the weakcubical topologies, proved by lifting each actual characteristic disk. -/theorem mapPoint_quotient (hq : Function.Surjective q) : IsQuotientMap (mapPoint f comm q) := byapply isQuotientMap_iff_isClosed.mprrefine ⟨mapPoint_surjective f comm q hq,?_⟩intro Aconstructor· exact fun hA => hA.preimage (mapPoint_continuous f comm q)· intro hAapply (evaluation_quotient (q ∘ f) (mappedComm f comm q)).isClosed_preimage.mprw [isClosed_sigma_iff]intro cobtain ⟨d,rfl⟩ := mapCell_surjective q hq chave hh := hA.preimage (characteristic_continuous f comm d)change IsClosed ((fun x => mapPoint f comm q (characteristic f comm d x)) ⁻¹' A) at hhchange IsClosed ((fun x : Coordinates d =>characteristic (q ∘ f) (mappedComm f comm q) (mapCell q d) x) ⁻¹' A)simpa only [mapPoint_characteristic] using hhomit [Fintype V] in/-- The literal group-kernel orbits are exactly the fibers of the cube map. -/theorem mapPoint_eq_iff_orbit (p r : Point (G := G) L f comm) :mapPoint f comm q p = mapPoint f comm q r ↔ p ∈ MulAction.orbit q.ker r := byconstructor· intro hehave hb : q p.base = q r.base := congrArg Point.base hehave hx : p.coord = r.coord := congrArg (fun z : Point (G := Q) L (q ∘ f)(mappedComm f comm q) => z.coord) helet g : q.ker := ⟨p.base * r.base⁻¹,by simp only [MonoidHom.mem_ker,map_mul,map_inv,hb,mul_inv_cancel]⟩refine ⟨g,?_⟩apply Point.ext· change (p.base * r.base⁻¹) * r.base = p.basesimp [mul_assoc]· exact hx.symm· rintro ⟨g,rfl⟩apply Point.ext· change q ((g : G) * r.base) = q r.baserw [map_mul,g.property,one_mul]· rfl/-- The quotient homeomorphism respects the actual weak topologies. -/def kernelQuotientHomeomorph (hq : Function.Surjective q) :Quotient (MulAction.orbitRel q.ker (Point (G := G) L f comm)) ≃ₜPoint (G := Q) L (q ∘ f) (mappedComm f comm q) :=(Homeomorph.Quotient.congrRight (fun p r => (mapPoint_eq_iff_orbit f comm q p r).symm)).trans(Topology.IsQuotientMap.homeomorph (f := ⟨mapPoint f comm q,mapPoint_continuous f comm q⟩)(mapPoint_quotient f comm q hq))variable (h : G →* Multiplicative ℤ) (hf : ∀ v, (h (f v)).toAdd = 1)variable (exponent : V → G →* Multiplicative ℝ)variable (hexponent : ∀ v w, (exponent v (f w)).toAdd = if v = w then 1 else 0)include h hf exponent hexponent intheorem quotientPoint_t2 (hq : Function.Surjective q) :T2Space (Point (G := Q) L (q ∘ f) (mappedComm f comm q)) := bylet := point_t2 L f comm h hf exponent hexponentlet := point_weaklyLocallyCompact L f commexact (kernelQuotientHomeomorph f comm q hq).t2Spaceinclude h hf exponent hexponent intheorem mapPoint_covering (hq : Function.Surjective q) :IsQuotientCoveringMap (mapPoint f comm q) q.ker wheretoIsQuotientMap := mapPoint_quotient f comm q hqcontinuous_const_smul := continuous_const_smulapply_eq_iff_mem_orbit := mapPoint_eq_iff_orbit f comm q _ _disjoint := (subgroup_quotient_covering f comm h hf exponent hexponent q.ker).disjointend EilenbergGanea.CubeRealizationnamespace EilenbergGaneauniverse unamespace ArtinCubicalTopologyopen CubeRealizationvariable {V : Type u} [Fintype V] [Nonempty V] (L : SimpleGraph V)omit [Fintype V] intheorem height_surjective : Function.Surjective (height L) := byintro nlet v : V := Classical.choice inferInstancerefine ⟨f L v ^ n.toAdd,?_⟩rw [map_zpow]apply Multiplicative.toAdd.injectivechange n.toAdd • (height L (f L v)).toAdd = n.toAddsimp only [height_generator,zsmul_eq_mul,mul_one,Int.cast_id]def HeightQuotient := Point L ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))instance : TopologicalSpace (HeightQuotient L) := inferInstanceAs (TopologicalSpace(Point L ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))))/-- An ordinary cubical classifying space for the height kernel, with one cubefor every integral level and clique. Contractibility above is the explicitword-length contraction, and the fundamental-group identification reusesMathlib's checked covering-monodromy equivalence. -/theorem height_hasClassifyingSpace (d : ℕ)(hd : ∀ s : Finset V, (s : Set V).Pairwise L.Adj → s.card ≤ d) :HasClassifyingSpace.{u} (height L).ker d := bylet X := Point L ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))let E := Positive Llet : ContractibleSpace E := positive_contractible Llet : T2Space X := quotientPoint_t2 (f L) (comm L) (height L)(height L) (height_generator L) (exponent L) (exponent_generator L) (height_surjective L)let : Topology.CWComplex (Set.univ : Set X) :=cwComplexOfT2 ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))let p : E → X := mapPoint (f L) (comm L) (height L)have hp : IsQuotientCoveringMap p (height L).ker :=mapPoint_covering (f L) (comm L) (height L) (height L) (height_generator L)(exponent L) (exponent_generator L) (height_surjective L)have hs : Function.Surjective p := mapPoint_surjective (f L) (comm L) (height L) (height_surjective L)let : PathConnectedSpace X := hs.pathConnectedSpace hp.continuouslet e : E := Classical.choice (inferInstance : Nonempty E)refine ⟨X,inferInstance,inferInstance,inferInstance,?_,inferInstance,p e,?_,E,inferInstance,inferInstance,p,hp.isCoveringMap,hs⟩· intro k hkexact ⟨fun c => Nat.not_lt_of_ge ((c.property.symm ▸ hd c.val.directions c.val.clique)) hk⟩· exact ⟨(hp.fundamentalGroupEquiv ⟨e,rfl⟩).trans (MulEquiv.inv' ((height L).ker)).symm⟩end ArtinCubicalTopology/-- The fixed source group has an ordinary three-dimensional classifying CWspace, with an actually contractible surjective covering. -/theorem source_hasClassifyingSpace_three : HasClassifyingSpace.{0} SourceGroup 3 :=ArtinCubicalTopology.height_hasClassifyingSpace seedGraph 3 SeedConnection.clique_card_le_threeend EilenbergGaneaendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115import OAI.Topology.EilenbergGanea.SeedContractionimport OAI.Topology.EilenbergGanea.LevelBasisimport OAI.Topology.EilenbergGanea.CliqueCohomologynamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiffnamespace EilenbergGanea.SeedEncoding@[simp] theorem cellEquiv_symm_apply (i : Fin 103) : cellEquiv.symm i = cellAt i := rflend EilenbergGanea.SeedEncodingnamespace EilenbergGaneanoncomputable abbrev sourceVertexOrder : LinearOrder SeedCell :=LinearOrder.lift' SeedEncoding.cellEquiv SeedEncoding.cellEquiv.injectivelocal instance : LinearOrder SeedCell := sourceVertexOrderlocal instance : Preorder SeedCell := sourceVertexOrder.toPartialOrder.toPreorderlocal instance : LT SeedCell := sourceVertexOrder.toLTlocal instance : LE SeedCell := sourceVertexOrder.toLE@[simp] theorem sourceVertexOrder_lt (a b : SeedCell) :a < b ↔ SeedEncoding.cellEquiv a < SeedEncoding.cellEquiv b := Iff.rfltheorem source_valid_to_index (w : List SeedCell) (hw : SimplicialChains.Valid seedGraph w) :SimplicialChains.Valid SeedChainCertificate.graph (w.map SeedEncoding.cellEquiv) := byconstructor· rw [List.pairwise_map]exact hw.1· rw [List.pairwise_map]simpa only [SeedChainCertificate.graph,SimpleGraph.comap_adj,← SeedEncoding.cellEquiv_symm_apply,Equiv.symm_apply_apply] using hw.2theorem index_valid_to_source (w : List (Fin 103))(hw : SimplicialChains.Valid SeedChainCertificate.graph w) :SimplicialChains.Valid seedGraph (w.map SeedEncoding.cellEquiv.symm) := byconstructor· rw [List.pairwise_map]simpa only [sourceVertexOrder_lt,Equiv.apply_symm_apply] using hw.1· rw [List.pairwise_map]exact hw.2/-- Relabeling uses the original seed graph and merely chooses an order on itsvertices for the signed integral chain convention. -/noncomputable def sourceLinkContraction (K : SimplicialChains.Contraction SeedChainCertificate.graph) :SimplicialChains.Contraction seedGraph :=K.reindex SeedEncoding.cellEquiv.symm (index_valid_to_source) (source_valid_to_index)end EilenbergGaneanamespace EilenbergGanealocal instance : LinearOrder SeedCell := sourceVertexOrderlocal instance : Preorder SeedCell := sourceVertexOrder.toPartialOrder.toPreorderlocal instance : LT SeedCell := sourceVertexOrder.toLTlocal instance : LE SeedCell := sourceVertexOrder.toLEtheorem source_valid_length_le (w : List SeedCell) (hw : SimplicialChains.Valid seedGraph w) :w.length ≤ 3 := bysimpa only [List.length_map] usingSeedChainCertificate.valid_length_le (w.map SeedEncoding.cellEquiv) (source_valid_to_index w hw)theorem source_cd_eq_two_of_contraction(K : SimplicialChains.Contraction SeedChainCertificate.graph) :cohomologicalDimension SourceGroup = 2 := byapply le_antisymm· exact LevelBasis.artin_height_kernel_cd_le_two seedGraph seedBase seed_connected.preconnected(sourceLinkContraction K) source_valid_length_le· exact source_two_le_cohomologicalDimension/-- The exact remaining geometric interface is not limited to finite orcountable presentations. This endpoint excludes any ordinary presentationwhose actual integral equivariant cellular boundaries freely span cycles. -/theorem source_no_boundary_basis_of_contraction(K : SimplicialChains.Contraction SeedChainCertificate.graph){A R : Type*} (a₀ : A → SourceGroup)(ha₀ : Function.Surjective (wordValue a₀))(r₀ : R → FreeGroup A) (hr₀ : ∀ i, wordValue a₀ (r₀ i) = 1)(hp₀ : (wordValue a₀).ker = Subgroup.normalClosure (Set.range r₀))(E : BasedChains SourceGroup R ≃ₗ[ℤ] cycles a₀)(hE : ∀ c, (E c : BasedChains SourceGroup A) = relatorChainMap a₀ r₀ c) : False := bylet : Group.ResiduallyFinite SourceGroup := source_residuallyFiniteexact LevelBasis.no_boundary_basis_presentation seedGraph seedBase seed_connected.preconnected(sourceLinkContraction K) source_valid_length_le SourceTransport.source_small_labelsa₀ ha₀ r₀ hr₀ hp₀ E hEend EilenbergGaneanamespace EilenbergGanea/-- Literal integral cohomological dimension of the source's fixed group. -/theorem source_cohomologicalDimension : cohomologicalDimension SourceGroup = 2 :=source_cd_eq_two_of_contraction SeedChainCertificate.contraction/-- No arbitrary-alphabet genuine presentation has its relators as an integralbasis of Cayley cycles. -/theorem source_no_boundary_basis{A R : Type*} (a₀ : A → SourceGroup)(ha₀ : Function.Surjective (wordValue a₀))(r₀ : R → FreeGroup A) (hr₀ : ∀ i, wordValue a₀ (r₀ i) = 1)(hp₀ : (wordValue a₀).ker = Subgroup.normalClosure (Set.range r₀))(E : BasedChains SourceGroup R ≃ₗ[ℤ] cycles a₀)(hE : ∀ c, (E c : BasedChains SourceGroup A) = relatorChainMap a₀ r₀ c) : False :=source_no_boundary_basis_of_contraction SeedChainCertificate.contractiona₀ ha₀ r₀ hr₀ hp₀ E hEend EilenbergGaneaendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115import OAI.Topology.EilenbergGanea.SeedContractionimport OAI.Topology.EilenbergGanea.LevelBasisimport OAI.Topology.EilenbergGanea.CliqueCohomologynamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiffnamespace EilenbergGanea.SeedEncoding@[simp] theorem cellEquiv_symm_apply (i : Fin 103) : cellEquiv.symm i = cellAt i := rflend EilenbergGanea.SeedEncodingnamespace EilenbergGaneanoncomputable abbrev sourceVertexOrder : LinearOrder SeedCell :=LinearOrder.lift' SeedEncoding.cellEquiv SeedEncoding.cellEquiv.injectivelocal instance : LinearOrder SeedCell := sourceVertexOrderlocal instance : Preorder SeedCell := sourceVertexOrder.toPartialOrder.toPreorderlocal instance : LT SeedCell := sourceVertexOrder.toLTlocal instance : LE SeedCell := sourceVertexOrder.toLE@[simp] theorem sourceVertexOrder_lt (a b : SeedCell) :a < b ↔ SeedEncoding.cellEquiv a < SeedEncoding.cellEquiv b := Iff.rfltheorem source_valid_to_index (w : List SeedCell) (hw : SimplicialChains.Valid seedGraph w) :SimplicialChains.Valid SeedChainCertificate.graph (w.map SeedEncoding.cellEquiv) := byconstructor· rw [List.pairwise_map]exact hw.1· rw [List.pairwise_map]simpa only [SeedChainCertificate.graph,SimpleGraph.comap_adj,← SeedEncoding.cellEquiv_symm_apply,Equiv.symm_apply_apply] using hw.2theorem index_valid_to_source (w : List (Fin 103))(hw : SimplicialChains.Valid SeedChainCertificate.graph w) :SimplicialChains.Valid seedGraph (w.map SeedEncoding.cellEquiv.symm) := byconstructor· rw [List.pairwise_map]simpa only [sourceVertexOrder_lt,Equiv.apply_symm_apply] using hw.1· rw [List.pairwise_map]exact hw.2/-- Relabeling uses the original seed graph and merely chooses an order on itsvertices for the signed integral chain convention. -/noncomputable def sourceLinkContraction (K : SimplicialChains.Contraction SeedChainCertificate.graph) :SimplicialChains.Contraction seedGraph :=K.reindex SeedEncoding.cellEquiv.symm (index_valid_to_source) (source_valid_to_index)end EilenbergGaneanamespace EilenbergGanealocal instance : LinearOrder SeedCell := sourceVertexOrderlocal instance : Preorder SeedCell := sourceVertexOrder.toPartialOrder.toPreorderlocal instance : LT SeedCell := sourceVertexOrder.toLTlocal instance : LE SeedCell := sourceVertexOrder.toLEtheorem source_valid_length_le (w : List SeedCell) (hw : SimplicialChains.Valid seedGraph w) :w.length ≤ 3 := bysimpa only [List.length_map] usingSeedChainCertificate.valid_length_le (w.map SeedEncoding.cellEquiv) (source_valid_to_index w hw)theorem source_cd_eq_two_of_contraction(K : SimplicialChains.Contraction SeedChainCertificate.graph) :cohomologicalDimension SourceGroup = 2 := byapply le_antisymm· exact LevelBasis.artin_height_kernel_cd_le_two seedGraph seedBase seed_connected.preconnected(sourceLinkContraction K) source_valid_length_le· exact source_two_le_cohomologicalDimension/-- The exact remaining geometric interface is not limited to finite orcountable presentations. This endpoint excludes any ordinary presentationwhose actual integral equivariant cellular boundaries freely span cycles. -/theorem source_no_boundary_basis_of_contraction(K : SimplicialChains.Contraction SeedChainCertificate.graph){A R : Type*} (a₀ : A → SourceGroup)(ha₀ : Function.Surjective (wordValue a₀))(r₀ : R → FreeGroup A) (hr₀ : ∀ i, wordValue a₀ (r₀ i) = 1)(hp₀ : (wordValue a₀).ker = Subgroup.normalClosure (Set.range r₀))(E : BasedChains SourceGroup R ≃ₗ[ℤ] cycles a₀)(hE : ∀ c, (E c : BasedChains SourceGroup A) = relatorChainMap a₀ r₀ c) : False := bylet : Group.ResiduallyFinite SourceGroup := source_residuallyFiniteexact LevelBasis.no_boundary_basis_presentation seedGraph seedBase seed_connected.preconnected(sourceLinkContraction K) source_valid_length_le SourceTransport.source_small_labelsa₀ ha₀ r₀ hr₀ hp₀ E hEend EilenbergGaneanamespace EilenbergGanea/-- Literal integral cohomological dimension of the source's fixed group. -/theorem source_cohomologicalDimension : cohomologicalDimension SourceGroup = 2 :=source_cd_eq_two_of_contraction SeedChainCertificate.contraction/-- No arbitrary-alphabet genuine presentation has its relators as an integralbasis of Cayley cycles. -/theorem source_no_boundary_basis{A R : Type*} (a₀ : A → SourceGroup)(ha₀ : Function.Surjective (wordValue a₀))(r₀ : R → FreeGroup A) (hr₀ : ∀ i, wordValue a₀ (r₀ i) = 1)(hp₀ : (wordValue a₀).ker = Subgroup.normalClosure (Set.range r₀))(E : BasedChains SourceGroup R ≃ₗ[ℤ] cycles a₀)(hE : ∀ c, (E c : BasedChains SourceGroup A) = relatorChainMap a₀ r₀ c) : False :=source_no_boundary_basis_of_contraction SeedChainCertificate.contractiona₀ ha₀ r₀ hr₀ hp₀ E hEend EilenbergGaneaendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308import OAI.Topology.EilenbergGanea.Modelimport OAI.Topology.EilenbergGanea.PresentationAlignmentimport Mathlib.Algebra.Category.ModuleCat.ProjectiveDimensionimport Mathlib.RingTheory.Noetherian.Basicnamespace OAInoncomputable sectionopen Classical Set/-! Group-ring augmentation and literal two-syzygy dimension criterion. -/namespace EilenbergGaneaopen CategoryTheorysection ProjectiveBoundvariable {R P Q M : Type} [Ring R][AddCommGroup P] [Module R P] [AddCommGroup Q] [Module R Q][AddCommGroup M] [Module R M]/-- Two successive projective syzygies give the literal integral upper bound. -/theorem projectiveDimension_le_two_of_syzygies(ε : P →ₗ[R] M) (hε : Function.Surjective ε)(d : Q →ₗ[R] LinearMap.ker ε) (hd : Function.Surjective d)[Module.Projective R P] [Module.Projective R Q][Module.Projective R (LinearMap.ker d)] :CategoryTheory.projectiveDimension (ModuleCat.of R M) ≤ 2 := byhave h₁ := (LinearMap.shortExact_shortComplexKer hd).hasProjectiveDimensionLT_X₃ 1(inferInstance : HasProjectiveDimensionLT (ModuleCat.of R (LinearMap.ker d)) 1)(inferInstance : HasProjectiveDimensionLT (ModuleCat.of R Q) 2)have h₂ := (LinearMap.shortExact_shortComplexKer hε).hasProjectiveDimensionLT_X₃ 2h₁ (inferInstance : HasProjectiveDimensionLT (ModuleCat.of R P) 3)exact (CategoryTheory.projectiveDimension_le_iff _ 2).mpr h₂end ProjectiveBoundsection CayleyModulesvariable {Γ S : Type} [Group Γ]abbrev IntegralGroupRing (Γ : Type) [Group Γ] := MonoidAlgebra ℤ Γabbrev IntegralTrivialModule (Γ : Type) [Group Γ] :=(Representation.trivial ℤ Γ ℤ).asModuledef cayleyAugmentation : IntegralGroupRing Γ →ₗ[IntegralGroupRing Γ] IntegralTrivialModule Γ :=LinearMap.toSpanSingleton (IntegralGroupRing Γ) _((Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm 1)@[simp] theorem cayleyAugmentation_single (g : Γ) (n : ℤ) :cayleyAugmentation (MonoidAlgebra.single g n) =(Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm n := bychange (MonoidAlgebra.single g n : IntegralGroupRing Γ) •((Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm 1) = _rw [Representation.single_smul]change (n : ℤ) * 1 = nexact mul_one ntheorem cayleyAugmentation_surjective :Function.Surjective (cayleyAugmentation (Γ := Γ)) := byintro nrefine ⟨MonoidAlgebra.single (1 : Γ) ((Representation.trivial ℤ Γ ℤ).asModuleEquiv n),?_⟩rw [cayleyAugmentation_single,LinearEquiv.symm_apply_apply]def cayleyDifferential (v : S → Γ) :(S →₀ IntegralGroupRing Γ) →ₗ[IntegralGroupRing Γ] IntegralGroupRing Γ :=Finsupp.linearCombination _ (fun s => MonoidAlgebra.single (v s) 1 - 1)@[simp] theorem cayleyDifferential_single (v : S → Γ) (s : S) (r : IntegralGroupRing Γ) :cayleyDifferential v (Finsupp.single s r) = r * (MonoidAlgebra.single (v s) 1 - 1) := bysimp [cayleyDifferential]@[simp] theorem cayleyAugmentation_one :cayleyAugmentation (1 : IntegralGroupRing Γ) =(Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm 1 :=cayleyAugmentation_single (1 : Γ) 1@[simp] theorem cayleyAugmentation_difference (g : Γ) :cayleyAugmentation (MonoidAlgebra.single g 1 - 1) = 0 := byrw [map_sub, cayleyAugmentation_single, cayleyAugmentation_one, sub_self]theorem cayleyDifferential_aug (v : S → Γ) :(cayleyAugmentation (Γ := Γ)).comp (cayleyDifferential v) = 0 := bychange (cayleyAugmentation (Γ := Γ)).comp(Finsupp.linearCombination _ (fun s => MonoidAlgebra.single (v s) 1 - 1)) = 0rw [← Finsupp.linearCombination_linear_comp]have he : (cayleyAugmentation (Γ := Γ)) ∘(fun s => MonoidAlgebra.single (v s) 1 - 1) = (0 : S → IntegralTrivialModule Γ) := byfunext sexact cayleyAugmentation_difference (v s)rw [he, Finsupp.linearCombination_zero]theorem cayleyGeneratorDifference_mem (v : S → Γ) (w : FreeGroup S) :MonoidAlgebra.single (FreeGroup.lift v w) 1 - 1 ∈ LinearMap.range (cayleyDifferential v) := byinduction w using FreeGroup.induction_on with| one =>simp only [map_one]have he : (MonoidAlgebra.single (1 : Γ) 1 : IntegralGroupRing Γ) = 1 := rflrw [he,sub_self]exact Submodule.zero_mem _| of s =>exact ⟨Finsupp.single s 1,by simp⟩| inv_of s =>refine ⟨Finsupp.single s (-MonoidAlgebra.single (v s)⁻¹ 1),?_⟩simp [mul_sub,MonoidAlgebra.single_mul_single]rfl| mul w z hw hz =>have hh := (LinearMap.range (cayleyDifferential v)).smul_mem(MonoidAlgebra.single (FreeGroup.lift v w) 1) hzhave hc := (LinearMap.range (cayleyDifferential v)).add_mem hw hhrw [map_mul]convert hc using 1change _ = (_ - 1) + _ * (_ - 1)rw [mul_sub,mul_one,MonoidAlgebra.single_mul_single,one_mul]abeltheorem cayleyAugmentation_normalize (v : S → Γ)(hv : Function.Surjective (FreeGroup.lift v)) (r : IntegralGroupRing Γ) :r - MonoidAlgebra.single 1((Representation.trivial ℤ Γ ℤ).asModuleEquiv (cayleyAugmentation r)) ∈LinearMap.range (cayleyDifferential v) := byclassicalinduction r using MonoidAlgebra.induction_linear with| zero => simp| add r t hr ht =>rw [map_add, map_add, MonoidAlgebra.single_add]convert (LinearMap.range (cayleyDifferential v)).add_mem hr ht using 1; abel| single g n =>rw [cayleyAugmentation_single, LinearEquiv.apply_symm_apply]obtain ⟨w, hw⟩ := hv ghave hm := (LinearMap.range (cayleyDifferential v)).toAddSubgroup.zsmul_mem(cayleyGeneratorDifference_mem v w) nrw [hw] at hmconvert hm using 1simp only [smul_sub, MonoidAlgebra.smul_single, zsmul_eq_mul, mul_one]rfltheorem cayley_exact (v : S → Γ) (hv : Function.Surjective (FreeGroup.lift v)) :LinearMap.range (cayleyDifferential v) = LinearMap.ker (cayleyAugmentation (Γ := Γ)) := byapply le_antisymm· rintro _ ⟨r,rfl⟩exact LinearMap.congr_fun (cayleyDifferential_aug v) r· intro r hrhave hm := cayleyAugmentation_normalize v hv rrw [LinearMap.mem_ker.mp hr, map_zero, MonoidAlgebra.single_zero, sub_zero] at hmexact hmdef cayleySyzygyDifferential (v : S → Γ) :(S →₀ IntegralGroupRing Γ) →ₗ[IntegralGroupRing Γ]LinearMap.ker (cayleyAugmentation (Γ := Γ)) :=(cayleyDifferential v).codRestrict _ (byintro rexact LinearMap.congr_fun (cayleyDifferential_aug v) r)theorem cayleySyzygyDifferential_surjective (v : S → Γ)(hv : Function.Surjective (FreeGroup.lift v)) :Function.Surjective (cayleySyzygyDifferential v) := byintro rhave hr : (r : IntegralGroupRing Γ) ∈ LinearMap.range (cayleyDifferential v) := byrw [cayley_exact v hv]exact r.propertyobtain ⟨s, hs⟩ := hrexact ⟨s, Subtype.ext hs⟩theorem cayley_projectiveDimension_le_two (v : S → Γ)(hv : Function.Surjective (FreeGroup.lift v))[Module.Projective (IntegralGroupRing Γ) (LinearMap.ker (cayleyDifferential v))] :CategoryTheory.projectiveDimension(ModuleCat.of (IntegralGroupRing Γ) (IntegralTrivialModule Γ)) ≤ 2 := byhave hk : LinearMap.ker (cayleySyzygyDifferential v) =LinearMap.ker (cayleyDifferential v) := LinearMap.ker_codRestrict _ _ _have : Module.Projective (IntegralGroupRing Γ)(LinearMap.ker (cayleySyzygyDifferential v)) := hk ▸ inferInstanceexact projectiveDimension_le_two_of_syzygies cayleyAugmentationcayleyAugmentation_surjective (cayleySyzygyDifferential v)(cayleySyzygyDifferential_surjective v hv)end CayleyModulesend EilenbergGaneanamespace EilenbergGaneasection ChainPackagingvariable {Γ S T : Type} [Group Γ]/-- Reindex the actual integral edge chains as a free left group-ring module. -/def chainPackaging : BasedChains Γ S ≃ₗ[ℤ] S →₀ IntegralGroupRing Γ :=((Finsupp.domLCongr (Equiv.prodComm Γ S)).trans (Finsupp.curryLinearEquiv ℤ)).trans(Finsupp.mapRange.linearEquiv (MonoidAlgebra.coeffLinearEquiv ℤ).symm)@[simp] theorem chainPackaging_single (g : Γ) (s : S) (n : ℤ) :chainPackaging (Finsupp.single (g,s) n) =Finsupp.single s (MonoidAlgebra.single g n) := bysimp [chainPackaging, Finsupp.curry_single]@[simp] theorem chainPackaging_symm_single (g : Γ) (s : S) (n : ℤ) :(chainPackaging (Γ := Γ) (S := S)).symm(Finsupp.single s (MonoidAlgebra.single g n)) = Finsupp.single (g,s) n := byapply (chainPackaging (Γ := Γ) (S := S)).injectivesimptheorem chainPackaging_translate (g : Γ) (c : BasedChains Γ S) :chainPackaging (translateChains g c) =(MonoidAlgebra.single g 1 : IntegralGroupRing Γ) • chainPackaging c := byhave he : (chainPackaging (Γ := Γ) (S := S)).toLinearMap.comp (translateChains g) =(DistribSMul.toLinearMap ℤ (S →₀ IntegralGroupRing Γ) (MonoidAlgebra.single g 1 : IntegralGroupRing Γ)).comp(chainPackaging (Γ := Γ) (S := S)).toLinearMap := byapply Finsupp.lhom_extrintro ⟨h,s⟩ nsimp [Finsupp.smul_single, MonoidAlgebra.single_mul_single]exact LinearMap.congr_fun he ctheorem chainPackaging_boundary (v : S → Γ) (c : BasedChains Γ S) :cayleyDifferential v (chainPackaging c) = MonoidAlgebra.ofCoeff (edgeBoundary v c) := byhave he : ((cayleyDifferential v).restrictScalars ℤ).comp(chainPackaging (Γ := Γ) (S := S)).toLinearMap =(MonoidAlgebra.coeffLinearEquiv ℤ).symm.toLinearMap.comp (edgeBoundary v) := byapply Finsupp.lhom_extrintro ⟨g,s⟩ nsimp only [LinearMap.comp_apply, LinearMap.coe_restrictScalars, LinearEquiv.coe_coe,chainPackaging_single, cayleyDifferential_single, edgeBoundary_single, map_smul,map_sub]simp only [mul_sub, MonoidAlgebra.single_mul_single, mul_one,MonoidAlgebra.coeffLinearEquiv_symm_apply, MonoidAlgebra.ofCoeff_single,MonoidAlgebra.smul_single, smul_sub, smul_eq_mul]exact LinearMap.congr_fun he ctheorem chainPackaging_symm_translate (g : Γ) (c : S →₀ IntegralGroupRing Γ) :(chainPackaging (Γ := Γ) (S := S)).symm ((MonoidAlgebra.single g 1 : IntegralGroupRing Γ) • c) =translateChains g (chainPackaging.symm c) := byapply (chainPackaging (Γ := Γ) (S := S)).injectiverw [chainPackaging_translate, LinearEquiv.apply_symm_apply, LinearEquiv.apply_symm_apply]/-- Equivariance on integral chains is exactly full group-ring linearity. -/def chainRingMap (A : BasedChains Γ S →ₗ[ℤ] BasedChains Γ T)(hA : ChainsEquivariant A) :(S →₀ IntegralGroupRing Γ) →ₗ[IntegralGroupRing Γ] T →₀ IntegralGroupRing Γ wheretoFun c := chainPackaging (A (chainPackaging.symm c))map_add' _ _ := by simp only [map_add]map_smul' r c := byinduction r using MonoidAlgebra.induction_linear with| zero => simp only [zero_smul, map_zero]| add r t hr ht => simp only [add_smul, map_add, hr, ht]| single g n =>have hn : (MonoidAlgebra.single g n : IntegralGroupRing Γ) =n • MonoidAlgebra.single g 1 := by simprw [hn]simp only [smul_assoc, map_smul, chainPackaging_symm_translate, RingHom.id_apply]rw [hA g _, chainPackaging_translate]@[simp] theorem chainRingMap_apply (A : BasedChains Γ S →ₗ[ℤ] BasedChains Γ T)(hA : ChainsEquivariant A) (c : S →₀ IntegralGroupRing Γ) :chainRingMap A hA c = chainPackaging (A (chainPackaging.symm c)) := rfltheorem chainPackaging_mem_cycles (v : S → Γ) (c : BasedChains Γ S) :c ∈ cycles v ↔ chainPackaging c ∈ LinearMap.ker (cayleyDifferential v) := bychange edgeBoundary v c = 0 ↔ cayleyDifferential v (chainPackaging c) = 0rw [chainPackaging_boundary]constructor· intro hrw [h]rfl· intro hhave hh := congrArg MonoidAlgebra.coeff hexact hhtheorem projective_cayley_cycles_of_boundary_basis (v : S → Γ)(A : BasedChains Γ T →ₗ[ℤ] BasedChains Γ S) (hA : ChainsEquivariant A)(hAi : Function.Injective A) (hAr : LinearMap.range A = cycles v) :Module.Projective (IntegralGroupRing Γ) (LinearMap.ker (cayleyDifferential v)) := byhave hm : ∀ c, chainRingMap A hA c ∈ LinearMap.ker (cayleyDifferential v) := byintro capply (chainPackaging_mem_cycles v _).mprw [← hAr]exact ⟨chainPackaging.symm c,rfl⟩let d := (chainRingMap A hA).codRestrict _ hmhave hi : Function.Injective d := byintro c c' happly (chainPackaging (Γ := Γ) (S := T)).symm.injectiveapply hAiapply chainPackaging.injectiveexact congrArg Subtype.val hhave hs : Function.Surjective d := byintro chave hc : chainPackaging.symm (c : S →₀ IntegralGroupRing Γ) ∈ cycles v := byapply (chainPackaging_mem_cycles v _).mprrw [LinearEquiv.apply_symm_apply]exact c.propertyrw [← hAr] at hcobtain ⟨b,hb⟩ := hcrefine ⟨chainPackaging b,Subtype.ext ?_⟩change chainPackaging (A (chainPackaging.symm (chainPackaging b))) = c.valrw [LinearEquiv.symm_apply_apply,hb,LinearEquiv.apply_symm_apply]exact Module.Projective.of_equiv' (LinearEquiv.ofBijective d ⟨hi,hs⟩)theorem projectiveDimension_le_two_of_boundary_basis (v : S → Γ)(hv : Function.Surjective (FreeGroup.lift v))(A : BasedChains Γ T →ₗ[ℤ] BasedChains Γ S) (hA : ChainsEquivariant A)(hAi : Function.Injective A) (hAr : LinearMap.range A = cycles v) :CategoryTheory.projectiveDimension(ModuleCat.of (IntegralGroupRing Γ) (IntegralTrivialModule Γ)) ≤ 2 := byhave := projective_cayley_cycles_of_boundary_basis v A hA hAi hArexact cayley_projectiveDimension_le_two v hvend ChainPackagingend EilenbergGaneaendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308import OAI.Topology.EilenbergGanea.Modelimport OAI.Topology.EilenbergGanea.PresentationAlignmentimport Mathlib.Algebra.Category.ModuleCat.ProjectiveDimensionimport Mathlib.RingTheory.Noetherian.Basicnamespace OAInoncomputable sectionopen Classical Set/-! Group-ring augmentation and literal two-syzygy dimension criterion. -/namespace EilenbergGaneaopen CategoryTheorysection ProjectiveBoundvariable {R P Q M : Type} [Ring R][AddCommGroup P] [Module R P] [AddCommGroup Q] [Module R Q][AddCommGroup M] [Module R M]/-- Two successive projective syzygies give the literal integral upper bound. -/theorem projectiveDimension_le_two_of_syzygies(ε : P →ₗ[R] M) (hε : Function.Surjective ε)(d : Q →ₗ[R] LinearMap.ker ε) (hd : Function.Surjective d)[Module.Projective R P] [Module.Projective R Q][Module.Projective R (LinearMap.ker d)] :CategoryTheory.projectiveDimension (ModuleCat.of R M) ≤ 2 := byhave h₁ := (LinearMap.shortExact_shortComplexKer hd).hasProjectiveDimensionLT_X₃ 1(inferInstance : HasProjectiveDimensionLT (ModuleCat.of R (LinearMap.ker d)) 1)(inferInstance : HasProjectiveDimensionLT (ModuleCat.of R Q) 2)have h₂ := (LinearMap.shortExact_shortComplexKer hε).hasProjectiveDimensionLT_X₃ 2h₁ (inferInstance : HasProjectiveDimensionLT (ModuleCat.of R P) 3)exact (CategoryTheory.projectiveDimension_le_iff _ 2).mpr h₂end ProjectiveBoundsection CayleyModulesvariable {Γ S : Type} [Group Γ]abbrev IntegralGroupRing (Γ : Type) [Group Γ] := MonoidAlgebra ℤ Γabbrev IntegralTrivialModule (Γ : Type) [Group Γ] :=(Representation.trivial ℤ Γ ℤ).asModuledef cayleyAugmentation : IntegralGroupRing Γ →ₗ[IntegralGroupRing Γ] IntegralTrivialModule Γ :=LinearMap.toSpanSingleton (IntegralGroupRing Γ) _((Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm 1)@[simp] theorem cayleyAugmentation_single (g : Γ) (n : ℤ) :cayleyAugmentation (MonoidAlgebra.single g n) =(Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm n := bychange (MonoidAlgebra.single g n : IntegralGroupRing Γ) •((Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm 1) = _rw [Representation.single_smul]change (n : ℤ) * 1 = nexact mul_one ntheorem cayleyAugmentation_surjective :Function.Surjective (cayleyAugmentation (Γ := Γ)) := byintro nrefine ⟨MonoidAlgebra.single (1 : Γ) ((Representation.trivial ℤ Γ ℤ).asModuleEquiv n),?_⟩rw [cayleyAugmentation_single,LinearEquiv.symm_apply_apply]def cayleyDifferential (v : S → Γ) :(S →₀ IntegralGroupRing Γ) →ₗ[IntegralGroupRing Γ] IntegralGroupRing Γ :=Finsupp.linearCombination _ (fun s => MonoidAlgebra.single (v s) 1 - 1)@[simp] theorem cayleyDifferential_single (v : S → Γ) (s : S) (r : IntegralGroupRing Γ) :cayleyDifferential v (Finsupp.single s r) = r * (MonoidAlgebra.single (v s) 1 - 1) := bysimp [cayleyDifferential]@[simp] theorem cayleyAugmentation_one :cayleyAugmentation (1 : IntegralGroupRing Γ) =(Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm 1 :=cayleyAugmentation_single (1 : Γ) 1@[simp] theorem cayleyAugmentation_difference (g : Γ) :cayleyAugmentation (MonoidAlgebra.single g 1 - 1) = 0 := byrw [map_sub, cayleyAugmentation_single, cayleyAugmentation_one, sub_self]theorem cayleyDifferential_aug (v : S → Γ) :(cayleyAugmentation (Γ := Γ)).comp (cayleyDifferential v) = 0 := bychange (cayleyAugmentation (Γ := Γ)).comp(Finsupp.linearCombination _ (fun s => MonoidAlgebra.single (v s) 1 - 1)) = 0rw [← Finsupp.linearCombination_linear_comp]have he : (cayleyAugmentation (Γ := Γ)) ∘(fun s => MonoidAlgebra.single (v s) 1 - 1) = (0 : S → IntegralTrivialModule Γ) := byfunext sexact cayleyAugmentation_difference (v s)rw [he, Finsupp.linearCombination_zero]theorem cayleyGeneratorDifference_mem (v : S → Γ) (w : FreeGroup S) :MonoidAlgebra.single (FreeGroup.lift v w) 1 - 1 ∈ LinearMap.range (cayleyDifferential v) := byinduction w using FreeGroup.induction_on with| one =>simp only [map_one]have he : (MonoidAlgebra.single (1 : Γ) 1 : IntegralGroupRing Γ) = 1 := rflrw [he,sub_self]exact Submodule.zero_mem _| of s =>exact ⟨Finsupp.single s 1,by simp⟩| inv_of s =>refine ⟨Finsupp.single s (-MonoidAlgebra.single (v s)⁻¹ 1),?_⟩simp [mul_sub,MonoidAlgebra.single_mul_single]rfl| mul w z hw hz =>have hh := (LinearMap.range (cayleyDifferential v)).smul_mem(MonoidAlgebra.single (FreeGroup.lift v w) 1) hzhave hc := (LinearMap.range (cayleyDifferential v)).add_mem hw hhrw [map_mul]convert hc using 1change _ = (_ - 1) + _ * (_ - 1)rw [mul_sub,mul_one,MonoidAlgebra.single_mul_single,one_mul]abeltheorem cayleyAugmentation_normalize (v : S → Γ)(hv : Function.Surjective (FreeGroup.lift v)) (r : IntegralGroupRing Γ) :r - MonoidAlgebra.single 1((Representation.trivial ℤ Γ ℤ).asModuleEquiv (cayleyAugmentation r)) ∈LinearMap.range (cayleyDifferential v) := byclassicalinduction r using MonoidAlgebra.induction_linear with| zero => simp| add r t hr ht =>rw [map_add, map_add, MonoidAlgebra.single_add]convert (LinearMap.range (cayleyDifferential v)).add_mem hr ht using 1; abel| single g n =>rw [cayleyAugmentation_single, LinearEquiv.apply_symm_apply]obtain ⟨w, hw⟩ := hv ghave hm := (LinearMap.range (cayleyDifferential v)).toAddSubgroup.zsmul_mem(cayleyGeneratorDifference_mem v w) nrw [hw] at hmconvert hm using 1simp only [smul_sub, MonoidAlgebra.smul_single, zsmul_eq_mul, mul_one]rfltheorem cayley_exact (v : S → Γ) (hv : Function.Surjective (FreeGroup.lift v)) :LinearMap.range (cayleyDifferential v) = LinearMap.ker (cayleyAugmentation (Γ := Γ)) := byapply le_antisymm· rintro _ ⟨r,rfl⟩exact LinearMap.congr_fun (cayleyDifferential_aug v) r· intro r hrhave hm := cayleyAugmentation_normalize v hv rrw [LinearMap.mem_ker.mp hr, map_zero, MonoidAlgebra.single_zero, sub_zero] at hmexact hmdef cayleySyzygyDifferential (v : S → Γ) :(S →₀ IntegralGroupRing Γ) →ₗ[IntegralGroupRing Γ]LinearMap.ker (cayleyAugmentation (Γ := Γ)) :=(cayleyDifferential v).codRestrict _ (byintro rexact LinearMap.congr_fun (cayleyDifferential_aug v) r)theorem cayleySyzygyDifferential_surjective (v : S → Γ)(hv : Function.Surjective (FreeGroup.lift v)) :Function.Surjective (cayleySyzygyDifferential v) := byintro rhave hr : (r : IntegralGroupRing Γ) ∈ LinearMap.range (cayleyDifferential v) := byrw [cayley_exact v hv]exact r.propertyobtain ⟨s, hs⟩ := hrexact ⟨s, Subtype.ext hs⟩theorem cayley_projectiveDimension_le_two (v : S → Γ)(hv : Function.Surjective (FreeGroup.lift v))[Module.Projective (IntegralGroupRing Γ) (LinearMap.ker (cayleyDifferential v))] :CategoryTheory.projectiveDimension(ModuleCat.of (IntegralGroupRing Γ) (IntegralTrivialModule Γ)) ≤ 2 := byhave hk : LinearMap.ker (cayleySyzygyDifferential v) =LinearMap.ker (cayleyDifferential v) := LinearMap.ker_codRestrict _ _ _have : Module.Projective (IntegralGroupRing Γ)(LinearMap.ker (cayleySyzygyDifferential v)) := hk ▸ inferInstanceexact projectiveDimension_le_two_of_syzygies cayleyAugmentationcayleyAugmentation_surjective (cayleySyzygyDifferential v)(cayleySyzygyDifferential_surjective v hv)end CayleyModulesend EilenbergGaneanamespace EilenbergGaneasection ChainPackagingvariable {Γ S T : Type} [Group Γ]/-- Reindex the actual integral edge chains as a free left group-ring module. -/def chainPackaging : BasedChains Γ S ≃ₗ[ℤ] S →₀ IntegralGroupRing Γ :=((Finsupp.domLCongr (Equiv.prodComm Γ S)).trans (Finsupp.curryLinearEquiv ℤ)).trans(Finsupp.mapRange.linearEquiv (MonoidAlgebra.coeffLinearEquiv ℤ).symm)@[simp] theorem chainPackaging_single (g : Γ) (s : S) (n : ℤ) :chainPackaging (Finsupp.single (g,s) n) =Finsupp.single s (MonoidAlgebra.single g n) := bysimp [chainPackaging, Finsupp.curry_single]@[simp] theorem chainPackaging_symm_single (g : Γ) (s : S) (n : ℤ) :(chainPackaging (Γ := Γ) (S := S)).symm(Finsupp.single s (MonoidAlgebra.single g n)) = Finsupp.single (g,s) n := byapply (chainPackaging (Γ := Γ) (S := S)).injectivesimptheorem chainPackaging_translate (g : Γ) (c : BasedChains Γ S) :chainPackaging (translateChains g c) =(MonoidAlgebra.single g 1 : IntegralGroupRing Γ) • chainPackaging c := byhave he : (chainPackaging (Γ := Γ) (S := S)).toLinearMap.comp (translateChains g) =(DistribSMul.toLinearMap ℤ (S →₀ IntegralGroupRing Γ) (MonoidAlgebra.single g 1 : IntegralGroupRing Γ)).comp(chainPackaging (Γ := Γ) (S := S)).toLinearMap := byapply Finsupp.lhom_extrintro ⟨h,s⟩ nsimp [Finsupp.smul_single, MonoidAlgebra.single_mul_single]exact LinearMap.congr_fun he ctheorem chainPackaging_boundary (v : S → Γ) (c : BasedChains Γ S) :cayleyDifferential v (chainPackaging c) = MonoidAlgebra.ofCoeff (edgeBoundary v c) := byhave he : ((cayleyDifferential v).restrictScalars ℤ).comp(chainPackaging (Γ := Γ) (S := S)).toLinearMap =(MonoidAlgebra.coeffLinearEquiv ℤ).symm.toLinearMap.comp (edgeBoundary v) := byapply Finsupp.lhom_extrintro ⟨g,s⟩ nsimp only [LinearMap.comp_apply, LinearMap.coe_restrictScalars, LinearEquiv.coe_coe,chainPackaging_single, cayleyDifferential_single, edgeBoundary_single, map_smul,map_sub]simp only [mul_sub, MonoidAlgebra.single_mul_single, mul_one,MonoidAlgebra.coeffLinearEquiv_symm_apply, MonoidAlgebra.ofCoeff_single,MonoidAlgebra.smul_single, smul_sub, smul_eq_mul]exact LinearMap.congr_fun he ctheorem chainPackaging_symm_translate (g : Γ) (c : S →₀ IntegralGroupRing Γ) :(chainPackaging (Γ := Γ) (S := S)).symm ((MonoidAlgebra.single g 1 : IntegralGroupRing Γ) • c) =translateChains g (chainPackaging.symm c) := byapply (chainPackaging (Γ := Γ) (S := S)).injectiverw [chainPackaging_translate, LinearEquiv.apply_symm_apply, LinearEquiv.apply_symm_apply]/-- Equivariance on integral chains is exactly full group-ring linearity. -/def chainRingMap (A : BasedChains Γ S →ₗ[ℤ] BasedChains Γ T)(hA : ChainsEquivariant A) :(S →₀ IntegralGroupRing Γ) →ₗ[IntegralGroupRing Γ] T →₀ IntegralGroupRing Γ wheretoFun c := chainPackaging (A (chainPackaging.symm c))map_add' _ _ := by simp only [map_add]map_smul' r c := byinduction r using MonoidAlgebra.induction_linear with| zero => simp only [zero_smul, map_zero]| add r t hr ht => simp only [add_smul, map_add, hr, ht]| single g n =>have hn : (MonoidAlgebra.single g n : IntegralGroupRing Γ) =n • MonoidAlgebra.single g 1 := by simprw [hn]simp only [smul_assoc, map_smul, chainPackaging_symm_translate, RingHom.id_apply]rw [hA g _, chainPackaging_translate]@[simp] theorem chainRingMap_apply (A : BasedChains Γ S →ₗ[ℤ] BasedChains Γ T)(hA : ChainsEquivariant A) (c : S →₀ IntegralGroupRing Γ) :chainRingMap A hA c = chainPackaging (A (chainPackaging.symm c)) := rfltheorem chainPackaging_mem_cycles (v : S → Γ) (c : BasedChains Γ S) :c ∈ cycles v ↔ chainPackaging c ∈ LinearMap.ker (cayleyDifferential v) := bychange edgeBoundary v c = 0 ↔ cayleyDifferential v (chainPackaging c) = 0rw [chainPackaging_boundary]constructor· intro hrw [h]rfl· intro hhave hh := congrArg MonoidAlgebra.coeff hexact hhtheorem projective_cayley_cycles_of_boundary_basis (v : S → Γ)(A : BasedChains Γ T →ₗ[ℤ] BasedChains Γ S) (hA : ChainsEquivariant A)(hAi : Function.Injective A) (hAr : LinearMap.range A = cycles v) :Module.Projective (IntegralGroupRing Γ) (LinearMap.ker (cayleyDifferential v)) := byhave hm : ∀ c, chainRingMap A hA c ∈ LinearMap.ker (cayleyDifferential v) := byintro capply (chainPackaging_mem_cycles v _).mprw [← hAr]exact ⟨chainPackaging.symm c,rfl⟩let d := (chainRingMap A hA).codRestrict _ hmhave hi : Function.Injective d := byintro c c' happly (chainPackaging (Γ := Γ) (S := T)).symm.injectiveapply hAiapply chainPackaging.injectiveexact congrArg Subtype.val hhave hs : Function.Surjective d := byintro chave hc : chainPackaging.symm (c : S →₀ IntegralGroupRing Γ) ∈ cycles v := byapply (chainPackaging_mem_cycles v _).mprrw [LinearEquiv.apply_symm_apply]exact c.propertyrw [← hAr] at hcobtain ⟨b,hb⟩ := hcrefine ⟨chainPackaging b,Subtype.ext ?_⟩change chainPackaging (A (chainPackaging.symm (chainPackaging b))) = c.valrw [LinearEquiv.symm_apply_apply,hb,LinearEquiv.apply_symm_apply]exact Module.Projective.of_equiv' (LinearEquiv.ofBijective d ⟨hi,hs⟩)theorem projectiveDimension_le_two_of_boundary_basis (v : S → Γ)(hv : Function.Surjective (FreeGroup.lift v))(A : BasedChains Γ T →ₗ[ℤ] BasedChains Γ S) (hA : ChainsEquivariant A)(hAi : Function.Injective A) (hAr : LinearMap.range A = cycles v) :CategoryTheory.projectiveDimension(ModuleCat.of (IntegralGroupRing Γ) (IntegralTrivialModule Γ)) ≤ 2 := byhave := projective_cayley_cycles_of_boundary_basis v A hA hAi hArexact cayley_projectiveDimension_le_two v hvend ChainPackagingend EilenbergGaneaendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968import OAI.AlgebraicTopology.Cubical.HeightChainsimport OAI.Topology.EilenbergGanea.IntegralModulesimport OAI.Topology.EilenbergGanea.LevelTransportnamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiffnamespace EilenbergGanea.LevelBasisopen CubicalChains CubicalChains.LevelExact CubicalChains.HeightFiltrationvariable {G A : Type} [Group G] [LinearOrder A]variable (L : SimpleGraph A) (φ : G →* Multiplicative ℤ) (v : A → G) (root : A)def ht (g : G) : ℤ := (φ g).toAdd@[simp] theorem ht_mul (g q : G) : ht φ (g*q) = ht φ g + ht φ q := by simp [ht]@[simp] theorem ht_one : ht φ 1 = 0 := by simp [ht]@[simp] theorem ht_inv (g : G) : ht φ g⁻¹ = -ht φ g := by simp [ht]@[simp] theorem ht_zpow (g : G) (n : ℤ) : ht φ (g^n) = n * ht φ g := by simp [ht]@[simp] theorem ht_ker (g : φ.ker) : ht φ g = 0 := by simp [ht,MonoidHom.mem_ker.mp g.property]variable (hv : ∀ a, φ (v a) = Multiplicative.ofAdd (1 : ℤ))include hv inomit [LinearOrder A] in@[simp] theorem ht_generator (a : A) : ht φ (v a) = 1 := by simp [ht,hv]include hv inomit [LinearOrder A] intheorem ht_step (g : G) (a : A) : ht φ (g * v a) = ht φ g + 1 := by simp [ht_generator φ v hv]def Shape (k : ℕ) := {p : List A × ℤ // SimplicialChains.Valid L p.1 ∧ p.1.length = k ∧p.2 < 0 ∧ 0 < p.2 + (k : ℤ)}def basisIndex (k : ℕ) (p : φ.ker × Shape L k) : G × List A :=(p.1.val * (v (p.2.val.1.headD root)) ^ p.2.val.2,p.2.val.1)include hv intheorem basisIndex_height (k : ℕ) (p : φ.ker × Shape L k) :ht φ (basisIndex L φ v root k p).1 = p.2.val.2 := bysimp only [basisIndex,ht_mul,ht_ker,ht_zpow,ht_generator φ v hv,mul_one,zero_add]include hv intheorem basisIndex_injective (k : ℕ) : Function.Injective (basisIndex L φ v root k) := byintro p q hehave hw : p.2.val.1 = q.2.val.1 := congrArg Prod.snd hehave hh := congrArg (fun x => ht φ x.1) herw [basisIndex_height L φ v root hv,basisIndex_height L φ v root hv] at hhhave hs : p.2 = q.2 := Subtype.ext (Prod.ext hw hh)have hg := congrArg Prod.fst hesimp only [basisIndex,hs] at hgexact Prod.ext (Subtype.ext (mul_right_cancel hg)) hsinclude hv intheorem basisIndex_mem (k : ℕ) (p : φ.ker × Shape L k) :SimplicialChains.Valid L (basisIndex L φ v root k p).2 ∧(basisIndex L φ v root k p).2.length = k ∧ht φ (basisIndex L φ v root k p).1 < 0 ∧0 < ht φ (basisIndex L φ v root k p).1 + (k : ℤ) := byrw [basisIndex_height L φ v root hv]exact p.2.propertyinclude hv intheorem exists_basisIndex {k : ℕ} (p : G × List A)(hp : SimplicialChains.Valid L p.2 ∧ p.2.length = k ∧ ht φ p.1 < 0 ∧ 0 < ht φ p.1 + (k : ℤ)) :∃ q : φ.ker × Shape L k, basisIndex L φ v root k q = p := bylet s : Shape L k := ⟨(p.2,ht φ p.1),hp⟩let g : φ.ker := ⟨p.1 * (v (p.2.headD root)) ^ (-ht φ p.1),byapply (Multiplicative.toAdd.injective)change ht φ (p.1 * (v (p.2.headD root)) ^ (-ht φ p.1)) = 0simp only [ht_mul,ht_zpow,ht_generator φ v hv,mul_one,add_neg_cancel]⟩refine ⟨(g,s),?_⟩apply Prod.ext· change (p.1 * (v (p.2.headD root)) ^ (-ht φ p.1)) * (v (p.2.headD root)) ^ (ht φ p.1) = p.1rw [mul_assoc,← zpow_add,neg_add_cancel,zpow_zero,mul_one]· rfldef includeBasis (k : ℕ) : (φ.ker × Shape L k →₀ ℤ) →ₗ[ℤ] CubicalChains.Chains G A :=Finsupp.lmapDomain ℤ ℤ (basisIndex L φ v root k)@[simp] theorem includeBasis_single (k : ℕ) (p : φ.ker × Shape L k) (n : ℤ) :includeBasis L φ v root k (Finsupp.single p n) = Finsupp.single (basisIndex L φ v root k p) n := bysimp [includeBasis]include hv intheorem includeBasis_injective (k : ℕ) : Function.Injective (includeBasis L φ v root k) :=Finsupp.mapDomain_injective (basisIndex_injective L φ v root hv k)include hv intheorem includeBasis_range (k : ℕ) : LinearMap.range (includeBasis L φ v root k) = crossing L (ht φ) k := byrw [includeBasis,Finsupp.range_lmapDomain,crossing,Finsupp.supported_eq_span_single]congr 1ext cconstructor· rintro ⟨p,rfl⟩exact ⟨basisIndex L φ v root k p,basisIndex_mem L φ v root hv k p,rfl⟩· rintro ⟨p,hp,rfl⟩obtain ⟨q,rfl⟩ := exists_basisIndex L φ v root hv p hpexact ⟨q,rfl⟩variable (comm : ∀ a b, L.Adj a b → Commute (v a) (v b))include hv indef projectBasis (k : ℕ) : CubicalChains.Chains G A →ₗ[ℤ] (φ.ker × Shape L k →₀ ℤ) :=Finsupp.lcomapDomain (basisIndex L φ v root k) (basisIndex_injective L φ v root hv k)@[simp] theorem project_include (k : ℕ) (c : φ.ker × Shape L k →₀ ℤ) :projectBasis L φ v root hv k (includeBasis L φ v root k c) = c :=Finsupp.leftInverse_lcomapDomain_mapDomain _ _ cinclude hv intheorem include_project {k : ℕ} {c : CubicalChains.Chains G A} (hc : c ∈ crossing L (ht φ) k) :includeBasis L φ v root k (projectBasis L φ v root hv k c) = c := byrw [← includeBasis_range L φ v root hv k] at hcobtain ⟨d,rfl⟩ := hcrw [project_include]include hv intheorem includeBasis_mem (k : ℕ) (c : φ.ker × Shape L k →₀ ℤ) :includeBasis L φ v root k c ∈ crossing L (ht φ) k := byrw [← includeBasis_range L φ v root hv k]exact ⟨c,rfl⟩/-- The level edge parameter has precisely two directions and initial height -1. -/theorem shape_two_form (s : Shape L 2) : ∃ a b, s.val = ([a,b],-1) := byobtain ⟨a,b,hab⟩ := List.length_eq_two.mp s.property.2.1refine ⟨a,b,Prod.ext hab ?_⟩have hn := s.property.2.2.1have hm := s.property.2.2.2norm_num at hmomegadef generator (s : Shape L 2) : φ.ker :=⟨(v (s.val.1.headD root))⁻¹ * v (s.val.1.tail.headD root),by simp [hv]⟩def includeVertices : (φ.ker →₀ ℤ) →ₗ[ℤ] CubicalChains.Chains G A :=Finsupp.lmapDomain ℤ ℤ (fun g => (g.val,[]))omit [LinearOrder A] in@[simp] theorem includeVertices_single (g : φ.ker) (n : ℤ) :includeVertices (A := A) φ (Finsupp.single g n) = Finsupp.single (g.val,[]) n := by simp [includeVertices]omit [LinearOrder A] intheorem includeVertices_injective : Function.Injective (includeVertices (A := A) φ) := byapply Finsupp.mapDomain_injectiveintro p q heexact Subtype.ext (congrArg Prod.fst he)include hv inomit [LinearOrder A] intheorem boundary_square (g : G) (a b : A) (hab : Commute (v a) (v b))(hg : ht φ g = -1) :levelBoundary v (ht φ) (Finsupp.single (g,[a,b]) 1) =Finsupp.single (g*v b,[]) 1 - Finsupp.single (g*v a,[]) 1 := byhave hga : ht φ (g * v a) = 0 := by rw [ht_step φ v hv,hg]; omegahave hgb : ht φ (g * v b) = 0 := by rw [ht_step φ v hv,hg]; omegasimp only [levelBoundary_apply,boundary_single,one_smul,boundaryTerm_cons,boundaryTerm_nil,map_zero,sub_zero,map_sub,front_single,plus,select_single,hga,hgb,hg]norm_numrw [mul_assoc,hab.eq,← mul_assoc]abelinclude hv comm intheorem levelBoundary_include_single (p : φ.ker × Shape L 2) :levelBoundary v (ht φ) (includeBasis L φ v root 2 (Finsupp.single p 1)) =includeVertices (A := A) φ (edgeBoundary (generator L φ v root hv) (Finsupp.single p 1)) := byrcases p with ⟨g,⟨⟨w,n⟩,hs⟩⟩obtain ⟨a,b,hw⟩ := List.length_eq_two.mp hs.2.1change w = [a,b] at hwsubst whave hn : n = -1 := by have h₁ := hs.2.2.1; have h₂ := hs.2.2.2; norm_num at h₂; omegasubst nhave hab : L.Adj a b := (List.pairwise_cons.mp hs.1.2).1 b (by simp)rw [includeBasis_single]change levelBoundary v (ht φ) (Finsupp.single (g.val * (v a)^(-1 : ℤ),[a,b]) 1) = _rw [boundary_square φ v hv _ a b (comm a b hab) (by simp [ht_generator φ v hv])]simp only [edgeBoundary,Finsupp.linearCombination_single]simp only [zpow_neg_one,one_smul,map_sub,includeVertices_single,Subgroup.coe_mul,generator,List.headD_cons,List.tail_cons,mul_assoc,inv_mul_cancel,mul_one]include hv comm intheorem levelBoundary_include (c : φ.ker × Shape L 2 →₀ ℤ) :levelBoundary v (ht φ) (includeBasis L φ v root 2 c) =includeVertices (A := A) φ (edgeBoundary (generator L φ v root hv) c) := byinduction c using Finsupp.induction_linear with| zero => simp| add c d hc hd => simp only [map_add,hc,hd]| single p n =>have he : Finsupp.single p n = n • Finsupp.single p (1 : ℤ) := by simprw [he,map_smul,map_smul,map_smul,map_smul,levelBoundary_include_single L φ v root hv comm]/-- The literal based integral boundary of the crossing three-cubes. -/def triangleBoundary : (φ.ker × Shape L 3 →₀ ℤ) →ₗ[ℤ] (φ.ker × Shape L 2 →₀ ℤ) :=(projectBasis L φ v root hv 2).comp ((crossPart (ht φ)).comp ((boundary v).comp (includeBasis L φ v root 3)))include hv intheorem triangleBoundary_inclusion (c : φ.ker × Shape L 3 →₀ ℤ) :includeBasis L φ v root 2 (triangleBoundary L φ v root hv c) =crossPart (ht φ) (boundary v (includeBasis L φ v root 3 c)) := byapply include_project L φ v root hvexact crossPart_mem L (ht φ) (boundary_total L v (ht φ) (ht_step φ v hv)(crossing_total L (ht φ) (includeBasis_mem L φ v root hv 3 c)))include hv comm intheorem triangleBoundary_cycle (c : φ.ker × Shape L 3 →₀ ℤ) :triangleBoundary L φ v root hv c ∈ cycles (generator L φ v root hv) := byapply includeVertices_injective φrw [map_zero,← levelBoundary_include L φ v root hv comm,triangleBoundary_inclusion L φ v root hv]exact levelBoundary_cross_boundary L v (ht φ) (ht_step φ v hv) comm (includeBasis_mem L φ v root hv 3 c)variable (K : SimplicialChains.Contraction L)variable (exactTotal : ∀ {k : ℕ}, 0 < k → ∀ c, c ∈ total (G := G) L k → boundary v c = 0 →∃ b ∈ total (G := G) L (k+1), boundary v b = c)variable (dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3)include hv comm K exactTotal intheorem triangleBoundary_range : LinearMap.range (triangleBoundary L φ v root hv) =cycles (generator L φ v root hv) := byapply le_antisymm· rintro _ ⟨c,rfl⟩exact triangleBoundary_cycle L φ v root hv comm c· intro c hchave hz : levelBoundary v (ht φ) (includeBasis L φ v root 2 c) = 0 := byrw [levelBoundary_include L φ v root hv comm,LinearMap.mem_ker.mp hc,map_zero]obtain ⟨t,ht,hdt⟩ := level_cycle_bounds L v (ht φ) K (ht_step φ v hv) comm exactTotal_ (includeBasis_mem L φ v root hv 2 c) hzrw [← includeBasis_range L φ v root hv 3] at htobtain ⟨b,rfl⟩ := htrefine ⟨b,includeBasis_injective L φ v root hv 2 ?_⟩rwa [triangleBoundary_inclusion L φ v root hv]include hv comm K exactTotal dim intheorem triangleBoundary_injective : Function.Injective (triangleBoundary L φ v root hv) := bysuffices hz : ∀ c, triangleBoundary L φ v root hv c = 0 → c = 0 byintro c d heexact sub_eq_zero.mp (hz (c-d) (by simp only [map_sub,he,sub_self]))intro c hcapply includeBasis_injective L φ v root hv 3rw [map_zero]apply level_boundary_injective L v (ht φ) K (ht_step φ v hv) comm exactTotal dim_ (includeBasis_mem L φ v root hv 3 c)rw [← triangleBoundary_inclusion L φ v root hv,hc,map_zero]/-- Left translation on the actual ambient cube chains. -/def leftTranslate (g : G) : CubicalChains.Chains G A →ₗ[ℤ] CubicalChains.Chains G A :=Finsupp.lmapDomain ℤ ℤ (fun p => (g*p.1,p.2))omit [LinearOrder A] in@[simp] theorem leftTranslate_single (g q : G) (w : List A) (n : ℤ) :leftTranslate g (Finsupp.single (q,w) n) = Finsupp.single (g*q,w) n := by simp [leftTranslate]omit [LinearOrder A] intheorem leftTranslate_front (g : G) (a : A) (c : CubicalChains.Chains G A) :leftTranslate g (CubicalChains.front a c) = CubicalChains.front a (leftTranslate g c) := byinduction c using Finsupp.induction_linear with| zero => simp| add c d hc hd => simp only [map_add,hc,hd]| single p n => rcases p with ⟨q,w⟩; simpomit [LinearOrder A] intheorem leftTranslate_boundaryTerm (g q : G) (w : List A) :leftTranslate g (boundaryTerm v q w) = boundaryTerm v (g*q) w := byinduction w with| nil => simp| cons a w ih => simp only [boundaryTerm_cons,map_sub,leftTranslate_single,leftTranslate_front,ih,mul_assoc]omit [LinearOrder A] intheorem leftTranslate_boundary (g : G) (c : CubicalChains.Chains G A) :leftTranslate g (boundary v c) = boundary v (leftTranslate g c) := byinduction c using Finsupp.induction_linear with| zero => simp| add c d hc hd => simp only [map_add,hc,hd]| single p n => rcases p with ⟨q,w⟩; simp [leftTranslate_boundaryTerm]omit [LinearOrder A] intheorem leftTranslate_crossPart (g : φ.ker) (c : CubicalChains.Chains G A) :leftTranslate g.val (crossPart (ht φ) c) = crossPart (ht φ) (leftTranslate g.val c) := byinduction c using Finsupp.induction_linear with| zero => simp| add c d hc hd => simp only [map_add,hc,hd]| single p n =>rcases p with ⟨q,w⟩simp only [crossPart,select_single,leftTranslate_single,ht_mul,ht_ker,zero_add]split <;> simp_alltheorem includeBasis_translate (k : ℕ) (g : φ.ker) (c : φ.ker × Shape L k →₀ ℤ) :includeBasis L φ v root k (translateChains g c) = leftTranslate g.val (includeBasis L φ v root k c) := byinduction c using Finsupp.induction_linear with| zero => simp| add c d hc hd => simp only [map_add,hc,hd]| single p n =>rcases p with ⟨q,s⟩simp only [translateChains_single,includeBasis_single,leftTranslate_single,basisIndex,Subgroup.coe_mul,mul_assoc]include hv intheorem triangleBoundary_equivariant : ChainsEquivariant (triangleBoundary L φ v root hv) := byintro g capply includeBasis_injective L φ v root hv 2rw [triangleBoundary_inclusion L φ v root hv,includeBasis_translate,← leftTranslate_boundary,← leftTranslate_crossPart,includeBasis_translate,triangleBoundary_inclusion L φ v root hv]end EilenbergGanea.LevelBasisnamespace EilenbergGanea.LevelBasisvariable {V : Type} [LinearOrder V] (L : SimpleGraph V)def pairShape (a b : V) (hab : a < b) (hadj : L.Adj a b) : Shape L 2 :=⟨([a,b],-1),by simp [SimplicialChains.Valid,hab,hadj]⟩@[simp] theorem generator_pair (root a b : V) (hab : a < b) (hadj : L.Adj a b) :(generator L (height L) (artinGenerator L) root (height_generator L)(pairShape L a b hab hadj)).val = (artinGenerator L a)⁻¹ * artinGenerator L b := rfl/-- The actual oriented crossing-square edges generate precisely the height kernel. -/theorem generator_surjective (hconn : L.Preconnected) (root : V) :Function.Surjective (FreeGroup.lift (generator L (height L) (artinGenerator L) root (height_generator L))) := bylet f := FreeGroup.lift (generator L (height L) (artinGenerator L) root (height_generator L))let F := (height L).ker.subtype.comp fhave hgen : edgeGenerated L ≤ F.range := byapply (Subgroup.closure_le _).mprrintro x ⟨a,b,hadj,rfl⟩have hab : a ≠ b := L.ne_of_adj hadjrcases lt_or_gt_of_ne hab with hab | hab· refine ⟨(FreeGroup.of (pairShape L a b hab hadj))⁻¹,?_⟩change (f ((FreeGroup.of (pairShape L a b hab hadj))⁻¹)).val = _simp only [f,map_inv,FreeGroup.lift_apply_of,Subgroup.coe_inv,generator_pair,mul_inv_rev,inv_inv]exact (adjacent_generators_commute L hadj).inv_right.eq.symm· refine ⟨FreeGroup.of (pairShape L b a hab hadj.symm),?_⟩change (f (FreeGroup.of (pairShape L b a hab hadj.symm))).val = _simp only [f,FreeGroup.lift_apply_of,generator_pair]exact (adjacent_generators_commute L hadj).inv_right.eq.symmintro ghave he : g.val ∈ edgeGenerated L := by rw [edgeGenerated_eq_height_kernel L hconn root]; exact g.propertyobtain ⟨w,hw⟩ := hgen heexact ⟨w,Subtype.ext hw⟩end EilenbergGanea.LevelBasisnamespace EilenbergGanea.LevelBasisopen CubicalChains CubicalChains.HeightFiltrationvariable {V : Type} [LinearOrder V] [Fintype V] [Nonempty V] (L : SimpleGraph V)/-- The exactness input to the level slicing is the actual RAAG cube-chaincontraction, not an assumption about a classifying space. -/theorem artin_total_cycle_bounds {k : ℕ} (hk : 0 < k)(c : Chains (ArtinGroup L) V) (hc : c ∈ total (G := ArtinGroup L) L k)(hz : boundary (artinGenerator L) c = 0) :∃ b ∈ total (G := ArtinGroup L) L (k+1), boundary (artinGenerator L) b = c := byhave he : ∀ n, total (G := ArtinGroup L) L n = TraceWords.CubeDescents.positiveChains L n := byintro nsimp only [total,TraceWords.CubeDescents.positiveChains,SimplicialChains.Valid,and_assoc]rw [he] at hc ⊢exact TraceWords.CubeDescents.positive_cycle_bounds L hk c hc hz/-- Integral cd at most two for the genuine height kernel, from a genuinefinite augmented link contraction and the dimension of its flag complex. -/theorem artin_height_kernel_cd_le_two (root : V) (hconn : L.Preconnected)(K : SimplicialChains.Contraction L)(dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3) :cohomologicalDimension (height L).ker ≤ 2 := byexact projectiveDimension_le_two_of_boundary_basis(generator L (height L) (artinGenerator L) root (height_generator L))(generator_surjective L hconn root)(triangleBoundary L (height L) (artinGenerator L) root (height_generator L))(triangleBoundary_equivariant L (height L) (artinGenerator L) root (height_generator L))(triangleBoundary_injective L (height L) (artinGenerator L) root (height_generator L)(fun _ _ h => adjacent_generators_commute L h) K (artin_total_cycle_bounds L) dim)(triangleBoundary_range L (height L) (artinGenerator L) root (height_generator L)(fun _ _ h => adjacent_generators_commute L h) K (artin_total_cycle_bounds L))end EilenbergGanea.LevelBasisnamespace EilenbergGanea.LevelBasisopen CubicalChains CubicalChains.LevelExact CubicalChains.HeightFiltrationvariable {G A : Type} [Group G] [LinearOrder A]variable (L : SimpleGraph A) (φ : G →* Multiplicative ℤ) (v : A → G) (root : A)variable (hv : ∀ a, φ (v a) = Multiplicative.ofAdd (1 : ℤ))variable (comm : ∀ a b, L.Adj a b → Commute (v a) (v b))instance shape_finite [Fintype A] (k : ℕ) : Finite (Shape L k) := bylet f : Shape L k → List.Vector A k × Fin k := fun s =>(⟨s.val.1,s.property.2.1⟩,⟨(-s.val.2).toNat,byhave hn := s.property.2.2.1have hm := s.property.2.2.2omega⟩)apply Finite.of_injective fintro s t happly Subtype.extapply Prod.ext· exact congrArg (fun p : List.Vector A k × Fin k => p.1.val) h· have he := congrArg (fun p : List.Vector A k × Fin k => p.2.val) hhave hs := s.property.2.2.1have ht := t.property.2.2.1dsimp [f] at heomeganoncomputable instance shape_fintype [Fintype A] (k : ℕ) : Fintype (Shape L k) := Fintype.ofFinite _def edgeShape (a b : A) (hab : SimplicialChains.Valid L [a,b]) : Shape L 2 :=⟨([a,b],-1),hab,rfl,by norm_num,by norm_num⟩def triangleShape (a b c : A) (habc : SimplicialChains.Valid L [a,b,c])(n : ℤ) (hn : n = -1 ∨ n = -2) : Shape L 3 :=⟨([a,b,c],n),habc,rfl,by omega,by norm_num; omega⟩@[simp] theorem generator_edgeShape (a b : A) (hab : SimplicialChains.Valid L [a,b]) :(generator L φ v root hv (edgeShape L a b hab) : G) = (v a)⁻¹ * v b := rfltheorem valid_triangle_edges {a b c : A} (h : SimplicialChains.Valid L [a,b,c]) :SimplicialChains.Valid L [a,b] ∧ SimplicialChains.Valid L [a,c] ∧SimplicialChains.Valid L [b,c] := bysimp [SimplicialChains.Valid] at h ⊢tautoinclude comm intheorem edge_values_compose (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) :((v a)⁻¹ * v b) * ((v b)⁻¹ * v c) = (v a)⁻¹ * v c ∧((v b)⁻¹ * v c) * ((v a)⁻¹ * v b) = (v a)⁻¹ * v c := byhave he := valid_triangle_edges L hhave ha : L.Adj a b := by simpa [SimplicialChains.Valid] using he.1.2have hb : L.Adj a c := by simpa [SimplicialChains.Valid] using he.2.1.2have hc : L.Adj b c := by simpa [SimplicialChains.Valid] using he.2.2.2constructor· group· calc((v b)⁻¹ * v c) * ((v a)⁻¹ * v b) = (v a)⁻¹ * ((v b)⁻¹ * v c) * v b := byrw [← mul_assoc,((comm a b ha).inv_left.inv_right.mul_right (comm a c hb).inv_left).symm.eq]_ = (v a)⁻¹ * v c := byrw [mul_assoc,mul_assoc,← (comm b c hc).eq,inv_mul_cancel_left]def lowerTriangleWord (ab ac bc : Shape L 2) : FreeGroup (Shape L 2) :=FreeGroup.of ac * (FreeGroup.of bc)⁻¹ * (FreeGroup.of ab)⁻¹def upperTriangleWord (ab ac bc : Shape L 2) : FreeGroup (Shape L 2) :=FreeGroup.of ab * (FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) *(FreeGroup.of ab)⁻¹include comm intheorem triangle_words_trivial (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) :let e := valid_triangle_edges L hlet ab := edgeShape L a b e.1let ac := edgeShape L a c e.2.1let bc := edgeShape L b c e.2.2wordValue (generator L φ v root hv) (lowerTriangleWord L ab ac bc) = 1 ∧wordValue (generator L φ v root hv) (upperTriangleWord L ab ac bc) = 1 := bydsimp onlyhave he := edge_values_compose L v comm a b c hconstructor <;> apply Subtype.ext· simp only [lowerTriangleWord,map_mul,map_inv,wordValue,FreeGroup.lift_apply_of,Subgroup.coe_mul,Subgroup.coe_inv,generator_edgeShape,OneMemClass.coe_one]group· simp only [upperTriangleWord,map_mul,map_inv,wordValue,FreeGroup.lift_apply_of,Subgroup.coe_mul,Subgroup.coe_inv,generator_edgeShape,OneMemClass.coe_one]rw [he.2,mul_inv_cancel,mul_one,mul_inv_cancel]include hv intheorem triangle_boundary_low (g : φ.ker) (a b c : A)(h : SimplicialChains.Valid L [a,b,c]) :let e := valid_triangle_edges L hlet ab := edgeShape L a b e.1let ac := edgeShape L a c e.2.1let bc := edgeShape L b c e.2.2triangleBoundary L φ v root hv(Finsupp.single (g,triangleShape L a b c h (-1) (Or.inl rfl)) 1) =Finsupp.single (g,ac) 1 - Finsupp.single (g,ab) 1 -Finsupp.single (g * generator L φ v root hv ab,bc) 1 := bydsimp onlyapply includeBasis_injective L φ v root hv 2rw [triangleBoundary_inclusion L φ v root hv]simp only [map_sub,includeBasis_single,basisIndex,triangleShape,edgeShape,List.headD_cons,zpow_neg_one,Subgroup.coe_mul,generator,List.tail_cons]simp only [boundary_single,one_smul,boundaryTerm_cons,boundaryTerm_nil,map_zero,sub_zero,map_sub,front_single,crossPart,select,Finsupp.linearCombination_single,ht_mul,ht_ker,ht_inv,ht_generator φ v hv,List.length_cons,List.length_nil]norm_numsimp only [mul_assoc,mul_inv_cancel,mul_one]abelinclude hv comm intheorem triangle_boundary_high (g : φ.ker) (a b c : A)(h : SimplicialChains.Valid L [a,b,c]) :let e := valid_triangle_edges L hlet ab := edgeShape L a b e.1let ac := edgeShape L a c e.2.1let bc := edgeShape L b c e.2.2triangleBoundary L φ v root hv(Finsupp.single (g,triangleShape L a b c h (-2) (Or.inr rfl)) 1) =Finsupp.single (g * generator L φ v root hv ab,bc) 1 -Finsupp.single (g * generator L φ v root hv ab,ac) 1 +Finsupp.single (g * generator L φ v root hv ac,ab) 1 := bydsimp onlyhave eh := valid_triangle_edges L hhave hab : L.Adj a b := by simpa [SimplicialChains.Valid] using eh.1.2have hac : L.Adj a c := by simpa [SimplicialChains.Valid] using eh.2.1.2apply includeBasis_injective L φ v root hv 2rw [triangleBoundary_inclusion L φ v root hv]simp only [map_sub,map_add,includeBasis_single,basisIndex,triangleShape,edgeShape,List.headD_cons,Subgroup.coe_mul,generator,List.tail_cons]simp only [boundary_single,one_smul,boundaryTerm_cons,boundaryTerm_nil,map_zero,sub_zero,map_sub,front_single,crossPart,select,map_sub,Finsupp.linearCombination_single,ht_mul,ht_ker,ht_zpow,ht_generator φ v hv,List.length_cons,List.length_nil]norm_numhave hb : (v a)^(-2 : ℤ) * v b = (v a)⁻¹ * v b * (v a)⁻¹ := bycalc(v a)^(-2 : ℤ) * v b = (v a)⁻¹ * ((v a)⁻¹ * v b) := by group_ = (v a)⁻¹ * (v b * (v a)⁻¹) := congrArg ((v a)⁻¹ * ·) (comm a b hab).inv_left.eq_ = _ := (mul_assoc _ _ _).symmhave hc : (v a)^(-2 : ℤ) * v c = (v a)⁻¹ * v c * (v a)⁻¹ := bycalc(v a)^(-2 : ℤ) * v c = (v a)⁻¹ * ((v a)⁻¹ * v c) := by group_ = (v a)⁻¹ * (v c * (v a)⁻¹) := congrArg ((v a)⁻¹ * ·) (comm a c hac).inv_left.eq_ = _ := (mul_assoc _ _ _).symmhave ha : (v a)^(-2 : ℤ) * v a = (v a)⁻¹ := by groupsimp only [zpow_neg,zpow_ofNat] at ha hb hcsimp only [mul_assoc] at hb hcsimp only [mul_assoc,ha,hb,hc,mul_inv_cancel,mul_one]abelsection WordChainsvariable (w : Shape L 2 → G) (ab ac bc : Shape L 2)theorem lowerTriangleWord_chain (habc : w ab * w bc = w ac) (g : G) :pathChain w (lowerTriangleWord L ab ac bc) g =Finsupp.single (g,ac) 1 - Finsupp.single (g,ab) 1 -Finsupp.single (g * w ab,bc) 1 := bysimp only [lowerTriangleWord,pathChain_mul,pathChain_inv,pathChain_of,map_mul,map_inv,wordValue,FreeGroup.lift_apply_of]rw [← habc]simp only [mul_assoc,mul_inv_cancel,mul_one]abeltheorem upperTriangleWord_chain (habc : w ab * w bc = w ac)(hbac : w bc * w ab = w ac) (g : G) :pathChain w (upperTriangleWord L ab ac bc) g =Finsupp.single (g * w ab,bc) 1 - Finsupp.single (g * w ab,ac) 1 +Finsupp.single (g * w ac,ab) 1 := byhave hr : wordValue w (FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) = 1 := bysimp only [wordValue,map_mul,map_inv,FreeGroup.lift_apply_of,hbac,mul_inv_cancel]rw [upperTriangleWord,pathChain_conjugate w _ _ hr]simp only [pathChain_mul,pathChain_inv,pathChain_of,map_mul,wordValue,FreeGroup.lift_apply_of]rw [hbac]simp only [mul_assoc,habc,mul_inv_cancel,mul_one]abelend WordChainsinclude comm intheorem triangle_words_chain (g : φ.ker) (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) :let e := valid_triangle_edges L hlet ab := edgeShape L a b e.1let ac := edgeShape L a c e.2.1let bc := edgeShape L b c e.2.2pathChain (generator L φ v root hv) (lowerTriangleWord L ab ac bc) g =triangleBoundary L φ v root hv(Finsupp.single (g,triangleShape L a b c h (-1) (Or.inl rfl)) 1) ∧pathChain (generator L φ v root hv) (upperTriangleWord L ab ac bc) g =triangleBoundary L φ v root hv(Finsupp.single (g,triangleShape L a b c h (-2) (Or.inr rfl)) 1) := bydsimp onlyhave he := edge_values_compose L v comm a b c hhave h₁ : generator L φ v root hv (edgeShape L a b (valid_triangle_edges L h).1) *generator L φ v root hv (edgeShape L b c (valid_triangle_edges L h).2.2) =generator L φ v root hv (edgeShape L a c (valid_triangle_edges L h).2.1) :=Subtype.ext he.1have h₂ : generator L φ v root hv (edgeShape L b c (valid_triangle_edges L h).2.2) *generator L φ v root hv (edgeShape L a b (valid_triangle_edges L h).1) =generator L φ v root hv (edgeShape L a c (valid_triangle_edges L h).2.1) :=Subtype.ext he.2constructor· rw [lowerTriangleWord_chain L _ _ _ _ h₁,triangle_boundary_low L φ v root hv]· rw [upperTriangleWord_chain L _ _ _ _ h₁ h₂,triangle_boundary_high L φ v root hv comm]def triangleWordList : (w : List A) → SimplicialChains.Valid L w → ℤ → FreeGroup (Shape L 2)| [a,b,c],h,n =>let e := valid_triangle_edges L hif n = -1 thenlowerTriangleWord L (edgeShape L a b e.1) (edgeShape L a c e.2.1) (edgeShape L b c e.2.2)else upperTriangleWord L (edgeShape L a b e.1) (edgeShape L a c e.2.1) (edgeShape L b c e.2.2)| _,_,_ => 1def triangleWord (s : Shape L 3) : FreeGroup (Shape L 2) :=triangleWordList L s.val.1 s.property.1 s.val.2theorem shape_three_form (s : Shape L 3) :∃ (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) (n : ℤ) (hn : n = -1 ∨ n = -2),s = triangleShape L a b c h n hn := byobtain ⟨a,b,c,hw⟩ := List.length_eq_three.mp s.property.2.1have hn : s.val.2 = -1 ∨ s.val.2 = -2 := byhave h₁ := s.property.2.2.1have h₂ := s.property.2.2.2norm_num at h₂omegarefine ⟨a,b,c,hw ▸ s.property.1,s.val.2,hn,?_⟩exact Subtype.ext (Prod.ext hw rfl)include comm intheorem triangleWord_trivial (s : Shape L 3) :wordValue (generator L φ v root hv) (triangleWord L s) = 1 := byobtain ⟨a,b,c,h,n,hn,rfl⟩ := shape_three_form L srcases hn with rfl | rfl· simpa [triangleWord,triangleWordList,triangleShape] using(triangle_words_trivial L φ v root hv comm a b c h).1· simpa [triangleWord,triangleWordList,triangleShape] using(triangle_words_trivial L φ v root hv comm a b c h).2include comm intheorem triangleWord_chain (s : Shape L 3) (g : φ.ker) :pathChain (generator L φ v root hv) (triangleWord L s) g =triangleBoundary L φ v root hv (Finsupp.single (g,s) 1) := byobtain ⟨a,b,c,h,n,hn,rfl⟩ := shape_three_form L srcases hn with rfl | rfl· simpa [triangleWord,triangleWordList,triangleShape] using(triangle_words_chain L φ v root hv comm g a b c h).1· simpa [triangleWord,triangleWordList,triangleShape] using(triangle_words_chain L φ v root hv comm g a b c h).2end EilenbergGanea.LevelBasisnamespace EilenbergGanea.LevelBasisopen CubicalChains CubicalChains.HeightFiltrationvariable {G A : Type} [Group G] [LinearOrder A]variable (L : SimpleGraph A) (φ : G →* Multiplicative ℤ) (v : A → G) (root : A)variable (hv : ∀ a, φ (v a) = Multiplicative.ofAdd (1 : ℤ))variable (comm : ∀ a b, L.Adj a b → Commute (v a) (v b))include comm intheorem triangleBoundary_eq_relatorChainMap :triangleBoundary L φ v root hv =relatorChainMap (generator L φ v root hv) (triangleWord L) := byapply Finsupp.lhom_ext'intro papply LinearMap.extintro nsimp only [LinearMap.coe_comp,Function.comp_apply,Finsupp.lsingle_apply,relatorChainMap,Finsupp.linearCombination_single]have he : Finsupp.single p n = n • Finsupp.single p (1 : ℤ) := by simprw [he,map_smul,← triangleWord_chain L φ v root hv comm p.2 p.1]variable (K : SimplicialChains.Contraction L)variable (exactTotal : ∀ {k : ℕ}, 0 < k → ∀ c, c ∈ total (G := G) L k → boundary v c = 0 →∃ b ∈ total (G := G) L (k+1), boundary v b = c)variable (dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3)noncomputable def triangleBasis : (φ.ker × Shape L 3 →₀ ℤ) ≃ₗ[ℤ]cycles (generator L φ v root hv) :=LinearEquiv.ofBijective((triangleBoundary L φ v root hv).codRestrict (cycles (generator L φ v root hv))(triangleBoundary_cycle L φ v root hv comm))⟨fun c d h => triangleBoundary_injective L φ v root hv comm K exactTotal dim(congrArg Subtype.val h),fun c => byhave hc : c.val ∈ LinearMap.range (triangleBoundary L φ v root hv) := byrw [triangleBoundary_range L φ v root hv comm K exactTotal]exact c.propertyobtain ⟨b,hb⟩ := hcexact ⟨b,Subtype.ext hb⟩⟩theorem triangleBasis_value (c : φ.ker × Shape L 3 →₀ ℤ) :(triangleBasis L φ v root hv comm K exactTotal dim c : φ.ker × Shape L 2 →₀ ℤ) =relatorChainMap (generator L φ v root hv) (triangleWord L) c := bychange triangleBoundary L φ v root hv c = _rw [triangleBoundary_eq_relatorChainMap L φ v root hv comm]end EilenbergGanea.LevelBasisnamespace EilenbergGanea.LevelBasisopen LevelTransportvariable {V : Type} [LinearOrder V] (L : SimpleGraph V) (root : V) (N : ℕ)noncomputable def levelEquiv : (height L).ker ≃ NegativeLevel L N wheretoFun := fun g => ⟨(artinGenerator L root)⁻¹ ^ N * g.val,bysimp only [map_mul,map_pow,map_inv,height_generator]rw [show height L g.val = 1 from g.property,mul_one]change N • (-1 : ℤ) = -(N : ℤ)simp⟩invFun := fun g => ⟨artinGenerator L root ^ N * g.val,bychange (height L (artinGenerator L root ^ N * g.val)).toAdd = 0simp only [map_mul,map_pow,height_generator]change N • (1 : ℤ) + (height L g.val).toAdd = 0rw [g.property]simp⟩left_inv := fun g => Subtype.ext (by dsimp; group)right_inv := fun g => Subtype.ext (by dsimp; group)def basedLabel (a : NegativeLevel L N → V → V → SU2)(g : (height L).ker) (s : Shape L 2) : SU2 :=a (levelEquiv L root N g) (s.val.1.tail.headD root) (s.val.1.headD root)@[simp] theorem basedLabel_edge (a : NegativeLevel L N → V → V → SU2)(g : (height L).ker) (q r : V) (h : SimplicialChains.Valid L [q,r]) :basedLabel L root N a g (edgeShape L q r h) = a (levelEquiv L root N g) r q := rfltheorem levelEquiv_edge (g : (height L).ker) (q r : V)(h : SimplicialChains.Valid L [q,r]) :levelEquiv L root N(g * generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h)) =edgeVertex L N (levelEquiv L root N g) r q := byhave ha : L.Adj q r := by simpa [SimplicialChains.Valid] using h.2apply Subtype.extsimp only [levelEquiv,Equiv.coe_fn_mk,Subgroup.coe_mul,generator_edgeShape,edgeVertex]rw [mul_assoc, (adjacent_generators_commute L ha).inv_left.eq]grouptheorem shape_two_presentation (s : Shape L 2) :∃ (q r : V) (h : SimplicialChains.Valid L [q,r]), s = edgeShape L q r h := byobtain ⟨q,r,hw⟩ := List.length_eq_two.mp s.property.2.1have hn : s.val.2 = -1 := byhave h₁ := s.property.2.2.1have h₂ := s.property.2.2.2norm_num at h₂omegarefine ⟨q,r,hw ▸ s.property.1,?_⟩exact Subtype.ext (Prod.ext hw hn)theorem levelEquiv_edge_inv (g : (height L).ker) (q r : V)(h : SimplicialChains.Valid L [q,r]) :levelEquiv L root N(g * (generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h))⁻¹) =edgeVertex L N (levelEquiv L root N g) q r := byhave he := levelEquiv_edge L root N(g * (generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h))⁻¹)q r hsimp only [inv_mul_cancel_right] at hesimpa only [edgeVertex_reverse] using congrArg (fun x => edgeVertex L N x q r) he.symmvariable (a : NegativeLevel L N → V → V → SU2)variable (rev : ∀ g q r, a (edgeVertex L N g q r) r q = (a g q r)⁻¹)include rev intheorem basedLabel_inv_edge (g : (height L).ker) (q r : V)(h : SimplicialChains.Valid L [q,r]) :(basedLabel L root N a(g * (generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h))⁻¹)(edgeShape L q r h))⁻¹ = a (levelEquiv L root N g) q r := byrw [basedLabel_edge,levelEquiv_edge_inv,rev,inv_inv]def orientedWord (q r : V) (h : L.Adj q r) : FreeGroup (Shape L 2) :=if hlt : q < r then(FreeGroup.of (edgeShape L q r (by simpa [SimplicialChains.Valid] using And.intro hlt h)))⁻¹elseFreeGroup.of (edgeShape L r q (byhave hlt' : r < q := lt_of_le_of_ne (le_of_not_gt hlt) (Ne.symm (L.ne_of_adj h))simpa [SimplicialChains.Valid] using And.intro hlt' h.symm))theorem orientedWord_value (q r : V) (h : L.Adj q r) :(wordValue (generator L (height L) (artinGenerator L) root (height_generator L))(orientedWord L q r h) : ArtinGroup L) =artinGenerator L q * (artinGenerator L r)⁻¹ := byunfold orientedWordsplit_ifs· simp only [map_inv,wordValue,FreeGroup.lift_apply_of,Subgroup.coe_inv,generator_edgeShape,mul_inv_rev,inv_inv]exact (adjacent_generators_commute L h).inv_right.symm.eq· simp only [wordValue,FreeGroup.lift_apply_of,generator_edgeShape]exact (adjacent_generators_commute L h).inv_right.symm.eqtheorem levelEquiv_orientedWord (g : (height L).ker) (q r : V) (h : L.Adj q r) :levelEquiv L root N(g * wordValue (generator L (height L) (artinGenerator L) root (height_generator L))(orientedWord L q r h)) = edgeVertex L N (levelEquiv L root N g) q r := byapply Subtype.extsimp only [levelEquiv,Equiv.coe_fn_mk,Subgroup.coe_mul,orientedWord_value,edgeVertex,mul_assoc]include rev intheorem orientedWord_product (g : (height L).ker) (q r : V) (h : L.Adj q r) :pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a) (orientedWord L q r h) g = a (levelEquiv L root N g) q r := byunfold orientedWordsplit_ifs· simp only [pathProduct_inv,pathProduct_of,wordValue,FreeGroup.lift_apply_of]exact basedLabel_inv_edge L root N a rev g q r _· exact pathProduct_of _ _ _ _include rev intheorem inverse_edgeWord_product (g : (height L).ker) (q r : V)(h : SimplicialChains.Valid L [q,r]) :pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a) (FreeGroup.of (edgeShape L q r h))⁻¹ g =a (levelEquiv L root N g) q r := bysimp only [pathProduct_inv,pathProduct_of,wordValue,FreeGroup.lift_apply_of]exact basedLabel_inv_edge L root N a rev g q r hvariable (tri : ∀ g₀ g₁ g₂ q₀ r₀ q₁ r₁ q₂ r₂,edgeVertex L N g₀ q₀ r₀ = g₁ → edgeVertex L N g₁ q₁ r₁ = g₂ →edgeVertex L N g₂ q₂ r₂ = g₀ → a g₀ q₀ r₀ * a g₁ q₁ r₁ * a g₂ q₂ r₂ = 1)include rev tri intheorem lowerTriangleWord_product (g : (height L).ker) (q r s : V)(h : SimplicialChains.Valid L [q,r,s]) :let e := valid_triangle_edges L hpathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a)(lowerTriangleWord L (edgeShape L q r e.1) (edgeShape L q s e.2.1)(edgeShape L r s e.2.2)) g = 1 := bylet gen := generator L (height L) (artinGenerator L) root (height_generator L)let e := valid_triangle_edges L hlet ab := edgeShape L q r e.1let ac := edgeShape L q s e.2.1let bc := edgeShape L r s e.2.2have he : gen ab * gen bc = gen ac :=Subtype.ext (edge_values_compose L (artinGenerator L)(fun _ _ hh => adjacent_generators_commute L hh) q r s h).1have hc : gen ac * (gen bc)⁻¹ = gen ab := by rw [← he]; grouphave hc' : g * gen ac * (gen bc)⁻¹ = g * gen ab := by rw [mul_assoc,hc]have ha : g * gen ab * (gen ab)⁻¹ = g := by grouphave T := tri (levelEquiv L root N g) (levelEquiv L root N (g * gen ac))(levelEquiv L root N (g * gen ab)) s q r s q r(levelEquiv_edge L root N g q s e.2.1).symm(by rw [← levelEquiv_edge_inv L root N (g * gen ac) r s e.2.2]; exact congrArg _ hc')(by rw [← levelEquiv_edge_inv L root N (g * gen ab) q r e.1]; exact congrArg _ ha)change pathProduct gen (basedLabel L root N a) (lowerTriangleWord L ab ac bc) g = 1simp only [lowerTriangleWord,pathProduct_mul,pathProduct_of,map_mul,map_inv,wordValue,FreeGroup.lift_apply_of]rw [hc]rw [inverse_edgeWord_product L root N a rev _ r s e.2.2,inverse_edgeWord_product L root N a rev _ q r e.1]exact Tinclude rev tri intheorem upperInnerWord_product (g : (height L).ker) (q r s : V)(h : SimplicialChains.Valid L [q,r,s]) :let e := valid_triangle_edges L hpathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a)(FreeGroup.of (edgeShape L r s e.2.2) * FreeGroup.of (edgeShape L q r e.1) *(FreeGroup.of (edgeShape L q s e.2.1))⁻¹) g = 1 := bylet gen := generator L (height L) (artinGenerator L) root (height_generator L)let e := valid_triangle_edges L hlet ab := edgeShape L q r e.1let ac := edgeShape L q s e.2.1let bc := edgeShape L r s e.2.2have he : gen bc * gen ab = gen ac :=Subtype.ext (edge_values_compose L (artinGenerator L)(fun _ _ hh => adjacent_generators_commute L hh) q r s h).2have hc : g * gen bc * gen ab = g * gen ac := by rw [mul_assoc,he]have ha : g * gen ac * (gen ac)⁻¹ = g := by grouphave T := tri (levelEquiv L root N g) (levelEquiv L root N (g * gen bc))(levelEquiv L root N (g * gen ac)) s r r q q s(levelEquiv_edge L root N g r s e.2.2).symm(by rw [← levelEquiv_edge L root N (g * gen bc) q r e.1]; exact congrArg _ hc)(by rw [← levelEquiv_edge_inv L root N (g * gen ac) q s e.2.1]; exact congrArg _ ha)change pathProduct gen (basedLabel L root N a)(FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) g = 1simp only [pathProduct_mul,pathProduct_of,map_mul,wordValue,FreeGroup.lift_apply_of]rw [he,inverse_edgeWord_product L root N a rev _ q s e.2.1]exact Tinclude rev tri intheorem upperTriangleWord_product (g : (height L).ker) (q r s : V)(h : SimplicialChains.Valid L [q,r,s]) :let e := valid_triangle_edges L hpathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a)(upperTriangleWord L (edgeShape L q r e.1) (edgeShape L q s e.2.1)(edgeShape L r s e.2.2)) g = 1 := bylet gen := generator L (height L) (artinGenerator L) root (height_generator L)let e := valid_triangle_edges L hlet ab := edgeShape L q r e.1let ac := edgeShape L q s e.2.1let bc := edgeShape L r s e.2.2have he : gen bc * gen ab = gen ac :=Subtype.ext (edge_values_compose L (artinGenerator L)(fun _ _ hh => adjacent_generators_commute L hh) q r s h).2have hr : wordValue gen (FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) = 1 := bysimp only [map_mul,map_inv,wordValue,FreeGroup.lift_apply_of,he,mul_inv_cancel]change pathProduct gen (basedLabel L root N a) (upperTriangleWord L ab ac bc) g = 1rw [upperTriangleWord,pathProduct_conjugate_loop gen _ _ _ hr]rw [upperInnerWord_product L root N a rev tri _ q r s h]groupinclude rev tri intheorem triangleWord_product (s : Shape L 3) (g : (height L).ker) :pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a) (triangleWord L s) g = 1 := byobtain ⟨q,r,t,h,n,hn,rfl⟩ := shape_three_form L srcases hn with rfl | rfl· simpa [triangleWord,triangleWordList,triangleShape] usinglowerTriangleWord_product L root N a rev tri g q r t h· simpa [triangleWord,triangleWordList,triangleShape] usingupperTriangleWord_product L root N a rev tri g q r t hvariable {L N}def walkWord {g k : NegativeLevel L N} : Walk L N g k → FreeGroup (Shape L 2)| .nil _ => 1| .cons q r h p => orientedWord L q r h * walkWord ptheorem walkWord_endpoint {g k : NegativeLevel L N} (p : Walk L N g k)(x : (height L).ker) (hx : levelEquiv L root N x = g) :levelEquiv L root N(x * wordValue (generator L (height L) (artinGenerator L) root (height_generator L))(walkWord p)) = k := byinduction p generalizing x with| nil g => simpa [walkWord] using hx| @cons g k q r h p ih =>simp only [walkWord,map_mul,← mul_assoc]exact ih _ ((levelEquiv_orientedWord L root N x q r h).trans(congrArg (fun t => edgeVertex L N t q r) hx))include rev intheorem walkWord_product {g k : NegativeLevel L N} (p : Walk L N g k)(x : (height L).ker) (hx : levelEquiv L root N x = g) :pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a) (walkWord p) x = p.eval a := byinduction p generalizing x with| nil g => simp [walkWord,Walk.eval]| @cons g k q r h p ih =>rw [walkWord,pathProduct_mul,orientedWord_product L root N a rev x q r h]rw [ih _ ((levelEquiv_orientedWord L root N x q r h).trans(congrArg (fun t => edgeVertex L N t q r) hx)),hx]rflinclude rev intheorem nontrivial_word_of_walk {g : NegativeLevel L N} (p : Walk L N g g)(hp : p.eval a ≠ 1) :∃ (w : FreeGroup (Shape L 2)) (x : (height L).ker),wordValue (generator L (height L) (artinGenerator L) root (height_generator L)) w = 1 ∧pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a) w x ≠ 1 := bylet x := (levelEquiv L root N).symm ghave hx : levelEquiv L root N x = g := (levelEquiv L root N).apply_symm_apply grefine ⟨walkWord p,x,?_,?_⟩· have he := walkWord_endpoint root p x hxhave he' := (levelEquiv L root N).injective (he.trans hx.symm)exact mul_left_cancel (he'.trans (mul_one x).symm)· rwa [walkWord_product root a rev p x hx]end EilenbergGanea.LevelBasisnamespace EilenbergGanea.LevelBasisopen LevelTransportvariable {V : Type} [LinearOrder V] [Fintype V] [Nonempty V] (L : SimpleGraph V)variable [Group.ResiduallyFinite (height L).ker]variable (root : V) (hconn : L.Preconnected)variable (K : SimplicialChains.Contraction L)variable (dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3)include root hconn K dim in/-- The source obstruction's algebraic endpoint, with no cardinal bound onan alleged presentation. Its geometric premise must still be derived from anordinary two-dimensional classifying CW space. -/theorem no_boundary_basis_presentation(small : ∀ ε : ℝ, 0 < ε →∃ N : ℕ, 1 < N ∧ ∃ a : NegativeLevel L N → V → V → SU2,(∀ g q r, a (edgeVertex L N g q r) r q = (a g q r)⁻¹) ∧(∀ g q r, dist (a g q r) 1 < ε) ∧(∀ g₀ g₁ g₂ q₀ r₀ q₁ r₁ q₂ r₂,edgeVertex L N g₀ q₀ r₀ = g₁ →edgeVertex L N g₁ q₁ r₁ = g₂ →edgeVertex L N g₂ q₂ r₂ = g₀ →a g₀ q₀ r₀ * a g₁ q₁ r₁ * a g₂ q₂ r₂ = 1) ∧∃ (g : NegativeLevel L N) (p : Walk L N g g), p.eval a ≠ 1){A R : Type*} (a₀ : A → (height L).ker)(ha₀ : Function.Surjective (wordValue a₀))(r₀ : R → FreeGroup A) (hr₀ : ∀ i, wordValue a₀ (r₀ i) = 1)(hp₀ : (wordValue a₀).ker = Subgroup.normalClosure (Set.range r₀))(E : BasedChains (height L).ker R ≃ₗ[ℤ] cycles a₀)(hE : ∀ c, (E c : BasedChains (height L).ker A) = relatorChainMap a₀ r₀ c) : False := bylet gen := generator L (height L) (artinGenerator L) root (height_generator L)let comm := fun q r h => @adjacent_generators_commute V L q r hlet B := triangleBasis L (height L) (artinGenerator L) root (height_generator L)comm K (artin_total_cycle_bounds L) dimobtain ⟨η,hη,hηa⟩ := boundary_basis_small_transport gen(generator_surjective L hconn root) (triangleWord L)(triangleWord_trivial L (height L) (artinGenerator L) root (height_generator L) comm)B (triangleBasis_value L (height L) (artinGenerator L) root (height_generator L)comm K (artin_total_cycle_bounds L) dim) a₀ ha₀ r₀ hr₀ hp₀ E hEobtain ⟨N,_,a,ha,hb,ht,g,p,hp⟩ := small η hηobtain ⟨w,x,hw,hx⟩ := nontrivial_word_of_walk root a ha p hpapply hxexact hηa (basedLabel L root N a)(fun x s => bysimpa only [basedLabel,Subtype.dist_eq,dist_eq_norm,OneMemClass.coe_one] usinghb (levelEquiv L root N x) (s.val.1.tail.headD root) (s.val.1.headD root))(triangleWord_product L root N a ha ht) w hw xend EilenbergGanea.LevelBasisendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968import OAI.AlgebraicTopology.Cubical.HeightChainsimport OAI.Topology.EilenbergGanea.IntegralModulesimport OAI.Topology.EilenbergGanea.LevelTransportnamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiffnamespace EilenbergGanea.LevelBasisopen CubicalChains CubicalChains.LevelExact CubicalChains.HeightFiltrationvariable {G A : Type} [Group G] [LinearOrder A]variable (L : SimpleGraph A) (φ : G →* Multiplicative ℤ) (v : A → G) (root : A)def ht (g : G) : ℤ := (φ g).toAdd@[simp] theorem ht_mul (g q : G) : ht φ (g*q) = ht φ g + ht φ q := by simp [ht]@[simp] theorem ht_one : ht φ 1 = 0 := by simp [ht]@[simp] theorem ht_inv (g : G) : ht φ g⁻¹ = -ht φ g := by simp [ht]@[simp] theorem ht_zpow (g : G) (n : ℤ) : ht φ (g^n) = n * ht φ g := by simp [ht]@[simp] theorem ht_ker (g : φ.ker) : ht φ g = 0 := by simp [ht,MonoidHom.mem_ker.mp g.property]variable (hv : ∀ a, φ (v a) = Multiplicative.ofAdd (1 : ℤ))include hv inomit [LinearOrder A] in@[simp] theorem ht_generator (a : A) : ht φ (v a) = 1 := by simp [ht,hv]include hv inomit [LinearOrder A] intheorem ht_step (g : G) (a : A) : ht φ (g * v a) = ht φ g + 1 := by simp [ht_generator φ v hv]def Shape (k : ℕ) := {p : List A × ℤ // SimplicialChains.Valid L p.1 ∧ p.1.length = k ∧p.2 < 0 ∧ 0 < p.2 + (k : ℤ)}def basisIndex (k : ℕ) (p : φ.ker × Shape L k) : G × List A :=(p.1.val * (v (p.2.val.1.headD root)) ^ p.2.val.2,p.2.val.1)include hv intheorem basisIndex_height (k : ℕ) (p : φ.ker × Shape L k) :ht φ (basisIndex L φ v root k p).1 = p.2.val.2 := bysimp only [basisIndex,ht_mul,ht_ker,ht_zpow,ht_generator φ v hv,mul_one,zero_add]include hv intheorem basisIndex_injective (k : ℕ) : Function.Injective (basisIndex L φ v root k) := byintro p q hehave hw : p.2.val.1 = q.2.val.1 := congrArg Prod.snd hehave hh := congrArg (fun x => ht φ x.1) herw [basisIndex_height L φ v root hv,basisIndex_height L φ v root hv] at hhhave hs : p.2 = q.2 := Subtype.ext (Prod.ext hw hh)have hg := congrArg Prod.fst hesimp only [basisIndex,hs] at hgexact Prod.ext (Subtype.ext (mul_right_cancel hg)) hsinclude hv intheorem basisIndex_mem (k : ℕ) (p : φ.ker × Shape L k) :SimplicialChains.Valid L (basisIndex L φ v root k p).2 ∧(basisIndex L φ v root k p).2.length = k ∧ht φ (basisIndex L φ v root k p).1 < 0 ∧0 < ht φ (basisIndex L φ v root k p).1 + (k : ℤ) := byrw [basisIndex_height L φ v root hv]exact p.2.propertyinclude hv intheorem exists_basisIndex {k : ℕ} (p : G × List A)(hp : SimplicialChains.Valid L p.2 ∧ p.2.length = k ∧ ht φ p.1 < 0 ∧ 0 < ht φ p.1 + (k : ℤ)) :∃ q : φ.ker × Shape L k, basisIndex L φ v root k q = p := bylet s : Shape L k := ⟨(p.2,ht φ p.1),hp⟩let g : φ.ker := ⟨p.1 * (v (p.2.headD root)) ^ (-ht φ p.1),byapply (Multiplicative.toAdd.injective)change ht φ (p.1 * (v (p.2.headD root)) ^ (-ht φ p.1)) = 0simp only [ht_mul,ht_zpow,ht_generator φ v hv,mul_one,add_neg_cancel]⟩refine ⟨(g,s),?_⟩apply Prod.ext· change (p.1 * (v (p.2.headD root)) ^ (-ht φ p.1)) * (v (p.2.headD root)) ^ (ht φ p.1) = p.1rw [mul_assoc,← zpow_add,neg_add_cancel,zpow_zero,mul_one]· rfldef includeBasis (k : ℕ) : (φ.ker × Shape L k →₀ ℤ) →ₗ[ℤ] CubicalChains.Chains G A :=Finsupp.lmapDomain ℤ ℤ (basisIndex L φ v root k)@[simp] theorem includeBasis_single (k : ℕ) (p : φ.ker × Shape L k) (n : ℤ) :includeBasis L φ v root k (Finsupp.single p n) = Finsupp.single (basisIndex L φ v root k p) n := bysimp [includeBasis]include hv intheorem includeBasis_injective (k : ℕ) : Function.Injective (includeBasis L φ v root k) :=Finsupp.mapDomain_injective (basisIndex_injective L φ v root hv k)include hv intheorem includeBasis_range (k : ℕ) : LinearMap.range (includeBasis L φ v root k) = crossing L (ht φ) k := byrw [includeBasis,Finsupp.range_lmapDomain,crossing,Finsupp.supported_eq_span_single]congr 1ext cconstructor· rintro ⟨p,rfl⟩exact ⟨basisIndex L φ v root k p,basisIndex_mem L φ v root hv k p,rfl⟩· rintro ⟨p,hp,rfl⟩obtain ⟨q,rfl⟩ := exists_basisIndex L φ v root hv p hpexact ⟨q,rfl⟩variable (comm : ∀ a b, L.Adj a b → Commute (v a) (v b))include hv indef projectBasis (k : ℕ) : CubicalChains.Chains G A →ₗ[ℤ] (φ.ker × Shape L k →₀ ℤ) :=Finsupp.lcomapDomain (basisIndex L φ v root k) (basisIndex_injective L φ v root hv k)@[simp] theorem project_include (k : ℕ) (c : φ.ker × Shape L k →₀ ℤ) :projectBasis L φ v root hv k (includeBasis L φ v root k c) = c :=Finsupp.leftInverse_lcomapDomain_mapDomain _ _ cinclude hv intheorem include_project {k : ℕ} {c : CubicalChains.Chains G A} (hc : c ∈ crossing L (ht φ) k) :includeBasis L φ v root k (projectBasis L φ v root hv k c) = c := byrw [← includeBasis_range L φ v root hv k] at hcobtain ⟨d,rfl⟩ := hcrw [project_include]include hv intheorem includeBasis_mem (k : ℕ) (c : φ.ker × Shape L k →₀ ℤ) :includeBasis L φ v root k c ∈ crossing L (ht φ) k := byrw [← includeBasis_range L φ v root hv k]exact ⟨c,rfl⟩/-- The level edge parameter has precisely two directions and initial height -1. -/theorem shape_two_form (s : Shape L 2) : ∃ a b, s.val = ([a,b],-1) := byobtain ⟨a,b,hab⟩ := List.length_eq_two.mp s.property.2.1refine ⟨a,b,Prod.ext hab ?_⟩have hn := s.property.2.2.1have hm := s.property.2.2.2norm_num at hmomegadef generator (s : Shape L 2) : φ.ker :=⟨(v (s.val.1.headD root))⁻¹ * v (s.val.1.tail.headD root),by simp [hv]⟩def includeVertices : (φ.ker →₀ ℤ) →ₗ[ℤ] CubicalChains.Chains G A :=Finsupp.lmapDomain ℤ ℤ (fun g => (g.val,[]))omit [LinearOrder A] in@[simp] theorem includeVertices_single (g : φ.ker) (n : ℤ) :includeVertices (A := A) φ (Finsupp.single g n) = Finsupp.single (g.val,[]) n := by simp [includeVertices]omit [LinearOrder A] intheorem includeVertices_injective : Function.Injective (includeVertices (A := A) φ) := byapply Finsupp.mapDomain_injectiveintro p q heexact Subtype.ext (congrArg Prod.fst he)include hv inomit [LinearOrder A] intheorem boundary_square (g : G) (a b : A) (hab : Commute (v a) (v b))(hg : ht φ g = -1) :levelBoundary v (ht φ) (Finsupp.single (g,[a,b]) 1) =Finsupp.single (g*v b,[]) 1 - Finsupp.single (g*v a,[]) 1 := byhave hga : ht φ (g * v a) = 0 := by rw [ht_step φ v hv,hg]; omegahave hgb : ht φ (g * v b) = 0 := by rw [ht_step φ v hv,hg]; omegasimp only [levelBoundary_apply,boundary_single,one_smul,boundaryTerm_cons,boundaryTerm_nil,map_zero,sub_zero,map_sub,front_single,plus,select_single,hga,hgb,hg]norm_numrw [mul_assoc,hab.eq,← mul_assoc]abelinclude hv comm intheorem levelBoundary_include_single (p : φ.ker × Shape L 2) :levelBoundary v (ht φ) (includeBasis L φ v root 2 (Finsupp.single p 1)) =includeVertices (A := A) φ (edgeBoundary (generator L φ v root hv) (Finsupp.single p 1)) := byrcases p with ⟨g,⟨⟨w,n⟩,hs⟩⟩obtain ⟨a,b,hw⟩ := List.length_eq_two.mp hs.2.1change w = [a,b] at hwsubst whave hn : n = -1 := by have h₁ := hs.2.2.1; have h₂ := hs.2.2.2; norm_num at h₂; omegasubst nhave hab : L.Adj a b := (List.pairwise_cons.mp hs.1.2).1 b (by simp)rw [includeBasis_single]change levelBoundary v (ht φ) (Finsupp.single (g.val * (v a)^(-1 : ℤ),[a,b]) 1) = _rw [boundary_square φ v hv _ a b (comm a b hab) (by simp [ht_generator φ v hv])]simp only [edgeBoundary,Finsupp.linearCombination_single]simp only [zpow_neg_one,one_smul,map_sub,includeVertices_single,Subgroup.coe_mul,generator,List.headD_cons,List.tail_cons,mul_assoc,inv_mul_cancel,mul_one]include hv comm intheorem levelBoundary_include (c : φ.ker × Shape L 2 →₀ ℤ) :levelBoundary v (ht φ) (includeBasis L φ v root 2 c) =includeVertices (A := A) φ (edgeBoundary (generator L φ v root hv) c) := byinduction c using Finsupp.induction_linear with| zero => simp| add c d hc hd => simp only [map_add,hc,hd]| single p n =>have he : Finsupp.single p n = n • Finsupp.single p (1 : ℤ) := by simprw [he,map_smul,map_smul,map_smul,map_smul,levelBoundary_include_single L φ v root hv comm]/-- The literal based integral boundary of the crossing three-cubes. -/def triangleBoundary : (φ.ker × Shape L 3 →₀ ℤ) →ₗ[ℤ] (φ.ker × Shape L 2 →₀ ℤ) :=(projectBasis L φ v root hv 2).comp ((crossPart (ht φ)).comp ((boundary v).comp (includeBasis L φ v root 3)))include hv intheorem triangleBoundary_inclusion (c : φ.ker × Shape L 3 →₀ ℤ) :includeBasis L φ v root 2 (triangleBoundary L φ v root hv c) =crossPart (ht φ) (boundary v (includeBasis L φ v root 3 c)) := byapply include_project L φ v root hvexact crossPart_mem L (ht φ) (boundary_total L v (ht φ) (ht_step φ v hv)(crossing_total L (ht φ) (includeBasis_mem L φ v root hv 3 c)))include hv comm intheorem triangleBoundary_cycle (c : φ.ker × Shape L 3 →₀ ℤ) :triangleBoundary L φ v root hv c ∈ cycles (generator L φ v root hv) := byapply includeVertices_injective φrw [map_zero,← levelBoundary_include L φ v root hv comm,triangleBoundary_inclusion L φ v root hv]exact levelBoundary_cross_boundary L v (ht φ) (ht_step φ v hv) comm (includeBasis_mem L φ v root hv 3 c)variable (K : SimplicialChains.Contraction L)variable (exactTotal : ∀ {k : ℕ}, 0 < k → ∀ c, c ∈ total (G := G) L k → boundary v c = 0 →∃ b ∈ total (G := G) L (k+1), boundary v b = c)variable (dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3)include hv comm K exactTotal intheorem triangleBoundary_range : LinearMap.range (triangleBoundary L φ v root hv) =cycles (generator L φ v root hv) := byapply le_antisymm· rintro _ ⟨c,rfl⟩exact triangleBoundary_cycle L φ v root hv comm c· intro c hchave hz : levelBoundary v (ht φ) (includeBasis L φ v root 2 c) = 0 := byrw [levelBoundary_include L φ v root hv comm,LinearMap.mem_ker.mp hc,map_zero]obtain ⟨t,ht,hdt⟩ := level_cycle_bounds L v (ht φ) K (ht_step φ v hv) comm exactTotal_ (includeBasis_mem L φ v root hv 2 c) hzrw [← includeBasis_range L φ v root hv 3] at htobtain ⟨b,rfl⟩ := htrefine ⟨b,includeBasis_injective L φ v root hv 2 ?_⟩rwa [triangleBoundary_inclusion L φ v root hv]include hv comm K exactTotal dim intheorem triangleBoundary_injective : Function.Injective (triangleBoundary L φ v root hv) := bysuffices hz : ∀ c, triangleBoundary L φ v root hv c = 0 → c = 0 byintro c d heexact sub_eq_zero.mp (hz (c-d) (by simp only [map_sub,he,sub_self]))intro c hcapply includeBasis_injective L φ v root hv 3rw [map_zero]apply level_boundary_injective L v (ht φ) K (ht_step φ v hv) comm exactTotal dim_ (includeBasis_mem L φ v root hv 3 c)rw [← triangleBoundary_inclusion L φ v root hv,hc,map_zero]/-- Left translation on the actual ambient cube chains. -/def leftTranslate (g : G) : CubicalChains.Chains G A →ₗ[ℤ] CubicalChains.Chains G A :=Finsupp.lmapDomain ℤ ℤ (fun p => (g*p.1,p.2))omit [LinearOrder A] in@[simp] theorem leftTranslate_single (g q : G) (w : List A) (n : ℤ) :leftTranslate g (Finsupp.single (q,w) n) = Finsupp.single (g*q,w) n := by simp [leftTranslate]omit [LinearOrder A] intheorem leftTranslate_front (g : G) (a : A) (c : CubicalChains.Chains G A) :leftTranslate g (CubicalChains.front a c) = CubicalChains.front a (leftTranslate g c) := byinduction c using Finsupp.induction_linear with| zero => simp| add c d hc hd => simp only [map_add,hc,hd]| single p n => rcases p with ⟨q,w⟩; simpomit [LinearOrder A] intheorem leftTranslate_boundaryTerm (g q : G) (w : List A) :leftTranslate g (boundaryTerm v q w) = boundaryTerm v (g*q) w := byinduction w with| nil => simp| cons a w ih => simp only [boundaryTerm_cons,map_sub,leftTranslate_single,leftTranslate_front,ih,mul_assoc]omit [LinearOrder A] intheorem leftTranslate_boundary (g : G) (c : CubicalChains.Chains G A) :leftTranslate g (boundary v c) = boundary v (leftTranslate g c) := byinduction c using Finsupp.induction_linear with| zero => simp| add c d hc hd => simp only [map_add,hc,hd]| single p n => rcases p with ⟨q,w⟩; simp [leftTranslate_boundaryTerm]omit [LinearOrder A] intheorem leftTranslate_crossPart (g : φ.ker) (c : CubicalChains.Chains G A) :leftTranslate g.val (crossPart (ht φ) c) = crossPart (ht φ) (leftTranslate g.val c) := byinduction c using Finsupp.induction_linear with| zero => simp| add c d hc hd => simp only [map_add,hc,hd]| single p n =>rcases p with ⟨q,w⟩simp only [crossPart,select_single,leftTranslate_single,ht_mul,ht_ker,zero_add]split <;> simp_alltheorem includeBasis_translate (k : ℕ) (g : φ.ker) (c : φ.ker × Shape L k →₀ ℤ) :includeBasis L φ v root k (translateChains g c) = leftTranslate g.val (includeBasis L φ v root k c) := byinduction c using Finsupp.induction_linear with| zero => simp| add c d hc hd => simp only [map_add,hc,hd]| single p n =>rcases p with ⟨q,s⟩simp only [translateChains_single,includeBasis_single,leftTranslate_single,basisIndex,Subgroup.coe_mul,mul_assoc]include hv intheorem triangleBoundary_equivariant : ChainsEquivariant (triangleBoundary L φ v root hv) := byintro g capply includeBasis_injective L φ v root hv 2rw [triangleBoundary_inclusion L φ v root hv,includeBasis_translate,← leftTranslate_boundary,← leftTranslate_crossPart,includeBasis_translate,triangleBoundary_inclusion L φ v root hv]end EilenbergGanea.LevelBasisnamespace EilenbergGanea.LevelBasisvariable {V : Type} [LinearOrder V] (L : SimpleGraph V)def pairShape (a b : V) (hab : a < b) (hadj : L.Adj a b) : Shape L 2 :=⟨([a,b],-1),by simp [SimplicialChains.Valid,hab,hadj]⟩@[simp] theorem generator_pair (root a b : V) (hab : a < b) (hadj : L.Adj a b) :(generator L (height L) (artinGenerator L) root (height_generator L)(pairShape L a b hab hadj)).val = (artinGenerator L a)⁻¹ * artinGenerator L b := rfl/-- The actual oriented crossing-square edges generate precisely the height kernel. -/theorem generator_surjective (hconn : L.Preconnected) (root : V) :Function.Surjective (FreeGroup.lift (generator L (height L) (artinGenerator L) root (height_generator L))) := bylet f := FreeGroup.lift (generator L (height L) (artinGenerator L) root (height_generator L))let F := (height L).ker.subtype.comp fhave hgen : edgeGenerated L ≤ F.range := byapply (Subgroup.closure_le _).mprrintro x ⟨a,b,hadj,rfl⟩have hab : a ≠ b := L.ne_of_adj hadjrcases lt_or_gt_of_ne hab with hab | hab· refine ⟨(FreeGroup.of (pairShape L a b hab hadj))⁻¹,?_⟩change (f ((FreeGroup.of (pairShape L a b hab hadj))⁻¹)).val = _simp only [f,map_inv,FreeGroup.lift_apply_of,Subgroup.coe_inv,generator_pair,mul_inv_rev,inv_inv]exact (adjacent_generators_commute L hadj).inv_right.eq.symm· refine ⟨FreeGroup.of (pairShape L b a hab hadj.symm),?_⟩change (f (FreeGroup.of (pairShape L b a hab hadj.symm))).val = _simp only [f,FreeGroup.lift_apply_of,generator_pair]exact (adjacent_generators_commute L hadj).inv_right.eq.symmintro ghave he : g.val ∈ edgeGenerated L := by rw [edgeGenerated_eq_height_kernel L hconn root]; exact g.propertyobtain ⟨w,hw⟩ := hgen heexact ⟨w,Subtype.ext hw⟩end EilenbergGanea.LevelBasisnamespace EilenbergGanea.LevelBasisopen CubicalChains CubicalChains.HeightFiltrationvariable {V : Type} [LinearOrder V] [Fintype V] [Nonempty V] (L : SimpleGraph V)/-- The exactness input to the level slicing is the actual RAAG cube-chaincontraction, not an assumption about a classifying space. -/theorem artin_total_cycle_bounds {k : ℕ} (hk : 0 < k)(c : Chains (ArtinGroup L) V) (hc : c ∈ total (G := ArtinGroup L) L k)(hz : boundary (artinGenerator L) c = 0) :∃ b ∈ total (G := ArtinGroup L) L (k+1), boundary (artinGenerator L) b = c := byhave he : ∀ n, total (G := ArtinGroup L) L n = TraceWords.CubeDescents.positiveChains L n := byintro nsimp only [total,TraceWords.CubeDescents.positiveChains,SimplicialChains.Valid,and_assoc]rw [he] at hc ⊢exact TraceWords.CubeDescents.positive_cycle_bounds L hk c hc hz/-- Integral cd at most two for the genuine height kernel, from a genuinefinite augmented link contraction and the dimension of its flag complex. -/theorem artin_height_kernel_cd_le_two (root : V) (hconn : L.Preconnected)(K : SimplicialChains.Contraction L)(dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3) :cohomologicalDimension (height L).ker ≤ 2 := byexact projectiveDimension_le_two_of_boundary_basis(generator L (height L) (artinGenerator L) root (height_generator L))(generator_surjective L hconn root)(triangleBoundary L (height L) (artinGenerator L) root (height_generator L))(triangleBoundary_equivariant L (height L) (artinGenerator L) root (height_generator L))(triangleBoundary_injective L (height L) (artinGenerator L) root (height_generator L)(fun _ _ h => adjacent_generators_commute L h) K (artin_total_cycle_bounds L) dim)(triangleBoundary_range L (height L) (artinGenerator L) root (height_generator L)(fun _ _ h => adjacent_generators_commute L h) K (artin_total_cycle_bounds L))end EilenbergGanea.LevelBasisnamespace EilenbergGanea.LevelBasisopen CubicalChains CubicalChains.LevelExact CubicalChains.HeightFiltrationvariable {G A : Type} [Group G] [LinearOrder A]variable (L : SimpleGraph A) (φ : G →* Multiplicative ℤ) (v : A → G) (root : A)variable (hv : ∀ a, φ (v a) = Multiplicative.ofAdd (1 : ℤ))variable (comm : ∀ a b, L.Adj a b → Commute (v a) (v b))instance shape_finite [Fintype A] (k : ℕ) : Finite (Shape L k) := bylet f : Shape L k → List.Vector A k × Fin k := fun s =>(⟨s.val.1,s.property.2.1⟩,⟨(-s.val.2).toNat,byhave hn := s.property.2.2.1have hm := s.property.2.2.2omega⟩)apply Finite.of_injective fintro s t happly Subtype.extapply Prod.ext· exact congrArg (fun p : List.Vector A k × Fin k => p.1.val) h· have he := congrArg (fun p : List.Vector A k × Fin k => p.2.val) hhave hs := s.property.2.2.1have ht := t.property.2.2.1dsimp [f] at heomeganoncomputable instance shape_fintype [Fintype A] (k : ℕ) : Fintype (Shape L k) := Fintype.ofFinite _def edgeShape (a b : A) (hab : SimplicialChains.Valid L [a,b]) : Shape L 2 :=⟨([a,b],-1),hab,rfl,by norm_num,by norm_num⟩def triangleShape (a b c : A) (habc : SimplicialChains.Valid L [a,b,c])(n : ℤ) (hn : n = -1 ∨ n = -2) : Shape L 3 :=⟨([a,b,c],n),habc,rfl,by omega,by norm_num; omega⟩@[simp] theorem generator_edgeShape (a b : A) (hab : SimplicialChains.Valid L [a,b]) :(generator L φ v root hv (edgeShape L a b hab) : G) = (v a)⁻¹ * v b := rfltheorem valid_triangle_edges {a b c : A} (h : SimplicialChains.Valid L [a,b,c]) :SimplicialChains.Valid L [a,b] ∧ SimplicialChains.Valid L [a,c] ∧SimplicialChains.Valid L [b,c] := bysimp [SimplicialChains.Valid] at h ⊢tautoinclude comm intheorem edge_values_compose (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) :((v a)⁻¹ * v b) * ((v b)⁻¹ * v c) = (v a)⁻¹ * v c ∧((v b)⁻¹ * v c) * ((v a)⁻¹ * v b) = (v a)⁻¹ * v c := byhave he := valid_triangle_edges L hhave ha : L.Adj a b := by simpa [SimplicialChains.Valid] using he.1.2have hb : L.Adj a c := by simpa [SimplicialChains.Valid] using he.2.1.2have hc : L.Adj b c := by simpa [SimplicialChains.Valid] using he.2.2.2constructor· group· calc((v b)⁻¹ * v c) * ((v a)⁻¹ * v b) = (v a)⁻¹ * ((v b)⁻¹ * v c) * v b := byrw [← mul_assoc,((comm a b ha).inv_left.inv_right.mul_right (comm a c hb).inv_left).symm.eq]_ = (v a)⁻¹ * v c := byrw [mul_assoc,mul_assoc,← (comm b c hc).eq,inv_mul_cancel_left]def lowerTriangleWord (ab ac bc : Shape L 2) : FreeGroup (Shape L 2) :=FreeGroup.of ac * (FreeGroup.of bc)⁻¹ * (FreeGroup.of ab)⁻¹def upperTriangleWord (ab ac bc : Shape L 2) : FreeGroup (Shape L 2) :=FreeGroup.of ab * (FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) *(FreeGroup.of ab)⁻¹include comm intheorem triangle_words_trivial (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) :let e := valid_triangle_edges L hlet ab := edgeShape L a b e.1let ac := edgeShape L a c e.2.1let bc := edgeShape L b c e.2.2wordValue (generator L φ v root hv) (lowerTriangleWord L ab ac bc) = 1 ∧wordValue (generator L φ v root hv) (upperTriangleWord L ab ac bc) = 1 := bydsimp onlyhave he := edge_values_compose L v comm a b c hconstructor <;> apply Subtype.ext· simp only [lowerTriangleWord,map_mul,map_inv,wordValue,FreeGroup.lift_apply_of,Subgroup.coe_mul,Subgroup.coe_inv,generator_edgeShape,OneMemClass.coe_one]group· simp only [upperTriangleWord,map_mul,map_inv,wordValue,FreeGroup.lift_apply_of,Subgroup.coe_mul,Subgroup.coe_inv,generator_edgeShape,OneMemClass.coe_one]rw [he.2,mul_inv_cancel,mul_one,mul_inv_cancel]include hv intheorem triangle_boundary_low (g : φ.ker) (a b c : A)(h : SimplicialChains.Valid L [a,b,c]) :let e := valid_triangle_edges L hlet ab := edgeShape L a b e.1let ac := edgeShape L a c e.2.1let bc := edgeShape L b c e.2.2triangleBoundary L φ v root hv(Finsupp.single (g,triangleShape L a b c h (-1) (Or.inl rfl)) 1) =Finsupp.single (g,ac) 1 - Finsupp.single (g,ab) 1 -Finsupp.single (g * generator L φ v root hv ab,bc) 1 := bydsimp onlyapply includeBasis_injective L φ v root hv 2rw [triangleBoundary_inclusion L φ v root hv]simp only [map_sub,includeBasis_single,basisIndex,triangleShape,edgeShape,List.headD_cons,zpow_neg_one,Subgroup.coe_mul,generator,List.tail_cons]simp only [boundary_single,one_smul,boundaryTerm_cons,boundaryTerm_nil,map_zero,sub_zero,map_sub,front_single,crossPart,select,Finsupp.linearCombination_single,ht_mul,ht_ker,ht_inv,ht_generator φ v hv,List.length_cons,List.length_nil]norm_numsimp only [mul_assoc,mul_inv_cancel,mul_one]abelinclude hv comm intheorem triangle_boundary_high (g : φ.ker) (a b c : A)(h : SimplicialChains.Valid L [a,b,c]) :let e := valid_triangle_edges L hlet ab := edgeShape L a b e.1let ac := edgeShape L a c e.2.1let bc := edgeShape L b c e.2.2triangleBoundary L φ v root hv(Finsupp.single (g,triangleShape L a b c h (-2) (Or.inr rfl)) 1) =Finsupp.single (g * generator L φ v root hv ab,bc) 1 -Finsupp.single (g * generator L φ v root hv ab,ac) 1 +Finsupp.single (g * generator L φ v root hv ac,ab) 1 := bydsimp onlyhave eh := valid_triangle_edges L hhave hab : L.Adj a b := by simpa [SimplicialChains.Valid] using eh.1.2have hac : L.Adj a c := by simpa [SimplicialChains.Valid] using eh.2.1.2apply includeBasis_injective L φ v root hv 2rw [triangleBoundary_inclusion L φ v root hv]simp only [map_sub,map_add,includeBasis_single,basisIndex,triangleShape,edgeShape,List.headD_cons,Subgroup.coe_mul,generator,List.tail_cons]simp only [boundary_single,one_smul,boundaryTerm_cons,boundaryTerm_nil,map_zero,sub_zero,map_sub,front_single,crossPart,select,map_sub,Finsupp.linearCombination_single,ht_mul,ht_ker,ht_zpow,ht_generator φ v hv,List.length_cons,List.length_nil]norm_numhave hb : (v a)^(-2 : ℤ) * v b = (v a)⁻¹ * v b * (v a)⁻¹ := bycalc(v a)^(-2 : ℤ) * v b = (v a)⁻¹ * ((v a)⁻¹ * v b) := by group_ = (v a)⁻¹ * (v b * (v a)⁻¹) := congrArg ((v a)⁻¹ * ·) (comm a b hab).inv_left.eq_ = _ := (mul_assoc _ _ _).symmhave hc : (v a)^(-2 : ℤ) * v c = (v a)⁻¹ * v c * (v a)⁻¹ := bycalc(v a)^(-2 : ℤ) * v c = (v a)⁻¹ * ((v a)⁻¹ * v c) := by group_ = (v a)⁻¹ * (v c * (v a)⁻¹) := congrArg ((v a)⁻¹ * ·) (comm a c hac).inv_left.eq_ = _ := (mul_assoc _ _ _).symmhave ha : (v a)^(-2 : ℤ) * v a = (v a)⁻¹ := by groupsimp only [zpow_neg,zpow_ofNat] at ha hb hcsimp only [mul_assoc] at hb hcsimp only [mul_assoc,ha,hb,hc,mul_inv_cancel,mul_one]abelsection WordChainsvariable (w : Shape L 2 → G) (ab ac bc : Shape L 2)theorem lowerTriangleWord_chain (habc : w ab * w bc = w ac) (g : G) :pathChain w (lowerTriangleWord L ab ac bc) g =Finsupp.single (g,ac) 1 - Finsupp.single (g,ab) 1 -Finsupp.single (g * w ab,bc) 1 := bysimp only [lowerTriangleWord,pathChain_mul,pathChain_inv,pathChain_of,map_mul,map_inv,wordValue,FreeGroup.lift_apply_of]rw [← habc]simp only [mul_assoc,mul_inv_cancel,mul_one]abeltheorem upperTriangleWord_chain (habc : w ab * w bc = w ac)(hbac : w bc * w ab = w ac) (g : G) :pathChain w (upperTriangleWord L ab ac bc) g =Finsupp.single (g * w ab,bc) 1 - Finsupp.single (g * w ab,ac) 1 +Finsupp.single (g * w ac,ab) 1 := byhave hr : wordValue w (FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) = 1 := bysimp only [wordValue,map_mul,map_inv,FreeGroup.lift_apply_of,hbac,mul_inv_cancel]rw [upperTriangleWord,pathChain_conjugate w _ _ hr]simp only [pathChain_mul,pathChain_inv,pathChain_of,map_mul,wordValue,FreeGroup.lift_apply_of]rw [hbac]simp only [mul_assoc,habc,mul_inv_cancel,mul_one]abelend WordChainsinclude comm intheorem triangle_words_chain (g : φ.ker) (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) :let e := valid_triangle_edges L hlet ab := edgeShape L a b e.1let ac := edgeShape L a c e.2.1let bc := edgeShape L b c e.2.2pathChain (generator L φ v root hv) (lowerTriangleWord L ab ac bc) g =triangleBoundary L φ v root hv(Finsupp.single (g,triangleShape L a b c h (-1) (Or.inl rfl)) 1) ∧pathChain (generator L φ v root hv) (upperTriangleWord L ab ac bc) g =triangleBoundary L φ v root hv(Finsupp.single (g,triangleShape L a b c h (-2) (Or.inr rfl)) 1) := bydsimp onlyhave he := edge_values_compose L v comm a b c hhave h₁ : generator L φ v root hv (edgeShape L a b (valid_triangle_edges L h).1) *generator L φ v root hv (edgeShape L b c (valid_triangle_edges L h).2.2) =generator L φ v root hv (edgeShape L a c (valid_triangle_edges L h).2.1) :=Subtype.ext he.1have h₂ : generator L φ v root hv (edgeShape L b c (valid_triangle_edges L h).2.2) *generator L φ v root hv (edgeShape L a b (valid_triangle_edges L h).1) =generator L φ v root hv (edgeShape L a c (valid_triangle_edges L h).2.1) :=Subtype.ext he.2constructor· rw [lowerTriangleWord_chain L _ _ _ _ h₁,triangle_boundary_low L φ v root hv]· rw [upperTriangleWord_chain L _ _ _ _ h₁ h₂,triangle_boundary_high L φ v root hv comm]def triangleWordList : (w : List A) → SimplicialChains.Valid L w → ℤ → FreeGroup (Shape L 2)| [a,b,c],h,n =>let e := valid_triangle_edges L hif n = -1 thenlowerTriangleWord L (edgeShape L a b e.1) (edgeShape L a c e.2.1) (edgeShape L b c e.2.2)else upperTriangleWord L (edgeShape L a b e.1) (edgeShape L a c e.2.1) (edgeShape L b c e.2.2)| _,_,_ => 1def triangleWord (s : Shape L 3) : FreeGroup (Shape L 2) :=triangleWordList L s.val.1 s.property.1 s.val.2theorem shape_three_form (s : Shape L 3) :∃ (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) (n : ℤ) (hn : n = -1 ∨ n = -2),s = triangleShape L a b c h n hn := byobtain ⟨a,b,c,hw⟩ := List.length_eq_three.mp s.property.2.1have hn : s.val.2 = -1 ∨ s.val.2 = -2 := byhave h₁ := s.property.2.2.1have h₂ := s.property.2.2.2norm_num at h₂omegarefine ⟨a,b,c,hw ▸ s.property.1,s.val.2,hn,?_⟩exact Subtype.ext (Prod.ext hw rfl)include comm intheorem triangleWord_trivial (s : Shape L 3) :wordValue (generator L φ v root hv) (triangleWord L s) = 1 := byobtain ⟨a,b,c,h,n,hn,rfl⟩ := shape_three_form L srcases hn with rfl | rfl· simpa [triangleWord,triangleWordList,triangleShape] using(triangle_words_trivial L φ v root hv comm a b c h).1· simpa [triangleWord,triangleWordList,triangleShape] using(triangle_words_trivial L φ v root hv comm a b c h).2include comm intheorem triangleWord_chain (s : Shape L 3) (g : φ.ker) :pathChain (generator L φ v root hv) (triangleWord L s) g =triangleBoundary L φ v root hv (Finsupp.single (g,s) 1) := byobtain ⟨a,b,c,h,n,hn,rfl⟩ := shape_three_form L srcases hn with rfl | rfl· simpa [triangleWord,triangleWordList,triangleShape] using(triangle_words_chain L φ v root hv comm g a b c h).1· simpa [triangleWord,triangleWordList,triangleShape] using(triangle_words_chain L φ v root hv comm g a b c h).2end EilenbergGanea.LevelBasisnamespace EilenbergGanea.LevelBasisopen CubicalChains CubicalChains.HeightFiltrationvariable {G A : Type} [Group G] [LinearOrder A]variable (L : SimpleGraph A) (φ : G →* Multiplicative ℤ) (v : A → G) (root : A)variable (hv : ∀ a, φ (v a) = Multiplicative.ofAdd (1 : ℤ))variable (comm : ∀ a b, L.Adj a b → Commute (v a) (v b))include comm intheorem triangleBoundary_eq_relatorChainMap :triangleBoundary L φ v root hv =relatorChainMap (generator L φ v root hv) (triangleWord L) := byapply Finsupp.lhom_ext'intro papply LinearMap.extintro nsimp only [LinearMap.coe_comp,Function.comp_apply,Finsupp.lsingle_apply,relatorChainMap,Finsupp.linearCombination_single]have he : Finsupp.single p n = n • Finsupp.single p (1 : ℤ) := by simprw [he,map_smul,← triangleWord_chain L φ v root hv comm p.2 p.1]variable (K : SimplicialChains.Contraction L)variable (exactTotal : ∀ {k : ℕ}, 0 < k → ∀ c, c ∈ total (G := G) L k → boundary v c = 0 →∃ b ∈ total (G := G) L (k+1), boundary v b = c)variable (dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3)noncomputable def triangleBasis : (φ.ker × Shape L 3 →₀ ℤ) ≃ₗ[ℤ]cycles (generator L φ v root hv) :=LinearEquiv.ofBijective((triangleBoundary L φ v root hv).codRestrict (cycles (generator L φ v root hv))(triangleBoundary_cycle L φ v root hv comm))⟨fun c d h => triangleBoundary_injective L φ v root hv comm K exactTotal dim(congrArg Subtype.val h),fun c => byhave hc : c.val ∈ LinearMap.range (triangleBoundary L φ v root hv) := byrw [triangleBoundary_range L φ v root hv comm K exactTotal]exact c.propertyobtain ⟨b,hb⟩ := hcexact ⟨b,Subtype.ext hb⟩⟩theorem triangleBasis_value (c : φ.ker × Shape L 3 →₀ ℤ) :(triangleBasis L φ v root hv comm K exactTotal dim c : φ.ker × Shape L 2 →₀ ℤ) =relatorChainMap (generator L φ v root hv) (triangleWord L) c := bychange triangleBoundary L φ v root hv c = _rw [triangleBoundary_eq_relatorChainMap L φ v root hv comm]end EilenbergGanea.LevelBasisnamespace EilenbergGanea.LevelBasisopen LevelTransportvariable {V : Type} [LinearOrder V] (L : SimpleGraph V) (root : V) (N : ℕ)noncomputable def levelEquiv : (height L).ker ≃ NegativeLevel L N wheretoFun := fun g => ⟨(artinGenerator L root)⁻¹ ^ N * g.val,bysimp only [map_mul,map_pow,map_inv,height_generator]rw [show height L g.val = 1 from g.property,mul_one]change N • (-1 : ℤ) = -(N : ℤ)simp⟩invFun := fun g => ⟨artinGenerator L root ^ N * g.val,bychange (height L (artinGenerator L root ^ N * g.val)).toAdd = 0simp only [map_mul,map_pow,height_generator]change N • (1 : ℤ) + (height L g.val).toAdd = 0rw [g.property]simp⟩left_inv := fun g => Subtype.ext (by dsimp; group)right_inv := fun g => Subtype.ext (by dsimp; group)def basedLabel (a : NegativeLevel L N → V → V → SU2)(g : (height L).ker) (s : Shape L 2) : SU2 :=a (levelEquiv L root N g) (s.val.1.tail.headD root) (s.val.1.headD root)@[simp] theorem basedLabel_edge (a : NegativeLevel L N → V → V → SU2)(g : (height L).ker) (q r : V) (h : SimplicialChains.Valid L [q,r]) :basedLabel L root N a g (edgeShape L q r h) = a (levelEquiv L root N g) r q := rfltheorem levelEquiv_edge (g : (height L).ker) (q r : V)(h : SimplicialChains.Valid L [q,r]) :levelEquiv L root N(g * generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h)) =edgeVertex L N (levelEquiv L root N g) r q := byhave ha : L.Adj q r := by simpa [SimplicialChains.Valid] using h.2apply Subtype.extsimp only [levelEquiv,Equiv.coe_fn_mk,Subgroup.coe_mul,generator_edgeShape,edgeVertex]rw [mul_assoc, (adjacent_generators_commute L ha).inv_left.eq]grouptheorem shape_two_presentation (s : Shape L 2) :∃ (q r : V) (h : SimplicialChains.Valid L [q,r]), s = edgeShape L q r h := byobtain ⟨q,r,hw⟩ := List.length_eq_two.mp s.property.2.1have hn : s.val.2 = -1 := byhave h₁ := s.property.2.2.1have h₂ := s.property.2.2.2norm_num at h₂omegarefine ⟨q,r,hw ▸ s.property.1,?_⟩exact Subtype.ext (Prod.ext hw hn)theorem levelEquiv_edge_inv (g : (height L).ker) (q r : V)(h : SimplicialChains.Valid L [q,r]) :levelEquiv L root N(g * (generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h))⁻¹) =edgeVertex L N (levelEquiv L root N g) q r := byhave he := levelEquiv_edge L root N(g * (generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h))⁻¹)q r hsimp only [inv_mul_cancel_right] at hesimpa only [edgeVertex_reverse] using congrArg (fun x => edgeVertex L N x q r) he.symmvariable (a : NegativeLevel L N → V → V → SU2)variable (rev : ∀ g q r, a (edgeVertex L N g q r) r q = (a g q r)⁻¹)include rev intheorem basedLabel_inv_edge (g : (height L).ker) (q r : V)(h : SimplicialChains.Valid L [q,r]) :(basedLabel L root N a(g * (generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h))⁻¹)(edgeShape L q r h))⁻¹ = a (levelEquiv L root N g) q r := byrw [basedLabel_edge,levelEquiv_edge_inv,rev,inv_inv]def orientedWord (q r : V) (h : L.Adj q r) : FreeGroup (Shape L 2) :=if hlt : q < r then(FreeGroup.of (edgeShape L q r (by simpa [SimplicialChains.Valid] using And.intro hlt h)))⁻¹elseFreeGroup.of (edgeShape L r q (byhave hlt' : r < q := lt_of_le_of_ne (le_of_not_gt hlt) (Ne.symm (L.ne_of_adj h))simpa [SimplicialChains.Valid] using And.intro hlt' h.symm))theorem orientedWord_value (q r : V) (h : L.Adj q r) :(wordValue (generator L (height L) (artinGenerator L) root (height_generator L))(orientedWord L q r h) : ArtinGroup L) =artinGenerator L q * (artinGenerator L r)⁻¹ := byunfold orientedWordsplit_ifs· simp only [map_inv,wordValue,FreeGroup.lift_apply_of,Subgroup.coe_inv,generator_edgeShape,mul_inv_rev,inv_inv]exact (adjacent_generators_commute L h).inv_right.symm.eq· simp only [wordValue,FreeGroup.lift_apply_of,generator_edgeShape]exact (adjacent_generators_commute L h).inv_right.symm.eqtheorem levelEquiv_orientedWord (g : (height L).ker) (q r : V) (h : L.Adj q r) :levelEquiv L root N(g * wordValue (generator L (height L) (artinGenerator L) root (height_generator L))(orientedWord L q r h)) = edgeVertex L N (levelEquiv L root N g) q r := byapply Subtype.extsimp only [levelEquiv,Equiv.coe_fn_mk,Subgroup.coe_mul,orientedWord_value,edgeVertex,mul_assoc]include rev intheorem orientedWord_product (g : (height L).ker) (q r : V) (h : L.Adj q r) :pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a) (orientedWord L q r h) g = a (levelEquiv L root N g) q r := byunfold orientedWordsplit_ifs· simp only [pathProduct_inv,pathProduct_of,wordValue,FreeGroup.lift_apply_of]exact basedLabel_inv_edge L root N a rev g q r _· exact pathProduct_of _ _ _ _include rev intheorem inverse_edgeWord_product (g : (height L).ker) (q r : V)(h : SimplicialChains.Valid L [q,r]) :pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a) (FreeGroup.of (edgeShape L q r h))⁻¹ g =a (levelEquiv L root N g) q r := bysimp only [pathProduct_inv,pathProduct_of,wordValue,FreeGroup.lift_apply_of]exact basedLabel_inv_edge L root N a rev g q r hvariable (tri : ∀ g₀ g₁ g₂ q₀ r₀ q₁ r₁ q₂ r₂,edgeVertex L N g₀ q₀ r₀ = g₁ → edgeVertex L N g₁ q₁ r₁ = g₂ →edgeVertex L N g₂ q₂ r₂ = g₀ → a g₀ q₀ r₀ * a g₁ q₁ r₁ * a g₂ q₂ r₂ = 1)include rev tri intheorem lowerTriangleWord_product (g : (height L).ker) (q r s : V)(h : SimplicialChains.Valid L [q,r,s]) :let e := valid_triangle_edges L hpathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a)(lowerTriangleWord L (edgeShape L q r e.1) (edgeShape L q s e.2.1)(edgeShape L r s e.2.2)) g = 1 := bylet gen := generator L (height L) (artinGenerator L) root (height_generator L)let e := valid_triangle_edges L hlet ab := edgeShape L q r e.1let ac := edgeShape L q s e.2.1let bc := edgeShape L r s e.2.2have he : gen ab * gen bc = gen ac :=Subtype.ext (edge_values_compose L (artinGenerator L)(fun _ _ hh => adjacent_generators_commute L hh) q r s h).1have hc : gen ac * (gen bc)⁻¹ = gen ab := by rw [← he]; grouphave hc' : g * gen ac * (gen bc)⁻¹ = g * gen ab := by rw [mul_assoc,hc]have ha : g * gen ab * (gen ab)⁻¹ = g := by grouphave T := tri (levelEquiv L root N g) (levelEquiv L root N (g * gen ac))(levelEquiv L root N (g * gen ab)) s q r s q r(levelEquiv_edge L root N g q s e.2.1).symm(by rw [← levelEquiv_edge_inv L root N (g * gen ac) r s e.2.2]; exact congrArg _ hc')(by rw [← levelEquiv_edge_inv L root N (g * gen ab) q r e.1]; exact congrArg _ ha)change pathProduct gen (basedLabel L root N a) (lowerTriangleWord L ab ac bc) g = 1simp only [lowerTriangleWord,pathProduct_mul,pathProduct_of,map_mul,map_inv,wordValue,FreeGroup.lift_apply_of]rw [hc]rw [inverse_edgeWord_product L root N a rev _ r s e.2.2,inverse_edgeWord_product L root N a rev _ q r e.1]exact Tinclude rev tri intheorem upperInnerWord_product (g : (height L).ker) (q r s : V)(h : SimplicialChains.Valid L [q,r,s]) :let e := valid_triangle_edges L hpathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a)(FreeGroup.of (edgeShape L r s e.2.2) * FreeGroup.of (edgeShape L q r e.1) *(FreeGroup.of (edgeShape L q s e.2.1))⁻¹) g = 1 := bylet gen := generator L (height L) (artinGenerator L) root (height_generator L)let e := valid_triangle_edges L hlet ab := edgeShape L q r e.1let ac := edgeShape L q s e.2.1let bc := edgeShape L r s e.2.2have he : gen bc * gen ab = gen ac :=Subtype.ext (edge_values_compose L (artinGenerator L)(fun _ _ hh => adjacent_generators_commute L hh) q r s h).2have hc : g * gen bc * gen ab = g * gen ac := by rw [mul_assoc,he]have ha : g * gen ac * (gen ac)⁻¹ = g := by grouphave T := tri (levelEquiv L root N g) (levelEquiv L root N (g * gen bc))(levelEquiv L root N (g * gen ac)) s r r q q s(levelEquiv_edge L root N g r s e.2.2).symm(by rw [← levelEquiv_edge L root N (g * gen bc) q r e.1]; exact congrArg _ hc)(by rw [← levelEquiv_edge_inv L root N (g * gen ac) q s e.2.1]; exact congrArg _ ha)change pathProduct gen (basedLabel L root N a)(FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) g = 1simp only [pathProduct_mul,pathProduct_of,map_mul,wordValue,FreeGroup.lift_apply_of]rw [he,inverse_edgeWord_product L root N a rev _ q s e.2.1]exact Tinclude rev tri intheorem upperTriangleWord_product (g : (height L).ker) (q r s : V)(h : SimplicialChains.Valid L [q,r,s]) :let e := valid_triangle_edges L hpathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a)(upperTriangleWord L (edgeShape L q r e.1) (edgeShape L q s e.2.1)(edgeShape L r s e.2.2)) g = 1 := bylet gen := generator L (height L) (artinGenerator L) root (height_generator L)let e := valid_triangle_edges L hlet ab := edgeShape L q r e.1let ac := edgeShape L q s e.2.1let bc := edgeShape L r s e.2.2have he : gen bc * gen ab = gen ac :=Subtype.ext (edge_values_compose L (artinGenerator L)(fun _ _ hh => adjacent_generators_commute L hh) q r s h).2have hr : wordValue gen (FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) = 1 := bysimp only [map_mul,map_inv,wordValue,FreeGroup.lift_apply_of,he,mul_inv_cancel]change pathProduct gen (basedLabel L root N a) (upperTriangleWord L ab ac bc) g = 1rw [upperTriangleWord,pathProduct_conjugate_loop gen _ _ _ hr]rw [upperInnerWord_product L root N a rev tri _ q r s h]groupinclude rev tri intheorem triangleWord_product (s : Shape L 3) (g : (height L).ker) :pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a) (triangleWord L s) g = 1 := byobtain ⟨q,r,t,h,n,hn,rfl⟩ := shape_three_form L srcases hn with rfl | rfl· simpa [triangleWord,triangleWordList,triangleShape] usinglowerTriangleWord_product L root N a rev tri g q r t h· simpa [triangleWord,triangleWordList,triangleShape] usingupperTriangleWord_product L root N a rev tri g q r t hvariable {L N}def walkWord {g k : NegativeLevel L N} : Walk L N g k → FreeGroup (Shape L 2)| .nil _ => 1| .cons q r h p => orientedWord L q r h * walkWord ptheorem walkWord_endpoint {g k : NegativeLevel L N} (p : Walk L N g k)(x : (height L).ker) (hx : levelEquiv L root N x = g) :levelEquiv L root N(x * wordValue (generator L (height L) (artinGenerator L) root (height_generator L))(walkWord p)) = k := byinduction p generalizing x with| nil g => simpa [walkWord] using hx| @cons g k q r h p ih =>simp only [walkWord,map_mul,← mul_assoc]exact ih _ ((levelEquiv_orientedWord L root N x q r h).trans(congrArg (fun t => edgeVertex L N t q r) hx))include rev intheorem walkWord_product {g k : NegativeLevel L N} (p : Walk L N g k)(x : (height L).ker) (hx : levelEquiv L root N x = g) :pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a) (walkWord p) x = p.eval a := byinduction p generalizing x with| nil g => simp [walkWord,Walk.eval]| @cons g k q r h p ih =>rw [walkWord,pathProduct_mul,orientedWord_product L root N a rev x q r h]rw [ih _ ((levelEquiv_orientedWord L root N x q r h).trans(congrArg (fun t => edgeVertex L N t q r) hx)),hx]rflinclude rev intheorem nontrivial_word_of_walk {g : NegativeLevel L N} (p : Walk L N g g)(hp : p.eval a ≠ 1) :∃ (w : FreeGroup (Shape L 2)) (x : (height L).ker),wordValue (generator L (height L) (artinGenerator L) root (height_generator L)) w = 1 ∧pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))(basedLabel L root N a) w x ≠ 1 := bylet x := (levelEquiv L root N).symm ghave hx : levelEquiv L root N x = g := (levelEquiv L root N).apply_symm_apply grefine ⟨walkWord p,x,?_,?_⟩· have he := walkWord_endpoint root p x hxhave he' := (levelEquiv L root N).injective (he.trans hx.symm)exact mul_left_cancel (he'.trans (mul_one x).symm)· rwa [walkWord_product root a rev p x hx]end EilenbergGanea.LevelBasisnamespace EilenbergGanea.LevelBasisopen LevelTransportvariable {V : Type} [LinearOrder V] [Fintype V] [Nonempty V] (L : SimpleGraph V)variable [Group.ResiduallyFinite (height L).ker]variable (root : V) (hconn : L.Preconnected)variable (K : SimplicialChains.Contraction L)variable (dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3)include root hconn K dim in/-- The source obstruction's algebraic endpoint, with no cardinal bound onan alleged presentation. Its geometric premise must still be derived from anordinary two-dimensional classifying CW space. -/theorem no_boundary_basis_presentation(small : ∀ ε : ℝ, 0 < ε →∃ N : ℕ, 1 < N ∧ ∃ a : NegativeLevel L N → V → V → SU2,(∀ g q r, a (edgeVertex L N g q r) r q = (a g q r)⁻¹) ∧(∀ g q r, dist (a g q r) 1 < ε) ∧(∀ g₀ g₁ g₂ q₀ r₀ q₁ r₁ q₂ r₂,edgeVertex L N g₀ q₀ r₀ = g₁ →edgeVertex L N g₁ q₁ r₁ = g₂ →edgeVertex L N g₂ q₂ r₂ = g₀ →a g₀ q₀ r₀ * a g₁ q₁ r₁ * a g₂ q₂ r₂ = 1) ∧∃ (g : NegativeLevel L N) (p : Walk L N g g), p.eval a ≠ 1){A R : Type*} (a₀ : A → (height L).ker)(ha₀ : Function.Surjective (wordValue a₀))(r₀ : R → FreeGroup A) (hr₀ : ∀ i, wordValue a₀ (r₀ i) = 1)(hp₀ : (wordValue a₀).ker = Subgroup.normalClosure (Set.range r₀))(E : BasedChains (height L).ker R ≃ₗ[ℤ] cycles a₀)(hE : ∀ c, (E c : BasedChains (height L).ker A) = relatorChainMap a₀ r₀ c) : False := bylet gen := generator L (height L) (artinGenerator L) root (height_generator L)let comm := fun q r h => @adjacent_generators_commute V L q r hlet B := triangleBasis L (height L) (artinGenerator L) root (height_generator L)comm K (artin_total_cycle_bounds L) dimobtain ⟨η,hη,hηa⟩ := boundary_basis_small_transport gen(generator_surjective L hconn root) (triangleWord L)(triangleWord_trivial L (height L) (artinGenerator L) root (height_generator L) comm)B (triangleBasis_value L (height L) (artinGenerator L) root (height_generator L)comm K (artin_total_cycle_bounds L) dim) a₀ ha₀ r₀ hr₀ hp₀ E hEobtain ⟨N,_,a,ha,hb,ht,g,p,hp⟩ := small η hηobtain ⟨w,x,hw,hx⟩ := nontrivial_word_of_walk root a ha p hpapply hxexact hηa (basedLabel L root N a)(fun x s => bysimpa only [basedLabel,Subtype.dist_eq,dist_eq_norm,OneMemClass.coe_one] usinghb (levelEquiv L root N x) (s.val.1.tail.headD root) (s.val.1.headD root))(triangleWord_product L root N a ha ht) w hw xend EilenbergGanea.LevelBasisendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626import OAI.Topology.EilenbergGanea.AffineTransportimport OAI.Topology.EilenbergGanea.SeedConnectionnamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiffnamespace EilenbergGaneanamespace LevelTransportopen TraceWords AffineTransportvariable {V : Type*} [Fintype V] [LinearOrder V] (L : SimpleGraph V)variable (hdim : ∀ s : Finset V, (s : Set V).Pairwise L.Adj → s.card ≤ 3)def point (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g)) : TrianglePoint V :=⟨artinDirection L g,byapply mem_triangleSet.mprrefine ⟨(traceCounts L (artinNormalTrace L g)).support,hdim _ (traceCounts_support_clique L _),⟨?_,?_⟩,?_⟩· exact traceDirection_nonneg L _· exact traceDirection_sum L hg· intro v hvsimp only [Finsupp.notMem_support_iff] at hvsimp [artinDirection,traceDirection,hv]⟩@[simp] theorem point_val (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g)) :(point L hdim g hg : V → ℝ) = artinDirection L g := rfltheorem point_mem_support (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g)){v : V} (hv : (point L hdim g hg : V → ℝ) v ≠ 0) :v ∈ (traceCounts L (artinNormalTrace L g)).support := byby_contra hhave he := Finsupp.notMem_support_iff.mp hexact hv (by simp [point,artinDirection,traceDirection,he])theorem point_clique (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g)) :CliquePoint L (point L hdim g hg) := byintro a ha v hvby_cases hav : a = v· exact Or.inl hav· exact Or.inr (traceCounts_support_clique L _(point_mem_support L hdim g hg ha) (point_mem_support L hdim g hg hv) hav)/-- Both hypotheses refer to actual reduced Artin lengths, not an assumed word metric. -/theorem point_step (g : ArtinGroup L) (x : Letter V)(hg : 0 < traceLength L (artinNormalTrace L g))(hgx : 0 < traceLength L (artinNormalTrace L (g * letterValue (artinGenerator L) x)))(N : ℕ) (hNg : N ≤ traceLength L (artinNormalTrace L g))(hNgx : N ≤ traceLength L (artinNormalTrace L (g * letterValue (artinGenerator L) x))) :Compatible L (point L hdim g hg) (point L hdim (g * letterValue (artinGenerator L) x) hgx) ∧dist (point L hdim g hg) (point L hdim (g * letterValue (artinGenerator L) x) hgx) ≤2 / (N+1 : ℝ) := byclassicalobtain ⟨hs,n,_,hn,hbd⟩ := artinDirection_right_step L g x hg hgxhave hNn : N ≤ n := by rcases hn with ⟨he,_⟩ | ⟨he,_⟩ <;> omegaconstructor· intro v w hv hwby_cases he : v = w· exact Or.inl he· apply Or.inrapply hs _ _ he· rcases hv with hv | hv· exact Finset.mem_union_left _ (point_mem_support L hdim g hg hv)· exact Finset.mem_union_right _ (point_mem_support L hdim _ hgx hv)· rcases hw with hw | hw· exact Finset.mem_union_left _ (point_mem_support L hdim g hg hw)· exact Finset.mem_union_right _ (point_mem_support L hdim _ hgx hw)· have hc : (N : ℝ) + 1 ≤ (n : ℝ) + 1 := by exact_mod_cast Nat.add_le_add_right hNn 1have hd : 0 < (N : ℝ) + 1 := by positivityhave hfrac : 2 / (n+1 : ℝ) ≤ 2 / (N+1 : ℝ) :=div_le_div_of_nonneg_left (by norm_num) hd hcapply le_trans ?_ hfracchange dist (artinDirection L g) (artinDirection L (g * letterValue (artinGenerator L) x)) ≤ _apply (dist_pi_le_iff (by positivity)).mprintro vrw [Real.dist_eq,abs_sub_comm]exact le_trans (Finset.single_le_sum (fun w _ => abs_nonneg (artinDirection L (g * letterValue (artinGenerator L) x) w - artinDirection L g w)) (Finset.mem_univ v)) hbd/-- The integral level downstairs; the action is by left multiplication by the height kernel. -/abbrev NegativeLevel (N : ℕ) := {g : ArtinGroup L // (height L g).toAdd = -(N : ℤ)}omit [Fintype V] [LinearOrder V] intheorem negative_level_length (N : ℕ) {g : ArtinGroup L}(hg : (height L g).toAdd = -(N : ℤ)) :N ≤ traceLength L (artinNormalTrace L g) := byhave hh := height_abs_le_traceLength L grw [hg,abs_neg,abs_of_nonneg (Nat.cast_nonneg N)] at hhexact_mod_cast hhdef levelPoint (N : ℕ) (hN : 0 < N) (g : NegativeLevel L N) : TrianglePoint V :=point L hdim g (lt_of_lt_of_le hN (negative_level_length L N g.property))@[simp] theorem levelPoint_val (N : ℕ) (hN : 0 < N) (g : NegativeLevel L N) :(levelPoint L hdim N hN g : V → ℝ) = artinDirection L g := rfldef upperVertex (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (v : V) :NegativeLevel L (N-1) :=⟨(g : ArtinGroup L) * artinGenerator L v,byrw [map_mul,height_generator]change (height L (g : ArtinGroup L)).toAdd + 1 = _rw [g.property]omega⟩def edgeVertex (N : ℕ) (g : NegativeLevel L N) (q r : V) : NegativeLevel L N :=⟨(g : ArtinGroup L) * artinGenerator L q * (artinGenerator L r)⁻¹,bysimp only [map_mul,map_inv,height_generator]change (height L (g : ArtinGroup L)).toAdd + 1 + -1 = _rw [g.property]omega⟩omit [Fintype V] [LinearOrder V] intheorem edgeVertex_reverse (N : ℕ) (g : NegativeLevel L N) (q r : V) :edgeVertex L N (edgeVertex L N g q r) r q = g := byapply Subtype.extchange (g : ArtinGroup L) * _ * _ * _ * _ = _groupomit [Fintype V] [LinearOrder V] intheorem upperVertex_reverse (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (q r : V) :upperVertex L N hN (edgeVertex L N g q r) r = upperVertex L N hN g q := byapply Subtype.extdsimp only [edgeVertex,upperVertex]grouptheorem upperPoint_step (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (v : V) :Compatible L (levelPoint L hdim N (by omega) g)(levelPoint L hdim (N-1) (by omega) (upperVertex L N hN g v)) ∧dist (levelPoint L hdim N (by omega) g)(levelPoint L hdim (N-1) (by omega) (upperVertex L N hN g v)) ≤ 2 / (N : ℝ) := bylet hu := upperVertex L N hN g vhave hlen := negative_level_length L N g.propertyhave hlen' := negative_level_length L (N-1) hu.propertydsimp only [hu,upperVertex] at hlen'have H := point_step L hdim (g : ArtinGroup L) (v,true)(lt_of_lt_of_le (by omega : 0 < N) hlen)(by simpa only [letterValue_positive] using lt_of_lt_of_le (by omega : 0 < N-1) hlen')(N-1) (le_trans (Nat.sub_le N 1) hlen)(by simpa only [letterValue_positive] using hlen')have he : ((N-1 : ℕ) : ℝ) + 1 = (N : ℝ) := by exact_mod_cast (show (N-1 : ℕ) + 1 = N by omega)simpa only [levelPoint,upperVertex,letterValue_positive,he] using Hvariable (h : V → V → SU2) (Q : V → ℍ)def edgeLabel (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (q r : V) : SU2 :=edgeTransport h Q (levelPoint L hdim N (by omega) g)(levelPoint L hdim (N-1) (by omega) (upperVertex L N hN g q))(levelPoint L hdim N (by omega) (edgeVertex L N g q r))theorem edgeLabel_reverse (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (q r : V) :edgeLabel L hdim h Q N hN (edgeVertex L N g q r) r q =(edgeLabel L hdim h Q N hN g q r)⁻¹ := byhave h₁ := (upperPoint_step L hdim N hN g q).1have h₂ := (upperPoint_step L hdim N hN (edgeVertex L N g q r) r).1rw [upperVertex_reverse] at h₂unfold edgeLabelrw [edgeVertex_reverse,upperVertex_reverse]exact edgeTransport_reverse L h Q hf hQ h₁ (compatible_symm L h₂)theorem edgeLabel_uniform (hQ : GeneralPosition h Q) {ε : ℝ} (hε : 0 < ε) :∃ M : ℕ, ∀ N : ℕ, M ≤ N → ∀ hN : 1 < N, ∀ g : NegativeLevel L N, ∀ q r : V,dist (edgeLabel L hdim h Q N hN g q r) 1 < ε := byobtain ⟨δ,hδ,H⟩ := edgeTransport_uniform h Q hQ hεobtain ⟨M,hM⟩ := exists_nat_gt (2 / δ)refine ⟨M,?_⟩intro N hMN hN g q rhave hN0 : (0 : ℝ) < N := by exact_mod_cast (by omega : 0 < N)have hbound : 2 / (N : ℝ) < δ := byapply (div_lt_iff₀ hN0).mprhave hMN' : (M : ℝ) ≤ N := by exact_mod_cast hMNhave hh := (div_lt_iff₀ hδ).mp hMnlinarithapply H· exact lt_of_le_of_lt (upperPoint_step L hdim N hN g q).2 hbound· have hh := (upperPoint_step L hdim N hN (edgeVertex L N g q r) r).2rw [upperVertex_reverse,dist_comm] at hhexact lt_of_le_of_lt hh hboundomit [LinearOrder V] in/-- Six compatible generator pieces around a level triangle lie in one flat chartonce the three edge images are uniformly short. -/theorem triangle_of_short (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(b c d u v w : TrianglePoint V) (δ : ℝ) (hδ : 0 < δ)(hsmall : 4 * δ < 1 / (Fintype.card V + 1 : ℝ))(hb : CliquePoint L b) (hc : CliquePoint L c) (hd : CliquePoint L d)(hu : CliquePoint L u) (hv : CliquePoint L v) (hw : CliquePoint L w)(hbu : Compatible L b u) (huc : Compatible L u c)(hcv : Compatible L c v) (hvd : Compatible L v d)(hdw : Compatible L d w) (hwb : Compatible L w b)(dbu : dist b u ≤ δ) (duc : dist u c ≤ δ)(dcv : dist c v ≤ δ) (dvd : dist v d ≤ δ)(_ddw : dist d w ≤ δ) (dwb : dist w b ≤ δ) :edgeTransport h Q b u c * edgeTransport h Q c v d * edgeTransport h Q d w b = 1 := byhave dbc : dist b c ≤ 2 * δ := by linarith [dist_triangle b u c]have dbv : dist b v ≤ 3 * δ := by linarith [dist_triangle b c v]have dbd : dist b d ≤ 4 * δ := by linarith [dist_triangle b v d]have dbw : dist b w ≤ δ := by simpa only [dist_comm] using dwbobtain ⟨a,ha⟩ := exists_large_coordinate bapply edgeTransport_triangle L h Q hf hQ b c d u v w hbu huc hcv hvd hdw hwb· exact nearby_star L ha hb (by simpa using lt_of_lt_of_le hδ (le_of_lt (by linarith : δ < 1 / (Fintype.card V + 1 : ℝ))))· exact nearby_star L ha hc (by linarith)· exact nearby_star L ha hd (lt_of_le_of_lt dbd hsmall)· exact nearby_star L ha hu (by linarith)· exact nearby_star L ha hv (by linarith)· exact nearby_star L ha hw (by linarith)/-- Every oriented three-edge loop with these actual level endpoints is flat.In particular both kinds of sections of a three-cube are covered. -/theorem edgeLabel_triangle (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(N : ℕ) (hN : 1 < N) (hsize : 8 / (N : ℝ) < 1 / (Fintype.card V + 1 : ℝ))(g₀ g₁ g₂ : NegativeLevel L N) (q₀ r₀ q₁ r₁ q₂ r₂ : V)(e₀ : edgeVertex L N g₀ q₀ r₀ = g₁)(e₁ : edgeVertex L N g₁ q₁ r₁ = g₂)(e₂ : edgeVertex L N g₂ q₂ r₂ = g₀) :edgeLabel L hdim h Q N hN g₀ q₀ r₀ *edgeLabel L hdim h Q N hN g₁ q₁ r₁ *edgeLabel L hdim h Q N hN g₂ q₂ r₂ = 1 := byhave h₀ := upperPoint_step L hdim N hN g₀ q₀have h₁ := upperPoint_step L hdim N hN g₁ q₁have h₂ := upperPoint_step L hdim N hN g₂ q₂have j₀ := upperPoint_step L hdim N hN g₁ r₀have j₁ := upperPoint_step L hdim N hN g₂ r₁have j₂ := upperPoint_step L hdim N hN g₀ r₂rw [← e₀,upperVertex_reverse,e₀] at j₀rw [← e₁,upperVertex_reverse,e₁] at j₁rw [← e₂,upperVertex_reverse,e₂] at j₂unfold edgeLabelrw [e₀,e₁,e₂]apply triangle_of_short L h Q hf hQ _ _ _ _ _ _ (2/(N : ℝ))· positivity· convert hsize using 1; ring· exact point_clique L hdim _ _· exact point_clique L hdim _ _· exact point_clique L hdim _ _· exact point_clique L hdim _ _· exact point_clique L hdim _ _· exact point_clique L hdim _ _· exact h₀.1· exact compatible_symm L j₀.1· exact h₁.1· exact compatible_symm L j₁.1· exact h₂.1· exact compatible_symm L j₂.1· exact h₀.2· simpa only [dist_comm] using j₀.2· exact h₁.2· simpa only [dist_comm] using j₁.2· exact h₂.2· simpa only [dist_comm] using j₂.2/-- A vertex of the simplex is also an honest point of its two-skeleton. -/def vertexPoint (v : V) : TrianglePoint V :=⟨fun w => if v = w then 1 else 0,byapply mem_triangleSet.mprrefine ⟨{v},by simp,⟨?_,?_⟩,?_⟩· intro w; dsimp only; split_ifs <;> norm_num· simp· intro w hwsimp only [Finset.mem_singleton] at hwsimp [Ne.symm hw]⟩@[simp] theorem vertexPoint_val (v w : V) :(vertexPoint v : V → ℝ) w = if v = w then 1 else 0 := rfltheorem star_vertex {a v : V} (hav : Related L a v) : Star L a (vertexPoint v) := byintro w hwhave he : v = w := by by_contra hh; exact hw (by simp [vertexPoint,hh])simpa only [← he] using havomit [Fintype V] [LinearOrder V] intheorem negative_powers_upper {q r : V} (hqr : L.Adj q r) (n m : ℕ) :(artinGenerator L q)⁻¹ ^ (n+1) * (artinGenerator L r)⁻¹ ^ m * artinGenerator L q =(artinGenerator L q)⁻¹ ^ n * (artinGenerator L r)⁻¹ ^ m := byhave hc := (adjacent_generators_commute L hqr).inv_right.pow_right mcalc_ = (artinGenerator L q)⁻¹ ^ n *((artinGenerator L q)⁻¹ * ((artinGenerator L r)⁻¹ ^ m * artinGenerator L q)) := bysimp only [pow_succ]; group_ = (artinGenerator L q)⁻¹ ^ n *((artinGenerator L q)⁻¹ * (artinGenerator L q * (artinGenerator L r)⁻¹ ^ m)) := byrw [← hc.eq]_ = _ := by group/-- Negative commuting powers remain exactly in their two-coordinate face. -/theorem powersPoint_star {q r : V} (hqr : L.Adj q r) (n m : ℕ)(hg : 0 < traceLength L (artinNormalTrace L((artinGenerator L q)⁻¹ ^ n * (artinGenerator L r)⁻¹ ^ m))) :Star L q (point L hdim ((artinGenerator L q)⁻¹ ^ n * (artinGenerator L r)⁻¹ ^ m) hg) := byintro v hvby_cases hqv : q = v· exact Or.inl hqvby_cases hrv : r = v· exact Or.inr (hrv ▸ hqr)exfalsoapply hvrw [point_val,direction_negative_commuting_powers L hqr]simp [hqv,hrv]/-- Constant endpoint in the q-direction, stated with a concrete positive height. -/theorem powersPoint_first {q r : V} (hqr : L.Adj q r) (N : ℕ) (hN : 0 < N)(hg : 0 < traceLength L (artinNormalTrace L((artinGenerator L q)⁻¹ ^ N * (artinGenerator L r)⁻¹ ^ 0))) :point L hdim ((artinGenerator L q)⁻¹ ^ N * (artinGenerator L r)⁻¹ ^ 0) hg =vertexPoint q := byapply Subtype.extfunext vrw [point_val,vertexPoint_val,direction_negative_commuting_powers L hqr]have hn : (N : ℝ) ≠ 0 := by exact_mod_cast Nat.ne_of_gt hNby_cases hv : q = v <;> simp [hv,hn]theorem powersPoint_last {q r : V} (hqr : L.Adj q r) (N : ℕ) (hN : 0 < N)(hg : 0 < traceLength L (artinNormalTrace L((artinGenerator L q)⁻¹ ^ 0 * (artinGenerator L r)⁻¹ ^ N))) :point L hdim ((artinGenerator L q)⁻¹ ^ 0 * (artinGenerator L r)⁻¹ ^ N) hg =vertexPoint r := byapply Subtype.extfunext vrw [point_val,vertexPoint_val,direction_negative_commuting_powers L hqr]have hn : (N : ℝ) ≠ 0 := by exact_mod_cast Nat.ne_of_gt hNby_cases hv : r = v <;> simp [hv,hn]def powerVertex (N : ℕ) (q r : V) (j : ℕ) : NegativeLevel L N :=⟨(artinGenerator L q)⁻¹ ^ (N - min j N) * (artinGenerator L r)⁻¹ ^ min j N,bysimp only [map_mul,map_pow,map_inv,height_generator]change (N-min j N : ℕ) • (-1 : ℤ) + (min j N : ℕ) • (-1 : ℤ) = _simp only [nsmul_eq_mul,mul_neg,mul_one]have hh : min j N ≤ N := min_le_right _ _omega⟩omit [Fintype V] [LinearOrder V] intheorem powerVertex_step (N : ℕ) {q r : V} (hqr : L.Adj q r) {j : ℕ} (hj : j < N) :edgeVertex L N (powerVertex L N q r j) q r = powerVertex L N q r (j+1) := byapply Subtype.extdsimp only [powerVertex,edgeVertex]rw [min_eq_left (by omega : j ≤ N),min_eq_left (by omega : j+1 ≤ N)]have he : N-j = (N-(j+1))+1 := by omegarw [he,negative_powers_upper L hqr,pow_succ]groupomit [Fintype V] [LinearOrder V] intheorem powerVertex_upper (N : ℕ) (hN : 1 < N) {q r : V}(hqr : L.Adj q r) {j : ℕ} (hj : j < N) :(upperVertex L N hN (powerVertex L N q r j) q : ArtinGroup L) =(artinGenerator L q)⁻¹ ^ (N-(j+1)) * (artinGenerator L r)⁻¹ ^ j := bydsimp only [powerVertex,upperVertex]rw [min_eq_left (by omega : j ≤ N)]have he : N-j = (N-(j+1))+1 := by omegarw [he,negative_powers_upper L hqr]theorem powerVertex_star (N : ℕ) (hN : 0 < N) {q r : V} (hqr : L.Adj q r) (j : ℕ) :Star L q (levelPoint L hdim N hN (powerVertex L N q r j)) :=powersPoint_star L hdim hqr _ _ _theorem powerVertex_upper_star (N : ℕ) (hN : 1 < N) {q r : V}(hqr : L.Adj q r) {j : ℕ} (hj : j < N) :Star L q (levelPoint L hdim (N-1) (by omega)(upperVertex L N hN (powerVertex L N q r j) q)) := byunfold levelPointgeneralize_proofs hpossimp only [powerVertex_upper L N hN hqr hj] at hpos ⊢exact powersPoint_star L hdim hqr _ _ _theorem powerLabel_chart (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(N : ℕ) (hN : 1 < N) {q r : V} (hqr : L.Adj q r) {j : ℕ} (hj : j < N) :edgeLabel L hdim h Q N hN (powerVertex L N q r j) q r =chartTransport h Q q (levelPoint L hdim N (by omega) (powerVertex L N q r j))(levelPoint L hdim N (by omega) (powerVertex L N q r (j+1))) := byhave hb := upperPoint_step L hdim N hN (powerVertex L N q r j) qhave hc := upperPoint_step L hdim N hN (edgeVertex L N (powerVertex L N q r j) q r) rrw [upperVertex_reverse] at hcunfold edgeLabelrw [edgeTransport_chart L h Q hf hQ hb.1 (compatible_symm L hc.1)(powerVertex_star L hdim N (by omega) hqr j) (powerVertex_upper_star L hdim N hN hqr hj)]· rw [powerVertex_step L N hqr hj]· rw [powerVertex_step L N hqr hj]exact powerVertex_star L hdim N (by omega) hqr (j+1)/-- Directed walks retain the chosen generator pair, including parallel edges. -/inductive Walk (N : ℕ) : NegativeLevel L N → NegativeLevel L N → Type _| nil (g : NegativeLevel L N) : Walk N g g| cons {g k : NegativeLevel L N} (q r : V) (hqr : L.Adj q r)(p : Walk N (edgeVertex L N g q r) k) : Walk N g knamespace Walkvariable {L} {N : ℕ}def append {g k l : NegativeLevel L N} : Walk L N g k → Walk L N k l → Walk L N g l| .nil _, p => p| .cons q r hqr p, t => .cons q r hqr (append p t)def cast {g k g' k' : NegativeLevel L N} (p : Walk L N g k)(hg : g = g') (hk : k = k') : Walk L N g' k' := hg ▸ hk ▸ pend Walkdef walkProduct (N : ℕ) (hN : 1 < N) {g k : NegativeLevel L N} : Walk L N g k → SU2| .nil _ => 1| .cons (g := g) q r _ p => edgeLabel L hdim h Q N hN g q r * walkProduct N hN p@[simp] theorem walkProduct_nil (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) :walkProduct L hdim h Q N hN (.nil g) = 1 := rfl@[simp] theorem walkProduct_cons (N : ℕ) (hN : 1 < N) {g k : NegativeLevel L N}(q r : V) (hqr : L.Adj q r) (p : Walk L N (edgeVertex L N g q r) k) :walkProduct L hdim h Q N hN (.cons q r hqr p) =edgeLabel L hdim h Q N hN g q r * walkProduct L hdim h Q N hN p := rfl@[simp] theorem walkProduct_append (N : ℕ) (hN : 1 < N) {g k l : NegativeLevel L N}(p : Walk L N g k) (t : Walk L N k l) :walkProduct L hdim h Q N hN (p.append t) =walkProduct L hdim h Q N hN p * walkProduct L hdim h Q N hN t := byinduction p with| nil => simp [Walk.append]| cons q r hqr p ih => simp [Walk.append,ih,mul_assoc]@[simp] theorem walkProduct_cast (N : ℕ) (hN : 1 < N) {g k g' k' : NegativeLevel L N}(p : Walk L N g k) (hg : g = g') (hk : k = k') :walkProduct L hdim h Q N hN (p.cast hg hk) = walkProduct L hdim h Q N hN p := bysubst g'; subst k'; rfl/-- The entire subdivided edge has the exact endpoint transport, not merely a limit. -/theorem exists_powerWalk (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(N : ℕ) (hN : 1 < N) {q r : V} (hqr : L.Adj q r) (k : ℕ) (hk : k ≤ N) :∃ p : Walk L N (powerVertex L N q r 0) (powerVertex L N q r k),walkProduct L hdim h Q N hN p =chartTransport h Q q (levelPoint L hdim N (by omega) (powerVertex L N q r 0))(levelPoint L hdim N (by omega) (powerVertex L N q r k)) := byinduction k with| zero => exact ⟨.nil _,by simp [chartTransport]⟩| succ k ih =>obtain ⟨p,hp⟩ := ih (by omega)let t : Walk L N (powerVertex L N q r k)(edgeVertex L N (powerVertex L N q r k) q r) := .cons q r hqr (.nil _)let t' := t.cast rfl (powerVertex_step L N hqr (by omega : k < N))refine ⟨p.append t',?_⟩rw [walkProduct_append,hp]simp only [t',walkProduct_cast,t,walkProduct_cons,walkProduct_nil,mul_one]rw [powerLabel_chart L hdim h Q hf hQ N hN hqr (by omega),chartTransport_trans]def pureVertex (N : ℕ) (q : V) : NegativeLevel L N :=⟨(artinGenerator L q)⁻¹ ^ N,bysimp only [map_pow,map_inv,height_generator]change N • (-1 : ℤ) = -(N : ℤ)simp⟩omit [Fintype V] [LinearOrder V] intheorem powerVertex_zero (N : ℕ) (q r : V) :powerVertex L N q r 0 = pureVertex L N q := by apply Subtype.ext; simp [powerVertex,pureVertex]omit [Fintype V] [LinearOrder V] intheorem powerVertex_last (N : ℕ) (q r : V) :powerVertex L N q r N = pureVertex L N r := by apply Subtype.ext; simp [powerVertex,pureVertex]def vertexGauge (v : V) : SU2 := gauge h Q v (vertexPoint v)theorem levelPoint_power_zero (N : ℕ) (hN : 0 < N) {q r : V} (hqr : L.Adj q r) :levelPoint L hdim N hN (powerVertex L N q r 0) = vertexPoint q := byunfold levelPointhave hh : (powerVertex L N q r 0 : ArtinGroup L) =(artinGenerator L q)⁻¹ ^ N * (artinGenerator L r)⁻¹ ^ 0 := by simp [powerVertex]simp only [hh]exact powersPoint_first L hdim hqr N hN _theorem levelPoint_power_last (N : ℕ) (hN : 0 < N) {q r : V} (hqr : L.Adj q r) :levelPoint L hdim N hN (powerVertex L N q r N) = vertexPoint r := byunfold levelPointhave hh : (powerVertex L N q r N : ArtinGroup L) =(artinGenerator L q)⁻¹ ^ 0 * (artinGenerator L r)⁻¹ ^ N := by simp [powerVertex]simp only [hh]exact powersPoint_last L hdim hqr N hN _theorem exists_expanded_edge (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(N : ℕ) (hN : 1 < N) {q r : V} (hqr : L.Adj q r) :∃ p : Walk L N (pureVertex L N q) (pureVertex L N r),walkProduct L hdim h Q N hN p =(vertexGauge h Q q)⁻¹ * h q r * vertexGauge h Q r := byobtain ⟨p,hp⟩ := exists_powerWalk L hdim h Q hf hQ N hN hqr N le_rflrefine ⟨p.cast (powerVertex_zero L N q r) (powerVertex_last L N q r),?_⟩rw [walkProduct_cast,hp,levelPoint_power_zero L hdim N (by omega) hqr,levelPoint_power_last L hdim N (by omega) hqr]unfold chartTransport vertexGaugerw [gauge_transition L h Q hf hQ (Or.inr hqr)(star_vertex L (Or.inr hqr)) (star_vertex L (Or.inl rfl))]groupomit [Fintype V] [LinearOrder V] indef graphWalkProduct {a b : V} : L.Walk a b → SU2| .nil => 1| .cons (u := u) (v := v) _ p => h u v * graphWalkProduct ptheorem exists_expanded_walk (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(N : ℕ) (hN : 1 < N) {q r : V} (w : L.Walk q r) :∃ p : Walk L N (pureVertex L N q) (pureVertex L N r),walkProduct L hdim h Q N hN p =(vertexGauge h Q q)⁻¹ * graphWalkProduct L h w * vertexGauge h Q r := byinduction w with| nil => exact ⟨.nil _,by simp [graphWalkProduct]⟩| @cons q t r hqt w ih =>obtain ⟨p,hp⟩ := exists_expanded_edge L hdim h Q hf hQ N hN hqtobtain ⟨s,hs⟩ := ihrefine ⟨p.append s,?_⟩rw [walkProduct_append,hp,hs]simp only [graphWalkProduct]groupomit [Fintype V] [LinearOrder V] intheorem graphWalkProduct_eq_zipWith {a b : V} (w : L.Walk a b) :graphWalkProduct L h w = (List.zipWith h w.support w.support.tail).prod := byinduction w with| nil => simp [graphWalkProduct]| @cons q t r hqt w ih =>cases w with| nil => simp [graphWalkProduct]| cons htl p => simpa only [graphWalkProduct,SimpleGraph.Walk.support_cons,List.tail_cons,List.zipWith_cons_cons,List.prod_cons] using congrArg (h q t * ·) ih/-- A nontrivial seed holonomy survives every sufficiently translated level. -/theorem exists_nontrivial_level_walk (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(N : ℕ) (hN : 1 < N) {q : V} (w : L.Walk q q)(hw : graphWalkProduct L h w ≠ 1) :∃ p : Walk L N (pureVertex L N q) (pureVertex L N q),walkProduct L hdim h Q N hN p ≠ 1 := byobtain ⟨p,hp⟩ := exists_expanded_walk L hdim h Q hf hQ N hN wrefine ⟨p,?_⟩rw [hp]intro heapply hwcalcgraphWalkProduct L h w = vertexGauge h Q q *((vertexGauge h Q q)⁻¹ * graphWalkProduct L h w * vertexGauge h Q q) *(vertexGauge h Q q)⁻¹ := by group_ = 1 := by rw [he]; groupnamespace Walkvariable {L} {N : ℕ}omit [Fintype V] [LinearOrder V] indef eval (a : NegativeLevel L N → V → V → SU2){g k : NegativeLevel L N} : Walk L N g k → SU2| .nil _ => 1| .cons (g := g) q r _ p => a g q r * eval a pend Walktheorem walkProduct_eq_eval (N : ℕ) (hN : 1 < N) {g k : NegativeLevel L N}(p : Walk L N g k) :walkProduct L hdim h Q N hN p = p.eval (edgeLabel L hdim h Q N hN) := byinduction p with| nil => rfl| cons q r hqr p ih => simp only [walkProduct,Walk.eval,ih]end LevelTransportnamespace SourceTransportopen LevelTransport AffineTransportdef seedWalk : seedGraph.Walk (.inl (.inl none)) (.inl (.inl none)) :=SimpleGraph.Walk.ofSupport SeedConnection.roseLoop(by simp [SeedConnection.roseLoop]) SeedConnection.roseLoop_edgestheorem seedWalk_support : seedWalk.support = SeedConnection.roseLoop :=SimpleGraph.Walk.support_ofSupport _ _theorem seedWalk_product_ne : graphWalkProduct seedGraph SeedConnection.connection seedWalk ≠ 1 := byrw [graphWalkProduct_eq_zipWith,seedWalk_support]exact SeedConnection.roseLoop_nontrivial/-- Actual small flat transport for the fixed source level graph. There are norepresentation, direction-map, local-chart, or nontriviality hypotheses here. -/theorem source_small_labels (ε : ℝ) (hε : 0 < ε) :∃ N : ℕ, 1 < N ∧ ∃ a : NegativeLevel seedGraph N → SeedCell → SeedCell → SU2,(∀ g q r, a (edgeVertex seedGraph N g q r) r q = (a g q r)⁻¹) ∧(∀ g q r, dist (a g q r) 1 < ε) ∧(∀ g₀ g₁ g₂ q₀ r₀ q₁ r₁ q₂ r₂,edgeVertex seedGraph N g₀ q₀ r₀ = g₁ →edgeVertex seedGraph N g₁ q₁ r₁ = g₂ →edgeVertex seedGraph N g₂ q₂ r₂ = g₀ →a g₀ q₀ r₀ * a g₁ q₁ r₁ * a g₂ q₂ r₂ = 1) ∧∃ (g : NegativeLevel seedGraph N) (p : Walk seedGraph N g g), p.eval a ≠ 1 := bylet : LinearOrder SeedCell := LinearOrder.lift' (Fintype.equivFin SeedCell)(Fintype.equivFin SeedCell).injectiveobtain ⟨Q,hQ⟩ := exists_generalPosition SeedConnection.connectionhave hf : FlatConnection seedGraph SeedConnection.connection :=fun _ _ _ hab hbc hac => SeedConnection.connection_flat hab hbc hacobtain ⟨M,hM⟩ := edgeLabel_uniform seedGraph SeedConnection.clique_card_le_threeSeedConnection.connection Q hQ hεlet D := Fintype.card SeedCell + 1let N := max M (8 * D + 2)have hMN : M ≤ N := le_max_left _ _have hNbound : 8 * D + 2 ≤ N := le_max_right _ _have hN : 1 < N := by omegahave hD : (0 : ℝ) < D := by dsimp [D]; positivityhave hNr : (0 : ℝ) < N := by exact_mod_cast (by omega : 0 < N)have hsize : 8 / (N : ℝ) < 1 / (Fintype.card SeedCell + 1 : ℝ) := byhave hBN : (8 : ℝ) * D + 2 ≤ N := by exact_mod_cast hNboundhave hDcast : (D : ℝ) = (Fintype.card SeedCell : ℝ) + 1 := by simp [D]rw [← hDcast]apply (div_lt_div_iff₀ hNr hD).mprnlinarithlet a := edgeLabel seedGraph SeedConnection.clique_card_le_threeSeedConnection.connection Q N hNrefine ⟨N,hN,a,?_,?_,?_,?_⟩· exact edgeLabel_reverse seedGraph SeedConnection.clique_card_le_threeSeedConnection.connection Q hf hQ N hN· exact hM N hMN hN· exact edgeLabel_triangle seedGraph SeedConnection.clique_card_le_threeSeedConnection.connection Q hf hQ N hN hsize· obtain ⟨p,hp⟩ := exists_nontrivial_level_walk seedGraph SeedConnection.clique_card_le_threeSeedConnection.connection Q hf hQ N hN seedWalk seedWalk_product_nerefine ⟨_,p,?_⟩rwa [walkProduct_eq_eval] at hpend SourceTransportend EilenbergGaneaendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626import OAI.Topology.EilenbergGanea.AffineTransportimport OAI.Topology.EilenbergGanea.SeedConnectionnamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiffnamespace EilenbergGaneanamespace LevelTransportopen TraceWords AffineTransportvariable {V : Type*} [Fintype V] [LinearOrder V] (L : SimpleGraph V)variable (hdim : ∀ s : Finset V, (s : Set V).Pairwise L.Adj → s.card ≤ 3)def point (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g)) : TrianglePoint V :=⟨artinDirection L g,byapply mem_triangleSet.mprrefine ⟨(traceCounts L (artinNormalTrace L g)).support,hdim _ (traceCounts_support_clique L _),⟨?_,?_⟩,?_⟩· exact traceDirection_nonneg L _· exact traceDirection_sum L hg· intro v hvsimp only [Finsupp.notMem_support_iff] at hvsimp [artinDirection,traceDirection,hv]⟩@[simp] theorem point_val (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g)) :(point L hdim g hg : V → ℝ) = artinDirection L g := rfltheorem point_mem_support (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g)){v : V} (hv : (point L hdim g hg : V → ℝ) v ≠ 0) :v ∈ (traceCounts L (artinNormalTrace L g)).support := byby_contra hhave he := Finsupp.notMem_support_iff.mp hexact hv (by simp [point,artinDirection,traceDirection,he])theorem point_clique (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g)) :CliquePoint L (point L hdim g hg) := byintro a ha v hvby_cases hav : a = v· exact Or.inl hav· exact Or.inr (traceCounts_support_clique L _(point_mem_support L hdim g hg ha) (point_mem_support L hdim g hg hv) hav)/-- Both hypotheses refer to actual reduced Artin lengths, not an assumed word metric. -/theorem point_step (g : ArtinGroup L) (x : Letter V)(hg : 0 < traceLength L (artinNormalTrace L g))(hgx : 0 < traceLength L (artinNormalTrace L (g * letterValue (artinGenerator L) x)))(N : ℕ) (hNg : N ≤ traceLength L (artinNormalTrace L g))(hNgx : N ≤ traceLength L (artinNormalTrace L (g * letterValue (artinGenerator L) x))) :Compatible L (point L hdim g hg) (point L hdim (g * letterValue (artinGenerator L) x) hgx) ∧dist (point L hdim g hg) (point L hdim (g * letterValue (artinGenerator L) x) hgx) ≤2 / (N+1 : ℝ) := byclassicalobtain ⟨hs,n,_,hn,hbd⟩ := artinDirection_right_step L g x hg hgxhave hNn : N ≤ n := by rcases hn with ⟨he,_⟩ | ⟨he,_⟩ <;> omegaconstructor· intro v w hv hwby_cases he : v = w· exact Or.inl he· apply Or.inrapply hs _ _ he· rcases hv with hv | hv· exact Finset.mem_union_left _ (point_mem_support L hdim g hg hv)· exact Finset.mem_union_right _ (point_mem_support L hdim _ hgx hv)· rcases hw with hw | hw· exact Finset.mem_union_left _ (point_mem_support L hdim g hg hw)· exact Finset.mem_union_right _ (point_mem_support L hdim _ hgx hw)· have hc : (N : ℝ) + 1 ≤ (n : ℝ) + 1 := by exact_mod_cast Nat.add_le_add_right hNn 1have hd : 0 < (N : ℝ) + 1 := by positivityhave hfrac : 2 / (n+1 : ℝ) ≤ 2 / (N+1 : ℝ) :=div_le_div_of_nonneg_left (by norm_num) hd hcapply le_trans ?_ hfracchange dist (artinDirection L g) (artinDirection L (g * letterValue (artinGenerator L) x)) ≤ _apply (dist_pi_le_iff (by positivity)).mprintro vrw [Real.dist_eq,abs_sub_comm]exact le_trans (Finset.single_le_sum (fun w _ => abs_nonneg (artinDirection L (g * letterValue (artinGenerator L) x) w - artinDirection L g w)) (Finset.mem_univ v)) hbd/-- The integral level downstairs; the action is by left multiplication by the height kernel. -/abbrev NegativeLevel (N : ℕ) := {g : ArtinGroup L // (height L g).toAdd = -(N : ℤ)}omit [Fintype V] [LinearOrder V] intheorem negative_level_length (N : ℕ) {g : ArtinGroup L}(hg : (height L g).toAdd = -(N : ℤ)) :N ≤ traceLength L (artinNormalTrace L g) := byhave hh := height_abs_le_traceLength L grw [hg,abs_neg,abs_of_nonneg (Nat.cast_nonneg N)] at hhexact_mod_cast hhdef levelPoint (N : ℕ) (hN : 0 < N) (g : NegativeLevel L N) : TrianglePoint V :=point L hdim g (lt_of_lt_of_le hN (negative_level_length L N g.property))@[simp] theorem levelPoint_val (N : ℕ) (hN : 0 < N) (g : NegativeLevel L N) :(levelPoint L hdim N hN g : V → ℝ) = artinDirection L g := rfldef upperVertex (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (v : V) :NegativeLevel L (N-1) :=⟨(g : ArtinGroup L) * artinGenerator L v,byrw [map_mul,height_generator]change (height L (g : ArtinGroup L)).toAdd + 1 = _rw [g.property]omega⟩def edgeVertex (N : ℕ) (g : NegativeLevel L N) (q r : V) : NegativeLevel L N :=⟨(g : ArtinGroup L) * artinGenerator L q * (artinGenerator L r)⁻¹,bysimp only [map_mul,map_inv,height_generator]change (height L (g : ArtinGroup L)).toAdd + 1 + -1 = _rw [g.property]omega⟩omit [Fintype V] [LinearOrder V] intheorem edgeVertex_reverse (N : ℕ) (g : NegativeLevel L N) (q r : V) :edgeVertex L N (edgeVertex L N g q r) r q = g := byapply Subtype.extchange (g : ArtinGroup L) * _ * _ * _ * _ = _groupomit [Fintype V] [LinearOrder V] intheorem upperVertex_reverse (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (q r : V) :upperVertex L N hN (edgeVertex L N g q r) r = upperVertex L N hN g q := byapply Subtype.extdsimp only [edgeVertex,upperVertex]grouptheorem upperPoint_step (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (v : V) :Compatible L (levelPoint L hdim N (by omega) g)(levelPoint L hdim (N-1) (by omega) (upperVertex L N hN g v)) ∧dist (levelPoint L hdim N (by omega) g)(levelPoint L hdim (N-1) (by omega) (upperVertex L N hN g v)) ≤ 2 / (N : ℝ) := bylet hu := upperVertex L N hN g vhave hlen := negative_level_length L N g.propertyhave hlen' := negative_level_length L (N-1) hu.propertydsimp only [hu,upperVertex] at hlen'have H := point_step L hdim (g : ArtinGroup L) (v,true)(lt_of_lt_of_le (by omega : 0 < N) hlen)(by simpa only [letterValue_positive] using lt_of_lt_of_le (by omega : 0 < N-1) hlen')(N-1) (le_trans (Nat.sub_le N 1) hlen)(by simpa only [letterValue_positive] using hlen')have he : ((N-1 : ℕ) : ℝ) + 1 = (N : ℝ) := by exact_mod_cast (show (N-1 : ℕ) + 1 = N by omega)simpa only [levelPoint,upperVertex,letterValue_positive,he] using Hvariable (h : V → V → SU2) (Q : V → ℍ)def edgeLabel (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (q r : V) : SU2 :=edgeTransport h Q (levelPoint L hdim N (by omega) g)(levelPoint L hdim (N-1) (by omega) (upperVertex L N hN g q))(levelPoint L hdim N (by omega) (edgeVertex L N g q r))theorem edgeLabel_reverse (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (q r : V) :edgeLabel L hdim h Q N hN (edgeVertex L N g q r) r q =(edgeLabel L hdim h Q N hN g q r)⁻¹ := byhave h₁ := (upperPoint_step L hdim N hN g q).1have h₂ := (upperPoint_step L hdim N hN (edgeVertex L N g q r) r).1rw [upperVertex_reverse] at h₂unfold edgeLabelrw [edgeVertex_reverse,upperVertex_reverse]exact edgeTransport_reverse L h Q hf hQ h₁ (compatible_symm L h₂)theorem edgeLabel_uniform (hQ : GeneralPosition h Q) {ε : ℝ} (hε : 0 < ε) :∃ M : ℕ, ∀ N : ℕ, M ≤ N → ∀ hN : 1 < N, ∀ g : NegativeLevel L N, ∀ q r : V,dist (edgeLabel L hdim h Q N hN g q r) 1 < ε := byobtain ⟨δ,hδ,H⟩ := edgeTransport_uniform h Q hQ hεobtain ⟨M,hM⟩ := exists_nat_gt (2 / δ)refine ⟨M,?_⟩intro N hMN hN g q rhave hN0 : (0 : ℝ) < N := by exact_mod_cast (by omega : 0 < N)have hbound : 2 / (N : ℝ) < δ := byapply (div_lt_iff₀ hN0).mprhave hMN' : (M : ℝ) ≤ N := by exact_mod_cast hMNhave hh := (div_lt_iff₀ hδ).mp hMnlinarithapply H· exact lt_of_le_of_lt (upperPoint_step L hdim N hN g q).2 hbound· have hh := (upperPoint_step L hdim N hN (edgeVertex L N g q r) r).2rw [upperVertex_reverse,dist_comm] at hhexact lt_of_le_of_lt hh hboundomit [LinearOrder V] in/-- Six compatible generator pieces around a level triangle lie in one flat chartonce the three edge images are uniformly short. -/theorem triangle_of_short (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(b c d u v w : TrianglePoint V) (δ : ℝ) (hδ : 0 < δ)(hsmall : 4 * δ < 1 / (Fintype.card V + 1 : ℝ))(hb : CliquePoint L b) (hc : CliquePoint L c) (hd : CliquePoint L d)(hu : CliquePoint L u) (hv : CliquePoint L v) (hw : CliquePoint L w)(hbu : Compatible L b u) (huc : Compatible L u c)(hcv : Compatible L c v) (hvd : Compatible L v d)(hdw : Compatible L d w) (hwb : Compatible L w b)(dbu : dist b u ≤ δ) (duc : dist u c ≤ δ)(dcv : dist c v ≤ δ) (dvd : dist v d ≤ δ)(_ddw : dist d w ≤ δ) (dwb : dist w b ≤ δ) :edgeTransport h Q b u c * edgeTransport h Q c v d * edgeTransport h Q d w b = 1 := byhave dbc : dist b c ≤ 2 * δ := by linarith [dist_triangle b u c]have dbv : dist b v ≤ 3 * δ := by linarith [dist_triangle b c v]have dbd : dist b d ≤ 4 * δ := by linarith [dist_triangle b v d]have dbw : dist b w ≤ δ := by simpa only [dist_comm] using dwbobtain ⟨a,ha⟩ := exists_large_coordinate bapply edgeTransport_triangle L h Q hf hQ b c d u v w hbu huc hcv hvd hdw hwb· exact nearby_star L ha hb (by simpa using lt_of_lt_of_le hδ (le_of_lt (by linarith : δ < 1 / (Fintype.card V + 1 : ℝ))))· exact nearby_star L ha hc (by linarith)· exact nearby_star L ha hd (lt_of_le_of_lt dbd hsmall)· exact nearby_star L ha hu (by linarith)· exact nearby_star L ha hv (by linarith)· exact nearby_star L ha hw (by linarith)/-- Every oriented three-edge loop with these actual level endpoints is flat.In particular both kinds of sections of a three-cube are covered. -/theorem edgeLabel_triangle (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(N : ℕ) (hN : 1 < N) (hsize : 8 / (N : ℝ) < 1 / (Fintype.card V + 1 : ℝ))(g₀ g₁ g₂ : NegativeLevel L N) (q₀ r₀ q₁ r₁ q₂ r₂ : V)(e₀ : edgeVertex L N g₀ q₀ r₀ = g₁)(e₁ : edgeVertex L N g₁ q₁ r₁ = g₂)(e₂ : edgeVertex L N g₂ q₂ r₂ = g₀) :edgeLabel L hdim h Q N hN g₀ q₀ r₀ *edgeLabel L hdim h Q N hN g₁ q₁ r₁ *edgeLabel L hdim h Q N hN g₂ q₂ r₂ = 1 := byhave h₀ := upperPoint_step L hdim N hN g₀ q₀have h₁ := upperPoint_step L hdim N hN g₁ q₁have h₂ := upperPoint_step L hdim N hN g₂ q₂have j₀ := upperPoint_step L hdim N hN g₁ r₀have j₁ := upperPoint_step L hdim N hN g₂ r₁have j₂ := upperPoint_step L hdim N hN g₀ r₂rw [← e₀,upperVertex_reverse,e₀] at j₀rw [← e₁,upperVertex_reverse,e₁] at j₁rw [← e₂,upperVertex_reverse,e₂] at j₂unfold edgeLabelrw [e₀,e₁,e₂]apply triangle_of_short L h Q hf hQ _ _ _ _ _ _ (2/(N : ℝ))· positivity· convert hsize using 1; ring· exact point_clique L hdim _ _· exact point_clique L hdim _ _· exact point_clique L hdim _ _· exact point_clique L hdim _ _· exact point_clique L hdim _ _· exact point_clique L hdim _ _· exact h₀.1· exact compatible_symm L j₀.1· exact h₁.1· exact compatible_symm L j₁.1· exact h₂.1· exact compatible_symm L j₂.1· exact h₀.2· simpa only [dist_comm] using j₀.2· exact h₁.2· simpa only [dist_comm] using j₁.2· exact h₂.2· simpa only [dist_comm] using j₂.2/-- A vertex of the simplex is also an honest point of its two-skeleton. -/def vertexPoint (v : V) : TrianglePoint V :=⟨fun w => if v = w then 1 else 0,byapply mem_triangleSet.mprrefine ⟨{v},by simp,⟨?_,?_⟩,?_⟩· intro w; dsimp only; split_ifs <;> norm_num· simp· intro w hwsimp only [Finset.mem_singleton] at hwsimp [Ne.symm hw]⟩@[simp] theorem vertexPoint_val (v w : V) :(vertexPoint v : V → ℝ) w = if v = w then 1 else 0 := rfltheorem star_vertex {a v : V} (hav : Related L a v) : Star L a (vertexPoint v) := byintro w hwhave he : v = w := by by_contra hh; exact hw (by simp [vertexPoint,hh])simpa only [← he] using havomit [Fintype V] [LinearOrder V] intheorem negative_powers_upper {q r : V} (hqr : L.Adj q r) (n m : ℕ) :(artinGenerator L q)⁻¹ ^ (n+1) * (artinGenerator L r)⁻¹ ^ m * artinGenerator L q =(artinGenerator L q)⁻¹ ^ n * (artinGenerator L r)⁻¹ ^ m := byhave hc := (adjacent_generators_commute L hqr).inv_right.pow_right mcalc_ = (artinGenerator L q)⁻¹ ^ n *((artinGenerator L q)⁻¹ * ((artinGenerator L r)⁻¹ ^ m * artinGenerator L q)) := bysimp only [pow_succ]; group_ = (artinGenerator L q)⁻¹ ^ n *((artinGenerator L q)⁻¹ * (artinGenerator L q * (artinGenerator L r)⁻¹ ^ m)) := byrw [← hc.eq]_ = _ := by group/-- Negative commuting powers remain exactly in their two-coordinate face. -/theorem powersPoint_star {q r : V} (hqr : L.Adj q r) (n m : ℕ)(hg : 0 < traceLength L (artinNormalTrace L((artinGenerator L q)⁻¹ ^ n * (artinGenerator L r)⁻¹ ^ m))) :Star L q (point L hdim ((artinGenerator L q)⁻¹ ^ n * (artinGenerator L r)⁻¹ ^ m) hg) := byintro v hvby_cases hqv : q = v· exact Or.inl hqvby_cases hrv : r = v· exact Or.inr (hrv ▸ hqr)exfalsoapply hvrw [point_val,direction_negative_commuting_powers L hqr]simp [hqv,hrv]/-- Constant endpoint in the q-direction, stated with a concrete positive height. -/theorem powersPoint_first {q r : V} (hqr : L.Adj q r) (N : ℕ) (hN : 0 < N)(hg : 0 < traceLength L (artinNormalTrace L((artinGenerator L q)⁻¹ ^ N * (artinGenerator L r)⁻¹ ^ 0))) :point L hdim ((artinGenerator L q)⁻¹ ^ N * (artinGenerator L r)⁻¹ ^ 0) hg =vertexPoint q := byapply Subtype.extfunext vrw [point_val,vertexPoint_val,direction_negative_commuting_powers L hqr]have hn : (N : ℝ) ≠ 0 := by exact_mod_cast Nat.ne_of_gt hNby_cases hv : q = v <;> simp [hv,hn]theorem powersPoint_last {q r : V} (hqr : L.Adj q r) (N : ℕ) (hN : 0 < N)(hg : 0 < traceLength L (artinNormalTrace L((artinGenerator L q)⁻¹ ^ 0 * (artinGenerator L r)⁻¹ ^ N))) :point L hdim ((artinGenerator L q)⁻¹ ^ 0 * (artinGenerator L r)⁻¹ ^ N) hg =vertexPoint r := byapply Subtype.extfunext vrw [point_val,vertexPoint_val,direction_negative_commuting_powers L hqr]have hn : (N : ℝ) ≠ 0 := by exact_mod_cast Nat.ne_of_gt hNby_cases hv : r = v <;> simp [hv,hn]def powerVertex (N : ℕ) (q r : V) (j : ℕ) : NegativeLevel L N :=⟨(artinGenerator L q)⁻¹ ^ (N - min j N) * (artinGenerator L r)⁻¹ ^ min j N,bysimp only [map_mul,map_pow,map_inv,height_generator]change (N-min j N : ℕ) • (-1 : ℤ) + (min j N : ℕ) • (-1 : ℤ) = _simp only [nsmul_eq_mul,mul_neg,mul_one]have hh : min j N ≤ N := min_le_right _ _omega⟩omit [Fintype V] [LinearOrder V] intheorem powerVertex_step (N : ℕ) {q r : V} (hqr : L.Adj q r) {j : ℕ} (hj : j < N) :edgeVertex L N (powerVertex L N q r j) q r = powerVertex L N q r (j+1) := byapply Subtype.extdsimp only [powerVertex,edgeVertex]rw [min_eq_left (by omega : j ≤ N),min_eq_left (by omega : j+1 ≤ N)]have he : N-j = (N-(j+1))+1 := by omegarw [he,negative_powers_upper L hqr,pow_succ]groupomit [Fintype V] [LinearOrder V] intheorem powerVertex_upper (N : ℕ) (hN : 1 < N) {q r : V}(hqr : L.Adj q r) {j : ℕ} (hj : j < N) :(upperVertex L N hN (powerVertex L N q r j) q : ArtinGroup L) =(artinGenerator L q)⁻¹ ^ (N-(j+1)) * (artinGenerator L r)⁻¹ ^ j := bydsimp only [powerVertex,upperVertex]rw [min_eq_left (by omega : j ≤ N)]have he : N-j = (N-(j+1))+1 := by omegarw [he,negative_powers_upper L hqr]theorem powerVertex_star (N : ℕ) (hN : 0 < N) {q r : V} (hqr : L.Adj q r) (j : ℕ) :Star L q (levelPoint L hdim N hN (powerVertex L N q r j)) :=powersPoint_star L hdim hqr _ _ _theorem powerVertex_upper_star (N : ℕ) (hN : 1 < N) {q r : V}(hqr : L.Adj q r) {j : ℕ} (hj : j < N) :Star L q (levelPoint L hdim (N-1) (by omega)(upperVertex L N hN (powerVertex L N q r j) q)) := byunfold levelPointgeneralize_proofs hpossimp only [powerVertex_upper L N hN hqr hj] at hpos ⊢exact powersPoint_star L hdim hqr _ _ _theorem powerLabel_chart (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(N : ℕ) (hN : 1 < N) {q r : V} (hqr : L.Adj q r) {j : ℕ} (hj : j < N) :edgeLabel L hdim h Q N hN (powerVertex L N q r j) q r =chartTransport h Q q (levelPoint L hdim N (by omega) (powerVertex L N q r j))(levelPoint L hdim N (by omega) (powerVertex L N q r (j+1))) := byhave hb := upperPoint_step L hdim N hN (powerVertex L N q r j) qhave hc := upperPoint_step L hdim N hN (edgeVertex L N (powerVertex L N q r j) q r) rrw [upperVertex_reverse] at hcunfold edgeLabelrw [edgeTransport_chart L h Q hf hQ hb.1 (compatible_symm L hc.1)(powerVertex_star L hdim N (by omega) hqr j) (powerVertex_upper_star L hdim N hN hqr hj)]· rw [powerVertex_step L N hqr hj]· rw [powerVertex_step L N hqr hj]exact powerVertex_star L hdim N (by omega) hqr (j+1)/-- Directed walks retain the chosen generator pair, including parallel edges. -/inductive Walk (N : ℕ) : NegativeLevel L N → NegativeLevel L N → Type _| nil (g : NegativeLevel L N) : Walk N g g| cons {g k : NegativeLevel L N} (q r : V) (hqr : L.Adj q r)(p : Walk N (edgeVertex L N g q r) k) : Walk N g knamespace Walkvariable {L} {N : ℕ}def append {g k l : NegativeLevel L N} : Walk L N g k → Walk L N k l → Walk L N g l| .nil _, p => p| .cons q r hqr p, t => .cons q r hqr (append p t)def cast {g k g' k' : NegativeLevel L N} (p : Walk L N g k)(hg : g = g') (hk : k = k') : Walk L N g' k' := hg ▸ hk ▸ pend Walkdef walkProduct (N : ℕ) (hN : 1 < N) {g k : NegativeLevel L N} : Walk L N g k → SU2| .nil _ => 1| .cons (g := g) q r _ p => edgeLabel L hdim h Q N hN g q r * walkProduct N hN p@[simp] theorem walkProduct_nil (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) :walkProduct L hdim h Q N hN (.nil g) = 1 := rfl@[simp] theorem walkProduct_cons (N : ℕ) (hN : 1 < N) {g k : NegativeLevel L N}(q r : V) (hqr : L.Adj q r) (p : Walk L N (edgeVertex L N g q r) k) :walkProduct L hdim h Q N hN (.cons q r hqr p) =edgeLabel L hdim h Q N hN g q r * walkProduct L hdim h Q N hN p := rfl@[simp] theorem walkProduct_append (N : ℕ) (hN : 1 < N) {g k l : NegativeLevel L N}(p : Walk L N g k) (t : Walk L N k l) :walkProduct L hdim h Q N hN (p.append t) =walkProduct L hdim h Q N hN p * walkProduct L hdim h Q N hN t := byinduction p with| nil => simp [Walk.append]| cons q r hqr p ih => simp [Walk.append,ih,mul_assoc]@[simp] theorem walkProduct_cast (N : ℕ) (hN : 1 < N) {g k g' k' : NegativeLevel L N}(p : Walk L N g k) (hg : g = g') (hk : k = k') :walkProduct L hdim h Q N hN (p.cast hg hk) = walkProduct L hdim h Q N hN p := bysubst g'; subst k'; rfl/-- The entire subdivided edge has the exact endpoint transport, not merely a limit. -/theorem exists_powerWalk (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(N : ℕ) (hN : 1 < N) {q r : V} (hqr : L.Adj q r) (k : ℕ) (hk : k ≤ N) :∃ p : Walk L N (powerVertex L N q r 0) (powerVertex L N q r k),walkProduct L hdim h Q N hN p =chartTransport h Q q (levelPoint L hdim N (by omega) (powerVertex L N q r 0))(levelPoint L hdim N (by omega) (powerVertex L N q r k)) := byinduction k with| zero => exact ⟨.nil _,by simp [chartTransport]⟩| succ k ih =>obtain ⟨p,hp⟩ := ih (by omega)let t : Walk L N (powerVertex L N q r k)(edgeVertex L N (powerVertex L N q r k) q r) := .cons q r hqr (.nil _)let t' := t.cast rfl (powerVertex_step L N hqr (by omega : k < N))refine ⟨p.append t',?_⟩rw [walkProduct_append,hp]simp only [t',walkProduct_cast,t,walkProduct_cons,walkProduct_nil,mul_one]rw [powerLabel_chart L hdim h Q hf hQ N hN hqr (by omega),chartTransport_trans]def pureVertex (N : ℕ) (q : V) : NegativeLevel L N :=⟨(artinGenerator L q)⁻¹ ^ N,bysimp only [map_pow,map_inv,height_generator]change N • (-1 : ℤ) = -(N : ℤ)simp⟩omit [Fintype V] [LinearOrder V] intheorem powerVertex_zero (N : ℕ) (q r : V) :powerVertex L N q r 0 = pureVertex L N q := by apply Subtype.ext; simp [powerVertex,pureVertex]omit [Fintype V] [LinearOrder V] intheorem powerVertex_last (N : ℕ) (q r : V) :powerVertex L N q r N = pureVertex L N r := by apply Subtype.ext; simp [powerVertex,pureVertex]def vertexGauge (v : V) : SU2 := gauge h Q v (vertexPoint v)theorem levelPoint_power_zero (N : ℕ) (hN : 0 < N) {q r : V} (hqr : L.Adj q r) :levelPoint L hdim N hN (powerVertex L N q r 0) = vertexPoint q := byunfold levelPointhave hh : (powerVertex L N q r 0 : ArtinGroup L) =(artinGenerator L q)⁻¹ ^ N * (artinGenerator L r)⁻¹ ^ 0 := by simp [powerVertex]simp only [hh]exact powersPoint_first L hdim hqr N hN _theorem levelPoint_power_last (N : ℕ) (hN : 0 < N) {q r : V} (hqr : L.Adj q r) :levelPoint L hdim N hN (powerVertex L N q r N) = vertexPoint r := byunfold levelPointhave hh : (powerVertex L N q r N : ArtinGroup L) =(artinGenerator L q)⁻¹ ^ 0 * (artinGenerator L r)⁻¹ ^ N := by simp [powerVertex]simp only [hh]exact powersPoint_last L hdim hqr N hN _theorem exists_expanded_edge (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(N : ℕ) (hN : 1 < N) {q r : V} (hqr : L.Adj q r) :∃ p : Walk L N (pureVertex L N q) (pureVertex L N r),walkProduct L hdim h Q N hN p =(vertexGauge h Q q)⁻¹ * h q r * vertexGauge h Q r := byobtain ⟨p,hp⟩ := exists_powerWalk L hdim h Q hf hQ N hN hqr N le_rflrefine ⟨p.cast (powerVertex_zero L N q r) (powerVertex_last L N q r),?_⟩rw [walkProduct_cast,hp,levelPoint_power_zero L hdim N (by omega) hqr,levelPoint_power_last L hdim N (by omega) hqr]unfold chartTransport vertexGaugerw [gauge_transition L h Q hf hQ (Or.inr hqr)(star_vertex L (Or.inr hqr)) (star_vertex L (Or.inl rfl))]groupomit [Fintype V] [LinearOrder V] indef graphWalkProduct {a b : V} : L.Walk a b → SU2| .nil => 1| .cons (u := u) (v := v) _ p => h u v * graphWalkProduct ptheorem exists_expanded_walk (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(N : ℕ) (hN : 1 < N) {q r : V} (w : L.Walk q r) :∃ p : Walk L N (pureVertex L N q) (pureVertex L N r),walkProduct L hdim h Q N hN p =(vertexGauge h Q q)⁻¹ * graphWalkProduct L h w * vertexGauge h Q r := byinduction w with| nil => exact ⟨.nil _,by simp [graphWalkProduct]⟩| @cons q t r hqt w ih =>obtain ⟨p,hp⟩ := exists_expanded_edge L hdim h Q hf hQ N hN hqtobtain ⟨s,hs⟩ := ihrefine ⟨p.append s,?_⟩rw [walkProduct_append,hp,hs]simp only [graphWalkProduct]groupomit [Fintype V] [LinearOrder V] intheorem graphWalkProduct_eq_zipWith {a b : V} (w : L.Walk a b) :graphWalkProduct L h w = (List.zipWith h w.support w.support.tail).prod := byinduction w with| nil => simp [graphWalkProduct]| @cons q t r hqt w ih =>cases w with| nil => simp [graphWalkProduct]| cons htl p => simpa only [graphWalkProduct,SimpleGraph.Walk.support_cons,List.tail_cons,List.zipWith_cons_cons,List.prod_cons] using congrArg (h q t * ·) ih/-- A nontrivial seed holonomy survives every sufficiently translated level. -/theorem exists_nontrivial_level_walk (hf : FlatConnection L h) (hQ : GeneralPosition h Q)(N : ℕ) (hN : 1 < N) {q : V} (w : L.Walk q q)(hw : graphWalkProduct L h w ≠ 1) :∃ p : Walk L N (pureVertex L N q) (pureVertex L N q),walkProduct L hdim h Q N hN p ≠ 1 := byobtain ⟨p,hp⟩ := exists_expanded_walk L hdim h Q hf hQ N hN wrefine ⟨p,?_⟩rw [hp]intro heapply hwcalcgraphWalkProduct L h w = vertexGauge h Q q *((vertexGauge h Q q)⁻¹ * graphWalkProduct L h w * vertexGauge h Q q) *(vertexGauge h Q q)⁻¹ := by group_ = 1 := by rw [he]; groupnamespace Walkvariable {L} {N : ℕ}omit [Fintype V] [LinearOrder V] indef eval (a : NegativeLevel L N → V → V → SU2){g k : NegativeLevel L N} : Walk L N g k → SU2| .nil _ => 1| .cons (g := g) q r _ p => a g q r * eval a pend Walktheorem walkProduct_eq_eval (N : ℕ) (hN : 1 < N) {g k : NegativeLevel L N}(p : Walk L N g k) :walkProduct L hdim h Q N hN p = p.eval (edgeLabel L hdim h Q N hN) := byinduction p with| nil => rfl| cons q r hqr p ih => simp only [walkProduct,Walk.eval,ih]end LevelTransportnamespace SourceTransportopen LevelTransport AffineTransportdef seedWalk : seedGraph.Walk (.inl (.inl none)) (.inl (.inl none)) :=SimpleGraph.Walk.ofSupport SeedConnection.roseLoop(by simp [SeedConnection.roseLoop]) SeedConnection.roseLoop_edgestheorem seedWalk_support : seedWalk.support = SeedConnection.roseLoop :=SimpleGraph.Walk.support_ofSupport _ _theorem seedWalk_product_ne : graphWalkProduct seedGraph SeedConnection.connection seedWalk ≠ 1 := byrw [graphWalkProduct_eq_zipWith,seedWalk_support]exact SeedConnection.roseLoop_nontrivial/-- Actual small flat transport for the fixed source level graph. There are norepresentation, direction-map, local-chart, or nontriviality hypotheses here. -/theorem source_small_labels (ε : ℝ) (hε : 0 < ε) :∃ N : ℕ, 1 < N ∧ ∃ a : NegativeLevel seedGraph N → SeedCell → SeedCell → SU2,(∀ g q r, a (edgeVertex seedGraph N g q r) r q = (a g q r)⁻¹) ∧(∀ g q r, dist (a g q r) 1 < ε) ∧(∀ g₀ g₁ g₂ q₀ r₀ q₁ r₁ q₂ r₂,edgeVertex seedGraph N g₀ q₀ r₀ = g₁ →edgeVertex seedGraph N g₁ q₁ r₁ = g₂ →edgeVertex seedGraph N g₂ q₂ r₂ = g₀ →a g₀ q₀ r₀ * a g₁ q₁ r₁ * a g₂ q₂ r₂ = 1) ∧∃ (g : NegativeLevel seedGraph N) (p : Walk seedGraph N g g), p.eval a ≠ 1 := bylet : LinearOrder SeedCell := LinearOrder.lift' (Fintype.equivFin SeedCell)(Fintype.equivFin SeedCell).injectiveobtain ⟨Q,hQ⟩ := exists_generalPosition SeedConnection.connectionhave hf : FlatConnection seedGraph SeedConnection.connection :=fun _ _ _ hab hbc hac => SeedConnection.connection_flat hab hbc hacobtain ⟨M,hM⟩ := edgeLabel_uniform seedGraph SeedConnection.clique_card_le_threeSeedConnection.connection Q hQ hεlet D := Fintype.card SeedCell + 1let N := max M (8 * D + 2)have hMN : M ≤ N := le_max_left _ _have hNbound : 8 * D + 2 ≤ N := le_max_right _ _have hN : 1 < N := by omegahave hD : (0 : ℝ) < D := by dsimp [D]; positivityhave hNr : (0 : ℝ) < N := by exact_mod_cast (by omega : 0 < N)have hsize : 8 / (N : ℝ) < 1 / (Fintype.card SeedCell + 1 : ℝ) := byhave hBN : (8 : ℝ) * D + 2 ≤ N := by exact_mod_cast hNboundhave hDcast : (D : ℝ) = (Fintype.card SeedCell : ℝ) + 1 := by simp [D]rw [← hDcast]apply (div_lt_div_iff₀ hNr hD).mprnlinarithlet a := edgeLabel seedGraph SeedConnection.clique_card_le_threeSeedConnection.connection Q N hNrefine ⟨N,hN,a,?_,?_,?_,?_⟩· exact edgeLabel_reverse seedGraph SeedConnection.clique_card_le_threeSeedConnection.connection Q hf hQ N hN· exact hM N hMN hN· exact edgeLabel_triangle seedGraph SeedConnection.clique_card_le_threeSeedConnection.connection Q hf hQ N hN hsize· obtain ⟨p,hp⟩ := exists_nontrivial_level_walk seedGraph SeedConnection.clique_card_le_threeSeedConnection.connection Q hf hQ N hN seedWalk seedWalk_product_nerefine ⟨_,p,?_⟩rwa [walkProduct_eq_eval] at hpend SourceTransportend EilenbergGaneaendend OAI
12345678910111213141516171819202122232425262728293031323334353637383940414243import OAI.Topology.EilenbergGanea.Dimensionimport OAI.Topology.EilenbergGanea.CubicalCoverimport OAI.AlgebraicTopology.CWComplex.Presentationnamespace OAInoncomputable sectionopen Classical Set Metric Topologynamespace EilenbergGaneauniverse u/-- Exclusion is for arbitrary ordinary2-dimensional classifying CW spaces,not merely finite presentations or cell complexes with finitely many orbits. -/theorem source_no_classifyingSpace_two : ¬ HasClassifyingSpace.{u} SourceGroup 2 := byrintro ⟨X,tX,hTX,cX,hd,hpc,x,⟨χ⟩,E,tE,hcon,p,cov,hs⟩let : TopologicalSpace X := tXlet : T2Space X := hTXlet : Topology.CWComplex (Set.univ : Set X) := cXlet : PathConnectedSpace X := hpclet : TopologicalSpace E := tElet : ContractibleSpace E := hconobtain ⟨A,a,ha,r,hr,hp,B,hB⟩ := CWPresentation.ordinary_boundary_basis cov hd hs x χexact source_no_boundary_basis a ha r hr hp B hB/-- Source Theorem1.1 for the exact103-cell flag triangulation and its actualArtin height kernel. The last conjunct is polymorphic in the universe of thehypothetical ordinary CW model, with unrestricted numbers of cells. -/theorem source_main :Group.FG SourceGroup ∧ Group.ResiduallyFinite SourceGroup ∧cohomologicalDimension SourceGroup = 2 ∧HasClassifyingSpace.{0} SourceGroup 3 ∧¬ HasClassifyingSpace.{u} SourceGroup 2 :=⟨source_finitely_generated,source_residuallyFinite,source_cohomologicalDimension,source_hasClassifyingSpace_three,source_no_classifyingSpace_two⟩end EilenbergGaneaendend OAI12345678910111213141516171819202122232425262728293031323334353637383940414243import OAI.Topology.EilenbergGanea.Dimensionimport OAI.Topology.EilenbergGanea.CubicalCoverimport OAI.AlgebraicTopology.CWComplex.Presentationnamespace OAInoncomputable sectionopen Classical Set Metric Topologynamespace EilenbergGaneauniverse u/-- Exclusion is for arbitrary ordinary2-dimensional classifying CW spaces,not merely finite presentations or cell complexes with finitely many orbits. -/theorem source_no_classifyingSpace_two : ¬ HasClassifyingSpace.{u} SourceGroup 2 := byrintro ⟨X,tX,hTX,cX,hd,hpc,x,⟨χ⟩,E,tE,hcon,p,cov,hs⟩let : TopologicalSpace X := tXlet : T2Space X := hTXlet : Topology.CWComplex (Set.univ : Set X) := cXlet : PathConnectedSpace X := hpclet : TopologicalSpace E := tElet : ContractibleSpace E := hconobtain ⟨A,a,ha,r,hr,hp,B,hB⟩ := CWPresentation.ordinary_boundary_basis cov hd hs x χexact source_no_boundary_basis a ha r hr hp B hB/-- Source Theorem1.1 for the exact103-cell flag triangulation and its actualArtin height kernel. The last conjunct is polymorphic in the universe of thehypothetical ordinary CW model, with unrestricted numbers of cells. -/theorem source_main :Group.FG SourceGroup ∧ Group.ResiduallyFinite SourceGroup ∧cohomologicalDimension SourceGroup = 2 ∧HasClassifyingSpace.{0} SourceGroup 3 ∧¬ HasClassifyingSpace.{u} SourceGroup 2 :=⟨source_finitely_generated,source_residuallyFinite,source_cohomologicalDimension,source_hasClassifyingSpace_three,source_no_classifyingSpace_two⟩end EilenbergGaneaendend OAI
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061import OAI.Topology.EilenbergGanea.Seedimport OAI.GroupTheory.RightAngledArtin.ResidualFinitenessimport Mathlib.Algebra.Category.ModuleCat.ProjectiveDimensionimport Mathlib.RepresentationTheory.Basicimport Mathlib.Topology.CWComplex.Classical.Basicimport Mathlib.Topology.Covering.Basicimport Mathlib.Topology.Homotopy.Contractibleimport Mathlib.AlgebraicTopology.FundamentalGroupoid.FundamentalGroupnamespace OAInoncomputable sectionopen Classical Set Topologynamespace EilenbergGaneaabbrev SourceGroup := (height seedGraph).ker/-- Integral, left-module cohomological dimension; no rational replacement. -/def cohomologicalDimension (G : Type*) [Group G] : WithBot ℕ∞ :=CategoryTheory.projectiveDimension(ModuleCat.of (MonoidAlgebra ℤ G) (Representation.trivial ℤ G ℤ).asModule)universe u/-- Ordinary K(G,1) of dimension at most n. The cell and space types have nofiniteness or countability restriction. The contractible surjective coveringis the usual universal-cover characterization of a classifying space. -/def HasClassifyingSpace (G : Type*) [Group G] (n : ℕ) : Prop :=∃ (X : Type u) (_ : TopologicalSpace X) (_ : T2Space X)(_ : Topology.CWComplex (Set.univ : Set X)),(∀ k : ℕ, n < k → IsEmpty (Topology.CWComplex.cell (Set.univ : Set X) k)) ∧PathConnectedSpace X ∧∃ x : X, Nonempty (FundamentalGroup X x ≃* G) ∧∃ (E : Type u) (_ : TopologicalSpace E), ContractibleSpace E ∧∃ p : E → X, IsCoveringMap p ∧ Function.Surjective pend EilenbergGaneanamespace EilenbergGanea/-- The finite-generation conjunct for the exact source height kernel. -/theorem source_finitely_generated : Group.FG SourceGroup :=height_kernel_fg seedGraph seed_connected.preconnected seedBaseend EilenbergGaneanamespace EilenbergGanea/-- The second exact conjunct of the source main theorem. -/theorem source_residuallyFinite : Group.ResiduallyFinite SourceGroup := byhave := artin_residuallyFinite SeedCell seedGraphinfer_instanceend EilenbergGaneaendend OAI12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061import OAI.Topology.EilenbergGanea.Seedimport OAI.GroupTheory.RightAngledArtin.ResidualFinitenessimport Mathlib.Algebra.Category.ModuleCat.ProjectiveDimensionimport Mathlib.RepresentationTheory.Basicimport Mathlib.Topology.CWComplex.Classical.Basicimport Mathlib.Topology.Covering.Basicimport Mathlib.Topology.Homotopy.Contractibleimport Mathlib.AlgebraicTopology.FundamentalGroupoid.FundamentalGroupnamespace OAInoncomputable sectionopen Classical Set Topologynamespace EilenbergGaneaabbrev SourceGroup := (height seedGraph).ker/-- Integral, left-module cohomological dimension; no rational replacement. -/def cohomologicalDimension (G : Type*) [Group G] : WithBot ℕ∞ :=CategoryTheory.projectiveDimension(ModuleCat.of (MonoidAlgebra ℤ G) (Representation.trivial ℤ G ℤ).asModule)universe u/-- Ordinary K(G,1) of dimension at most n. The cell and space types have nofiniteness or countability restriction. The contractible surjective coveringis the usual universal-cover characterization of a classifying space. -/def HasClassifyingSpace (G : Type*) [Group G] (n : ℕ) : Prop :=∃ (X : Type u) (_ : TopologicalSpace X) (_ : T2Space X)(_ : Topology.CWComplex (Set.univ : Set X)),(∀ k : ℕ, n < k → IsEmpty (Topology.CWComplex.cell (Set.univ : Set X) k)) ∧PathConnectedSpace X ∧∃ x : X, Nonempty (FundamentalGroup X x ≃* G) ∧∃ (E : Type u) (_ : TopologicalSpace E), ContractibleSpace E ∧∃ p : E → X, IsCoveringMap p ∧ Function.Surjective pend EilenbergGaneanamespace EilenbergGanea/-- The finite-generation conjunct for the exact source height kernel. -/theorem source_finitely_generated : Group.FG SourceGroup :=height_kernel_fg seedGraph seed_connected.preconnected seedBaseend EilenbergGaneanamespace EilenbergGanea/-- The second exact conjunct of the source main theorem. -/theorem source_residuallyFinite : Group.ResiduallyFinite SourceGroup := byhave := artin_residuallyFinite SeedCell seedGraphinfer_instanceend EilenbergGaneaendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164import Mathlib.Tacticimport Mathlib.Combinatorics.SimpleGraph.Connectivity.Connectedimport Mathlib.Data.Fintype.Sumimport Mathlib.LinearAlgebra.Matrix.Notationnamespace OAInoncomputable sectionopen Classical Setnamespace EilenbergGanea/-- `false` names x; `true` names y. The second Boolean is the positive sign. -/def seedWord : Bool → List (Bool × Bool)| false => [(false, true), (false, true), (true, false), (true, false),(true, false), (true, false), (true, false)]| true => [(false, true), (false, true), (true, true), (false, false),(true, true), (false, false), (true, true), (false, false)]/-- Numbers of sectors in the two coned boundary polygons. -/def boundaryLength (r : Bool) : ℕ := 3 * (seedWord r).lengthabbrev RoseVertex := Option (Bool × Fin 2)abbrev SeedVertex := RoseVertex ⊕ Boolabbrev CircleEdge := Bool × Fin 3abbrev Sector := (r : Bool) × Fin (boundaryLength r)abbrev SeedEdge := CircleEdge ⊕ Sectorabbrev SeedCell := SeedVertex ⊕ (SeedEdge ⊕ Sector)def circleStart (e : CircleEdge) : RoseVertex :=![none, some (e.1, 0), some (e.1, 1)] e.2def circleEnd (e : CircleEdge) : RoseVertex :=![some (e.1, 0), some (e.1, 1), none] e.2def sectorLetter (s : Sector) : Bool × Bool :=(seedWord s.1).get ⟨s.2.val / 3, byhave h := s.2.isLtdsimp [boundaryLength] at homega⟩def sectorCircleEdge (s : Sector) : CircleEdge :=((sectorLetter s).1, if (sectorLetter s).2 then⟨s.2.val % 3, Nat.mod_lt _ (by decide)⟩ else⟨2 - s.2.val % 3, by omega⟩)def sectorStart (s : Sector) : RoseVertex :=if (sectorLetter s).2 then circleStart (sectorCircleEdge s)else circleEnd (sectorCircleEdge s)def nextSector (s : Sector) : Sector :=⟨s.1, ⟨(s.2.val + 1) % boundaryLength s.1,Nat.mod_lt _ (by have := s.2.isLt; omega)⟩⟩def edgeVertices : SeedEdge → Finset SeedVertex| .inl e => {.inl (circleStart e), .inl (circleEnd e)}| .inr s => {.inr s.1, .inl (sectorStart s)}def sectorEdges (s : Sector) : Finset SeedEdge :={.inl (sectorCircleEdge s), .inr s, .inr (nextSector s)}def sectorVertices (s : Sector) : Finset SeedVertex :=(sectorEdges s).biUnion edgeVertices/-- Proper cell-face incidence, including vertices of closed triangles. -/def properFace : SeedCell → SeedCell → Prop| .inl v, .inr (.inl e) => v ∈ edgeVertices e| .inl v, .inr (.inr s) => v ∈ sectorVertices s| .inr (.inl e), .inr (.inr s) => e ∈ sectorEdges s| _, _ => Falsedef seedGraph : SimpleGraph SeedCell whereAdj a b := properFace a b ∨ properFace b asymm := ⟨fun _ _ h => h.elim Or.inr Or.inl⟩loopless := ⟨byintro arcases a with a | a· simp [properFace]· rcases a with a | a <;> simp [properFace]⟩end EilenbergGaneanamespace EilenbergGanea/-- The vertex of the rose common to its two circles. -/def seedBase : SeedCell := .inl (.inl none)theorem seed_vertex_edge_adj {v : SeedVertex} {e : SeedEdge} (h : v ∈ edgeVertices e) :seedGraph.Adj (.inl v) (.inr (.inl e)) := Or.inl htheorem seed_edge_sector_adj {e : SeedEdge} {s : Sector} (h : e ∈ sectorEdges s) :seedGraph.Adj (.inr (.inl e)) (.inr (.inr s)) := Or.inl htheorem rose_vertex_reachable (v : RoseVertex) :seedGraph.Reachable seedBase (.inl (.inl v)) := byrcases v with _ | ⟨b, i⟩· exact .refl _· fin_cases i· have h₁ : seedGraph.Adj seedBase (.inr (.inl (.inl (b, 0)))) := byapply seed_vertex_edge_adjsimp [edgeVertices, circleStart, circleEnd]have h₂ : seedGraph.Adj (.inl (.inl (some (b, 0))))(.inr (.inl (.inl (b, 0)))) := byapply seed_vertex_edge_adjsimp [edgeVertices, circleStart, circleEnd]exact h₁.reachable.trans h₂.reachable.symm· have h₁ : seedGraph.Adj seedBase (.inr (.inl (.inl (b, 2)))) := byapply seed_vertex_edge_adjsimp [edgeVertices, circleStart, circleEnd]have h₂ : seedGraph.Adj (.inl (.inl (some (b, 1))))(.inr (.inl (.inl (b, 2)))) := byapply seed_vertex_edge_adjsimp [edgeVertices, circleStart, circleEnd]exact h₁.reachable.trans h₂.reachable.symmdef firstSector (r : Bool) : Sector :=⟨r, ⟨0, by cases r <;> decide⟩⟩theorem seed_vertex_reachable (v : SeedVertex) :seedGraph.Reachable seedBase (.inl v) := byrcases v with v | r· exact rose_vertex_reachable v· let s := firstSector rhave h₁ : seedGraph.Adj (.inl (.inl (sectorStart s))) (.inr (.inl (.inr s))) := byapply seed_vertex_edge_adjsimp [edgeVertices]have h₂ : seedGraph.Adj (.inl (.inr r)) (.inr (.inl (.inr s))) := byapply seed_vertex_edge_adjsimp [edgeVertices, s, firstSector]exact ((rose_vertex_reachable (sectorStart s)).trans h₁.reachable).trans h₂.reachable.symmtheorem seed_edge_reachable (e : SeedEdge) :seedGraph.Reachable seedBase (.inr (.inl e)) := byrcases e with e | s· apply (seed_vertex_reachable (.inl (circleStart e))).transapply SimpleGraph.Adj.reachableapply seed_vertex_edge_adjsimp [edgeVertices]· apply (seed_vertex_reachable (.inr s.1)).transapply SimpleGraph.Adj.reachableapply seed_vertex_edge_adjsimp [edgeVertices]theorem seed_cell_reachable (x : SeedCell) : seedGraph.Reachable seedBase x := byrcases x with v | e· exact seed_vertex_reachable v· rcases e with e | s· exact seed_edge_reachable e· apply (seed_edge_reachable (.inl (sectorCircleEdge s))).transapply SimpleGraph.Adj.reachableapply seed_edge_sector_adjsimp [sectorEdges]theorem seed_connected : seedGraph.Connected := byexact { preconnected := fun v w =>(seed_cell_reachable v).symm.trans (seed_cell_reachable w), nonempty := ⟨seedBase⟩ }end EilenbergGaneaendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164import Mathlib.Tacticimport Mathlib.Combinatorics.SimpleGraph.Connectivity.Connectedimport Mathlib.Data.Fintype.Sumimport Mathlib.LinearAlgebra.Matrix.Notationnamespace OAInoncomputable sectionopen Classical Setnamespace EilenbergGanea/-- `false` names x; `true` names y. The second Boolean is the positive sign. -/def seedWord : Bool → List (Bool × Bool)| false => [(false, true), (false, true), (true, false), (true, false),(true, false), (true, false), (true, false)]| true => [(false, true), (false, true), (true, true), (false, false),(true, true), (false, false), (true, true), (false, false)]/-- Numbers of sectors in the two coned boundary polygons. -/def boundaryLength (r : Bool) : ℕ := 3 * (seedWord r).lengthabbrev RoseVertex := Option (Bool × Fin 2)abbrev SeedVertex := RoseVertex ⊕ Boolabbrev CircleEdge := Bool × Fin 3abbrev Sector := (r : Bool) × Fin (boundaryLength r)abbrev SeedEdge := CircleEdge ⊕ Sectorabbrev SeedCell := SeedVertex ⊕ (SeedEdge ⊕ Sector)def circleStart (e : CircleEdge) : RoseVertex :=![none, some (e.1, 0), some (e.1, 1)] e.2def circleEnd (e : CircleEdge) : RoseVertex :=![some (e.1, 0), some (e.1, 1), none] e.2def sectorLetter (s : Sector) : Bool × Bool :=(seedWord s.1).get ⟨s.2.val / 3, byhave h := s.2.isLtdsimp [boundaryLength] at homega⟩def sectorCircleEdge (s : Sector) : CircleEdge :=((sectorLetter s).1, if (sectorLetter s).2 then⟨s.2.val % 3, Nat.mod_lt _ (by decide)⟩ else⟨2 - s.2.val % 3, by omega⟩)def sectorStart (s : Sector) : RoseVertex :=if (sectorLetter s).2 then circleStart (sectorCircleEdge s)else circleEnd (sectorCircleEdge s)def nextSector (s : Sector) : Sector :=⟨s.1, ⟨(s.2.val + 1) % boundaryLength s.1,Nat.mod_lt _ (by have := s.2.isLt; omega)⟩⟩def edgeVertices : SeedEdge → Finset SeedVertex| .inl e => {.inl (circleStart e), .inl (circleEnd e)}| .inr s => {.inr s.1, .inl (sectorStart s)}def sectorEdges (s : Sector) : Finset SeedEdge :={.inl (sectorCircleEdge s), .inr s, .inr (nextSector s)}def sectorVertices (s : Sector) : Finset SeedVertex :=(sectorEdges s).biUnion edgeVertices/-- Proper cell-face incidence, including vertices of closed triangles. -/def properFace : SeedCell → SeedCell → Prop| .inl v, .inr (.inl e) => v ∈ edgeVertices e| .inl v, .inr (.inr s) => v ∈ sectorVertices s| .inr (.inl e), .inr (.inr s) => e ∈ sectorEdges s| _, _ => Falsedef seedGraph : SimpleGraph SeedCell whereAdj a b := properFace a b ∨ properFace b asymm := ⟨fun _ _ h => h.elim Or.inr Or.inl⟩loopless := ⟨byintro arcases a with a | a· simp [properFace]· rcases a with a | a <;> simp [properFace]⟩end EilenbergGaneanamespace EilenbergGanea/-- The vertex of the rose common to its two circles. -/def seedBase : SeedCell := .inl (.inl none)theorem seed_vertex_edge_adj {v : SeedVertex} {e : SeedEdge} (h : v ∈ edgeVertices e) :seedGraph.Adj (.inl v) (.inr (.inl e)) := Or.inl htheorem seed_edge_sector_adj {e : SeedEdge} {s : Sector} (h : e ∈ sectorEdges s) :seedGraph.Adj (.inr (.inl e)) (.inr (.inr s)) := Or.inl htheorem rose_vertex_reachable (v : RoseVertex) :seedGraph.Reachable seedBase (.inl (.inl v)) := byrcases v with _ | ⟨b, i⟩· exact .refl _· fin_cases i· have h₁ : seedGraph.Adj seedBase (.inr (.inl (.inl (b, 0)))) := byapply seed_vertex_edge_adjsimp [edgeVertices, circleStart, circleEnd]have h₂ : seedGraph.Adj (.inl (.inl (some (b, 0))))(.inr (.inl (.inl (b, 0)))) := byapply seed_vertex_edge_adjsimp [edgeVertices, circleStart, circleEnd]exact h₁.reachable.trans h₂.reachable.symm· have h₁ : seedGraph.Adj seedBase (.inr (.inl (.inl (b, 2)))) := byapply seed_vertex_edge_adjsimp [edgeVertices, circleStart, circleEnd]have h₂ : seedGraph.Adj (.inl (.inl (some (b, 1))))(.inr (.inl (.inl (b, 2)))) := byapply seed_vertex_edge_adjsimp [edgeVertices, circleStart, circleEnd]exact h₁.reachable.trans h₂.reachable.symmdef firstSector (r : Bool) : Sector :=⟨r, ⟨0, by cases r <;> decide⟩⟩theorem seed_vertex_reachable (v : SeedVertex) :seedGraph.Reachable seedBase (.inl v) := byrcases v with v | r· exact rose_vertex_reachable v· let s := firstSector rhave h₁ : seedGraph.Adj (.inl (.inl (sectorStart s))) (.inr (.inl (.inr s))) := byapply seed_vertex_edge_adjsimp [edgeVertices]have h₂ : seedGraph.Adj (.inl (.inr r)) (.inr (.inl (.inr s))) := byapply seed_vertex_edge_adjsimp [edgeVertices, s, firstSector]exact ((rose_vertex_reachable (sectorStart s)).trans h₁.reachable).trans h₂.reachable.symmtheorem seed_edge_reachable (e : SeedEdge) :seedGraph.Reachable seedBase (.inr (.inl e)) := byrcases e with e | s· apply (seed_vertex_reachable (.inl (circleStart e))).transapply SimpleGraph.Adj.reachableapply seed_vertex_edge_adjsimp [edgeVertices]· apply (seed_vertex_reachable (.inr s.1)).transapply SimpleGraph.Adj.reachableapply seed_vertex_edge_adjsimp [edgeVertices]theorem seed_cell_reachable (x : SeedCell) : seedGraph.Reachable seedBase x := byrcases x with v | e· exact seed_vertex_reachable v· rcases e with e | s· exact seed_edge_reachable e· apply (seed_edge_reachable (.inl (sectorCircleEdge s))).transapply SimpleGraph.Adj.reachableapply seed_edge_sector_adjsimp [sectorEdges]theorem seed_connected : seedGraph.Connected := byexact { preconnected := fun v w =>(seed_cell_reachable v).symm.trans (seed_cell_reachable w), nonempty := ⟨seedBase⟩ }end EilenbergGaneaendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277import OAI.Topology.EilenbergGanea.SeedHolonomyimport OAI.GroupTheory.RightAngledArtin.Basicnamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiffnamespace EilenbergGaneanamespace SeedConnectiondef circleWord (e : CircleEdge) : FreeGroup Bool := if e.2 = 0 then FreeGroup.of e.1 else 1def boundaryEdgeWord (s : Sector) : FreeGroup Bool :=if (sectorLetter s).2 then circleWord (sectorCircleEdge s) else(circleWord (sectorCircleEdge s))⁻¹def boundaryWords (r : Bool) : List (FreeGroup Bool) :=List.ofFn (fun i : Fin (boundaryLength r) => boundaryEdgeWord ⟨r,i⟩)theorem boundaryWords_prod : ∀ r, (boundaryWords r).prod = seedRelator r := bydecidetheorem sector_end : ∀ s : Sector, sectorStart (nextSector s) =if (sectorLetter s).2 then circleEnd (sectorCircleEdge s)else circleStart (sectorCircleEdge s) := by decidetheorem circle_distinct : ∀ e : CircleEdge, circleStart e ≠ circleEnd e := by decidetheorem sector_distinct : ∀ s : Sector, sectorStart s ≠ sectorStart (nextSector s) := by decidedef circleLabel (e : CircleEdge) : SeedSU2 := FreeGroup.lift seedLetterUnit (circleWord e)def radialLabel (s : Sector) : SeedSU2 :=FreeGroup.lift seedLetterUnit ((boundaryWords s.1).take s.2.val).prod@[simp] theorem boundaryWords_length (r : Bool) : (boundaryWords r).length = boundaryLength r :=List.length_ofFn@[simp] theorem boundaryWords_get (s : Sector) :(boundaryWords s.1)[s.2.val]'(by simp) = boundaryEdgeWord s := bysimp [boundaryWords]theorem radial_step (s : Sector) : radialLabel (nextSector s) = radialLabel s *(if (sectorLetter s).2 then circleLabel (sectorCircleEdge s)else (circleLabel (sectorCircleEdge s))⁻¹) := byhave hs : s.2.val < (boundaryWords s.1).length := by simphave he := congrArg (FreeGroup.lift seedLetterUnit) (congrArg List.prod(List.take_succ_eq_append_getElem hs))rw [List.prod_append,List.prod_singleton,map_mul,boundaryWords_get] at hehave hf : FreeGroup.lift seedLetterUnit (boundaryEdgeWord s) =if (sectorLetter s).2 then circleLabel (sectorCircleEdge s)else (circleLabel (sectorCircleEdge s))⁻¹ := byunfold boundaryEdgeWord circleLabelsplit <;> simprw [hf] at hechange radialLabel (nextSector s) =FreeGroup.lift seedLetterUnit ((boundaryWords s.1).take s.2.val).prod * _rw [← he]unfold radialLabel nextSectordsimp onlyby_cases hn : s.2.val + 1 < boundaryLength s.1· rw [Nat.mod_eq_of_lt hn]· have hn' : s.2.val + 1 = boundaryLength s.1 := by have hh := s.2.isLt; omegarw [hn',Nat.mod_self,List.take_zero,List.prod_nil,map_one,← boundaryWords_length,List.take_length,boundaryWords_prod,seedRelator_unit]def edgeAnchor : SeedEdge → SeedVertex| .inl e => .inl (circleStart e)| .inr s => .inr s.1def edgeLocal : SeedEdge → SeedVertex → SeedSU2| .inl e, v => if v = .inl (circleStart e) then 1 else circleLabel e| .inr s, v => if v = .inr s.1 then 1 else radialLabel sdef faceLocal (s : Sector) (v : SeedVertex) : SeedSU2 :=if v = .inr s.1 then 1 elseif v = .inl (sectorStart s) then radialLabel s else radialLabel (nextSector s)theorem edgeLocal_anchor (e : SeedEdge) : edgeLocal e (edgeAnchor e) = 1 := bycases e <;> simp [edgeLocal,edgeAnchor]theorem nextSector_first (s : Sector) : (nextSector s).1 = s.1 := rfltheorem faceLocal_incidence (s : Sector) (e : SeedEdge) (he : e ∈ sectorEdges s)(v : SeedVertex) (hv : v ∈ edgeVertices e) :faceLocal s v = faceLocal s (edgeAnchor e) * edgeLocal e v := bysimp only [sectorEdges,Finset.mem_insert,Finset.mem_singleton] at hercases he with rfl | rfl | rfl· simp only [edgeVertices,Finset.mem_insert,Finset.mem_singleton] at hvrcases hv with rfl | rfl· simp [edgeAnchor,edgeLocal]· have hd := circle_distinct (sectorCircleEdge s)have hr := radial_step scases hb : (sectorLetter s).2· simp only [hb,Bool.false_eq_true,↓reduceIte] at hrsimp only [sectorStart,hb,Bool.false_eq_true,↓reduceIte,edgeAnchor,edgeLocal,faceLocal,Sum.inl_ne_inr,Sum.inl.injEq,Ne.symm hd,hd]rw [hr]group· simp only [hb,↓reduceIte] at hrsimp only [sectorStart,hb,↓reduceIte,edgeAnchor,edgeLocal,faceLocal,Sum.inl_ne_inr,Sum.inl.injEq,Ne.symm hd]exact hr· simp only [edgeVertices,Finset.mem_insert,Finset.mem_singleton] at hvrcases hv with rfl | rfl <;> simp [faceLocal,edgeLocal,edgeAnchor]· simp only [edgeVertices,Finset.mem_insert,Finset.mem_singleton] at hvrcases hv with rfl | rfl· simp [faceLocal,edgeLocal,edgeAnchor,nextSector_first]· simp [faceLocal,edgeLocal,edgeAnchor,nextSector_first,Ne.symm (sector_distinct s)]def cellRank : SeedCell → ℕ| .inl _ => 0| .inr (.inl _) => 1| .inr (.inr _) => 2theorem properFace_rank {a b : SeedCell} (h : properFace a b) : cellRank a < cellRank b := byrcases a with a | (a | a) <;> rcases b with b | (b | b) <;>simp only [properFace,cellRank] at * <;> omegatheorem properFace_trans {a b c : SeedCell} (hab : properFace a b) (hbc : properFace b c) :properFace a c := byrcases a with a | (a | a) <;> rcases b with b | (b | b) <;>rcases c with c | (c | c) <;> simp only [properFace] at *exact Finset.mem_biUnion.mpr ⟨b,hbc,hab⟩def upLabel : SeedCell → SeedCell → SeedSU2| .inl v, .inr (.inl e) => (edgeLocal e v)⁻¹| .inl v, .inr (.inr s) => (faceLocal s v)⁻¹| .inr (.inl e), .inr (.inr s) => (faceLocal s (edgeAnchor e))⁻¹| _, _ => 1@[simp] theorem upLabel_diag (a : SeedCell) : upLabel a a = 1 := byrcases a with a | (a | a) <;> rfltheorem upLabel_same_rank {a b : SeedCell} (hab : cellRank a = cellRank b) :upLabel a b = 1 := byrcases a with a | (a | a) <;> rcases b with b | (b | b) <;>simp [upLabel,cellRank] at *theorem upLabel_trans {a b c : SeedCell} (hab : a = b ∨ properFace a b)(hbc : b = c ∨ properFace b c) : upLabel a b * upLabel b c = upLabel a c := byrcases hab with rfl | hab· simprcases hbc with rfl | hbc· simprcases a with a | (a | a) <;> rcases b with b | (b | b) <;>rcases c with c | (c | c) <;> simp only [properFace] at hab hbcsimp only [upLabel,← mul_inv_rev]exact congrArg Inv.inv (faceLocal_incidence c b hbc a hab).symmdef Related (a b : SeedCell) : Prop := a = b ∨ seedGraph.Adj a btheorem related_symm {a b : SeedCell} : Related a b → Related b a := byrintro (rfl | h)· exact Or.inl rfl· exact Or.inr h.symmtheorem related_forward {a b : SeedCell} (h : Related a b) (hr : cellRank a ≤ cellRank b) :a = b ∨ properFace a b := byrcases h with h | h· exact Or.inl hrcases h with h | h· exact Or.inr h· have hd := properFace_rank homegadef connection (a b : SeedCell) : SeedSU2 :=if cellRank a ≤ cellRank b then upLabel a b else (upLabel b a)⁻¹@[simp] theorem connection_diag (a : SeedCell) : connection a a = 1 := bysimp [connection]theorem connection_reverse (a b : SeedCell) : connection b a = (connection a b)⁻¹ := byby_cases hab : cellRank a ≤ cellRank b· by_cases hba : cellRank b ≤ cellRank a· have he := le_antisymm hab hbasimp [connection,hab,hba,upLabel_same_rank he,upLabel_same_rank he.symm]· simp [connection,hab,hba]· have hba : cellRank b ≤ cellRank a := (le_total _ _).resolve_left habsimp [connection,hab,hba]theorem connection_flat_sorted {a b c : SeedCell} (hab : Related a b) (hbc : Related b c)(hrab : cellRank a ≤ cellRank b) (hrbc : cellRank b ≤ cellRank c) :connection a b * connection b c = connection a c := bysimp only [connection,hrab,hrbc,le_trans hrab hrbc,↓reduceIte]exact upLabel_trans (related_forward hab hrab) (related_forward hbc hrbc)theorem connection_flat {a b c : SeedCell} (hab : Related a b) (hbc : Related b c)(hac : Related a c) : connection a b * connection b c = connection a c := byby_cases hrab : cellRank a ≤ cellRank b· by_cases hrbc : cellRank b ≤ cellRank c· exact connection_flat_sorted hab hbc hrab hrbc· have hrcb := le_of_lt (lt_of_not_ge hrbc)by_cases hrac : cellRank a ≤ cellRank c· have H := connection_flat_sorted hac (related_symm hbc) hrac hrcbrw [connection_reverse b c] at Hrw [← H]group· have hrca := le_of_lt (lt_of_not_ge hrac)have H := connection_flat_sorted (related_symm hac) hab hrca hrabrw [connection_reverse a c,connection_reverse b c] at Hcalcconnection a b * connection b c =connection a c * ((connection a c)⁻¹ * connection a b) * connection b c := by group_ = connection a c * (connection b c)⁻¹ * connection b c := by rw [H]_ = connection a c := by group· have hrba := le_of_lt (lt_of_not_ge hrab)by_cases hrac : cellRank a ≤ cellRank c· have H := connection_flat_sorted (related_symm hab) hac hrba hracrw [connection_reverse a b] at Hrw [← H]group· have hrca := le_of_lt (lt_of_not_ge hrac)by_cases hrbc : cellRank b ≤ cellRank c· have H := connection_flat_sorted hbc (related_symm hac) hrbc hrcarw [connection_reverse a c,connection_reverse a b] at Hcalcconnection a b * connection b c =connection a b * (connection b c * (connection a c)⁻¹) * connection a c := by group_ = connection a b * (connection a b)⁻¹ * connection a c := by rw [H]_ = connection a c := by group· have hrcb := le_of_lt (lt_of_not_ge hrbc)have H := connection_flat_sorted (related_symm hbc) (related_symm hab) hrcb hrbarw [connection_reverse b c,connection_reverse a b,connection_reverse a c] at Hhave H' := congrArg Inv.inv Hsimpa only [mul_inv_rev,inv_inv] using H'def rankFin (a : SeedCell) : Fin 3 := ⟨cellRank a,byrcases a with a | (a | a) <;> norm_num [cellRank]⟩theorem adjacent_rank_ne {a b : SeedCell} (h : seedGraph.Adj a b) : rankFin a ≠ rankFin b := byintro hehave he' := congrArg Fin.val hechange cellRank a = cellRank b at he'rcases h with h | h <;> have hh := properFace_rank h <;> omegatheorem clique_card_le_three (s : Finset SeedCell) (hs : (s : Set SeedCell).Pairwise seedGraph.Adj) :s.card ≤ 3 := byhave hi : Set.InjOn rankFin (s : Set SeedCell) := byintro a ha b hb heby_contra hnexact adjacent_rank_ne (hs ha hb hn) hehave hc := Finset.card_le_card (Finset.subset_univ (s.image rankFin))rwa [Finset.card_image_of_injOn hi,Finset.card_univ,Fintype.card_fin] at hc/-- The subdivided x-circle in the exact 103-cell order graph. -/def roseLoop : List SeedCell :=[.inl (.inl none), .inr (.inl (.inl (false,0))),.inl (.inl (some (false,0))), .inr (.inl (.inl (false,1))),.inl (.inl (some (false,1))), .inr (.inl (.inl (false,2))), .inl (.inl none)]theorem roseLoop_edges : roseLoop.IsChain seedGraph.Adj := bysimp [roseLoop,List.isChain_cons_cons,seedGraph,properFace,edgeVertices,circleStart,circleEnd]theorem roseLoop_holonomy : (List.zipWith connection roseLoop roseLoop.tail).prod = seedXUnit := bysimp [roseLoop,connection,cellRank,upLabel,edgeLocal,circleLabel,circleWord,circleStart,seedLetterUnit]theorem roseLoop_nontrivial : (List.zipWith connection roseLoop roseLoop.tail).prod ≠ 1 := byrw [roseLoop_holonomy]intro hhave hh := congrArg (fun q : SeedSU2 => (q : ℍ).re) hnorm_num [seedXUnit,seedXQuaternion] at hhend SeedConnectionend EilenbergGaneaendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277import OAI.Topology.EilenbergGanea.SeedHolonomyimport OAI.GroupTheory.RightAngledArtin.Basicnamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiffnamespace EilenbergGaneanamespace SeedConnectiondef circleWord (e : CircleEdge) : FreeGroup Bool := if e.2 = 0 then FreeGroup.of e.1 else 1def boundaryEdgeWord (s : Sector) : FreeGroup Bool :=if (sectorLetter s).2 then circleWord (sectorCircleEdge s) else(circleWord (sectorCircleEdge s))⁻¹def boundaryWords (r : Bool) : List (FreeGroup Bool) :=List.ofFn (fun i : Fin (boundaryLength r) => boundaryEdgeWord ⟨r,i⟩)theorem boundaryWords_prod : ∀ r, (boundaryWords r).prod = seedRelator r := bydecidetheorem sector_end : ∀ s : Sector, sectorStart (nextSector s) =if (sectorLetter s).2 then circleEnd (sectorCircleEdge s)else circleStart (sectorCircleEdge s) := by decidetheorem circle_distinct : ∀ e : CircleEdge, circleStart e ≠ circleEnd e := by decidetheorem sector_distinct : ∀ s : Sector, sectorStart s ≠ sectorStart (nextSector s) := by decidedef circleLabel (e : CircleEdge) : SeedSU2 := FreeGroup.lift seedLetterUnit (circleWord e)def radialLabel (s : Sector) : SeedSU2 :=FreeGroup.lift seedLetterUnit ((boundaryWords s.1).take s.2.val).prod@[simp] theorem boundaryWords_length (r : Bool) : (boundaryWords r).length = boundaryLength r :=List.length_ofFn@[simp] theorem boundaryWords_get (s : Sector) :(boundaryWords s.1)[s.2.val]'(by simp) = boundaryEdgeWord s := bysimp [boundaryWords]theorem radial_step (s : Sector) : radialLabel (nextSector s) = radialLabel s *(if (sectorLetter s).2 then circleLabel (sectorCircleEdge s)else (circleLabel (sectorCircleEdge s))⁻¹) := byhave hs : s.2.val < (boundaryWords s.1).length := by simphave he := congrArg (FreeGroup.lift seedLetterUnit) (congrArg List.prod(List.take_succ_eq_append_getElem hs))rw [List.prod_append,List.prod_singleton,map_mul,boundaryWords_get] at hehave hf : FreeGroup.lift seedLetterUnit (boundaryEdgeWord s) =if (sectorLetter s).2 then circleLabel (sectorCircleEdge s)else (circleLabel (sectorCircleEdge s))⁻¹ := byunfold boundaryEdgeWord circleLabelsplit <;> simprw [hf] at hechange radialLabel (nextSector s) =FreeGroup.lift seedLetterUnit ((boundaryWords s.1).take s.2.val).prod * _rw [← he]unfold radialLabel nextSectordsimp onlyby_cases hn : s.2.val + 1 < boundaryLength s.1· rw [Nat.mod_eq_of_lt hn]· have hn' : s.2.val + 1 = boundaryLength s.1 := by have hh := s.2.isLt; omegarw [hn',Nat.mod_self,List.take_zero,List.prod_nil,map_one,← boundaryWords_length,List.take_length,boundaryWords_prod,seedRelator_unit]def edgeAnchor : SeedEdge → SeedVertex| .inl e => .inl (circleStart e)| .inr s => .inr s.1def edgeLocal : SeedEdge → SeedVertex → SeedSU2| .inl e, v => if v = .inl (circleStart e) then 1 else circleLabel e| .inr s, v => if v = .inr s.1 then 1 else radialLabel sdef faceLocal (s : Sector) (v : SeedVertex) : SeedSU2 :=if v = .inr s.1 then 1 elseif v = .inl (sectorStart s) then radialLabel s else radialLabel (nextSector s)theorem edgeLocal_anchor (e : SeedEdge) : edgeLocal e (edgeAnchor e) = 1 := bycases e <;> simp [edgeLocal,edgeAnchor]theorem nextSector_first (s : Sector) : (nextSector s).1 = s.1 := rfltheorem faceLocal_incidence (s : Sector) (e : SeedEdge) (he : e ∈ sectorEdges s)(v : SeedVertex) (hv : v ∈ edgeVertices e) :faceLocal s v = faceLocal s (edgeAnchor e) * edgeLocal e v := bysimp only [sectorEdges,Finset.mem_insert,Finset.mem_singleton] at hercases he with rfl | rfl | rfl· simp only [edgeVertices,Finset.mem_insert,Finset.mem_singleton] at hvrcases hv with rfl | rfl· simp [edgeAnchor,edgeLocal]· have hd := circle_distinct (sectorCircleEdge s)have hr := radial_step scases hb : (sectorLetter s).2· simp only [hb,Bool.false_eq_true,↓reduceIte] at hrsimp only [sectorStart,hb,Bool.false_eq_true,↓reduceIte,edgeAnchor,edgeLocal,faceLocal,Sum.inl_ne_inr,Sum.inl.injEq,Ne.symm hd,hd]rw [hr]group· simp only [hb,↓reduceIte] at hrsimp only [sectorStart,hb,↓reduceIte,edgeAnchor,edgeLocal,faceLocal,Sum.inl_ne_inr,Sum.inl.injEq,Ne.symm hd]exact hr· simp only [edgeVertices,Finset.mem_insert,Finset.mem_singleton] at hvrcases hv with rfl | rfl <;> simp [faceLocal,edgeLocal,edgeAnchor]· simp only [edgeVertices,Finset.mem_insert,Finset.mem_singleton] at hvrcases hv with rfl | rfl· simp [faceLocal,edgeLocal,edgeAnchor,nextSector_first]· simp [faceLocal,edgeLocal,edgeAnchor,nextSector_first,Ne.symm (sector_distinct s)]def cellRank : SeedCell → ℕ| .inl _ => 0| .inr (.inl _) => 1| .inr (.inr _) => 2theorem properFace_rank {a b : SeedCell} (h : properFace a b) : cellRank a < cellRank b := byrcases a with a | (a | a) <;> rcases b with b | (b | b) <;>simp only [properFace,cellRank] at * <;> omegatheorem properFace_trans {a b c : SeedCell} (hab : properFace a b) (hbc : properFace b c) :properFace a c := byrcases a with a | (a | a) <;> rcases b with b | (b | b) <;>rcases c with c | (c | c) <;> simp only [properFace] at *exact Finset.mem_biUnion.mpr ⟨b,hbc,hab⟩def upLabel : SeedCell → SeedCell → SeedSU2| .inl v, .inr (.inl e) => (edgeLocal e v)⁻¹| .inl v, .inr (.inr s) => (faceLocal s v)⁻¹| .inr (.inl e), .inr (.inr s) => (faceLocal s (edgeAnchor e))⁻¹| _, _ => 1@[simp] theorem upLabel_diag (a : SeedCell) : upLabel a a = 1 := byrcases a with a | (a | a) <;> rfltheorem upLabel_same_rank {a b : SeedCell} (hab : cellRank a = cellRank b) :upLabel a b = 1 := byrcases a with a | (a | a) <;> rcases b with b | (b | b) <;>simp [upLabel,cellRank] at *theorem upLabel_trans {a b c : SeedCell} (hab : a = b ∨ properFace a b)(hbc : b = c ∨ properFace b c) : upLabel a b * upLabel b c = upLabel a c := byrcases hab with rfl | hab· simprcases hbc with rfl | hbc· simprcases a with a | (a | a) <;> rcases b with b | (b | b) <;>rcases c with c | (c | c) <;> simp only [properFace] at hab hbcsimp only [upLabel,← mul_inv_rev]exact congrArg Inv.inv (faceLocal_incidence c b hbc a hab).symmdef Related (a b : SeedCell) : Prop := a = b ∨ seedGraph.Adj a btheorem related_symm {a b : SeedCell} : Related a b → Related b a := byrintro (rfl | h)· exact Or.inl rfl· exact Or.inr h.symmtheorem related_forward {a b : SeedCell} (h : Related a b) (hr : cellRank a ≤ cellRank b) :a = b ∨ properFace a b := byrcases h with h | h· exact Or.inl hrcases h with h | h· exact Or.inr h· have hd := properFace_rank homegadef connection (a b : SeedCell) : SeedSU2 :=if cellRank a ≤ cellRank b then upLabel a b else (upLabel b a)⁻¹@[simp] theorem connection_diag (a : SeedCell) : connection a a = 1 := bysimp [connection]theorem connection_reverse (a b : SeedCell) : connection b a = (connection a b)⁻¹ := byby_cases hab : cellRank a ≤ cellRank b· by_cases hba : cellRank b ≤ cellRank a· have he := le_antisymm hab hbasimp [connection,hab,hba,upLabel_same_rank he,upLabel_same_rank he.symm]· simp [connection,hab,hba]· have hba : cellRank b ≤ cellRank a := (le_total _ _).resolve_left habsimp [connection,hab,hba]theorem connection_flat_sorted {a b c : SeedCell} (hab : Related a b) (hbc : Related b c)(hrab : cellRank a ≤ cellRank b) (hrbc : cellRank b ≤ cellRank c) :connection a b * connection b c = connection a c := bysimp only [connection,hrab,hrbc,le_trans hrab hrbc,↓reduceIte]exact upLabel_trans (related_forward hab hrab) (related_forward hbc hrbc)theorem connection_flat {a b c : SeedCell} (hab : Related a b) (hbc : Related b c)(hac : Related a c) : connection a b * connection b c = connection a c := byby_cases hrab : cellRank a ≤ cellRank b· by_cases hrbc : cellRank b ≤ cellRank c· exact connection_flat_sorted hab hbc hrab hrbc· have hrcb := le_of_lt (lt_of_not_ge hrbc)by_cases hrac : cellRank a ≤ cellRank c· have H := connection_flat_sorted hac (related_symm hbc) hrac hrcbrw [connection_reverse b c] at Hrw [← H]group· have hrca := le_of_lt (lt_of_not_ge hrac)have H := connection_flat_sorted (related_symm hac) hab hrca hrabrw [connection_reverse a c,connection_reverse b c] at Hcalcconnection a b * connection b c =connection a c * ((connection a c)⁻¹ * connection a b) * connection b c := by group_ = connection a c * (connection b c)⁻¹ * connection b c := by rw [H]_ = connection a c := by group· have hrba := le_of_lt (lt_of_not_ge hrab)by_cases hrac : cellRank a ≤ cellRank c· have H := connection_flat_sorted (related_symm hab) hac hrba hracrw [connection_reverse a b] at Hrw [← H]group· have hrca := le_of_lt (lt_of_not_ge hrac)by_cases hrbc : cellRank b ≤ cellRank c· have H := connection_flat_sorted hbc (related_symm hac) hrbc hrcarw [connection_reverse a c,connection_reverse a b] at Hcalcconnection a b * connection b c =connection a b * (connection b c * (connection a c)⁻¹) * connection a c := by group_ = connection a b * (connection a b)⁻¹ * connection a c := by rw [H]_ = connection a c := by group· have hrcb := le_of_lt (lt_of_not_ge hrbc)have H := connection_flat_sorted (related_symm hbc) (related_symm hab) hrcb hrbarw [connection_reverse b c,connection_reverse a b,connection_reverse a c] at Hhave H' := congrArg Inv.inv Hsimpa only [mul_inv_rev,inv_inv] using H'def rankFin (a : SeedCell) : Fin 3 := ⟨cellRank a,byrcases a with a | (a | a) <;> norm_num [cellRank]⟩theorem adjacent_rank_ne {a b : SeedCell} (h : seedGraph.Adj a b) : rankFin a ≠ rankFin b := byintro hehave he' := congrArg Fin.val hechange cellRank a = cellRank b at he'rcases h with h | h <;> have hh := properFace_rank h <;> omegatheorem clique_card_le_three (s : Finset SeedCell) (hs : (s : Set SeedCell).Pairwise seedGraph.Adj) :s.card ≤ 3 := byhave hi : Set.InjOn rankFin (s : Set SeedCell) := byintro a ha b hb heby_contra hnexact adjacent_rank_ne (hs ha hb hn) hehave hc := Finset.card_le_card (Finset.subset_univ (s.image rankFin))rwa [Finset.card_image_of_injOn hi,Finset.card_univ,Fintype.card_fin] at hc/-- The subdivided x-circle in the exact 103-cell order graph. -/def roseLoop : List SeedCell :=[.inl (.inl none), .inr (.inl (.inl (false,0))),.inl (.inl (some (false,0))), .inr (.inl (.inl (false,1))),.inl (.inl (some (false,1))), .inr (.inl (.inl (false,2))), .inl (.inl none)]theorem roseLoop_edges : roseLoop.IsChain seedGraph.Adj := bysimp [roseLoop,List.isChain_cons_cons,seedGraph,properFace,edgeVertices,circleStart,circleEnd]theorem roseLoop_holonomy : (List.zipWith connection roseLoop roseLoop.tail).prod = seedXUnit := bysimp [roseLoop,connection,cellRank,upLabel,edgeLocal,circleLabel,circleWord,circleStart,seedLetterUnit]theorem roseLoop_nontrivial : (List.zipWith connection roseLoop roseLoop.tail).prod ≠ 1 := byrw [roseLoop_holonomy]intro hhave hh := congrArg (fun q : SeedSU2 => (q : ℍ).re) hnorm_num [seedXUnit,seedXQuaternion] at hhend SeedConnectionend EilenbergGaneaendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191import OAI.Topology.EilenbergGanea.Seedimport OAI.Topology.EilenbergGanea.SmallHolonomynamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiff/-! Exact quaternion monodromy of the fixed presentation seed. -/open scoped Quaternionnamespace EilenbergGaneaabbrev SeedSU2 := unitary ℍdef seedGoldenReal : ℝ := (1 + Real.sqrt 5) / 4def seedXQuaternion : ℍ := ⟨0,1,0,0⟩def seedYQuaternion : ℍ :=⟨seedGoldenReal,1/2,Real.sqrt ((3 - Real.sqrt 5)/8),0⟩theorem seedGoldenReal_quadratic : 4 * seedGoldenReal ^ 2 - 2 * seedGoldenReal - 1 = 0 := byhave h := Real.sq_sqrt (show (0 : ℝ) ≤ 5 by norm_num)dsimp [seedGoldenReal]nlinariththeorem seedGoldenReal_cubic : 8 * seedGoldenReal ^ 3 - 4 * seedGoldenReal = 1 := byhave h := seedGoldenReal_quadraticnlinarith [sq_nonneg (2 * seedGoldenReal - 1),mul_eq_zero_of_left h seedGoldenReal]theorem seedGoldenReal_quartic : 16 * seedGoldenReal ^ 4 - 12 * seedGoldenReal ^ 2 + 1 = 0 := byhave h := seedGoldenReal_quadratichave h' := seedGoldenReal_cubicnlinarith [mul_eq_zero_of_left h (seedGoldenReal ^ 2),congrArg (fun t : ℝ => t * seedGoldenReal) h']theorem seedX_normSq : Quaternion.normSq seedXQuaternion = 1 := byrw [Quaternion.normSq_def']norm_num [seedXQuaternion]theorem seedY_normSq : Quaternion.normSq seedYQuaternion = 1 := byhave hs := Real.sq_sqrt (show (0 : ℝ) ≤ 5 by norm_num)have hn := Real.sqrt_nonneg (5 : ℝ)have hle : Real.sqrt (5 : ℝ) ≤ 3 := by nlinarithhave hc := Real.sq_sqrt (show (0 : ℝ) ≤ (3 - Real.sqrt 5)/8 by positivity)rw [Quaternion.normSq_def']change seedGoldenReal ^ 2 + (1 / 2 : ℝ) ^ 2 + Real.sqrt ((3 - Real.sqrt 5)/8) ^ 2 + 0 ^ 2 = 1dsimp [seedGoldenReal]nlinarithdef seedXUnit : SeedSU2 := ⟨seedXQuaternion,byrw [Unitary.mem_iff,Quaternion.star_mul_self,Quaternion.self_mul_star,seedX_normSq]simp⟩def seedYUnit : SeedSU2 := ⟨seedYQuaternion,byrw [Unitary.mem_iff,Quaternion.star_mul_self,Quaternion.self_mul_star,seedY_normSq]simp⟩theorem unitQuaternion_quadratic (q : ℍ) (h : Quaternion.normSq q = 1) :q ^ 2 = (2 * q.re : ℝ) * q - 1 := byhave hh := Quaternion.star_mul_self qrw [h,Quaternion.star_eq_two_re_sub,sub_mul] at hhsimp only [Quaternion.coe_one] at hhhave hh' : ((2 * q.re : ℝ) : ℍ) * q = 1 + q * q := bysimpa only [add_comm] using sub_eq_iff_eq_add.mp hhrw [pow_two]apply eq_sub_iff_add_eq.mprsimpa only [add_comm] using hh'.symmtheorem unitQuaternion_half_cube (q : ℍ) (h : Quaternion.normSq q = 1)(hr : q.re = 1/2) : q ^ 3 = -1 := byhave hh := unitQuaternion_quadratic q hrw [hr] at hhnorm_num at hhcalcq ^ 3 = q ^ 2 * q := by rw [pow_succ]_ = (q - 1) * q := by rw [hh]_ = q ^ 2 - q := by noncomm_ring_ = -1 := by rw [hh]; noncomm_ringtheorem seedX_square : seedXQuaternion ^ 2 = -1 := byrw [pow_two]apply Quaternion.ext· rw [Quaternion.re_mul]norm_num [seedXQuaternion]· rw [Quaternion.imI_mul]norm_num [seedXQuaternion]· rw [Quaternion.imJ_mul]norm_num [seedXQuaternion]· rw [Quaternion.imK_mul]norm_num [seedXQuaternion]theorem seedY_fifth : seedYQuaternion ^ 5 = -1 := bylet q := seedYQuaternionlet c : ℍ := (seedGoldenReal : ℝ)have hh : q ^ 2 = 2 * c * q - 1 := bysimpa only [q,c,seedYQuaternion,Quaternion.coe_mul, show ((2 : ℝ) : ℍ) = 2 from rfl] using unitQuaternion_quadratic seedYQuaternion seedY_normSqhave h3 : q ^ 3 = (4 * c ^ 2 - 1) * q - 2 * c := bycalcq ^ 3 = q ^ 2 * q := by rw [pow_succ]_ = (2 * c * q - 1) * q := by rw [hh]_ = 2 * c * q ^ 2 - q := by noncomm_ring_ = (4 * c ^ 2 - 1) * q - 2 * c := by rw [hh]; noncomm_ringhave h4 : q ^ 4 = (8 * c ^ 3 - 4 * c) * q - (4 * c ^ 2 - 1) := bycalcq ^ 4 = q ^ 3 * q := by rw [pow_succ]_ = ((4 * c ^ 2 - 1) * q - 2 * c) * q := by rw [h3]_ = (4 * c ^ 2 - 1) * q ^ 2 - 2 * c * q := by noncomm_ring_ = (8 * c ^ 3 - 4 * c) * q - (4 * c ^ 2 - 1) := by rw [hh]; noncomm_ringhave h5 : q ^ 5 = (16 * c ^ 4 - 12 * c ^ 2 + 1) * q - (8 * c ^ 3 - 4 * c) := bycalcq ^ 5 = q ^ 4 * q := by rw [pow_succ]_ = ((8 * c ^ 3 - 4 * c) * q - (4 * c ^ 2 - 1)) * q := by rw [h4]_ = (8 * c ^ 3 - 4 * c) * q ^ 2 - (4 * c ^ 2 - 1) * q := by noncomm_ring_ = _ := by rw [hh]; noncomm_ringhave hc3 : 8 * c ^ 3 - 4 * c = 1 := bychange (8 : ℍ) * (seedGoldenReal : ℍ) ^ 3 - 4 * (seedGoldenReal : ℍ) = 1have h := congrArg (fun r : ℝ => (r : ℍ)) seedGoldenReal_cubicsimpa only [Quaternion.coe_sub,Quaternion.coe_mul,Quaternion.coe_pow,Quaternion.coe_one,show ((8 : ℝ) : ℍ) = 8 from rfl, show ((4 : ℝ) : ℍ) = 4 from rfl] using hhave hc4 : 16 * c ^ 4 - 12 * c ^ 2 + 1 = 0 := bychange (16 : ℍ) * (seedGoldenReal : ℍ) ^ 4 - 12 * (seedGoldenReal : ℍ) ^ 2 + 1 = 0have h := congrArg (fun r : ℝ => (r : ℍ)) seedGoldenReal_quarticsimpa only [Quaternion.coe_sub,Quaternion.coe_mul,Quaternion.coe_pow,Quaternion.coe_add,Quaternion.coe_one,Quaternion.coe_zero, show ((16 : ℝ) : ℍ) = 16 from rfl,show ((12 : ℝ) : ℍ) = 12 from rfl] using hsimpa [hc3,hc4] using h5theorem seedXYinv_cube : (seedXQuaternion * star seedYQuaternion) ^ 3 = -1 := byapply unitQuaternion_half_cube· rw [map_mul,Quaternion.normSq_star,seedX_normSq,seedY_normSq,mul_one]· rw [Quaternion.re_mul]rw [Quaternion.imI_star]norm_num [seedXQuaternion,seedYQuaternion]theorem seed_unit_relations :seedXUnit ^ 2 = seedYUnit ^ 5 ∧seedXUnit ^ 2 = (seedXUnit * seedYUnit⁻¹) ^ 3 := byconstructor· apply Subtype.val_injectivechange seedXQuaternion ^ 2 = seedYQuaternion ^ 5rw [seedX_square,seedY_fifth]· apply Subtype.val_injectivechange seedXQuaternion ^ 2 = (seedXQuaternion * star seedYQuaternion) ^ 3rw [seedX_square,seedXYinv_cube]def seedRelator : Bool → FreeGroup Bool| false => FreeGroup.of false ^ 2 * (FreeGroup.of true ^ 5)⁻¹| true => FreeGroup.of false ^ 2 * ((FreeGroup.of false * (FreeGroup.of true)⁻¹) ^ 3)⁻¹theorem seedWord_relator (r : Bool) : FreeGroup.mk (seedWord r) = seedRelator r := bycases r <;> decidedef seedLetterUnit : Bool → SeedSU2| false => seedXUnit| true => seedYUnittheorem seedRelator_unit (r : Bool) : FreeGroup.lift seedLetterUnit (seedRelator r) = 1 := bycases r· simp only [seedRelator,map_mul,map_inv,map_pow,FreeGroup.lift_apply_of,seedLetterUnit]rw [seed_unit_relations.1,mul_inv_cancel]· simp only [seedRelator,map_mul,map_inv,map_pow,FreeGroup.lift_apply_of,seedLetterUnit]rw [seed_unit_relations.2,mul_inv_cancel]abbrev SeedPresentationGroup := PresentedGroup (Set.range seedRelator)def seedMonodromy : SeedPresentationGroup →* SeedSU2 :=PresentedGroup.toGroup (f := seedLetterUnit) (byrintro _ ⟨r,rfl⟩exact seedRelator_unit r)theorem seedMonodromy_nontrivial : seedMonodromy (PresentedGroup.of false) ≠ 1 := byintro hhave hh := congrArg (fun q : SeedSU2 => (q : ℍ).re) hsimp [seedMonodromy,seedLetterUnit,seedXUnit,seedXQuaternion] at hh/-- The source exponent-sum boundary, with rows indexed by its two relators. -/def seedExponentMatrix : Matrix (Fin 2) (Fin 2) ℤ := !![2,-5;-1,3]theorem seedExponentMatrix_det : seedExponentMatrix.det = 1 := bynorm_num [seedExponentMatrix,Matrix.det_fin_two]end EilenbergGaneaendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191import OAI.Topology.EilenbergGanea.Seedimport OAI.Topology.EilenbergGanea.SmallHolonomynamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiff/-! Exact quaternion monodromy of the fixed presentation seed. -/open scoped Quaternionnamespace EilenbergGaneaabbrev SeedSU2 := unitary ℍdef seedGoldenReal : ℝ := (1 + Real.sqrt 5) / 4def seedXQuaternion : ℍ := ⟨0,1,0,0⟩def seedYQuaternion : ℍ :=⟨seedGoldenReal,1/2,Real.sqrt ((3 - Real.sqrt 5)/8),0⟩theorem seedGoldenReal_quadratic : 4 * seedGoldenReal ^ 2 - 2 * seedGoldenReal - 1 = 0 := byhave h := Real.sq_sqrt (show (0 : ℝ) ≤ 5 by norm_num)dsimp [seedGoldenReal]nlinariththeorem seedGoldenReal_cubic : 8 * seedGoldenReal ^ 3 - 4 * seedGoldenReal = 1 := byhave h := seedGoldenReal_quadraticnlinarith [sq_nonneg (2 * seedGoldenReal - 1),mul_eq_zero_of_left h seedGoldenReal]theorem seedGoldenReal_quartic : 16 * seedGoldenReal ^ 4 - 12 * seedGoldenReal ^ 2 + 1 = 0 := byhave h := seedGoldenReal_quadratichave h' := seedGoldenReal_cubicnlinarith [mul_eq_zero_of_left h (seedGoldenReal ^ 2),congrArg (fun t : ℝ => t * seedGoldenReal) h']theorem seedX_normSq : Quaternion.normSq seedXQuaternion = 1 := byrw [Quaternion.normSq_def']norm_num [seedXQuaternion]theorem seedY_normSq : Quaternion.normSq seedYQuaternion = 1 := byhave hs := Real.sq_sqrt (show (0 : ℝ) ≤ 5 by norm_num)have hn := Real.sqrt_nonneg (5 : ℝ)have hle : Real.sqrt (5 : ℝ) ≤ 3 := by nlinarithhave hc := Real.sq_sqrt (show (0 : ℝ) ≤ (3 - Real.sqrt 5)/8 by positivity)rw [Quaternion.normSq_def']change seedGoldenReal ^ 2 + (1 / 2 : ℝ) ^ 2 + Real.sqrt ((3 - Real.sqrt 5)/8) ^ 2 + 0 ^ 2 = 1dsimp [seedGoldenReal]nlinarithdef seedXUnit : SeedSU2 := ⟨seedXQuaternion,byrw [Unitary.mem_iff,Quaternion.star_mul_self,Quaternion.self_mul_star,seedX_normSq]simp⟩def seedYUnit : SeedSU2 := ⟨seedYQuaternion,byrw [Unitary.mem_iff,Quaternion.star_mul_self,Quaternion.self_mul_star,seedY_normSq]simp⟩theorem unitQuaternion_quadratic (q : ℍ) (h : Quaternion.normSq q = 1) :q ^ 2 = (2 * q.re : ℝ) * q - 1 := byhave hh := Quaternion.star_mul_self qrw [h,Quaternion.star_eq_two_re_sub,sub_mul] at hhsimp only [Quaternion.coe_one] at hhhave hh' : ((2 * q.re : ℝ) : ℍ) * q = 1 + q * q := bysimpa only [add_comm] using sub_eq_iff_eq_add.mp hhrw [pow_two]apply eq_sub_iff_add_eq.mprsimpa only [add_comm] using hh'.symmtheorem unitQuaternion_half_cube (q : ℍ) (h : Quaternion.normSq q = 1)(hr : q.re = 1/2) : q ^ 3 = -1 := byhave hh := unitQuaternion_quadratic q hrw [hr] at hhnorm_num at hhcalcq ^ 3 = q ^ 2 * q := by rw [pow_succ]_ = (q - 1) * q := by rw [hh]_ = q ^ 2 - q := by noncomm_ring_ = -1 := by rw [hh]; noncomm_ringtheorem seedX_square : seedXQuaternion ^ 2 = -1 := byrw [pow_two]apply Quaternion.ext· rw [Quaternion.re_mul]norm_num [seedXQuaternion]· rw [Quaternion.imI_mul]norm_num [seedXQuaternion]· rw [Quaternion.imJ_mul]norm_num [seedXQuaternion]· rw [Quaternion.imK_mul]norm_num [seedXQuaternion]theorem seedY_fifth : seedYQuaternion ^ 5 = -1 := bylet q := seedYQuaternionlet c : ℍ := (seedGoldenReal : ℝ)have hh : q ^ 2 = 2 * c * q - 1 := bysimpa only [q,c,seedYQuaternion,Quaternion.coe_mul, show ((2 : ℝ) : ℍ) = 2 from rfl] using unitQuaternion_quadratic seedYQuaternion seedY_normSqhave h3 : q ^ 3 = (4 * c ^ 2 - 1) * q - 2 * c := bycalcq ^ 3 = q ^ 2 * q := by rw [pow_succ]_ = (2 * c * q - 1) * q := by rw [hh]_ = 2 * c * q ^ 2 - q := by noncomm_ring_ = (4 * c ^ 2 - 1) * q - 2 * c := by rw [hh]; noncomm_ringhave h4 : q ^ 4 = (8 * c ^ 3 - 4 * c) * q - (4 * c ^ 2 - 1) := bycalcq ^ 4 = q ^ 3 * q := by rw [pow_succ]_ = ((4 * c ^ 2 - 1) * q - 2 * c) * q := by rw [h3]_ = (4 * c ^ 2 - 1) * q ^ 2 - 2 * c * q := by noncomm_ring_ = (8 * c ^ 3 - 4 * c) * q - (4 * c ^ 2 - 1) := by rw [hh]; noncomm_ringhave h5 : q ^ 5 = (16 * c ^ 4 - 12 * c ^ 2 + 1) * q - (8 * c ^ 3 - 4 * c) := bycalcq ^ 5 = q ^ 4 * q := by rw [pow_succ]_ = ((8 * c ^ 3 - 4 * c) * q - (4 * c ^ 2 - 1)) * q := by rw [h4]_ = (8 * c ^ 3 - 4 * c) * q ^ 2 - (4 * c ^ 2 - 1) * q := by noncomm_ring_ = _ := by rw [hh]; noncomm_ringhave hc3 : 8 * c ^ 3 - 4 * c = 1 := bychange (8 : ℍ) * (seedGoldenReal : ℍ) ^ 3 - 4 * (seedGoldenReal : ℍ) = 1have h := congrArg (fun r : ℝ => (r : ℍ)) seedGoldenReal_cubicsimpa only [Quaternion.coe_sub,Quaternion.coe_mul,Quaternion.coe_pow,Quaternion.coe_one,show ((8 : ℝ) : ℍ) = 8 from rfl, show ((4 : ℝ) : ℍ) = 4 from rfl] using hhave hc4 : 16 * c ^ 4 - 12 * c ^ 2 + 1 = 0 := bychange (16 : ℍ) * (seedGoldenReal : ℍ) ^ 4 - 12 * (seedGoldenReal : ℍ) ^ 2 + 1 = 0have h := congrArg (fun r : ℝ => (r : ℍ)) seedGoldenReal_quarticsimpa only [Quaternion.coe_sub,Quaternion.coe_mul,Quaternion.coe_pow,Quaternion.coe_add,Quaternion.coe_one,Quaternion.coe_zero, show ((16 : ℝ) : ℍ) = 16 from rfl,show ((12 : ℝ) : ℍ) = 12 from rfl] using hsimpa [hc3,hc4] using h5theorem seedXYinv_cube : (seedXQuaternion * star seedYQuaternion) ^ 3 = -1 := byapply unitQuaternion_half_cube· rw [map_mul,Quaternion.normSq_star,seedX_normSq,seedY_normSq,mul_one]· rw [Quaternion.re_mul]rw [Quaternion.imI_star]norm_num [seedXQuaternion,seedYQuaternion]theorem seed_unit_relations :seedXUnit ^ 2 = seedYUnit ^ 5 ∧seedXUnit ^ 2 = (seedXUnit * seedYUnit⁻¹) ^ 3 := byconstructor· apply Subtype.val_injectivechange seedXQuaternion ^ 2 = seedYQuaternion ^ 5rw [seedX_square,seedY_fifth]· apply Subtype.val_injectivechange seedXQuaternion ^ 2 = (seedXQuaternion * star seedYQuaternion) ^ 3rw [seedX_square,seedXYinv_cube]def seedRelator : Bool → FreeGroup Bool| false => FreeGroup.of false ^ 2 * (FreeGroup.of true ^ 5)⁻¹| true => FreeGroup.of false ^ 2 * ((FreeGroup.of false * (FreeGroup.of true)⁻¹) ^ 3)⁻¹theorem seedWord_relator (r : Bool) : FreeGroup.mk (seedWord r) = seedRelator r := bycases r <;> decidedef seedLetterUnit : Bool → SeedSU2| false => seedXUnit| true => seedYUnittheorem seedRelator_unit (r : Bool) : FreeGroup.lift seedLetterUnit (seedRelator r) = 1 := bycases r· simp only [seedRelator,map_mul,map_inv,map_pow,FreeGroup.lift_apply_of,seedLetterUnit]rw [seed_unit_relations.1,mul_inv_cancel]· simp only [seedRelator,map_mul,map_inv,map_pow,FreeGroup.lift_apply_of,seedLetterUnit]rw [seed_unit_relations.2,mul_inv_cancel]abbrev SeedPresentationGroup := PresentedGroup (Set.range seedRelator)def seedMonodromy : SeedPresentationGroup →* SeedSU2 :=PresentedGroup.toGroup (f := seedLetterUnit) (byrintro _ ⟨r,rfl⟩exact seedRelator_unit r)theorem seedMonodromy_nontrivial : seedMonodromy (PresentedGroup.of false) ≠ 1 := byintro hhave hh := congrArg (fun q : SeedSU2 => (q : ℍ).re) hsimp [seedMonodromy,seedLetterUnit,seedXUnit,seedXQuaternion] at hh/-- The source exponent-sum boundary, with rows indexed by its two relators. -/def seedExponentMatrix : Matrix (Fin 2) (Fin 2) ℤ := !![2,-5;-1,3]theorem seedExponentMatrix_det : seedExponentMatrix.det = 1 := bynorm_num [seedExponentMatrix,Matrix.det_fin_two]end EilenbergGaneaendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744import OAI.Topology.EilenbergGanea.WordEquationsimport OAI.GroupTheory.RightAngledArtin.ResidualFinitenessimport Mathlib.Topology.Compactness.Compactimport Mathlib.LinearAlgebra.Finsupp.LinearCombinationnamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiffnamespace EilenbergGaneaopen scoped Quaternion ContDiff/-- Squared chord length on the unit-quaternion sphere. -/theorem su2_distance_square (a : SU2) :‖(a : ℍ) - 1‖ ^ 2 = 2 - 2 * (a : ℍ).re := byhave hu := (quaternion_mem_unitary_iff _).mp a.propertyhave hs : Quaternion.normSq ((a : ℍ) - 1) = Quaternion.normSq (a : ℍ) + 1 - 2 * (a : ℍ).re := bysimp only [Quaternion.normSq_def', Quaternion.re_sub, Quaternion.imI_sub,Quaternion.imJ_sub, Quaternion.imK_sub, Quaternion.re_one,Quaternion.imI_one, Quaternion.imJ_one, Quaternion.imK_one]ringsimpa only [Quaternion.normSq_eq_norm_mul_self, hu, one_mul, sq, one_add_one_eq_two] using hsdef arcBlend (a : SU2) (t : ℝ) : ℍ :=(1 - Real.smoothTransition t) • (1 : ℍ) + Real.smoothTransition t • (a : ℍ)theorem arcBlend_norm_le (a : SU2) (t : ℝ) : ‖arcBlend a t‖ ≤ 1 := byhave h0 := Real.smoothTransition.nonneg thave h1 := Real.smoothTransition.le_one thave hn := (quaternion_mem_unitary_iff _).mp a.propertycalc_ ≤ ‖(1 - Real.smoothTransition t) • (1 : ℍ)‖ +‖Real.smoothTransition t • (a : ℍ)‖ := norm_add_le _ __ = 1 := by rw [norm_smul, norm_smul, norm_one, hn, Real.norm_eq_abs,Real.norm_eq_abs, abs_of_nonneg (sub_nonneg.mpr h1), abs_of_nonneg h0]; ringtheorem small_unit_re (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) :0 < (a : ℍ).re ∧ (a : ℍ).re ≤ 1 := byhave h := su2_distance_square ahave hn := norm_nonneg ((a : ℍ) - 1)constructor <;> nlinarith [sq_nonneg ‖(a : ℍ) - 1‖]theorem arcBlend_re_le (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) (t : ℝ) :(a : ℍ).re ≤ (arcBlend a t).re := byhave h := (small_unit_re a ha).2have h0 := Real.smoothTransition.nonneg thave h1 := Real.smoothTransition.le_one tsimp only [arcBlend, Quaternion.re_add, Quaternion.re_smul, Quaternion.re_one, smul_eq_mul]nlinariththeorem arcBlend_ne_zero (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) (t : ℝ) :arcBlend a t ≠ 0 := byhave h := (small_unit_re a ha).1.trans_le (arcBlend_re_le a ha t)intro hesimp only [he, Quaternion.re_zero, lt_self_iff_false] at h/-- A globally smooth path that remains in the closed chord ball of itsendpoint, avoiding any branch choice of a quaternion logarithm. -/def smallQuaternionArc (a : SU2) (t : ℝ) : SU2 := normalizeQuaternion (arcBlend a t)@[simp] theorem smallQuaternionArc_zero (a : SU2) : smallQuaternionArc a 0 = 1 := bysimpa [smallQuaternionArc, arcBlend] using (normalizeQuaternion_unitary (1 : SU2))@[simp] theorem smallQuaternionArc_one (a : SU2) : smallQuaternionArc a 1 = a := bysimp [smallQuaternionArc, arcBlend]theorem smallQuaternionArc_smooth (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) :ContDiff ℝ ∞ (fun t => (smallQuaternionArc a t : ℍ)) := byapply contDiff_iff_contDiffAt.mprintro texact (normalizeQuaternion_coe_contDiffAt (arcBlend_ne_zero a ha t)).comp t(((contDiff_const.sub Real.smoothTransition.contDiff).smul contDiff_const).add(Real.smoothTransition.contDiff.smul contDiff_const)).contDiffAttheorem smallQuaternionArc_distance (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) (t : ℝ) :‖(smallQuaternionArc a t : ℍ) - 1‖ ≤ ‖(a : ℍ) - 1‖ := byhave hp : 0 < ‖arcBlend a t‖ := norm_pos_iff.mpr (arcBlend_ne_zero a ha t)have hre : (a : ℍ).re ≤ (smallQuaternionArc a t : ℍ).re := byrw [smallQuaternionArc, normalizeQuaternion_coe_of_ne_zero (arcBlend_ne_zero a ha t)]simp only [Quaternion.re_smul, smul_eq_mul]rw [mul_comm, ← div_eq_mul_inv, le_div_iff₀ hp]exact (mul_le_of_le_one_right (small_unit_re a ha).1.le (arcBlend_norm_le a t)).trans(arcBlend_re_le a ha t)have h0 := su2_distance_square ahave h1 := su2_distance_square (smallQuaternionArc a t)nlinarith [norm_nonneg ((a : ℍ)-1), norm_nonneg ((smallQuaternionArc a t : ℍ)-1)]end EilenbergGaneanamespace EilenbergGaneaopen scoped Quaternion ContDiffopen Setsection SelectedEquationsvariable {E : Type*} {m d : ℕ}/-- The selected unknowns remain separate from coefficients, even when twoletters have the same image in the group quotient. -/def selectedAlphabet (σ : Fin m ↪ E) (e : E) : E ⊕ Fin m := byclassicalexact if h : ∃ i, σ i = e then .inr h.choose else .inl e@[simp] theorem selectedAlphabet_selected (σ : Fin m ↪ E) (i : Fin m) :selectedAlphabet σ (σ i) = .inr i := byclassicalhave h : ∃ j, σ j = σ i := ⟨i,rfl⟩simp only [selectedAlphabet, dite_eq_left h]exact congrArg Sum.inr (σ.injective h.choose_spec)theorem selectedAlphabet_other (σ : Fin m ↪ E) (e : E) (he : ∀ i, σ i ≠ e) :selectedAlphabet σ e = .inl e := byclassicalsimp [selectedAlphabet, he]def selectedWord (σ : Fin m ↪ E) : FreeGroup E →* FreeGroup (E ⊕ Fin m) :=FreeGroup.map (selectedAlphabet σ)def selectedLabel (σ : Fin m ↪ E) (a : E → SU2) (x : Fin m → SU2) (e : E) : SU2 :=Sum.elim a x (selectedAlphabet σ e)@[simp] theorem selectedLabel_selected (σ : Fin m ↪ E) (a : E → SU2)(x : Fin m → SU2) (i : Fin m) : selectedLabel σ a x (σ i) = x i := bysimp [selectedLabel]theorem selectedLabel_other (σ : Fin m ↪ E) (a : E → SU2) (x : Fin m → SU2)(e : E) (he : ∀ i, σ i ≠ e) : selectedLabel σ a x e = a e := byrw [selectedLabel, selectedAlphabet_other σ e he]rfltheorem selectedWord_eval (σ : Fin m ↪ E) (a : E → SU2) (x : Fin m → SU2)(w : FreeGroup E) :FreeGroup.lift (Sum.elim a x) (selectedWord σ w) =FreeGroup.lift (selectedLabel σ a x) w := byhave he : (FreeGroup.lift (Sum.elim a x)).comp (selectedWord σ) =FreeGroup.lift (selectedLabel σ a x) := byapply FreeGroup.ext_homintro esimp [selectedWord, selectedLabel]exact congrArg (fun f : FreeGroup E →* SU2 => f w) hetheorem selectedWord_exponents [DecidableEq E] (σ : Fin m ↪ E) (w : FreeGroup E) (j : Fin m) :wordExponents (eraseCoefficients (selectedWord σ w)) j = wordExponents w (σ j) := byclassicalhave he : (FreeGroup.lift (fun i : Fin m => Multiplicative.ofAdd (if j = i then (1 : ℤ) else 0))).comp(eraseCoefficients.comp (selectedWord σ)) =FreeGroup.lift (fun e : E => Multiplicative.ofAdd (if σ j = e then (1 : ℤ) else 0)) := byapply FreeGroup.ext_homintro eby_cases h : ∃ i, σ i = e· obtain ⟨i,rfl⟩ := hsimp [selectedWord, eraseCoefficients, σ.injective.eq_iff]· have h' : ∀ i, σ i ≠ e := by simpa only [not_exists] using hsimp [selectedWord, eraseCoefficients, selectedAlphabet_other σ e h', h' j]exact congrArg (fun f : FreeGroup E →* Multiplicative ℤ => (f w).toAdd) he/-- Solve a finite, full-rank system while keeping every unselected label fixed.The distinguished sublevel condition is the actual isolated root condition,not a nonsingularity assumption on the roots. -/theorem selected_word_sublevel_solvable [DecidableEq E](σ : Fin m ↪ E) (w : Fin m → FreeGroup E) (ρ : Fin d → FreeGroup E)(a : ℝ → E → SU2) (ha : ∀ e, ContDiff ℝ ∞ (fun t => (a t e : ℍ)))(ha0 : ∀ e, a 0 e = 1)(hB : Matrix.det (fun i j => wordExponents (w i) (σ j)) ≠ 0)(δ : ℝ) (hδ : 0 < δ)(hiso : ∀ t ∈ Icc (0 : ℝ) 1, ∀ x : Fin m → SU2,(∀ i, FreeGroup.lift (selectedLabel σ (a t) x) (w i) = 1) →‖(fun i => (FreeGroup.lift (selectedLabel σ (a t) x) (ρ i) : ℍ)) - 1‖ ≠ δ) :∃ b : E → SU2,(∀ e, (∀ i, σ i ≠ e) → b e = a 1 e) ∧(∀ i, FreeGroup.lift b (w i) = 1) ∧‖(fun i => (FreeGroup.lift b (ρ i) : ℍ)) - 1‖ < δ := byhave hb : (exponentMatrix (fun i => eraseCoefficients (selectedWord σ (w i)))).det ≠ 0 := bychange (Matrix.det (fun i j => wordExponents (eraseCoefficients (selectedWord σ (w i))) j)) ≠ 0simpa only [selectedWord_exponents] using hBobtain ⟨x,hx,hρ⟩ := coefficient_word_sublevel_solvable(fun i => selectedWord σ (w i)) (fun i => selectedWord σ (ρ i)) a ha ha0 hb δ hδ(fun t ht x hx => bysimp only [coefficientWordMap, selectedWord_eval]apply hiso t ht xintro ihave hi := congrFun hx isimpa only [coefficientWordMap, selectedWord_eval, Pi.one_apply] using hi)refine ⟨selectedLabel σ (a 1) x, fun e he => selectedLabel_other σ _ x e he, ?_, ?_⟩· intro ihave hi := congrFun hx isimpa only [coefficientWordMap, selectedWord_eval, Pi.one_apply] using hi· simpa only [coefficientWordMap, selectedWord_eval] using hρend SelectedEquationsend EilenbergGaneanamespace EilenbergGaneavariable {Γ S H : Type*} [Group Γ] [Group H]def labelLift (v : S → Γ) (a : Γ → S → H) :FreeGroup S →* ((Γ → H) ⋊[functionShift Γ H] Γ) :=FreeGroup.lift (fun s => ⟨fun g => a g s, v s⟩)def wordValue (v : S → Γ) : FreeGroup S →* Γ := FreeGroup.lift vdef pathProduct (v : S → Γ) (a : Γ → S → H) (w : FreeGroup S) (g : Γ) : H :=(labelLift v a w).left gtheorem labelLift_right (v : S → Γ) (a : Γ → S → H) (w : FreeGroup S) :(labelLift v a w).right = wordValue v w := byhave he : (SemidirectProduct.rightHom : ((Γ → H) ⋊[functionShift Γ H] Γ) →* Γ).comp(labelLift v a) = wordValue v := byapply FreeGroup.ext_homintro ssimp [labelLift, wordValue]exact congrArg (fun f : FreeGroup S →* Γ => f w) he@[simp] theorem pathProduct_one (v : S → Γ) (a : Γ → S → H) (g : Γ) :pathProduct v a 1 g = 1 := by simp [pathProduct]@[simp] theorem pathProduct_of (v : S → Γ) (a : Γ → S → H) (s : S) (g : Γ) :pathProduct v a (FreeGroup.of s) g = a g s := by simp [pathProduct, labelLift]theorem pathProduct_mul (v : S → Γ) (a : Γ → S → H) (w z : FreeGroup S) (g : Γ) :pathProduct v a (w*z) g = pathProduct v a w g * pathProduct v a z (g * wordValue v w) := bysimp only [pathProduct, map_mul, SemidirectProduct.mul_left, Pi.mul_apply, labelLift_right]rfltheorem pathProduct_inv (v : S → Γ) (a : Γ → S → H) (w : FreeGroup S) (g : Γ) :pathProduct v a w⁻¹ g = (pathProduct v a w (g * (wordValue v w)⁻¹))⁻¹ := bysimp only [pathProduct, map_inv, SemidirectProduct.inv_left, labelLift_right]rfltheorem pathProduct_conjugate_loop (v : S → Γ) (a : Γ → S → H)(u r : FreeGroup S) (hr : wordValue v r = 1) (g : Γ) :pathProduct v a (u*r*u⁻¹) g = pathProduct v a u g *pathProduct v a r (g * wordValue v u) * (pathProduct v a u g)⁻¹ := byrw [pathProduct_mul, pathProduct_mul, pathProduct_inv, map_mul, hr, mul_one]simp only [mul_inv_cancel_right]theorem pathProduct_continuous [TopologicalSpace H] [IsTopologicalGroup H](v : S → Γ) (w : FreeGroup S) (g : Γ) :Continuous (fun a : Γ → S → H => pathProduct v a w g) := byinduction w using FreeGroup.induction_on generalizing g with| one => simpa using (continuous_const : Continuous (fun _ : Γ → S → H => (1 : H)))| of s =>simp only [pathProduct_of]exact continuous_apply_apply g s| inv_of s =>simp only [pathProduct_inv, pathProduct_of]exact (continuous_apply_apply (g * (wordValue v (FreeGroup.of s))⁻¹) s).inv| mul w z hw hz =>simp only [pathProduct_mul]exact (hw g).mul (hz (g * wordValue v w))/-- The set of vertices inspected by a word is finite, independently of thelabel values. No countability hypothesis on the alphabet is needed. -/theorem pathProduct_finite_locations (v : S → Γ) (w : FreeGroup S) (g : Γ) :∃ P : Finset Γ, ∀ a b : Γ → S → H,(∀ p ∈ P, ∀ s, a p s = b p s) → pathProduct v a w g = pathProduct v b w g := byclassicalinduction w using FreeGroup.induction_on generalizing g with| one => exact ⟨∅, fun _ _ _ => by simp⟩| of s => exact ⟨{g}, fun a b hab => by simpa using hab g (by simp) s⟩| inv_of s =>exact ⟨{g * (wordValue v (FreeGroup.of s))⁻¹}, fun a b hab => byrw [pathProduct_inv, pathProduct_inv, pathProduct_of, pathProduct_of, hab _ (by simp)]⟩| mul w z hw hz =>obtain ⟨P, hP⟩ := hw gobtain ⟨Q, hQ⟩ := hz (g * wordValue v w)refine ⟨P ∪ Q, fun a b hab => ?_⟩rw [pathProduct_mul, pathProduct_mul, hP a b (fun p hp => hab p (Finset.mem_union_left Q hp)),hQ a b (fun p hp => hab p (Finset.mem_union_right P hp))]/-- Evaluation commutes with pullback of a labeling along a group quotient,including when different alphabet letters have the same image. -/theorem pathProduct_pullback {D : Type*} [Group D] (q : Γ →* D)(v : S → Γ) (a : D → S → H) (w : FreeGroup S) (g : Γ) :pathProduct v (fun p s => a (q p) s) w g = pathProduct (fun s => q (v s)) a w (q g) := byhave hv : ∀ w : FreeGroup S, wordValue (fun s => q (v s)) w = q (wordValue v w) := byhave he : wordValue (fun s => q (v s)) = q.comp (wordValue v) := byapply FreeGroup.ext_homintro ssimp [wordValue]intro wexact congrArg (fun f : FreeGroup S →* D => f w) heinduction w using FreeGroup.induction_on generalizing g with| one => simp| of s => simp| inv_of s => simp only [pathProduct_inv, pathProduct_of, hv, map_inv, map_mul]| mul w z hw hz => simp only [pathProduct_mul, hv, map_mul, hw, hz]/-- Once every final relator has trivial transport at every vertex, normalclosure gives trivial transport on every null word, not just on a finitecollection of test loops. -/theorem pathProduct_trivial_of_relators (v : S → Γ) (a : Γ → S → H)(R : Set (FreeGroup S)) (hR : R ⊆ (wordValue v).ker)(hp : (wordValue v).ker = Subgroup.normalClosure R)(ha : ∀ r ∈ R, ∀ g, pathProduct v a r g = 1)(w : FreeGroup S) (hw : wordValue v w = 1) (g : Γ) : pathProduct v a w g = 1 := byhave hrel : R ⊆ (labelLift v a).ker := byintro r hrchange labelLift v a r = 1apply SemidirectProduct.ext· funext gexact ha r hr g· rw [labelLift_right]exact hR hrhave hle : Subgroup.normalClosure R ≤ (labelLift v a).ker :=Subgroup.normalClosure_le_normal hrelhave he : labelLift v a w = 1 := hle (by rw [← hp]; exact hw)change (labelLift v a w).left g = 1rw [he]rfldef pathChain (v : S → Γ) (w : FreeGroup S) (g : Γ) : (Γ × S) →₀ ℤ :=(pathProduct v (fun p s => Multiplicative.ofAdd (Finsupp.single (p,s) 1)) w g).toAdd@[simp] theorem pathChain_one (v : S → Γ) (g : Γ) : pathChain v 1 g = 0 := bysimp [pathChain]@[simp] theorem pathChain_of (v : S → Γ) (s : S) (g : Γ) :pathChain v (FreeGroup.of s) g = Finsupp.single (g,s) 1 := by simp [pathChain]theorem pathChain_mul (v : S → Γ) (w z : FreeGroup S) (g : Γ) :pathChain v (w*z) g = pathChain v w g + pathChain v z (g * wordValue v w) := bysimp only [pathChain, pathProduct_mul, toAdd_mul]theorem pathChain_inv (v : S → Γ) (w : FreeGroup S) (g : Γ) :pathChain v w⁻¹ g = -pathChain v w (g * (wordValue v w)⁻¹) := bysimp only [pathChain, pathProduct_inv, toAdd_inv]theorem pathChain_conjugate (v : S → Γ) (u r : FreeGroup S)(hr : wordValue v r = 1) (g : Γ) :pathChain v (u*r*u⁻¹) g = pathChain v r (g * wordValue v u) := bysimp only [pathChain, pathProduct_conjugate_loop v _ u r hr g,toAdd_mul, toAdd_inv]abelvariable {R : Type*}abbrev NormalFactor (S R : Type*) := FreeGroup S × R × Booldef normalFactorWord (r : R → FreeGroup S) (f : NormalFactor S R) : FreeGroup S :=f.1 * (if f.2.2 then r f.2.1 else (r f.2.1)⁻¹) * f.1⁻¹def normalFactorCount (v : S → Γ) (f : NormalFactor S R) (g : Γ) : (Γ × R) →₀ ℤ :=Finsupp.single (g * wordValue v f.1, f.2.1) (if f.2.2 then 1 else -1)def relatorChainMap (v : S → Γ) (r : R → FreeGroup S) :((Γ × R) →₀ ℤ) →ₗ[ℤ] ((Γ × S) →₀ ℤ) :=Finsupp.linearCombination ℤ (fun i => pathChain v (r i.2) i.1)theorem normalFactor_value (v : S → Γ) (r : R → FreeGroup S)(hr : ∀ i, wordValue v (r i) = 1) (f : NormalFactor S R) :wordValue v (normalFactorWord r f) = 1 := bydsimp only [normalFactorWord]split_ifs <;> simp [hr]theorem pathChain_normalFactor (v : S → Γ) (r : R → FreeGroup S)(hr : ∀ i, wordValue v (r i) = 1) (f : NormalFactor S R) (g : Γ) :pathChain v (normalFactorWord r f) g = relatorChainMap v r (normalFactorCount v f g) := bysimp only [normalFactorWord, normalFactorCount, relatorChainMap, Finsupp.linearCombination_single]split_ifs with h· rw [pathChain_conjugate v _ _ (hr _)]; simp only [one_smul]· rw [pathChain_conjugate v _ _ (by simp [hr]), pathChain_inv, hr]simp only [inv_one, mul_one, neg_one_smul]theorem pathChain_normalProduct (v : S → Γ) (r : R → FreeGroup S)(hr : ∀ i, wordValue v (r i) = 1) (l : List (NormalFactor S R)) (g : Γ) :pathChain v (l.map (normalFactorWord r)).prod g =relatorChainMap v r (l.map (fun f => normalFactorCount v f g)).sum := byinduction l with| nil => simp| cons f l ih =>simp only [List.map_cons, List.prod_cons, List.sum_cons, map_add, pathChain_mul,normalFactor_value v r hr f, mul_one, pathChain_normalFactor v r hr f g, ih]/-- The coefficient identity is an equality in the full free abelian group oftranslated indexed relators. Injectivity is sufficient; no finiteness of therelator or generator types is assumed. -/theorem exact_translated_relator_counts (v : S → Γ) (r : R → FreeGroup S)(hr : ∀ i, wordValue v (r i) = 1) (hinj : Function.Injective (relatorChainMap v r))(z : FreeGroup S) (ρ : R) (hchain : pathChain v z 1 = pathChain v (r ρ) 1)(l : List (NormalFactor S R)) (he : z = (l.map (normalFactorWord r)).prod) :(l.map (fun f => normalFactorCount v f 1)).sum = Finsupp.single (1,ρ) 1 := byapply hinjrw [← pathChain_normalProduct v r hr, ← he, hchain]simp [relatorChainMap]end EilenbergGaneanamespace EilenbergGaneavariable {Γ S H : Type*} [Group Γ] [Group H]section CompactLabelingvariable {T I : Type*}def mergeLabels (a : Γ → S → H) (b : Γ → T → H) : Γ → S ⊕ T → H :=fun g => Sum.elim (a g) (b g)omit [Group Γ] [Group H] intheorem mergeLabels_continuous [TopologicalSpace H] (a : Γ → S → H) :Continuous (fun b : Γ → T → H => mergeLabels a b) := byapply continuous_piintro gapply continuous_piintro scases s with| inl s => exact continuous_const| inr t => exact continuous_apply_apply g t/-- Copy arbitrary prescribed labels to a finite quotient solely on the finiteset of vertices currently being tested. This does not assert that the originallabeling is periodic or descends to a single quotient. -/theorem copy_labels_on_finite_set {D : Type*} [Group D] (q : Γ →* D)(P : Finset Γ) (hq : Set.InjOn q (P : Set Γ)) (a : Γ → S → H)(Allowed : H → Prop) (h1 : Allowed 1) (ha : ∀ g s, Allowed (a g s)) :∃ aF : D → S → H, (∀ d s, Allowed (aF d s)) ∧ ∀ p ∈ P, ∀ s, aF (q p) s = a p s := byclassicallet aF : D → S → H := fun d s => if hd : ∃ p ∈ P, q p = d then a hd.choose s else 1refine ⟨aF, ?_, ?_⟩· intro d sdsimp [aF]split_ifs· exact ha _ _· exact h1· intro p hp shave he : ∃ p' ∈ P, q p' = q p := ⟨p, hp, rfl⟩simp only [aF, dite_eq_left he]have heq : he.choose = p := hq he.choose_spec.1 hp he.choose_spec.2rw [heq]/-- Tychonoff compactness for all extra generators, with the original labelsfixed. The finite-quotient premise is exactly the separate finite solvabilityobligation, not a periodicity assumption on the prescribed assignment. -/theorem compact_labeling_from_finite_quotients [Group.ResiduallyFinite Γ][TopologicalSpace H] [IsTopologicalGroup H] [CompactSpace H](v : S ⊕ T → Γ) (a : Γ → S → H) (w : I → FreeGroup (S ⊕ T)) (g : I → Γ)(K : I → Set H) (hK : ∀ i, IsClosed (K i))(Allowed : H → Prop) (h1 : Allowed 1) (ha : ∀ g s, Allowed (a g s))(hsolve : ∀ (N : FiniteIndexNormalSubgroup Γ) (J : Finset I)(aF : (Γ ⧸ N.toSubgroup) → S → H), (∀ d s, Allowed (aF d s)) →∃ bF : (Γ ⧸ N.toSubgroup) → T → H, ∀ i ∈ J, ∀ d,pathProduct (fun s => QuotientGroup.mk' N.toSubgroup (v s))(mergeLabels aF bF) (w i) d ∈ K i) :∃ b : Γ → T → H, ∀ i, pathProduct v (mergeLabels a b) (w i) (g i) ∈ K i := byclassicallet C : I → Set (Γ → T → H) := fun i =>{b | pathProduct v (mergeLabels a b) (w i) (g i) ∈ K i}have hc : ∀ i, IsClosed (C i) := fun i =>(hK i).preimage ((pathProduct_continuous v (w i) (g i)).comp (mergeLabels_continuous a))have hf : ∀ J : Finset I, (⋂ i ∈ J, C i).Nonempty := byintro Jchoose P hP using (fun i : I => pathProduct_finite_locations (H := H) v (w i) (g i))let V := J.biUnion Pobtain ⟨N, hN⟩ := finite_set_quotient_injective Vlet q := QuotientGroup.mk' N.toSubgroupobtain ⟨aF, haF, heF⟩ := copy_labels_on_finite_set q V hN a Allowed h1 haobtain ⟨bF, hbF⟩ := hsolve N J aF haFrefine ⟨fun p t => bF (q p) t, ?_⟩simp only [Set.mem_iInter]intro i hichange pathProduct v (mergeLabels a (fun p t => bF (q p) t)) (w i) (g i) ∈ K ihave he : pathProduct v (mergeLabels a (fun p t => bF (q p) t)) (w i) (g i) =pathProduct v (fun p s => mergeLabels aF bF (q p) s) (w i) (g i) := byapply hP iintro p hp scases s with| inl s => exact (heF p (Finset.mem_biUnion.mpr ⟨i, hi, hp⟩) s).symm| inr t => rflrw [he, pathProduct_pullback]exact hbF i hi (q (g i))obtain ⟨b, hb⟩ := CompactSpace.iInter_nonempty hc hfexact ⟨b, fun i => Set.mem_iInter.mp hb i⟩end CompactLabelingend EilenbergGaneaopen scoped Quaternionnamespace EilenbergGaneatheorem su2_norm (a : SU2) : ‖(a : ℍ)‖ = 1 := byhave h : star (a : ℍ) * (a : ℍ) = 1 := a.property.1have hn := congrArg norm hsimp only [norm_mul, norm_star, norm_one] at hnnlinarith [norm_nonneg (a : ℍ)]/-- The two elementary estimates needed for the presentation argument, withconstants independent of the Cayley graph or any finite quotient. -/theorem unit_product_linearization (l : List ℍ) (h : ℝ) (hh : 0 ≤ h)(hu : ∀ a ∈ l, ‖a‖ = 1) (hb : ∀ a ∈ l, ‖a - 1‖ ≤ h) :‖l.prod - 1‖ ≤ l.length * h ∧‖l.prod - 1 - (l.map (fun a => a - 1)).sum‖ ≤ (l.length : ℝ)^2 * h^2 := byinduction l with| nil => simp| cons a l ih =>obtain ⟨hp, he⟩ := ih (fun b hm => hu b (by simp [hm])) (fun b hm => hb b (by simp [hm]))have hna := hu a (by simp)have hba := hb a (by simp)have hid : a * l.prod - 1 = a * (l.prod - 1) + (a - 1) := by noncomm_ringhave hie : a * l.prod - 1 - ((a - 1) + (l.map (fun b => b - 1)).sum) =(a - 1) * (l.prod - 1) + (l.prod - 1 - (l.map (fun b => b - 1)).sum) := by noncomm_ringconstructor· simp only [List.prod_cons, List.length_cons, Nat.cast_add, Nat.cast_one]rw [hid]calc_ ≤ ‖a * (l.prod - 1)‖ + ‖a - 1‖ := norm_add_le _ __ = ‖l.prod - 1‖ + ‖a - 1‖ := by rw [norm_mul, hna, one_mul]_ ≤ (l.length + 1) * h := by nlinarith· simp only [List.prod_cons, List.map_cons, List.sum_cons, List.length_cons, Nat.cast_add, Nat.cast_one]rw [hie]have hn : 0 ≤ (l.length : ℝ) := Nat.cast_nonneg _calc_ ≤ ‖(a - 1) * (l.prod - 1)‖ + ‖l.prod - 1 - (l.map (fun b => b - 1)).sum‖ := norm_add_le _ __ = ‖a - 1‖ * ‖l.prod - 1‖ + ‖l.prod - 1 - (l.map (fun b => b - 1)).sum‖ := by rw [norm_mul]_ ≤ h * (l.length * h) + (l.length : ℝ)^2 * h^2 :=add_le_add (mul_le_mul hba hp (norm_nonneg _) hh) he_ ≤ (l.length + 1)^2 * h^2 := by nlinarith [sq_nonneg h]theorem quaternion_commutator_bound (a b : ℍ) :‖a * b - b * a‖ ≤ 2 * ‖a - 1‖ * ‖b - 1‖ := byhave he : a * b - b * a = (a - 1) * (b - 1) - (b - 1) * (a - 1) := by noncomm_ringrw [he]calc_ ≤ ‖(a - 1) * (b - 1)‖ + ‖(b - 1) * (a - 1)‖ := norm_sub_le _ __ = _ := by rw [norm_mul, norm_mul]; ringtheorem su2_conjugation_error (a b : SU2) :‖((a * b * a⁻¹ : SU2) : ℍ) - (b : ℍ)‖ ≤ 2 * ‖(a : ℍ) - 1‖ * ‖(b : ℍ) - 1‖ := byhave he : ((a * b * a⁻¹ : SU2) : ℍ) - (b : ℍ) =((a : ℍ) * (b : ℍ) - (b : ℍ) * (a : ℍ)) * ((a⁻¹ : SU2) : ℍ) := bychange (a : ℍ) * (b : ℍ) * star (a : ℍ) - (b : ℍ) = _change _ = ((a : ℍ) * (b : ℍ) - (b : ℍ) * (a : ℍ)) * star (a : ℍ)rw [sub_mul, mul_assoc (b : ℍ), a.property.2, mul_one]rw [he, norm_mul, su2_norm, mul_one]exact quaternion_commutator_bound _ _theorem su2_inverse_distance (b : SU2) : ‖((b⁻¹ : SU2) : ℍ) - 1‖ = ‖(b : ℍ) - 1‖ := bychange ‖star (b : ℍ) - 1‖ = _calc_ = ‖star ((b : ℍ) - 1)‖ := by rw [star_sub, star_one]_ = _ := norm_star _theorem su2_inverse_linearization (b : SU2) :‖((b⁻¹ : SU2) : ℍ) - 1 + ((b : ℍ) - 1)‖ ≤ ‖(b : ℍ) - 1‖^2 := byhave he : ((b⁻¹ : SU2) : ℍ) - 1 + ((b : ℍ) - 1) =-((((b⁻¹ : SU2) : ℍ) - 1) * ((b : ℍ) - 1)) := byhave hb : ((b⁻¹ : SU2) : ℍ) * (b : ℍ) = 1 := b.property.1noncomm_ring [hb]rw [he, norm_neg, norm_mul, su2_inverse_distance, pow_two]/-- Replacing each displacement by its linear model introduces only the sumof the errors. Combined with exact signed counts, this avoids any choice ofan ordering of the relator indices (which can be uncountable). -/theorem unit_product_with_linear_models {I : Type*} (l : List I)(f : I → SU2) (v : I → ℍ) (h D : ℝ) (hh : 0 ≤ h)(hb : ∀ i ∈ l, ‖(f i : ℍ) - 1‖ ≤ h)(he : ∀ i ∈ l, ‖(f i : ℍ) - 1 - v i‖ ≤ D) :‖((l.map (fun i => (f i : ℍ))).prod - 1) - (l.map v).sum‖ ≤(l.length : ℝ)^2 * h^2 + l.length * D := byhave hp := (unit_product_linearization (l.map (fun i => (f i : ℍ))) h hh(by intro a ha; obtain ⟨i, _, rfl⟩ := List.mem_map.mp ha; exact su2_norm _)(by intro a ha; obtain ⟨i, hi, rfl⟩ := List.mem_map.mp ha; exact hb i hi)).2simp only [List.length_map, List.map_map, Function.comp_def] at hphave hs : ∀ l : List I, (∀ i ∈ l, ‖(f i : ℍ) - 1 - v i‖ ≤ D) →‖(l.map (fun i => (f i : ℍ) - 1)).sum - (l.map v).sum‖ ≤ l.length * D := byintro l heinduction l with| nil => simp| cons i l ih =>have hi := he i (by simp)have hrest := ih (fun j hj => he j (by simp [hj]))simp only [List.map_cons, List.sum_cons, List.length_cons, Nat.cast_add, Nat.cast_one]have heq : (f i : ℍ) - 1 + (l.map (fun j => (f j : ℍ) - 1)).sum -(v i + (l.map v).sum) = ((f i : ℍ) - 1 - v i) +((l.map (fun j => (f j : ℍ) - 1)).sum - (l.map v).sum) := by abelrw [heq]exact (norm_add_le _ _).trans (by linarith)calc_ ≤ ‖((l.map (fun i => (f i : ℍ))).prod - 1) - (l.map (fun i => (f i : ℍ) - 1)).sum‖ +‖(l.map (fun i => (f i : ℍ) - 1)).sum - (l.map v).sum‖ := norm_sub_le_norm_sub_add_norm_sub _ _ __ ≤ _ := add_le_add hp (hs l he)end EilenbergGaneanamespace EilenbergGaneaopen scoped Quaterniontheorem su2_conjugation_distance (a b : SU2) :‖((a * b * a⁻¹ : SU2) : ℍ) - 1‖ = ‖(b : ℍ) - 1‖ := byhave he : ((a * b * a⁻¹ : SU2) : ℍ) - 1 =(a : ℍ) * ((b : ℍ) - 1) * star (a : ℍ) := bychange (a : ℍ) * (b : ℍ) * star (a : ℍ) - 1 = _rw [mul_sub, sub_mul, mul_one, a.property.2]rw [he, norm_mul, norm_mul, norm_star, su2_norm, one_mul, mul_one]def signedUnit (b : SU2) (ε : Bool) : SU2 := if ε then b else b⁻¹def signedDisplacement (b : SU2) (ε : Bool) : ℍ := if ε then (b : ℍ) - 1 else -((b : ℍ) - 1)theorem signedUnit_distance (b : SU2) (ε : Bool) :‖(signedUnit b ε : ℍ) - 1‖ = ‖(b : ℍ) - 1‖ := bycases ε <;> simp [signedUnit, su2_inverse_distance]theorem signedUnit_error (b : SU2) (ε : Bool) :‖(signedUnit b ε : ℍ) - 1 - signedDisplacement b ε‖ ≤ ‖(b : ℍ) - 1‖^2 := bycases ε with| false =>change ‖((b⁻¹ : SU2) : ℍ) - 1 - (-((b : ℍ) - 1))‖ ≤ _simpa only [sub_neg_eq_add] using su2_inverse_linearization b| true => simp [signedUnit, signedDisplacement]theorem conjugated_signedUnit_error (a b : SU2) (ε : Bool) (A h : ℝ)(hA : 0 ≤ A) (hh : 0 ≤ h) (ha : ‖(a : ℍ) - 1‖ ≤ A) (hb : ‖(b : ℍ) - 1‖ ≤ h) :‖((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - 1 - signedDisplacement b ε‖ ≤2 * A * h + h^2 := byhave he : ((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - 1 - signedDisplacement b ε =(((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - (signedUnit b ε : ℍ)) +((signedUnit b ε : ℍ) - 1 - signedDisplacement b ε) := by abelrw [he]have hsq : ‖(b : ℍ) - 1‖^2 ≤ h^2 := by nlinarith [norm_nonneg ((b : ℍ) - 1)]calc_ ≤ ‖((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - (signedUnit b ε : ℍ)‖ +‖(signedUnit b ε : ℍ) - 1 - signedDisplacement b ε‖ := norm_add_le _ __ ≤ 2 * ‖(a : ℍ) - 1‖ * ‖(b : ℍ) - 1‖ + ‖(b : ℍ) - 1‖^2 := bysimpa only [signedUnit_distance] using add_le_add (su2_conjugation_error a (signedUnit b ε)) (signedUnit_error b ε)_ ≤ _ := add_le_add (mul_le_mul (mul_le_mul_of_nonneg_left ha (by positivity)) hb(norm_nonneg _) (mul_nonneg (by positivity) hA)) hsqabbrev RelatorFactor (I : Type*) := SU2 × I × Booldef relatorFactorValue {I : Type*} (x : I → SU2) (r : RelatorFactor I) : SU2 :=r.1 * signedUnit (x r.2.1) r.2.2 * r.1⁻¹def relatorSignedCounts {I : Type*} (l : List (RelatorFactor I)) : I →₀ ℤ :=(l.map (fun r => Finsupp.single r.2.1 (if r.2.2 then 1 else -1))).sumtheorem relator_linear_models {I : Type*} (l : List (RelatorFactor I)) (x : I → SU2) :(l.map (fun r => signedDisplacement (x r.2.1) r.2.2)).sum =Finsupp.linearCombination ℤ (fun i => (x i : ℍ) - 1) (relatorSignedCounts l) := byinduction l with| nil => simp [relatorSignedCounts]| cons r l ih =>simp only [List.map_cons, List.sum_cons, relatorSignedCounts, map_add, Finsupp.linearCombination_single]rw [← show Finsupp.linearCombination ℤ (fun i => (x i : ℍ) - 1)((l.map (fun r => Finsupp.single r.2.1 (if r.2.2 then 1 else -1))).sum) =(l.map (fun r => signedDisplacement (x r.2.1) r.2.2)).sum from ih.symm]congr 2cases r.2.2 <;> simp [signedDisplacement]/-- Exact translated counts cancel the full linear term; the remaining boundis quadratic. The index set is arbitrary, not necessarily countable. -/theorem relator_product_quadratic {I : Type*} (l : List (RelatorFactor I)) (x : I → SU2)(i₀ : I) (hc : relatorSignedCounts l = Finsupp.single i₀ 1)(h ε K : ℝ) (hh : 0 ≤ h) (hε : 0 ≤ ε) (hK : 0 ≤ K)(hb : ∀ r ∈ l, ‖(x r.2.1 : ℍ) - 1‖ ≤ h)(ha : ∀ r ∈ l, ‖(r.1 : ℍ) - 1‖ ≤ K * (ε + h)) :‖(l.map (fun r => (relatorFactorValue x r : ℍ))).prod - (x i₀ : ℍ)‖ ≤((l.length : ℝ)^2 + l.length + 2 * l.length * K) * (ε + h) * h := byhave hp := unit_product_with_linear_models l (relatorFactorValue x)(fun r => signedDisplacement (x r.2.1) r.2.2) h(2 * (K * (ε + h)) * h + h^2) hh(fun r hr => by rw [relatorFactorValue, su2_conjugation_distance, signedUnit_distance]; exact hb r hr)(fun r hr => conjugated_signedUnit_error r.1 (x r.2.1) r.2.2 _ h(mul_nonneg hK (add_nonneg hε hh)) hh (ha r hr) (hb r hr))rw [relator_linear_models, hc, Finsupp.linearCombination_single, one_smul] at hphave he : (l.map (fun r => (relatorFactorValue x r : ℍ))).prod - 1 - ((x i₀ : ℍ) - 1) =(l.map (fun r => (relatorFactorValue x r : ℍ))).prod - (x i₀ : ℍ) := by abelrw [he] at hpapply hp.transhave hlen : 0 ≤ (l.length : ℝ) := Nat.cast_nonneg _have hnh : 0 ≤ ((l.length : ℝ)^2 + l.length) * ε * h :=mul_nonneg (mul_nonneg (add_nonneg (sq_nonneg _) hlen) hε) hhnlinarithend EilenbergGaneanamespace EilenbergGanea/-- A uniform size for an arbitrary family, normalized to zero for an emptyindex set. This is a real supremum, not an attained maximum. -/def familySize {I : Type*} (f : I → ℝ) : ℝ := sSup (Set.range f ∪ {0})theorem familySize_nonneg {I : Type*} (f : I → ℝ) (hf : BddAbove (Set.range f)) :0 ≤ familySize f := byapply le_csSup (hf.union bddAbove_singleton)exact Or.inr (Set.mem_singleton _)theorem le_familySize {I : Type*} (f : I → ℝ) (hf : BddAbove (Set.range f)) (i : I) :f i ≤ familySize f := le_csSup (hf.union bddAbove_singleton) (Or.inl (Set.mem_range_self i))theorem familySize_le {I : Type*} (f : I → ℝ) {c : ℝ} (hc : 0 ≤ c) (hf : ∀ i, f i ≤ c) :familySize f ≤ c := byapply csSup_le (Set.union_nonempty.mpr (Or.inr (Set.singleton_nonempty 0)))rintro x (⟨i, rfl⟩ | rfl)· exact hf i· exact hc/-- The source no-threshold-crossing argument does not assume attainment ofits supremum. -/theorem familySize_ne_threshold {I : Type*} (f : I → ℝ)(hf : BddAbove (Set.range f)) (C δ η ε : ℝ)(hδ : 0 < δ) (hC : 0 ≤ C) (_hη : 0 ≤ η) (hε : 0 ≤ ε) (hεη : ε ≤ η)(hc₁ : C * (δ + η) < 1/2) (hc₂ : C * η < δ/2)(hbound : ∀ i, f i ≤ C * ε + C * (familySize f + ε) * familySize f) :familySize f ≠ δ := byintro hehave hs : familySize f ≤ C * ε + C * (familySize f + ε) * familySize f :=familySize_le f (by positivity [familySize_nonneg f hf]) hboundrw [he] at hshave hce : C * ε ≤ C * η := mul_le_mul_of_nonneg_left hεη hChave hfactor : C * (δ + ε) ≤ C * (δ + η) := mul_le_mul_of_nonneg_left (by linarith) hCnlinarith [mul_lt_mul_of_pos_right hc₁ hδ, mul_le_mul_of_nonneg_right hfactor hδ.le]/-- Uniform contraction of all residual errors. This handles even anuncountable family and does not replace the supremum by a maximum. -/theorem familySize_contraction {I : Type*} (f : I → ℝ)(hf : ∀ i, 0 ≤ f i) (δ C η : ℝ) (hδ : 0 ≤ δ) (hC : 0 ≤ C) (hη : 0 ≤ η)(hb : ∀ i, f i ≤ δ) (hc : C * (δ + η) < 1)(he : ∀ i, f i ≤ C * (familySize f + η) * familySize f) : ∀ i, f i = 0 := byhave hbounded : BddAbove (Set.range f) := ⟨δ, by rintro _ ⟨i, rfl⟩; exact hb i⟩have h0 := familySize_nonneg f hboundedhave hmax := familySize_le f hδ hbhave hs := familySize_le f (c := C * (familySize f + η) * familySize f) (by positivity) hehave hmul : C * (familySize f + η) ≤ C * (δ + η) :=mul_le_mul_of_nonneg_left (by linarith) hChave heq : familySize f = 0 := byby_contra hnhave hp : 0 < familySize f := lt_of_le_of_ne h0 (Ne.symm hn)have ht := mul_lt_mul_of_pos_right (lt_of_le_of_lt hmul hc) hpnlinarithintro iexact le_antisymm (by simpa only [heq] using le_familySize f hbounded i) (hf i)theorem small_thresholds_exist (C : ℝ) (hC : 1 ≤ C) :∃ δ η : ℝ, 0 < δ ∧ δ < 1 ∧ 0 < η ∧ η < 1 ∧C * (δ + η) < 1/2 ∧ C * η < δ/2 := byhave hc : 0 < C := by linarithlet δ := 1 / (8*C)let η := δ / (8*C)have hd : 0 < δ := by dsimp [δ]; positivityhave hd1 : δ < 1 := by dsimp [δ]; apply (div_lt_iff₀ (by positivity)).mpr; linarithhave he : 0 < η := by dsimp [η]; positivityhave heδ : η < δ := by dsimp [η]; apply (div_lt_iff₀ (by positivity)).mpr; nlinarithhave hcd : C * δ = 1/8 := by dsimp [δ]; field_simphave hce : C * η = δ/8 := by dsimp [η]; field_simprefine ⟨δ, η, hd, hd1, he, heδ.trans hd1, ?_, ?_⟩· rw [mul_add, hcd, hce]; linarith· rw [hce]; linarithend EilenbergGaneaendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744import OAI.Topology.EilenbergGanea.WordEquationsimport OAI.GroupTheory.RightAngledArtin.ResidualFinitenessimport Mathlib.Topology.Compactness.Compactimport Mathlib.LinearAlgebra.Finsupp.LinearCombinationnamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiffnamespace EilenbergGaneaopen scoped Quaternion ContDiff/-- Squared chord length on the unit-quaternion sphere. -/theorem su2_distance_square (a : SU2) :‖(a : ℍ) - 1‖ ^ 2 = 2 - 2 * (a : ℍ).re := byhave hu := (quaternion_mem_unitary_iff _).mp a.propertyhave hs : Quaternion.normSq ((a : ℍ) - 1) = Quaternion.normSq (a : ℍ) + 1 - 2 * (a : ℍ).re := bysimp only [Quaternion.normSq_def', Quaternion.re_sub, Quaternion.imI_sub,Quaternion.imJ_sub, Quaternion.imK_sub, Quaternion.re_one,Quaternion.imI_one, Quaternion.imJ_one, Quaternion.imK_one]ringsimpa only [Quaternion.normSq_eq_norm_mul_self, hu, one_mul, sq, one_add_one_eq_two] using hsdef arcBlend (a : SU2) (t : ℝ) : ℍ :=(1 - Real.smoothTransition t) • (1 : ℍ) + Real.smoothTransition t • (a : ℍ)theorem arcBlend_norm_le (a : SU2) (t : ℝ) : ‖arcBlend a t‖ ≤ 1 := byhave h0 := Real.smoothTransition.nonneg thave h1 := Real.smoothTransition.le_one thave hn := (quaternion_mem_unitary_iff _).mp a.propertycalc_ ≤ ‖(1 - Real.smoothTransition t) • (1 : ℍ)‖ +‖Real.smoothTransition t • (a : ℍ)‖ := norm_add_le _ __ = 1 := by rw [norm_smul, norm_smul, norm_one, hn, Real.norm_eq_abs,Real.norm_eq_abs, abs_of_nonneg (sub_nonneg.mpr h1), abs_of_nonneg h0]; ringtheorem small_unit_re (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) :0 < (a : ℍ).re ∧ (a : ℍ).re ≤ 1 := byhave h := su2_distance_square ahave hn := norm_nonneg ((a : ℍ) - 1)constructor <;> nlinarith [sq_nonneg ‖(a : ℍ) - 1‖]theorem arcBlend_re_le (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) (t : ℝ) :(a : ℍ).re ≤ (arcBlend a t).re := byhave h := (small_unit_re a ha).2have h0 := Real.smoothTransition.nonneg thave h1 := Real.smoothTransition.le_one tsimp only [arcBlend, Quaternion.re_add, Quaternion.re_smul, Quaternion.re_one, smul_eq_mul]nlinariththeorem arcBlend_ne_zero (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) (t : ℝ) :arcBlend a t ≠ 0 := byhave h := (small_unit_re a ha).1.trans_le (arcBlend_re_le a ha t)intro hesimp only [he, Quaternion.re_zero, lt_self_iff_false] at h/-- A globally smooth path that remains in the closed chord ball of itsendpoint, avoiding any branch choice of a quaternion logarithm. -/def smallQuaternionArc (a : SU2) (t : ℝ) : SU2 := normalizeQuaternion (arcBlend a t)@[simp] theorem smallQuaternionArc_zero (a : SU2) : smallQuaternionArc a 0 = 1 := bysimpa [smallQuaternionArc, arcBlend] using (normalizeQuaternion_unitary (1 : SU2))@[simp] theorem smallQuaternionArc_one (a : SU2) : smallQuaternionArc a 1 = a := bysimp [smallQuaternionArc, arcBlend]theorem smallQuaternionArc_smooth (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) :ContDiff ℝ ∞ (fun t => (smallQuaternionArc a t : ℍ)) := byapply contDiff_iff_contDiffAt.mprintro texact (normalizeQuaternion_coe_contDiffAt (arcBlend_ne_zero a ha t)).comp t(((contDiff_const.sub Real.smoothTransition.contDiff).smul contDiff_const).add(Real.smoothTransition.contDiff.smul contDiff_const)).contDiffAttheorem smallQuaternionArc_distance (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) (t : ℝ) :‖(smallQuaternionArc a t : ℍ) - 1‖ ≤ ‖(a : ℍ) - 1‖ := byhave hp : 0 < ‖arcBlend a t‖ := norm_pos_iff.mpr (arcBlend_ne_zero a ha t)have hre : (a : ℍ).re ≤ (smallQuaternionArc a t : ℍ).re := byrw [smallQuaternionArc, normalizeQuaternion_coe_of_ne_zero (arcBlend_ne_zero a ha t)]simp only [Quaternion.re_smul, smul_eq_mul]rw [mul_comm, ← div_eq_mul_inv, le_div_iff₀ hp]exact (mul_le_of_le_one_right (small_unit_re a ha).1.le (arcBlend_norm_le a t)).trans(arcBlend_re_le a ha t)have h0 := su2_distance_square ahave h1 := su2_distance_square (smallQuaternionArc a t)nlinarith [norm_nonneg ((a : ℍ)-1), norm_nonneg ((smallQuaternionArc a t : ℍ)-1)]end EilenbergGaneanamespace EilenbergGaneaopen scoped Quaternion ContDiffopen Setsection SelectedEquationsvariable {E : Type*} {m d : ℕ}/-- The selected unknowns remain separate from coefficients, even when twoletters have the same image in the group quotient. -/def selectedAlphabet (σ : Fin m ↪ E) (e : E) : E ⊕ Fin m := byclassicalexact if h : ∃ i, σ i = e then .inr h.choose else .inl e@[simp] theorem selectedAlphabet_selected (σ : Fin m ↪ E) (i : Fin m) :selectedAlphabet σ (σ i) = .inr i := byclassicalhave h : ∃ j, σ j = σ i := ⟨i,rfl⟩simp only [selectedAlphabet, dite_eq_left h]exact congrArg Sum.inr (σ.injective h.choose_spec)theorem selectedAlphabet_other (σ : Fin m ↪ E) (e : E) (he : ∀ i, σ i ≠ e) :selectedAlphabet σ e = .inl e := byclassicalsimp [selectedAlphabet, he]def selectedWord (σ : Fin m ↪ E) : FreeGroup E →* FreeGroup (E ⊕ Fin m) :=FreeGroup.map (selectedAlphabet σ)def selectedLabel (σ : Fin m ↪ E) (a : E → SU2) (x : Fin m → SU2) (e : E) : SU2 :=Sum.elim a x (selectedAlphabet σ e)@[simp] theorem selectedLabel_selected (σ : Fin m ↪ E) (a : E → SU2)(x : Fin m → SU2) (i : Fin m) : selectedLabel σ a x (σ i) = x i := bysimp [selectedLabel]theorem selectedLabel_other (σ : Fin m ↪ E) (a : E → SU2) (x : Fin m → SU2)(e : E) (he : ∀ i, σ i ≠ e) : selectedLabel σ a x e = a e := byrw [selectedLabel, selectedAlphabet_other σ e he]rfltheorem selectedWord_eval (σ : Fin m ↪ E) (a : E → SU2) (x : Fin m → SU2)(w : FreeGroup E) :FreeGroup.lift (Sum.elim a x) (selectedWord σ w) =FreeGroup.lift (selectedLabel σ a x) w := byhave he : (FreeGroup.lift (Sum.elim a x)).comp (selectedWord σ) =FreeGroup.lift (selectedLabel σ a x) := byapply FreeGroup.ext_homintro esimp [selectedWord, selectedLabel]exact congrArg (fun f : FreeGroup E →* SU2 => f w) hetheorem selectedWord_exponents [DecidableEq E] (σ : Fin m ↪ E) (w : FreeGroup E) (j : Fin m) :wordExponents (eraseCoefficients (selectedWord σ w)) j = wordExponents w (σ j) := byclassicalhave he : (FreeGroup.lift (fun i : Fin m => Multiplicative.ofAdd (if j = i then (1 : ℤ) else 0))).comp(eraseCoefficients.comp (selectedWord σ)) =FreeGroup.lift (fun e : E => Multiplicative.ofAdd (if σ j = e then (1 : ℤ) else 0)) := byapply FreeGroup.ext_homintro eby_cases h : ∃ i, σ i = e· obtain ⟨i,rfl⟩ := hsimp [selectedWord, eraseCoefficients, σ.injective.eq_iff]· have h' : ∀ i, σ i ≠ e := by simpa only [not_exists] using hsimp [selectedWord, eraseCoefficients, selectedAlphabet_other σ e h', h' j]exact congrArg (fun f : FreeGroup E →* Multiplicative ℤ => (f w).toAdd) he/-- Solve a finite, full-rank system while keeping every unselected label fixed.The distinguished sublevel condition is the actual isolated root condition,not a nonsingularity assumption on the roots. -/theorem selected_word_sublevel_solvable [DecidableEq E](σ : Fin m ↪ E) (w : Fin m → FreeGroup E) (ρ : Fin d → FreeGroup E)(a : ℝ → E → SU2) (ha : ∀ e, ContDiff ℝ ∞ (fun t => (a t e : ℍ)))(ha0 : ∀ e, a 0 e = 1)(hB : Matrix.det (fun i j => wordExponents (w i) (σ j)) ≠ 0)(δ : ℝ) (hδ : 0 < δ)(hiso : ∀ t ∈ Icc (0 : ℝ) 1, ∀ x : Fin m → SU2,(∀ i, FreeGroup.lift (selectedLabel σ (a t) x) (w i) = 1) →‖(fun i => (FreeGroup.lift (selectedLabel σ (a t) x) (ρ i) : ℍ)) - 1‖ ≠ δ) :∃ b : E → SU2,(∀ e, (∀ i, σ i ≠ e) → b e = a 1 e) ∧(∀ i, FreeGroup.lift b (w i) = 1) ∧‖(fun i => (FreeGroup.lift b (ρ i) : ℍ)) - 1‖ < δ := byhave hb : (exponentMatrix (fun i => eraseCoefficients (selectedWord σ (w i)))).det ≠ 0 := bychange (Matrix.det (fun i j => wordExponents (eraseCoefficients (selectedWord σ (w i))) j)) ≠ 0simpa only [selectedWord_exponents] using hBobtain ⟨x,hx,hρ⟩ := coefficient_word_sublevel_solvable(fun i => selectedWord σ (w i)) (fun i => selectedWord σ (ρ i)) a ha ha0 hb δ hδ(fun t ht x hx => bysimp only [coefficientWordMap, selectedWord_eval]apply hiso t ht xintro ihave hi := congrFun hx isimpa only [coefficientWordMap, selectedWord_eval, Pi.one_apply] using hi)refine ⟨selectedLabel σ (a 1) x, fun e he => selectedLabel_other σ _ x e he, ?_, ?_⟩· intro ihave hi := congrFun hx isimpa only [coefficientWordMap, selectedWord_eval, Pi.one_apply] using hi· simpa only [coefficientWordMap, selectedWord_eval] using hρend SelectedEquationsend EilenbergGaneanamespace EilenbergGaneavariable {Γ S H : Type*} [Group Γ] [Group H]def labelLift (v : S → Γ) (a : Γ → S → H) :FreeGroup S →* ((Γ → H) ⋊[functionShift Γ H] Γ) :=FreeGroup.lift (fun s => ⟨fun g => a g s, v s⟩)def wordValue (v : S → Γ) : FreeGroup S →* Γ := FreeGroup.lift vdef pathProduct (v : S → Γ) (a : Γ → S → H) (w : FreeGroup S) (g : Γ) : H :=(labelLift v a w).left gtheorem labelLift_right (v : S → Γ) (a : Γ → S → H) (w : FreeGroup S) :(labelLift v a w).right = wordValue v w := byhave he : (SemidirectProduct.rightHom : ((Γ → H) ⋊[functionShift Γ H] Γ) →* Γ).comp(labelLift v a) = wordValue v := byapply FreeGroup.ext_homintro ssimp [labelLift, wordValue]exact congrArg (fun f : FreeGroup S →* Γ => f w) he@[simp] theorem pathProduct_one (v : S → Γ) (a : Γ → S → H) (g : Γ) :pathProduct v a 1 g = 1 := by simp [pathProduct]@[simp] theorem pathProduct_of (v : S → Γ) (a : Γ → S → H) (s : S) (g : Γ) :pathProduct v a (FreeGroup.of s) g = a g s := by simp [pathProduct, labelLift]theorem pathProduct_mul (v : S → Γ) (a : Γ → S → H) (w z : FreeGroup S) (g : Γ) :pathProduct v a (w*z) g = pathProduct v a w g * pathProduct v a z (g * wordValue v w) := bysimp only [pathProduct, map_mul, SemidirectProduct.mul_left, Pi.mul_apply, labelLift_right]rfltheorem pathProduct_inv (v : S → Γ) (a : Γ → S → H) (w : FreeGroup S) (g : Γ) :pathProduct v a w⁻¹ g = (pathProduct v a w (g * (wordValue v w)⁻¹))⁻¹ := bysimp only [pathProduct, map_inv, SemidirectProduct.inv_left, labelLift_right]rfltheorem pathProduct_conjugate_loop (v : S → Γ) (a : Γ → S → H)(u r : FreeGroup S) (hr : wordValue v r = 1) (g : Γ) :pathProduct v a (u*r*u⁻¹) g = pathProduct v a u g *pathProduct v a r (g * wordValue v u) * (pathProduct v a u g)⁻¹ := byrw [pathProduct_mul, pathProduct_mul, pathProduct_inv, map_mul, hr, mul_one]simp only [mul_inv_cancel_right]theorem pathProduct_continuous [TopologicalSpace H] [IsTopologicalGroup H](v : S → Γ) (w : FreeGroup S) (g : Γ) :Continuous (fun a : Γ → S → H => pathProduct v a w g) := byinduction w using FreeGroup.induction_on generalizing g with| one => simpa using (continuous_const : Continuous (fun _ : Γ → S → H => (1 : H)))| of s =>simp only [pathProduct_of]exact continuous_apply_apply g s| inv_of s =>simp only [pathProduct_inv, pathProduct_of]exact (continuous_apply_apply (g * (wordValue v (FreeGroup.of s))⁻¹) s).inv| mul w z hw hz =>simp only [pathProduct_mul]exact (hw g).mul (hz (g * wordValue v w))/-- The set of vertices inspected by a word is finite, independently of thelabel values. No countability hypothesis on the alphabet is needed. -/theorem pathProduct_finite_locations (v : S → Γ) (w : FreeGroup S) (g : Γ) :∃ P : Finset Γ, ∀ a b : Γ → S → H,(∀ p ∈ P, ∀ s, a p s = b p s) → pathProduct v a w g = pathProduct v b w g := byclassicalinduction w using FreeGroup.induction_on generalizing g with| one => exact ⟨∅, fun _ _ _ => by simp⟩| of s => exact ⟨{g}, fun a b hab => by simpa using hab g (by simp) s⟩| inv_of s =>exact ⟨{g * (wordValue v (FreeGroup.of s))⁻¹}, fun a b hab => byrw [pathProduct_inv, pathProduct_inv, pathProduct_of, pathProduct_of, hab _ (by simp)]⟩| mul w z hw hz =>obtain ⟨P, hP⟩ := hw gobtain ⟨Q, hQ⟩ := hz (g * wordValue v w)refine ⟨P �� Q, fun a b hab => ?_⟩rw [pathProduct_mul, pathProduct_mul, hP a b (fun p hp => hab p (Finset.mem_union_left Q hp)),hQ a b (fun p hp => hab p (Finset.mem_union_right P hp))]/-- Evaluation commutes with pullback of a labeling along a group quotient,including when different alphabet letters have the same image. -/theorem pathProduct_pullback {D : Type*} [Group D] (q : Γ →* D)(v : S → Γ) (a : D → S → H) (w : FreeGroup S) (g : Γ) :pathProduct v (fun p s => a (q p) s) w g = pathProduct (fun s => q (v s)) a w (q g) := byhave hv : ∀ w : FreeGroup S, wordValue (fun s => q (v s)) w = q (wordValue v w) := byhave he : wordValue (fun s => q (v s)) = q.comp (wordValue v) := byapply FreeGroup.ext_homintro ssimp [wordValue]intro wexact congrArg (fun f : FreeGroup S →* D => f w) heinduction w using FreeGroup.induction_on generalizing g with| one => simp| of s => simp| inv_of s => simp only [pathProduct_inv, pathProduct_of, hv, map_inv, map_mul]| mul w z hw hz => simp only [pathProduct_mul, hv, map_mul, hw, hz]/-- Once every final relator has trivial transport at every vertex, normalclosure gives trivial transport on every null word, not just on a finitecollection of test loops. -/theorem pathProduct_trivial_of_relators (v : S → Γ) (a : Γ → S → H)(R : Set (FreeGroup S)) (hR : R ⊆ (wordValue v).ker)(hp : (wordValue v).ker = Subgroup.normalClosure R)(ha : ∀ r ∈ R, ∀ g, pathProduct v a r g = 1)(w : FreeGroup S) (hw : wordValue v w = 1) (g : Γ) : pathProduct v a w g = 1 := byhave hrel : R ⊆ (labelLift v a).ker := byintro r hrchange labelLift v a r = 1apply SemidirectProduct.ext· funext gexact ha r hr g· rw [labelLift_right]exact hR hrhave hle : Subgroup.normalClosure R ≤ (labelLift v a).ker :=Subgroup.normalClosure_le_normal hrelhave he : labelLift v a w = 1 := hle (by rw [← hp]; exact hw)change (labelLift v a w).left g = 1rw [he]rfldef pathChain (v : S → Γ) (w : FreeGroup S) (g : Γ) : (Γ × S) →₀ ℤ :=(pathProduct v (fun p s => Multiplicative.ofAdd (Finsupp.single (p,s) 1)) w g).toAdd@[simp] theorem pathChain_one (v : S → Γ) (g : Γ) : pathChain v 1 g = 0 := bysimp [pathChain]@[simp] theorem pathChain_of (v : S → Γ) (s : S) (g : Γ) :pathChain v (FreeGroup.of s) g = Finsupp.single (g,s) 1 := by simp [pathChain]theorem pathChain_mul (v : S → Γ) (w z : FreeGroup S) (g : Γ) :pathChain v (w*z) g = pathChain v w g + pathChain v z (g * wordValue v w) := bysimp only [pathChain, pathProduct_mul, toAdd_mul]theorem pathChain_inv (v : S → Γ) (w : FreeGroup S) (g : Γ) :pathChain v w⁻¹ g = -pathChain v w (g * (wordValue v w)⁻¹) := bysimp only [pathChain, pathProduct_inv, toAdd_inv]theorem pathChain_conjugate (v : S → Γ) (u r : FreeGroup S)(hr : wordValue v r = 1) (g : Γ) :pathChain v (u*r*u⁻¹) g = pathChain v r (g * wordValue v u) := bysimp only [pathChain, pathProduct_conjugate_loop v _ u r hr g,toAdd_mul, toAdd_inv]abelvariable {R : Type*}abbrev NormalFactor (S R : Type*) := FreeGroup S × R × Booldef normalFactorWord (r : R → FreeGroup S) (f : NormalFactor S R) : FreeGroup S :=f.1 * (if f.2.2 then r f.2.1 else (r f.2.1)⁻¹) * f.1⁻¹def normalFactorCount (v : S → Γ) (f : NormalFactor S R) (g : Γ) : (Γ × R) →₀ ℤ :=Finsupp.single (g * wordValue v f.1, f.2.1) (if f.2.2 then 1 else -1)def relatorChainMap (v : S → Γ) (r : R → FreeGroup S) :((Γ × R) →₀ ℤ) →ₗ[ℤ] ((Γ × S) →₀ ℤ) :=Finsupp.linearCombination ℤ (fun i => pathChain v (r i.2) i.1)theorem normalFactor_value (v : S → Γ) (r : R → FreeGroup S)(hr : ∀ i, wordValue v (r i) = 1) (f : NormalFactor S R) :wordValue v (normalFactorWord r f) = 1 := bydsimp only [normalFactorWord]split_ifs <;> simp [hr]theorem pathChain_normalFactor (v : S → Γ) (r : R → FreeGroup S)(hr : ∀ i, wordValue v (r i) = 1) (f : NormalFactor S R) (g : Γ) :pathChain v (normalFactorWord r f) g = relatorChainMap v r (normalFactorCount v f g) := bysimp only [normalFactorWord, normalFactorCount, relatorChainMap, Finsupp.linearCombination_single]split_ifs with h· rw [pathChain_conjugate v _ _ (hr _)]; simp only [one_smul]· rw [pathChain_conjugate v _ _ (by simp [hr]), pathChain_inv, hr]simp only [inv_one, mul_one, neg_one_smul]theorem pathChain_normalProduct (v : S → Γ) (r : R → FreeGroup S)(hr : ∀ i, wordValue v (r i) = 1) (l : List (NormalFactor S R)) (g : Γ) :pathChain v (l.map (normalFactorWord r)).prod g =relatorChainMap v r (l.map (fun f => normalFactorCount v f g)).sum := byinduction l with| nil => simp| cons f l ih =>simp only [List.map_cons, List.prod_cons, List.sum_cons, map_add, pathChain_mul,normalFactor_value v r hr f, mul_one, pathChain_normalFactor v r hr f g, ih]/-- The coefficient identity is an equality in the full free abelian group oftranslated indexed relators. Injectivity is sufficient; no finiteness of therelator or generator types is assumed. -/theorem exact_translated_relator_counts (v : S → Γ) (r : R → FreeGroup S)(hr : ∀ i, wordValue v (r i) = 1) (hinj : Function.Injective (relatorChainMap v r))(z : FreeGroup S) (ρ : R) (hchain : pathChain v z 1 = pathChain v (r ρ) 1)(l : List (NormalFactor S R)) (he : z = (l.map (normalFactorWord r)).prod) :(l.map (fun f => normalFactorCount v f 1)).sum = Finsupp.single (1,ρ) 1 := byapply hinjrw [← pathChain_normalProduct v r hr, ← he, hchain]simp [relatorChainMap]end EilenbergGaneanamespace EilenbergGaneavariable {Γ S H : Type*} [Group Γ] [Group H]section CompactLabelingvariable {T I : Type*}def mergeLabels (a : Γ → S → H) (b : Γ → T → H) : Γ → S ⊕ T → H :=fun g => Sum.elim (a g) (b g)omit [Group Γ] [Group H] intheorem mergeLabels_continuous [TopologicalSpace H] (a : Γ → S → H) :Continuous (fun b : Γ → T → H => mergeLabels a b) := byapply continuous_piintro gapply continuous_piintro scases s with| inl s => exact continuous_const| inr t => exact continuous_apply_apply g t/-- Copy arbitrary prescribed labels to a finite quotient solely on the finiteset of vertices currently being tested. This does not assert that the originallabeling is periodic or descends to a single quotient. -/theorem copy_labels_on_finite_set {D : Type*} [Group D] (q : Γ →* D)(P : Finset Γ) (hq : Set.InjOn q (P : Set Γ)) (a : Γ → S → H)(Allowed : H → Prop) (h1 : Allowed 1) (ha : ∀ g s, Allowed (a g s)) :∃ aF : D → S → H, (∀ d s, Allowed (aF d s)) ∧ ∀ p ∈ P, ∀ s, aF (q p) s = a p s := byclassicallet aF : D → S → H := fun d s => if hd : ∃ p ∈ P, q p = d then a hd.choose s else 1refine ⟨aF, ?_, ?_⟩· intro d sdsimp [aF]split_ifs· exact ha _ _· exact h1· intro p hp shave he : ∃ p' ∈ P, q p' = q p := ⟨p, hp, rfl⟩simp only [aF, dite_eq_left he]have heq : he.choose = p := hq he.choose_spec.1 hp he.choose_spec.2rw [heq]/-- Tychonoff compactness for all extra generators, with the original labelsfixed. The finite-quotient premise is exactly the separate finite solvabilityobligation, not a periodicity assumption on the prescribed assignment. -/theorem compact_labeling_from_finite_quotients [Group.ResiduallyFinite Γ][TopologicalSpace H] [IsTopologicalGroup H] [CompactSpace H](v : S ⊕ T → Γ) (a : Γ → S → H) (w : I → FreeGroup (S ⊕ T)) (g : I → Γ)(K : I → Set H) (hK : ∀ i, IsClosed (K i))(Allowed : H → Prop) (h1 : Allowed 1) (ha : ∀ g s, Allowed (a g s))(hsolve : ∀ (N : FiniteIndexNormalSubgroup Γ) (J : Finset I)(aF : (Γ ⧸ N.toSubgroup) → S → H), (∀ d s, Allowed (aF d s)) →∃ bF : (Γ ⧸ N.toSubgroup) → T → H, ∀ i ∈ J, ∀ d,pathProduct (fun s => QuotientGroup.mk' N.toSubgroup (v s))(mergeLabels aF bF) (w i) d ∈ K i) :∃ b : Γ → T → H, ∀ i, pathProduct v (mergeLabels a b) (w i) (g i) ∈ K i := byclassicallet C : I → Set (Γ → T → H) := fun i =>{b | pathProduct v (mergeLabels a b) (w i) (g i) ∈ K i}have hc : ∀ i, IsClosed (C i) := fun i =>(hK i).preimage ((pathProduct_continuous v (w i) (g i)).comp (mergeLabels_continuous a))have hf : ∀ J : Finset I, (⋂ i ∈ J, C i).Nonempty := byintro Jchoose P hP using (fun i : I => pathProduct_finite_locations (H := H) v (w i) (g i))let V := J.biUnion Pobtain ⟨N, hN⟩ := finite_set_quotient_injective Vlet q := QuotientGroup.mk' N.toSubgroupobtain ⟨aF, haF, heF⟩ := copy_labels_on_finite_set q V hN a Allowed h1 haobtain ⟨bF, hbF⟩ := hsolve N J aF haFrefine ⟨fun p t => bF (q p) t, ?_⟩simp only [Set.mem_iInter]intro i hichange pathProduct v (mergeLabels a (fun p t => bF (q p) t)) (w i) (g i) ∈ K ihave he : pathProduct v (mergeLabels a (fun p t => bF (q p) t)) (w i) (g i) =pathProduct v (fun p s => mergeLabels aF bF (q p) s) (w i) (g i) := byapply hP iintro p hp scases s with| inl s => exact (heF p (Finset.mem_biUnion.mpr ⟨i, hi, hp⟩) s).symm| inr t => rflrw [he, pathProduct_pullback]exact hbF i hi (q (g i))obtain ⟨b, hb⟩ := CompactSpace.iInter_nonempty hc hfexact ⟨b, fun i => Set.mem_iInter.mp hb i⟩end CompactLabelingend EilenbergGaneaopen scoped Quaternionnamespace EilenbergGaneatheorem su2_norm (a : SU2) : ‖(a : ℍ)‖ = 1 := byhave h : star (a : ℍ) * (a : ℍ) = 1 := a.property.1have hn := congrArg norm hsimp only [norm_mul, norm_star, norm_one] at hnnlinarith [norm_nonneg (a : ℍ)]/-- The two elementary estimates needed for the presentation argument, withconstants independent of the Cayley graph or any finite quotient. -/theorem unit_product_linearization (l : List ℍ) (h : ℝ) (hh : 0 ≤ h)(hu : ∀ a ∈ l, ‖a‖ = 1) (hb : ∀ a ∈ l, ‖a - 1‖ ≤ h) :‖l.prod - 1‖ ≤ l.length * h ∧‖l.prod - 1 - (l.map (fun a => a - 1)).sum‖ ≤ (l.length : ℝ)^2 * h^2 := byinduction l with| nil => simp| cons a l ih =>obtain ⟨hp, he⟩ := ih (fun b hm => hu b (by simp [hm])) (fun b hm => hb b (by simp [hm]))have hna := hu a (by simp)have hba := hb a (by simp)have hid : a * l.prod - 1 = a * (l.prod - 1) + (a - 1) := by noncomm_ringhave hie : a * l.prod - 1 - ((a - 1) + (l.map (fun b => b - 1)).sum) =(a - 1) * (l.prod - 1) + (l.prod - 1 - (l.map (fun b => b - 1)).sum) := by noncomm_ringconstructor· simp only [List.prod_cons, List.length_cons, Nat.cast_add, Nat.cast_one]rw [hid]calc_ ≤ ‖a * (l.prod - 1)‖ + ‖a - 1‖ := norm_add_le _ __ = ‖l.prod - 1‖ + ‖a - 1‖ := by rw [norm_mul, hna, one_mul]_ ≤ (l.length + 1) * h := by nlinarith· simp only [List.prod_cons, List.map_cons, List.sum_cons, List.length_cons, Nat.cast_add, Nat.cast_one]rw [hie]have hn : 0 ≤ (l.length : ℝ) := Nat.cast_nonneg _calc_ ≤ ‖(a - 1) * (l.prod - 1)‖ + ‖l.prod - 1 - (l.map (fun b => b - 1)).sum‖ := norm_add_le _ __ = ‖a - 1‖ * ‖l.prod - 1‖ + ‖l.prod - 1 - (l.map (fun b => b - 1)).sum‖ := by rw [norm_mul]_ ≤ h * (l.length * h) + (l.length : ℝ)^2 * h^2 :=add_le_add (mul_le_mul hba hp (norm_nonneg _) hh) he_ ≤ (l.length + 1)^2 * h^2 := by nlinarith [sq_nonneg h]theorem quaternion_commutator_bound (a b : ℍ) :‖a * b - b * a‖ ≤ 2 * ‖a - 1‖ * ‖b - 1‖ := byhave he : a * b - b * a = (a - 1) * (b - 1) - (b - 1) * (a - 1) := by noncomm_ringrw [he]calc_ ≤ ‖(a - 1) * (b - 1)‖ + ‖(b - 1) * (a - 1)‖ := norm_sub_le _ __ = _ := by rw [norm_mul, norm_mul]; ringtheorem su2_conjugation_error (a b : SU2) :‖((a * b * a⁻¹ : SU2) : ℍ) - (b : ℍ)‖ ≤ 2 * ‖(a : ℍ) - 1‖ * ‖(b : ℍ) - 1‖ := byhave he : ((a * b * a⁻¹ : SU2) : ℍ) - (b : ℍ) =((a : ℍ) * (b : ℍ) - (b : ℍ) * (a : ℍ)) * ((a⁻¹ : SU2) : ℍ) := bychange (a : ℍ) * (b : ℍ) * star (a : ℍ) - (b : ℍ) = _change _ = ((a : ℍ) * (b : ℍ) - (b : ℍ) * (a : ℍ)) * star (a : ℍ)rw [sub_mul, mul_assoc (b : ℍ), a.property.2, mul_one]rw [he, norm_mul, su2_norm, mul_one]exact quaternion_commutator_bound _ _theorem su2_inverse_distance (b : SU2) : ‖((b⁻¹ : SU2) : ℍ) - 1‖ = ‖(b : ℍ) - 1‖ := bychange ‖star (b : ℍ) - 1‖ = _calc_ = ‖star ((b : ℍ) - 1)‖ := by rw [star_sub, star_one]_ = _ := norm_star _theorem su2_inverse_linearization (b : SU2) :‖((b⁻¹ : SU2) : ℍ) - 1 + ((b : ℍ) - 1)‖ ≤ ‖(b : ℍ) - 1‖^2 := byhave he : ((b⁻¹ : SU2) : ℍ) - 1 + ((b : ℍ) - 1) =-((((b⁻¹ : SU2) : ℍ) - 1) * ((b : ℍ) - 1)) := byhave hb : ((b⁻¹ : SU2) : ℍ) * (b : ℍ) = 1 := b.property.1noncomm_ring [hb]rw [he, norm_neg, norm_mul, su2_inverse_distance, pow_two]/-- Replacing each displacement by its linear model introduces only the sumof the errors. Combined with exact signed counts, this avoids any choice ofan ordering of the relator indices (which can be uncountable). -/theorem unit_product_with_linear_models {I : Type*} (l : List I)(f : I → SU2) (v : I → ℍ) (h D : ℝ) (hh : 0 ≤ h)(hb : ∀ i ∈ l, ‖(f i : ℍ) - 1‖ ≤ h)(he : ∀ i ∈ l, ‖(f i : ℍ) - 1 - v i‖ ≤ D) :‖((l.map (fun i => (f i : ℍ))).prod - 1) - (l.map v).sum‖ ≤(l.length : ℝ)^2 * h^2 + l.length * D := byhave hp := (unit_product_linearization (l.map (fun i => (f i : ℍ))) h hh(by intro a ha; obtain ⟨i, _, rfl⟩ := List.mem_map.mp ha; exact su2_norm _)(by intro a ha; obtain ⟨i, hi, rfl⟩ := List.mem_map.mp ha; exact hb i hi)).2simp only [List.length_map, List.map_map, Function.comp_def] at hphave hs : ∀ l : List I, (∀ i ∈ l, ‖(f i : ℍ) - 1 - v i‖ ≤ D) →‖(l.map (fun i => (f i : ℍ) - 1)).sum - (l.map v).sum‖ ≤ l.length * D := byintro l heinduction l with| nil => simp| cons i l ih =>have hi := he i (by simp)have hrest := ih (fun j hj => he j (by simp [hj]))simp only [List.map_cons, List.sum_cons, List.length_cons, Nat.cast_add, Nat.cast_one]have heq : (f i : ℍ) - 1 + (l.map (fun j => (f j : ℍ) - 1)).sum -(v i + (l.map v).sum) = ((f i : ℍ) - 1 - v i) +((l.map (fun j => (f j : ℍ) - 1)).sum - (l.map v).sum) := by abelrw [heq]exact (norm_add_le _ _).trans (by linarith)calc_ ≤ ‖((l.map (fun i => (f i : ℍ))).prod - 1) - (l.map (fun i => (f i : ℍ) - 1)).sum‖ +‖(l.map (fun i => (f i : ℍ) - 1)).sum - (l.map v).sum‖ := norm_sub_le_norm_sub_add_norm_sub _ _ __ ≤ _ := add_le_add hp (hs l he)end EilenbergGaneanamespace EilenbergGaneaopen scoped Quaterniontheorem su2_conjugation_distance (a b : SU2) :‖((a * b * a⁻¹ : SU2) : ℍ) - 1‖ = ‖(b : ℍ) - 1‖ := byhave he : ((a * b * a⁻¹ : SU2) : ℍ) - 1 =(a : ℍ) * ((b : ℍ) - 1) * star (a : ℍ) := bychange (a : ℍ) * (b : ℍ) * star (a : ℍ) - 1 = _rw [mul_sub, sub_mul, mul_one, a.property.2]rw [he, norm_mul, norm_mul, norm_star, su2_norm, one_mul, mul_one]def signedUnit (b : SU2) (ε : Bool) : SU2 := if ε then b else b⁻¹def signedDisplacement (b : SU2) (ε : Bool) : ℍ := if ε then (b : ℍ) - 1 else -((b : ℍ) - 1)theorem signedUnit_distance (b : SU2) (ε : Bool) :‖(signedUnit b ε : ℍ) - 1‖ = ‖(b : ℍ) - 1‖ := bycases ε <;> simp [signedUnit, su2_inverse_distance]theorem signedUnit_error (b : SU2) (ε : Bool) :‖(signedUnit b ε : ℍ) - 1 - signedDisplacement b ε‖ ≤ ‖(b : ℍ) - 1‖^2 := bycases ε with| false =>change ‖((b⁻¹ : SU2) : ℍ) - 1 - (-((b : ℍ) - 1))‖ ≤ _simpa only [sub_neg_eq_add] using su2_inverse_linearization b| true => simp [signedUnit, signedDisplacement]theorem conjugated_signedUnit_error (a b : SU2) (ε : Bool) (A h : ℝ)(hA : 0 ≤ A) (hh : 0 ≤ h) (ha : ‖(a : ℍ) - 1‖ ≤ A) (hb : ‖(b : ℍ) - 1‖ ≤ h) :‖((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - 1 - signedDisplacement b ε‖ ≤2 * A * h + h^2 := byhave he : ((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - 1 - signedDisplacement b ε =(((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - (signedUnit b ε : ℍ)) +((signedUnit b ε : ℍ) - 1 - signedDisplacement b ε) := by abelrw [he]have hsq : ‖(b : ℍ) - 1‖^2 ≤ h^2 := by nlinarith [norm_nonneg ((b : ℍ) - 1)]calc_ ≤ ‖((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - (signedUnit b ε : ℍ)‖ +‖(signedUnit b ε : ℍ) - 1 - signedDisplacement b ε‖ := norm_add_le _ __ ≤ 2 * ‖(a : ℍ) - 1‖ * ‖(b : ℍ) - 1‖ + ‖(b : ℍ) - 1‖^2 := bysimpa only [signedUnit_distance] using add_le_add (su2_conjugation_error a (signedUnit b ε)) (signedUnit_error b ε)_ ≤ _ := add_le_add (mul_le_mul (mul_le_mul_of_nonneg_left ha (by positivity)) hb(norm_nonneg _) (mul_nonneg (by positivity) hA)) hsqabbrev RelatorFactor (I : Type*) := SU2 × I × Booldef relatorFactorValue {I : Type*} (x : I → SU2) (r : RelatorFactor I) : SU2 :=r.1 * signedUnit (x r.2.1) r.2.2 * r.1⁻¹def relatorSignedCounts {I : Type*} (l : List (RelatorFactor I)) : I →₀ ℤ :=(l.map (fun r => Finsupp.single r.2.1 (if r.2.2 then 1 else -1))).sumtheorem relator_linear_models {I : Type*} (l : List (RelatorFactor I)) (x : I → SU2) :(l.map (fun r => signedDisplacement (x r.2.1) r.2.2)).sum =Finsupp.linearCombination ℤ (fun i => (x i : ℍ) - 1) (relatorSignedCounts l) := byinduction l with| nil => simp [relatorSignedCounts]| cons r l ih =>simp only [List.map_cons, List.sum_cons, relatorSignedCounts, map_add, Finsupp.linearCombination_single]rw [← show Finsupp.linearCombination ℤ (fun i => (x i : ℍ) - 1)((l.map (fun r => Finsupp.single r.2.1 (if r.2.2 then 1 else -1))).sum) =(l.map (fun r => signedDisplacement (x r.2.1) r.2.2)).sum from ih.symm]congr 2cases r.2.2 <;> simp [signedDisplacement]/-- Exact translated counts cancel the full linear term; the remaining boundis quadratic. The index set is arbitrary, not necessarily countable. -/theorem relator_product_quadratic {I : Type*} (l : List (RelatorFactor I)) (x : I → SU2)(i₀ : I) (hc : relatorSignedCounts l = Finsupp.single i₀ 1)(h ε K : ℝ) (hh : 0 ≤ h) (hε : 0 ≤ ε) (hK : 0 ≤ K)(hb : ∀ r ∈ l, ‖(x r.2.1 : ℍ) - 1‖ ≤ h)(ha : ∀ r ∈ l, ‖(r.1 : ℍ) - 1‖ ≤ K * (ε + h)) :‖(l.map (fun r => (relatorFactorValue x r : ℍ))).prod - (x i₀ : ℍ)‖ ≤((l.length : ℝ)^2 + l.length + 2 * l.length * K) * (ε + h) * h := byhave hp := unit_product_with_linear_models l (relatorFactorValue x)(fun r => signedDisplacement (x r.2.1) r.2.2) h(2 * (K * (ε + h)) * h + h^2) hh(fun r hr => by rw [relatorFactorValue, su2_conjugation_distance, signedUnit_distance]; exact hb r hr)(fun r hr => conjugated_signedUnit_error r.1 (x r.2.1) r.2.2 _ h(mul_nonneg hK (add_nonneg hε hh)) hh (ha r hr) (hb r hr))rw [relator_linear_models, hc, Finsupp.linearCombination_single, one_smul] at hphave he : (l.map (fun r => (relatorFactorValue x r : ℍ))).prod - 1 - ((x i₀ : ℍ) - 1) =(l.map (fun r => (relatorFactorValue x r : ℍ))).prod - (x i₀ : ℍ) := by abelrw [he] at hpapply hp.transhave hlen : 0 ≤ (l.length : ℝ) := Nat.cast_nonneg _have hnh : 0 ≤ ((l.length : ℝ)^2 + l.length) * ε * h :=mul_nonneg (mul_nonneg (add_nonneg (sq_nonneg _) hlen) hε) hhnlinarithend EilenbergGaneanamespace EilenbergGanea/-- A uniform size for an arbitrary family, normalized to zero for an emptyindex set. This is a real supremum, not an attained maximum. -/def familySize {I : Type*} (f : I → ℝ) : ℝ := sSup (Set.range f ∪ {0})theorem familySize_nonneg {I : Type*} (f : I → ℝ) (hf : BddAbove (Set.range f)) :0 ≤ familySize f := byapply le_csSup (hf.union bddAbove_singleton)exact Or.inr (Set.mem_singleton _)theorem le_familySize {I : Type*} (f : I → ℝ) (hf : BddAbove (Set.range f)) (i : I) :f i ≤ familySize f := le_csSup (hf.union bddAbove_singleton) (Or.inl (Set.mem_range_self i))theorem familySize_le {I : Type*} (f : I → ℝ) {c : ℝ} (hc : 0 ≤ c) (hf : ∀ i, f i ≤ c) :familySize f ≤ c := byapply csSup_le (Set.union_nonempty.mpr (Or.inr (Set.singleton_nonempty 0)))rintro x (⟨i, rfl⟩ | rfl)· exact hf i· exact hc/-- The source no-threshold-crossing argument does not assume attainment ofits supremum. -/theorem familySize_ne_threshold {I : Type*} (f : I → ℝ)(hf : BddAbove (Set.range f)) (C δ η ε : ℝ)(hδ : 0 < δ) (hC : 0 ≤ C) (_hη : 0 ≤ η) (hε : 0 ≤ ε) (hεη : ε ≤ η)(hc₁ : C * (δ + η) < 1/2) (hc₂ : C * η < δ/2)(hbound : ∀ i, f i ≤ C * ε + C * (familySize f + ε) * familySize f) :familySize f ≠ δ := byintro hehave hs : familySize f ≤ C * ε + C * (familySize f + ε) * familySize f :=familySize_le f (by positivity [familySize_nonneg f hf]) hboundrw [he] at hshave hce : C * ε ≤ C * η := mul_le_mul_of_nonneg_left hεη hChave hfactor : C * (δ + ε) ≤ C * (δ + η) := mul_le_mul_of_nonneg_left (by linarith) hCnlinarith [mul_lt_mul_of_pos_right hc₁ hδ, mul_le_mul_of_nonneg_right hfactor hδ.le]/-- Uniform contraction of all residual errors. This handles even anuncountable family and does not replace the supremum by a maximum. -/theorem familySize_contraction {I : Type*} (f : I → ℝ)(hf : ∀ i, 0 ≤ f i) (δ C η : ℝ) (hδ : 0 ≤ δ) (hC : 0 ≤ C) (hη : 0 ≤ η)(hb : ∀ i, f i ≤ δ) (hc : C * (δ + η) < 1)(he : ∀ i, f i ≤ C * (familySize f + η) * familySize f) : ∀ i, f i = 0 := byhave hbounded : BddAbove (Set.range f) := ⟨δ, by rintro _ ⟨i, rfl⟩; exact hb i⟩have h0 := familySize_nonneg f hboundedhave hmax := familySize_le f hδ hbhave hs := familySize_le f (c := C * (familySize f + η) * familySize f) (by positivity) hehave hmul : C * (familySize f + η) ≤ C * (δ + η) :=mul_le_mul_of_nonneg_left (by linarith) hChave heq : familySize f = 0 := byby_contra hnhave hp : 0 < familySize f := lt_of_le_of_ne h0 (Ne.symm hn)have ht := mul_lt_mul_of_pos_right (lt_of_le_of_lt hmul hc) hpnlinarithintro iexact le_antisymm (by simpa only [heq] using le_familySize f hbounded i) (hf i)theorem small_thresholds_exist (C : ℝ) (hC : 1 ≤ C) :∃ δ η : ℝ, 0 < δ ∧ δ < 1 ∧ 0 < η ∧ η < 1 ∧C * (δ + η) < 1/2 ∧ C * η < δ/2 := byhave hc : 0 < C := by linarithlet δ := 1 / (8*C)let η := δ / (8*C)have hd : 0 < δ := by dsimp [δ]; positivityhave hd1 : δ < 1 := by dsimp [δ]; apply (div_lt_iff₀ (by positivity)).mpr; linarithhave he : 0 < η := by dsimp [η]; positivityhave heδ : η < δ := by dsimp [η]; apply (div_lt_iff₀ (by positivity)).mpr; nlinarithhave hcd : C * δ = 1/8 := by dsimp [δ]; field_simphave hce : C * η = δ/8 := by dsimp [η]; field_simprefine ⟨δ, η, hd, hd1, he, heδ.trans hd1, ?_, ?_⟩· rw [mul_add, hcd, hce]; linarith· rw [hce]; linarithend EilenbergGaneaendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890import OAI.Topology.EilenbergGanea.Regularizationimport Mathlib.Analysis.Quaternionimport Mathlib.Analysis.Complex.Circleimport Mathlib.Analysis.Complex.Polynomial.Basicimport Mathlib.Analysis.Calculus.Deriv.ZPowimport Mathlib.GroupTheory.FreeGroup.Basicimport Mathlib.Analysis.SpecialFunctions.SmoothTransitionnamespace OAInoncomputable sectionopen Set Filter Topologyopen scoped Quaternion ContDiffopen scoped Quaternionnamespace EilenbergGaneaabbrev SU2 := unitary ℍtheorem quaternion_mem_unitary_iff (q : ℍ) : q ∈ unitary ℍ ↔ ‖q‖ = 1 := byrw [Unitary.mem_iff, Quaternion.star_mul_self, Quaternion.self_mul_star, and_self]constructor· intro hhave he : Quaternion.normSq q = 1 := Quaternion.coe_inj.mp hrw [Quaternion.normSq_eq_norm_mul_self] at henlinarith [norm_nonneg q]· intro hsimp [Quaternion.normSq_eq_norm_mul_self, h]instance su2_compactSpace : CompactSpace SU2 := byapply isCompact_iff_compactSpace.mphave hs : (unitary ℍ : Set ℍ) = Metric.sphere 0 1 := byext qsimp [quaternion_mem_unitary_iff]rw [hs]exact isCompact_sphere 0 1def circleQuaternion : Circle →* SU2 wheretoFun z := ⟨Quaternion.ofComplex z, byrw [Unitary.mem_iff, Quaternion.star_mul_self, Quaternion.self_mul_star, and_self]have hz := Circle.normSq_coe zhave he : Quaternion.normSq (Quaternion.ofComplex z) = 1 := bysimpa [Quaternion.normSq_def', Complex.normSq_apply, sq] using hzrw [he]; rfl⟩map_one' := Subtype.ext (map_one Quaternion.ofComplex)map_mul' z w := Subtype.ext (map_mul Quaternion.ofComplex (z : ℂ) (w : ℂ))@[simp] theorem circleQuaternion_coe (z : Circle) :((circleQuaternion z : SU2) : ℍ) = (z : ℂ) := rfltheorem circleQuaternion_injective : Function.Injective circleQuaternion := byintro z w happly Subtype.extapply Complex.ext· exact congrArg (fun q : ℍ => q.re) (congrArg Subtype.val h)· exact congrArg (fun q : ℍ => q.imI) (congrArg Subtype.val h)theorem circleQuaternion_continuous : Continuous circleQuaternion := byapply Continuous.subtype_mkexact Quaternion.ofComplex.toLinearMap.continuous_of_finiteDimensional.comp continuous_subtype_valdef wordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m)) (x : Fin m → SU2) : Fin m → SU2 :=fun i => FreeGroup.lift x (w i)def exponentMatrix {m : ℕ} (w : Fin m → FreeGroup (Fin m)) : Matrix (Fin m) (Fin m) ℤ :=fun i j => Multiplicative.toAdd(FreeGroup.lift (fun k => Multiplicative.ofAdd (if j = k then (1 : ℤ) else 0)) (w i))open Set Filter Topologyopen scoped ContDiff/-- Radial normalization is only used on nonzero quaternions. The harmlessvalue at zero makes it a total function without changing that domain. -/def normalizeQuaternion (q : ℍ) : SU2 := byclassicalexact if h : q = 0 then 1 else⟨‖q‖⁻¹ • q, (quaternion_mem_unitary_iff _).mpr (bysimp only [norm_smul, Real.norm_eq_abs, abs_inv, abs_norm]exact inv_mul_cancel₀ (norm_ne_zero_iff.mpr h))⟩theorem normalizeQuaternion_coe_of_ne_zero {q : ℍ} (hq : q ≠ 0) :(normalizeQuaternion q : ℍ) = ‖q‖⁻¹ • q := by simp [normalizeQuaternion, hq]theorem normalizeQuaternion_coe_contDiffAt {q : ℍ} (hq : q ≠ 0) :ContDiffAt ℝ ∞ (fun z => (normalizeQuaternion z : ℍ)) q := byhave h : ContDiffAt ℝ ∞ (fun z : ℍ => ‖z‖⁻¹ • z) q :=((contDiffAt_norm ℝ hq).inv (norm_ne_zero_iff.mpr hq)).smul contDiffAt_idapply h.congr_of_eventuallyEqfilter_upwards [eventually_ne_nhds hq] with z hzexact normalizeQuaternion_coe_of_ne_zero hztheorem normalizeQuaternion_continuousAt {q : ℍ} (hq : q ≠ 0) :ContinuousAt normalizeQuaternion q := byexact tendsto_subtype_rng.mpr (normalizeQuaternion_coe_contDiffAt hq).continuousAt@[simp] theorem normalizeQuaternion_unitary (q : SU2) : normalizeQuaternion (q : ℍ) = q := byhave hqnorm : ‖(q : ℍ)‖ = 1 := (quaternion_mem_unitary_iff _).mp q.propertyhave hq : (q : ℍ) ≠ 0 := by intro he; simp [he] at hqnormapply Subtype.extsimp [normalizeQuaternion_coe_of_ne_zero hq, hqnorm]/-- Smoothness of coefficient-free word evaluation follows directly byinduction, using quaternion conjugation for unitary inverses. -/theorem freeGroup_lift_coe_contDiffAt {D ι : Type*}[NormedAddCommGroup D] [NormedSpace ℝ D] (w : FreeGroup ι)(a : D) (x : D → ι → SU2)(hx : ∀ i, ContDiffAt ℝ ∞ (fun z => (x z i : ℍ)) a) :ContDiffAt ℝ ∞ (fun z => ((FreeGroup.lift (x z) w : SU2) : ℍ)) a := byinduction w using FreeGroup.induction_on with| one => simpa using (contDiffAt_const : ContDiffAt ℝ ∞ (fun _ : D => (1 : ℍ)) a)| of i => simpa using hx i| inv_of i hi =>simp only [map_inv]change ContDiffAt ℝ ∞ (fun z => star ((FreeGroup.lift (x z) (FreeGroup.of i) : SU2) : ℍ)) alet L : ℍ →ₗ[ℝ] ℍ :={ toFun := starmap_add' := star_addmap_smul' := Quaternion.star_smul }exact L.toContinuousLinearMap.contDiff.contDiffAt.comp a hi| mul v w hv hw => simpa only [map_mul, Submonoid.coe_mul] using hv.mul hwdef radialWordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℍ) : Fin m → ℍ :=fun i => ‖x i‖ • ((wordMap w (fun j => normalizeQuaternion (x j)) i : SU2) : ℍ)@[simp] theorem radialWordMap_norm {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℍ) (i : Fin m) : ‖radialWordMap w x i‖ = ‖x i‖ := byhave h : ‖((wordMap w (fun j => normalizeQuaternion (x j)) i : SU2) : ℍ)‖ = 1 :=(quaternion_mem_unitary_iff _).mp (wordMap w (fun j => normalizeQuaternion (x j)) i).propertysimp [radialWordMap, norm_smul, h]theorem radialWordMap_contDiffAt {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℍ) (hx : ∀ i, x i ≠ 0) : ContDiffAt ℝ ∞ (radialWordMap w) x := byapply contDiffAt_pi.mprintro iexact ((contDiffAt_apply ℝ ℍ i x).norm ℝ (hx i)).smul(freeGroup_lift_coe_contDiffAt (w i) x (fun z j => normalizeQuaternion (z j))(fun j => (normalizeQuaternion_coe_contDiffAt (hx j)).comp (f := fun z : Fin m → ℍ => z j) x (contDiffAt_apply ℝ ℍ j x)))theorem radialWordMap_eq_one_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℍ) : radialWordMap w x = 1 ↔(∀ i, ‖x i‖ = 1) ∧ wordMap w (fun j => normalizeQuaternion (x j)) = 1 := byconstructor· intro hhave hn (i : Fin m) : ‖x i‖ = 1 := byhave he := congrArg (fun y : Fin m → ℍ => ‖y i‖) hsimpa only [radialWordMap_norm, Pi.one_apply, norm_one] using herefine ⟨hn, ?_⟩funext iapply Subtype.exthave he := congrFun h isimpa [radialWordMap, hn] using he· rintro ⟨hn, hw⟩funext isimp [radialWordMap, hn, hw]/-- A conjugation-invariant smooth cutoff, zero near coordinate hyperplanesand one near the unit quaternion locus. -/def radialCutoff {m : ℕ} (x : Fin m → ℍ) : ℝ :=∏ i, Real.smoothTransition (4 * ‖x i‖ ^ 2 - 1)def smoothRadialWordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℍ) : Fin m → ℍ := radialCutoff x • radialWordMap w xtheorem radialCutoff_contDiff {m : ℕ} : ContDiff ℝ ∞ (@radialCutoff m) := byapply contDiff_prodintro i _have hn : ContDiff ℝ ∞ (fun x : Fin m → ℍ => ‖x i‖ ^ 2) :=(contDiff_apply ℝ ℍ i).norm_sq ℝexact Real.smoothTransition.contDiff.comp ((contDiff_const.mul hn).sub contDiff_const)theorem radialCutoff_nonneg {m : ℕ} (x : Fin m → ℍ) : 0 ≤ radialCutoff x :=Finset.prod_nonneg (fun _ _ => Real.smoothTransition.nonneg _)theorem radialCutoff_le_one {m : ℕ} (x : Fin m → ℍ) : radialCutoff x ≤ 1 :=Finset.prod_le_one₀ (fun _ _ => Real.smoothTransition.nonneg _)(fun _ _ => Real.smoothTransition.le_one _)theorem radialCutoff_eq_one {m : ℕ} (x : Fin m → ℍ) (hx : ∀ i, 1 ≤ ‖x i‖) :radialCutoff x = 1 := byapply Finset.prod_eq_oneintro i _apply Real.smoothTransition.one_of_one_lenlinarith [hx i]theorem radialCutoff_eventually_zero {m : ℕ} (x : Fin m → ℍ) (i : Fin m)(hi : x i = 0) : radialCutoff =ᶠ[𝓝 x] (fun _ => 0) := byhave h : ∀ᶠ y in 𝓝 x, ‖y i‖ < (1 / 2 : ℝ) :=((continuous_apply i).norm.continuousAt.eventually_lt_const (by simp [hi]))filter_upwards [h] with y hyapply Finset.prod_eq_zero (Finset.mem_univ i)apply Real.smoothTransition.zero_of_nonposnlinarith [norm_nonneg (y i)]theorem radialCutoff_eventually_one {m : ℕ} (x : Fin m → ℍ)(hx : ∀ i, ‖x i‖ = 1) : radialCutoff =ᶠ[𝓝 x] (fun _ => 1) := byhave h (i : Fin m) : ∀ᶠ y in 𝓝 x, (3 / 4 : ℝ) < ‖y i‖ :=((continuous_apply i).norm.continuousAt.eventually_const_lt (by change (3 / 4 : ℝ) < ‖x i‖; rw [hx i]; norm_num))filter_upwards [Filter.eventually_all.mpr h] with y hyapply Finset.prod_eq_oneintro i _apply Real.smoothTransition.one_of_one_lenlinarith [hy i]theorem smoothRadialWordMap_contDiff {m : ℕ} (w : Fin m → FreeGroup (Fin m)) :ContDiff ℝ ∞ (smoothRadialWordMap w) := byrw [contDiff_iff_contDiffAt]intro xby_cases hx : ∀ i, x i ≠ 0· exact radialCutoff_contDiff.contDiffAt.smul (radialWordMap_contDiffAt w x hx)· push Not at hxobtain ⟨i, hi⟩ := hxapply (contDiffAt_const : ContDiffAt ℝ ∞ (fun _ : Fin m → ℍ => (0 : Fin m → ℍ)) x).congr_of_eventuallyEqfilter_upwards [radialCutoff_eventually_zero x i hi] with y hysimp [smoothRadialWordMap, hy]theorem smoothRadialWordMap_eq_one_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℍ) : smoothRadialWordMap w x = 1 ↔ radialWordMap w x = 1 := byconstructor· intro hhave hn (i : Fin m) : radialCutoff x * ‖x i‖ = 1 := byhave he := congrArg (fun y : Fin m → ℍ => ‖y i‖) hsimpa only [smoothRadialWordMap, Pi.smul_apply, norm_smul, Real.norm_eq_abs,abs_of_nonneg (radialCutoff_nonneg x), radialWordMap_norm, Pi.one_apply, norm_one] using hehave hlarge (i : Fin m) : 1 ≤ ‖x i‖ := byhave hle := mul_le_mul_of_nonneg_right (radialCutoff_le_one x) (norm_nonneg (x i))rw [hn i, one_mul] at hleexact hlesimpa only [smoothRadialWordMap, radialCutoff_eq_one x hlarge, one_smul] using h· intro hhave hn := (radialWordMap_eq_one_iff w x).mp hsimp only [smoothRadialWordMap, radialCutoff_eq_one x (fun i => (hn.1 i).ge), one_smul, h]theorem smoothRadialWordMap_eventuallyEq {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℍ) (hx : ∀ i, ‖x i‖ = 1) :smoothRadialWordMap w =ᶠ[𝓝 x] radialWordMap w := byfilter_upwards [radialCutoff_eventually_one x hx] with y hysimp [smoothRadialWordMap, hy]end EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyvariable {n : Type*} [Fintype n] [DecidableEq n]def splitComplex : (n → ℂ) ≃ₗ[ℝ] ((n → ℝ) × (n → ℝ)) wheretoFun z := (fun i => (z i).re, fun i => (z i).im)invFun p i := (p.1 i : ℂ) + (p.2 i : ℂ) * Complex.Ileft_inv z := by funext i; exact Complex.re_add_im (z i)right_inv p := by ext i <;> simpmap_add' a b := by ext i <;> simpmap_smul' a b := by ext i <;> simpdef radialAngularLinear (B : Matrix n n ℝ) : (n → ℂ) →L[ℝ] (n → ℂ) :=((splitComplex (n := n)).symm.toLinearMap.comp(((LinearMap.id : (n → ℝ) →ₗ[ℝ] (n → ℝ)).prodMap B.toLin').comp(splitComplex (n := n)).toLinearMap)).toContinuousLinearMap@[simp] theorem radialAngularLinear_apply (B : Matrix n n ℝ) (z : n → ℂ) (i : n) :radialAngularLinear B z i = ((z i).re : ℂ) + (∑ j, B i j * (z j).im : ℝ) * Complex.I := rfltheorem radialAngularLinear_det (B : Matrix n n ℝ) :(radialAngularLinear B).toLinearMap.det = B.det := bychange LinearMap.det ((splitComplex (n := n)).symm.toLinearMap ∘ₗ((LinearMap.id : (n → ℝ) →ₗ[ℝ] (n → ℝ)).prodMap B.toLin') ∘ₗ(splitComplex (n := n)).toLinearMap) = _have he := LinearMap.det_conj((LinearMap.id : (n → ℝ) →ₗ[ℝ] (n → ℝ)).prodMap B.toLin')(splitComplex (n := n)).symmrw [LinearEquiv.symm_symm] at herw [he, LinearMap.det_prodMap, LinearMap.det_id, one_mul, LinearMap.det_toLin']def complexPolarChart (x z : n → ℂ) : n → ℂ := fun i => x i * Complex.exp (z i)def complexRadialTorus (B : Matrix n n ℤ) (z : n → ℂ) : n → ℂ :=fun i => ‖z i‖ • ∏ j, (‖z j‖⁻¹ • z j) ^ B i jtheorem normalize_complex_mul_exp (x z : ℂ) (hx : ‖x‖ = 1) :‖x * Complex.exp z‖⁻¹ • (x * Complex.exp z) =x * Complex.exp ((z.im : ℂ) * Complex.I) := byrw [norm_mul, hx, one_mul, Complex.norm_exp, Complex.real_smul, Complex.ofReal_inv]have he : Complex.exp z = (Real.exp z.re : ℂ) *Complex.exp ((z.im : ℂ) * Complex.I) := byrw [Complex.ofReal_exp, ← Complex.exp_add, Complex.re_add_im]rw [he]have hn : (Real.exp z.re : ℂ) ≠ 0 := by exact_mod_cast Real.exp_ne_zero z.refield_simptheorem complexRadialTorus_chart (B : Matrix n n ℤ) (x : n → ℂ)(hx : ∀ i, ‖x i‖ = 1) (hroot : ∀ i, ∏ j, x j ^ B i j = 1) :complexRadialTorus B ∘ complexPolarChart x =fun z => fun i => Complex.exp (radialAngularLinear (B.map (Int.castRingHom ℝ)) z i) := byfunext z ihave hn (j : n) := normalize_complex_mul_exp (x j) (z j) (hx j)simp only [Function.comp_apply, complexRadialTorus, complexPolarChart]simp only [hn]simp only [mul_zpow, Finset.prod_mul_distrib,hroot, one_mul, norm_mul, hx, one_mul, Complex.norm_exp, radialAngularLinear_apply,← Complex.exp_int_mul]rw [Complex.real_smul, Complex.ofReal_exp, ← Complex.exp_sum, ← Complex.exp_add]congr 1simp only [Matrix.map_apply, Int.coe_castRingHom, Complex.ofReal_sum,Complex.ofReal_mul, Complex.ofReal_intCast]rw [Finset.sum_mul]congr 1apply Finset.sum_congr rflintro j _ring/-- The real derivative of multiplication by a unit complex tuple has determinant one. -/def complexDiagonal (x : n → ℂ) : (n → ℂ) →L[ℝ] (n → ℂ) :=((Matrix.diagonal x).toLin').toContinuousLinearMap.restrictScalars ℝ@[simp] theorem complexDiagonal_apply (x z : n → ℂ) (i : n) :complexDiagonal x z i = x i * z i := by simp [complexDiagonal, Matrix.toLin'_apply, Matrix.mulVec, Matrix.diagonal_apply, dotProduct]theorem complexDiagonal_det (x : n → ℂ) (hx : ∀ i, ‖x i‖ = 1) :(complexDiagonal x).toLinearMap.det = 1 := bychange (((Matrix.diagonal x).toLin').restrictScalars ℝ).det = _rw [LinearMap.det_restrictScalars, Algebra.norm_complex_apply, LinearMap.det_toLin',Matrix.det_diagonal]rw [Complex.normSq_eq_norm_sq, norm_prod]simp [hx]theorem complexPolarChart_hasFDerivAt (x : n → ℂ) :HasFDerivAt (complexPolarChart x) (complexDiagonal x) 0 := byapply hasFDerivAt_pi'.mprintro ihave h := ((ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ).hasFDerivAt(x := 0)).cexp.const_mul (x i)change HasFDerivAt (fun z : n → ℂ => x i * Complex.exp (z i)) _ (0 : n → ℂ)have he : (ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ).comp (complexDiagonal x) =x i • (ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ) := byext zsimprw [he]simpa using htheorem exp_radialAngularLinear_hasFDerivAt (B : Matrix n n ℝ) :HasFDerivAt (fun z i => Complex.exp (radialAngularLinear B z i))(radialAngularLinear B) 0 := byapply hasFDerivAt_pi'.mprintro isimpa using (((ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ).comp(radialAngularLinear B)).hasFDerivAt (x := 0)).cexptheorem complexRadialTorus_differentiableAt (B : Matrix n n ℤ) (x : n → ℂ)(hx : ∀ i, x i ≠ 0) : DifferentiableAt ℝ (complexRadialTorus B) x := byapply differentiableAt_pi.mprintro ihave hn (j : n) : DifferentiableAt ℝ (fun z : n → ℂ => ‖z j‖) x :=(differentiableAt_apply j x).norm ℝ (hx j)apply (hn i).smulhave hp (j : n) : DifferentiableAt ℝ (fun z : n → ℂ => (‖z j‖⁻¹ • z j) ^ B i j) x := byhave hne : ‖x j‖⁻¹ • x j ≠ 0 :=smul_ne_zero (inv_ne_zero (norm_ne_zero_iff.mpr (hx j))) (hx j)have hz : DifferentiableAt ℝ (fun z : ℂ => z ^ B i j) (‖x j‖⁻¹ • x j) :=((differentiableAt_zpow (𝕜 := ℂ) (m := B i j)).mpr (Or.inl hne)).restrictScalars ℝexact hz.comp x (((hn j).inv (norm_ne_zero_iff.mpr (hx j))).smul(differentiableAt_apply j x))exact (HasFDerivAt.finsetProd (fun j _ => (hp j).hasFDerivAt)).differentiableAt/-- At every torus root, the radial extension has exactly determinant det B.The extra radial coordinates contribute the identity, not an additional sign. -/theorem complexRadialTorus_det (B : Matrix n n ℤ) (x : n → ℂ)(hx : ∀ i, ‖x i‖ = 1) (hroot : ∀ i, ∏ j, x j ^ B i j = 1) :(fderiv ℝ (complexRadialTorus B) x).det = (B.det : ℝ) := byhave hne (i : n) : x i ≠ 0 := by intro h; simpa [h] using hx ihave hd := (complexRadialTorus_differentiableAt B x hne).hasFDerivAthave hchart : complexPolarChart x 0 = x := by ext i; simp [complexPolarChart]have hc := (show HasFDerivAt (complexRadialTorus B) (fderiv ℝ (complexRadialTorus B) x)(complexPolarChart x 0) by rw [hchart]; exact hd).comp 0 (complexPolarChart_hasFDerivAt x)have he : (fderiv ℝ (complexRadialTorus B) x).comp (complexDiagonal x) =radialAngularLinear (B.map (Int.castRingHom ℝ)) := byapply hc.uniquerw [complexRadialTorus_chart B x hx hroot]exact exp_radialAngularLinear_hasFDerivAt _have hdet := congrArg (fun L : (n → ℂ) →L[ℝ] (n → ℂ) => L.det) hechange ((fderiv ℝ (complexRadialTorus B) x).toLinearMap.comp(complexDiagonal x).toLinearMap).det = (radialAngularLinear (B.map (Int.castRingHom ℝ))).toLinearMap.det at hdetrw [LinearMap.det_comp, complexDiagonal_det x hx,mul_one, radialAngularLinear_det] at hdetexact hdet.trans ((Int.castRingHom ℝ).map_det B).symmend EilenbergGaneanamespace EilenbergGaneasection CommutativeWordsvariable {n A : Type*} [Fintype n] [DecidableEq n] [CommGroup A]def wordExponents {ι : Type*} [DecidableEq ι] (w : FreeGroup ι) (j : ι) : ℤ :=Multiplicative.toAdd(FreeGroup.lift (fun k => Multiplicative.ofAdd (if j = k then (1 : ℤ) else 0)) w)@[simp] theorem wordExponents_one {ι : Type*} [DecidableEq ι] (j : ι) : wordExponents (1 : FreeGroup ι) j = 0 := bysimp [wordExponents]@[simp] theorem wordExponents_of {ι : Type*} [DecidableEq ι] (j k : ι) :wordExponents (FreeGroup.of k) j = if j = k then 1 else 0 := bysimp [wordExponents]@[simp] theorem wordExponents_inv {ι : Type*} [DecidableEq ι] (w : FreeGroup ι) (j : ι) :wordExponents w⁻¹ j = -wordExponents w j := bysimp [wordExponents]@[simp] theorem wordExponents_mul {ι : Type*} [DecidableEq ι] (w v : FreeGroup ι) (j : ι) :wordExponents (w * v) j = wordExponents w j + wordExponents v j := bysimp [wordExponents]theorem freeGroup_lift_commutative (x : n → A) (w : FreeGroup n) :FreeGroup.lift x w = ∏ j, x j ^ wordExponents w j := byinduction w using FreeGroup.induction_on with| one => simp| of i => simp| inv_of i hi => simp [hi, Finset.prod_inv_distrib]| mul a b ha hb => simp [ha, hb, zpow_add, Finset.prod_mul_distrib]end CommutativeWordsend EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyopen scoped Quaternion ContDiffdef quaternionCoordinates : ℍ ≃ₗ[ℝ] ℂ × ℂ wheretoFun q := (⟨q.re, q.imI⟩, ⟨q.imJ, q.imK⟩)invFun z := ⟨z.1.re, z.1.im, z.2.re, z.2.im⟩left_inv q := by cases q; rflright_inv z := by rcases z with ⟨⟨a,b⟩,⟨c,d⟩⟩; rflmap_add' q r := by ext <;> rflmap_smul' r q := by apply Prod.ext <;> apply Complex.ext <;> simp@[simp] theorem quaternionCoordinates_apply (q : ℍ) :quaternionCoordinates q = (⟨q.re, q.imI⟩, ⟨q.imJ, q.imK⟩) := rfl@[simp] theorem quaternionCoordinates_ofComplex (z : ℂ) :quaternionCoordinates (Quaternion.ofComplex z) = (z, 0) := byext <;> rfl@[simp] theorem norm_quaternion_ofComplex (z : ℂ) : ‖Quaternion.ofComplex z‖ = ‖z‖ := byhave h : ‖Quaternion.ofComplex z‖ ^ 2 = ‖z‖ ^ 2 := byrw [sq, ← Quaternion.normSq_eq_norm_mul_self, ← Complex.normSq_eq_norm_sq]simp [Quaternion.normSq_def', Complex.normSq_apply, sq]nlinarith [norm_nonneg (Quaternion.ofComplex z), norm_nonneg z]def quaternionTupleCoordinates {m : ℕ} :(Fin m → ℍ) ≃L[ℝ] ((Fin m → ℂ) × (Fin m → ℂ)) :=(show (Fin m → ℍ) ≃ₗ[ℝ] ((Fin m → ℂ) × (Fin m → ℂ)) from{ toFun := fun q => (fun i => (quaternionCoordinates (q i)).1,fun i => (quaternionCoordinates (q i)).2)invFun := fun z i => quaternionCoordinates.symm (z.1 i, z.2 i)left_inv := by intro q; funext i; exact quaternionCoordinates.symm_apply_apply _right_inv := by intro z; ext i <;> simpmap_add' := by intro q r; ext i <;> rflmap_smul' := by intro r q; ext i <;> simp [quaternionCoordinates] }).toContinuousLinearEquiv@[simp] theorem quaternionTupleCoordinates_fixed {m : ℕ} (z : Fin m → ℂ) :quaternionTupleCoordinates (fun i => Quaternion.ofComplex (z i)) = (z, 0) := byapply Prod.ext· funext i; exact congrArg Prod.fst (quaternionCoordinates_ofComplex (z i))· funext i; exact congrArg Prod.snd (quaternionCoordinates_ofComplex (z i))@[simp] theorem quaternionTupleCoordinates_symm_fixed {m : ℕ} (z : Fin m → ℂ) :quaternionTupleCoordinates.symm (z, 0) = fun i => Quaternion.ofComplex (z i) := byexact quaternionTupleCoordinates.injective (by rw [ContinuousLinearEquiv.apply_symm_apply, quaternionTupleCoordinates_fixed])/-- Circle normalization chosen compatibly with quaternion normalization. -/def normalizeCircle (z : ℂ) : Circle := byclassicalexact if hz : z = 0 then 1 else ⟨‖z‖⁻¹ • z, by apply mem_sphere_zero_iff_norm.mpr; simp [hz]⟩theorem normalizeCircle_coe_of_ne_zero {z : ℂ} (hz : z ≠ 0) :(normalizeCircle z : ℂ) = ‖z‖⁻¹ • z := by simp [normalizeCircle, hz]theorem normalizeQuaternion_ofComplex (z : ℂ) :normalizeQuaternion (Quaternion.ofComplex z) = circleQuaternion (normalizeCircle z) := byby_cases hz : z = 0· subst zsimp [normalizeQuaternion, normalizeCircle]· have hq : Quaternion.ofComplex z ≠ 0 := byintro hhave hh := congrArg quaternionCoordinates happly hzhave hz0 := congrArg Prod.fst hhchange (quaternionCoordinates (Quaternion.ofComplex z)).1 = (quaternionCoordinates (Quaternion.ofComplex 0)).1 at hz0simpa only [quaternionCoordinates_ofComplex] using hz0apply Subtype.extrw [normalizeQuaternion_coe_of_ne_zero hq, circleQuaternion_coe,normalizeCircle_coe_of_ne_zero hz, norm_quaternion_ofComplex]exact (map_smul Quaternion.ofComplex (‖z‖⁻¹) z).symmtheorem wordMap_circleQuaternion {m : ℕ} (w : Fin m → FreeGroup (Fin m)) (x : Fin m → Circle) :wordMap w (fun j => circleQuaternion (x j)) =fun i => circleQuaternion (∏ j, x j ^ exponentMatrix w i j) := byfunext ihave he : FreeGroup.lift (fun j => circleQuaternion (x j)) =circleQuaternion.comp (FreeGroup.lift x) := byapply FreeGroup.ext_homintro jsimpchange FreeGroup.lift (fun j => circleQuaternion (x j)) (w i) = _rw [he, MonoidHom.comp_apply, freeGroup_lift_commutative]rfltheorem radialWordMap_fixed {m : ℕ} (w : Fin m → FreeGroup (Fin m)) (z : Fin m → ℂ)(hz : ∀ i, z i ≠ 0) :radialWordMap w (fun i => Quaternion.ofComplex (z i)) =fun i => Quaternion.ofComplex (complexRadialTorus (exponentMatrix w) z i) := byfunext isimp only [radialWordMap, normalizeQuaternion_ofComplex, wordMap_circleQuaternion,circleQuaternion_coe, complexRadialTorus, norm_quaternion_ofComplex]rw [map_smul]congr 1apply congrArg Quaternion.ofComplexchange Circle.coeHom (∏ j, normalizeCircle (z j) ^ exponentMatrix w i j) = _rw [map_prod]apply Finset.prod_congr rflintro j _change (normalizeCircle (z j) : ℂ) ^ exponentMatrix w i j = _rw [normalizeCircle_coe_of_ne_zero (hz j)]theorem quaternionCoordinates_conjComplex (c : ℂ) (q : ℍ) :quaternionCoordinates (Quaternion.ofComplex c * q * star (Quaternion.ofComplex c)) =((Complex.normSq c : ℂ) * (quaternionCoordinates q).1,c ^ 2 * (quaternionCoordinates q).2) := byapply Prod.ext <;> apply Complex.ext <;>simp [quaternionCoordinates_apply, Complex.normSq_apply, pow_two] <;> ring@[simp] theorem quaternionCoordinates_conjCircle (c : Circle) (q : ℍ) :quaternionCoordinates (Quaternion.ofComplex c * q * star (Quaternion.ofComplex c)) =((quaternionCoordinates q).1, (c : ℂ) ^ 2 * (quaternionCoordinates q).2) := bysimpa using quaternionCoordinates_conjComplex (c : ℂ) q/-- Ambient conjugation, compatible with the group operation on unit quaternions. -/def quaternionConjugate (a : SU2) (q : ℍ) : ℍ := (a : ℍ) * q * star (a : ℍ)@[simp] theorem quaternionConjugate_norm (a : SU2) (q : ℍ) :‖quaternionConjugate a q‖ = ‖q‖ := byhave ha := (quaternion_mem_unitary_iff _).mp a.propertysimp [quaternionConjugate, ha]@[simp] theorem quaternionConjugate_zero (a : SU2) : quaternionConjugate a 0 = 0 := bysimp [quaternionConjugate]@[simp] theorem quaternionConjugate_one (a : SU2) : quaternionConjugate a 1 = 1 := bysimp [quaternionConjugate]theorem quaternionConjugate_smul (a : SU2) (r : ℝ) (q : ℍ) :quaternionConjugate a (r • q) = r • quaternionConjugate a q := bysimp only [quaternionConjugate, mul_smul_comm, smul_mul_assoc]@[simp] theorem quaternionConjugate_coe (a q : SU2) :quaternionConjugate a (q : ℍ) = ((a * q * a⁻¹ : SU2) : ℍ) := rfltheorem normalizeQuaternion_conjugate (a : SU2) (q : ℍ) :normalizeQuaternion (quaternionConjugate a q) = a * normalizeQuaternion q * a⁻¹ := byby_cases hq : q = 0· subst q; simp [normalizeQuaternion]· have hn : quaternionConjugate a q ≠ 0 := byintro hzhave he := quaternionConjugate_norm a qrw [hz, norm_zero, eq_comm, norm_eq_zero] at heexact hq heapply Subtype.extrw [normalizeQuaternion_coe_of_ne_zero hn, ← quaternionConjugate_coe,normalizeQuaternion_coe_of_ne_zero hq, quaternionConjugate_smul, quaternionConjugate_norm]theorem wordMap_conjugation {m : ℕ} (w : Fin m → FreeGroup (Fin m))(a : SU2) (x : Fin m → SU2) :wordMap w (fun i => a * x i * a⁻¹) = fun i => a * wordMap w x i * a⁻¹ := byhave he : FreeGroup.lift (fun i => a * x i * a⁻¹) =(MulAut.conj a).toMonoidHom.comp (FreeGroup.lift x) := byapply FreeGroup.ext_homintro isimpfunext ichange FreeGroup.lift (fun i => a * x i * a⁻¹) (w i) = _rw [he]rfltheorem radialWordMap_conjugation {m : ℕ} (w : Fin m → FreeGroup (Fin m))(a : SU2) (x : Fin m → ℍ) :radialWordMap w (fun i => quaternionConjugate a (x i)) =fun i => quaternionConjugate a (radialWordMap w x i) := byfunext isimp only [radialWordMap, quaternionConjugate_norm, normalizeQuaternion_conjugate,wordMap_conjugation, quaternionConjugate_smul, quaternionConjugate_coe]theorem smoothRadialWordMap_conjugation {m : ℕ} (w : Fin m → FreeGroup (Fin m))(a : SU2) (x : Fin m → ℍ) :smoothRadialWordMap w (fun i => quaternionConjugate a (x i)) =fun i => quaternionConjugate a (smoothRadialWordMap w x i) := byfunext isimp only [smoothRadialWordMap, radialCutoff, quaternionConjugate_norm,Pi.smul_apply, radialWordMap_conjugation, quaternionConjugate_smul]end EilenbergGaneanamespace EilenbergGaneatheorem complex_root_of_unity_norm {p : ℕ} (hp : p ≠ 0) (z : rootsOfUnity p ℂ) :‖((z : ℂˣ) : ℂ)‖ = 1 := byhave h := congrArg norm ((mem_rootsOfUnity' p (z : ℂˣ)).mp z.property)simpa only [norm_pow, norm_one, pow_eq_one_iff_of_nonneg (norm_nonneg _) hp] using htheorem rootsOfUnity_isPGroup {p : ℕ} [Fact p.Prime] : IsPGroup p (rootsOfUnity p ℂ) := bylet : NeZero p := ⟨(Fact.out : p.Prime).ne_zero⟩rw [isPGroup_iff_card_dvd_pow, Complex.card_rootsOfUnity]exact ⟨1, by simp⟩theorem rootsOfUnity_exists_nonreal {p : ℕ} (hp : 2 < p) :∃ z : rootsOfUnity p ℂ, (((z : ℂˣ) : ℂ)).im ≠ 0 := byhave hp0 : p ≠ 0 := by omegalet ζ := Complex.exp (2 * Real.pi * Complex.I / p)have hζ : IsPrimitiveRoot ζ p := Complex.isPrimitiveRoot_exp p hp0let u : ℂˣ := Units.mk0 ζ (Complex.exp_ne_zero _)let z : rootsOfUnity p ℂ := ⟨u, (mem_rootsOfUnity' p u).mpr hζ.pow_eq_one⟩refine ⟨z, ?_⟩intro himchange ζ.im = 0 at himhave hn : ‖ζ‖ = 1 := complex_root_of_unity_norm hp0 zhave hs : ζ.re ^ 2 = 1 := byhave hh := Complex.normSq_eq_norm_sq ζsimp only [Complex.normSq_apply, him, mul_zero, add_zero, hn, one_pow] at hhnlinarithhave hpow : ζ ^ 2 = 1 := byapply Complex.ext <;> simp [pow_two, him]nlinarithhave hd := hζ.dvd_of_pow_eq_one 2 hpowhave ht := Nat.le_of_dvd (by decide : 0 < 2) hdomegatheorem circle_exists_square_root (z : ℂ) (hz : ‖z‖ = 1) :∃ c : Circle, (c : ℂ) ^ 2 = z := byobtain ⟨c, hc⟩ := IsAlgClosed.exists_pow_nat_eq z (by decide : 0 < 2)have hn : ‖c‖ = 1 := byhave hh := congrArg norm hcrw [norm_pow, hz] at hhnlinarith [norm_nonneg c]exact ⟨⟨c, mem_sphere_zero_iff_norm.mpr hn⟩, hc⟩end EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyopen scoped Quaternion ContDiffdef splitWordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m))(q : (Fin m → ℂ) × (Fin m → ℂ)) : (Fin m → ℂ) × (Fin m → ℂ) :=quaternionTupleCoordinates (smoothRadialWordMap w (quaternionTupleCoordinates.symm q)) - (1, 0)theorem splitWordMap_contDiff {m : ℕ} (w : Fin m → FreeGroup (Fin m)) :ContDiff ℝ ∞ (splitWordMap w) :=(quaternionTupleCoordinates.contDiff.comp ((smoothRadialWordMap_contDiff w).compquaternionTupleCoordinates.symm.contDiff)).sub contDiff_consttheorem quaternionTupleCoordinates_conjCircle {m : ℕ} (c : Circle) (q : Fin m → ℍ) :quaternionTupleCoordinates (fun i => quaternionConjugate (circleQuaternion c) (q i)) =((quaternionTupleCoordinates q).1, (c : ℂ) ^ 2 • (quaternionTupleCoordinates q).2) := byapply Prod.ext· funext ichange (quaternionCoordinates (Quaternion.ofComplex c * q i * star (Quaternion.ofComplex c))).1 = _have hh := congrArg Prod.fst (quaternionCoordinates_conjCircle c (q i))exact hh· funext ichange (quaternionCoordinates (Quaternion.ofComplex c * q i * star (Quaternion.ofComplex c))).2 = _have hh := congrArg Prod.snd (quaternionCoordinates_conjCircle c (q i))exact hhtheorem splitWordMap_rotation {m : ℕ} (w : Fin m → FreeGroup (Fin m))(z : ℂ) (hz : ‖z‖ = 1) (q : (Fin m → ℂ) × (Fin m → ℂ)) :splitWordMap w (q.1, z • q.2) = ((splitWordMap w q).1, z • (splitWordMap w q).2) := byobtain ⟨c, hc⟩ := circle_exists_square_root z hzlet x := quaternionTupleCoordinates.symm qhave hx : quaternionTupleCoordinates x = q := quaternionTupleCoordinates.apply_symm_apply qhave heq : (q.1, z • q.2) = quaternionTupleCoordinates(fun i => quaternionConjugate (circleQuaternion c) (x i)) := byrw [quaternionTupleCoordinates_conjCircle, hc, hx]have hh := congrArg (fun v : Fin m → ℍ => quaternionTupleCoordinates v)(smoothRadialWordMap_conjugation w (circleQuaternion c) x)rw [quaternionTupleCoordinates_conjCircle, hc] at hhhave heq' : quaternionTupleCoordinates.symm (q.1, z • q.2) =fun i => quaternionConjugate (circleQuaternion c) (x i) := byrw [heq, ContinuousLinearEquiv.symm_apply_apply]unfold splitWordMaprw [heq', hh]change (_, z • _) - (1, 0) = ((quaternionTupleCoordinates (smoothRadialWordMap w x) - (1, 0)).1,z • (quaternionTupleCoordinates (smoothRadialWordMap w x) - (1, 0)).2)simptheorem splitWordMap_fixed_eventually {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℂ) (hx : ∀ i, ‖x i‖ = 1) :(fun z => (splitWordMap w (z, 0)).1) =ᶠ[𝓝 x](fun z => complexRadialTorus (exponentMatrix w) z - 1) := byhave hne (i : Fin m) : x i ≠ 0 := by intro h; simpa [h] using hx ihave hz : ∀ᶠ z in 𝓝 x, ∀ i, z i ≠ 0 := Filter.eventually_all.mpr(fun i => (continuous_apply i).continuousAt.eventually_ne (hne i))have hcont : Continuous (fun z : Fin m → ℂ => fun i => Quaternion.ofComplex (z i)) :=continuous_pi (fun i => Quaternion.ofComplex.toLinearMap.continuous_of_finiteDimensional.comp(continuous_apply i))have he := (smoothRadialWordMap_eventuallyEq w (fun i => Quaternion.ofComplex (x i))(fun i => (norm_quaternion_ofComplex _).trans (hx i))).comp_tendsto hcont.continuousAtfilter_upwards [hz, he] with z hz hechange smoothRadialWordMap w (fun i => Quaternion.ofComplex (z i)) =radialWordMap w (fun i => Quaternion.ofComplex (z i)) at hesimp only [splitWordMap, quaternionTupleCoordinates_symm_fixed]rw [he, radialWordMap_fixed w z hz, quaternionTupleCoordinates_fixed]rfltheorem splitWordMap_fixed_det {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℂ) (hx : ∀ i, ‖x i‖ = 1)(hr : ∀ i, ∏ j, x j ^ exponentMatrix w i j = 1) :(fderiv ℝ (fun z => (splitWordMap w (z, 0)).1) x).det =((exponentMatrix w).det : ℝ) := byrw [(splitWordMap_fixed_eventually w x hx).fderiv_eq (𝕜 := ℝ)]have hne (i : Fin m) : x i ≠ 0 := by intro h; simpa [h] using hx irw [((complexRadialTorus_differentiableAt (exponentMatrix w) x hne).hasFDerivAt.sub_const 1).fderiv]exact complexRadialTorus_det (exponentMatrix w) x hx hrend EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyopen scoped Quaterniontheorem splitWordMap_zero_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))(q : (Fin m → ℂ) × (Fin m → ℂ)) :splitWordMap w q = 0 ↔smoothRadialWordMap w (quaternionTupleCoordinates.symm q) = 1 := byunfold splitWordMaprw [sub_eq_zero]have he : quaternionTupleCoordinates (1 : Fin m → ℍ) = (1, 0) := bychange quaternionTupleCoordinates (fun i : Fin m => Quaternion.ofComplex (1 : ℂ)) = _exact quaternionTupleCoordinates_fixed 1rw [← he]exact quaternionTupleCoordinates.injective.eq_ifftheorem splitWordMap_fixed_zero_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))(z : Fin m → ℂ) : splitWordMap w (z, 0) = 0 ↔(∀ i, ‖z i‖ = 1) ∧ (∀ i, ∏ j, z j ^ exponentMatrix w i j = 1) := byrw [splitWordMap_zero_iff, quaternionTupleCoordinates_symm_fixed,smoothRadialWordMap_eq_one_iff]constructor· intro hhave hn : ∀ i, ‖z i‖ = 1 := fun i => (norm_quaternion_ofComplex (z i)).symm.trans(((radialWordMap_eq_one_iff w _).mp h).1 i)have hz (i : Fin m) : z i ≠ 0 := by intro h; simpa [h] using hn irw [radialWordMap_fixed w z hz] at hrefine ⟨hn, fun i => ?_⟩have hh := congrArg (fun v : Fin m → ℍ => (quaternionCoordinates (v i)).1) hchange (quaternionCoordinates (Quaternion.ofComplex _)).1 = (1 : ℂ) at hhsimpa only [quaternionCoordinates_ofComplex, complexRadialTorus, hn, inv_one, one_smul] using hh· rintro ⟨hn, hr⟩have hz (i : Fin m) : z i ≠ 0 := by intro h; simpa [h] using hn irw [radialWordMap_fixed w z hz]funext isimp [complexRadialTorus, hn, hr]@[simp] theorem splitWordMap_fixed_one {m : ℕ} (w : Fin m → FreeGroup (Fin m)) :splitWordMap w (1, 0) = 0 := byrw [splitWordMap_fixed_zero_iff]simpend EilenbergGaneanamespace EilenbergGaneaopen Setsection Torusvariable {n : Type*} [Fintype n] [DecidableEq n]variable {A : Type*} [CommGroup A]theorem zpow_finite_sum {ι : Type*} (a : A) (s : Finset ι) (e : ι → ℤ) :a ^ (∑ i ∈ s, e i) = ∏ i ∈ s, a ^ e i := byclassicalinduction s using Finset.induction with| empty => simp| @insert i s hi ih => simp [hi, ih, zpow_add]def torusMap (B : Matrix n n ℤ) (x : n → A) : n → A :=fun i => ∏ j, x j ^ B i jomit [DecidableEq n] intheorem torusMap_comp (B C : Matrix n n ℤ) (x : n → A) :torusMap B (torusMap C x) = torusMap (B * C) x := byfunext isimp only [torusMap, Matrix.mul_apply, ← Finset.prod_zpow, zpow_finite_sum, ← zpow_mul]rw [Finset.prod_comm]congr 1funext jcongr 1funext krw [Int.mul_comm]theorem torusMap_det_one (B : Matrix n n ℤ) (x : n → A) :torusMap (B.det • (1 : Matrix n n ℤ)) x = fun i => x i ^ B.det := byfunext isimp [torusMap, Matrix.one_apply]theorem torusMap_kernel_pow_det (B : Matrix n n ℤ) (x : n → A)(hx : torusMap B x = 1) (i : n) : x i ^ B.det = 1 := byhave he := congrArg (fun y => torusMap B.adjugate y i) hxrw [torusMap_comp, Matrix.adjugate_mul, torusMap_det_one] at hesimpa [torusMap] using hetheorem circle_finite_pow_roots {d : ℤ} (hd : d ≠ 0) :{z : Circle | z ^ d = 1}.Finite := byhave hr := Polynomial.finite_setOfPred_isRoot(Polynomial.X_pow_sub_C_ne_zero (Nat.pos_of_ne_zero (Int.natAbs_ne_zero.mpr hd)) (1 : ℂ))apply Set.Finite.of_injOn (f := fun z : Circle => (z : ℂ)) _Subtype.val_injective.injOn hrintro z hzhave hp : z ^ d.natAbs = 1 := pow_natAbs_eq_one.mpr hzhave he : (z : ℂ) ^ d.natAbs = 1 := bysimpa using congrArg (fun t : Circle => (t : ℂ)) hpsimpa [Polynomial.IsRoot.def] using sub_eq_zero.mpr hetheorem torusMap_finite_kernel (B : Matrix n n ℤ) (hB : B.det ≠ 0) :{x : n → Circle | torusMap B x = 1}.Finite := byapply Set.Finite.subset (Set.Finite.pi (fun _ : n => circle_finite_pow_roots hB))intro x hx i _exact torusMap_kernel_pow_det B x hx iend Torusend EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologytheorem splitWordMap_fixed_finite {m : ℕ} (w : Fin m → FreeGroup (Fin m))(hB : (exponentMatrix w).det ≠ 0) :{z : Fin m → ℂ | splitWordMap w (z, 0) = 0}.Finite := byclassicallet e : (Fin m → Circle) → (Fin m → ℂ) := fun x i => (x i : ℂ)have hf := (torusMap_finite_kernel (exponentMatrix w) hB).image eapply hf.subsetintro z hzobtain ⟨hn, hr⟩ := (splitWordMap_fixed_zero_iff w z).mp hzlet x : Fin m → Circle := fun i => ⟨z i, mem_sphere_zero_iff_norm.mpr (hn i)⟩refine ⟨x, ?_, rfl⟩funext iapply Subtype.extchange Circle.coeHom (∏ j, x j ^ exponentMatrix w i j) = (1 : ℂ)rw [map_prod]simp only [map_zpow]exact hr iend EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyopen scoped ContDiff/-- The signed-root noncancellation for the actual ambient quaternion wordmap, with no regularity assumed of the original word map. -/theorem word_exists_regularization_nonzero_count {m : ℕ}(w : Fin m → FreeGroup (Fin m)) (hB : (exponentMatrix w).det ≠ 0)(K : Set ((Fin m → ℂ) × (Fin m → ℂ))) (hK : IsCompact K)(hKi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q ∈ K, (q.1, z • q.2) ∈ K)(h1 : (1, 0) ∈ K)(L : Set ((Fin m → ℂ) × (Fin m → ℂ))) (hL : IsCompact L) (hKL : K ⊆ L)(ε : ℝ) (hε : 0 < ε) :∃ g : ((Fin m → ℂ) × (Fin m → ℂ)) → ((Fin m → ℂ) × (Fin m → ℂ)),ContDiff ℝ ∞ g ∧ (∀ q ∈ L, ‖g q - splitWordMap w q‖ < ε) ∧∃ s : Finset ((Fin m → ℂ) × (Fin m → ℂ)),(∀ q, q ∈ s ↔ q ∈ K ∧ g q = 0) ∧(∀ q ∈ s, (fderiv ℝ g q).det ≠ 0) ∧(∑ q ∈ s, (if 0 < (fderiv ℝ g q).det then 1 else -1 : ℝ)) ≠ 0 := byclassicallet S := (splitWordMap_fixed_finite w hB).toFinsethave hS (z) : z ∈ S ↔ splitWordMap w (z, 0) = 0 := (splitWordMap_fixed_finite w hB).mem_toFinsetobtain ⟨p, hpbound, hp⟩ := Nat.exists_infinite_primes (S.card + 3)let : Fact p.Prime := ⟨hp⟩let : NeZero p := ⟨hp.ne_zero⟩let : Fintype (rootsOfUnity p ℂ) := Fintype.ofFinite _obtain ⟨a₀, ha₀⟩ := rootsOfUnity_exists_nonreal (p := p) (by omega)let χ : rootsOfUnity p ℂ →* ℂˣ := (rootsOfUnity p ℂ).subtypeapply exists_regularization_nonzero_count (rootsOfUnity_isPGroup (p := p)) χSubtype.val_injective a₀ ha₀ (splitWordMap w) (splitWordMap_contDiff w)(fun a q => splitWordMap_rotation w (χ a : ℂ) (complex_root_of_unity_norm hp.ne_zero a) q)K hK (fun a q hq => hKi (χ a : ℂ) (complex_root_of_unity_norm hp.ne_zero a) q hq)L hL hKL S (fun z _ hz => (hS z).mpr hz) ⟨1, h1, splitWordMap_fixed_one w⟩ (by omega)((exponentMatrix w).det : ℝ) (by exact_mod_cast hB) _ ε hεintro z hzobtain ⟨hn, hr⟩ := (splitWordMap_fixed_zero_iff w z).mp ((hS z).mp hz)exact splitWordMap_fixed_det w z hn hrend EilenbergGaneaendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890import OAI.Topology.EilenbergGanea.Regularizationimport Mathlib.Analysis.Quaternionimport Mathlib.Analysis.Complex.Circleimport Mathlib.Analysis.Complex.Polynomial.Basicimport Mathlib.Analysis.Calculus.Deriv.ZPowimport Mathlib.GroupTheory.FreeGroup.Basicimport Mathlib.Analysis.SpecialFunctions.SmoothTransitionnamespace OAInoncomputable sectionopen Set Filter Topologyopen scoped Quaternion ContDiffopen scoped Quaternionnamespace EilenbergGaneaabbrev SU2 := unitary ℍtheorem quaternion_mem_unitary_iff (q : ℍ) : q ∈ unitary ℍ ↔ ‖q‖ = 1 := byrw [Unitary.mem_iff, Quaternion.star_mul_self, Quaternion.self_mul_star, and_self]constructor· intro hhave he : Quaternion.normSq q = 1 := Quaternion.coe_inj.mp hrw [Quaternion.normSq_eq_norm_mul_self] at henlinarith [norm_nonneg q]· intro hsimp [Quaternion.normSq_eq_norm_mul_self, h]instance su2_compactSpace : CompactSpace SU2 := byapply isCompact_iff_compactSpace.mphave hs : (unitary ℍ : Set ℍ) = Metric.sphere 0 1 := byext qsimp [quaternion_mem_unitary_iff]rw [hs]exact isCompact_sphere 0 1def circleQuaternion : Circle →* SU2 wheretoFun z := ⟨Quaternion.ofComplex z, byrw [Unitary.mem_iff, Quaternion.star_mul_self, Quaternion.self_mul_star, and_self]have hz := Circle.normSq_coe zhave he : Quaternion.normSq (Quaternion.ofComplex z) = 1 := bysimpa [Quaternion.normSq_def', Complex.normSq_apply, sq] using hzrw [he]; rfl⟩map_one' := Subtype.ext (map_one Quaternion.ofComplex)map_mul' z w := Subtype.ext (map_mul Quaternion.ofComplex (z : ℂ) (w : ℂ))@[simp] theorem circleQuaternion_coe (z : Circle) :((circleQuaternion z : SU2) : ℍ) = (z : ℂ) := rfltheorem circleQuaternion_injective : Function.Injective circleQuaternion := byintro z w happly Subtype.extapply Complex.ext· exact congrArg (fun q : ℍ => q.re) (congrArg Subtype.val h)· exact congrArg (fun q : ℍ => q.imI) (congrArg Subtype.val h)theorem circleQuaternion_continuous : Continuous circleQuaternion := byapply Continuous.subtype_mkexact Quaternion.ofComplex.toLinearMap.continuous_of_finiteDimensional.comp continuous_subtype_valdef wordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m)) (x : Fin m → SU2) : Fin m → SU2 :=fun i => FreeGroup.lift x (w i)def exponentMatrix {m : ℕ} (w : Fin m → FreeGroup (Fin m)) : Matrix (Fin m) (Fin m) ℤ :=fun i j => Multiplicative.toAdd(FreeGroup.lift (fun k => Multiplicative.ofAdd (if j = k then (1 : ℤ) else 0)) (w i))open Set Filter Topologyopen scoped ContDiff/-- Radial normalization is only used on nonzero quaternions. The harmlessvalue at zero makes it a total function without changing that domain. -/def normalizeQuaternion (q : ℍ) : SU2 := byclassicalexact if h : q = 0 then 1 else⟨‖q‖⁻¹ • q, (quaternion_mem_unitary_iff _).mpr (bysimp only [norm_smul, Real.norm_eq_abs, abs_inv, abs_norm]exact inv_mul_cancel₀ (norm_ne_zero_iff.mpr h))⟩theorem normalizeQuaternion_coe_of_ne_zero {q : ℍ} (hq : q ≠ 0) :(normalizeQuaternion q : ℍ) = ‖q‖⁻¹ • q := by simp [normalizeQuaternion, hq]theorem normalizeQuaternion_coe_contDiffAt {q : ℍ} (hq : q ≠ 0) :ContDiffAt ℝ ∞ (fun z => (normalizeQuaternion z : ℍ)) q := byhave h : ContDiffAt ℝ ∞ (fun z : ℍ => ‖z‖⁻¹ • z) q :=((contDiffAt_norm ℝ hq).inv (norm_ne_zero_iff.mpr hq)).smul contDiffAt_idapply h.congr_of_eventuallyEqfilter_upwards [eventually_ne_nhds hq] with z hzexact normalizeQuaternion_coe_of_ne_zero hztheorem normalizeQuaternion_continuousAt {q : ℍ} (hq : q ≠ 0) :ContinuousAt normalizeQuaternion q := byexact tendsto_subtype_rng.mpr (normalizeQuaternion_coe_contDiffAt hq).continuousAt@[simp] theorem normalizeQuaternion_unitary (q : SU2) : normalizeQuaternion (q : ℍ) = q := byhave hqnorm : ‖(q : ℍ)‖ = 1 := (quaternion_mem_unitary_iff _).mp q.propertyhave hq : (q : ℍ) ≠ 0 := by intro he; simp [he] at hqnormapply Subtype.extsimp [normalizeQuaternion_coe_of_ne_zero hq, hqnorm]/-- Smoothness of coefficient-free word evaluation follows directly byinduction, using quaternion conjugation for unitary inverses. -/theorem freeGroup_lift_coe_contDiffAt {D ι : Type*}[NormedAddCommGroup D] [NormedSpace ℝ D] (w : FreeGroup ι)(a : D) (x : D → ι → SU2)(hx : ∀ i, ContDiffAt ℝ ∞ (fun z => (x z i : ℍ)) a) :ContDiffAt ℝ ∞ (fun z => ((FreeGroup.lift (x z) w : SU2) : ℍ)) a := byinduction w using FreeGroup.induction_on with| one => simpa using (contDiffAt_const : ContDiffAt ℝ ∞ (fun _ : D => (1 : ℍ)) a)| of i => simpa using hx i| inv_of i hi =>simp only [map_inv]change ContDiffAt ℝ ∞ (fun z => star ((FreeGroup.lift (x z) (FreeGroup.of i) : SU2) : ℍ)) alet L : ℍ →ₗ[ℝ] ℍ :={ toFun := starmap_add' := star_addmap_smul' := Quaternion.star_smul }exact L.toContinuousLinearMap.contDiff.contDiffAt.comp a hi| mul v w hv hw => simpa only [map_mul, Submonoid.coe_mul] using hv.mul hwdef radialWordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℍ) : Fin m → ℍ :=fun i => ‖x i‖ • ((wordMap w (fun j => normalizeQuaternion (x j)) i : SU2) : ℍ)@[simp] theorem radialWordMap_norm {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℍ) (i : Fin m) : ‖radialWordMap w x i‖ = ‖x i‖ := byhave h : ‖((wordMap w (fun j => normalizeQuaternion (x j)) i : SU2) : ℍ)‖ = 1 :=(quaternion_mem_unitary_iff _).mp (wordMap w (fun j => normalizeQuaternion (x j)) i).propertysimp [radialWordMap, norm_smul, h]theorem radialWordMap_contDiffAt {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℍ) (hx : ∀ i, x i ≠ 0) : ContDiffAt ℝ ∞ (radialWordMap w) x := byapply contDiffAt_pi.mprintro iexact ((contDiffAt_apply ℝ ℍ i x).norm ℝ (hx i)).smul(freeGroup_lift_coe_contDiffAt (w i) x (fun z j => normalizeQuaternion (z j))(fun j => (normalizeQuaternion_coe_contDiffAt (hx j)).comp (f := fun z : Fin m → ℍ => z j) x (contDiffAt_apply ℝ ℍ j x)))theorem radialWordMap_eq_one_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℍ) : radialWordMap w x = 1 ↔(∀ i, ‖x i‖ = 1) ∧ wordMap w (fun j => normalizeQuaternion (x j)) = 1 := byconstructor· intro hhave hn (i : Fin m) : ‖x i‖ = 1 := byhave he := congrArg (fun y : Fin m → ℍ => ‖y i‖) hsimpa only [radialWordMap_norm, Pi.one_apply, norm_one] using herefine ⟨hn, ?_⟩funext iapply Subtype.exthave he := congrFun h isimpa [radialWordMap, hn] using he· rintro ⟨hn, hw⟩funext isimp [radialWordMap, hn, hw]/-- A conjugation-invariant smooth cutoff, zero near coordinate hyperplanesand one near the unit quaternion locus. -/def radialCutoff {m : ℕ} (x : Fin m → ℍ) : ℝ :=∏ i, Real.smoothTransition (4 * ‖x i‖ ^ 2 - 1)def smoothRadialWordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℍ) : Fin m → ℍ := radialCutoff x • radialWordMap w xtheorem radialCutoff_contDiff {m : ℕ} : ContDiff ℝ ∞ (@radialCutoff m) := byapply contDiff_prodintro i _have hn : ContDiff ℝ ∞ (fun x : Fin m → ℍ => ‖x i‖ ^ 2) :=(contDiff_apply ℝ ℍ i).norm_sq ℝexact Real.smoothTransition.contDiff.comp ((contDiff_const.mul hn).sub contDiff_const)theorem radialCutoff_nonneg {m : ℕ} (x : Fin m → ℍ) : 0 ≤ radialCutoff x :=Finset.prod_nonneg (fun _ _ => Real.smoothTransition.nonneg _)theorem radialCutoff_le_one {m : ℕ} (x : Fin m → ℍ) : radialCutoff x ≤ 1 :=Finset.prod_le_one₀ (fun _ _ => Real.smoothTransition.nonneg _)(fun _ _ => Real.smoothTransition.le_one _)theorem radialCutoff_eq_one {m : ℕ} (x : Fin m → ℍ) (hx : ∀ i, 1 ≤ ‖x i‖) :radialCutoff x = 1 := byapply Finset.prod_eq_oneintro i _apply Real.smoothTransition.one_of_one_lenlinarith [hx i]theorem radialCutoff_eventually_zero {m : ℕ} (x : Fin m → ℍ) (i : Fin m)(hi : x i = 0) : radialCutoff =ᶠ[𝓝 x] (fun _ => 0) := byhave h : ∀ᶠ y in 𝓝 x, ‖y i‖ < (1 / 2 : ℝ) :=((continuous_apply i).norm.continuousAt.eventually_lt_const (by simp [hi]))filter_upwards [h] with y hyapply Finset.prod_eq_zero (Finset.mem_univ i)apply Real.smoothTransition.zero_of_nonposnlinarith [norm_nonneg (y i)]theorem radialCutoff_eventually_one {m : ℕ} (x : Fin m → ℍ)(hx : ∀ i, ‖x i‖ = 1) : radialCutoff =ᶠ[𝓝 x] (fun _ => 1) := byhave h (i : Fin m) : ∀ᶠ y in 𝓝 x, (3 / 4 : ℝ) < ‖y i‖ :=((continuous_apply i).norm.continuousAt.eventually_const_lt (by change (3 / 4 : ℝ) < ‖x i‖; rw [hx i]; norm_num))filter_upwards [Filter.eventually_all.mpr h] with y hyapply Finset.prod_eq_oneintro i _apply Real.smoothTransition.one_of_one_lenlinarith [hy i]theorem smoothRadialWordMap_contDiff {m : ℕ} (w : Fin m → FreeGroup (Fin m)) :ContDiff ℝ ∞ (smoothRadialWordMap w) := byrw [contDiff_iff_contDiffAt]intro xby_cases hx : ∀ i, x i ≠ 0· exact radialCutoff_contDiff.contDiffAt.smul (radialWordMap_contDiffAt w x hx)· push Not at hxobtain ⟨i, hi⟩ := hxapply (contDiffAt_const : ContDiffAt ℝ ∞ (fun _ : Fin m → ℍ => (0 : Fin m → ℍ)) x).congr_of_eventuallyEqfilter_upwards [radialCutoff_eventually_zero x i hi] with y hysimp [smoothRadialWordMap, hy]theorem smoothRadialWordMap_eq_one_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℍ) : smoothRadialWordMap w x = 1 ↔ radialWordMap w x = 1 := byconstructor· intro hhave hn (i : Fin m) : radialCutoff x * ‖x i‖ = 1 := byhave he := congrArg (fun y : Fin m → ℍ => ‖y i‖) hsimpa only [smoothRadialWordMap, Pi.smul_apply, norm_smul, Real.norm_eq_abs,abs_of_nonneg (radialCutoff_nonneg x), radialWordMap_norm, Pi.one_apply, norm_one] using hehave hlarge (i : Fin m) : 1 ≤ ‖x i‖ := byhave hle := mul_le_mul_of_nonneg_right (radialCutoff_le_one x) (norm_nonneg (x i))rw [hn i, one_mul] at hleexact hlesimpa only [smoothRadialWordMap, radialCutoff_eq_one x hlarge, one_smul] using h· intro hhave hn := (radialWordMap_eq_one_iff w x).mp hsimp only [smoothRadialWordMap, radialCutoff_eq_one x (fun i => (hn.1 i).ge), one_smul, h]theorem smoothRadialWordMap_eventuallyEq {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℍ) (hx : ∀ i, ‖x i‖ = 1) :smoothRadialWordMap w =ᶠ[𝓝 x] radialWordMap w := byfilter_upwards [radialCutoff_eventually_one x hx] with y hysimp [smoothRadialWordMap, hy]end EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyvariable {n : Type*} [Fintype n] [DecidableEq n]def splitComplex : (n → ℂ) ≃ₗ[ℝ] ((n → ℝ) × (n → ℝ)) wheretoFun z := (fun i => (z i).re, fun i => (z i).im)invFun p i := (p.1 i : ℂ) + (p.2 i : ℂ) * Complex.Ileft_inv z := by funext i; exact Complex.re_add_im (z i)right_inv p := by ext i <;> simpmap_add' a b := by ext i <;> simpmap_smul' a b := by ext i <;> simpdef radialAngularLinear (B : Matrix n n ℝ) : (n → ℂ) →L[ℝ] (n → ℂ) :=((splitComplex (n := n)).symm.toLinearMap.comp(((LinearMap.id : (n → ℝ) →ₗ[ℝ] (n → ℝ)).prodMap B.toLin').comp(splitComplex (n := n)).toLinearMap)).toContinuousLinearMap@[simp] theorem radialAngularLinear_apply (B : Matrix n n ℝ) (z : n → ℂ) (i : n) :radialAngularLinear B z i = ((z i).re : ℂ) + (∑ j, B i j * (z j).im : ℝ) * Complex.I := rfltheorem radialAngularLinear_det (B : Matrix n n ℝ) :(radialAngularLinear B).toLinearMap.det = B.det := bychange LinearMap.det ((splitComplex (n := n)).symm.toLinearMap ∘ₗ((LinearMap.id : (n → ℝ) →ₗ[ℝ] (n → ℝ)).prodMap B.toLin') ∘ₗ(splitComplex (n := n)).toLinearMap) = _have he := LinearMap.det_conj((LinearMap.id : (n → ℝ) →ₗ[ℝ] (n → ℝ)).prodMap B.toLin')(splitComplex (n := n)).symmrw [LinearEquiv.symm_symm] at herw [he, LinearMap.det_prodMap, LinearMap.det_id, one_mul, LinearMap.det_toLin']def complexPolarChart (x z : n → ℂ) : n → ℂ := fun i => x i * Complex.exp (z i)def complexRadialTorus (B : Matrix n n ℤ) (z : n → ℂ) : n → ℂ :=fun i => ‖z i‖ • ∏ j, (‖z j‖⁻¹ • z j) ^ B i jtheorem normalize_complex_mul_exp (x z : ℂ) (hx : ‖x‖ = 1) :‖x * Complex.exp z‖⁻¹ • (x * Complex.exp z) =x * Complex.exp ((z.im : ℂ) * Complex.I) := byrw [norm_mul, hx, one_mul, Complex.norm_exp, Complex.real_smul, Complex.ofReal_inv]have he : Complex.exp z = (Real.exp z.re : ℂ) *Complex.exp ((z.im : ℂ) * Complex.I) := byrw [Complex.ofReal_exp, ← Complex.exp_add, Complex.re_add_im]rw [he]have hn : (Real.exp z.re : ℂ) ≠ 0 := by exact_mod_cast Real.exp_ne_zero z.refield_simptheorem complexRadialTorus_chart (B : Matrix n n ℤ) (x : n → ℂ)(hx : ∀ i, ‖x i‖ = 1) (hroot : ∀ i, ∏ j, x j ^ B i j = 1) :complexRadialTorus B ∘ complexPolarChart x =fun z => fun i => Complex.exp (radialAngularLinear (B.map (Int.castRingHom ℝ)) z i) := byfunext z ihave hn (j : n) := normalize_complex_mul_exp (x j) (z j) (hx j)simp only [Function.comp_apply, complexRadialTorus, complexPolarChart]simp only [hn]simp only [mul_zpow, Finset.prod_mul_distrib,hroot, one_mul, norm_mul, hx, one_mul, Complex.norm_exp, radialAngularLinear_apply,← Complex.exp_int_mul]rw [Complex.real_smul, Complex.ofReal_exp, ← Complex.exp_sum, ← Complex.exp_add]congr 1simp only [Matrix.map_apply, Int.coe_castRingHom, Complex.ofReal_sum,Complex.ofReal_mul, Complex.ofReal_intCast]rw [Finset.sum_mul]congr 1apply Finset.sum_congr rflintro j _ring/-- The real derivative of multiplication by a unit complex tuple has determinant one. -/def complexDiagonal (x : n → ℂ) : (n → ℂ) →L[ℝ] (n → ℂ) :=((Matrix.diagonal x).toLin').toContinuousLinearMap.restrictScalars ℝ@[simp] theorem complexDiagonal_apply (x z : n → ℂ) (i : n) :complexDiagonal x z i = x i * z i := by simp [complexDiagonal, Matrix.toLin'_apply, Matrix.mulVec, Matrix.diagonal_apply, dotProduct]theorem complexDiagonal_det (x : n → ℂ) (hx : ∀ i, ‖x i‖ = 1) :(complexDiagonal x).toLinearMap.det = 1 := bychange (((Matrix.diagonal x).toLin').restrictScalars ℝ).det = _rw [LinearMap.det_restrictScalars, Algebra.norm_complex_apply, LinearMap.det_toLin',Matrix.det_diagonal]rw [Complex.normSq_eq_norm_sq, norm_prod]simp [hx]theorem complexPolarChart_hasFDerivAt (x : n → ℂ) :HasFDerivAt (complexPolarChart x) (complexDiagonal x) 0 := byapply hasFDerivAt_pi'.mprintro ihave h := ((ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ).hasFDerivAt(x := 0)).cexp.const_mul (x i)change HasFDerivAt (fun z : n → ℂ => x i * Complex.exp (z i)) _ (0 : n → ℂ)have he : (ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ).comp (complexDiagonal x) =x i • (ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ) := byext zsimprw [he]simpa using htheorem exp_radialAngularLinear_hasFDerivAt (B : Matrix n n ℝ) :HasFDerivAt (fun z i => Complex.exp (radialAngularLinear B z i))(radialAngularLinear B) 0 := byapply hasFDerivAt_pi'.mprintro isimpa using (((ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ).comp(radialAngularLinear B)).hasFDerivAt (x := 0)).cexptheorem complexRadialTorus_differentiableAt (B : Matrix n n ℤ) (x : n → ℂ)(hx : ∀ i, x i ≠ 0) : DifferentiableAt ℝ (complexRadialTorus B) x := byapply differentiableAt_pi.mprintro ihave hn (j : n) : DifferentiableAt ℝ (fun z : n → ℂ => ‖z j‖) x :=(differentiableAt_apply j x).norm ℝ (hx j)apply (hn i).smulhave hp (j : n) : DifferentiableAt ℝ (fun z : n → ℂ => (‖z j‖⁻¹ • z j) ^ B i j) x := byhave hne : ‖x j‖⁻¹ • x j ≠ 0 :=smul_ne_zero (inv_ne_zero (norm_ne_zero_iff.mpr (hx j))) (hx j)have hz : DifferentiableAt ℝ (fun z : ℂ => z ^ B i j) (‖x j‖⁻¹ • x j) :=((differentiableAt_zpow (𝕜 := ℂ) (m := B i j)).mpr (Or.inl hne)).restrictScalars ℝexact hz.comp x (((hn j).inv (norm_ne_zero_iff.mpr (hx j))).smul(differentiableAt_apply j x))exact (HasFDerivAt.finsetProd (fun j _ => (hp j).hasFDerivAt)).differentiableAt/-- At every torus root, the radial extension has exactly determinant det B.The extra radial coordinates contribute the identity, not an additional sign. -/theorem complexRadialTorus_det (B : Matrix n n ℤ) (x : n → ℂ)(hx : ∀ i, ‖x i‖ = 1) (hroot : ∀ i, ∏ j, x j ^ B i j = 1) :(fderiv ℝ (complexRadialTorus B) x).det = (B.det : ℝ) := byhave hne (i : n) : x i ≠ 0 := by intro h; simpa [h] using hx ihave hd := (complexRadialTorus_differentiableAt B x hne).hasFDerivAthave hchart : complexPolarChart x 0 = x := by ext i; simp [complexPolarChart]have hc := (show HasFDerivAt (complexRadialTorus B) (fderiv ℝ (complexRadialTorus B) x)(complexPolarChart x 0) by rw [hchart]; exact hd).comp 0 (complexPolarChart_hasFDerivAt x)have he : (fderiv ℝ (complexRadialTorus B) x).comp (complexDiagonal x) =radialAngularLinear (B.map (Int.castRingHom ℝ)) := byapply hc.uniquerw [complexRadialTorus_chart B x hx hroot]exact exp_radialAngularLinear_hasFDerivAt _have hdet := congrArg (fun L : (n → ℂ) →L[ℝ] (n → ℂ) => L.det) hechange ((fderiv ℝ (complexRadialTorus B) x).toLinearMap.comp(complexDiagonal x).toLinearMap).det = (radialAngularLinear (B.map (Int.castRingHom ℝ))).toLinearMap.det at hdetrw [LinearMap.det_comp, complexDiagonal_det x hx,mul_one, radialAngularLinear_det] at hdetexact hdet.trans ((Int.castRingHom ℝ).map_det B).symmend EilenbergGaneanamespace EilenbergGaneasection CommutativeWordsvariable {n A : Type*} [Fintype n] [DecidableEq n] [CommGroup A]def wordExponents {ι : Type*} [DecidableEq ι] (w : FreeGroup ι) (j : ι) : ℤ :=Multiplicative.toAdd(FreeGroup.lift (fun k => Multiplicative.ofAdd (if j = k then (1 : ℤ) else 0)) w)@[simp] theorem wordExponents_one {ι : Type*} [DecidableEq ι] (j : ι) : wordExponents (1 : FreeGroup ι) j = 0 := bysimp [wordExponents]@[simp] theorem wordExponents_of {ι : Type*} [DecidableEq ι] (j k : ι) :wordExponents (FreeGroup.of k) j = if j = k then 1 else 0 := bysimp [wordExponents]@[simp] theorem wordExponents_inv {ι : Type*} [DecidableEq ι] (w : FreeGroup ι) (j : ι) :wordExponents w⁻¹ j = -wordExponents w j := bysimp [wordExponents]@[simp] theorem wordExponents_mul {ι : Type*} [DecidableEq ι] (w v : FreeGroup ι) (j : ι) :wordExponents (w * v) j = wordExponents w j + wordExponents v j := bysimp [wordExponents]theorem freeGroup_lift_commutative (x : n → A) (w : FreeGroup n) :FreeGroup.lift x w = ∏ j, x j ^ wordExponents w j := byinduction w using FreeGroup.induction_on with| one => simp| of i => simp| inv_of i hi => simp [hi, Finset.prod_inv_distrib]| mul a b ha hb => simp [ha, hb, zpow_add, Finset.prod_mul_distrib]end CommutativeWordsend EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyopen scoped Quaternion ContDiffdef quaternionCoordinates : ℍ ≃ₗ[ℝ] ℂ × ℂ wheretoFun q := (⟨q.re, q.imI⟩, ⟨q.imJ, q.imK⟩)invFun z := ⟨z.1.re, z.1.im, z.2.re, z.2.im⟩left_inv q := by cases q; rflright_inv z := by rcases z with ⟨⟨a,b⟩,⟨c,d⟩⟩; rflmap_add' q r := by ext <;> rflmap_smul' r q := by apply Prod.ext <;> apply Complex.ext <;> simp@[simp] theorem quaternionCoordinates_apply (q : ℍ) :quaternionCoordinates q = (⟨q.re, q.imI⟩, ⟨q.imJ, q.imK⟩) := rfl@[simp] theorem quaternionCoordinates_ofComplex (z : ℂ) :quaternionCoordinates (Quaternion.ofComplex z) = (z, 0) := byext <;> rfl@[simp] theorem norm_quaternion_ofComplex (z : ℂ) : ‖Quaternion.ofComplex z‖ = ‖z‖ := byhave h : ‖Quaternion.ofComplex z‖ ^ 2 = ‖z‖ ^ 2 := byrw [sq, ← Quaternion.normSq_eq_norm_mul_self, ← Complex.normSq_eq_norm_sq]simp [Quaternion.normSq_def', Complex.normSq_apply, sq]nlinarith [norm_nonneg (Quaternion.ofComplex z), norm_nonneg z]def quaternionTupleCoordinates {m : ℕ} :(Fin m → ℍ) ≃L[ℝ] ((Fin m → ℂ) × (Fin m → ℂ)) :=(show (Fin m → ℍ) ≃ₗ[ℝ] ((Fin m → ℂ) × (Fin m → ℂ)) from{ toFun := fun q => (fun i => (quaternionCoordinates (q i)).1,fun i => (quaternionCoordinates (q i)).2)invFun := fun z i => quaternionCoordinates.symm (z.1 i, z.2 i)left_inv := by intro q; funext i; exact quaternionCoordinates.symm_apply_apply _right_inv := by intro z; ext i <;> simpmap_add' := by intro q r; ext i <;> rflmap_smul' := by intro r q; ext i <;> simp [quaternionCoordinates] }).toContinuousLinearEquiv@[simp] theorem quaternionTupleCoordinates_fixed {m : ℕ} (z : Fin m → ℂ) :quaternionTupleCoordinates (fun i => Quaternion.ofComplex (z i)) = (z, 0) := byapply Prod.ext· funext i; exact congrArg Prod.fst (quaternionCoordinates_ofComplex (z i))· funext i; exact congrArg Prod.snd (quaternionCoordinates_ofComplex (z i))@[simp] theorem quaternionTupleCoordinates_symm_fixed {m : ℕ} (z : Fin m → ℂ) :quaternionTupleCoordinates.symm (z, 0) = fun i => Quaternion.ofComplex (z i) := byexact quaternionTupleCoordinates.injective (by rw [ContinuousLinearEquiv.apply_symm_apply, quaternionTupleCoordinates_fixed])/-- Circle normalization chosen compatibly with quaternion normalization. -/def normalizeCircle (z : ℂ) : Circle := byclassicalexact if hz : z = 0 then 1 else ⟨‖z‖⁻¹ • z, by apply mem_sphere_zero_iff_norm.mpr; simp [hz]⟩theorem normalizeCircle_coe_of_ne_zero {z : ℂ} (hz : z ≠ 0) :(normalizeCircle z : ℂ) = ‖z‖⁻¹ • z := by simp [normalizeCircle, hz]theorem normalizeQuaternion_ofComplex (z : ℂ) :normalizeQuaternion (Quaternion.ofComplex z) = circleQuaternion (normalizeCircle z) := byby_cases hz : z = 0· subst zsimp [normalizeQuaternion, normalizeCircle]· have hq : Quaternion.ofComplex z ≠ 0 := byintro hhave hh := congrArg quaternionCoordinates happly hzhave hz0 := congrArg Prod.fst hhchange (quaternionCoordinates (Quaternion.ofComplex z)).1 = (quaternionCoordinates (Quaternion.ofComplex 0)).1 at hz0simpa only [quaternionCoordinates_ofComplex] using hz0apply Subtype.extrw [normalizeQuaternion_coe_of_ne_zero hq, circleQuaternion_coe,normalizeCircle_coe_of_ne_zero hz, norm_quaternion_ofComplex]exact (map_smul Quaternion.ofComplex (‖z‖⁻¹) z).symmtheorem wordMap_circleQuaternion {m : ℕ} (w : Fin m → FreeGroup (Fin m)) (x : Fin m → Circle) :wordMap w (fun j => circleQuaternion (x j)) =fun i => circleQuaternion (∏ j, x j ^ exponentMatrix w i j) := byfunext ihave he : FreeGroup.lift (fun j => circleQuaternion (x j)) =circleQuaternion.comp (FreeGroup.lift x) := byapply FreeGroup.ext_homintro jsimpchange FreeGroup.lift (fun j => circleQuaternion (x j)) (w i) = _rw [he, MonoidHom.comp_apply, freeGroup_lift_commutative]rfltheorem radialWordMap_fixed {m : ℕ} (w : Fin m → FreeGroup (Fin m)) (z : Fin m → ℂ)(hz : ∀ i, z i ≠ 0) :radialWordMap w (fun i => Quaternion.ofComplex (z i)) =fun i => Quaternion.ofComplex (complexRadialTorus (exponentMatrix w) z i) := byfunext isimp only [radialWordMap, normalizeQuaternion_ofComplex, wordMap_circleQuaternion,circleQuaternion_coe, complexRadialTorus, norm_quaternion_ofComplex]rw [map_smul]congr 1apply congrArg Quaternion.ofComplexchange Circle.coeHom (∏ j, normalizeCircle (z j) ^ exponentMatrix w i j) = _rw [map_prod]apply Finset.prod_congr rflintro j _change (normalizeCircle (z j) : ℂ) ^ exponentMatrix w i j = _rw [normalizeCircle_coe_of_ne_zero (hz j)]theorem quaternionCoordinates_conjComplex (c : ℂ) (q : ℍ) :quaternionCoordinates (Quaternion.ofComplex c * q * star (Quaternion.ofComplex c)) =((Complex.normSq c : ℂ) * (quaternionCoordinates q).1,c ^ 2 * (quaternionCoordinates q).2) := byapply Prod.ext <;> apply Complex.ext <;>simp [quaternionCoordinates_apply, Complex.normSq_apply, pow_two] <;> ring@[simp] theorem quaternionCoordinates_conjCircle (c : Circle) (q : ℍ) :quaternionCoordinates (Quaternion.ofComplex c * q * star (Quaternion.ofComplex c)) =((quaternionCoordinates q).1, (c : ℂ) ^ 2 * (quaternionCoordinates q).2) := bysimpa using quaternionCoordinates_conjComplex (c : ℂ) q/-- Ambient conjugation, compatible with the group operation on unit quaternions. -/def quaternionConjugate (a : SU2) (q : ℍ) : ℍ := (a : ℍ) * q * star (a : ℍ)@[simp] theorem quaternionConjugate_norm (a : SU2) (q : ℍ) :‖quaternionConjugate a q‖ = ‖q‖ := byhave ha := (quaternion_mem_unitary_iff _).mp a.propertysimp [quaternionConjugate, ha]@[simp] theorem quaternionConjugate_zero (a : SU2) : quaternionConjugate a 0 = 0 := bysimp [quaternionConjugate]@[simp] theorem quaternionConjugate_one (a : SU2) : quaternionConjugate a 1 = 1 := bysimp [quaternionConjugate]theorem quaternionConjugate_smul (a : SU2) (r : ℝ) (q : ℍ) :quaternionConjugate a (r • q) = r • quaternionConjugate a q := bysimp only [quaternionConjugate, mul_smul_comm, smul_mul_assoc]@[simp] theorem quaternionConjugate_coe (a q : SU2) :quaternionConjugate a (q : ℍ) = ((a * q * a⁻¹ : SU2) : ℍ) := rfltheorem normalizeQuaternion_conjugate (a : SU2) (q : ℍ) :normalizeQuaternion (quaternionConjugate a q) = a * normalizeQuaternion q * a⁻¹ := byby_cases hq : q = 0· subst q; simp [normalizeQuaternion]· have hn : quaternionConjugate a q ≠ 0 := byintro hzhave he := quaternionConjugate_norm a qrw [hz, norm_zero, eq_comm, norm_eq_zero] at heexact hq heapply Subtype.extrw [normalizeQuaternion_coe_of_ne_zero hn, ← quaternionConjugate_coe,normalizeQuaternion_coe_of_ne_zero hq, quaternionConjugate_smul, quaternionConjugate_norm]theorem wordMap_conjugation {m : ℕ} (w : Fin m → FreeGroup (Fin m))(a : SU2) (x : Fin m → SU2) :wordMap w (fun i => a * x i * a⁻¹) = fun i => a * wordMap w x i * a⁻¹ := byhave he : FreeGroup.lift (fun i => a * x i * a⁻¹) =(MulAut.conj a).toMonoidHom.comp (FreeGroup.lift x) := byapply FreeGroup.ext_homintro isimpfunext ichange FreeGroup.lift (fun i => a * x i * a⁻¹) (w i) = _rw [he]rfltheorem radialWordMap_conjugation {m : ℕ} (w : Fin m → FreeGroup (Fin m))(a : SU2) (x : Fin m → ℍ) :radialWordMap w (fun i => quaternionConjugate a (x i)) =fun i => quaternionConjugate a (radialWordMap w x i) := byfunext isimp only [radialWordMap, quaternionConjugate_norm, normalizeQuaternion_conjugate,wordMap_conjugation, quaternionConjugate_smul, quaternionConjugate_coe]theorem smoothRadialWordMap_conjugation {m : ℕ} (w : Fin m → FreeGroup (Fin m))(a : SU2) (x : Fin m → ℍ) :smoothRadialWordMap w (fun i => quaternionConjugate a (x i)) =fun i => quaternionConjugate a (smoothRadialWordMap w x i) := byfunext isimp only [smoothRadialWordMap, radialCutoff, quaternionConjugate_norm,Pi.smul_apply, radialWordMap_conjugation, quaternionConjugate_smul]end EilenbergGaneanamespace EilenbergGaneatheorem complex_root_of_unity_norm {p : ℕ} (hp : p ≠ 0) (z : rootsOfUnity p ℂ) :‖((z : ℂˣ) : ℂ)‖ = 1 := byhave h := congrArg norm ((mem_rootsOfUnity' p (z : ℂˣ)).mp z.property)simpa only [norm_pow, norm_one, pow_eq_one_iff_of_nonneg (norm_nonneg _) hp] using htheorem rootsOfUnity_isPGroup {p : ℕ} [Fact p.Prime] : IsPGroup p (rootsOfUnity p ℂ) := bylet : NeZero p := ⟨(Fact.out : p.Prime).ne_zero⟩rw [isPGroup_iff_card_dvd_pow, Complex.card_rootsOfUnity]exact ⟨1, by simp⟩theorem rootsOfUnity_exists_nonreal {p : ℕ} (hp : 2 < p) :∃ z : rootsOfUnity p ℂ, (((z : ℂˣ) : ℂ)).im ≠ 0 := byhave hp0 : p ≠ 0 := by omegalet ζ := Complex.exp (2 * Real.pi * Complex.I / p)have hζ : IsPrimitiveRoot ζ p := Complex.isPrimitiveRoot_exp p hp0let u : ℂˣ := Units.mk0 ζ (Complex.exp_ne_zero _)let z : rootsOfUnity p ℂ := ⟨u, (mem_rootsOfUnity' p u).mpr hζ.pow_eq_one⟩refine ⟨z, ?_⟩intro himchange ζ.im = 0 at himhave hn : ‖ζ‖ = 1 := complex_root_of_unity_norm hp0 zhave hs : ζ.re ^ 2 = 1 := byhave hh := Complex.normSq_eq_norm_sq ζsimp only [Complex.normSq_apply, him, mul_zero, add_zero, hn, one_pow] at hhnlinarithhave hpow : ζ ^ 2 = 1 := byapply Complex.ext <;> simp [pow_two, him]nlinarithhave hd := hζ.dvd_of_pow_eq_one 2 hpowhave ht := Nat.le_of_dvd (by decide : 0 < 2) hdomegatheorem circle_exists_square_root (z : ℂ) (hz : ‖z‖ = 1) :∃ c : Circle, (c : ℂ) ^ 2 = z := byobtain ⟨c, hc⟩ := IsAlgClosed.exists_pow_nat_eq z (by decide : 0 < 2)have hn : ‖c‖ = 1 := byhave hh := congrArg norm hcrw [norm_pow, hz] at hhnlinarith [norm_nonneg c]exact ⟨⟨c, mem_sphere_zero_iff_norm.mpr hn⟩, hc⟩end EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyopen scoped Quaternion ContDiffdef splitWordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m))(q : (Fin m → ℂ) × (Fin m → ℂ)) : (Fin m → ℂ) × (Fin m → ℂ) :=quaternionTupleCoordinates (smoothRadialWordMap w (quaternionTupleCoordinates.symm q)) - (1, 0)theorem splitWordMap_contDiff {m : ℕ} (w : Fin m → FreeGroup (Fin m)) :ContDiff ℝ ∞ (splitWordMap w) :=(quaternionTupleCoordinates.contDiff.comp ((smoothRadialWordMap_contDiff w).compquaternionTupleCoordinates.symm.contDiff)).sub contDiff_consttheorem quaternionTupleCoordinates_conjCircle {m : ℕ} (c : Circle) (q : Fin m → ℍ) :quaternionTupleCoordinates (fun i => quaternionConjugate (circleQuaternion c) (q i)) =((quaternionTupleCoordinates q).1, (c : ℂ) ^ 2 • (quaternionTupleCoordinates q).2) := byapply Prod.ext· funext ichange (quaternionCoordinates (Quaternion.ofComplex c * q i * star (Quaternion.ofComplex c))).1 = _have hh := congrArg Prod.fst (quaternionCoordinates_conjCircle c (q i))exact hh· funext ichange (quaternionCoordinates (Quaternion.ofComplex c * q i * star (Quaternion.ofComplex c))).2 = _have hh := congrArg Prod.snd (quaternionCoordinates_conjCircle c (q i))exact hhtheorem splitWordMap_rotation {m : ℕ} (w : Fin m → FreeGroup (Fin m))(z : ℂ) (hz : ‖z‖ = 1) (q : (Fin m → ℂ) × (Fin m → ℂ)) :splitWordMap w (q.1, z • q.2) = ((splitWordMap w q).1, z • (splitWordMap w q).2) := byobtain ⟨c, hc⟩ := circle_exists_square_root z hzlet x := quaternionTupleCoordinates.symm qhave hx : quaternionTupleCoordinates x = q := quaternionTupleCoordinates.apply_symm_apply qhave heq : (q.1, z • q.2) = quaternionTupleCoordinates(fun i => quaternionConjugate (circleQuaternion c) (x i)) := byrw [quaternionTupleCoordinates_conjCircle, hc, hx]have hh := congrArg (fun v : Fin m → ℍ => quaternionTupleCoordinates v)(smoothRadialWordMap_conjugation w (circleQuaternion c) x)rw [quaternionTupleCoordinates_conjCircle, hc] at hhhave heq' : quaternionTupleCoordinates.symm (q.1, z • q.2) =fun i => quaternionConjugate (circleQuaternion c) (x i) := byrw [heq, ContinuousLinearEquiv.symm_apply_apply]unfold splitWordMaprw [heq', hh]change (_, z • _) - (1, 0) = ((quaternionTupleCoordinates (smoothRadialWordMap w x) - (1, 0)).1,z • (quaternionTupleCoordinates (smoothRadialWordMap w x) - (1, 0)).2)simptheorem splitWordMap_fixed_eventually {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℂ) (hx : ∀ i, ‖x i‖ = 1) :(fun z => (splitWordMap w (z, 0)).1) =ᶠ[𝓝 x](fun z => complexRadialTorus (exponentMatrix w) z - 1) := byhave hne (i : Fin m) : x i ≠ 0 := by intro h; simpa [h] using hx ihave hz : ∀ᶠ z in 𝓝 x, ∀ i, z i ≠ 0 := Filter.eventually_all.mpr(fun i => (continuous_apply i).continuousAt.eventually_ne (hne i))have hcont : Continuous (fun z : Fin m → ℂ => fun i => Quaternion.ofComplex (z i)) :=continuous_pi (fun i => Quaternion.ofComplex.toLinearMap.continuous_of_finiteDimensional.comp(continuous_apply i))have he := (smoothRadialWordMap_eventuallyEq w (fun i => Quaternion.ofComplex (x i))(fun i => (norm_quaternion_ofComplex _).trans (hx i))).comp_tendsto hcont.continuousAtfilter_upwards [hz, he] with z hz hechange smoothRadialWordMap w (fun i => Quaternion.ofComplex (z i)) =radialWordMap w (fun i => Quaternion.ofComplex (z i)) at hesimp only [splitWordMap, quaternionTupleCoordinates_symm_fixed]rw [he, radialWordMap_fixed w z hz, quaternionTupleCoordinates_fixed]rfltheorem splitWordMap_fixed_det {m : ℕ} (w : Fin m → FreeGroup (Fin m))(x : Fin m → ℂ) (hx : ∀ i, ‖x i‖ = 1)(hr : ∀ i, ∏ j, x j ^ exponentMatrix w i j = 1) :(fderiv ℝ (fun z => (splitWordMap w (z, 0)).1) x).det =((exponentMatrix w).det : ℝ) := byrw [(splitWordMap_fixed_eventually w x hx).fderiv_eq (𝕜 := ℝ)]have hne (i : Fin m) : x i ≠ 0 := by intro h; simpa [h] using hx irw [((complexRadialTorus_differentiableAt (exponentMatrix w) x hne).hasFDerivAt.sub_const 1).fderiv]exact complexRadialTorus_det (exponentMatrix w) x hx hrend EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyopen scoped Quaterniontheorem splitWordMap_zero_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))(q : (Fin m → ℂ) × (Fin m → ℂ)) :splitWordMap w q = 0 ↔smoothRadialWordMap w (quaternionTupleCoordinates.symm q) = 1 := byunfold splitWordMaprw [sub_eq_zero]have he : quaternionTupleCoordinates (1 : Fin m → ℍ) = (1, 0) := bychange quaternionTupleCoordinates (fun i : Fin m => Quaternion.ofComplex (1 : ℂ)) = _exact quaternionTupleCoordinates_fixed 1rw [← he]exact quaternionTupleCoordinates.injective.eq_ifftheorem splitWordMap_fixed_zero_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))(z : Fin m → ℂ) : splitWordMap w (z, 0) = 0 ↔(∀ i, ‖z i‖ = 1) ∧ (∀ i, ∏ j, z j ^ exponentMatrix w i j = 1) := byrw [splitWordMap_zero_iff, quaternionTupleCoordinates_symm_fixed,smoothRadialWordMap_eq_one_iff]constructor· intro hhave hn : ∀ i, ‖z i‖ = 1 := fun i => (norm_quaternion_ofComplex (z i)).symm.trans(((radialWordMap_eq_one_iff w _).mp h).1 i)have hz (i : Fin m) : z i ≠ 0 := by intro h; simpa [h] using hn irw [radialWordMap_fixed w z hz] at hrefine ⟨hn, fun i => ?_⟩have hh := congrArg (fun v : Fin m → ℍ => (quaternionCoordinates (v i)).1) hchange (quaternionCoordinates (Quaternion.ofComplex _)).1 = (1 : ℂ) at hhsimpa only [quaternionCoordinates_ofComplex, complexRadialTorus, hn, inv_one, one_smul] using hh· rintro ⟨hn, hr⟩have hz (i : Fin m) : z i ≠ 0 := by intro h; simpa [h] using hn irw [radialWordMap_fixed w z hz]funext isimp [complexRadialTorus, hn, hr]@[simp] theorem splitWordMap_fixed_one {m : ℕ} (w : Fin m → FreeGroup (Fin m)) :splitWordMap w (1, 0) = 0 := byrw [splitWordMap_fixed_zero_iff]simpend EilenbergGaneanamespace EilenbergGaneaopen Setsection Torusvariable {n : Type*} [Fintype n] [DecidableEq n]variable {A : Type*} [CommGroup A]theorem zpow_finite_sum {ι : Type*} (a : A) (s : Finset ι) (e : ι → ℤ) :a ^ (∑ i ∈ s, e i) = ∏ i ∈ s, a ^ e i := byclassicalinduction s using Finset.induction with| empty => simp| @insert i s hi ih => simp [hi, ih, zpow_add]def torusMap (B : Matrix n n ℤ) (x : n → A) : n → A :=fun i => ∏ j, x j ^ B i jomit [DecidableEq n] intheorem torusMap_comp (B C : Matrix n n ℤ) (x : n → A) :torusMap B (torusMap C x) = torusMap (B * C) x := byfunext isimp only [torusMap, Matrix.mul_apply, ← Finset.prod_zpow, zpow_finite_sum, ← zpow_mul]rw [Finset.prod_comm]congr 1funext jcongr 1funext krw [Int.mul_comm]theorem torusMap_det_one (B : Matrix n n ℤ) (x : n → A) :torusMap (B.det • (1 : Matrix n n ℤ)) x = fun i => x i ^ B.det := byfunext isimp [torusMap, Matrix.one_apply]theorem torusMap_kernel_pow_det (B : Matrix n n ℤ) (x : n → A)(hx : torusMap B x = 1) (i : n) : x i ^ B.det = 1 := byhave he := congrArg (fun y => torusMap B.adjugate y i) hxrw [torusMap_comp, Matrix.adjugate_mul, torusMap_det_one] at hesimpa [torusMap] using hetheorem circle_finite_pow_roots {d : ℤ} (hd : d ≠ 0) :{z : Circle | z ^ d = 1}.Finite := byhave hr := Polynomial.finite_setOfPred_isRoot(Polynomial.X_pow_sub_C_ne_zero (Nat.pos_of_ne_zero (Int.natAbs_ne_zero.mpr hd)) (1 : ℂ))apply Set.Finite.of_injOn (f := fun z : Circle => (z : ℂ)) _Subtype.val_injective.injOn hrintro z hzhave hp : z ^ d.natAbs = 1 := pow_natAbs_eq_one.mpr hzhave he : (z : ℂ) ^ d.natAbs = 1 := bysimpa using congrArg (fun t : Circle => (t : ℂ)) hpsimpa [Polynomial.IsRoot.def] using sub_eq_zero.mpr hetheorem torusMap_finite_kernel (B : Matrix n n ℤ) (hB : B.det ≠ 0) :{x : n → Circle | torusMap B x = 1}.Finite := byapply Set.Finite.subset (Set.Finite.pi (fun _ : n => circle_finite_pow_roots hB))intro x hx i _exact torusMap_kernel_pow_det B x hx iend Torusend EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologytheorem splitWordMap_fixed_finite {m : ℕ} (w : Fin m → FreeGroup (Fin m))(hB : (exponentMatrix w).det ≠ 0) :{z : Fin m → ℂ | splitWordMap w (z, 0) = 0}.Finite := byclassicallet e : (Fin m → Circle) → (Fin m → ℂ) := fun x i => (x i : ℂ)have hf := (torusMap_finite_kernel (exponentMatrix w) hB).image eapply hf.subsetintro z hzobtain ⟨hn, hr⟩ := (splitWordMap_fixed_zero_iff w z).mp hzlet x : Fin m → Circle := fun i => ⟨z i, mem_sphere_zero_iff_norm.mpr (hn i)⟩refine ⟨x, ?_, rfl⟩funext iapply Subtype.extchange Circle.coeHom (∏ j, x j ^ exponentMatrix w i j) = (1 : ℂ)rw [map_prod]simp only [map_zpow]exact hr iend EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyopen scoped ContDiff/-- The signed-root noncancellation for the actual ambient quaternion wordmap, with no regularity assumed of the original word map. -/theorem word_exists_regularization_nonzero_count {m : ℕ}(w : Fin m → FreeGroup (Fin m)) (hB : (exponentMatrix w).det ≠ 0)(K : Set ((Fin m → ℂ) × (Fin m → ℂ))) (hK : IsCompact K)(hKi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q ∈ K, (q.1, z • q.2) ∈ K)(h1 : (1, 0) ∈ K)(L : Set ((Fin m → ℂ) × (Fin m → ℂ))) (hL : IsCompact L) (hKL : K ⊆ L)(ε : ℝ) (hε : 0 < ε) :∃ g : ((Fin m → ℂ) × (Fin m → ℂ)) → ((Fin m → ℂ) × (Fin m → ℂ)),ContDiff ℝ ∞ g ∧ (∀ q ∈ L, ‖g q - splitWordMap w q‖ < ε) ∧∃ s : Finset ((Fin m → ℂ) × (Fin m → ℂ)),(∀ q, q ∈ s ↔ q ∈ K ∧ g q = 0) ∧(∀ q ∈ s, (fderiv ℝ g q).det ≠ 0) ∧(∑ q ∈ s, (if 0 < (fderiv ℝ g q).det then 1 else -1 : ℝ)) ≠ 0 := byclassicallet S := (splitWordMap_fixed_finite w hB).toFinsethave hS (z) : z ∈ S ↔ splitWordMap w (z, 0) = 0 := (splitWordMap_fixed_finite w hB).mem_toFinsetobtain ⟨p, hpbound, hp⟩ := Nat.exists_infinite_primes (S.card + 3)let : Fact p.Prime := ⟨hp⟩let : NeZero p := ⟨hp.ne_zero⟩let : Fintype (rootsOfUnity p ℂ) := Fintype.ofFinite _obtain ⟨a₀, ha₀⟩ := rootsOfUnity_exists_nonreal (p := p) (by omega)let χ : rootsOfUnity p ℂ →* ℂˣ := (rootsOfUnity p ℂ).subtypeapply exists_regularization_nonzero_count (rootsOfUnity_isPGroup (p := p)) χSubtype.val_injective a₀ ha₀ (splitWordMap w) (splitWordMap_contDiff w)(fun a q => splitWordMap_rotation w (χ a : ℂ) (complex_root_of_unity_norm hp.ne_zero a) q)K hK (fun a q hq => hKi (χ a : ℂ) (complex_root_of_unity_norm hp.ne_zero a) q hq)L hL hKL S (fun z _ hz => (hS z).mpr hz) ⟨1, h1, splitWordMap_fixed_one w⟩ (by omega)((exponentMatrix w).det : ℝ) (by exact_mod_cast hB) _ ε hεintro z hzobtain ⟨hn, hr⟩ := (splitWordMap_fixed_zero_iff w z).mp ((hS z).mp hz)exact splitWordMap_fixed_det w z hn hrend EilenbergGaneaendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388import OAI.Topology.EilenbergGanea.IntegralDegreeimport OAI.Topology.EilenbergGanea.UnitaryWordsnamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiffnamespace EilenbergGaneaopen Set Filter Topologyopen scoped ContDiff/-- A concrete sublevel version of localized degree. The only root isolationconditions are a uniform radial bound and exclusion of the threshold; noregularity of any root or of the sublevel boundary is assumed. -/theorem localized_word_root_sublevel {m : ℕ}(w : Fin m → FreeGroup (Fin m)) (hB : (exponentMatrix w).det ≠ 0)(F : ℝ × ((Fin m → ℂ) × (Fin m → ℂ)) → ((Fin m → ℂ) × (Fin m → ℂ)))(hF : ContDiff ℝ 2 F) (hF0 : ∀ q, F (0, q) = splitWordMap w q)(h : ℝ × ((Fin m → ℂ) × (Fin m → ℂ)) → ℝ) (hh : Continuous h)(δ R : ℝ) (hR : ‖((1 : Fin m → ℂ), (0 : Fin m → ℂ))‖ < R)(h1 : h (0, (1, 0)) < δ)(hi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q, h (0, (q.1, z • q.2)) = h (0, q))(hbound : ∀ q, q.1 ∈ Icc (0 : ℝ) 1 → F q = 0 → ‖q.2‖ < R)(hiso : ∀ q, q.1 ∈ Icc (0 : ℝ) 1 → F q = 0 → h q ≠ δ) :∃ x, F (1, x) = 0 ∧ h (1, x) < δ := bylet E := (Fin m → ℂ) × (Fin m → ℂ)let C : Set (ℝ × E) := {q | ‖q.2‖ < R ∧ h q < δ}have hC : IsOpen C := (isOpen_lt continuous_snd.norm continuous_const).inter(isOpen_lt hh continuous_const)have hcl : closure C ⊆ {q | ‖q.2‖ ≤ R ∧ h q ≤ δ} :=closure_minimal (fun _ hq => ⟨hq.1.le, hq.2.le⟩)((isClosed_le continuous_snd.norm continuous_const).inter (isClosed_le hh continuous_const))have hslice (t : ℝ) : Bornology.IsBounded {x : E | (t, x) ∈ C} := byapply (Metric.isBounded_closedBall (x := (0 : E)) (r := R)).subsetintro x hxexact Metric.mem_closedBall.mpr (by simpa only [dist_zero_right] using hx.1.le)have hBcompact : IsCompact {q : ℝ × E | q ∈ frontier C ∧ q.1 ∈ Icc (0 : ℝ) 1} := byapply (isCompact_Icc.prod (isCompact_closedBall (0 : E) R)).of_isClosed_subset(isClosed_frontier.inter (isClosed_Icc.preimage continuous_fst))intro q hqrefine ⟨hq.2, ?_⟩exact Metric.mem_closedBall.mpr (by simpa only [dist_zero_right] using (hcl (frontier_subset_closure hq.1)).1)have hCb : Bornology.IsBounded {x : E | ∃ t ∈ Icc (0 : ℝ) 1, (t, x) ∈ C} := byapply (Metric.isBounded_closedBall (x := (0 : E)) (r := R)).subsetrintro x ⟨t, _, hx⟩exact Metric.mem_closedBall.mpr (by simpa only [dist_zero_right] using hx.1.le)have hUi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q ∈ closure {x : E | (0, x) ∈ C},(q.1, z • q.2) ∈ closure {x : E | (0, x) ∈ C} := byintro z hzhave hmaps : MapsTo (fun q : E => (q.1, z • q.2)) {x | (0, x) ∈ C} {x | (0, x) ∈ C} := byintro q hqrefine ⟨?_, ?_⟩· have hn : ‖(q.1, z • q.2)‖ = ‖q‖ := bychange max ‖q.1‖ ‖z • q.2‖ = max ‖q.1‖ ‖q.2‖rw [norm_smul, hz, one_mul]simpa only [hn] using hq.1· simpa only [hi z hz q] using hq.2have hr : Continuous (fun q : E => (q.1, z • q.2)) := by fun_propexact hmaps.closure_of_continuousOn hr.continuousOnhave hb : ∀ q ∈ frontier C, q.1 ∈ Icc (0 : ℝ) 1 → F q ≠ 0 := byintro q hq ht hfhave hhδ : h q < δ := lt_of_le_of_ne (hcl (frontier_subset_closure hq)).2 (hiso q ht hf)have hqC : q ∈ C := ⟨hbound q ht hf, hhδ⟩exact hq.2 (by simpa only [hC.interior_eq] using hqC)obtain ⟨x, hx, he⟩ := localized_word_root_persists_moving w hB F hF hF0 C hC(hslice 0).isCompact_closure (hslice 1).isCompact_closure hBcompact hCb hUi ⟨hR, h1⟩ hbexact ⟨x, he, hx.2⟩end EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyopen scoped Quaternion ContDiff/-- Word evaluation with a fixed alphabet of coefficient letters and a finitealphabet of unknowns. Coefficients may vary smoothly with a real parameter. -/def coefficientWordMap {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(q : ℝ × (Fin m → SU2)) : Fin d → SU2 :=fun i => FreeGroup.lift (Sum.elim (a q.1) q.2) (w i)def eraseCoefficients {ι : Type*} {m : ℕ} : FreeGroup (ι ⊕ Fin m) →* FreeGroup (Fin m) :=FreeGroup.lift (Sum.elim (fun _ => 1) FreeGroup.of)theorem coefficientWordMap_initial {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, a 0 i = 1) (x : Fin m → SU2) :coefficientWordMap w a (0, x) = fun i => FreeGroup.lift x (eraseCoefficients (w i)) := byhave he : FreeGroup.lift (Sum.elim (a 0) x) = (FreeGroup.lift x).comp eraseCoefficients := byapply FreeGroup.ext_homintro icases i with| inl i => simp [eraseCoefficients, ha]| inr i => simp [eraseCoefficients]funext iexact congrArg (fun f : FreeGroup (ι ⊕ Fin m) →* SU2 => f (w i)) he/-- The same conjugation-invariant radial cutoff handles arbitrary coefficientwords, and does not create roots on the coordinate hyperplanes. -/theorem radialCutoff_family_smooth {m : ℕ} {V : Type*}[NormedAddCommGroup V] [NormedSpace ℝ V](f : ℝ × (Fin m → ℍ) → V)(hf : ∀ q, (∀ i, q.2 i ≠ 0) → ContDiffAt ℝ ∞ f q) :ContDiff ℝ ∞ (fun q => radialCutoff q.2 • f q) := byrw [contDiff_iff_contDiffAt]intro qby_cases hq : ∀ i, q.2 i ≠ 0· exact (radialCutoff_contDiff.comp contDiff_snd).contDiffAt.smul (hf q hq)· push Not at hqobtain ⟨i, hi⟩ := hqapply (contDiffAt_const : ContDiffAt ℝ ∞ (fun _ : ℝ × (Fin m → ℍ) => (0 : V)) q).congr_of_eventuallyEqhave he : ∀ᶠ p in 𝓝 q, radialCutoff p.2 = 0 :=continuous_snd.continuousAt (radialCutoff_eventually_zero q.2 i hi)filter_upwards [he] with p hpsimp only [hp, zero_smul]theorem coefficientWordMap_normalized_smoothAt {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ)))(q : ℝ × (Fin m → ℍ)) (hq : ∀ i, q.2 i ≠ 0) :ContDiffAt ℝ ∞ (fun p : ℝ × (Fin m → ℍ) =>fun i => (coefficientWordMap w a (p.1, fun j => normalizeQuaternion (p.2 j)) i : ℍ)) q := byapply contDiffAt_pi.mprintro irefine freeGroup_lift_coe_contDiffAt (w i) q(fun parameter => Sum.elim (a parameter.1)(fun index => normalizeQuaternion (parameter.2 index))) ?_intro jcases j with| inl j => exact ((ha j).comp contDiff_fst).contDiffAt| inr j =>change ContDiffAt ℝ ∞ (fun p : ℝ × (Fin m → ℍ) => (normalizeQuaternion (p.2 j) : ℍ)) qexact (normalizeQuaternion_coe_contDiffAt (hq j)).comp (f := fun p : ℝ × (Fin m → ℍ) => p.2 j) q((contDiff_apply ℝ ℍ j).comp contDiff_snd).contDiffAtdef radialCoefficientWordMap {ι : Type*} {m : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(q : ℝ × (Fin m → ℍ)) : Fin m → ℍ :=fun i => ‖q.2 i‖ • (coefficientWordMap w a (q.1, fun j => normalizeQuaternion (q.2 j)) i : ℍ)def smoothRadialCoefficientWordMap {ι : Type*} {m : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(q : ℝ × (Fin m → ℍ)) : Fin m → ℍ :=radialCutoff q.2 • radialCoefficientWordMap w a qtheorem smoothRadialCoefficientWordMap_smooth {ι : Type*} {m : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ))) :ContDiff ℝ ∞ (smoothRadialCoefficientWordMap w a) := byapply radialCutoff_family_smoothintro q hqapply contDiffAt_pi.mprintro iexact (((contDiff_apply ℝ ℍ i).comp contDiff_snd).contDiffAt.norm ℝ (hq i)).smul((contDiffAt_pi.mp (coefficientWordMap_normalized_smoothAt w a ha q hq)) i)@[simp] theorem radialCoefficientWordMap_norm {ι : Type*} {m : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(q : ℝ × (Fin m → ℍ)) (i : Fin m) :‖radialCoefficientWordMap w a q i‖ = ‖q.2 i‖ := byhave h := (quaternion_mem_unitary_iff _).mp(coefficientWordMap w a (q.1, fun j => normalizeQuaternion (q.2 j)) i).propertysimp [radialCoefficientWordMap, norm_smul, h]theorem radialCoefficientWordMap_eq_one_iff {ι : Type*} {m : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(q : ℝ × (Fin m → ℍ)) : radialCoefficientWordMap w a q = 1 ↔(∀ i, ‖q.2 i‖ = 1) ∧ coefficientWordMap w a(q.1, fun j => normalizeQuaternion (q.2 j)) = 1 := byconstructor· intro hhave hn (i : Fin m) : ‖q.2 i‖ = 1 := byhave he := congrArg (fun y : Fin m → ℍ => ‖y i‖) hsimpa only [radialCoefficientWordMap_norm, Pi.one_apply, norm_one] using herefine ⟨hn, ?_⟩funext iapply Subtype.exthave he := congrFun h isimpa [radialCoefficientWordMap, hn] using he· rintro ⟨hn, hw⟩funext isimp [radialCoefficientWordMap, hn, hw]theorem smoothRadialCoefficientWordMap_eq_one_iff {ι : Type*} {m : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(q : ℝ × (Fin m → ℍ)) : smoothRadialCoefficientWordMap w a q = 1 ↔(∀ i, ‖q.2 i‖ = 1) ∧ coefficientWordMap w a(q.1, fun j => normalizeQuaternion (q.2 j)) = 1 := byrw [← radialCoefficientWordMap_eq_one_iff]constructor· intro hhave hn (i : Fin m) : radialCutoff q.2 * ‖q.2 i‖ = 1 := byhave he := congrArg (fun y : Fin m → ℍ => ‖y i‖) hsimpa only [smoothRadialCoefficientWordMap, Pi.smul_apply, norm_smul, Real.norm_eq_abs,abs_of_nonneg (radialCutoff_nonneg q.2), radialCoefficientWordMap_norm, Pi.one_apply, norm_one] using hehave hlarge (i : Fin m) : 1 ≤ ‖q.2 i‖ := byhave hle := mul_le_mul_of_nonneg_right (radialCutoff_le_one q.2) (norm_nonneg (q.2 i))rw [hn i, one_mul] at hleexact hlesimpa only [smoothRadialCoefficientWordMap, radialCutoff_eq_one q.2 hlarge, one_smul] using h· intro hhave hn := (radialCoefficientWordMap_eq_one_iff w a q).mp hsimp only [smoothRadialCoefficientWordMap, radialCutoff_eq_one q.2 (fun i => (hn.1 i).ge), one_smul, h]theorem smoothRadialCoefficientWordMap_initial {ι : Type*} {m : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, a 0 i = 1) (x : Fin m → ℍ) :smoothRadialCoefficientWordMap w a (0, x) =smoothRadialWordMap (fun i => eraseCoefficients (w i)) x := byunfold smoothRadialCoefficientWordMap smoothRadialWordMapcongr 1funext idsimp only [radialCoefficientWordMap, radialWordMap]rw [coefficientWordMap_initial w a ha]rflend EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyopen scoped Quaternion ContDiffdef cutoffCoefficientProducts {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(q : ℝ × (Fin m → ℍ)) : Fin d → ℍ :=radialCutoff q.2 • fun i =>(coefficientWordMap w a (q.1, fun j => normalizeQuaternion (q.2 j)) i : ℍ)theorem cutoffCoefficientProducts_smooth {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ))) :ContDiff ℝ ∞ (cutoffCoefficientProducts w a) :=radialCutoff_family_smooth _ (coefficientWordMap_normalized_smoothAt w a ha)theorem cutoffCoefficientProducts_unitary {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(t : ℝ) (x : Fin m → SU2) :cutoffCoefficientProducts w a (t, fun i => (x i : ℍ)) =fun i => (coefficientWordMap w a (t, x) i : ℍ) := byhave hn (i : Fin m) : ‖(x i : ℍ)‖ = 1 := (quaternion_mem_unitary_iff _).mp (x i).propertysimp only [cutoffCoefficientProducts, radialCutoff_eq_one _ (fun i => (hn i).ge), one_smul,normalizeQuaternion_unitary]end EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyopen scoped Quaternion ContDifftheorem quaternionConjugate_sub (a : SU2) (q r : ℍ) :quaternionConjugate a (q - r) = quaternionConjugate a q - quaternionConjugate a r := bysimp only [quaternionConjugate, mul_sub, sub_mul]theorem coefficientWordMap_initial_conjugate {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, a 0 i = 1) (b : SU2) (x : Fin m → SU2) :coefficientWordMap w a (0, fun i => b * x i * b⁻¹) =fun i => b * coefficientWordMap w a (0, x) i * b⁻¹ := byrw [coefficientWordMap_initial w a ha, coefficientWordMap_initial w a ha]have he : FreeGroup.lift (fun i => b * x i * b⁻¹) =(MulAut.conj b).toMonoidHom.comp (FreeGroup.lift x) := byapply FreeGroup.ext_homintro isimpfunext irw [he]rfltheorem cutoffCoefficientProducts_initial_conjugate {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, a 0 i = 1) (b : SU2) (x : Fin m → ℍ) :cutoffCoefficientProducts w a (0, fun i => quaternionConjugate b (x i)) =fun i => quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i) := byfunext isimp only [cutoffCoefficientProducts, radialCutoff, quaternionConjugate_norm,normalizeQuaternion_conjugate, coefficientWordMap_initial_conjugate w a ha,Pi.smul_apply, quaternionConjugate_smul, quaternionConjugate_coe]theorem cutoffCoefficientProducts_initial_size_invariant {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, a 0 i = 1) (b : SU2) (x : Fin m → ℍ) :‖cutoffCoefficientProducts w a (0, fun i => quaternionConjugate b (x i)) - 1‖ =‖cutoffCoefficientProducts w a (0, x) - 1‖ := byrw [cutoffCoefficientProducts_initial_conjugate w a ha]have hn (i : Fin d) : ‖quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i) - 1‖ =‖cutoffCoefficientProducts w a (0, x) i - 1‖ := bycalc_ = ‖quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i - 1)‖ := by rw [quaternionConjugate_sub, quaternionConjugate_one]_ = _ := quaternionConjugate_norm _ _have hnn (i : Fin d) : ‖quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i) - 1‖₊ =‖cutoffCoefficientProducts w a (0, x) i - 1‖₊ := NNReal.eq (hn i)simp only [Pi.norm_def, Pi.sub_apply, Pi.one_apply, hnn]/-- Finite-word-system solvability with an actual distinguished-word sublevelisolator. Arbitrarily singular initial word roots are allowed. -/theorem coefficient_word_sublevel_solvable {ι : Type*} {m d : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (ρ : Fin d → FreeGroup (ι ⊕ Fin m))(a : ℝ → ι → SU2) (ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ)))(ha0 : ∀ i, a 0 i = 1)(hB : (exponentMatrix (fun i => eraseCoefficients (w i))).det ≠ 0)(δ : ℝ) (hδ : 0 < δ)(hiso : ∀ t ∈ Icc (0 : ℝ) 1, ∀ x : Fin m → SU2,coefficientWordMap w a (t, x) = 1 →‖(fun i => (coefficientWordMap ρ a (t, x) i : ℍ)) - 1‖ ≠ δ) :∃ x : Fin m → SU2, coefficientWordMap w a (1, x) = 1 ∧‖(fun i => (coefficientWordMap ρ a (1, x) i : ℍ)) - 1‖ < δ := bylet E := (Fin m → ℂ) × (Fin m → ℂ)let e : (Fin m → ℍ) ≃L[ℝ] E := quaternionTupleCoordinateslet H : ℝ × E → ℝ × (Fin m → ℍ) := fun q => (q.1, e.symm q.2)have hH : ContDiff ℝ ∞ H := contDiff_fst.prodMk (e.symm.contDiff.comp contDiff_snd)let F : ℝ × E → E := fun q => e (smoothRadialCoefficientWordMap w a (H q)) - (1, 0)let h : ℝ × E → ℝ := fun q => ‖cutoffCoefficientProducts ρ a (H q) - 1‖have hF : ContDiff ℝ 2 F := contDiff_infty.mp((e.contDiff.comp ((smoothRadialCoefficientWordMap_smooth w a ha).comp hH)).sub contDiff_const) 2have hF0 : ∀ q, F (0, q) = splitWordMap (fun i => eraseCoefficients (w i)) q := byintro qdsimp only [F, H]rw [smoothRadialCoefficientWordMap_initial w a ha0]rflhave hh : Continuous h := (((cutoffCoefficientProducts_smooth ρ a ha).comp hH).continuous.sub continuous_const).normhave he1 : e (1 : Fin m → ℍ) = (1, 0) := bychange quaternionTupleCoordinates(fun _ : Fin m => Quaternion.ofComplex (1 : ℂ)) = _exact quaternionTupleCoordinates_fixed 1have hroot (q : ℝ × E) (hq : F q = 0) :(∀ i, ‖e.symm q.2 i‖ = 1) ∧coefficientWordMap w a (q.1, fun i => normalizeQuaternion (e.symm q.2 i)) = 1 := byapply (smoothRadialCoefficientWordMap_eq_one_iff w a (H q)).mpapply e.injectiverw [he1]exact sub_eq_zero.mp hqhave hnorm (q : ℝ × E) (hq : F q = 0) : ‖q.2‖ ≤ ‖e.toContinuousLinearMap‖ := byhave hle : ‖e.symm q.2‖ ≤ 1 := (pi_norm_le_iff_of_nonneg (by positivity)).mpr(fun i => (hroot q hq).1 i |>.le)calc‖q.2‖ = ‖e (e.symm q.2)‖ := by rw [e.apply_symm_apply]_ ≤ ‖e.toContinuousLinearMap‖ * ‖e.symm q.2‖ := e.toContinuousLinearMap.le_opNorm __ ≤ ‖e.toContinuousLinearMap‖ := mul_le_of_le_one_right (norm_nonneg e.toContinuousLinearMap) hlehave hunit (q : ℝ × E) (hq : F q = 0) :(fun i => ((normalizeQuaternion (e.symm q.2 i) : SU2) : ℍ)) = e.symm q.2 := byfunext ihave hn := (hroot q hq).1 irw [normalizeQuaternion_coe_of_ne_zero (by intro hz; simp [hz] at hn), hn, inv_one, one_smul]have hsizeroot (q : ℝ × E) (hq : F q = 0) :h q = ‖(fun i => (coefficientWordMap ρ a(q.1, fun j => normalizeQuaternion (e.symm q.2 j)) i : ℍ)) - 1‖ := bydsimp only [h, H]conv_lhs => rw [← hunit q hq, cutoffCoefficientProducts_unitary]have hi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q : E, h (0, (q.1, z • q.2)) = h (0, q) := byintro z hz qobtain ⟨c, hc⟩ := circle_exists_square_root z hzhave heq : e.symm (q.1, z • q.2) =fun i => quaternionConjugate (circleQuaternion c) (e.symm q i) := byapply e.injectiverw [e.apply_symm_apply, quaternionTupleCoordinates_conjCircle, hc, e.apply_symm_apply]dsimp only [h, H]rw [heq]exact cutoffCoefficientProducts_initial_size_invariant ρ a ha0 _ _have h1 : h (0, (1, 0)) < δ := byhave he : e.symm (1, 0) = 1 := by rw [← he1, e.symm_apply_apply]have hp : coefficientWordMap ρ a (0, (1 : Fin m → SU2)) = 1 := byrw [coefficientWordMap_initial ρ a ha0]have hl : FreeGroup.lift (1 : Fin m → SU2) = 1 := byapply FreeGroup.ext_homintro isimpfunext irw [hl]rfldsimp only [h, H]rw [he]have hco : (1 : Fin m → ℍ) = fun i => ((1 : Fin m → SU2) i : ℍ) := rflrw [hco, cutoffCoefficientProducts_unitary, hp]change ‖(1 : Fin d → ℍ) - 1‖ < δsimpa only [sub_self, norm_zero] using hδlet R : ℝ := ‖e.toContinuousLinearMap‖ + ‖((1 : Fin m → ℂ), (0 : Fin m → ℂ))‖ + 1obtain ⟨q, hq, hhq⟩ := localized_word_root_sublevel(fun i => eraseCoefficients (w i)) hB F hF hF0 h hh δ R(by dsimp only [R]; have hn := norm_nonneg e.toContinuousLinearMap; linarith) h1 hi(fun q _ hq => by dsimp only [R]; have hn := hnorm q hq; have hp := norm_nonneg ((1 : Fin m → ℂ), (0 : Fin m → ℂ)); linarith)(fun q ht hq => by rw [hsizeroot q hq]; exact hiso q.1 ht _ (hroot q hq).2)refine ⟨fun i => normalizeQuaternion (e.symm q i), (hroot (1, q) hq).2, ?_⟩simpa only [hsizeroot (1, q) hq] using hhqend EilenbergGaneaendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388import OAI.Topology.EilenbergGanea.IntegralDegreeimport OAI.Topology.EilenbergGanea.UnitaryWordsnamespace OAInoncomputable sectionopen Classical Set Filter Topology MeasureTheoryopen scoped Quaternion ContDiffnamespace EilenbergGaneaopen Set Filter Topologyopen scoped ContDiff/-- A concrete sublevel version of localized degree. The only root isolationconditions are a uniform radial bound and exclusion of the threshold; noregularity of any root or of the sublevel boundary is assumed. -/theorem localized_word_root_sublevel {m : ℕ}(w : Fin m → FreeGroup (Fin m)) (hB : (exponentMatrix w).det ≠ 0)(F : ℝ × ((Fin m → ℂ) × (Fin m → ℂ)) → ((Fin m → ℂ) × (Fin m → ℂ)))(hF : ContDiff ℝ 2 F) (hF0 : ∀ q, F (0, q) = splitWordMap w q)(h : ℝ × ((Fin m → ℂ) × (Fin m → ℂ)) → ℝ) (hh : Continuous h)(δ R : ℝ) (hR : ‖((1 : Fin m → ℂ), (0 : Fin m → ℂ))‖ < R)(h1 : h (0, (1, 0)) < δ)(hi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q, h (0, (q.1, z • q.2)) = h (0, q))(hbound : ∀ q, q.1 ∈ Icc (0 : ℝ) 1 → F q = 0 → ‖q.2‖ < R)(hiso : ∀ q, q.1 ∈ Icc (0 : ℝ) 1 → F q = 0 → h q ≠ δ) :∃ x, F (1, x) = 0 ∧ h (1, x) < δ := bylet E := (Fin m → ℂ) × (Fin m → ℂ)let C : Set (ℝ × E) := {q | ‖q.2‖ < R ∧ h q < δ}have hC : IsOpen C := (isOpen_lt continuous_snd.norm continuous_const).inter(isOpen_lt hh continuous_const)have hcl : closure C ⊆ {q | ‖q.2‖ ≤ R ∧ h q ≤ δ} :=closure_minimal (fun _ hq => ⟨hq.1.le, hq.2.le⟩)((isClosed_le continuous_snd.norm continuous_const).inter (isClosed_le hh continuous_const))have hslice (t : ℝ) : Bornology.IsBounded {x : E | (t, x) ∈ C} := byapply (Metric.isBounded_closedBall (x := (0 : E)) (r := R)).subsetintro x hxexact Metric.mem_closedBall.mpr (by simpa only [dist_zero_right] using hx.1.le)have hBcompact : IsCompact {q : ℝ × E | q ∈ frontier C ∧ q.1 ∈ Icc (0 : ℝ) 1} := byapply (isCompact_Icc.prod (isCompact_closedBall (0 : E) R)).of_isClosed_subset(isClosed_frontier.inter (isClosed_Icc.preimage continuous_fst))intro q hqrefine ⟨hq.2, ?_⟩exact Metric.mem_closedBall.mpr (by simpa only [dist_zero_right] using (hcl (frontier_subset_closure hq.1)).1)have hCb : Bornology.IsBounded {x : E | ∃ t ∈ Icc (0 : ℝ) 1, (t, x) ∈ C} := byapply (Metric.isBounded_closedBall (x := (0 : E)) (r := R)).subsetrintro x ⟨t, _, hx⟩exact Metric.mem_closedBall.mpr (by simpa only [dist_zero_right] using hx.1.le)have hUi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q ∈ closure {x : E | (0, x) ∈ C},(q.1, z • q.2) ∈ closure {x : E | (0, x) ∈ C} := byintro z hzhave hmaps : MapsTo (fun q : E => (q.1, z • q.2)) {x | (0, x) ∈ C} {x | (0, x) ∈ C} := byintro q hqrefine ⟨?_, ?_⟩· have hn : ‖(q.1, z • q.2)‖ = ‖q‖ := bychange max ‖q.1‖ ‖z • q.2‖ = max ‖q.1‖ ‖q.2‖rw [norm_smul, hz, one_mul]simpa only [hn] using hq.1· simpa only [hi z hz q] using hq.2have hr : Continuous (fun q : E => (q.1, z • q.2)) := by fun_propexact hmaps.closure_of_continuousOn hr.continuousOnhave hb : ∀ q ∈ frontier C, q.1 ∈ Icc (0 : ℝ) 1 → F q ≠ 0 := byintro q hq ht hfhave hhδ : h q < δ := lt_of_le_of_ne (hcl (frontier_subset_closure hq)).2 (hiso q ht hf)have hqC : q ∈ C := ⟨hbound q ht hf, hhδ⟩exact hq.2 (by simpa only [hC.interior_eq] using hqC)obtain ⟨x, hx, he⟩ := localized_word_root_persists_moving w hB F hF hF0 C hC(hslice 0).isCompact_closure (hslice 1).isCompact_closure hBcompact hCb hUi ⟨hR, h1⟩ hbexact ⟨x, he, hx.2⟩end EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyopen scoped Quaternion ContDiff/-- Word evaluation with a fixed alphabet of coefficient letters and a finitealphabet of unknowns. Coefficients may vary smoothly with a real parameter. -/def coefficientWordMap {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(q : ℝ × (Fin m → SU2)) : Fin d → SU2 :=fun i => FreeGroup.lift (Sum.elim (a q.1) q.2) (w i)def eraseCoefficients {ι : Type*} {m : ℕ} : FreeGroup (ι ⊕ Fin m) →* FreeGroup (Fin m) :=FreeGroup.lift (Sum.elim (fun _ => 1) FreeGroup.of)theorem coefficientWordMap_initial {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, a 0 i = 1) (x : Fin m → SU2) :coefficientWordMap w a (0, x) = fun i => FreeGroup.lift x (eraseCoefficients (w i)) := byhave he : FreeGroup.lift (Sum.elim (a 0) x) = (FreeGroup.lift x).comp eraseCoefficients := byapply FreeGroup.ext_homintro icases i with| inl i => simp [eraseCoefficients, ha]| inr i => simp [eraseCoefficients]funext iexact congrArg (fun f : FreeGroup (ι ⊕ Fin m) →* SU2 => f (w i)) he/-- The same conjugation-invariant radial cutoff handles arbitrary coefficientwords, and does not create roots on the coordinate hyperplanes. -/theorem radialCutoff_family_smooth {m : ℕ} {V : Type*}[NormedAddCommGroup V] [NormedSpace ℝ V](f : ℝ × (Fin m → ℍ) → V)(hf : ∀ q, (∀ i, q.2 i ≠ 0) → ContDiffAt ℝ ∞ f q) :ContDiff ℝ ∞ (fun q => radialCutoff q.2 • f q) := byrw [contDiff_iff_contDiffAt]intro qby_cases hq : ∀ i, q.2 i ≠ 0· exact (radialCutoff_contDiff.comp contDiff_snd).contDiffAt.smul (hf q hq)· push Not at hqobtain ⟨i, hi⟩ := hqapply (contDiffAt_const : ContDiffAt ℝ ∞ (fun _ : ℝ × (Fin m → ℍ) => (0 : V)) q).congr_of_eventuallyEqhave he : ∀ᶠ p in 𝓝 q, radialCutoff p.2 = 0 :=continuous_snd.continuousAt (radialCutoff_eventually_zero q.2 i hi)filter_upwards [he] with p hpsimp only [hp, zero_smul]theorem coefficientWordMap_normalized_smoothAt {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ)))(q : ℝ × (Fin m → ℍ)) (hq : ∀ i, q.2 i ≠ 0) :ContDiffAt ℝ ∞ (fun p : ℝ × (Fin m → ℍ) =>fun i => (coefficientWordMap w a (p.1, fun j => normalizeQuaternion (p.2 j)) i : ℍ)) q := byapply contDiffAt_pi.mprintro irefine freeGroup_lift_coe_contDiffAt (w i) q(fun parameter => Sum.elim (a parameter.1)(fun index => normalizeQuaternion (parameter.2 index))) ?_intro jcases j with| inl j => exact ((ha j).comp contDiff_fst).contDiffAt| inr j =>change ContDiffAt ℝ ∞ (fun p : ℝ × (Fin m → ℍ) => (normalizeQuaternion (p.2 j) : ℍ)) qexact (normalizeQuaternion_coe_contDiffAt (hq j)).comp (f := fun p : ℝ × (Fin m → ℍ) => p.2 j) q((contDiff_apply ℝ ℍ j).comp contDiff_snd).contDiffAtdef radialCoefficientWordMap {ι : Type*} {m : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(q : ℝ × (Fin m → ℍ)) : Fin m → ℍ :=fun i => ‖q.2 i‖ • (coefficientWordMap w a (q.1, fun j => normalizeQuaternion (q.2 j)) i : ℍ)def smoothRadialCoefficientWordMap {ι : Type*} {m : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(q : ℝ × (Fin m → ℍ)) : Fin m → ℍ :=radialCutoff q.2 • radialCoefficientWordMap w a qtheorem smoothRadialCoefficientWordMap_smooth {ι : Type*} {m : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ))) :ContDiff ℝ ∞ (smoothRadialCoefficientWordMap w a) := byapply radialCutoff_family_smoothintro q hqapply contDiffAt_pi.mprintro iexact (((contDiff_apply ℝ ℍ i).comp contDiff_snd).contDiffAt.norm ℝ (hq i)).smul((contDiffAt_pi.mp (coefficientWordMap_normalized_smoothAt w a ha q hq)) i)@[simp] theorem radialCoefficientWordMap_norm {ι : Type*} {m : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(q : ℝ × (Fin m → ℍ)) (i : Fin m) :‖radialCoefficientWordMap w a q i‖ = ‖q.2 i‖ := byhave h := (quaternion_mem_unitary_iff _).mp(coefficientWordMap w a (q.1, fun j => normalizeQuaternion (q.2 j)) i).propertysimp [radialCoefficientWordMap, norm_smul, h]theorem radialCoefficientWordMap_eq_one_iff {ι : Type*} {m : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(q : ℝ × (Fin m → ℍ)) : radialCoefficientWordMap w a q = 1 ↔(∀ i, ‖q.2 i‖ = 1) ∧ coefficientWordMap w a(q.1, fun j => normalizeQuaternion (q.2 j)) = 1 := byconstructor· intro hhave hn (i : Fin m) : ‖q.2 i‖ = 1 := byhave he := congrArg (fun y : Fin m → ℍ => ‖y i‖) hsimpa only [radialCoefficientWordMap_norm, Pi.one_apply, norm_one] using herefine ⟨hn, ?_⟩funext iapply Subtype.exthave he := congrFun h isimpa [radialCoefficientWordMap, hn] using he· rintro ⟨hn, hw⟩funext isimp [radialCoefficientWordMap, hn, hw]theorem smoothRadialCoefficientWordMap_eq_one_iff {ι : Type*} {m : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(q : ℝ × (Fin m → ℍ)) : smoothRadialCoefficientWordMap w a q = 1 ↔(∀ i, ‖q.2 i‖ = 1) ∧ coefficientWordMap w a(q.1, fun j => normalizeQuaternion (q.2 j)) = 1 := byrw [← radialCoefficientWordMap_eq_one_iff]constructor· intro hhave hn (i : Fin m) : radialCutoff q.2 * ‖q.2 i‖ = 1 := byhave he := congrArg (fun y : Fin m → ℍ => ‖y i‖) hsimpa only [smoothRadialCoefficientWordMap, Pi.smul_apply, norm_smul, Real.norm_eq_abs,abs_of_nonneg (radialCutoff_nonneg q.2), radialCoefficientWordMap_norm, Pi.one_apply, norm_one] using hehave hlarge (i : Fin m) : 1 ≤ ‖q.2 i‖ := byhave hle := mul_le_mul_of_nonneg_right (radialCutoff_le_one q.2) (norm_nonneg (q.2 i))rw [hn i, one_mul] at hleexact hlesimpa only [smoothRadialCoefficientWordMap, radialCutoff_eq_one q.2 hlarge, one_smul] using h· intro hhave hn := (radialCoefficientWordMap_eq_one_iff w a q).mp hsimp only [smoothRadialCoefficientWordMap, radialCutoff_eq_one q.2 (fun i => (hn.1 i).ge), one_smul, h]theorem smoothRadialCoefficientWordMap_initial {ι : Type*} {m : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, a 0 i = 1) (x : Fin m → ℍ) :smoothRadialCoefficientWordMap w a (0, x) =smoothRadialWordMap (fun i => eraseCoefficients (w i)) x := byunfold smoothRadialCoefficientWordMap smoothRadialWordMapcongr 1funext idsimp only [radialCoefficientWordMap, radialWordMap]rw [coefficientWordMap_initial w a ha]rflend EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyopen scoped Quaternion ContDiffdef cutoffCoefficientProducts {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(q : ℝ × (Fin m → ℍ)) : Fin d → ℍ :=radialCutoff q.2 • fun i =>(coefficientWordMap w a (q.1, fun j => normalizeQuaternion (q.2 j)) i : ℍ)theorem cutoffCoefficientProducts_smooth {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ))) :ContDiff ℝ ∞ (cutoffCoefficientProducts w a) :=radialCutoff_family_smooth _ (coefficientWordMap_normalized_smoothAt w a ha)theorem cutoffCoefficientProducts_unitary {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(t : ℝ) (x : Fin m → SU2) :cutoffCoefficientProducts w a (t, fun i => (x i : ℍ)) =fun i => (coefficientWordMap w a (t, x) i : ℍ) := byhave hn (i : Fin m) : ‖(x i : ℍ)‖ = 1 := (quaternion_mem_unitary_iff _).mp (x i).propertysimp only [cutoffCoefficientProducts, radialCutoff_eq_one _ (fun i => (hn i).ge), one_smul,normalizeQuaternion_unitary]end EilenbergGaneanamespace EilenbergGaneaopen Set Filter Topologyopen scoped Quaternion ContDifftheorem quaternionConjugate_sub (a : SU2) (q r : ℍ) :quaternionConjugate a (q - r) = quaternionConjugate a q - quaternionConjugate a r := bysimp only [quaternionConjugate, mul_sub, sub_mul]theorem coefficientWordMap_initial_conjugate {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, a 0 i = 1) (b : SU2) (x : Fin m → SU2) :coefficientWordMap w a (0, fun i => b * x i * b⁻¹) =fun i => b * coefficientWordMap w a (0, x) i * b⁻¹ := byrw [coefficientWordMap_initial w a ha, coefficientWordMap_initial w a ha]have he : FreeGroup.lift (fun i => b * x i * b⁻¹) =(MulAut.conj b).toMonoidHom.comp (FreeGroup.lift x) := byapply FreeGroup.ext_homintro isimpfunext irw [he]rfltheorem cutoffCoefficientProducts_initial_conjugate {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, a 0 i = 1) (b : SU2) (x : Fin m → ℍ) :cutoffCoefficientProducts w a (0, fun i => quaternionConjugate b (x i)) =fun i => quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i) := byfunext isimp only [cutoffCoefficientProducts, radialCutoff, quaternionConjugate_norm,normalizeQuaternion_conjugate, coefficientWordMap_initial_conjugate w a ha,Pi.smul_apply, quaternionConjugate_smul, quaternionConjugate_coe]theorem cutoffCoefficientProducts_initial_size_invariant {ι : Type*} {m d : ℕ}(w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)(ha : ∀ i, a 0 i = 1) (b : SU2) (x : Fin m → ℍ) :‖cutoffCoefficientProducts w a (0, fun i => quaternionConjugate b (x i)) - 1‖ =‖cutoffCoefficientProducts w a (0, x) - 1‖ := byrw [cutoffCoefficientProducts_initial_conjugate w a ha]have hn (i : Fin d) : ‖quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i) - 1‖ =‖cutoffCoefficientProducts w a (0, x) i - 1‖ := bycalc_ = ‖quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i - 1)‖ := by rw [quaternionConjugate_sub, quaternionConjugate_one]_ = _ := quaternionConjugate_norm _ _have hnn (i : Fin d) : ‖quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i) - 1‖₊ =‖cutoffCoefficientProducts w a (0, x) i - 1‖₊ := NNReal.eq (hn i)simp only [Pi.norm_def, Pi.sub_apply, Pi.one_apply, hnn]/-- Finite-word-system solvability with an actual distinguished-word sublevelisolator. Arbitrarily singular initial word roots are allowed. -/theorem coefficient_word_sublevel_solvable {ι : Type*} {m d : ℕ}(w : Fin m → FreeGroup (ι ⊕ Fin m)) (ρ : Fin d → FreeGroup (ι ⊕ Fin m))(a : ℝ → ι → SU2) (ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ)))(ha0 : ∀ i, a 0 i = 1)(hB : (exponentMatrix (fun i => eraseCoefficients (w i))).det ≠ 0)(δ : ℝ) (hδ : 0 < δ)(hiso : ∀ t ∈ Icc (0 : ℝ) 1, ∀ x : Fin m → SU2,coefficientWordMap w a (t, x) = 1 →‖(fun i => (coefficientWordMap ρ a (t, x) i : ℍ)) - 1‖ ≠ δ) :∃ x : Fin m → SU2, coefficientWordMap w a (1, x) = 1 ∧‖(fun i => (coefficientWordMap ρ a (1, x) i : ℍ)) - 1‖ < δ := bylet E := (Fin m → ℂ) × (Fin m → ℂ)let e : (Fin m → ℍ) ≃L[ℝ] E := quaternionTupleCoordinateslet H : ℝ × E → ℝ × (Fin m → ℍ) := fun q => (q.1, e.symm q.2)have hH : ContDiff ℝ ∞ H := contDiff_fst.prodMk (e.symm.contDiff.comp contDiff_snd)let F : ℝ × E → E := fun q => e (smoothRadialCoefficientWordMap w a (H q)) - (1, 0)let h : ℝ × E → ℝ := fun q => ‖cutoffCoefficientProducts ρ a (H q) - 1‖have hF : ContDiff ℝ 2 F := contDiff_infty.mp((e.contDiff.comp ((smoothRadialCoefficientWordMap_smooth w a ha).comp hH)).sub contDiff_const) 2have hF0 : ∀ q, F (0, q) = splitWordMap (fun i => eraseCoefficients (w i)) q := byintro qdsimp only [F, H]rw [smoothRadialCoefficientWordMap_initial w a ha0]rflhave hh : Continuous h := (((cutoffCoefficientProducts_smooth ρ a ha).comp hH).continuous.sub continuous_const).normhave he1 : e (1 : Fin m → ℍ) = (1, 0) := bychange quaternionTupleCoordinates(fun _ : Fin m => Quaternion.ofComplex (1 : ℂ)) = _exact quaternionTupleCoordinates_fixed 1have hroot (q : ℝ × E) (hq : F q = 0) :(∀ i, ‖e.symm q.2 i‖ = 1) ∧coefficientWordMap w a (q.1, fun i => normalizeQuaternion (e.symm q.2 i)) = 1 := byapply (smoothRadialCoefficientWordMap_eq_one_iff w a (H q)).mpapply e.injectiverw [he1]exact sub_eq_zero.mp hqhave hnorm (q : ℝ × E) (hq : F q = 0) : ‖q.2‖ ≤ ‖e.toContinuousLinearMap‖ := byhave hle : ‖e.symm q.2‖ ≤ 1 := (pi_norm_le_iff_of_nonneg (by positivity)).mpr(fun i => (hroot q hq).1 i |>.le)calc‖q.2‖ = ‖e (e.symm q.2)‖ := by rw [e.apply_symm_apply]_ ≤ ‖e.toContinuousLinearMap‖ * ‖e.symm q.2‖ := e.toContinuousLinearMap.le_opNorm __ ≤ ‖e.toContinuousLinearMap‖ := mul_le_of_le_one_right (norm_nonneg e.toContinuousLinearMap) hlehave hunit (q : ℝ × E) (hq : F q = 0) :(fun i => ((normalizeQuaternion (e.symm q.2 i) : SU2) : ℍ)) = e.symm q.2 := byfunext ihave hn := (hroot q hq).1 irw [normalizeQuaternion_coe_of_ne_zero (by intro hz; simp [hz] at hn), hn, inv_one, one_smul]have hsizeroot (q : ℝ × E) (hq : F q = 0) :h q = ‖(fun i => (coefficientWordMap ρ a(q.1, fun j => normalizeQuaternion (e.symm q.2 j)) i : ℍ)) - 1‖ := bydsimp only [h, H]conv_lhs => rw [← hunit q hq, cutoffCoefficientProducts_unitary]have hi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q : E, h (0, (q.1, z • q.2)) = h (0, q) := byintro z hz qobtain ⟨c, hc⟩ := circle_exists_square_root z hzhave heq : e.symm (q.1, z • q.2) =fun i => quaternionConjugate (circleQuaternion c) (e.symm q i) := byapply e.injectiverw [e.apply_symm_apply, quaternionTupleCoordinates_conjCircle, hc, e.apply_symm_apply]dsimp only [h, H]rw [heq]exact cutoffCoefficientProducts_initial_size_invariant ρ a ha0 _ _have h1 : h (0, (1, 0)) < δ := byhave he : e.symm (1, 0) = 1 := by rw [← he1, e.symm_apply_apply]have hp : coefficientWordMap ρ a (0, (1 : Fin m → SU2)) = 1 := byrw [coefficientWordMap_initial ρ a ha0]have hl : FreeGroup.lift (1 : Fin m → SU2) = 1 := byapply FreeGroup.ext_homintro isimpfunext irw [hl]rfldsimp only [h, H]rw [he]have hco : (1 : Fin m → ℍ) = fun i => ((1 : Fin m → SU2) i : ℍ) := rflrw [hco, cutoffCoefficientProducts_unitary, hp]change ‖(1 : Fin d → ℍ) - 1‖ < δsimpa only [sub_self, norm_zero] using hδlet R : ℝ := ‖e.toContinuousLinearMap‖ + ‖((1 : Fin m → ℂ), (0 : Fin m → ℂ))‖ + 1obtain ⟨q, hq, hhq⟩ := localized_word_root_sublevel(fun i => eraseCoefficients (w i)) hB F hF hF0 h hh δ R(by dsimp only [R]; have hn := norm_nonneg e.toContinuousLinearMap; linarith) h1 hi(fun q _ hq => by dsimp only [R]; have hn := hnorm q hq; have hp := norm_nonneg ((1 : Fin m → ℂ), (0 : Fin m → ℂ)); linarith)(fun q ht hq => by rw [hsizeroot q hq]; exact hiso q.1 ht _ (hroot q hq).2)refine ⟨fun i => normalizeQuaternion (e.symm q i), (hroot (1, q) hq).2, ?_⟩simpa only [hsizeroot (1, q) hq] using hhqend EilenbergGaneaendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852import OAI.LinearAlgebra.RankMatching.Basicnamespace OAInoncomputable sectionopen scoped BigOperators nonZeroDivisorsopen LinearMap Submoduleopen CategoryTheory CategoryTheory.Limits HomologicalComplexnamespace HahnWilson.PivotTopologyopen HahnSeriesopen scoped BigOperators Topologyvariable {k : Type*} [Field k]def poleLattice (J : ℤ) : Submodule k (LaurentSeries k) wherecarrier := {f | ∀ i : ℤ, J < i → f.coeff (-i) = 0}zero_mem' := by simpadd_mem' hf hg i hi := by simp [hf i hi, hg i hi]smul_mem' c f hf i hi := by simp [hf i hi]def monomial (j : ℤ) : LaurentSeries k := HahnSeries.single (-j) 1def PreservesPoles (a : LaurentSeries k →ₗ[k] LaurentSeries k) : Prop :=∀ J, ∀ f ∈ poleLattice (k := k) J, a f ∈ poleLattice (k := k) Jdef matrixOf (a : LaurentSeries k →ₗ[k] LaurentSeries k) : Matrix ℤ ℤ k :=fun l j => (a (monomial j)).coeff (-l)def HasLeadingTerm (f : LaurentSeries k) (j : ℤ) : Prop :=f ∈ poleLattice (k := k) j ∧ f.coeff (-j) = 1def HasLeadingPosition (f : LaurentSeries k) (j : ℤ) : Prop :=f ∈ poleLattice (k := k) j ∧ f.coeff (-j) ≠ 0def crossing (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) : Set (ℤ × ℤ) :={p | RankMatching.Matched (matrixOf a) p.1 p.2 ∧ p.1 ≤ J ∧ J < p.2}def crossingQuotient (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :=↥(LinearMap.range a ⊓ poleLattice (k := k) J) ⧸Submodule.comap (LinearMap.range a ⊓ poleLattice (k := k) J).subtype((poleLattice (k := k) J).map a)instance crossingQuotient_addCommGroup (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :AddCommGroup (crossingQuotient a J) := byunfold crossingQuotientinfer_instanceinstance crossingQuotient_module (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :Module k (crossingQuotient a J) := byunfold crossingQuotientinfer_instance@[simp] lemma mem_poleLattice (J : ℤ) (f : LaurentSeries k) :f ∈ poleLattice J ↔ ∀ i : ℤ, J < i → f.coeff (-i) = 0 := Iff.rfllemma poleLattice_mono {I J : ℤ} (h : I ≤ J) :poleLattice (k := k) I ≤ poleLattice J := byintro f hf i hiexact hf i (lt_of_le_of_lt h hi)@[simp] lemma coeff_monomial (j i : ℤ) :(monomial (k := k) j).coeff (-i) = if i = j then 1 else 0 := bysimp [monomial, HahnSeries.coeff_single]lemma monomial_mem {j J : ℤ} (h : j ≤ J) : monomial (k := k) j ∈ poleLattice J := byintro i hisimp [show i ≠ j by omega]lemma exists_poleLattice (f : LaurentSeries k) : ∃ J, f ∈ poleLattice J := byrefine ⟨-f.order, ?_⟩intro i hiexact HahnSeries.coeff_eq_zero_of_lt_order (by omega)lemma matrixOf_triangular (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) : RankMatching.Triangular (matrixOf a) := byintro l j hexact ha j (monomial j) (monomial_mem le_rfl) l hdef truncate (f : LaurentSeries k) (L J : ℤ) : LaurentSeries k :=∑ c ∈ Finset.Icc L J, f.coeff (-c) • monomial clemma coeff_truncate (f : LaurentSeries k) (L J i : ℤ) :(truncate f L J).coeff (-i) = if L ≤ i ∧ i ≤ J then f.coeff (-i) else 0 := byclassicalsimp [truncate, HahnSeries.coeff_sum, HahnSeries.coeff_smul, smul_eq_mul,mul_ite]lemma truncate_mem (f : LaurentSeries k) (L J : ℤ) : truncate f L J ∈ poleLattice J := byintro i hirw [coeff_truncate, ite_eq_right (by omega)]lemma sub_truncate_mem {f : LaurentSeries k} {L J : ℤ} (hf : f ∈ poleLattice J) :f - truncate f L J ∈ poleLattice (L - 1) := byintro i hirw [HahnSeries.coeff_sub, coeff_truncate]by_cases hij : i ≤ J· rw [ite_eq_left (by omega), sub_self]· rw [ite_eq_right (by omega), sub_zero, hf i (by omega)]def poleProjection (L : ℤ) : LaurentSeries k →ₗ[k] (ℤ → k) wheretoFun f i := if L ≤ i then f.coeff (-i) else 0map_add' f g := by ext i; by_cases hi : L ≤ i <;> simp [hi]map_smul' c f := by ext i; by_cases hi : L ≤ i <;> simp [hi]lemma poleProjection_eq_zero {L : ℤ} {f : LaurentSeries k} :poleProjection L f = 0 ↔ f ∈ poleLattice (L - 1) := byconstructor· intro h i hihave := congrFun h isimpa [poleProjection, show L ≤ i by omega] using this· intro hext iby_cases hi : L ≤ i· simp [poleProjection, hi, h i (by omega)]· simp [poleProjection, hi]@[simp] lemma poleProjection_monomial_image(a : LaurentSeries k →ₗ[k] LaurentSeries k) (L j : ℤ) :poleProjection L (a (monomial j)) = RankMatching.column (matrixOf a) L j := rfllemma poleProjection_truncate_image (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) {f : LaurentSeries k} {L J : ℤ}(hf : f ∈ poleLattice J) :poleProjection L (a (truncate f L J)) = poleProjection L (a f) := byhave h := (poleProjection_eq_zero).mpr (ha (L - 1) _ (sub_truncate_mem hf))rw [map_sub, map_sub, sub_eq_zero] at hexact h.symmlemma columnSpace_eq_projectedImage (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) (L J : ℤ) :RankMatching.columnSpace (matrixOf a) L J =((poleLattice J).map a).map (poleProjection L) := byclassicalapply le_antisymm· apply Submodule.span_le.mprrintro _ ⟨c, hc, rfl⟩exact ⟨a (monomial c), ⟨monomial c, monomial_mem hc, rfl⟩, rfl⟩· rintro y ⟨z, ⟨f,hf,rfl⟩,rfl⟩rw [← poleProjection_truncate_image a ha hf]simp only [truncate, map_sum, map_smul]exact Submodule.sum_mem _ fun c hc =>Submodule.smul_mem _ _ (Submodule.subset_span⟨c, (Finset.mem_Icc.mp hc).2, rfl⟩)lemma increment_zero_iff_finite_solution(a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (L j : ℤ) :RankMatching.increment (matrixOf a) L j = 0 ↔∃ f, HasLeadingTerm f j ∧ a f ∈ poleLattice (L - 1) := byrw [RankMatching.increment_eq_zero_iff, columnSpace_eq_projectedImage a ha]constructor· rintro ⟨z, ⟨g,hg,rfl⟩,heq⟩refine ⟨monomial j - g, ⟨?_, ?_⟩, ?_⟩· intro i hisimp only [HahnSeries.coeff_sub, coeff_monomial,ite_eq_right (show i ≠ j by omega), hg i (by omega), sub_self]· simp [HahnSeries.coeff_sub, hg j (by omega)]· apply poleProjection_eq_zero.mprw [map_sub, map_sub, poleProjection_monomial_image, ← heq, sub_self]· rintro ⟨f, ⟨hf,hfj⟩,haf⟩have hg : monomial j - f ∈ poleLattice (j - 1) := byintro i hiby_cases hij : i = j· subst i; simp [HahnSeries.coeff_sub, hfj]· simp [HahnSeries.coeff_sub, coeff_monomial, hij, hf i (by omega)]refine ⟨a (monomial j - f), ⟨monomial j - f, hg, rfl⟩, ?_⟩rw [map_sub, map_sub, poleProjection_monomial_image,poleProjection_eq_zero.mpr haf, sub_zero]open WithZerolemma mem_poleLattice_iff_valuation (J : ℤ) (f : LaurentSeries k) :f ∈ poleLattice J ↔ Valued.v f ≤ WithZero.exp J := byrw [show J = -(-J) by omega, LaurentSeries.valuation_le_iff_coeff_lt_eq_zero]constructor· intro hf n hnsimpa using hf (-n) (by omega)· intro hf i hiexact hf (-i) (by omega)lemma poleLattice_eq_ball (J : ℤ) :(poleLattice (k := k) J : Set (LaurentSeries k)) ={f | (Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict f ≤(Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict (monomial J)} := byext fchange f ∈ poleLattice J ↔ (Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict f ≤(Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict (monomial J)rw [Valuation.restrict_le_iff, mem_poleLattice_iff_valuation]simp [monomial, LaurentSeries.valuation_single_zpow]lemma isClosed_poleLattice (J : ℤ) : IsClosed (poleLattice (k := k) J : Set (LaurentSeries k)) := byrw [poleLattice_eq_ball]exact Valued.isClosed_closedBall _ _lemma isOpen_poleLattice (J : ℤ) : IsOpen (poleLattice (k := k) J : Set (LaurentSeries k)) := byrw [poleLattice_eq_ball]apply Valued.isOpen_closedBallrw [ne_eq, Valuation.restrict_eq_zero_iff]simp [monomial, LaurentSeries.valuation_single_zpow]lemma poleLattice_nhds_basis :(𝓝 (0 : LaurentSeries k)).HasBasis (fun _ : ℤ => True)(fun J => (poleLattice (k := k) J : Set (LaurentSeries k))) := bylet v : Valuation (LaurentSeries k) ℤᵐ⁰ := Valued.vapply (Valued.hasBasis_nhds_zero (LaurentSeries k) ℤᵐ⁰).to_hasBasis· intro γ _let r : ℤᵐ⁰ := MonoidWithZeroHom.ValueGroup₀.embedding γ.valhave hr : r ≠ 0 := (Units.map(MonoidWithZeroHom.ValueGroup₀.embedding (f := .ofClass v)).toMonoidHom γ).ne_zerorefine ⟨WithZero.log r - 1, trivial, ?_⟩intro f hfrw [Set.mem_ofPred_eq, Valuation.restrict_lt_iff_lt_embedding]apply (mem_poleLattice_iff_valuation _ f).mp hf |>.trans_ltchange WithZero.exp (WithZero.log r - 1) < rcalc_ < WithZero.exp (WithZero.log r) := WithZero.exp_lt_exp.mpr (by omega)_ = r := WithZero.exp_log hr· intro J _have hn : v.restrict (monomial J) ≠ 0 := byrw [ne_eq, Valuation.restrict_eq_zero_iff]simp [v, monomial, LaurentSeries.valuation_single_zpow]refine ⟨Units.mk0 _ hn, trivial, ?_⟩intro f hfrw [poleLattice_eq_ball]change v.restrict f < v.restrict (monomial J) at hfexact hf.lelemma continuous_of_preservesPoles (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) : Continuous a := byapply continuous_of_continuousAt_zero asimp only [ContinuousAt, map_zero]rw [poleLattice_nhds_basis.tendsto_iff poleLattice_nhds_basis]exact fun J _ => ⟨J, trivial, ha J⟩lemma continuous_of_bounded_coefficients [UniformSpace k] [DiscreteTopology k]{X : Type*} [TopologicalSpace X] (g : X → LaurentSeries k) (J : ℤ)(hg : ∀ x, g x ∈ poleLattice J)(hcoeff : ∀ n : ℤ, Continuous (fun x => (g x).coeff n)) : Continuous g := byrw [continuous_iff_continuousAt]intro xapply tendsto_sub_nhds_zero_iff.mprw [poleLattice_nhds_basis.tendsto_right_iff]intro M _have hev : ∀ᶠ y in 𝓝 x, ∀ i ∈ Finset.Ioc M J,(g y).coeff (-i) = (g x).coeff (-i) := byrw [Filter.eventually_all_finset]intro i _exact (hcoeff (-i)).continuousAt.eventually((isOpen_discrete {(g x).coeff (-i)}).mem_nhds rfl)filter_upwards [hev] with y hyintro i hirw [HahnSeries.coeff_sub, sub_eq_zero]by_cases hij : i ≤ J· exact hy i (Finset.mem_Ioc.mpr ⟨hi,hij⟩)· rw [hg y i (by omega), hg x i (by omega)]def stageSeries (J : ℤ) (c : ℤ → k) : LaurentSeries k :=HahnSeries.ofSuppBddBelow (fun n => if -J ≤ n then c n else 0)⟨-J, byintro n hnby_contra hexact hn (ite_eq_right h)⟩@[simp] lemma coeff_stageSeries (J : ℤ) (c : ℤ → k) (n : ℤ) :(stageSeries J c).coeff n = if -J ≤ n then c n else 0 := rfllemma stageSeries_mem (J : ℤ) (c : ℤ → k) : stageSeries J c ∈ poleLattice J := byintro i hirw [coeff_stageSeries, ite_eq_right (by omega)]lemma range_stageSeries (J : ℤ) :Set.range (stageSeries (k := k) J) = (poleLattice (k := k) J : Set (LaurentSeries k)) := byext fconstructor· rintro ⟨c,rfl⟩exact stageSeries_mem J c· intro hfrefine ⟨f.coeff, ?_⟩apply HahnSeries.extfunext nrw [coeff_stageSeries]split_ifs with hn· rfl· symmsimpa using hf (-n) (by omega)lemma continuous_stageSeries [UniformSpace k] [DiscreteTopology k] (J : ℤ) :Continuous (stageSeries (k := k) J) := byapply continuous_of_bounded_coefficients _ J (stageSeries_mem J)intro nsimp only [coeff_stageSeries]split_ifs· exact continuous_apply n· exact continuous_constlemma isCompact_poleLattice [Finite k] (J : ℤ) :IsCompact (poleLattice (k := k) J : Set (LaurentSeries k)) := bylet : UniformSpace k := ⊥rw [← range_stageSeries, ← Set.image_univ]exact isCompact_univ.image (continuous_stageSeries J)lemma isCompact_leadingTerm [Finite k] (j : ℤ) :IsCompact {f : LaurentSeries k | HasLeadingTerm f j} := bylet : UniformSpace k := ⊥exact (isCompact_poleLattice j).inter_right(isClosed_eq (LaurentSeries.uniformContinuous_coeff (-j)).continuous continuous_const)lemma isClosed_leadingTerm (j : ℤ) :IsClosed {f : LaurentSeries k | HasLeadingTerm f j} := bylet : UniformSpace k := ⊥exact (isClosed_poleLattice j).inter(isClosed_eq (LaurentSeries.uniformContinuous_coeff (-j)).continuous continuous_const)lemma unmatched_iff_increments_zero (A : Matrix ℤ ℤ k)(hA : RankMatching.Triangular A) (j : ℤ) :(∀ l, ¬ RankMatching.Matched A l j) ↔ ∀ L, RankMatching.increment A L j = 0 := byconstructor· intro h Lby_cases hLj : L ≤ j· have hw : ∀ l, RankMatching.weight A l j = 0 := fun l =>(RankMatching.weight_zero_or_one A hA l j).resolve_right (h l)have hs := RankMatching.sum_interval_difference(fun l => (RankMatching.increment A l j : ℤ)) L j (by omega)simp_rw [← RankMatching.weight_eq_increment_sub A hA, hw] at hsrw [RankMatching.increment_zero A hA (show j < j + 1 by omega)] at hssimpa using hs.symm· exact RankMatching.increment_zero A hA (by omega)· intro h l hmhave hi := (RankMatching.matched_iff_increments A hA l j).mp hmrw [h l] at hiexact Nat.zero_ne_one hi.1theorem unmatched_iff_kernel [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (j : ℤ) :(∀ l, ¬ RankMatching.Matched (matrixOf a) l j) ↔∃ f, a f = 0 ∧ HasLeadingTerm f j := byrw [unmatched_iff_increments_zero _ (matrixOf_triangular a ha)]constructor· intro hlet S : ℤ → Set (LaurentSeries k) := fun L =>{f | HasLeadingTerm f j ∧ a f ∈ poleLattice (L - 1)}have hc : ∀ L, IsClosed (S L) := fun L =>(isClosed_leadingTerm j).inter((isClosed_poleLattice (L - 1)).preimage (continuous_of_preservesPoles a ha))have hk : ∀ L, IsCompact (S L) := fun L =>(isCompact_leadingTerm j).of_isClosed_subset (hc L) (fun _ h => h.1)have hn : ∀ L, (S L).Nonempty := fun L =>(increment_zero_iff_finite_solution a ha L j).mp (h L)have hd : Directed (fun s t : Set (LaurentSeries k) => s ⊇ t) S := byintro L Mrefine ⟨min L M, ?_, ?_⟩· intro f hfexact ⟨hf.1, poleLattice_mono (by omega) hf.2⟩· intro f hfexact ⟨hf.1, poleLattice_mono (by omega) hf.2⟩obtain ⟨f,hf⟩ := IsCompact.nonempty_iInter_of_directed_nonempty_isCompact_isClosed S hd hn hk hchave hf' : ∀ L, f ∈ S L := Set.mem_iInter.mp hfrefine ⟨f, ?_, (hf' j).1⟩apply HahnSeries.extfunext nsimpa using (hf' (-n)).2 (-n) (by omega)· rintro ⟨f,haf,hfj⟩ Lapply (increment_zero_iff_finite_solution a ha L j).mprexact ⟨f,hfj,haf ▸ (poleLattice (L - 1)).zero_mem⟩lemma rowRank_step (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A) (l J : ℤ) :RankMatching.blockRank A l J = RankMatching.blockRank A (l + 1) J +RankMatching.increment (RankMatching.reflected A) (-J) (-l) := byhave h := RankMatching.blockRank_step (RankMatching.reflected A)(RankMatching.triangular_reflected A hA) (-J) (-l)simpa only [RankMatching.blockRank_reflected, neg_neg, neg_sub,Int.reduceNeg, sub_neg_eq_add, add_comm] using hlemma matchedRow_iff_unequal_ranks (A : Matrix ℤ ℤ k)(hA : RankMatching.Triangular A) (l : ℤ) :(∃ j, RankMatching.Matched A l j) ↔∃ J, RankMatching.blockRank A l J ≠ RankMatching.blockRank A (l + 1) J := byhave hn : (∀ j, ¬ RankMatching.Matched A l j) ↔∀ J, RankMatching.blockRank A l J = RankMatching.blockRank A (l + 1) J := byhave hh := unmatched_iff_increments_zero (RankMatching.reflected A)(RankMatching.triangular_reflected A hA) (-l)constructor· intro h Jhave hh' : ∀ r, ¬ RankMatching.Matched (RankMatching.reflected A) r (-l) := byintro r hrapply h (-r)simpa only [RankMatching.Matched, RankMatching.weight_reflected, neg_neg] using hrrw [rowRank_step A hA l J, hh.mp hh' (-J), add_zero]· intro h j hmhave hh' : ∀ r, RankMatching.increment (RankMatching.reflected A) r (-l) = 0 := byintro rhave hs := rowRank_step A hA l (-r)rw [neg_neg, h (-r)] at hsomegaapply hh.mpr hh' (-j)simpa only [RankMatching.Matched, RankMatching.weight_reflected, neg_neg] using hmsimpa only [not_forall, not_not] using not_congr hnlemma exists_rowCut_kernel_of_unequal_ranks (A : Matrix ℤ ℤ k)(hA : RankMatching.Triangular A) (l J : ℤ)(hr : RankMatching.blockRank A l J ≠ RankMatching.blockRank A (l + 1) J) :∃ v ∈ RankMatching.columnSpace A l J,RankMatching.rowCut (l + 1) v = 0 ∧ v l ≠ 0 := bylet F : RankMatching.columnSpace A l J →ₗ[k] RankMatching.columnSpace A (l + 1) J :=(RankMatching.rowCut (l + 1)).restrict(fun _ hv => RankMatching.rowCut_columnSpace A (by omega) J hv)have hs : Function.Surjective F := byintro vhave hm : (v : ℤ → k) ∈ (RankMatching.columnSpace A l J).map(RankMatching.rowCut (l + 1)) := byrw [RankMatching.rowCut_map_columnSpace A (by omega)]exact v.propertyobtain ⟨w,hw,he⟩ := Submodule.mem_map.mp hmexact ⟨⟨w,hw⟩, Subtype.ext he⟩have hni : ¬ Function.Injective F := byintro hiapply hrhave he := (LinearEquiv.ofBijective F ⟨hi,hs⟩).finrank_eqsimpa only [RankMatching.blockRank_eq_finrank A hA] using hehave hk : F.ker ≠ ⊥ := fun h => hni (LinearMap.ker_eq_bot.mp h)obtain ⟨v,hv,hvz⟩ := F.ker.ne_bot_iff.mp hkhave hcut : RankMatching.rowCut (l + 1) (v : ℤ → k) = 0 :=congrArg Subtype.val (show F v = 0 from hv)refine ⟨v, v.property, hcut, ?_⟩intro hvlapply hvzapply Subtype.extfunext rrcases lt_trichotomy r l with hlt | heq | hgt· exact RankMatching.columnSpace_supported A l J v.property hlt· simpa [heq] using hvl· have he := congrFun hcut rsimpa [RankMatching.rowCut, hgt] using hetheorem matched_row_iff_image(a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (l : ℤ) :(∃ j, RankMatching.Matched (matrixOf a) l j) ↔∃ f, HasLeadingPosition (a f) l := byrw [matchedRow_iff_unequal_ranks _ (matrixOf_triangular a ha)]constructor· rintro ⟨J,hJ⟩obtain ⟨v,hv,hcut,hvl⟩ := exists_rowCut_kernel_of_unequal_ranks(matrixOf a) (matrixOf_triangular a ha) l J hJrw [columnSpace_eq_projectedImage a ha] at hvobtain ⟨z,⟨f,hf,rfl⟩,rfl⟩ := hvrefine ⟨f, ?_, ?_⟩· intro i hihave he := congrFun hcut isimpa [RankMatching.rowCut, poleProjection, hi,show l ≤ i by omega] using he· simpa [poleProjection] using hvl· rintro ⟨f,hf,hfl⟩obtain ⟨J,hJ⟩ := exists_poleLattice frefine ⟨J, ?_⟩intro heqhave hv : poleProjection l (a f) ∈ RankMatching.columnSpace (matrixOf a) l J := byrw [columnSpace_eq_projectedImage a ha]exact ⟨a f,⟨f,hJ,rfl⟩,rfl⟩have hcut : RankMatching.rowCut (l + 1) (poleProjection l (a f)) = 0 := byext iby_cases hi : l + 1 ≤ i· simp [RankMatching.rowCut, poleProjection, show l ≤ i by omega,hf i (by omega)]· simp [RankMatching.rowCut, show ¬ l < i by omega]have hi := RankMatching.rowCut_injOn_of_equal_ranks(matrixOf a) (matrixOf_triangular a ha) l J heqhave he : poleProjection l (a f) = 0 := hi hv (Submodule.zero_mem _) (by simpa using hcut)apply hflsimpa [poleProjection] using congrFun he ldef stageImage (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :Submodule k (LaurentSeries k) := (poleLattice J).map alemma stageImage_mono (a : LaurentSeries k →ₗ[k] LaurentSeries k) : Monotone (stageImage a) := byintro I J hexact Submodule.map_mono (poleLattice_mono h)lemma stageImage_le_poleLattice (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) (J : ℤ) : stageImage a J ≤ poleLattice J := byrintro z ⟨f,hf,rfl⟩exact ha J f hflemma stageImage_step (a : LaurentSeries k →ₗ[k] LaurentSeries k) (j : ℤ) :stageImage a j = stageImage a (j - 1) ⊔ Submodule.span k {a (monomial j)} := byapply le_antisymm· rintro z ⟨f,hf,rfl⟩have ht : f - f.coeff (-j) • monomial j ∈ poleLattice (j - 1) := byintro i hiby_cases hij : i = j· subst i; simp [HahnSeries.coeff_sub, HahnSeries.coeff_smul]· simp [HahnSeries.coeff_sub, HahnSeries.coeff_smul, coeff_monomial, hij,hf i (by omega)]apply Submodule.mem_sup.mprrefine ⟨a (f - f.coeff (-j) • monomial j), ⟨_,ht,rfl⟩,f.coeff (-j) • a (monomial j),Submodule.smul_mem _ _ (Submodule.subset_span (Set.mem_singleton _)), ?_⟩simp· apply sup_le (stageImage_mono a (by omega))rw [Submodule.span_singleton_le_iff_mem]exact ⟨monomial j, monomial_mem le_rfl, rfl⟩lemma monomial_image_mem_iff_unmatched [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (j : ℤ) :a (monomial j) ∈ stageImage a (j - 1) ↔∀ l, ¬ RankMatching.Matched (matrixOf a) l j := byrw [unmatched_iff_kernel a ha]constructor· rintro ⟨g,hg,he⟩refine ⟨monomial j - g, by simp [he], ?_, ?_⟩· intro i hisimp [HahnSeries.coeff_sub, coeff_monomial, show i ≠ j by omega, hg i (by omega)]· simp [HahnSeries.coeff_sub, hg j (by omega)]· rintro ⟨f,haf,hf,hfj⟩refine ⟨monomial j - f, ?_, by simp [haf]⟩intro i hiby_cases hij : i = j· subst i; simp [HahnSeries.coeff_sub, hfj]· simp [HahnSeries.coeff_sub, coeff_monomial, hij, hf i (by omega)]def imageModulo (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :Submodule k (LaurentSeries k ⧸ stageImage a J) :=(stageImage a N).map (stageImage a J).mkQlemma imageModulo_mono (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :Monotone (imageModulo a J) := fun _ _ h => Submodule.map_mono (stageImage_mono a h)lemma imageModulo_zero (a : LaurentSeries k →ₗ[k] LaurentSeries k) {J N : ℤ} (h : N ≤ J) :imageModulo a J N = ⊥ := byapply le_antisymm _ bot_lerw [imageModulo, Submodule.map_le_iff_le_comap, Submodule.comap_bot, Submodule.ker_mkQ]exact stageImage_mono a hlemma imageModulo_step (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J n : ℤ) :imageModulo a J n = imageModulo a J (n - 1) ⊔Submodule.span k {(stageImage a J).mkQ (a (monomial n))} := byrw [imageModulo, stageImage_step a n, Submodule.map_sup, Submodule.map_span, Set.image_singleton]rfllemma imageModulo_finite (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :FiniteDimensional k (imageModulo a J N) := byby_cases h : J ≤ N· induction N, h using Int.leInduction with| base => rw [imageModulo_zero a le_rfl]; infer_instance| succ n hn ih =>rw [imageModulo_step, add_sub_cancel_right]let := ihinfer_instance· rw [imageModulo_zero a (by omega)]infer_instancelemma mem_imageModulo (a : LaurentSeries k →ₗ[k] LaurentSeries k) {J N : ℤ}(h : J ≤ N) (f : LaurentSeries k) :(stageImage a J).mkQ f ∈ imageModulo a J N ↔ f ∈ stageImage a N := bychange f ∈ ((stageImage a N).map (stageImage a J).mkQ).comap (stageImage a J).mkQ ↔ _rw [Submodule.comap_map_eq, Submodule.ker_mkQ, sup_eq_left.mpr (stageImage_mono a h)]open scoped Classicallemma imageModulo_finrank_step [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) {J n : ℤ}(h : J < n) :Module.finrank k (imageModulo a J n) = Module.finrank k (imageModulo a J (n - 1)) +if ∃ l, RankMatching.Matched (matrixOf a) l n then 1 else 0 := byclassicallet := imageModulo_finite a J (n - 1)rw [imageModulo_step, RankMatching.finrank_sup_singleton,mem_imageModulo a (by omega), monomial_image_mem_iff_unmatched a ha]by_cases hm : ∃ l, RankMatching.Matched (matrixOf a) l n· have hn : ¬ (∀ l, ¬ RankMatching.Matched (matrixOf a) l n) :=fun hh => hh hm.choose hm.choose_specsimp [hm, hn]· simp [show ∀ l, ¬ RankMatching.Matched (matrixOf a) l n from fun l hl => hm ⟨l,hl⟩]lemma imageModulo_finrank [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (J N : ℤ) :Module.finrank k (imageModulo a J N) =∑ j ∈ Finset.Ioc J N, if ∃ l, RankMatching.Matched (matrixOf a) l j then 1 else 0 := byclassicalby_cases h : J ≤ N· induction N, h using Int.leInduction with| base => rw [imageModulo_zero a (J := J) (N := J) le_rfl, finrank_bot]; simp| succ n hn ih =>have he : Finset.Ioc J (n + 1) = insert (n + 1) (Finset.Ioc J n) := byext isimp only [Finset.mem_Ioc, Finset.mem_insert]omegarw [imageModulo_finrank_step a ha (by omega), add_sub_cancel_right, ih,he, Finset.sum_insert (by simp)]omega· rw [imageModulo_zero a (by omega), finrank_bot, Finset.Ioc_eq_empty_of_le (by omega),Finset.sum_empty]lemma matched_le (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A) {l j : ℤ}(h : RankMatching.Matched A l j) : l ≤ j := byby_contra hnhave hz := RankMatching.increment_zero A hA (lt_of_not_ge hn)have ho := ((RankMatching.matched_iff_increments A hA l j).mp h).1omegadef columnMatches (A : Matrix ℤ ℤ k) (J N : ℤ) : Set (ℤ × ℤ) :={p | RankMatching.Matched A p.1 p.2 ∧ J < p.2 ∧ p.2 ≤ N}def crossingStageMatches (A : Matrix ℤ ℤ k) (J N : ℤ) : Set (ℤ × ℤ) :={p | RankMatching.Matched A p.1 p.2 ∧ p.1 ≤ J ∧ J < p.2 ∧ p.2 ≤ N}lemma columnMatches_snd_inj (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)(J N : ℤ) : Set.InjOn Prod.snd (columnMatches A J N) := byrintro ⟨l,j⟩ hp ⟨l',j'⟩ hq hechange j = j' at hesubst j'exact Prod.ext (RankMatching.column_unique A hA hp.1 hq.1) rfllemma columnMatches_finite (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)(J N : ℤ) : (columnMatches A J N).Finite := byexact Set.Finite.of_injOn (fun _ hp => hp.2) (columnMatches_snd_inj A hA J N)(Set.finite_Ioc J N)lemma columnMatches_ncard (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)(J N : ℤ) : (columnMatches A J N).ncard =∑ j ∈ Finset.Ioc J N, if ∃ l, RankMatching.Matched A l j then 1 else 0 := byclassicalhave he : Prod.snd '' columnMatches A J N =↑((Finset.Ioc J N).filter (fun j => ∃ l, RankMatching.Matched A l j)) := byext jsimp only [Set.mem_image, columnMatches, Set.mem_ofPred_eq, Finset.mem_coe,Finset.mem_filter, Finset.mem_Ioc]constructor· rintro ⟨⟨l,j'⟩,⟨hm,hJ,hN⟩,rfl⟩exact ⟨⟨hJ,hN⟩,l,hm⟩· rintro ⟨⟨hJ,hN⟩,l,hm⟩exact ⟨(l,j),⟨hm,hJ,hN⟩,rfl⟩rw [← (columnMatches_snd_inj A hA J N).ncard_image, he,Set.ncard_coe_finset, Finset.sum_boole]rfllemma columnMatches_partition (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)(J N : ℤ) :(columnMatches A J N).ncard = (crossingStageMatches A J N).ncard +RankMatching.blockRank A (J + 1) N := byclassicallet high := ((Finset.Icc (J + 1) N ×ˢ Finset.Icc (J + 1) N).filter(fun p : ℤ × ℤ => RankMatching.Matched A p.1 p.2))have he : columnMatches A J N = crossingStageMatches A J N ∪ (high : Set (ℤ × ℤ)) := byext psimp only [columnMatches, crossingStageMatches, Set.mem_ofPred_eq, Set.mem_union,high, Finset.mem_coe, Finset.mem_filter, Finset.mem_product, Finset.mem_Icc]constructor· rintro ⟨hm,hJ,hN⟩by_cases hl : p.1 ≤ J· exact Or.inl ⟨hm,hl,hJ,hN⟩· have hh := matched_le A hA hmexact Or.inr ⟨⟨⟨by omega,by omega⟩,⟨by omega,hN⟩⟩,hm⟩· rintro (⟨hm,hl,hJ,hN⟩ | ⟨⟨hl,hj⟩,hm⟩)· exact ⟨hm,hJ,hN⟩· exact ⟨hm,by omega,hj.2⟩have hd : Disjoint (crossingStageMatches A J N) (high : Set (ℤ × ℤ)) := byapply Set.disjoint_left.mprintro p hp hqsimp only [high, Finset.mem_coe, Finset.mem_filter, Finset.mem_product,Finset.mem_Icc] at hqhave hh := hp.2.1omegahave hf : (crossingStageMatches A J N).Finite :=(columnMatches_finite A hA J N).subset (fun _ h => ⟨h.1,h.2.2⟩)rw [he, Set.ncard_union_eq hd hf high.finite_toSet, Set.ncard_coe_finset,RankMatching.rank_eq_count A hA]rfllemma imageModulo_finrank_partition [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (J N : ℤ) :Module.finrank k (imageModulo a J N) =(crossingStageMatches (matrixOf a) J N).ncard + RankMatching.blockRank (matrixOf a) (J + 1) N := byrw [imageModulo_finrank a ha, ← columnMatches_ncard _ (matrixOf_triangular a ha),columnMatches_partition _ (matrixOf_triangular a ha)]lemma stageImage_le_ker_projection (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) (J : ℤ) : stageImage a J ≤ (poleProjection (J + 1)).ker := byintro f hfchange poleProjection (J + 1) f = 0apply poleProjection_eq_zero.mprsimpa using stageImage_le_poleLattice a ha J hfdef quotientProjection (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) (J : ℤ) :(LaurentSeries k ⧸ stageImage a J) →ₗ[k] (ℤ → k) :=(stageImage a J).liftQ (poleProjection (J + 1)) (stageImage_le_ker_projection a ha J)@[simp] lemma quotientProjection_mkQ (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) (J : ℤ) (f : LaurentSeries k) :quotientProjection a ha J ((stageImage a J).mkQ f) = poleProjection (J + 1) f := rfldef crossingStage (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :Submodule k (LaurentSeries k ⧸ stageImage a J) :=(stageImage a N ⊓ poleLattice J).map (stageImage a J).mkQlemma crossingStage_mono (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :Monotone (crossingStage a J) := fun _ _ h =>Submodule.map_mono (inf_le_inf_right _ (stageImage_mono a h))lemma crossingStage_finite (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :FiniteDimensional k (crossingStage a J N) := bylet := imageModulo_finite a J Nexact Submodule.finiteDimensional_of_le (show crossingStage a J N ≤ imageModulo a J Nfrom Submodule.map_mono inf_le_left)lemma crossingStage_eq_inf (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) (J N : ℤ) :crossingStage a J N = imageModulo a J N ⊓ (quotientProjection a ha J).ker := byext zconstructor· rintro ⟨f,⟨hf,hJ⟩,rfl⟩exact ⟨⟨f,hf,rfl⟩, poleProjection_eq_zero.mpr (by simpa using hJ)⟩· rintro ⟨⟨f,hf,rfl⟩,hz⟩refine ⟨f,⟨hf,?_⟩,rfl⟩have he : poleProjection (J + 1) f = 0 := hzsimpa using poleProjection_eq_zero.mp helemma quotientProjection_stage_range (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) (J N : ℤ) :((quotientProjection a ha J).domRestrict (imageModulo a J N)).range =RankMatching.columnSpace (matrixOf a) (J + 1) N := byrw [LinearMap.range_domRestrict, columnSpace_eq_projectedImage a ha]ext vconstructor· rintro ⟨z,⟨f,hf,rfl⟩,rfl⟩exact ⟨f,hf,rfl⟩· rintro ⟨f,hf,rfl⟩exact ⟨(stageImage a J).mkQ f, ⟨f,hf,rfl⟩,rfl⟩lemma crossingStage_finrank [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (J N : ℤ) :Module.finrank k (crossingStage a J N) = (crossingStageMatches (matrixOf a) J N).ncard := bylet := imageModulo_finite a J Nlet f := (quotientProjection a ha J).domRestrict (imageModulo a J N)have hr := LinearMap.finrank_range_add_finrank_ker fhave hk : Module.finrank k f.ker = Module.finrank k (crossingStage a J N) := byrw [← Submodule.finrank_map_subtype_eq (imageModulo a J N) f.ker,show f.ker = ((quotientProjection a ha J).ker).comap (imageModulo a J N).subtypefrom LinearMap.ker_domRestrict _ _,Submodule.map_comap_subtype, ← crossingStage_eq_inf a ha]have hi : Module.finrank k f.range = RankMatching.blockRank (matrixOf a) (J + 1) N := byrw [quotientProjection_stage_range, ← RankMatching.blockRank_eq_finrank _ (matrixOf_triangular a ha)]rw [hk,hi,imageModulo_finrank_partition a ha] at hromegadef crossingSpace (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :Submodule k (LaurentSeries k ⧸ stageImage a J) :=(a.range ⊓ poleLattice J).map (stageImage a J).mkQlemma crossingStage_le_space (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :crossingStage a J N ≤ crossingSpace a J := byapply Submodule.map_monoapply inf_le_inf_rightrintro f ⟨g,hg,rfl⟩exact ⟨g,rfl⟩lemma crossingSpace_stabilizes [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)(J : ℤ) (hc : (crossing a J).Finite) :∃ N : ℤ, J ≤ N ∧ crossingSpace a J = crossingStage a J N ∧crossingStageMatches (matrixOf a) J N = crossing a J := byobtain ⟨b,hb⟩ := (hc.image Prod.snd).bddAbovelet N := max J bhave he (M : ℤ) (hM : N ≤ M) :crossingStageMatches (matrixOf a) J M = crossing a J := byext pconstructor· intro hpexact ⟨hp.1,hp.2.1,hp.2.2.1⟩· intro hpexact ⟨hp.1,hp.2.1,hp.2.2,le_trans (hb ⟨p,hp,rfl⟩) (le_trans (le_max_right J b) hM)⟩refine ⟨N, le_max_left _ _, ?_, he N le_rfl⟩apply le_antisymm _ (crossingStage_le_space a J N)rintro z ⟨f,⟨⟨x,hx⟩,hf⟩,rfl⟩obtain ⟨M,hM⟩ := exists_poleLattice xhave heq : crossingStage a J N = crossingStage a J (max N M) := bylet := crossingStage_finite a J (max N M)apply Submodule.eq_of_le_of_finrank_eq (crossingStage_mono a J (le_max_left _ _))rw [crossingStage_finrank a ha, crossingStage_finrank a ha,he N le_rfl, he (max N M) (le_max_left _ _)]rw [heq]exact ⟨f,⟨⟨x,poleLattice_mono (le_max_right N M) hM,hx⟩,hf⟩,rfl⟩def crossingQuotientEquiv (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :crossingQuotient a J ≃ₗ[k] crossingSpace a J := bylet I := a.range ⊓ poleLattice (k := k) Jlet f := (stageImage a J).mkQ.domRestrict Ihave hk : f.ker = (stageImage a J).comap I.subtype := byrw [LinearMap.ker_domRestrict, Submodule.ker_mkQ]exact (Submodule.quotEquivOfEq _ _ hk.symm).trans(f.quotKerEquivRange.trans (LinearEquiv.ofEq _ _ (LinearMap.range_domRestrict _ _)))theorem crossing_dimension [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)(hc : ∀ J, (crossing a J).Finite) (J : ℤ) :FiniteDimensional k (crossingQuotient a J) ∧Module.finrank k (crossingQuotient a J) = (crossing a J).ncard := byobtain ⟨N,hN,he,hcN⟩ := crossingSpace_stabilizes a ha J (hc J)have : FiniteDimensional k (crossingSpace a J) := byrw [he]exact crossingStage_finite a J Nrefine ⟨(crossingQuotientEquiv a J).symm.finiteDimensional, ?_⟩rw [(crossingQuotientEquiv a J).finrank_eq, he, crossingStage_finrank a ha, hcN]lemma range_inf_stabilizes [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)(J : ℤ) (hc : (crossing a J).Finite) :∃ N : ℤ, a.range ⊓ poleLattice J = stageImage a N ⊓ poleLattice J := byobtain ⟨N,hN,he,_⟩ := crossingSpace_stabilizes a ha J hcrefine ⟨N,le_antisymm ?_ ?_⟩· intro f hfhave hq : (stageImage a J).mkQ f ∈ crossingStage a J N := byrw [← he]exact ⟨f,hf,rfl⟩have hi : (stageImage a J).mkQ f ∈ imageModulo a J N :=(Submodule.map_mono (show stageImage a N ⊓ poleLattice J ≤ stageImage a Nfrom inf_le_left)) hqexact ⟨(mem_imageModulo a hN f).mp hi,hf.2⟩· rintro f ⟨⟨x,hx,rfl⟩,hf⟩exact ⟨⟨x,rfl⟩,hf⟩lemma isCompact_range_inter_poleLattice [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)(J : ℤ) (hc : (crossing a J).Finite) :IsCompact ((Set.range a) ∩ (poleLattice (k := k) J : Set (LaurentSeries k))) := byobtain ⟨N,he⟩ := range_inf_stabilizes a ha J hcchange IsCompact (↑(a.range ⊓ poleLattice J) : Set (LaurentSeries k))rw [he]change IsCompact ((a '' (poleLattice (k := k) N : Set (LaurentSeries k))) ∩(poleLattice (k := k) J : Set (LaurentSeries k)))exact ((isCompact_poleLattice N).image (continuous_of_preservesPoles a ha)).inter_right(isClosed_poleLattice J)theorem closed_image [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)(hc : ∀ J, (crossing a J).Finite) :IsClosed (Set.range a) := byrw [← isOpen_compl_iff, isOpen_iff_forall_mem_open]intro f hfobtain ⟨J,hJ⟩ := exists_poleLattice frefine ⟨(poleLattice (k := k) J : Set (LaurentSeries k)) ∩((Set.range a) ∩ (poleLattice (k := k) J : Set (LaurentSeries k)))ᶜ, ?_, ?_, ?_⟩· intro g hg hgaexact hg.2 ⟨hga,hg.1⟩· exact (isOpen_poleLattice J).inter(isCompact_range_inter_poleLattice a ha J (hc J)).isClosed.isOpen_compl· exact ⟨hJ,fun h => hf h.1⟩end HahnWilson.PivotTopologyendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852import OAI.LinearAlgebra.RankMatching.Basicnamespace OAInoncomputable sectionopen scoped BigOperators nonZeroDivisorsopen LinearMap Submoduleopen CategoryTheory CategoryTheory.Limits HomologicalComplexnamespace HahnWilson.PivotTopologyopen HahnSeriesopen scoped BigOperators Topologyvariable {k : Type*} [Field k]def poleLattice (J : ℤ) : Submodule k (LaurentSeries k) wherecarrier := {f | ∀ i : ℤ, J < i → f.coeff (-i) = 0}zero_mem' := by simpadd_mem' hf hg i hi := by simp [hf i hi, hg i hi]smul_mem' c f hf i hi := by simp [hf i hi]def monomial (j : ℤ) : LaurentSeries k := HahnSeries.single (-j) 1def PreservesPoles (a : LaurentSeries k →ₗ[k] LaurentSeries k) : Prop :=∀ J, ∀ f ∈ poleLattice (k := k) J, a f ∈ poleLattice (k := k) Jdef matrixOf (a : LaurentSeries k →ₗ[k] LaurentSeries k) : Matrix ℤ ℤ k :=fun l j => (a (monomial j)).coeff (-l)def HasLeadingTerm (f : LaurentSeries k) (j : ℤ) : Prop :=f ∈ poleLattice (k := k) j ∧ f.coeff (-j) = 1def HasLeadingPosition (f : LaurentSeries k) (j : ℤ) : Prop :=f ∈ poleLattice (k := k) j ∧ f.coeff (-j) ≠ 0def crossing (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) : Set (ℤ × ℤ) :={p | RankMatching.Matched (matrixOf a) p.1 p.2 ∧ p.1 ≤ J ∧ J < p.2}def crossingQuotient (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :=↥(LinearMap.range a ⊓ poleLattice (k := k) J) ⧸Submodule.comap (LinearMap.range a ⊓ poleLattice (k := k) J).subtype((poleLattice (k := k) J).map a)instance crossingQuotient_addCommGroup (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :AddCommGroup (crossingQuotient a J) := byunfold crossingQuotientinfer_instanceinstance crossingQuotient_module (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :Module k (crossingQuotient a J) := byunfold crossingQuotientinfer_instance@[simp] lemma mem_poleLattice (J : ℤ) (f : LaurentSeries k) :f ∈ poleLattice J ↔ ∀ i : ℤ, J < i → f.coeff (-i) = 0 := Iff.rfllemma poleLattice_mono {I J : ℤ} (h : I ≤ J) :poleLattice (k := k) I ≤ poleLattice J := byintro f hf i hiexact hf i (lt_of_le_of_lt h hi)@[simp] lemma coeff_monomial (j i : ℤ) :(monomial (k := k) j).coeff (-i) = if i = j then 1 else 0 := bysimp [monomial, HahnSeries.coeff_single]lemma monomial_mem {j J : ℤ} (h : j ≤ J) : monomial (k := k) j ∈ poleLattice J := byintro i hisimp [show i ≠ j by omega]lemma exists_poleLattice (f : LaurentSeries k) : ∃ J, f ∈ poleLattice J := byrefine ⟨-f.order, ?_⟩intro i hiexact HahnSeries.coeff_eq_zero_of_lt_order (by omega)lemma matrixOf_triangular (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) : RankMatching.Triangular (matrixOf a) := byintro l j hexact ha j (monomial j) (monomial_mem le_rfl) l hdef truncate (f : LaurentSeries k) (L J : ℤ) : LaurentSeries k :=∑ c ∈ Finset.Icc L J, f.coeff (-c) • monomial clemma coeff_truncate (f : LaurentSeries k) (L J i : ℤ) :(truncate f L J).coeff (-i) = if L ≤ i ∧ i ≤ J then f.coeff (-i) else 0 := byclassicalsimp [truncate, HahnSeries.coeff_sum, HahnSeries.coeff_smul, smul_eq_mul,mul_ite]lemma truncate_mem (f : LaurentSeries k) (L J : ℤ) : truncate f L J ∈ poleLattice J := byintro i hirw [coeff_truncate, ite_eq_right (by omega)]lemma sub_truncate_mem {f : LaurentSeries k} {L J : ℤ} (hf : f ∈ poleLattice J) :f - truncate f L J ∈ poleLattice (L - 1) := byintro i hirw [HahnSeries.coeff_sub, coeff_truncate]by_cases hij : i ≤ J· rw [ite_eq_left (by omega), sub_self]· rw [ite_eq_right (by omega), sub_zero, hf i (by omega)]def poleProjection (L : ℤ) : LaurentSeries k →ₗ[k] (ℤ → k) wheretoFun f i := if L ≤ i then f.coeff (-i) else 0map_add' f g := by ext i; by_cases hi : L ≤ i <;> simp [hi]map_smul' c f := by ext i; by_cases hi : L ≤ i <;> simp [hi]lemma poleProjection_eq_zero {L : ℤ} {f : LaurentSeries k} :poleProjection L f = 0 ↔ f ∈ poleLattice (L - 1) := byconstructor· intro h i hihave := congrFun h isimpa [poleProjection, show L ≤ i by omega] using this· intro hext iby_cases hi : L ≤ i· simp [poleProjection, hi, h i (by omega)]· simp [poleProjection, hi]@[simp] lemma poleProjection_monomial_image(a : LaurentSeries k →ₗ[k] LaurentSeries k) (L j : ℤ) :poleProjection L (a (monomial j)) = RankMatching.column (matrixOf a) L j := rfllemma poleProjection_truncate_image (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) {f : LaurentSeries k} {L J : ℤ}(hf : f ∈ poleLattice J) :poleProjection L (a (truncate f L J)) = poleProjection L (a f) := byhave h := (poleProjection_eq_zero).mpr (ha (L - 1) _ (sub_truncate_mem hf))rw [map_sub, map_sub, sub_eq_zero] at hexact h.symmlemma columnSpace_eq_projectedImage (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) (L J : ℤ) :RankMatching.columnSpace (matrixOf a) L J =((poleLattice J).map a).map (poleProjection L) := byclassicalapply le_antisymm· apply Submodule.span_le.mprrintro _ ⟨c, hc, rfl⟩exact ⟨a (monomial c), ⟨monomial c, monomial_mem hc, rfl⟩, rfl⟩· rintro y ⟨z, ⟨f,hf,rfl⟩,rfl⟩rw [← poleProjection_truncate_image a ha hf]simp only [truncate, map_sum, map_smul]exact Submodule.sum_mem _ fun c hc =>Submodule.smul_mem _ _ (Submodule.subset_span⟨c, (Finset.mem_Icc.mp hc).2, rfl⟩)lemma increment_zero_iff_finite_solution(a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (L j : ℤ) :RankMatching.increment (matrixOf a) L j = 0 ↔∃ f, HasLeadingTerm f j ∧ a f ∈ poleLattice (L - 1) := byrw [RankMatching.increment_eq_zero_iff, columnSpace_eq_projectedImage a ha]constructor· rintro ⟨z, ⟨g,hg,rfl⟩,heq⟩refine ⟨monomial j - g, ⟨?_, ?_⟩, ?_⟩· intro i hisimp only [HahnSeries.coeff_sub, coeff_monomial,ite_eq_right (show i ≠ j by omega), hg i (by omega), sub_self]· simp [HahnSeries.coeff_sub, hg j (by omega)]· apply poleProjection_eq_zero.mprw [map_sub, map_sub, poleProjection_monomial_image, ← heq, sub_self]· rintro ⟨f, ⟨hf,hfj⟩,haf⟩have hg : monomial j - f ∈ poleLattice (j - 1) := byintro i hiby_cases hij : i = j· subst i; simp [HahnSeries.coeff_sub, hfj]· simp [HahnSeries.coeff_sub, coeff_monomial, hij, hf i (by omega)]refine ⟨a (monomial j - f), ⟨monomial j - f, hg, rfl⟩, ?_⟩rw [map_sub, map_sub, poleProjection_monomial_image,poleProjection_eq_zero.mpr haf, sub_zero]open WithZerolemma mem_poleLattice_iff_valuation (J : ℤ) (f : LaurentSeries k) :f ∈ poleLattice J ↔ Valued.v f ≤ WithZero.exp J := byrw [show J = -(-J) by omega, LaurentSeries.valuation_le_iff_coeff_lt_eq_zero]constructor· intro hf n hnsimpa using hf (-n) (by omega)· intro hf i hiexact hf (-i) (by omega)lemma poleLattice_eq_ball (J : ℤ) :(poleLattice (k := k) J : Set (LaurentSeries k)) ={f | (Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict f ≤(Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict (monomial J)} := byext fchange f ∈ poleLattice J ↔ (Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict f ≤(Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict (monomial J)rw [Valuation.restrict_le_iff, mem_poleLattice_iff_valuation]simp [monomial, LaurentSeries.valuation_single_zpow]lemma isClosed_poleLattice (J : ℤ) : IsClosed (poleLattice (k := k) J : Set (LaurentSeries k)) := byrw [poleLattice_eq_ball]exact Valued.isClosed_closedBall _ _lemma isOpen_poleLattice (J : ℤ) : IsOpen (poleLattice (k := k) J : Set (LaurentSeries k)) := byrw [poleLattice_eq_ball]apply Valued.isOpen_closedBallrw [ne_eq, Valuation.restrict_eq_zero_iff]simp [monomial, LaurentSeries.valuation_single_zpow]lemma poleLattice_nhds_basis :(𝓝 (0 : LaurentSeries k)).HasBasis (fun _ : ℤ => True)(fun J => (poleLattice (k := k) J : Set (LaurentSeries k))) := bylet v : Valuation (LaurentSeries k) ℤᵐ⁰ := Valued.vapply (Valued.hasBasis_nhds_zero (LaurentSeries k) ℤᵐ⁰).to_hasBasis· intro γ _let r : ℤᵐ⁰ := MonoidWithZeroHom.ValueGroup₀.embedding γ.valhave hr : r ≠ 0 := (Units.map(MonoidWithZeroHom.ValueGroup₀.embedding (f := .ofClass v)).toMonoidHom γ).ne_zerorefine ⟨WithZero.log r - 1, trivial, ?_⟩intro f hfrw [Set.mem_ofPred_eq, Valuation.restrict_lt_iff_lt_embedding]apply (mem_poleLattice_iff_valuation _ f).mp hf |>.trans_ltchange WithZero.exp (WithZero.log r - 1) < rcalc_ < WithZero.exp (WithZero.log r) := WithZero.exp_lt_exp.mpr (by omega)_ = r := WithZero.exp_log hr· intro J _have hn : v.restrict (monomial J) ≠ 0 := byrw [ne_eq, Valuation.restrict_eq_zero_iff]simp [v, monomial, LaurentSeries.valuation_single_zpow]refine ⟨Units.mk0 _ hn, trivial, ?_⟩intro f hfrw [poleLattice_eq_ball]change v.restrict f < v.restrict (monomial J) at hfexact hf.lelemma continuous_of_preservesPoles (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) : Continuous a := byapply continuous_of_continuousAt_zero asimp only [ContinuousAt, map_zero]rw [poleLattice_nhds_basis.tendsto_iff poleLattice_nhds_basis]exact fun J _ => ⟨J, trivial, ha J⟩lemma continuous_of_bounded_coefficients [UniformSpace k] [DiscreteTopology k]{X : Type*} [TopologicalSpace X] (g : X → LaurentSeries k) (J : ℤ)(hg : ∀ x, g x ∈ poleLattice J)(hcoeff : ∀ n : ℤ, Continuous (fun x => (g x).coeff n)) : Continuous g := byrw [continuous_iff_continuousAt]intro xapply tendsto_sub_nhds_zero_iff.mprw [poleLattice_nhds_basis.tendsto_right_iff]intro M _have hev : ∀ᶠ y in 𝓝 x, ∀ i ∈ Finset.Ioc M J,(g y).coeff (-i) = (g x).coeff (-i) := byrw [Filter.eventually_all_finset]intro i _exact (hcoeff (-i)).continuousAt.eventually((isOpen_discrete {(g x).coeff (-i)}).mem_nhds rfl)filter_upwards [hev] with y hyintro i hirw [HahnSeries.coeff_sub, sub_eq_zero]by_cases hij : i ≤ J· exact hy i (Finset.mem_Ioc.mpr ⟨hi,hij⟩)· rw [hg y i (by omega), hg x i (by omega)]def stageSeries (J : ℤ) (c : ℤ → k) : LaurentSeries k :=HahnSeries.ofSuppBddBelow (fun n => if -J ≤ n then c n else 0)⟨-J, byintro n hnby_contra hexact hn (ite_eq_right h)⟩@[simp] lemma coeff_stageSeries (J : ℤ) (c : ℤ → k) (n : ℤ) :(stageSeries J c).coeff n = if -J ≤ n then c n else 0 := rfllemma stageSeries_mem (J : ℤ) (c : ℤ → k) : stageSeries J c ∈ poleLattice J := byintro i hirw [coeff_stageSeries, ite_eq_right (by omega)]lemma range_stageSeries (J : ℤ) :Set.range (stageSeries (k := k) J) = (poleLattice (k := k) J : Set (LaurentSeries k)) := byext fconstructor· rintro ⟨c,rfl⟩exact stageSeries_mem J c· intro hfrefine ⟨f.coeff, ?_⟩apply HahnSeries.extfunext nrw [coeff_stageSeries]split_ifs with hn· rfl· symmsimpa using hf (-n) (by omega)lemma continuous_stageSeries [UniformSpace k] [DiscreteTopology k] (J : ℤ) :Continuous (stageSeries (k := k) J) := byapply continuous_of_bounded_coefficients _ J (stageSeries_mem J)intro nsimp only [coeff_stageSeries]split_ifs· exact continuous_apply n· exact continuous_constlemma isCompact_poleLattice [Finite k] (J : ℤ) :IsCompact (poleLattice (k := k) J : Set (LaurentSeries k)) := bylet : UniformSpace k := ⊥rw [← range_stageSeries, ← Set.image_univ]exact isCompact_univ.image (continuous_stageSeries J)lemma isCompact_leadingTerm [Finite k] (j : ℤ) :IsCompact {f : LaurentSeries k | HasLeadingTerm f j} := bylet : UniformSpace k := ⊥exact (isCompact_poleLattice j).inter_right(isClosed_eq (LaurentSeries.uniformContinuous_coeff (-j)).continuous continuous_const)lemma isClosed_leadingTerm (j : ℤ) :IsClosed {f : LaurentSeries k | HasLeadingTerm f j} := bylet : UniformSpace k := ⊥exact (isClosed_poleLattice j).inter(isClosed_eq (LaurentSeries.uniformContinuous_coeff (-j)).continuous continuous_const)lemma unmatched_iff_increments_zero (A : Matrix ℤ ℤ k)(hA : RankMatching.Triangular A) (j : ℤ) :(∀ l, ¬ RankMatching.Matched A l j) ↔ ∀ L, RankMatching.increment A L j = 0 := byconstructor· intro h Lby_cases hLj : L ≤ j· have hw : ∀ l, RankMatching.weight A l j = 0 := fun l =>(RankMatching.weight_zero_or_one A hA l j).resolve_right (h l)have hs := RankMatching.sum_interval_difference(fun l => (RankMatching.increment A l j : ℤ)) L j (by omega)simp_rw [← RankMatching.weight_eq_increment_sub A hA, hw] at hsrw [RankMatching.increment_zero A hA (show j < j + 1 by omega)] at hssimpa using hs.symm· exact RankMatching.increment_zero A hA (by omega)· intro h l hmhave hi := (RankMatching.matched_iff_increments A hA l j).mp hmrw [h l] at hiexact Nat.zero_ne_one hi.1theorem unmatched_iff_kernel [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (j : ℤ) :(∀ l, ¬ RankMatching.Matched (matrixOf a) l j) ↔∃ f, a f = 0 ∧ HasLeadingTerm f j := byrw [unmatched_iff_increments_zero _ (matrixOf_triangular a ha)]constructor· intro hlet S : ℤ → Set (LaurentSeries k) := fun L =>{f | HasLeadingTerm f j ∧ a f ∈ poleLattice (L - 1)}have hc : ∀ L, IsClosed (S L) := fun L =>(isClosed_leadingTerm j).inter((isClosed_poleLattice (L - 1)).preimage (continuous_of_preservesPoles a ha))have hk : ∀ L, IsCompact (S L) := fun L =>(isCompact_leadingTerm j).of_isClosed_subset (hc L) (fun _ h => h.1)have hn : ∀ L, (S L).Nonempty := fun L =>(increment_zero_iff_finite_solution a ha L j).mp (h L)have hd : Directed (fun s t : Set (LaurentSeries k) => s ⊇ t) S := byintro L Mrefine ⟨min L M, ?_, ?_⟩· intro f hfexact ⟨hf.1, poleLattice_mono (by omega) hf.2⟩· intro f hfexact ⟨hf.1, poleLattice_mono (by omega) hf.2⟩obtain ⟨f,hf⟩ := IsCompact.nonempty_iInter_of_directed_nonempty_isCompact_isClosed S hd hn hk hchave hf' : ∀ L, f ∈ S L := Set.mem_iInter.mp hfrefine ⟨f, ?_, (hf' j).1⟩apply HahnSeries.extfunext nsimpa using (hf' (-n)).2 (-n) (by omega)· rintro ⟨f,haf,hfj⟩ Lapply (increment_zero_iff_finite_solution a ha L j).mprexact ⟨f,hfj,haf ▸ (poleLattice (L - 1)).zero_mem⟩lemma rowRank_step (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A) (l J : ℤ) :RankMatching.blockRank A l J = RankMatching.blockRank A (l + 1) J +RankMatching.increment (RankMatching.reflected A) (-J) (-l) := byhave h := RankMatching.blockRank_step (RankMatching.reflected A)(RankMatching.triangular_reflected A hA) (-J) (-l)simpa only [RankMatching.blockRank_reflected, neg_neg, neg_sub,Int.reduceNeg, sub_neg_eq_add, add_comm] using hlemma matchedRow_iff_unequal_ranks (A : Matrix ℤ ℤ k)(hA : RankMatching.Triangular A) (l : ℤ) :(∃ j, RankMatching.Matched A l j) ↔∃ J, RankMatching.blockRank A l J ≠ RankMatching.blockRank A (l + 1) J := byhave hn : (∀ j, ¬ RankMatching.Matched A l j) ↔∀ J, RankMatching.blockRank A l J = RankMatching.blockRank A (l + 1) J := byhave hh := unmatched_iff_increments_zero (RankMatching.reflected A)(RankMatching.triangular_reflected A hA) (-l)constructor· intro h Jhave hh' : ∀ r, ¬ RankMatching.Matched (RankMatching.reflected A) r (-l) := byintro r hrapply h (-r)simpa only [RankMatching.Matched, RankMatching.weight_reflected, neg_neg] using hrrw [rowRank_step A hA l J, hh.mp hh' (-J), add_zero]· intro h j hmhave hh' : ∀ r, RankMatching.increment (RankMatching.reflected A) r (-l) = 0 := byintro rhave hs := rowRank_step A hA l (-r)rw [neg_neg, h (-r)] at hsomegaapply hh.mpr hh' (-j)simpa only [RankMatching.Matched, RankMatching.weight_reflected, neg_neg] using hmsimpa only [not_forall, not_not] using not_congr hnlemma exists_rowCut_kernel_of_unequal_ranks (A : Matrix ℤ ℤ k)(hA : RankMatching.Triangular A) (l J : ℤ)(hr : RankMatching.blockRank A l J ≠ RankMatching.blockRank A (l + 1) J) :∃ v ∈ RankMatching.columnSpace A l J,RankMatching.rowCut (l + 1) v = 0 ∧ v l ≠ 0 := bylet F : RankMatching.columnSpace A l J →ₗ[k] RankMatching.columnSpace A (l + 1) J :=(RankMatching.rowCut (l + 1)).restrict(fun _ hv => RankMatching.rowCut_columnSpace A (by omega) J hv)have hs : Function.Surjective F := byintro vhave hm : (v : ℤ → k) ∈ (RankMatching.columnSpace A l J).map(RankMatching.rowCut (l + 1)) := byrw [RankMatching.rowCut_map_columnSpace A (by omega)]exact v.propertyobtain ⟨w,hw,he⟩ := Submodule.mem_map.mp hmexact ⟨⟨w,hw⟩, Subtype.ext he⟩have hni : ¬ Function.Injective F := byintro hiapply hrhave he := (LinearEquiv.ofBijective F ⟨hi,hs⟩).finrank_eqsimpa only [RankMatching.blockRank_eq_finrank A hA] using hehave hk : F.ker ≠ ⊥ := fun h => hni (LinearMap.ker_eq_bot.mp h)obtain ⟨v,hv,hvz⟩ := F.ker.ne_bot_iff.mp hkhave hcut : RankMatching.rowCut (l + 1) (v : ℤ → k) = 0 :=congrArg Subtype.val (show F v = 0 from hv)refine ⟨v, v.property, hcut, ?_⟩intro hvlapply hvzapply Subtype.extfunext rrcases lt_trichotomy r l with hlt | heq | hgt· exact RankMatching.columnSpace_supported A l J v.property hlt· simpa [heq] using hvl· have he := congrFun hcut rsimpa [RankMatching.rowCut, hgt] using hetheorem matched_row_iff_image(a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (l : ℤ) :(∃ j, RankMatching.Matched (matrixOf a) l j) ↔∃ f, HasLeadingPosition (a f) l := byrw [matchedRow_iff_unequal_ranks _ (matrixOf_triangular a ha)]constructor· rintro ⟨J,hJ⟩obtain ⟨v,hv,hcut,hvl⟩ := exists_rowCut_kernel_of_unequal_ranks(matrixOf a) (matrixOf_triangular a ha) l J hJrw [columnSpace_eq_projectedImage a ha] at hvobtain ⟨z,⟨f,hf,rfl⟩,rfl⟩ := hvrefine ⟨f, ?_, ?_⟩· intro i hihave he := congrFun hcut isimpa [RankMatching.rowCut, poleProjection, hi,show l ≤ i by omega] using he· simpa [poleProjection] using hvl· rintro ⟨f,hf,hfl⟩obtain ⟨J,hJ⟩ := exists_poleLattice frefine ⟨J, ?_⟩intro heqhave hv : poleProjection l (a f) ∈ RankMatching.columnSpace (matrixOf a) l J := byrw [columnSpace_eq_projectedImage a ha]exact ⟨a f,⟨f,hJ,rfl⟩,rfl⟩have hcut : RankMatching.rowCut (l + 1) (poleProjection l (a f)) = 0 := byext iby_cases hi : l + 1 ≤ i· simp [RankMatching.rowCut, poleProjection, show l ≤ i by omega,hf i (by omega)]· simp [RankMatching.rowCut, show ¬ l < i by omega]have hi := RankMatching.rowCut_injOn_of_equal_ranks(matrixOf a) (matrixOf_triangular a ha) l J heqhave he : poleProjection l (a f) = 0 := hi hv (Submodule.zero_mem _) (by simpa using hcut)apply hflsimpa [poleProjection] using congrFun he ldef stageImage (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :Submodule k (LaurentSeries k) := (poleLattice J).map alemma stageImage_mono (a : LaurentSeries k →ₗ[k] LaurentSeries k) : Monotone (stageImage a) := byintro I J hexact Submodule.map_mono (poleLattice_mono h)lemma stageImage_le_poleLattice (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) (J : ℤ) : stageImage a J ≤ poleLattice J := byrintro z ⟨f,hf,rfl⟩exact ha J f hflemma stageImage_step (a : LaurentSeries k →ₗ[k] LaurentSeries k) (j : ℤ) :stageImage a j = stageImage a (j - 1) ⊔ Submodule.span k {a (monomial j)} := byapply le_antisymm· rintro z ⟨f,hf,rfl⟩have ht : f - f.coeff (-j) • monomial j ∈ poleLattice (j - 1) := byintro i hiby_cases hij : i = j· subst i; simp [HahnSeries.coeff_sub, HahnSeries.coeff_smul]· simp [HahnSeries.coeff_sub, HahnSeries.coeff_smul, coeff_monomial, hij,hf i (by omega)]apply Submodule.mem_sup.mprrefine ⟨a (f - f.coeff (-j) • monomial j), ⟨_,ht,rfl⟩,f.coeff (-j) • a (monomial j),Submodule.smul_mem _ _ (Submodule.subset_span (Set.mem_singleton _)), ?_⟩simp· apply sup_le (stageImage_mono a (by omega))rw [Submodule.span_singleton_le_iff_mem]exact ⟨monomial j, monomial_mem le_rfl, rfl⟩lemma monomial_image_mem_iff_unmatched [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (j : ℤ) :a (monomial j) ∈ stageImage a (j - 1) ↔∀ l, ¬ RankMatching.Matched (matrixOf a) l j := byrw [unmatched_iff_kernel a ha]constructor· rintro ⟨g,hg,he⟩refine ⟨monomial j - g, by simp [he], ?_, ?_⟩· intro i hisimp [HahnSeries.coeff_sub, coeff_monomial, show i ≠ j by omega, hg i (by omega)]· simp [HahnSeries.coeff_sub, hg j (by omega)]· rintro ⟨f,haf,hf,hfj⟩refine ⟨monomial j - f, ?_, by simp [haf]⟩intro i hiby_cases hij : i = j· subst i; simp [HahnSeries.coeff_sub, hfj]· simp [HahnSeries.coeff_sub, coeff_monomial, hij, hf i (by omega)]def imageModulo (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :Submodule k (LaurentSeries k ⧸ stageImage a J) :=(stageImage a N).map (stageImage a J).mkQlemma imageModulo_mono (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :Monotone (imageModulo a J) := fun _ _ h => Submodule.map_mono (stageImage_mono a h)lemma imageModulo_zero (a : LaurentSeries k →ₗ[k] LaurentSeries k) {J N : ℤ} (h : N ≤ J) :imageModulo a J N = ⊥ := byapply le_antisymm _ bot_lerw [imageModulo, Submodule.map_le_iff_le_comap, Submodule.comap_bot, Submodule.ker_mkQ]exact stageImage_mono a hlemma imageModulo_step (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J n : ℤ) :imageModulo a J n = imageModulo a J (n - 1) ⊔Submodule.span k {(stageImage a J).mkQ (a (monomial n))} := byrw [imageModulo, stageImage_step a n, Submodule.map_sup, Submodule.map_span, Set.image_singleton]rfllemma imageModulo_finite (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :FiniteDimensional k (imageModulo a J N) := byby_cases h : J ≤ N· induction N, h using Int.leInduction with| base => rw [imageModulo_zero a le_rfl]; infer_instance| succ n hn ih =>rw [imageModulo_step, add_sub_cancel_right]let := ihinfer_instance· rw [imageModulo_zero a (by omega)]infer_instancelemma mem_imageModulo (a : LaurentSeries k →ₗ[k] LaurentSeries k) {J N : ℤ}(h : J ≤ N) (f : LaurentSeries k) :(stageImage a J).mkQ f ∈ imageModulo a J N ↔ f ∈ stageImage a N := bychange f ∈ ((stageImage a N).map (stageImage a J).mkQ).comap (stageImage a J).mkQ ↔ _rw [Submodule.comap_map_eq, Submodule.ker_mkQ, sup_eq_left.mpr (stageImage_mono a h)]open scoped Classicallemma imageModulo_finrank_step [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) {J n : ℤ}(h : J < n) :Module.finrank k (imageModulo a J n) = Module.finrank k (imageModulo a J (n - 1)) +if ∃ l, RankMatching.Matched (matrixOf a) l n then 1 else 0 := byclassicallet := imageModulo_finite a J (n - 1)rw [imageModulo_step, RankMatching.finrank_sup_singleton,mem_imageModulo a (by omega), monomial_image_mem_iff_unmatched a ha]by_cases hm : ∃ l, RankMatching.Matched (matrixOf a) l n· have hn : ¬ (∀ l, ¬ RankMatching.Matched (matrixOf a) l n) :=fun hh => hh hm.choose hm.choose_specsimp [hm, hn]· simp [show ∀ l, ¬ RankMatching.Matched (matrixOf a) l n from fun l hl => hm ⟨l,hl⟩]lemma imageModulo_finrank [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (J N : ℤ) :Module.finrank k (imageModulo a J N) =∑ j ∈ Finset.Ioc J N, if ∃ l, RankMatching.Matched (matrixOf a) l j then 1 else 0 := byclassicalby_cases h : J ≤ N· induction N, h using Int.leInduction with| base => rw [imageModulo_zero a (J := J) (N := J) le_rfl, finrank_bot]; simp| succ n hn ih =>have he : Finset.Ioc J (n + 1) = insert (n + 1) (Finset.Ioc J n) := byext isimp only [Finset.mem_Ioc, Finset.mem_insert]omegarw [imageModulo_finrank_step a ha (by omega), add_sub_cancel_right, ih,he, Finset.sum_insert (by simp)]omega· rw [imageModulo_zero a (by omega), finrank_bot, Finset.Ioc_eq_empty_of_le (by omega),Finset.sum_empty]lemma matched_le (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A) {l j : ℤ}(h : RankMatching.Matched A l j) : l ≤ j := byby_contra hnhave hz := RankMatching.increment_zero A hA (lt_of_not_ge hn)have ho := ((RankMatching.matched_iff_increments A hA l j).mp h).1omegadef columnMatches (A : Matrix ℤ ℤ k) (J N : ℤ) : Set (ℤ × ℤ) :={p | RankMatching.Matched A p.1 p.2 ∧ J < p.2 ∧ p.2 ≤ N}def crossingStageMatches (A : Matrix ℤ ℤ k) (J N : ℤ) : Set (ℤ × ℤ) :={p | RankMatching.Matched A p.1 p.2 ∧ p.1 ≤ J ∧ J < p.2 ∧ p.2 ≤ N}lemma columnMatches_snd_inj (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)(J N : ℤ) : Set.InjOn Prod.snd (columnMatches A J N) := byrintro ⟨l,j⟩ hp ⟨l',j'⟩ hq hechange j = j' at hesubst j'exact Prod.ext (RankMatching.column_unique A hA hp.1 hq.1) rfllemma columnMatches_finite (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)(J N : ℤ) : (columnMatches A J N).Finite := byexact Set.Finite.of_injOn (fun _ hp => hp.2) (columnMatches_snd_inj A hA J N)(Set.finite_Ioc J N)lemma columnMatches_ncard (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)(J N : ℤ) : (columnMatches A J N).ncard =∑ j ∈ Finset.Ioc J N, if ∃ l, RankMatching.Matched A l j then 1 else 0 := byclassicalhave he : Prod.snd '' columnMatches A J N =↑((Finset.Ioc J N).filter (fun j => ∃ l, RankMatching.Matched A l j)) := byext jsimp only [Set.mem_image, columnMatches, Set.mem_ofPred_eq, Finset.mem_coe,Finset.mem_filter, Finset.mem_Ioc]constructor· rintro ⟨⟨l,j'⟩,⟨hm,hJ,hN⟩,rfl⟩exact ⟨⟨hJ,hN⟩,l,hm⟩· rintro ⟨⟨hJ,hN⟩,l,hm⟩exact ⟨(l,j),⟨hm,hJ,hN⟩,rfl⟩rw [← (columnMatches_snd_inj A hA J N).ncard_image, he,Set.ncard_coe_finset, Finset.sum_boole]rfllemma columnMatches_partition (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)(J N : ℤ) :(columnMatches A J N).ncard = (crossingStageMatches A J N).ncard +RankMatching.blockRank A (J + 1) N := byclassicallet high := ((Finset.Icc (J + 1) N ×ˢ Finset.Icc (J + 1) N).filter(fun p : ℤ × ℤ => RankMatching.Matched A p.1 p.2))have he : columnMatches A J N = crossingStageMatches A J N ∪ (high : Set (ℤ × ℤ)) := byext psimp only [columnMatches, crossingStageMatches, Set.mem_ofPred_eq, Set.mem_union,high, Finset.mem_coe, Finset.mem_filter, Finset.mem_product, Finset.mem_Icc]constructor· rintro ⟨hm,hJ,hN⟩by_cases hl : p.1 ≤ J· exact Or.inl ⟨hm,hl,hJ,hN⟩· have hh := matched_le A hA hmexact Or.inr ⟨⟨⟨by omega,by omega⟩,⟨by omega,hN⟩⟩,hm⟩· rintro (⟨hm,hl,hJ,hN⟩ | ⟨⟨hl,hj⟩,hm⟩)· exact ⟨hm,hJ,hN⟩· exact ⟨hm,by omega,hj.2⟩have hd : Disjoint (crossingStageMatches A J N) (high : Set (ℤ × ℤ)) := byapply Set.disjoint_left.mprintro p hp hqsimp only [high, Finset.mem_coe, Finset.mem_filter, Finset.mem_product,Finset.mem_Icc] at hqhave hh := hp.2.1omegahave hf : (crossingStageMatches A J N).Finite :=(columnMatches_finite A hA J N).subset (fun _ h => ⟨h.1,h.2.2⟩)rw [he, Set.ncard_union_eq hd hf high.finite_toSet, Set.ncard_coe_finset,RankMatching.rank_eq_count A hA]rfllemma imageModulo_finrank_partition [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (J N : ℤ) :Module.finrank k (imageModulo a J N) =(crossingStageMatches (matrixOf a) J N).ncard + RankMatching.blockRank (matrixOf a) (J + 1) N := byrw [imageModulo_finrank a ha, ← columnMatches_ncard _ (matrixOf_triangular a ha),columnMatches_partition _ (matrixOf_triangular a ha)]lemma stageImage_le_ker_projection (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) (J : ℤ) : stageImage a J ≤ (poleProjection (J + 1)).ker := byintro f hfchange poleProjection (J + 1) f = 0apply poleProjection_eq_zero.mprsimpa using stageImage_le_poleLattice a ha J hfdef quotientProjection (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) (J : ℤ) :(LaurentSeries k ⧸ stageImage a J) →ₗ[k] (ℤ → k) :=(stageImage a J).liftQ (poleProjection (J + 1)) (stageImage_le_ker_projection a ha J)@[simp] lemma quotientProjection_mkQ (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) (J : ℤ) (f : LaurentSeries k) :quotientProjection a ha J ((stageImage a J).mkQ f) = poleProjection (J + 1) f := rfldef crossingStage (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :Submodule k (LaurentSeries k ⧸ stageImage a J) :=(stageImage a N ⊓ poleLattice J).map (stageImage a J).mkQlemma crossingStage_mono (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :Monotone (crossingStage a J) := fun _ _ h =>Submodule.map_mono (inf_le_inf_right _ (stageImage_mono a h))lemma crossingStage_finite (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :FiniteDimensional k (crossingStage a J N) := bylet := imageModulo_finite a J Nexact Submodule.finiteDimensional_of_le (show crossingStage a J N ≤ imageModulo a J Nfrom Submodule.map_mono inf_le_left)lemma crossingStage_eq_inf (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) (J N : ℤ) :crossingStage a J N = imageModulo a J N ⊓ (quotientProjection a ha J).ker := byext zconstructor· rintro ⟨f,⟨hf,hJ⟩,rfl⟩exact ⟨⟨f,hf,rfl⟩, poleProjection_eq_zero.mpr (by simpa using hJ)⟩· rintro ���⟨f,hf,rfl⟩,hz⟩refine ⟨f,⟨hf,?_⟩,rfl⟩have he : poleProjection (J + 1) f = 0 := hzsimpa using poleProjection_eq_zero.mp helemma quotientProjection_stage_range (a : LaurentSeries k →ₗ[k] LaurentSeries k)(ha : PreservesPoles a) (J N : ℤ) :((quotientProjection a ha J).domRestrict (imageModulo a J N)).range =RankMatching.columnSpace (matrixOf a) (J + 1) N := byrw [LinearMap.range_domRestrict, columnSpace_eq_projectedImage a ha]ext vconstructor· rintro ⟨z,⟨f,hf,rfl⟩,rfl⟩exact ⟨f,hf,rfl⟩· rintro ⟨f,hf,rfl⟩exact ⟨(stageImage a J).mkQ f, ⟨f,hf,rfl⟩,rfl⟩lemma crossingStage_finrank [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (J N : ℤ) :Module.finrank k (crossingStage a J N) = (crossingStageMatches (matrixOf a) J N).ncard := bylet := imageModulo_finite a J Nlet f := (quotientProjection a ha J).domRestrict (imageModulo a J N)have hr := LinearMap.finrank_range_add_finrank_ker fhave hk : Module.finrank k f.ker = Module.finrank k (crossingStage a J N) := byrw [← Submodule.finrank_map_subtype_eq (imageModulo a J N) f.ker,show f.ker = ((quotientProjection a ha J).ker).comap (imageModulo a J N).subtypefrom LinearMap.ker_domRestrict _ _,Submodule.map_comap_subtype, ← crossingStage_eq_inf a ha]have hi : Module.finrank k f.range = RankMatching.blockRank (matrixOf a) (J + 1) N := byrw [quotientProjection_stage_range, ← RankMatching.blockRank_eq_finrank _ (matrixOf_triangular a ha)]rw [hk,hi,imageModulo_finrank_partition a ha] at hromegadef crossingSpace (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :Submodule k (LaurentSeries k ⧸ stageImage a J) :=(a.range ⊓ poleLattice J).map (stageImage a J).mkQlemma crossingStage_le_space (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :crossingStage a J N ≤ crossingSpace a J := byapply Submodule.map_monoapply inf_le_inf_rightrintro f ⟨g,hg,rfl⟩exact ⟨g,rfl⟩lemma crossingSpace_stabilizes [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)(J : ℤ) (hc : (crossing a J).Finite) :∃ N : ℤ, J ≤ N ∧ crossingSpace a J = crossingStage a J N ∧crossingStageMatches (matrixOf a) J N = crossing a J := byobtain ⟨b,hb⟩ := (hc.image Prod.snd).bddAbovelet N := max J bhave he (M : ℤ) (hM : N ≤ M) :crossingStageMatches (matrixOf a) J M = crossing a J := byext pconstructor· intro hpexact ⟨hp.1,hp.2.1,hp.2.2.1⟩· intro hpexact ⟨hp.1,hp.2.1,hp.2.2,le_trans (hb ⟨p,hp,rfl⟩) (le_trans (le_max_right J b) hM)⟩refine ⟨N, le_max_left _ _, ?_, he N le_rfl⟩apply le_antisymm _ (crossingStage_le_space a J N)rintro z ⟨f,⟨⟨x,hx⟩,hf⟩,rfl⟩obtain ⟨M,hM⟩ := exists_poleLattice xhave heq : crossingStage a J N = crossingStage a J (max N M) := bylet := crossingStage_finite a J (max N M)apply Submodule.eq_of_le_of_finrank_eq (crossingStage_mono a J (le_max_left _ _))rw [crossingStage_finrank a ha, crossingStage_finrank a ha,he N le_rfl, he (max N M) (le_max_left _ _)]rw [heq]exact ⟨f,⟨⟨x,poleLattice_mono (le_max_right N M) hM,hx⟩,hf⟩,rfl⟩def crossingQuotientEquiv (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :crossingQuotient a J ≃ₗ[k] crossingSpace a J := bylet I := a.range ⊓ poleLattice (k := k) Jlet f := (stageImage a J).mkQ.domRestrict Ihave hk : f.ker = (stageImage a J).comap I.subtype := byrw [LinearMap.ker_domRestrict, Submodule.ker_mkQ]exact (Submodule.quotEquivOfEq _ _ hk.symm).trans(f.quotKerEquivRange.trans (LinearEquiv.ofEq _ _ (LinearMap.range_domRestrict _ _)))theorem crossing_dimension [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)(hc : ∀ J, (crossing a J).Finite) (J : ℤ) :FiniteDimensional k (crossingQuotient a J) ∧Module.finrank k (crossingQuotient a J) = (crossing a J).ncard := byobtain ⟨N,hN,he,hcN⟩ := crossingSpace_stabilizes a ha J (hc J)have : FiniteDimensional k (crossingSpace a J) := byrw [he]exact crossingStage_finite a J Nrefine ⟨(crossingQuotientEquiv a J).symm.finiteDimensional, ?_⟩rw [(crossingQuotientEquiv a J).finrank_eq, he, crossingStage_finrank a ha, hcN]lemma range_inf_stabilizes [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)(J : ℤ) (hc : (crossing a J).Finite) :∃ N : ℤ, a.range ⊓ poleLattice J = stageImage a N ⊓ poleLattice J := byobtain ⟨N,hN,he,_⟩ := crossingSpace_stabilizes a ha J hcrefine ⟨N,le_antisymm ?_ ?_⟩· intro f hfhave hq : (stageImage a J).mkQ f ∈ crossingStage a J N := byrw [← he]exact ⟨f,hf,rfl⟩have hi : (stageImage a J).mkQ f ∈ imageModulo a J N :=(Submodule.map_mono (show stageImage a N ⊓ poleLattice J ≤ stageImage a Nfrom inf_le_left)) hqexact ⟨(mem_imageModulo a hN f).mp hi,hf.2⟩· rintro f ⟨⟨x,hx,rfl⟩,hf⟩exact ⟨⟨x,rfl⟩,hf⟩lemma isCompact_range_inter_poleLattice [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)(J : ℤ) (hc : (crossing a J).Finite) :IsCompact ((Set.range a) ∩ (poleLattice (k := k) J : Set (LaurentSeries k))) := byobtain ⟨N,he⟩ := range_inf_stabilizes a ha J hcchange IsCompact (↑(a.range ⊓ poleLattice J) : Set (LaurentSeries k))rw [he]change IsCompact ((a '' (poleLattice (k := k) N : Set (LaurentSeries k))) ∩(poleLattice (k := k) J : Set (LaurentSeries k)))exact ((isCompact_poleLattice N).image (continuous_of_preservesPoles a ha)).inter_right(isClosed_poleLattice J)theorem closed_image [Finite k](a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)(hc : ∀ J, (crossing a J).Finite) :IsClosed (Set.range a) := byrw [← isOpen_compl_iff, isOpen_iff_forall_mem_open]intro f hfobtain ⟨J,hJ⟩ := exists_poleLattice frefine ⟨(poleLattice (k := k) J : Set (LaurentSeries k)) ∩((Set.range a) ∩ (poleLattice (k := k) J : Set (LaurentSeries k)))ᶜ, ?_, ?_, ?_⟩· intro g hg hgaexact hg.2 ⟨hga,hg.1⟩· exact (isOpen_poleLattice J).inter(isCompact_range_inter_poleLattice a ha J (hc J)).isClosed.isOpen_compl· exact ⟨hJ,fun h => hf h.1⟩end HahnWilson.PivotTopologyendend OAI
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071import Mathlibnamespace OAI/-! Maps of based generalized loops and homotopy groups. -/noncomputable sectionuniverse u v wnamespace NearbyLagrangian.BasedHomotopyopen scoped Topology Topology.Homotopyvariable {N X Y Z : Type*} [TopologicalSpace X] [TopologicalSpace Y] [TopologicalSpace Z]variable {x : X} {y : Y} {z : Z}def loopMap (e : C(X,Y)) (he : e x = y) (f : GenLoop N X x) : GenLoop N Y y :=⟨e.comp f.1,fun t ht => (congrArg e (GenLoop.boundary f t ht)).trans he⟩lemma loopMap_homotopic (e : C(X,Y)) (he : e x = y) {f g : GenLoop N X x}(h : GenLoop.Homotopic f g) : GenLoop.Homotopic (loopMap e he f) (loopMap e he g) := byobtain ⟨H⟩ := hexact ⟨H.compContinuousMap e⟩@[simp] theorem loopMap_const (e : C(X,Y)) (he : e x = y) :loopMap (N:=N) e he GenLoop.const = GenLoop.const := by ext t; exact he@[simp] theorem loopMap_id (f : GenLoop N X x) : loopMap (ContinuousMap.id X) rfl f = f := byext t; rfl@[simp] theorem loopMap_comp (e : C(X,Y)) (he : e x = y) (d : C(Y,Z)) (hd : d y = z)(f : GenLoop N X x) : loopMap d hd (loopMap e he f) =loopMap (d.comp e) ((congrArg d he).trans hd) f := byext t; rfllemma loopMap_transAt [DecidableEq N] (e : C(X,Y)) (he : e x = y)(i : N) (f g : GenLoop N X x) : loopMap e he (GenLoop.transAt i f g) =GenLoop.transAt i (loopMap e he f) (loopMap e he g) := byext tsimp only [loopMap,GenLoop.mk_apply,ContinuousMap.comp_apply,GenLoop.transAt,GenLoop.coe_copy,GenLoop.coe_coe]split_ifs <;> rfldef groupMap [DecidableEq N] [Nonempty N] (e : C(X,Y)) (he : e x = y) :HomotopyGroup N X x →* HomotopyGroup N Y y wheretoFun := Quotient.map (loopMap e he) (fun _ _ h => loopMap_homotopic e he h)map_one' := byrw [HomotopyGroup.one_def,HomotopyGroup.one_def]change Quotient.mk'' (loopMap e he GenLoop.const) = Quotient.mk'' GenLoop.constrw [loopMap_const]map_mul' a b := Quotient.inductionOn₂ a b fun f g => bysimp only [HomotopyGroup.mul_spec (i:=Classical.arbitrary N)]change (⟦loopMap e he (GenLoop.transAt (Classical.arbitrary N) g f)⟧ : HomotopyGroup N Y y) =((· * ·) : HomotopyGroup N Y y → HomotopyGroup N Y y → HomotopyGroup N Y y)⟦loopMap e he f⟧ ⟦loopMap e he g⟧rw [HomotopyGroup.mul_spec (i:=Classical.arbitrary N),loopMap_transAt]@[simp] theorem groupMap_id [DecidableEq N] [Nonempty N] (a : HomotopyGroup N X x) :groupMap (ContinuousMap.id X) rfl a = a := byinduction a using Quotient.inductionOn with| h f => change Quotient.mk'' (loopMap _ _ f) = _; rw [loopMap_id]; rfl@[simp] theorem groupMap_comp [DecidableEq N] [Nonempty N](e : C(X,Y)) (he : e x = y) (d : C(Y,Z)) (hd : d y = z) (a : HomotopyGroup N X x) :groupMap d hd (groupMap e he a) = groupMap (d.comp e) ((congrArg d he).trans hd) a := byinduction a using Quotient.inductionOn with| h f => change Quotient.mk'' (loopMap _ _ (loopMap _ _ f)) = _; rw [loopMap_comp]; rflend NearbyLagrangian.BasedHomotopyendend OAI1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071import Mathlibnamespace OAI/-! Maps of based generalized loops and homotopy groups. -/noncomputable sectionuniverse u v wnamespace NearbyLagrangian.BasedHomotopyopen scoped Topology Topology.Homotopyvariable {N X Y Z : Type*} [TopologicalSpace X] [TopologicalSpace Y] [TopologicalSpace Z]variable {x : X} {y : Y} {z : Z}def loopMap (e : C(X,Y)) (he : e x = y) (f : GenLoop N X x) : GenLoop N Y y :=⟨e.comp f.1,fun t ht => (congrArg e (GenLoop.boundary f t ht)).trans he⟩lemma loopMap_homotopic (e : C(X,Y)) (he : e x = y) {f g : GenLoop N X x}(h : GenLoop.Homotopic f g) : GenLoop.Homotopic (loopMap e he f) (loopMap e he g) := byobtain ⟨H⟩ := hexact ⟨H.compContinuousMap e⟩@[simp] theorem loopMap_const (e : C(X,Y)) (he : e x = y) :loopMap (N:=N) e he GenLoop.const = GenLoop.const := by ext t; exact he@[simp] theorem loopMap_id (f : GenLoop N X x) : loopMap (ContinuousMap.id X) rfl f = f := byext t; rfl@[simp] theorem loopMap_comp (e : C(X,Y)) (he : e x = y) (d : C(Y,Z)) (hd : d y = z)(f : GenLoop N X x) : loopMap d hd (loopMap e he f) =loopMap (d.comp e) ((congrArg d he).trans hd) f := byext t; rfllemma loopMap_transAt [DecidableEq N] (e : C(X,Y)) (he : e x = y)(i : N) (f g : GenLoop N X x) : loopMap e he (GenLoop.transAt i f g) =GenLoop.transAt i (loopMap e he f) (loopMap e he g) := byext tsimp only [loopMap,GenLoop.mk_apply,ContinuousMap.comp_apply,GenLoop.transAt,GenLoop.coe_copy,GenLoop.coe_coe]split_ifs <;> rfldef groupMap [DecidableEq N] [Nonempty N] (e : C(X,Y)) (he : e x = y) :HomotopyGroup N X x →* HomotopyGroup N Y y wheretoFun := Quotient.map (loopMap e he) (fun _ _ h => loopMap_homotopic e he h)map_one' := byrw [HomotopyGroup.one_def,HomotopyGroup.one_def]change Quotient.mk'' (loopMap e he GenLoop.const) = Quotient.mk'' GenLoop.constrw [loopMap_const]map_mul' a b := Quotient.inductionOn₂ a b fun f g => bysimp only [HomotopyGroup.mul_spec (i:=Classical.arbitrary N)]change (⟦loopMap e he (GenLoop.transAt (Classical.arbitrary N) g f)⟧ : HomotopyGroup N Y y) =((· * ·) : HomotopyGroup N Y y → HomotopyGroup N Y y → HomotopyGroup N Y y)⟦loopMap e he f⟧ ⟦loopMap e he g⟧rw [HomotopyGroup.mul_spec (i:=Classical.arbitrary N),loopMap_transAt]@[simp] theorem groupMap_id [DecidableEq N] [Nonempty N] (a : HomotopyGroup N X x) :groupMap (ContinuousMap.id X) rfl a = a := byinduction a using Quotient.inductionOn with| h f => change Quotient.mk'' (loopMap _ _ f) = _; rw [loopMap_id]; rfl@[simp] theorem groupMap_comp [DecidableEq N] [Nonempty N](e : C(X,Y)) (he : e x = y) (d : C(Y,Z)) (hd : d y = z) (a : HomotopyGroup N X x) :groupMap d hd (groupMap e he a) = groupMap (d.comp e) ((congrArg d he).trans hd) a := byinduction a using Quotient.inductionOn with| h f => change Quotient.mk'' (loopMap _ _ (loopMap _ _ f)) = _; rw [loopMap_comp]; rflend NearbyLagrangian.BasedHomotopyendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234import Mathlibimport OAI.Topology.Homotopy.FiberConenamespace OAI/-! Right suspension homotopies and suspension of maps and homotopies. -/noncomputable sectionuniverse u v wopen Set ContinuousMapopen scoped Topology unitIntervalnamespace NearbyLagrangian.FiberConevariable {B A X : Type*} [TopologicalSpace B] [TopologicalSpace A] [TopologicalSpace X]variable (f : C(A,X)) (p : C(X,B)) (q : C(A,B)) (hf : ∀ a, p (f a) = q a)def sweepBase : C(unitInterval × X,Susp p) := meridian pdef sweepRay : C(unitInterval × (unitInterval × A),Susp p) wheretoFun z := meridian p (max z.2.1 z.1,f z.2.2)continuous_toFun := (meridian p).continuous.comp(((continuous_fst.comp continuous_snd).max continuous_fst).prodMk(f.continuous.comp (continuous_snd.comp continuous_snd)))def sweepApex : C(unitInterval × B,Susp p) := (north p).comp ⟨Prod.snd,continuous_snd⟩lemma sweepRay_bottom (s : unitInterval) (a : A) :sweepRay f p (s,(0,a)) = sweepBase p (s,f a) := bychange meridian p (max 0 s,f a) = meridian p (s,f a)rw [max_eq_right (show (0:unitInterval) ≤ s from bot_le)]include hf inlemma sweepRay_top (s : unitInterval) (a : A) :sweepRay f p (s,(1,a)) = sweepApex p (s,q a) := bychange meridian p (max 1 s,f a) = north p (q a)rw [max_eq_left (show s ≤ (1:unitInterval) from le_top),ray_one,hf]def sweep : C(unitInterval × Space f q,Susp p) :=cylinderLift f q (sweepBase p) (sweepRay f p) (sweepApex p)(sweepRay_bottom f p) (sweepRay_top f p q hf)@[simp] lemma sweep_base (s : unitInterval) (x : X) :sweep f p q hf (s,base f q x) = meridian p (s,x) := rfl@[simp] lemma sweep_ray (s : unitInterval) (ta : unitInterval × A) :sweep f p q hf (s,ray f q ta) = meridian p (max ta.1 s,f ta.2) := rfl@[simp] lemma sweep_apex (s : unitInterval) (b : B) :sweep f p q hf (s,apex f q b) = north p b := rfllemma sweep_zero (z : Space f q) :sweep f p q hf (0,z) = suspMap f p q hf (collapse f p q hf z) := byinduction z using induction with| hbase x => rw [sweep_base,ray_zero,collapse_base,suspMap_south]| hray ta =>rw [sweep_ray,max_eq_left (show (0:unitInterval) ≤ ta.1 from bot_le),collapse_ray,suspMap_meridian]| hapex b => rw [sweep_apex,collapse_apex,suspMap_north]lemma sweep_one (z : Space f q) :sweep f p q hf (1,z) = north p (projection f p q hf z) := byinduction z using induction with| hbase x => rw [sweep_base,ray_one,projection_base]| hray ta =>rw [sweep_ray,max_eq_right (show ta.1 ≤ (1:unitInterval) from le_top),ray_one,hf,projection_ray]| hapex b => rfllemma sweep_over (s : unitInterval) (z : Space f q) :suspProjection p (sweep f p q hf (s,z)) = projection f p q hf z := byinduction z using induction with| hbase x => rfl| hray ta => exact hf ta.2| hapex b => rflnamespace Contractionvariable {f p q hf} (H : Contraction f p q hf)def rightRay : C(unitInterval × (unitInterval × X),Susp p) wheretoFun z := sweep f p q hf (horizontal (z.1,z.2.1),H.hom (vertical (z.1,z.2.1),base f q z.2.2))continuous_toFun := (sweep f p q hf).continuous.comp((horizontal.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk(H.hom.continuous.comp((vertical.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk((base f q).continuous.comp (continuous_snd.comp continuous_snd)))))lemma rightRay_bottom (s : unitInterval) (x : X) : H.rightRay (s,(0,x)) = south p (p x) := bychange sweep f p q hf (horizontal (s,0),H.hom (vertical (s,0),base f q x)) = _rw [horizontal_bottom,vertical_bottom,H.at_zero,sweep_base,ray_zero]lemma rightRay_top (s : unitInterval) (x : X) : H.rightRay (s,(1,x)) = north p (p x) := bychange sweep f p q hf (horizontal (s,1),H.hom (vertical (s,1),base f q x)) = _rcases square_top s with hx | hy· rw [hx,sweep_one,H.staysOver,projection_base]· rw [hy,H.at_one,projection_base,sweep_apex]def rightDeformation : C(unitInterval × Susp p,Susp p) :=cylinderLift p p ((south p).comp ⟨Prod.snd,continuous_snd⟩) H.rightRay((north p).comp ⟨Prod.snd,continuous_snd⟩) H.rightRay_bottom H.rightRay_top@[simp] lemma rightDeformation_south (s : unitInterval) (b : B) :H.rightDeformation (s,south p b) = south p b := rfl@[simp] lemma rightDeformation_meridian (s : unitInterval) (tx : unitInterval × X) :H.rightDeformation (s,meridian p tx) = H.rightRay (s,tx) := rfl@[simp] lemma rightDeformation_north (s : unitInterval) (b : B) :H.rightDeformation (s,north p b) = north p b := rfllemma rightDeformation_zero (z : Susp p) : H.rightDeformation (0,z) = z := byinduction z using induction with| hbase b => rfl| hray tx =>rw [rightDeformation_meridian]change sweep f p q hf (horizontal (0,tx.1),H.hom (vertical (0,tx.1),base f q tx.2)) = _rw [horizontal_left,vertical_left,H.at_zero,sweep_base]| hapex b => rfllemma rightDeformation_one (z : Susp p) :H.rightDeformation (1,z) = suspMap f p q hf (H.inverse z) := byinduction z using induction with| hbase b => rw [rightDeformation_south,inverse_south,suspMap_south]| hray tx =>rw [rightDeformation_meridian,inverse_meridian]change sweep f p q hf (horizontal (1,tx.1),H.hom (vertical (1,tx.1),base f q tx.2)) = _rw [horizontal_right,vertical_right,sweep_zero]| hapex b => rw [rightDeformation_north,inverse_north,suspMap_north]lemma rightDeformation_over (s : unitInterval) (z : Susp p) :suspProjection p (H.rightDeformation (s,z)) = suspProjection p z := byinduction z using induction with| hbase b => rfl| hray tx =>rw [rightDeformation_meridian]change suspProjection p (sweep f p q hf (horizontal (s,tx.1),H.hom (vertical (s,tx.1),base f q tx.2))) = _rw [sweep_over,H.staysOver,projection_base]rfl| hapex b => rfldef rightHomotopy : ((suspMap f p q hf).comp H.inverse).Homotopy (ContinuousMap.id (Susp p)) :=ContinuousMap.Homotopy.symm{ toContinuousMap := H.rightDeformationmap_zero_left := H.rightDeformation_zeromap_one_left := H.rightDeformation_one }lemma rightHomotopy_over (s : unitInterval) (z : Susp p) :suspProjection p (H.rightHomotopy (s,z)) = suspProjection p z :=H.rightDeformation_over (unitInterval.symm s) zend Contractionend NearbyLagrangian.FiberConeendnoncomputable sectionuniverse u v wopen Set ContinuousMapopen scoped Topology unitIntervalnamespace NearbyLagrangian.FiberConevariable {B A X Y : Type*} [TopologicalSpace B] [TopologicalSpace A][TopologicalSpace X] [TopologicalSpace Y]@[simp] lemma suspMap_id (q : C(A,B)) :suspMap (ContinuousMap.id A) q q (fun _ => rfl) = ContinuousMap.id (Susp q) := byext zinduction z using induction with| hbase _ => rfl| hray _ => rfl| hapex _ => rfllemma suspMap_comp (f : C(A,X)) (g : C(X,Y)) (p : C(X,B)) (q : C(A,B)) (r : C(Y,B))(hf : ∀ a, p (f a) = q a) (hg : ∀ x, r (g x) = p x) :(suspMap g r p hg).comp (suspMap f p q hf) =suspMap (g.comp f) r q (fun a => (hg (f a)).trans (hf a)) := byext zinduction z using induction with| hbase _ => rfl| hray _ => rfl| hapex _ => rflvariable {p : C(X,B)} {q : C(A,B)} {f g : C(A,X)}(hf : ∀ a, p (f a) = q a) (hg : ∀ a, p (g a) = q a)(H : f.Homotopy g) (hH : ∀ s a, p (H (s,a)) = q a)def suspHomotopyRay : C(unitInterval × (unitInterval × A),Susp p) :=(meridian p).comp ⟨fun z => (z.2.1,H (z.1,z.2.2)),(continuous_fst.comp continuous_snd).prodMk(H.continuous.comp (continuous_fst.prodMk (continuous_snd.comp continuous_snd)))⟩include hH inlemma suspHomotopyRay_bottom (s : unitInterval) (a : A) :suspHomotopyRay H (s,(0,a)) = south p (q a) := bychange meridian p (0,H (s,a)) = _rw [ray_zero,hH]include hH inlemma suspHomotopyRay_top (s : unitInterval) (a : A) :suspHomotopyRay H (s,(1,a)) = north p (q a) := bychange meridian p (1,H (s,a)) = _rw [ray_one,hH]def suspHomotopy : (suspMap f p q hf).Homotopy (suspMap g p q hg) wheretoContinuousMap := cylinderLift q q((south p).comp ⟨Prod.snd,continuous_snd⟩) (suspHomotopyRay H)((north p).comp ⟨Prod.snd,continuous_snd⟩)(suspHomotopyRay_bottom H hH) (suspHomotopyRay_top H hH)map_zero_left z := byinduction z using induction with| hbase _ => rfl| hray ta =>change meridian p (ta.1,H (0,ta.2)) = meridian p (ta.1,f ta.2)rw [HomotopyLike.map_zero_left H]| hapex _ => rflmap_one_left z := byinduction z using induction with| hbase _ => rfl| hray ta =>change meridian p (ta.1,H (1,ta.2)) = meridian p (ta.1,g ta.2)rw [HomotopyLike.map_one_left H]| hapex _ => rfllemma suspHomotopy_over (s : unitInterval) (z : Susp q) :suspProjection p (suspHomotopy hf hg H hH (s,z)) = suspProjection q z := byinduction z using induction with| hbase _ => rfl| hray ta => exact hH s ta.2| hapex _ => rflend NearbyLagrangian.FiberConeendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234import Mathlibimport OAI.Topology.Homotopy.FiberConenamespace OAI/-! Right suspension homotopies and suspension of maps and homotopies. -/noncomputable sectionuniverse u v wopen Set ContinuousMapopen scoped Topology unitIntervalnamespace NearbyLagrangian.FiberConevariable {B A X : Type*} [TopologicalSpace B] [TopologicalSpace A] [TopologicalSpace X]variable (f : C(A,X)) (p : C(X,B)) (q : C(A,B)) (hf : ∀ a, p (f a) = q a)def sweepBase : C(unitInterval × X,Susp p) := meridian pdef sweepRay : C(unitInterval × (unitInterval × A),Susp p) wheretoFun z := meridian p (max z.2.1 z.1,f z.2.2)continuous_toFun := (meridian p).continuous.comp(((continuous_fst.comp continuous_snd).max continuous_fst).prodMk(f.continuous.comp (continuous_snd.comp continuous_snd)))def sweepApex : C(unitInterval × B,Susp p) := (north p).comp ⟨Prod.snd,continuous_snd⟩lemma sweepRay_bottom (s : unitInterval) (a : A) :sweepRay f p (s,(0,a)) = sweepBase p (s,f a) := bychange meridian p (max 0 s,f a) = meridian p (s,f a)rw [max_eq_right (show (0:unitInterval) ≤ s from bot_le)]include hf inlemma sweepRay_top (s : unitInterval) (a : A) :sweepRay f p (s,(1,a)) = sweepApex p (s,q a) := bychange meridian p (max 1 s,f a) = north p (q a)rw [max_eq_left (show s ≤ (1:unitInterval) from le_top),ray_one,hf]def sweep : C(unitInterval × Space f q,Susp p) :=cylinderLift f q (sweepBase p) (sweepRay f p) (sweepApex p)(sweepRay_bottom f p) (sweepRay_top f p q hf)@[simp] lemma sweep_base (s : unitInterval) (x : X) :sweep f p q hf (s,base f q x) = meridian p (s,x) := rfl@[simp] lemma sweep_ray (s : unitInterval) (ta : unitInterval × A) :sweep f p q hf (s,ray f q ta) = meridian p (max ta.1 s,f ta.2) := rfl@[simp] lemma sweep_apex (s : unitInterval) (b : B) :sweep f p q hf (s,apex f q b) = north p b := rfllemma sweep_zero (z : Space f q) :sweep f p q hf (0,z) = suspMap f p q hf (collapse f p q hf z) := byinduction z using induction with| hbase x => rw [sweep_base,ray_zero,collapse_base,suspMap_south]| hray ta =>rw [sweep_ray,max_eq_left (show (0:unitInterval) ≤ ta.1 from bot_le),collapse_ray,suspMap_meridian]| hapex b => rw [sweep_apex,collapse_apex,suspMap_north]lemma sweep_one (z : Space f q) :sweep f p q hf (1,z) = north p (projection f p q hf z) := byinduction z using induction with| hbase x => rw [sweep_base,ray_one,projection_base]| hray ta =>rw [sweep_ray,max_eq_right (show ta.1 ≤ (1:unitInterval) from le_top),ray_one,hf,projection_ray]| hapex b => rfllemma sweep_over (s : unitInterval) (z : Space f q) :suspProjection p (sweep f p q hf (s,z)) = projection f p q hf z := byinduction z using induction with| hbase x => rfl| hray ta => exact hf ta.2| hapex b => rflnamespace Contractionvariable {f p q hf} (H : Contraction f p q hf)def rightRay : C(unitInterval × (unitInterval × X),Susp p) wheretoFun z := sweep f p q hf (horizontal (z.1,z.2.1),H.hom (vertical (z.1,z.2.1),base f q z.2.2))continuous_toFun := (sweep f p q hf).continuous.comp((horizontal.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk(H.hom.continuous.comp((vertical.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk((base f q).continuous.comp (continuous_snd.comp continuous_snd)))))lemma rightRay_bottom (s : unitInterval) (x : X) : H.rightRay (s,(0,x)) = south p (p x) := bychange sweep f p q hf (horizontal (s,0),H.hom (vertical (s,0),base f q x)) = _rw [horizontal_bottom,vertical_bottom,H.at_zero,sweep_base,ray_zero]lemma rightRay_top (s : unitInterval) (x : X) : H.rightRay (s,(1,x)) = north p (p x) := bychange sweep f p q hf (horizontal (s,1),H.hom (vertical (s,1),base f q x)) = _rcases square_top s with hx | hy· rw [hx,sweep_one,H.staysOver,projection_base]· rw [hy,H.at_one,projection_base,sweep_apex]def rightDeformation : C(unitInterval × Susp p,Susp p) :=cylinderLift p p ((south p).comp ⟨Prod.snd,continuous_snd⟩) H.rightRay((north p).comp ⟨Prod.snd,continuous_snd⟩) H.rightRay_bottom H.rightRay_top@[simp] lemma rightDeformation_south (s : unitInterval) (b : B) :H.rightDeformation (s,south p b) = south p b := rfl@[simp] lemma rightDeformation_meridian (s : unitInterval) (tx : unitInterval × X) :H.rightDeformation (s,meridian p tx) = H.rightRay (s,tx) := rfl@[simp] lemma rightDeformation_north (s : unitInterval) (b : B) :H.rightDeformation (s,north p b) = north p b := rfllemma rightDeformation_zero (z : Susp p) : H.rightDeformation (0,z) = z := byinduction z using induction with| hbase b => rfl| hray tx =>rw [rightDeformation_meridian]change sweep f p q hf (horizontal (0,tx.1),H.hom (vertical (0,tx.1),base f q tx.2)) = _rw [horizontal_left,vertical_left,H.at_zero,sweep_base]| hapex b => rfllemma rightDeformation_one (z : Susp p) :H.rightDeformation (1,z) = suspMap f p q hf (H.inverse z) := byinduction z using induction with| hbase b => rw [rightDeformation_south,inverse_south,suspMap_south]| hray tx =>rw [rightDeformation_meridian,inverse_meridian]change sweep f p q hf (horizontal (1,tx.1),H.hom (vertical (1,tx.1),base f q tx.2)) = _rw [horizontal_right,vertical_right,sweep_zero]| hapex b => rw [rightDeformation_north,inverse_north,suspMap_north]lemma rightDeformation_over (s : unitInterval) (z : Susp p) :suspProjection p (H.rightDeformation (s,z)) = suspProjection p z := byinduction z using induction with| hbase b => rfl| hray tx =>rw [rightDeformation_meridian]change suspProjection p (sweep f p q hf (horizontal (s,tx.1),H.hom (vertical (s,tx.1),base f q tx.2))) = _rw [sweep_over,H.staysOver,projection_base]rfl| hapex b => rfldef rightHomotopy : ((suspMap f p q hf).comp H.inverse).Homotopy (ContinuousMap.id (Susp p)) :=ContinuousMap.Homotopy.symm{ toContinuousMap := H.rightDeformationmap_zero_left := H.rightDeformation_zeromap_one_left := H.rightDeformation_one }lemma rightHomotopy_over (s : unitInterval) (z : Susp p) :suspProjection p (H.rightHomotopy (s,z)) = suspProjection p z :=H.rightDeformation_over (unitInterval.symm s) zend Contractionend NearbyLagrangian.FiberConeendnoncomputable sectionuniverse u v wopen Set ContinuousMapopen scoped Topology unitIntervalnamespace NearbyLagrangian.FiberConevariable {B A X Y : Type*} [TopologicalSpace B] [TopologicalSpace A][TopologicalSpace X] [TopologicalSpace Y]@[simp] lemma suspMap_id (q : C(A,B)) :suspMap (ContinuousMap.id A) q q (fun _ => rfl) = ContinuousMap.id (Susp q) := byext zinduction z using induction with| hbase _ => rfl| hray _ => rfl| hapex _ => rfllemma suspMap_comp (f : C(A,X)) (g : C(X,Y)) (p : C(X,B)) (q : C(A,B)) (r : C(Y,B))(hf : ∀ a, p (f a) = q a) (hg : ∀ x, r (g x) = p x) :(suspMap g r p hg).comp (suspMap f p q hf) =suspMap (g.comp f) r q (fun a => (hg (f a)).trans (hf a)) := byext zinduction z using induction with| hbase _ => rfl| hray _ => rfl| hapex _ => rflvariable {p : C(X,B)} {q : C(A,B)} {f g : C(A,X)}(hf : ∀ a, p (f a) = q a) (hg : ∀ a, p (g a) = q a)(H : f.Homotopy g) (hH : ∀ s a, p (H (s,a)) = q a)def suspHomotopyRay : C(unitInterval × (unitInterval × A),Susp p) :=(meridian p).comp ⟨fun z => (z.2.1,H (z.1,z.2.2)),(continuous_fst.comp continuous_snd).prodMk(H.continuous.comp (continuous_fst.prodMk (continuous_snd.comp continuous_snd)))⟩include hH inlemma suspHomotopyRay_bottom (s : unitInterval) (a : A) :suspHomotopyRay H (s,(0,a)) = south p (q a) := bychange meridian p (0,H (s,a)) = _rw [ray_zero,hH]include hH inlemma suspHomotopyRay_top (s : unitInterval) (a : A) :suspHomotopyRay H (s,(1,a)) = north p (q a) := bychange meridian p (1,H (s,a)) = _rw [ray_one,hH]def suspHomotopy : (suspMap f p q hf).Homotopy (suspMap g p q hg) wheretoContinuousMap := cylinderLift q q((south p).comp ⟨Prod.snd,continuous_snd⟩) (suspHomotopyRay H)((north p).comp ⟨Prod.snd,continuous_snd⟩)(suspHomotopyRay_bottom H hH) (suspHomotopyRay_top H hH)map_zero_left z := byinduction z using induction with| hbase _ => rfl| hray ta =>change meridian p (ta.1,H (0,ta.2)) = meridian p (ta.1,f ta.2)rw [HomotopyLike.map_zero_left H]| hapex _ => rflmap_one_left z := byinduction z using induction with| hbase _ => rfl| hray ta =>change meridian p (ta.1,H (1,ta.2)) = meridian p (ta.1,g ta.2)rw [HomotopyLike.map_one_left H]| hapex _ => rfllemma suspHomotopy_over (s : unitInterval) (z : Susp q) :suspProjection p (suspHomotopy hf hg H hH (s,z)) = suspProjection q z := byinduction z using induction with| hbase _ => rfl| hray ta => exact hH s ta.2| hapex _ => rflend NearbyLagrangian.FiberConeendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263import Mathlibnamespace OAI/-! Cubical free nullity and change of basepoint. -/noncomputable sectionuniverse u v wopen Set ContinuousMapopen scoped Topology Topology.Homotopynamespace NearbyLagrangian.CubicalFreeNullityvariable {N : Type*} [Fintype N] [Nonempty N]def radius (t : N → unitInterval) : ℝ := ‖fun i => 2*(t i:ℝ)-1‖omit [Nonempty N] inlemma radius_nonneg (t : N → unitInterval) : 0 ≤ radius t := norm_nonneg _omit [Nonempty N] inlemma radius_le_one (t : N → unitInterval) : radius t ≤ 1 := byapply (pi_norm_le_iff_of_nonneg (by norm_num : (0:ℝ) ≤ 1)).mprintro irw [Real.norm_eq_abs,abs_le]have hi₀ := (t i).property.1have hi₁ := (t i).property.2constructor <;> linarithomit [Nonempty N] inlemma continuous_radius : Continuous (radius (N:=N)) :=(continuous_pi fun i => (continuous_const.mul(continuous_subtype_val.comp (continuous_apply i))).sub continuous_const).normomit [Nonempty N] inlemma radius_boundary {t : N → unitInterval} (ht : t ∈ Cube.boundary N) : radius t = 1 := byapply le_antisymm (radius_le_one t)obtain ⟨i,hi⟩ := hthave hh := norm_le_pi_norm (fun i => 2*(t i:ℝ)-1) ircases hi with hi | hi· simpa [radius,hi] using hh· norm_num [hi] at hhexact hhdef collarTime (s : unitInterval) (t : N → unitInterval) : unitInterval :=⟨min (s:ℝ) (2*(1-radius t)),le_min s.property.1 (by have := radius_le_one t; linarith),(min_le_left _ _).trans s.property.2⟩omit [Nonempty N] inlemma continuous_collarTime : Continuous (fun a : unitInterval × (N → unitInterval) => collarTime a.1 a.2) :=((continuous_subtype_val.comp continuous_fst).min(continuous_const.mul (continuous_const.sub (continuous_radius.comp continuous_snd)))).subtype_mk _omit [Nonempty N] in@[simp] lemma collarTime_zero (t : N → unitInterval) : collarTime 0 t = 0 := byapply Subtype.extchange min 0 (2*(1-radius t)) = 0apply min_eq_lefthave := radius_le_one tlinarithomit [Nonempty N] inlemma collarTime_boundary (s : unitInterval) {t : N → unitInterval} (ht : t ∈ Cube.boundary N) :collarTime s t = 0 := byapply Subtype.extchange min (s:ℝ) (2*(1-radius t)) = 0rw [radius_boundary ht]simp only [sub_self,mul_zero,min_eq_right s.property.1]lemma denominator_pos (s : unitInterval) : 0 < 1-(s:ℝ)/2 := byhave := s.property.2linarithdef expand (s : unitInterval) (t : N → unitInterval) : N → unitInterval :=fun i => projIcc 0 1 (zero_le_one' ℝ) (((t i:ℝ)-(s:ℝ)/4)/(1-(s:ℝ)/2))omit [Fintype N] [Nonempty N] inlemma continuous_expand : Continuous (fun a : unitInterval × (N → unitInterval) => expand a.1 a.2) := byapply continuous_piintro iapply continuous_projIcc.compexact ((continuous_subtype_val.comp ((continuous_apply i).comp continuous_snd)).sub((continuous_subtype_val.comp continuous_fst).div_const 4)).div(continuous_const.sub ((continuous_subtype_val.comp continuous_fst).div_const 2))(fun a => ne_of_gt (denominator_pos a.1))omit [Fintype N] [Nonempty N] in@[simp] lemma expand_zero (t : N → unitInterval) : expand 0 t = t := byfunext ichange projIcc 0 1 _ (((t i:ℝ)-(0:ℝ)/4)/(1-(0:ℝ)/2)) = t isimp only [zero_div,sub_zero,div_one,projIcc_val]lemma expand_mem_boundary {s : unitInterval} {t : N → unitInterval}(ht : 1-(s:ℝ)/2 ≤ radius t) : expand s t ∈ Cube.boundary N := byobtain ⟨⟨i,hi⟩,_⟩ := IsGreatest.pi_norm (fun i => 2*(t i:ℝ)-1)have habs : 1-(s:ℝ)/2 ≤ |2*(t i:ℝ)-1| := bychange ‖2*(t i:ℝ)-1‖ = radius t at hirw [Real.norm_eq_abs] at hiexact ht.trans_eq hi.symmrcases (le_abs.mp habs) with h | h· refine ⟨i,Or.inr ?_⟩apply projIcc_of_right_leapply (le_div_iff₀ (denominator_pos s)).mprlinarith· refine ⟨i,Or.inl ?_⟩apply projIcc_of_le_leftapply div_nonpos_of_nonpos_of_nonneg _ (denominator_pos s).lelinarithlemma expand_boundary (s : unitInterval) {t : N → unitInterval} (ht : t ∈ Cube.boundary N) :expand s t ∈ Cube.boundary N := byapply expand_mem_boundaryrw [radius_boundary ht]have := s.property.1linarithvariable {X : Type*} [TopologicalSpace X]theorem null_of_moving_base {x y : X} (f : GenLoop N X x)(H : f.1.Homotopy (ContinuousMap.const _ y))(p : C(unitInterval,X))(hp : ∀ s t, t ∈ Cube.boundary N → H (s,t) = p s) :GenLoop.Homotopic f GenLoop.const := bylet z : N → unitInterval := fun _ => 0have hz : z ∈ Cube.boundary N := ⟨Classical.choice inferInstance,Or.inl rfl⟩have hp0 : p 0 = x := byrw [← hp 0 z hz,H.apply_zero]exact GenLoop.boundary f z hzhave hp1 : p 1 = y := by rw [← hp 1 z hz,H.apply_one]; rfllet a : C(N → unitInterval,X) := p.comp ⟨fun t => collarTime 1 t,continuous_collarTime.comp (continuous_const.prodMk continuous_id)⟩have ha (t : N → unitInterval) : H (collarTime 1 t,expand 1 t) = a t := bychange H (collarTime 1 t,expand 1 t) = p (collarTime 1 t)by_cases ht : collarTime 1 t = 1· rw [ht,H.apply_one,hp1]; rfl· apply hpapply expand_mem_boundaryhave hk : (collarTime 1 t:ℝ) < 1 := lt_of_le_of_ne (collarTime 1 t).property.2(fun h => ht (Subtype.ext h))change min 1 (2*(1-radius t)) < 1 at hkhave hr : 2*(1-radius t) < 1 := by simpa only [min_lt_iff,lt_self_iff_false,false_or] using hkchange 1-(1:ℝ)/2 ≤ radius tlinarithlet H₁ : f.1.HomotopyRel a (Cube.boundary N) := {toFun := fun q => H (collarTime q.1 q.2,expand q.1 q.2)continuous_toFun := H.continuous.comp (continuous_collarTime.prodMk continuous_expand)map_zero_left := by intro t; simp only [collarTime_zero,expand_zero,H.apply_zero]map_one_left := haprop' := byintro s t htchange H (collarTime s t,expand s t) = f trw [collarTime_boundary s ht,hp 0 _ (expand_boundary s ht),hp0,GenLoop.boundary f t ht] }let H₂ : a.HomotopyRel (ContinuousMap.const _ x) (Cube.boundary N) := {toFun := fun q => p ⟨(1-(q.1:ℝ))*(collarTime 1 q.2:ℝ),mul_nonneg (by linarith [q.1.property.2]) (collarTime _ _).property.1,(mul_le_of_le_one_left (collarTime _ _).property.1(by linarith [q.1.property.1])).trans (collarTime _ _).property.2⟩continuous_toFun := p.continuous.comp (Continuous.subtype_mk((continuous_const.sub (continuous_subtype_val.comp continuous_fst)).mul(continuous_subtype_val.comp (continuous_collarTime.comp (continuous_const.prodMk continuous_snd)))) _)map_zero_left := byintro tchange p _ = p (collarTime 1 t)congr 1apply Subtype.extchange (1-(0:ℝ))*(collarTime 1 t:ℝ) = (collarTime 1 t:ℝ)ringmap_one_left := byintro tchange p _ = xconvert hp0 using 1congr 1apply Subtype.extchange (1-(1:ℝ))*(collarTime 1 t:ℝ) = 0ringprop' := byintro s t htchange p _ = p (collarTime 1 t)rw [collarTime_boundary 1 ht]congr 1apply Subtype.extchange (1-(s:ℝ))*(0:ℝ) = 0ring }exact ⟨H₁.trans H₂⟩end NearbyLagrangian.CubicalFreeNullityendnoncomputable sectionuniverse u v wopen scoped Classical Topology Topology.Homotopynamespace NearbyLagrangian.CubicalFreeNullityvariable {N : Type*} [Fintype N] [Nonempty N]variable {X : Type*} [TopologicalSpace X] {x y : X}def outerTime (s : unitInterval) (t : N → unitInterval) : unitInterval :=⟨max 0 ((s:ℝ)-2*(1-radius t)),le_max_left _ _,byapply max_le zero_le_onehave := radius_le_one tlinarith [s.property.2]⟩omit [Nonempty N] inlemma continuous_outerTime : Continuous (fun a : unitInterval × (N → unitInterval) => outerTime a.1 a.2) :=((continuous_const.max ((continuous_subtype_val.comp continuous_fst).sub(continuous_const.mul (continuous_const.sub (continuous_radius.comp continuous_snd)))))).subtype_mk _omit [Nonempty N] inlemma outerTime_eq_zero {s : unitInterval} {t : N → unitInterval}(h : radius t ≤ 1-(s:ℝ)/2) : outerTime s t = 0 := byapply Subtype.extchange max 0 ((s:ℝ)-2*(1-radius t)) = 0apply max_eq_leftlinarithomit [Nonempty N] inlemma outerTime_boundary (s : unitInterval) {t : N → unitInterval}(h : t ∈ Cube.boundary N) : outerTime s t = s := byapply Subtype.extchange max 0 ((s:ℝ)-2*(1-radius t)) = srw [radius_boundary h]simp only [sub_self,mul_zero,sub_zero,max_eq_right s.property.1]def rebaseValue (f : GenLoop N X x) (p : Path x y) (s : unitInterval)(t : N → unitInterval) : X :=if radius t ≤ 1-(s:ℝ)/2 then f (expand s t) else p (outerTime s t)lemma continuous_rebaseValue (f : GenLoop N X x) (p : Path x y) :Continuous (fun q : unitInterval × (N → unitInterval) => rebaseValue f p q.1 q.2) := byapply (f.1.continuous.comp continuous_expand).if_le(p.continuous.comp continuous_outerTime) (continuous_radius.comp continuous_snd)(continuous_const.sub ((continuous_subtype_val.comp continuous_fst).div_const 2))intro q hchange f (expand q.1 q.2) = p (outerTime q.1 q.2)change radius q.2 = 1-(q.1:ℝ)/2 at hrw [GenLoop.boundary f _ (expand_mem_boundary h.ge),outerTime_eq_zero h.le,p.source]omit [Nonempty N] in@[simp] lemma rebaseValue_zero (f : GenLoop N X x) (p : Path x y)(t : N → unitInterval) : rebaseValue f p 0 t = f t := byrw [rebaseValue,ite_eq_left (by simpa using radius_le_one t),expand_zero]omit [Nonempty N] inlemma rebaseValue_boundary (f : GenLoop N X x) (p : Path x y)(s : unitInterval) {t : N → unitInterval} (ht : t ∈ Cube.boundary N) :rebaseValue f p s t = p s := byrw [rebaseValue]split_ifs with h· have hs : s = 0 := byapply Subtype.extchange (s:ℝ) = 0rw [radius_boundary ht] at hlinarith [s.property.1]rw [hs,expand_zero,GenLoop.boundary f t ht,p.source]· rw [outerTime_boundary s ht]def rebase (f : GenLoop N X x) (p : Path x y) : GenLoop N X y :=⟨⟨fun t => rebaseValue f p 1 t,(continuous_rebaseValue f p).comp (continuous_const.prodMk continuous_id)⟩,fun _t ht => (rebaseValue_boundary f p 1 ht).trans p.target⟩def rebaseHomotopy (f : GenLoop N X x) (p : Path x y) : f.1.Homotopy (rebase f p).1 wheretoFun q := rebaseValue f p q.1 q.2continuous_toFun := continuous_rebaseValue f pmap_zero_left := rebaseValue_zero f pmap_one_left _ := rflend NearbyLagrangian.CubicalFreeNullityendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263import Mathlibnamespace OAI/-! Cubical free nullity and change of basepoint. -/noncomputable sectionuniverse u v wopen Set ContinuousMapopen scoped Topology Topology.Homotopynamespace NearbyLagrangian.CubicalFreeNullityvariable {N : Type*} [Fintype N] [Nonempty N]def radius (t : N → unitInterval) : ℝ := ‖fun i => 2*(t i:ℝ)-1‖omit [Nonempty N] inlemma radius_nonneg (t : N → unitInterval) : 0 ≤ radius t := norm_nonneg _omit [Nonempty N] inlemma radius_le_one (t : N → unitInterval) : radius t ≤ 1 := byapply (pi_norm_le_iff_of_nonneg (by norm_num : (0:ℝ) ≤ 1)).mprintro irw [Real.norm_eq_abs,abs_le]have hi₀ := (t i).property.1have hi₁ := (t i).property.2constructor <;> linarithomit [Nonempty N] inlemma continuous_radius : Continuous (radius (N:=N)) :=(continuous_pi fun i => (continuous_const.mul(continuous_subtype_val.comp (continuous_apply i))).sub continuous_const).normomit [Nonempty N] inlemma radius_boundary {t : N → unitInterval} (ht : t ∈ Cube.boundary N) : radius t = 1 := byapply le_antisymm (radius_le_one t)obtain ⟨i,hi⟩ := hthave hh := norm_le_pi_norm (fun i => 2*(t i:ℝ)-1) ircases hi with hi | hi· simpa [radius,hi] using hh· norm_num [hi] at hhexact hhdef collarTime (s : unitInterval) (t : N → unitInterval) : unitInterval :=⟨min (s:ℝ) (2*(1-radius t)),le_min s.property.1 (by have := radius_le_one t; linarith),(min_le_left _ _).trans s.property.2⟩omit [Nonempty N] inlemma continuous_collarTime : Continuous (fun a : unitInterval × (N → unitInterval) => collarTime a.1 a.2) :=((continuous_subtype_val.comp continuous_fst).min(continuous_const.mul (continuous_const.sub (continuous_radius.comp continuous_snd)))).subtype_mk _omit [Nonempty N] in@[simp] lemma collarTime_zero (t : N → unitInterval) : collarTime 0 t = 0 := byapply Subtype.extchange min 0 (2*(1-radius t)) = 0apply min_eq_lefthave := radius_le_one tlinarithomit [Nonempty N] inlemma collarTime_boundary (s : unitInterval) {t : N → unitInterval} (ht : t ∈ Cube.boundary N) :collarTime s t = 0 := byapply Subtype.extchange min (s:ℝ) (2*(1-radius t)) = 0rw [radius_boundary ht]simp only [sub_self,mul_zero,min_eq_right s.property.1]lemma denominator_pos (s : unitInterval) : 0 < 1-(s:ℝ)/2 := byhave := s.property.2linarithdef expand (s : unitInterval) (t : N → unitInterval) : N → unitInterval :=fun i => projIcc 0 1 (zero_le_one' ℝ) (((t i:ℝ)-(s:ℝ)/4)/(1-(s:ℝ)/2))omit [Fintype N] [Nonempty N] inlemma continuous_expand : Continuous (fun a : unitInterval × (N → unitInterval) => expand a.1 a.2) := byapply continuous_piintro iapply continuous_projIcc.compexact ((continuous_subtype_val.comp ((continuous_apply i).comp continuous_snd)).sub((continuous_subtype_val.comp continuous_fst).div_const 4)).div(continuous_const.sub ((continuous_subtype_val.comp continuous_fst).div_const 2))(fun a => ne_of_gt (denominator_pos a.1))omit [Fintype N] [Nonempty N] in@[simp] lemma expand_zero (t : N → unitInterval) : expand 0 t = t := byfunext ichange projIcc 0 1 _ (((t i:ℝ)-(0:ℝ)/4)/(1-(0:ℝ)/2)) = t isimp only [zero_div,sub_zero,div_one,projIcc_val]lemma expand_mem_boundary {s : unitInterval} {t : N → unitInterval}(ht : 1-(s:ℝ)/2 ≤ radius t) : expand s t ∈ Cube.boundary N := byobtain ⟨⟨i,hi⟩,_⟩ := IsGreatest.pi_norm (fun i => 2*(t i:ℝ)-1)have habs : 1-(s:ℝ)/2 ≤ |2*(t i:ℝ)-1| := bychange ‖2*(t i:ℝ)-1‖ = radius t at hirw [Real.norm_eq_abs] at hiexact ht.trans_eq hi.symmrcases (le_abs.mp habs) with h | h· refine ⟨i,Or.inr ?_⟩apply projIcc_of_right_leapply (le_div_iff₀ (denominator_pos s)).mprlinarith· refine ⟨i,Or.inl ?_⟩apply projIcc_of_le_leftapply div_nonpos_of_nonpos_of_nonneg _ (denominator_pos s).lelinarithlemma expand_boundary (s : unitInterval) {t : N → unitInterval} (ht : t ∈ Cube.boundary N) :expand s t ∈ Cube.boundary N := byapply expand_mem_boundaryrw [radius_boundary ht]have := s.property.1linarithvariable {X : Type*} [TopologicalSpace X]theorem null_of_moving_base {x y : X} (f : GenLoop N X x)(H : f.1.Homotopy (ContinuousMap.const _ y))(p : C(unitInterval,X))(hp : ∀ s t, t ∈ Cube.boundary N → H (s,t) = p s) :GenLoop.Homotopic f GenLoop.const := bylet z : N → unitInterval := fun _ => 0have hz : z ∈ Cube.boundary N := ⟨Classical.choice inferInstance,Or.inl rfl⟩have hp0 : p 0 = x := byrw [← hp 0 z hz,H.apply_zero]exact GenLoop.boundary f z hzhave hp1 : p 1 = y := by rw [← hp 1 z hz,H.apply_one]; rfllet a : C(N → unitInterval,X) := p.comp ⟨fun t => collarTime 1 t,continuous_collarTime.comp (continuous_const.prodMk continuous_id)⟩have ha (t : N → unitInterval) : H (collarTime 1 t,expand 1 t) = a t := bychange H (collarTime 1 t,expand 1 t) = p (collarTime 1 t)by_cases ht : collarTime 1 t = 1· rw [ht,H.apply_one,hp1]; rfl· apply hpapply expand_mem_boundaryhave hk : (collarTime 1 t:ℝ) < 1 := lt_of_le_of_ne (collarTime 1 t).property.2(fun h => ht (Subtype.ext h))change min 1 (2*(1-radius t)) < 1 at hkhave hr : 2*(1-radius t) < 1 := by simpa only [min_lt_iff,lt_self_iff_false,false_or] using hkchange 1-(1:ℝ)/2 ≤ radius tlinarithlet H₁ : f.1.HomotopyRel a (Cube.boundary N) := {toFun := fun q => H (collarTime q.1 q.2,expand q.1 q.2)continuous_toFun := H.continuous.comp (continuous_collarTime.prodMk continuous_expand)map_zero_left := by intro t; simp only [collarTime_zero,expand_zero,H.apply_zero]map_one_left := haprop' := byintro s t htchange H (collarTime s t,expand s t) = f trw [collarTime_boundary s ht,hp 0 _ (expand_boundary s ht),hp0,GenLoop.boundary f t ht] }let H₂ : a.HomotopyRel (ContinuousMap.const _ x) (Cube.boundary N) := {toFun := fun q => p ⟨(1-(q.1:ℝ))*(collarTime 1 q.2:ℝ),mul_nonneg (by linarith [q.1.property.2]) (collarTime _ _).property.1,(mul_le_of_le_one_left (collarTime _ _).property.1(by linarith [q.1.property.1])).trans (collarTime _ _).property.2⟩continuous_toFun := p.continuous.comp (Continuous.subtype_mk((continuous_const.sub (continuous_subtype_val.comp continuous_fst)).mul(continuous_subtype_val.comp (continuous_collarTime.comp (continuous_const.prodMk continuous_snd)))) _)map_zero_left := byintro tchange p _ = p (collarTime 1 t)congr 1apply Subtype.extchange (1-(0:ℝ))*(collarTime 1 t:ℝ) = (collarTime 1 t:ℝ)ringmap_one_left := byintro tchange p _ = xconvert hp0 using 1congr 1apply Subtype.extchange (1-(1:ℝ))*(collarTime 1 t:ℝ) = 0ringprop' := byintro s t htchange p _ = p (collarTime 1 t)rw [collarTime_boundary 1 ht]congr 1apply Subtype.extchange (1-(s:ℝ))*(0:ℝ) = 0ring }exact ⟨H₁.trans H₂⟩end NearbyLagrangian.CubicalFreeNullityendnoncomputable sectionuniverse u v wopen scoped Classical Topology Topology.Homotopynamespace NearbyLagrangian.CubicalFreeNullityvariable {N : Type*} [Fintype N] [Nonempty N]variable {X : Type*} [TopologicalSpace X] {x y : X}def outerTime (s : unitInterval) (t : N → unitInterval) : unitInterval :=⟨max 0 ((s:ℝ)-2*(1-radius t)),le_max_left _ _,byapply max_le zero_le_onehave := radius_le_one tlinarith [s.property.2]⟩omit [Nonempty N] inlemma continuous_outerTime : Continuous (fun a : unitInterval × (N → unitInterval) => outerTime a.1 a.2) :=((continuous_const.max ((continuous_subtype_val.comp continuous_fst).sub(continuous_const.mul (continuous_const.sub (continuous_radius.comp continuous_snd)))))).subtype_mk _omit [Nonempty N] inlemma outerTime_eq_zero {s : unitInterval} {t : N → unitInterval}(h : radius t ≤ 1-(s:ℝ)/2) : outerTime s t = 0 := byapply Subtype.extchange max 0 ((s:ℝ)-2*(1-radius t)) = 0apply max_eq_leftlinarithomit [Nonempty N] inlemma outerTime_boundary (s : unitInterval) {t : N → unitInterval}(h : t ∈ Cube.boundary N) : outerTime s t = s := byapply Subtype.extchange max 0 ((s:ℝ)-2*(1-radius t)) = srw [radius_boundary h]simp only [sub_self,mul_zero,sub_zero,max_eq_right s.property.1]def rebaseValue (f : GenLoop N X x) (p : Path x y) (s : unitInterval)(t : N → unitInterval) : X :=if radius t ≤ 1-(s:ℝ)/2 then f (expand s t) else p (outerTime s t)lemma continuous_rebaseValue (f : GenLoop N X x) (p : Path x y) :Continuous (fun q : unitInterval × (N → unitInterval) => rebaseValue f p q.1 q.2) := byapply (f.1.continuous.comp continuous_expand).if_le(p.continuous.comp continuous_outerTime) (continuous_radius.comp continuous_snd)(continuous_const.sub ((continuous_subtype_val.comp continuous_fst).div_const 2))intro q hchange f (expand q.1 q.2) = p (outerTime q.1 q.2)change radius q.2 = 1-(q.1:ℝ)/2 at hrw [GenLoop.boundary f _ (expand_mem_boundary h.ge),outerTime_eq_zero h.le,p.source]omit [Nonempty N] in@[simp] lemma rebaseValue_zero (f : GenLoop N X x) (p : Path x y)(t : N → unitInterval) : rebaseValue f p 0 t = f t := byrw [rebaseValue,ite_eq_left (by simpa using radius_le_one t),expand_zero]omit [Nonempty N] inlemma rebaseValue_boundary (f : GenLoop N X x) (p : Path x y)(s : unitInterval) {t : N → unitInterval} (ht : t ∈ Cube.boundary N) :rebaseValue f p s t = p s := byrw [rebaseValue]split_ifs with h· have hs : s = 0 := byapply Subtype.extchange (s:ℝ) = 0rw [radius_boundary ht] at hlinarith [s.property.1]rw [hs,expand_zero,GenLoop.boundary f t ht,p.source]· rw [outerTime_boundary s ht]def rebase (f : GenLoop N X x) (p : Path x y) : GenLoop N X y :=⟨⟨fun t => rebaseValue f p 1 t,(continuous_rebaseValue f p).comp (continuous_const.prodMk continuous_id)⟩,fun _t ht => (rebaseValue_boundary f p 1 ht).trans p.target⟩def rebaseHomotopy (f : GenLoop N X x) (p : Path x y) : f.1.Homotopy (rebase f p).1 wheretoFun q := rebaseValue f p q.1 q.2continuous_toFun := continuous_rebaseValue f pmap_zero_left := rebaseValue_zero f pmap_one_left _ := rflend NearbyLagrangian.CubicalFreeNullityendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341import Mathlibimport OAI.Topology.Homotopy.CubicalNullityimport OAI.Topology.Homotopy.OpenCollapsenamespace OAI/-! Cubical and spherical representatives of homotopy classes. -/noncomputable sectionuniverse u v wopen Set ContinuousMap Topologyopen scoped OnePoint Topology Topology.Homotopynamespace NearbyLagrangian.CubicalSpherevariable (N : Type*) [Fintype N] [Nonempty N]def interiorCube : Set (N → unitInterval) := {t | ∀ i, 0 < (t i:ℝ) ∧ (t i:ℝ) < 1}omit [Fintype N] [Nonempty N] inlemma interiorCube_eq : interiorCube N = (Cube.boundary N)ᶜ := byext tsimp only [interiorCube,mem_ofPred_eq,Set.mem_compl_iff,Cube.boundary,not_exists,not_or]constructor· intro ht iconstructor· intro h; have := (ht i).1; simp [h] at this· intro h; have := (ht i).2; simp [h] at this· intro ht iconstructor· exact lt_of_le_of_ne (t i).property.1 (fun h => (ht i).1 (Subtype.ext h.symm))· exact lt_of_le_of_ne (t i).property.2 (fun h => (ht i).2 (Subtype.ext h))omit [Nonempty N] inlemma isOpen_interiorCube : IsOpen (interiorCube N) := byhave he : interiorCube N = ⋂ i, {t : N → unitInterval | 0 < (t i:ℝ) ∧ (t i:ℝ) < 1} := byext t; simp [interiorCube]rw [he]apply isOpen_iInter_of_finiteintro iexact isOpen_Ioo.preimage (continuous_subtype_val.comp (continuous_apply i))omit [Fintype N] inlemma complement_nonempty : (interiorCube N)ᶜ.Nonempty := byrefine ⟨fun _ => 0,?_⟩rw [interiorCube_eq,compl_compl]exact ⟨Classical.choice inferInstance,Or.inl rfl⟩def interiorHomeomorph : interiorCube N ≃ₜ (N → Ioo (0:ℝ) 1) wheretoFun t i := ⟨t.1 i,(t.property i)⟩invFun t := ⟨fun i => ⟨(t i:ℝ),(t i).property.1.le,(t i).property.2.le⟩,fun i => (t i).property⟩left_inv _ := rflright_inv _ := rflcontinuous_toFun := byapply continuous_piintro iexact (continuous_subtype_val.comp ((continuous_apply i).comp continuous_subtype_val)).subtype_mk _continuous_invFun := byapply Continuous.subtype_mkapply continuous_piintro iexact (continuous_subtype_val.comp (continuous_apply i)).subtype_mk _def intervalHomeomorph : Ioo (0:ℝ) 1 ≃ₜ Ioo (-1:ℝ) 1 wheretoFun x := ⟨2*(x:ℝ)-1,by have h := x.property; constructor <;> linarith [h.1,h.2]⟩invFun y := ⟨((y:ℝ)+1)/2,by have h := y.property; constructor <;> linarith [h.1,h.2]⟩left_inv x := Subtype.ext (by dsimp; ring)right_inv y := Subtype.ext (by dsimp; ring)continuous_toFun := byapply Continuous.subtype_mkexact (continuous_const.mul continuous_subtype_val).sub continuous_constcontinuous_invFun := byapply Continuous.subtype_mkexact (continuous_subtype_val.add continuous_const).div_const 2def interiorEuclidean : interiorCube N ≃ₜ (N → ℝ) :=(interiorHomeomorph N).trans (Homeomorph.piCongrRight fun _ =>intervalHomeomorph.trans (orderIsoIooNegOneOne ℝ).toHomeomorph.symm)def compactificationSphere (n : ℕ) : OnePoint (interiorCube (Fin (n+1))) ≃ₜMetric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1 :=(interiorEuclidean (Fin (n+1))).onePointCongr.trans(onePointEquivSphereOfFinrankEq (by simp))def spherePoint (n : ℕ) : Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1 :=compactificationSphere n ∞def sphereQuotient (n : ℕ) : C((Fin (n+1) → unitInterval),Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1) :=⟨fun t => compactificationSphere n (OpenCollapse.collapse (interiorCube _) t),(compactificationSphere n).continuous.comp(OpenCollapse.continuous_collapse (isOpen_interiorCube _))⟩lemma sphereQuotient_boundary (n : ℕ) {t : Fin (n+1) → unitInterval}(ht : t ∈ Cube.boundary _) : sphereQuotient n t = spherePoint n := bychange compactificationSphere n _ = compactificationSphere n ∞rw [OpenCollapse.collapse_of_notMem]simpa only [interiorCube_eq,mem_compl_iff,not_not] using htlemma sphereQuotient_surjective (n : ℕ) : Function.Surjective (sphereQuotient n) :=(compactificationSphere n).surjective.comp(OpenCollapse.collapse_surjective (complement_nonempty _))variable {X : Type*} [TopologicalSpace X] {x : X}def sphereMap {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X) :=(OpenCollapse.descend (isOpen_interiorCube _) (complement_nonempty _) f.1 x(fun t ht => GenLoop.boundary f t (by simpa only [interiorCube_eq,mem_compl_iff,not_not] using ht))).comp⟨(compactificationSphere n).symm,(compactificationSphere n).symm.continuous⟩@[simp] lemma sphereMap_quotient {n : ℕ} (f : GenLoop (Fin (n+1)) X x)(t : Fin (n+1) → unitInterval) : sphereMap f (sphereQuotient n t) = f t := bysimp only [sphereMap,ContinuousMap.comp_apply,ContinuousMap.coe_mk,sphereQuotient,Homeomorph.symm_apply_apply,OpenCollapse.descend_collapse]rfl@[simp] lemma sphereMap_point {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :sphereMap f (spherePoint n) = x := bysimp only [sphereMap,ContinuousMap.comp_apply,ContinuousMap.coe_mk,spherePoint,Homeomorph.symm_apply_apply]rfltheorem sphereMap_null_implies_cube_null {n : ℕ} (f : GenLoop (Fin (n+1)) X x)(hf : (sphereMap f).Nullhomotopic) : GenLoop.Homotopic f GenLoop.const := byobtain ⟨y,⟨H⟩⟩ := hflet H' : f.1.Homotopy (ContinuousMap.const _ y) := {toFun := fun q => H (q.1,sphereQuotient n q.2)continuous_toFun := H.continuous.comp (continuous_fst.prodMk ((sphereQuotient n).continuous.comp continuous_snd))map_zero_left := fun t => (H.apply_zero _).trans (sphereMap_quotient f t)map_one_left := fun t => H.apply_one _ }let p : C(unitInterval,X) :=⟨fun s => H (s,spherePoint n),H.continuous.comp (continuous_id.prodMk continuous_const)⟩apply CubicalFreeNullity.null_of_moving_base f H' pintro s t htchange H (s,sphereQuotient n t) = H (s,spherePoint n)rw [sphereQuotient_boundary n ht]theorem sphereMap_null_implies_class_one {n : ℕ} (f : GenLoop (Fin (n+1)) X x)(hf : (sphereMap f).Nullhomotopic) :(⟦f⟧ : HomotopyGroup.Pi (n+1) X x) = (1 : HomotopyGroup.Pi (n+1) X x) := byrw [HomotopyGroup.one_def]exact Quotient.sound (sphereMap_null_implies_cube_null f hf)end NearbyLagrangian.CubicalSphereendnoncomputable sectionuniverse u v wopen Set ContinuousMap Topologyopen scoped OnePoint Topology Topology.Homotopynamespace NearbyLagrangian.CubicalSpherevariable {X : Type*} [TopologicalSpace X] {x : X}def sphereHomotopy {n : ℕ} {f g : GenLoop (Fin (n+1)) X x}(H : f.1.HomotopyRel g.1 (Cube.boundary _)) : (sphereMap f).Homotopy (sphereMap g) wheretoFun := fun q => ((compactificationSphere n).symm q.2).elim x(fun t => H (q.1,t))continuous_toFun := bylet F : C(unitInterval × (Fin (n+1) → unitInterval),X) := ⟨H,H.continuous⟩have hF : ∀ s t, t ∉ interiorCube (Fin (n+1)) → F (s,t) = x := byintro s t hthave ht' : t ∈ Cube.boundary _ := bysimpa only [interiorCube_eq,mem_compl_iff,not_not] using htexact (H.eq_fst s ht').trans (GenLoop.boundary f t ht')exact (OpenCollapse.continuous_descend_param (isOpen_interiorCube _) (complement_nonempty _)F (const _ x) hF).comp (continuous_fst.prodMk((compactificationSphere n).symm.continuous.comp continuous_snd))map_zero_left := byintro uchange ((compactificationSphere n).symm u).elim x (fun t => H (0,t)) =((compactificationSphere n).symm u).elim x (fun t => f t)generalize (compactificationSphere n).symm u = zinduction z using OnePoint.rec with| infty => rfl| coe t => exact H.apply_zero tmap_one_left := byintro uchange ((compactificationSphere n).symm u).elim x (fun t => H (1,t)) =((compactificationSphere n).symm u).elim x (fun t => g t)generalize (compactificationSphere n).symm u = zinduction z using OnePoint.rec with| infty => rfl| coe t => exact H.apply_one t@[simp] theorem sphereMap_const (n : ℕ) : sphereMap (GenLoop.const : GenLoop (Fin (n+1)) X x) =ContinuousMap.const _ x := byext uobtain ⟨t,rfl⟩ := sphereQuotient_surjective n uexact sphereMap_quotient GenLoop.const ttheorem sphereMap_null_iff_cube_null {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :(sphereMap f).Nullhomotopic ↔ GenLoop.Homotopic f GenLoop.const := byconstructor· exact sphereMap_null_implies_cube_null f· rintro ⟨H⟩refine ⟨x,?_⟩rw [← sphereMap_const]exact ⟨sphereHomotopy H⟩theorem sphereMap_null_iff_class_one {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :(sphereMap f).Nullhomotopic ↔(⟦f⟧ : HomotopyGroup.Pi (n+1) X x) = (1 : HomotopyGroup.Pi (n+1) X x) := byrw [sphereMap_null_iff_cube_null,HomotopyGroup.one_def,Quotient.eq]rflend NearbyLagrangian.CubicalSphereendnoncomputable sectionuniverse u v wnamespace NearbyLagrangian.SphereConnectivityopen scoped Topology Topology.Homotopydef genLoopMap {N A B : Type*} [TopologicalSpace A] [TopologicalSpace B](e : C(A,B)) {x : A} (f : GenLoop N A x) : GenLoop N B (e x) :=⟨e.comp f.1,fun t ht => congrArg e (GenLoop.boundary f t ht)⟩lemma genLoopMap_homotopic {N A B : Type*} [TopologicalSpace A] [TopologicalSpace B](e : C(A,B)) {x : A} {f g : GenLoop N A x} (h : GenLoop.Homotopic f g) :GenLoop.Homotopic (genLoopMap e f) (genLoopMap e g) := byobtain ⟨H⟩ := hexact ⟨H.compContinuousMap e⟩def homotopyGroupMap {n : ℕ} {A B : Type*} [TopologicalSpace A] [TopologicalSpace B](e : C(A,B)) (x : A) : HomotopyGroup.Pi n A x → HomotopyGroup.Pi n B (e x) :=Quotient.map (genLoopMap e) (fun _ _ h => genLoopMap_homotopic e h)end NearbyLagrangian.SphereConnectivityendnoncomputable sectionuniverse u v wnamespace NearbyLagrangian.CubicalSphereopen Set ContinuousMap SphereConnectivityopen scoped Topology Topology.Homotopyvariable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] {x : X}def sphereLoop {n : ℕ}(a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :GenLoop (Fin (n+1)) X (a (spherePoint n)) :=⟨a.comp (sphereQuotient n),fun _t ht => congrArg a (sphereQuotient_boundary n ht)⟩@[simp] theorem sphereMap_sphereLoop {n : ℕ}(a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :sphereMap (sphereLoop a) = a := byext uobtain ⟨t,rfl⟩ := sphereQuotient_surjective n urw [sphereMap_quotient]rfl@[simp] theorem sphereMap_natural {n : ℕ} (e : C(X,Y))(f : GenLoop (Fin (n+1)) X x) :sphereMap (genLoopMap e f) = e.comp (sphereMap f) := byext uobtain ⟨t,rfl⟩ := sphereQuotient_surjective n urw [sphereMap_quotient,ContinuousMap.comp_apply,sphereMap_quotient]rfltheorem null_iff_class_one {n : ℕ}(a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :a.Nullhomotopic ↔(⟦sphereLoop a⟧ : HomotopyGroup.Pi (n+1) X (a (spherePoint n))) =(1 : HomotopyGroup.Pi (n+1) X (a (spherePoint n))) := bysimpa only [sphereMap_sphereLoop] using sphereMap_null_iff_class_one (sphereLoop a)theorem comp_null_iff_mapped_class_one {n : ℕ} (e : C(X,Y))(a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :(e.comp a).Nullhomotopic ↔homotopyGroupMap (n:=n+1) e (a (spherePoint n)) ⟦sphereLoop a⟧ =(1 : HomotopyGroup.Pi (n+1) Y (e (a (spherePoint n)))) := bychange (e.comp a).Nullhomotopic ↔(⟦genLoopMap e (sphereLoop a)⟧ : HomotopyGroup.Pi (n+1) Y (e (a (spherePoint n)))) = _simpa only [sphereMap_natural,sphereMap_sphereLoop] usingsphereMap_null_iff_class_one (genLoopMap e (sphereLoop a))end NearbyLagrangian.CubicalSphereendnoncomputable sectionuniverse u v wopen scoped Classical Topology Topology.Homotopynamespace NearbyLagrangian.CubicalSphereopen Set ContinuousMapopen scoped OnePointvariable {X : Type*} [TopologicalSpace X] {x y : X}def sphereMovingHomotopy {n : ℕ} {f : GenLoop (Fin (n+1)) X x}{g : GenLoop (Fin (n+1)) X y} (H : f.1.Homotopy g.1)(p : Path x y) (hp : ∀ s t, t ∈ Cube.boundary (Fin (n+1)) → H (s,t) = p s) :(sphereMap f).Homotopy (sphereMap g) wheretoFun q := ((compactificationSphere n).symm q.2).elim (p q.1) (fun t => H (q.1,t))continuous_toFun := bylet F : C(unitInterval × (Fin (n+1) → unitInterval),X) := ⟨H,H.continuous⟩have hF (s : unitInterval) (t : Fin (n+1) → unitInterval)(ht : t ∉ interiorCube (Fin (n+1))) : F (s,t) = p s := byapply hpsimpa only [interiorCube_eq,mem_compl_iff,not_not] using htexact (OpenCollapse.continuous_descend_param (isOpen_interiorCube _) (complement_nonempty _)F p.toContinuousMap hF).comp (continuous_fst.prodMk((compactificationSphere n).symm.continuous.comp continuous_snd))map_zero_left := byintro uchange ((compactificationSphere n).symm u).elim (p 0) (fun t => H (0,t)) =((compactificationSphere n).symm u).elim x (fun t => f t)rw [p.source]generalize (compactificationSphere n).symm u = zinduction z using OnePoint.rec with| infty => rfl| coe t => exact H.apply_zero tmap_one_left := byintro uchange ((compactificationSphere n).symm u).elim (p 1) (fun t => H (1,t)) =((compactificationSphere n).symm u).elim y (fun t => g t)rw [p.target]generalize (compactificationSphere n).symm u = zinduction z using OnePoint.rec with| infty => rfl| coe t => exact H.apply_one ttheorem exists_based_representative [PathConnectedSpace X] {n : ℕ}(a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) (x : X) :∃ f : GenLoop (Fin (n+1)) X x, a.Homotopic (sphereMap f) := byobtain ⟨p⟩ := PathConnectedSpace.joined (a (spherePoint n)) xrefine ⟨CubicalFreeNullity.rebase (sphereLoop a) p,?_⟩have h := sphereMovingHomotopy (CubicalFreeNullity.rebaseHomotopy (sphereLoop a) p) p(fun s _t ht => CubicalFreeNullity.rebaseValue_boundary (sphereLoop a) p s ht)simpa only [sphereMap_sphereLoop] using (show (sphereMap (sphereLoop a)).Homotopic(sphereMap (CubicalFreeNullity.rebase (sphereLoop a) p)) from ⟨h⟩)end NearbyLagrangian.CubicalSphereendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341import Mathlibimport OAI.Topology.Homotopy.CubicalNullityimport OAI.Topology.Homotopy.OpenCollapsenamespace OAI/-! Cubical and spherical representatives of homotopy classes. -/noncomputable sectionuniverse u v wopen Set ContinuousMap Topologyopen scoped OnePoint Topology Topology.Homotopynamespace NearbyLagrangian.CubicalSpherevariable (N : Type*) [Fintype N] [Nonempty N]def interiorCube : Set (N → unitInterval) := {t | ∀ i, 0 < (t i:ℝ) ∧ (t i:ℝ) < 1}omit [Fintype N] [Nonempty N] inlemma interiorCube_eq : interiorCube N = (Cube.boundary N)ᶜ := byext tsimp only [interiorCube,mem_ofPred_eq,Set.mem_compl_iff,Cube.boundary,not_exists,not_or]constructor· intro ht iconstructor· intro h; have := (ht i).1; simp [h] at this· intro h; have := (ht i).2; simp [h] at this· intro ht iconstructor· exact lt_of_le_of_ne (t i).property.1 (fun h => (ht i).1 (Subtype.ext h.symm))· exact lt_of_le_of_ne (t i).property.2 (fun h => (ht i).2 (Subtype.ext h))omit [Nonempty N] inlemma isOpen_interiorCube : IsOpen (interiorCube N) := byhave he : interiorCube N = ⋂ i, {t : N → unitInterval | 0 < (t i:ℝ) ∧ (t i:ℝ) < 1} := byext t; simp [interiorCube]rw [he]apply isOpen_iInter_of_finiteintro iexact isOpen_Ioo.preimage (continuous_subtype_val.comp (continuous_apply i))omit [Fintype N] inlemma complement_nonempty : (interiorCube N)ᶜ.Nonempty := byrefine ⟨fun _ => 0,?_⟩rw [interiorCube_eq,compl_compl]exact ⟨Classical.choice inferInstance,Or.inl rfl⟩def interiorHomeomorph : interiorCube N ≃ₜ (N → Ioo (0:ℝ) 1) wheretoFun t i := ⟨t.1 i,(t.property i)⟩invFun t := ⟨fun i => ⟨(t i:ℝ),(t i).property.1.le,(t i).property.2.le⟩,fun i => (t i).property⟩left_inv _ := rflright_inv _ := rflcontinuous_toFun := byapply continuous_piintro iexact (continuous_subtype_val.comp ((continuous_apply i).comp continuous_subtype_val)).subtype_mk _continuous_invFun := byapply Continuous.subtype_mkapply continuous_piintro iexact (continuous_subtype_val.comp (continuous_apply i)).subtype_mk _def intervalHomeomorph : Ioo (0:ℝ) 1 ≃ₜ Ioo (-1:ℝ) 1 wheretoFun x := ⟨2*(x:ℝ)-1,by have h := x.property; constructor <;> linarith [h.1,h.2]⟩invFun y := ⟨((y:ℝ)+1)/2,by have h := y.property; constructor <;> linarith [h.1,h.2]⟩left_inv x := Subtype.ext (by dsimp; ring)right_inv y := Subtype.ext (by dsimp; ring)continuous_toFun := byapply Continuous.subtype_mkexact (continuous_const.mul continuous_subtype_val).sub continuous_constcontinuous_invFun := byapply Continuous.subtype_mkexact (continuous_subtype_val.add continuous_const).div_const 2def interiorEuclidean : interiorCube N ≃ₜ (N → ℝ) :=(interiorHomeomorph N).trans (Homeomorph.piCongrRight fun _ =>intervalHomeomorph.trans (orderIsoIooNegOneOne ℝ).toHomeomorph.symm)def compactificationSphere (n : ℕ) : OnePoint (interiorCube (Fin (n+1))) ≃ₜMetric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1 :=(interiorEuclidean (Fin (n+1))).onePointCongr.trans(onePointEquivSphereOfFinrankEq (by simp))def spherePoint (n : ℕ) : Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1 :=compactificationSphere n ∞def sphereQuotient (n : ℕ) : C((Fin (n+1) → unitInterval),Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1) :=⟨fun t => compactificationSphere n (OpenCollapse.collapse (interiorCube _) t),(compactificationSphere n).continuous.comp(OpenCollapse.continuous_collapse (isOpen_interiorCube _))⟩lemma sphereQuotient_boundary (n : ℕ) {t : Fin (n+1) → unitInterval}(ht : t ∈ Cube.boundary _) : sphereQuotient n t = spherePoint n := bychange compactificationSphere n _ = compactificationSphere n ∞rw [OpenCollapse.collapse_of_notMem]simpa only [interiorCube_eq,mem_compl_iff,not_not] using htlemma sphereQuotient_surjective (n : ℕ) : Function.Surjective (sphereQuotient n) :=(compactificationSphere n).surjective.comp(OpenCollapse.collapse_surjective (complement_nonempty _))variable {X : Type*} [TopologicalSpace X] {x : X}def sphereMap {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X) :=(OpenCollapse.descend (isOpen_interiorCube _) (complement_nonempty _) f.1 x(fun t ht => GenLoop.boundary f t (by simpa only [interiorCube_eq,mem_compl_iff,not_not] using ht))).comp⟨(compactificationSphere n).symm,(compactificationSphere n).symm.continuous⟩@[simp] lemma sphereMap_quotient {n : ℕ} (f : GenLoop (Fin (n+1)) X x)(t : Fin (n+1) → unitInterval) : sphereMap f (sphereQuotient n t) = f t := bysimp only [sphereMap,ContinuousMap.comp_apply,ContinuousMap.coe_mk,sphereQuotient,Homeomorph.symm_apply_apply,OpenCollapse.descend_collapse]rfl@[simp] lemma sphereMap_point {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :sphereMap f (spherePoint n) = x := bysimp only [sphereMap,ContinuousMap.comp_apply,ContinuousMap.coe_mk,spherePoint,Homeomorph.symm_apply_apply]rfltheorem sphereMap_null_implies_cube_null {n : ℕ} (f : GenLoop (Fin (n+1)) X x)(hf : (sphereMap f).Nullhomotopic) : GenLoop.Homotopic f GenLoop.const := byobtain ⟨y,⟨H⟩⟩ := hflet H' : f.1.Homotopy (ContinuousMap.const _ y) := {toFun := fun q => H (q.1,sphereQuotient n q.2)continuous_toFun := H.continuous.comp (continuous_fst.prodMk ((sphereQuotient n).continuous.comp continuous_snd))map_zero_left := fun t => (H.apply_zero _).trans (sphereMap_quotient f t)map_one_left := fun t => H.apply_one _ }let p : C(unitInterval,X) :=⟨fun s => H (s,spherePoint n),H.continuous.comp (continuous_id.prodMk continuous_const)⟩apply CubicalFreeNullity.null_of_moving_base f H' pintro s t htchange H (s,sphereQuotient n t) = H (s,spherePoint n)rw [sphereQuotient_boundary n ht]theorem sphereMap_null_implies_class_one {n : ℕ} (f : GenLoop (Fin (n+1)) X x)(hf : (sphereMap f).Nullhomotopic) :(⟦f⟧ : HomotopyGroup.Pi (n+1) X x) = (1 : HomotopyGroup.Pi (n+1) X x) := byrw [HomotopyGroup.one_def]exact Quotient.sound (sphereMap_null_implies_cube_null f hf)end NearbyLagrangian.CubicalSphereendnoncomputable sectionuniverse u v wopen Set ContinuousMap Topologyopen scoped OnePoint Topology Topology.Homotopynamespace NearbyLagrangian.CubicalSpherevariable {X : Type*} [TopologicalSpace X] {x : X}def sphereHomotopy {n : ℕ} {f g : GenLoop (Fin (n+1)) X x}(H : f.1.HomotopyRel g.1 (Cube.boundary _)) : (sphereMap f).Homotopy (sphereMap g) wheretoFun := fun q => ((compactificationSphere n).symm q.2).elim x(fun t => H (q.1,t))continuous_toFun := bylet F : C(unitInterval × (Fin (n+1) → unitInterval),X) := ⟨H,H.continuous⟩have hF : ∀ s t, t ∉ interiorCube (Fin (n+1)) → F (s,t) = x := byintro s t hthave ht' : t ∈ Cube.boundary _ := bysimpa only [interiorCube_eq,mem_compl_iff,not_not] using htexact (H.eq_fst s ht').trans (GenLoop.boundary f t ht')exact (OpenCollapse.continuous_descend_param (isOpen_interiorCube _) (complement_nonempty _)F (const _ x) hF).comp (continuous_fst.prodMk((compactificationSphere n).symm.continuous.comp continuous_snd))map_zero_left := byintro uchange ((compactificationSphere n).symm u).elim x (fun t => H (0,t)) =((compactificationSphere n).symm u).elim x (fun t => f t)generalize (compactificationSphere n).symm u = zinduction z using OnePoint.rec with| infty => rfl| coe t => exact H.apply_zero tmap_one_left := byintro uchange ((compactificationSphere n).symm u).elim x (fun t => H (1,t)) =((compactificationSphere n).symm u).elim x (fun t => g t)generalize (compactificationSphere n).symm u = zinduction z using OnePoint.rec with| infty => rfl| coe t => exact H.apply_one t@[simp] theorem sphereMap_const (n : ℕ) : sphereMap (GenLoop.const : GenLoop (Fin (n+1)) X x) =ContinuousMap.const _ x := byext uobtain ⟨t,rfl⟩ := sphereQuotient_surjective n uexact sphereMap_quotient GenLoop.const ttheorem sphereMap_null_iff_cube_null {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :(sphereMap f).Nullhomotopic ↔ GenLoop.Homotopic f GenLoop.const := byconstructor· exact sphereMap_null_implies_cube_null f· rintro ⟨H⟩refine ⟨x,?_⟩rw [← sphereMap_const]exact ⟨sphereHomotopy H⟩theorem sphereMap_null_iff_class_one {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :(sphereMap f).Nullhomotopic ↔(⟦f⟧ : HomotopyGroup.Pi (n+1) X x) = (1 : HomotopyGroup.Pi (n+1) X x) := byrw [sphereMap_null_iff_cube_null,HomotopyGroup.one_def,Quotient.eq]rflend NearbyLagrangian.CubicalSphereendnoncomputable sectionuniverse u v wnamespace NearbyLagrangian.SphereConnectivityopen scoped Topology Topology.Homotopydef genLoopMap {N A B : Type*} [TopologicalSpace A] [TopologicalSpace B](e : C(A,B)) {x : A} (f : GenLoop N A x) : GenLoop N B (e x) :=⟨e.comp f.1,fun t ht => congrArg e (GenLoop.boundary f t ht)⟩lemma genLoopMap_homotopic {N A B : Type*} [TopologicalSpace A] [TopologicalSpace B](e : C(A,B)) {x : A} {f g : GenLoop N A x} (h : GenLoop.Homotopic f g) :GenLoop.Homotopic (genLoopMap e f) (genLoopMap e g) := byobtain ⟨H⟩ := hexact ⟨H.compContinuousMap e⟩def homotopyGroupMap {n : ℕ} {A B : Type*} [TopologicalSpace A] [TopologicalSpace B](e : C(A,B)) (x : A) : HomotopyGroup.Pi n A x → HomotopyGroup.Pi n B (e x) :=Quotient.map (genLoopMap e) (fun _ _ h => genLoopMap_homotopic e h)end NearbyLagrangian.SphereConnectivityendnoncomputable sectionuniverse u v wnamespace NearbyLagrangian.CubicalSphereopen Set ContinuousMap SphereConnectivityopen scoped Topology Topology.Homotopyvariable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] {x : X}def sphereLoop {n : ℕ}(a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :GenLoop (Fin (n+1)) X (a (spherePoint n)) :=⟨a.comp (sphereQuotient n),fun _t ht => congrArg a (sphereQuotient_boundary n ht)⟩@[simp] theorem sphereMap_sphereLoop {n : ℕ}(a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :sphereMap (sphereLoop a) = a := byext uobtain ⟨t,rfl⟩ := sphereQuotient_surjective n urw [sphereMap_quotient]rfl@[simp] theorem sphereMap_natural {n : ℕ} (e : C(X,Y))(f : GenLoop (Fin (n+1)) X x) :sphereMap (genLoopMap e f) = e.comp (sphereMap f) := byext uobtain ⟨t,rfl⟩ := sphereQuotient_surjective n urw [sphereMap_quotient,ContinuousMap.comp_apply,sphereMap_quotient]rfltheorem null_iff_class_one {n : ℕ}(a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :a.Nullhomotopic ↔(⟦sphereLoop a⟧ : HomotopyGroup.Pi (n+1) X (a (spherePoint n))) =(1 : HomotopyGroup.Pi (n+1) X (a (spherePoint n))) := bysimpa only [sphereMap_sphereLoop] using sphereMap_null_iff_class_one (sphereLoop a)theorem comp_null_iff_mapped_class_one {n : ℕ} (e : C(X,Y))(a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :(e.comp a).Nullhomotopic ↔homotopyGroupMap (n:=n+1) e (a (spherePoint n)) ⟦sphereLoop a⟧ =(1 : HomotopyGroup.Pi (n+1) Y (e (a (spherePoint n)))) := bychange (e.comp a).Nullhomotopic ↔(⟦genLoopMap e (sphereLoop a)⟧ : HomotopyGroup.Pi (n+1) Y (e (a (spherePoint n)))) = _simpa only [sphereMap_natural,sphereMap_sphereLoop] usingsphereMap_null_iff_class_one (genLoopMap e (sphereLoop a))end NearbyLagrangian.CubicalSphereendnoncomputable sectionuniverse u v wopen scoped Classical Topology Topology.Homotopynamespace NearbyLagrangian.CubicalSphereopen Set ContinuousMapopen scoped OnePointvariable {X : Type*} [TopologicalSpace X] {x y : X}def sphereMovingHomotopy {n : ℕ} {f : GenLoop (Fin (n+1)) X x}{g : GenLoop (Fin (n+1)) X y} (H : f.1.Homotopy g.1)(p : Path x y) (hp : ∀ s t, t ∈ Cube.boundary (Fin (n+1)) → H (s,t) = p s) :(sphereMap f).Homotopy (sphereMap g) wheretoFun q := ((compactificationSphere n).symm q.2).elim (p q.1) (fun t => H (q.1,t))continuous_toFun := bylet F : C(unitInterval × (Fin (n+1) → unitInterval),X) := ⟨H,H.continuous⟩have hF (s : unitInterval) (t : Fin (n+1) → unitInterval)(ht : t ∉ interiorCube (Fin (n+1))) : F (s,t) = p s := byapply hpsimpa only [interiorCube_eq,mem_compl_iff,not_not] using htexact (OpenCollapse.continuous_descend_param (isOpen_interiorCube _) (complement_nonempty _)F p.toContinuousMap hF).comp (continuous_fst.prodMk((compactificationSphere n).symm.continuous.comp continuous_snd))map_zero_left := byintro uchange ((compactificationSphere n).symm u).elim (p 0) (fun t => H (0,t)) =((compactificationSphere n).symm u).elim x (fun t => f t)rw [p.source]generalize (compactificationSphere n).symm u = zinduction z using OnePoint.rec with| infty => rfl| coe t => exact H.apply_zero tmap_one_left := byintro uchange ((compactificationSphere n).symm u).elim (p 1) (fun t => H (1,t)) =((compactificationSphere n).symm u).elim y (fun t => g t)rw [p.target]generalize (compactificationSphere n).symm u = zinduction z using OnePoint.rec with| infty => rfl| coe t => exact H.apply_one ttheorem exists_based_representative [PathConnectedSpace X] {n : ℕ}(a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) (x : X) :∃ f : GenLoop (Fin (n+1)) X x, a.Homotopic (sphereMap f) := byobtain ⟨p⟩ := PathConnectedSpace.joined (a (spherePoint n)) xrefine ⟨CubicalFreeNullity.rebase (sphereLoop a) p,?_⟩have h := sphereMovingHomotopy (CubicalFreeNullity.rebaseHomotopy (sphereLoop a) p) p(fun s _t ht => CubicalFreeNullity.rebaseValue_boundary (sphereLoop a) p s ht)simpa only [sphereMap_sphereLoop] using (show (sphereMap (sphereLoop a)).Homotopic(sphereMap (CubicalFreeNullity.rebase (sphereLoop a) p)) from ⟨h⟩)end NearbyLagrangian.CubicalSphereendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393import Mathlibnamespace OAI/-! Fiberwise cones, contractions and left suspension homotopies. -/noncomputable sectionuniverse u v wopen Set ContinuousMapopen scoped Topology unitIntervalnamespace NearbyLagrangian.FiberConevariable {B A X Y : Type*} [TopologicalSpace B] [TopologicalSpace A][TopologicalSpace X] [TopologicalSpace Y]abbrev Raw (B A X : Type*) := X ⊕ ((unitInterval × A) ⊕ B)inductive Seam (f : C(A,X)) (q : C(A,B)) : Raw B A X → Raw B A X → Prop| bottom (a : A) : Seam f q (.inr (.inl (0,a))) (.inl (f a))| top (a : A) : Seam f q (.inr (.inl (1,a))) (.inr (.inr (q a)))def Space (f : C(A,X)) (q : C(A,B)) := Quot (Seam f q)instance (f : C(A,X)) (q : C(A,B)) : TopologicalSpace (Space f q) :=inferInstanceAs (TopologicalSpace (Quot (Seam f q)))def base (f : C(A,X)) (q : C(A,B)) : C(X,Space f q) :=⟨fun x => Quot.mk _ (.inl x),continuous_quot_mk.comp continuous_inl⟩def ray (f : C(A,X)) (q : C(A,B)) : C(unitInterval × A,Space f q) :=⟨fun z => Quot.mk _ (.inr (.inl z)),continuous_quot_mk.comp (continuous_inr.comp continuous_inl)⟩def apex (f : C(A,X)) (q : C(A,B)) : C(B,Space f q) :=⟨fun b => Quot.mk _ (.inr (.inr b)),continuous_quot_mk.comp (continuous_inr.comp continuous_inr)⟩@[simp] lemma ray_zero (f : C(A,X)) (q : C(A,B)) (a : A) :ray f q (0,a) = base f q (f a) := Quot.sound (Seam.bottom a)@[simp] lemma ray_one (f : C(A,X)) (q : C(A,B)) (a : A) :ray f q (1,a) = apex f q (q a) := Quot.sound (Seam.top a)def lift (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))(c : C(unitInterval × A,Y)) (v : C(B,Y))(h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) :C(Space f q,Y) wheretoFun := Quot.lift (Sum.elim i (Sum.elim c v)) (byintro a b hcases h with| bottom a => exact h₀ a| top a => exact h₁ a)continuous_toFun := continuous_quot_lift _(i.continuous.sumElim (c.continuous.sumElim v.continuous))@[simp] lemma lift_base (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))(c : C(unitInterval × A,Y)) (v : C(B,Y))(h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) (x : X) :lift f q i c v h₀ h₁ (base f q x) = i x := rfl@[simp] lemma lift_ray (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))(c : C(unitInterval × A,Y)) (v : C(B,Y))(h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) (z : unitInterval × A) :lift f q i c v h₀ h₁ (ray f q z) = c z := rfl@[simp] lemma lift_apex (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))(c : C(unitInterval × A,Y)) (v : C(B,Y))(h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) (b : B) :lift f q i c v h₀ h₁ (apex f q b) = v b := rfl@[elab_as_elim] theorem induction {f : C(A,X)} {q : C(A,B)}{P : Space f q → Prop} (hbase : ∀ x, P (base f q x))(hray : ∀ ta, P (ray f q ta)) (hapex : ∀ b, P (apex f q b)) (z : Space f q) : P z := byinduction z using Quot.inductionOn with| h z =>rcases z with x | (ta | b)· exact hbase x· exact hray ta· exact hapex bdef projection (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) : C(Space f q,B) :=lift f q p (q.comp ⟨Prod.snd,continuous_snd⟩) (ContinuousMap.id B)(fun a => (hf a).symm) (fun _ => rfl)@[simp] lemma projection_base (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (x : X) : projection f p q hf (base f q x) = p x := rfl@[simp] lemma projection_ray (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (ta : unitInterval × A) :projection f p q hf (ray f q ta) = q ta.2 := rfl@[simp] lemma projection_apex (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (b : B) : projection f p q hf (apex f q b) = b := rflabbrev Susp (q : C(A,B)) := Space q qdef suspProjection (q : C(A,B)) : C(Susp q,B) :=projection q (ContinuousMap.id B) q (fun _ => rfl)abbrev south (q : C(A,B)) : C(B,Susp q) := base q qabbrev meridian (q : C(A,B)) : C(unitInterval × A,Susp q) := ray q qabbrev north (q : C(A,B)) : C(B,Susp q) := apex q qdef suspMap (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) : C(Susp q,Susp p) :=lift q q (south p)((meridian p).comp ⟨fun ta => (ta.1,f ta.2),continuous_fst.prodMk(f.continuous.comp continuous_snd)⟩) (north p)(fun a => by change meridian p (0,f a) = south p (q a); rw [ray_zero,hf])(fun a => by change meridian p (1,f a) = north p (q a); rw [ray_one,hf])@[simp] lemma suspMap_south (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (b : B) : suspMap f p q hf (south q b) = south p b := rfl@[simp] lemma suspMap_meridian (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (ta : unitInterval × A) :suspMap f p q hf (meridian q ta) = meridian p (ta.1,f ta.2) := rfl@[simp] lemma suspMap_north (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (b : B) : suspMap f p q hf (north q b) = north p b := rfllemma suspMap_over (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (z : Susp q) :suspProjection p (suspMap f p q hf z) = suspProjection q z := byinduction z using induction with| hbase b => rfl| hray ta => exact hf ta.2| hapex b => rfldef collapse (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) : C(Space f q,Susp q) :=lift f q ((south q).comp p) (meridian q) (north q)(fun a => by change meridian q (0,a) = south q (p (f a)); rw [ray_zero,hf])(fun a => ray_one q q a)@[simp] lemma collapse_base (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (x : X) : collapse f p q hf (base f q x) = south q (p x) := rfl@[simp] lemma collapse_ray (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (ta : unitInterval × A) : collapse f p q hf (ray f q ta) = meridian q ta := rfl@[simp] lemma collapse_apex (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (b : B) : collapse f p q hf (apex f q b) = north q b := rfllemma collapse_over (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (z : Space f q) :suspProjection q (collapse f p q hf z) = projection f p q hf z := byinduction z using induction with| hbase x => rfl| hray ta => rfl| hapex b => rflend NearbyLagrangian.FiberConeendnoncomputable sectionuniverse u v wopen Set ContinuousMapopen scoped Topology unitIntervalnamespace NearbyLagrangian.FiberConevariable {B A X : Type*} [TopologicalSpace B] [TopologicalSpace A] [TopologicalSpace X]structure Contraction (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) wherehom : C(unitInterval × Space f q,Space f q)at_zero : ∀ z, hom (0,z) = zat_one : ∀ z, hom (1,z) = apex f q (projection f p q hf z)staysOver : ∀ t z, projection f p q hf (hom (t,z)) = projection f p q hf zfixed : ∀ t b, hom (t,apex f q b) = apex f q bnamespace Contractionvariable {f : C(A,X)} {p : C(X,B)} {q : C(A,B)} {hf : ∀ a, p (f a) = q a}variable (H : Contraction f p q hf)def inverseRay : C(unitInterval × X,Susp q) :=(collapse f p q hf).comp(H.hom.comp ⟨fun tx => (tx.1,base f q tx.2),continuous_fst.prodMk ((base f q).continuous.comp continuous_snd)⟩)@[simp] lemma inverseRay_zero (x : X) : H.inverseRay (0,x) = south q (p x) := bychange collapse f p q hf (H.hom (0,base f q x)) = _rw [H.at_zero,collapse_base]@[simp] lemma inverseRay_one (x : X) : H.inverseRay (1,x) = north q (p x) := bychange collapse f p q hf (H.hom (1,base f q x)) = _rw [H.at_one,projection_base,collapse_apex]def inverse : C(Susp p,Susp q) :=lift p p (south q) H.inverseRay (north q) H.inverseRay_zero H.inverseRay_one@[simp] lemma inverse_south (b : B) : H.inverse (south p b) = south q b := rfl@[simp] lemma inverse_meridian (tx : unitInterval × X) :H.inverse (meridian p tx) = collapse f p q hf (H.hom (tx.1,base f q tx.2)) := rfl@[simp] lemma inverse_north (b : B) : H.inverse (north p b) = north q b := rfllemma inverse_over (z : Susp p) : suspProjection q (H.inverse z) = suspProjection p z := byinduction z using induction with| hbase b => rfl| hray tx =>rw [inverse_meridian,collapse_over,H.staysOver,projection_base]rfl| hapex b => rflend Contractiondef squareDen (s : unitInterval) : ℝ := max (s:ℝ) (1-(s:ℝ))lemma squareDen_pos (s : unitInterval) : 0 < squareDen s := byhave ha := le_max_left (s:ℝ) (1-(s:ℝ))have hb := le_max_right (s:ℝ) (1-(s:ℝ))dsimp [squareDen]linarithlemma continuous_squareDen : Continuous squareDen :=continuous_subtype_val.max (continuous_const.sub continuous_subtype_val)def horizontal : C(unitInterval × unitInterval,unitInterval) wheretoFun st := ⟨(1-(st.1:ℝ))*(st.2:ℝ) / squareDen st.1,byrefine ⟨div_nonneg (mul_nonneg (sub_nonneg.mpr st.1.property.2) st.2.property.1)(squareDen_pos st.1).le,?_⟩apply (div_le_one (squareDen_pos st.1)).mprhave h := mul_le_mul_of_nonneg_left st.2.property.2 (sub_nonneg.mpr st.1.property.2)have h' : (1 - (st.1:ℝ)) * (st.2:ℝ) ≤ 1 - (st.1:ℝ) := bysimpa only [mul_one] using hexact h'.trans (le_max_right _ _)⟩continuous_toFun := byapply Continuous.subtype_mkexact (((continuous_const.sub (continuous_subtype_val.comp continuous_fst)).mul(continuous_subtype_val.comp continuous_snd)).div(continuous_squareDen.comp continuous_fst) (fun _ => (squareDen_pos _).ne'))def vertical : C(unitInterval × unitInterval,unitInterval) wheretoFun st := ⟨(st.1:ℝ)*(st.2:ℝ) / squareDen st.1,byrefine ⟨div_nonneg (mul_nonneg st.1.property.1 st.2.property.1) (squareDen_pos st.1).le,?_⟩apply (div_le_one (squareDen_pos st.1)).mprhave h := mul_le_mul_of_nonneg_left st.2.property.2 st.1.property.1have h' : (st.1:ℝ) * (st.2:ℝ) ≤ (st.1:ℝ) := bysimpa only [mul_one] using hexact h'.trans (le_max_left _ _)⟩continuous_toFun := byapply Continuous.subtype_mkexact (((continuous_subtype_val.comp continuous_fst).mul(continuous_subtype_val.comp continuous_snd)).div(continuous_squareDen.comp continuous_fst) (fun _ => (squareDen_pos _).ne'))@[simp] lemma horizontal_left (t : unitInterval) : horizontal (0,t) = t := byapply Subtype.extsimp [horizontal,squareDen]@[simp] lemma horizontal_right (t : unitInterval) : horizontal (1,t) = 0 := byapply Subtype.extsimp [horizontal,squareDen]@[simp] lemma vertical_left (t : unitInterval) : vertical (0,t) = 0 := byapply Subtype.extsimp [vertical,squareDen]@[simp] lemma vertical_right (t : unitInterval) : vertical (1,t) = t := byapply Subtype.extsimp [vertical,squareDen]@[simp] lemma horizontal_bottom (s : unitInterval) : horizontal (s,0) = 0 := byapply Subtype.extsimp [horizontal]@[simp] lemma vertical_bottom (s : unitInterval) : vertical (s,0) = 0 := byapply Subtype.extsimp [vertical]lemma square_top (s : unitInterval) : horizontal (s,1) = 1 ∨ vertical (s,1) = 1 := byrcases le_total (s:ℝ) (1-(s:ℝ)) with hs | hs· leftapply Subtype.exthave hn : 1-(s:ℝ) ≠ 0 := byhave hd := squareDen_pos srw [squareDen,max_eq_right hs] at hdexact hd.ne'simp [horizontal,squareDen,max_eq_right hs,hn]· rightapply Subtype.exthave hn : (s:ℝ) ≠ 0 := byhave hd := squareDen_pos srw [squareDen,max_eq_left hs] at hdexact hd.ne'simp [vertical,squareDen,max_eq_left hs,hn]end NearbyLagrangian.FiberConeendnoncomputable sectionuniverse u v wopen Set ContinuousMapopen scoped Topology unitIntervalnamespace NearbyLagrangian.FiberConevariable {B A X Y : Type*} [TopologicalSpace B] [TopologicalSpace A][TopologicalSpace X] [TopologicalSpace Y]def cylinderLift (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))(c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))(h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))(h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) : C(unitInterval × Space f q,Y) :=(ContinuousMap.uncurry (lift f q(ContinuousMap.curry (i.comp ContinuousMap.prodSwap))(ContinuousMap.curry (c.comp ContinuousMap.prodSwap))(ContinuousMap.curry (v.comp ContinuousMap.prodSwap))(fun a => by ext s; exact h₀ s a)(fun a => by ext s; exact h₁ s a))).comp ContinuousMap.prodSwap@[simp] lemma cylinderLift_base (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))(c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))(h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))(h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) (s : unitInterval) (x : X) :cylinderLift f q i c v h₀ h₁ (s,base f q x) = i (s,x) := rfl@[simp] lemma cylinderLift_ray (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))(c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))(h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))(h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) (s : unitInterval) (ta : unitInterval × A) :cylinderLift f q i c v h₀ h₁ (s,ray f q ta) = c (s,ta) := rfl@[simp] lemma cylinderLift_apex (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))(c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))(h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))(h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) (s : unitInterval) (b : B) :cylinderLift f q i c v h₀ h₁ (s,apex f q b) = v (s,b) := rflnamespace Contractionvariable {f : C(A,X)} {p : C(X,B)} {q : C(A,B)} {hf : ∀ a, p (f a) = q a}variable (H : Contraction f p q hf)def leftRay : C(unitInterval × (unitInterval × A),Susp q) wheretoFun z := collapse f p q hf (H.hom(vertical (z.1,z.2.1),ray f q (horizontal (z.1,z.2.1),z.2.2)))continuous_toFun := (collapse f p q hf).continuous.comp (H.hom.continuous.comp((vertical.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk((ray f q).continuous.comp((horizontal.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk(continuous_snd.comp continuous_snd)))))lemma leftRay_bottom (s : unitInterval) (a : A) : H.leftRay (s,(0,a)) = south q (q a) := bychange collapse f p q hf (H.hom (vertical (s,0),ray f q (horizontal (s,0),a))) = _rw [horizontal_bottom,vertical_bottom,H.at_zero,ray_zero,collapse_base,hf]lemma leftRay_top (s : unitInterval) (a : A) : H.leftRay (s,(1,a)) = north q (q a) := bychange collapse f p q hf (H.hom (vertical (s,1),ray f q (horizontal (s,1),a))) = _rcases square_top s with hx | hy· rw [hx,ray_one,H.fixed,collapse_apex]· rw [hy,H.at_one,projection_ray,collapse_apex]def leftDeformation : C(unitInterval × Susp q,Susp q) :=cylinderLift q q ((south q).comp ⟨Prod.snd,continuous_snd⟩) H.leftRay((north q).comp ⟨Prod.snd,continuous_snd⟩) H.leftRay_bottom H.leftRay_top@[simp] lemma leftDeformation_south (s : unitInterval) (b : B) :H.leftDeformation (s,south q b) = south q b := rfl@[simp] lemma leftDeformation_meridian (s : unitInterval) (ta : unitInterval × A) :H.leftDeformation (s,meridian q ta) = H.leftRay (s,ta) := rfl@[simp] lemma leftDeformation_north (s : unitInterval) (b : B) :H.leftDeformation (s,north q b) = north q b := rfllemma leftDeformation_zero (z : Susp q) : H.leftDeformation (0,z) = z := byinduction z using induction with| hbase b => rfl| hray ta =>rw [leftDeformation_meridian]change collapse f p q hf (H.hom(vertical (0,ta.1),ray f q (horizontal (0,ta.1),ta.2))) = _rw [horizontal_left,vertical_left,H.at_zero,collapse_ray]| hapex b => rfllemma leftDeformation_one (z : Susp q) :H.leftDeformation (1,z) = H.inverse (suspMap f p q hf z) := byinduction z using induction with| hbase b => rw [leftDeformation_south,suspMap_south,inverse_south]| hray ta =>rw [leftDeformation_meridian,suspMap_meridian,inverse_meridian]change collapse f p q hf (H.hom(vertical (1,ta.1),ray f q (horizontal (1,ta.1),ta.2))) = _rw [horizontal_right,vertical_right,ray_zero]| hapex b => rw [leftDeformation_north,suspMap_north,inverse_north]lemma leftDeformation_over (s : unitInterval) (z : Susp q) :suspProjection q (H.leftDeformation (s,z)) = suspProjection q z := byinduction z using induction with| hbase b => rfl| hray ta =>rw [leftDeformation_meridian]change suspProjection q (collapse f p q hf (H.hom(vertical (s,ta.1),ray f q (horizontal (s,ta.1),ta.2)))) = _rw [collapse_over,H.staysOver,projection_ray]rfl| hapex b => rfldef leftHomotopy : (H.inverse.comp (suspMap f p q hf)).Homotopy (ContinuousMap.id (Susp q)) :=ContinuousMap.Homotopy.symm{ toContinuousMap := H.leftDeformationmap_zero_left := H.leftDeformation_zeromap_one_left := H.leftDeformation_one }lemma leftHomotopy_over (s : unitInterval) (z : Susp q) :suspProjection q (H.leftHomotopy (s,z)) = suspProjection q z :=H.leftDeformation_over (unitInterval.symm s) zend Contractionend NearbyLagrangian.FiberConeendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393import Mathlibnamespace OAI/-! Fiberwise cones, contractions and left suspension homotopies. -/noncomputable sectionuniverse u v wopen Set ContinuousMapopen scoped Topology unitIntervalnamespace NearbyLagrangian.FiberConevariable {B A X Y : Type*} [TopologicalSpace B] [TopologicalSpace A][TopologicalSpace X] [TopologicalSpace Y]abbrev Raw (B A X : Type*) := X ⊕ ((unitInterval × A) ⊕ B)inductive Seam (f : C(A,X)) (q : C(A,B)) : Raw B A X → Raw B A X → Prop| bottom (a : A) : Seam f q (.inr (.inl (0,a))) (.inl (f a))| top (a : A) : Seam f q (.inr (.inl (1,a))) (.inr (.inr (q a)))def Space (f : C(A,X)) (q : C(A,B)) := Quot (Seam f q)instance (f : C(A,X)) (q : C(A,B)) : TopologicalSpace (Space f q) :=inferInstanceAs (TopologicalSpace (Quot (Seam f q)))def base (f : C(A,X)) (q : C(A,B)) : C(X,Space f q) :=⟨fun x => Quot.mk _ (.inl x),continuous_quot_mk.comp continuous_inl⟩def ray (f : C(A,X)) (q : C(A,B)) : C(unitInterval × A,Space f q) :=⟨fun z => Quot.mk _ (.inr (.inl z)),continuous_quot_mk.comp (continuous_inr.comp continuous_inl)⟩def apex (f : C(A,X)) (q : C(A,B)) : C(B,Space f q) :=⟨fun b => Quot.mk _ (.inr (.inr b)),continuous_quot_mk.comp (continuous_inr.comp continuous_inr)⟩@[simp] lemma ray_zero (f : C(A,X)) (q : C(A,B)) (a : A) :ray f q (0,a) = base f q (f a) := Quot.sound (Seam.bottom a)@[simp] lemma ray_one (f : C(A,X)) (q : C(A,B)) (a : A) :ray f q (1,a) = apex f q (q a) := Quot.sound (Seam.top a)def lift (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))(c : C(unitInterval × A,Y)) (v : C(B,Y))(h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) :C(Space f q,Y) wheretoFun := Quot.lift (Sum.elim i (Sum.elim c v)) (byintro a b hcases h with| bottom a => exact h₀ a| top a => exact h₁ a)continuous_toFun := continuous_quot_lift _(i.continuous.sumElim (c.continuous.sumElim v.continuous))@[simp] lemma lift_base (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))(c : C(unitInterval × A,Y)) (v : C(B,Y))(h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) (x : X) :lift f q i c v h₀ h₁ (base f q x) = i x := rfl@[simp] lemma lift_ray (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))(c : C(unitInterval × A,Y)) (v : C(B,Y))(h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) (z : unitInterval × A) :lift f q i c v h₀ h₁ (ray f q z) = c z := rfl@[simp] lemma lift_apex (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))(c : C(unitInterval × A,Y)) (v : C(B,Y))(h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) (b : B) :lift f q i c v h₀ h₁ (apex f q b) = v b := rfl@[elab_as_elim] theorem induction {f : C(A,X)} {q : C(A,B)}{P : Space f q → Prop} (hbase : ∀ x, P (base f q x))(hray : ∀ ta, P (ray f q ta)) (hapex : ∀ b, P (apex f q b)) (z : Space f q) : P z := byinduction z using Quot.inductionOn with| h z =>rcases z with x | (ta | b)· exact hbase x· exact hray ta· exact hapex bdef projection (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) : C(Space f q,B) :=lift f q p (q.comp ⟨Prod.snd,continuous_snd⟩) (ContinuousMap.id B)(fun a => (hf a).symm) (fun _ => rfl)@[simp] lemma projection_base (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (x : X) : projection f p q hf (base f q x) = p x := rfl@[simp] lemma projection_ray (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (ta : unitInterval × A) :projection f p q hf (ray f q ta) = q ta.2 := rfl@[simp] lemma projection_apex (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (b : B) : projection f p q hf (apex f q b) = b := rflabbrev Susp (q : C(A,B)) := Space q qdef suspProjection (q : C(A,B)) : C(Susp q,B) :=projection q (ContinuousMap.id B) q (fun _ => rfl)abbrev south (q : C(A,B)) : C(B,Susp q) := base q qabbrev meridian (q : C(A,B)) : C(unitInterval × A,Susp q) := ray q qabbrev north (q : C(A,B)) : C(B,Susp q) := apex q qdef suspMap (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) : C(Susp q,Susp p) :=lift q q (south p)((meridian p).comp ⟨fun ta => (ta.1,f ta.2),continuous_fst.prodMk(f.continuous.comp continuous_snd)⟩) (north p)(fun a => by change meridian p (0,f a) = south p (q a); rw [ray_zero,hf])(fun a => by change meridian p (1,f a) = north p (q a); rw [ray_one,hf])@[simp] lemma suspMap_south (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (b : B) : suspMap f p q hf (south q b) = south p b := rfl@[simp] lemma suspMap_meridian (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (ta : unitInterval × A) :suspMap f p q hf (meridian q ta) = meridian p (ta.1,f ta.2) := rfl@[simp] lemma suspMap_north (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (b : B) : suspMap f p q hf (north q b) = north p b := rfllemma suspMap_over (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (z : Susp q) :suspProjection p (suspMap f p q hf z) = suspProjection q z := byinduction z using induction with| hbase b => rfl| hray ta => exact hf ta.2| hapex b => rfldef collapse (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) : C(Space f q,Susp q) :=lift f q ((south q).comp p) (meridian q) (north q)(fun a => by change meridian q (0,a) = south q (p (f a)); rw [ray_zero,hf])(fun a => ray_one q q a)@[simp] lemma collapse_base (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (x : X) : collapse f p q hf (base f q x) = south q (p x) := rfl@[simp] lemma collapse_ray (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (ta : unitInterval × A) : collapse f p q hf (ray f q ta) = meridian q ta := rfl@[simp] lemma collapse_apex (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (b : B) : collapse f p q hf (apex f q b) = north q b := rfllemma collapse_over (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) (z : Space f q) :suspProjection q (collapse f p q hf z) = projection f p q hf z := byinduction z using induction with| hbase x => rfl| hray ta => rfl| hapex b => rflend NearbyLagrangian.FiberConeendnoncomputable sectionuniverse u v wopen Set ContinuousMapopen scoped Topology unitIntervalnamespace NearbyLagrangian.FiberConevariable {B A X : Type*} [TopologicalSpace B] [TopologicalSpace A] [TopologicalSpace X]structure Contraction (f : C(A,X)) (p : C(X,B)) (q : C(A,B))(hf : ∀ a, p (f a) = q a) wherehom : C(unitInterval × Space f q,Space f q)at_zero : ∀ z, hom (0,z) = zat_one : ∀ z, hom (1,z) = apex f q (projection f p q hf z)staysOver : ∀ t z, projection f p q hf (hom (t,z)) = projection f p q hf zfixed : ∀ t b, hom (t,apex f q b) = apex f q bnamespace Contractionvariable {f : C(A,X)} {p : C(X,B)} {q : C(A,B)} {hf : ∀ a, p (f a) = q a}variable (H : Contraction f p q hf)def inverseRay : C(unitInterval × X,Susp q) :=(collapse f p q hf).comp(H.hom.comp ⟨fun tx => (tx.1,base f q tx.2),continuous_fst.prodMk ((base f q).continuous.comp continuous_snd)⟩)@[simp] lemma inverseRay_zero (x : X) : H.inverseRay (0,x) = south q (p x) := bychange collapse f p q hf (H.hom (0,base f q x)) = _rw [H.at_zero,collapse_base]@[simp] lemma inverseRay_one (x : X) : H.inverseRay (1,x) = north q (p x) := bychange collapse f p q hf (H.hom (1,base f q x)) = _rw [H.at_one,projection_base,collapse_apex]def inverse : C(Susp p,Susp q) :=lift p p (south q) H.inverseRay (north q) H.inverseRay_zero H.inverseRay_one@[simp] lemma inverse_south (b : B) : H.inverse (south p b) = south q b := rfl@[simp] lemma inverse_meridian (tx : unitInterval × X) :H.inverse (meridian p tx) = collapse f p q hf (H.hom (tx.1,base f q tx.2)) := rfl@[simp] lemma inverse_north (b : B) : H.inverse (north p b) = north q b := rfllemma inverse_over (z : Susp p) : suspProjection q (H.inverse z) = suspProjection p z := byinduction z using induction with| hbase b => rfl| hray tx =>rw [inverse_meridian,collapse_over,H.staysOver,projection_base]rfl| hapex b => rflend Contractiondef squareDen (s : unitInterval) : ℝ := max (s:ℝ) (1-(s:ℝ))lemma squareDen_pos (s : unitInterval) : 0 < squareDen s := byhave ha := le_max_left (s:ℝ) (1-(s:ℝ))have hb := le_max_right (s:ℝ) (1-(s:ℝ))dsimp [squareDen]linarithlemma continuous_squareDen : Continuous squareDen :=continuous_subtype_val.max (continuous_const.sub continuous_subtype_val)def horizontal : C(unitInterval × unitInterval,unitInterval) wheretoFun st := ⟨(1-(st.1:ℝ))*(st.2:ℝ) / squareDen st.1,byrefine ⟨div_nonneg (mul_nonneg (sub_nonneg.mpr st.1.property.2) st.2.property.1)(squareDen_pos st.1).le,?_⟩apply (div_le_one (squareDen_pos st.1)).mprhave h := mul_le_mul_of_nonneg_left st.2.property.2 (sub_nonneg.mpr st.1.property.2)have h' : (1 - (st.1:ℝ)) * (st.2:ℝ) ≤ 1 - (st.1:ℝ) := bysimpa only [mul_one] using hexact h'.trans (le_max_right _ _)⟩continuous_toFun := byapply Continuous.subtype_mkexact (((continuous_const.sub (continuous_subtype_val.comp continuous_fst)).mul(continuous_subtype_val.comp continuous_snd)).div(continuous_squareDen.comp continuous_fst) (fun _ => (squareDen_pos _).ne'))def vertical : C(unitInterval × unitInterval,unitInterval) wheretoFun st := ⟨(st.1:ℝ)*(st.2:ℝ) / squareDen st.1,byrefine ⟨div_nonneg (mul_nonneg st.1.property.1 st.2.property.1) (squareDen_pos st.1).le,?_⟩apply (div_le_one (squareDen_pos st.1)).mprhave h := mul_le_mul_of_nonneg_left st.2.property.2 st.1.property.1have h' : (st.1:ℝ) * (st.2:ℝ) ≤ (st.1:ℝ) := bysimpa only [mul_one] using hexact h'.trans (le_max_left _ _)⟩continuous_toFun := byapply Continuous.subtype_mkexact (((continuous_subtype_val.comp continuous_fst).mul(continuous_subtype_val.comp continuous_snd)).div(continuous_squareDen.comp continuous_fst) (fun _ => (squareDen_pos _).ne'))@[simp] lemma horizontal_left (t : unitInterval) : horizontal (0,t) = t := byapply Subtype.extsimp [horizontal,squareDen]@[simp] lemma horizontal_right (t : unitInterval) : horizontal (1,t) = 0 := byapply Subtype.extsimp [horizontal,squareDen]@[simp] lemma vertical_left (t : unitInterval) : vertical (0,t) = 0 := byapply Subtype.extsimp [vertical,squareDen]@[simp] lemma vertical_right (t : unitInterval) : vertical (1,t) = t := byapply Subtype.extsimp [vertical,squareDen]@[simp] lemma horizontal_bottom (s : unitInterval) : horizontal (s,0) = 0 := byapply Subtype.extsimp [horizontal]@[simp] lemma vertical_bottom (s : unitInterval) : vertical (s,0) = 0 := byapply Subtype.extsimp [vertical]lemma square_top (s : unitInterval) : horizontal (s,1) = 1 ∨ vertical (s,1) = 1 := byrcases le_total (s:ℝ) (1-(s:ℝ)) with hs | hs· leftapply Subtype.exthave hn : 1-(s:ℝ) ≠ 0 := byhave hd := squareDen_pos srw [squareDen,max_eq_right hs] at hdexact hd.ne'simp [horizontal,squareDen,max_eq_right hs,hn]· rightapply Subtype.exthave hn : (s:ℝ) ≠ 0 := byhave hd := squareDen_pos srw [squareDen,max_eq_left hs] at hdexact hd.ne'simp [vertical,squareDen,max_eq_left hs,hn]end NearbyLagrangian.FiberConeendnoncomputable sectionuniverse u v wopen Set ContinuousMapopen scoped Topology unitIntervalnamespace NearbyLagrangian.FiberConevariable {B A X Y : Type*} [TopologicalSpace B] [TopologicalSpace A][TopologicalSpace X] [TopologicalSpace Y]def cylinderLift (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))(c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))(h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))(h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) : C(unitInterval × Space f q,Y) :=(ContinuousMap.uncurry (lift f q(ContinuousMap.curry (i.comp ContinuousMap.prodSwap))(ContinuousMap.curry (c.comp ContinuousMap.prodSwap))(ContinuousMap.curry (v.comp ContinuousMap.prodSwap))(fun a => by ext s; exact h₀ s a)(fun a => by ext s; exact h₁ s a))).comp ContinuousMap.prodSwap@[simp] lemma cylinderLift_base (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))(c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))(h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))(h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) (s : unitInterval) (x : X) :cylinderLift f q i c v h₀ h₁ (s,base f q x) = i (s,x) := rfl@[simp] lemma cylinderLift_ray (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))(c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))(h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))(h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) (s : unitInterval) (ta : unitInterval × A) :cylinderLift f q i c v h₀ h₁ (s,ray f q ta) = c (s,ta) := rfl@[simp] lemma cylinderLift_apex (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))(c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))(h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))(h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) (s : unitInterval) (b : B) :cylinderLift f q i c v h₀ h₁ (s,apex f q b) = v (s,b) := rflnamespace Contractionvariable {f : C(A,X)} {p : C(X,B)} {q : C(A,B)} {hf : ∀ a, p (f a) = q a}variable (H : Contraction f p q hf)def leftRay : C(unitInterval × (unitInterval × A),Susp q) wheretoFun z := collapse f p q hf (H.hom(vertical (z.1,z.2.1),ray f q (horizontal (z.1,z.2.1),z.2.2)))continuous_toFun := (collapse f p q hf).continuous.comp (H.hom.continuous.comp((vertical.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk((ray f q).continuous.comp((horizontal.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk(continuous_snd.comp continuous_snd)))))lemma leftRay_bottom (s : unitInterval) (a : A) : H.leftRay (s,(0,a)) = south q (q a) := bychange collapse f p q hf (H.hom (vertical (s,0),ray f q (horizontal (s,0),a))) = _rw [horizontal_bottom,vertical_bottom,H.at_zero,ray_zero,collapse_base,hf]lemma leftRay_top (s : unitInterval) (a : A) : H.leftRay (s,(1,a)) = north q (q a) := bychange collapse f p q hf (H.hom (vertical (s,1),ray f q (horizontal (s,1),a))) = _rcases square_top s with hx | hy· rw [hx,ray_one,H.fixed,collapse_apex]· rw [hy,H.at_one,projection_ray,collapse_apex]def leftDeformation : C(unitInterval × Susp q,Susp q) :=cylinderLift q q ((south q).comp ⟨Prod.snd,continuous_snd⟩) H.leftRay((north q).comp ⟨Prod.snd,continuous_snd⟩) H.leftRay_bottom H.leftRay_top@[simp] lemma leftDeformation_south (s : unitInterval) (b : B) :H.leftDeformation (s,south q b) = south q b := rfl@[simp] lemma leftDeformation_meridian (s : unitInterval) (ta : unitInterval × A) :H.leftDeformation (s,meridian q ta) = H.leftRay (s,ta) := rfl@[simp] lemma leftDeformation_north (s : unitInterval) (b : B) :H.leftDeformation (s,north q b) = north q b := rfllemma leftDeformation_zero (z : Susp q) : H.leftDeformation (0,z) = z := byinduction z using induction with| hbase b => rfl| hray ta =>rw [leftDeformation_meridian]change collapse f p q hf (H.hom(vertical (0,ta.1),ray f q (horizontal (0,ta.1),ta.2))) = _rw [horizontal_left,vertical_left,H.at_zero,collapse_ray]| hapex b => rfllemma leftDeformation_one (z : Susp q) :H.leftDeformation (1,z) = H.inverse (suspMap f p q hf z) := byinduction z using induction with| hbase b => rw [leftDeformation_south,suspMap_south,inverse_south]| hray ta =>rw [leftDeformation_meridian,suspMap_meridian,inverse_meridian]change collapse f p q hf (H.hom(vertical (1,ta.1),ray f q (horizontal (1,ta.1),ta.2))) = _rw [horizontal_right,vertical_right,ray_zero]| hapex b => rw [leftDeformation_north,suspMap_north,inverse_north]lemma leftDeformation_over (s : unitInterval) (z : Susp q) :suspProjection q (H.leftDeformation (s,z)) = suspProjection q z := byinduction z using induction with| hbase b => rfl| hray ta =>rw [leftDeformation_meridian]change suspProjection q (collapse f p q hf (H.hom(vertical (s,ta.1),ray f q (horizontal (s,ta.1),ta.2)))) = _rw [collapse_over,H.staysOver,projection_ray]rfl| hapex b => rfldef leftHomotopy : (H.inverse.comp (suspMap f p q hf)).Homotopy (ContinuousMap.id (Susp q)) :=ContinuousMap.Homotopy.symm{ toContinuousMap := H.leftDeformationmap_zero_left := H.leftDeformation_zeromap_one_left := H.leftDeformation_one }lemma leftHomotopy_over (s : unitInterval) (z : Susp q) :suspProjection q (H.leftHomotopy (s,z)) = suspProjection q z :=H.leftDeformation_over (unitInterval.symm s) zend Contractionend NearbyLagrangian.FiberConeendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657import Mathlibimport OAI.Topology.Homotopy.HomotopyFiberimport OAI.Topology.Homotopy.LoopHomotopynamespace OAI/-! Nontrivial homotopy kernels from finite cardinality bounds. -/noncomputable sectionuniverse u v wnamespace NearbyLagrangian.HomotopyFiberopen ContinuousMapopen scoped Topology Topology.Homotopyopen BasedHomotopyvariable {N X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]variable [DecidableEq N] [Nonempty N]theorem nontrivial_kernel_of_large_fiber (e : C(X,Y)) (x : X){K : Type*} [Fintype K][Fintype (HomotopyGroup N (Path (e x) (e x)) (Path.refl (e x)))](ι : K ↪ HomotopyGroup N (Fiber e (e x)) (base e x))(hcard : Fintype.card (HomotopyGroup N (Path (e x) (e x)) (Path.refl (e x))) < Fintype.card K) :∃ a : HomotopyGroup N X x, a ≠ 1 ∧ groupMap e rfl a = 1 := byclassicalsuffices h : ∃ k, groupMap (projection e (e x)) rfl (ι k) ≠ 1 byobtain ⟨k,hk⟩ := hexact ⟨groupMap (projection e (e x)) rfl (ι k),hk,(kernel_eq_projection_range e x _).mpr ⟨ι k,rfl⟩⟩by_contra! hchoose q hq using fun k => (projection_kernel_eq_loop_range e x (ι k)).mp (h k)have hi : Function.Injective q := byintro k l hklapply ι.injectivehave hk := hq krw [hkl] at hkexact hk.symm.trans (hq l)exact (Nat.not_le_of_lt hcard) (Fintype.card_le_of_injective q hi)theorem nontrivial_pi9_kernel_of_source_sizes (e : C(X,Y)) (x : X)(sphereCalculation : π_ 10 Y (e x) ≃ (Fin 3 → ZMod 2))(whiteheadClasses : (ZMod 8 × (ZMod 2 × ZMod 2)) ↪π_ 9 (Fiber e (e x)) (base e x)) :∃ a : π_ 9 X x, a ≠ 1 ∧ groupMap e rfl a = 1 := bylet calculation := (pi9LoopEquivPi10 (e x)).trans sphereCalculationlet : Fintype (π_ 9 (Path (e x) (e x)) (Path.refl (e x))) :=Fintype.ofEquiv (Fin 3 → ZMod 2) calculation.symmapply nontrivial_kernel_of_large_fiber e x whiteheadClassesrw [Fintype.card_congr calculation]norm_numend NearbyLagrangian.HomotopyFiberendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657import Mathlibimport OAI.Topology.Homotopy.HomotopyFiberimport OAI.Topology.Homotopy.LoopHomotopynamespace OAI/-! Nontrivial homotopy kernels from finite cardinality bounds. -/noncomputable sectionuniverse u v wnamespace NearbyLagrangian.HomotopyFiberopen ContinuousMapopen scoped Topology Topology.Homotopyopen BasedHomotopyvariable {N X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]variable [DecidableEq N] [Nonempty N]theorem nontrivial_kernel_of_large_fiber (e : C(X,Y)) (x : X){K : Type*} [Fintype K][Fintype (HomotopyGroup N (Path (e x) (e x)) (Path.refl (e x)))](ι : K ↪ HomotopyGroup N (Fiber e (e x)) (base e x))(hcard : Fintype.card (HomotopyGroup N (Path (e x) (e x)) (Path.refl (e x))) < Fintype.card K) :∃ a : HomotopyGroup N X x, a ≠ 1 ∧ groupMap e rfl a = 1 := byclassicalsuffices h : ∃ k, groupMap (projection e (e x)) rfl (ι k) ≠ 1 byobtain ⟨k,hk⟩ := hexact ⟨groupMap (projection e (e x)) rfl (ι k),hk,(kernel_eq_projection_range e x _).mpr ⟨ι k,rfl⟩⟩by_contra! hchoose q hq using fun k => (projection_kernel_eq_loop_range e x (ι k)).mp (h k)have hi : Function.Injective q := byintro k l hklapply ι.injectivehave hk := hq krw [hkl] at hkexact hk.symm.trans (hq l)exact (Nat.not_le_of_lt hcard) (Fintype.card_le_of_injective q hi)theorem nontrivial_pi9_kernel_of_source_sizes (e : C(X,Y)) (x : X)(sphereCalculation : π_ 10 Y (e x) ≃ (Fin 3 → ZMod 2))(whiteheadClasses : (ZMod 8 × (ZMod 2 × ZMod 2)) ↪π_ 9 (Fiber e (e x)) (base e x)) :∃ a : π_ 9 X x, a ≠ 1 ∧ groupMap e rfl a = 1 := bylet calculation := (pi9LoopEquivPi10 (e x)).trans sphereCalculationlet : Fintype (π_ 9 (Path (e x) (e x)) (Path.refl (e x))) :=Fintype.ofEquiv (Fin 3 → ZMod 2) calculation.symmapply nontrivial_kernel_of_large_fiber e x whiteheadClassesrw [Fintype.card_congr calculation]norm_numend NearbyLagrangian.HomotopyFiberendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319import Mathlibimport OAI.Topology.Homotopy.BasedMapsnamespace OAI/-! The path-space homotopy fiber and exactness at its projection. -/noncomputable sectionuniverse u v wnamespace NearbyLagrangian.HomotopyFiberopen ContinuousMapopen scoped Topology Topology.Homotopyopen BasedHomotopyvariable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]def Fiber (e : C(X,Y)) (y : Y) :={z : X × C(unitInterval,Y) // z.2 0 = e z.1 ∧ z.2 1 = y}instance (e : C(X,Y)) (y : Y) : TopologicalSpace (Fiber e y) := inferInstanceAs(TopologicalSpace {z : X × C(unitInterval,Y) // z.2 0 = e z.1 ∧ z.2 1 = y})def base (e : C(X,Y)) (x : X) : Fiber e (e x) :=⟨(x,ContinuousMap.const _ (e x)),rfl,rfl⟩def projection (e : C(X,Y)) (y : Y) : C(Fiber e y,X) :=⟨fun z => z.1.1,continuous_fst.comp continuous_subtype_val⟩@[simp] theorem projection_base (e : C(X,Y)) (x : X) :projection e (e x) (base e x) = x := rflvariable {N : Type*}def projectionNullhomotopy (e : C(X,Y)) (x : X)(f : GenLoop N (Fiber e (e x)) (base e x)) :(loopMap e rfl (loopMap (projection e (e x)) rfl f)).1.HomotopyRel (ContinuousMap.const _ (e x)) (Cube.boundary N) wheretoFun z := (f z.2).1.2 z.1continuous_toFun := byexact ((continuous_snd.comp (continuous_subtype_val.comp (f.1.continuous.comp continuous_snd))).eval continuous_fst)map_zero_left t := (f t).2.1map_one_left t := (f t).2.2prop' s t ht := bychange (f t).1.2 s = e (f t).1.1rw [GenLoop.boundary f t ht]rfldef liftNullhomotopy (e : C(X,Y)) (x : X) (f : GenLoop N X x)(H : (loopMap e rfl f).1.HomotopyRel (ContinuousMap.const _ (e x)) (Cube.boundary N)) :GenLoop N (Fiber e (e x)) (base e x) :=⟨⟨fun t => ⟨(f t,(H.toContinuousMap.comp ContinuousMap.prodSwap).curry t),H.map_zero_left t,H.map_one_left t⟩,byapply Continuous.subtype_mkexact f.1.continuous.prodMk (H.toContinuousMap.comp ContinuousMap.prodSwap).curry.continuous⟩,byintro t htapply Subtype.extapply Prod.ext (GenLoop.boundary f t ht)ext sexact (H.prop s t ht).trans (congrArg e (GenLoop.boundary f t ht))⟩@[simp] theorem projection_liftNullhomotopy (e : C(X,Y)) (x : X) (f : GenLoop N X x)(H : (loopMap e rfl f).1.HomotopyRel (ContinuousMap.const _ (e x)) (Cube.boundary N)) :loopMap (projection e (e x)) rfl (liftNullhomotopy e x f H) = f := by ext; rfltheorem kernel_eq_projection_range [DecidableEq N] [Nonempty N](e : C(X,Y)) (x : X) (a : HomotopyGroup N X x) :groupMap e rfl a = 1 ↔∃ b : HomotopyGroup N (Fiber e (e x)) (base e x),groupMap (projection e (e x)) rfl b = a := byinduction a using Quotient.inductionOn with| h f =>constructor· intro hchange (⟦loopMap e rfl f⟧ : HomotopyGroup N Y (e x)) = ⟦GenLoop.const⟧ at hobtain ⟨H⟩ := Quotient.exact hexact ⟨⟦liftNullhomotopy e x f H⟧,congrArg Quotient.mk'' (projection_liftNullhomotopy e x f H)⟩· rintro ⟨b,hb⟩rw [← hb]induction b using Quotient.inductionOn with| h g =>change (⟦loopMap e rfl (loopMap (projection e (e x)) rfl g)⟧ : HomotopyGroup N Y (e x)) = ⟦GenLoop.const⟧exact Quotient.sound ⟨projectionNullhomotopy e x g⟩end NearbyLagrangian.HomotopyFiberendnoncomputable sectionuniverse u v wnamespace NearbyLagrangian.HomotopyFiberopen ContinuousMap Setopen scoped Topology Topology.Homotopyopen BasedHomotopydef frontTime (s r : unitInterval) : unitInterval := projIcc 0 1 zero_le_one ((s:ℝ)-2*r)def backTime (s r : unitInterval) : unitInterval := projIcc 0 1 zero_le_one ((2*(r:ℝ)-s)/(2-s))lemma continuous_frontTime : Continuous (fun z : unitInterval × unitInterval => frontTime z.1 z.2) := byunfold frontTimefun_proplemma continuous_backTime : Continuous (fun z : unitInterval × unitInterval => backTime z.1 z.2) := byunfold backTimeapply continuous_projIcc.compapply Continuous.div· fun_prop· fun_prop· intro zhave := z.1.property.2linarith@[simp] lemma frontTime_zero_right (s : unitInterval) : frontTime s 0 = s := bychange projIcc 0 1 zero_le_one ((s:ℝ)-2*0) = ssimp only [mul_zero,sub_zero]exact projIcc_val _ s@[simp] lemma backTime_one_right (s : unitInterval) : backTime s 1 = 1 := byunfold backTimehave hs : (2:ℝ)-s ≠ 0 := by linarith [s.property.2]simp [hs]@[simp] lemma backTime_zero_left (r : unitInterval) : backTime 0 r = r := bychange projIcc 0 1 zero_le_one ((2*(r:ℝ)-0)/(2-0)) = rhave he : (2*(r:ℝ)-(0:ℝ))/(2-(0:ℝ)) = r := by ringrw [he]exact projIcc_val _ rlemma frontTime_seam {s r : unitInterval} (h : 2*(r:ℝ)=s) : frontTime s r = 0 := byunfold frontTimerw [h,sub_self]exact projIcc_left _lemma backTime_seam {s r : unitInterval} (h : 2*(r:ℝ)=s) : backTime s r = 0 := byunfold backTimerw [h,sub_self,zero_div]exact projIcc_left _variable {A X Y : Type*} [TopologicalSpace A] [TopologicalSpace X] [TopologicalSpace Y]variable (e : C(X,Y)) (x : X) (f : C(A,Fiber e (e x)))variable (H : ((projection e (e x)).comp f).Homotopy (ContinuousMap.const A x))def deformValue (z : (unitInterval × A) × unitInterval) : Y :=if 2*(z.2:ℝ) ≤ z.1.1 then e (H (frontTime z.1.1 z.2,z.1.2))else (f z.1.2).1.2 (backTime z.1.1 z.2)lemma continuous_deformValue : Continuous (deformValue e x f H) := byunfold deformValueapply continuous_if_le· fun_prop· fun_prop· apply Continuous.continuousOnapply e.continuous.compapply H.continuous.compexact (continuous_frontTime.comp ((continuous_fst.comp continuous_fst).prodMk continuous_snd)).prodMk(continuous_snd.comp continuous_fst)· apply Continuous.continuousOnexact (continuous_snd.comp (continuous_subtype_val.comp(f.continuous.comp (continuous_snd.comp continuous_fst)))).eval(continuous_backTime.comp ((continuous_fst.comp continuous_fst).prodMk continuous_snd))· intro z hzrw [frontTime_seam hz,backTime_seam hz,H.apply_zero]exact (f z.1.2).2.1.symm@[simp] lemma deformValue_start (s : unitInterval) (a : A) :deformValue e x f H ((s,a),0) = e (H (s,a)) := bychange (if 2*(0:ℝ) ≤ s then e (H (frontTime s 0,a)) else (f a).1.2 (backTime s 0)) = e (H (s,a))simp only [mul_zero,ite_eq_left s.property.1,frontTime_zero_right]@[simp] lemma deformValue_end (s : unitInterval) (a : A) :deformValue e x f H ((s,a),1) = e x := bychange (if 2*(1:ℝ) ≤ s then e (H (frontTime s 1,a)) else (f a).1.2 (backTime s 1)) = e xhave hs : ¬ 2*(1:ℝ) ≤ (s:ℝ) := by linarith [s.property.2]rw [ite_eq_right hs,backTime_one_right]exact (f a).2.2@[simp] lemma deformValue_zero (a : A) (r : unitInterval) :deformValue e x f H ((0,a),r) = (f a).1.2 r := byunfold deformValuesplit_ifs with hr· have he : r = 0 := Subtype.ext (by dsimp at hr ⊢; linarith [r.property.1])rw [he,frontTime_zero_right,H.apply_zero]exact (f a).2.1.symm· rw [backTime_zero_left]def deformPath : C(unitInterval × A,C(unitInterval,Y)) :=(⟨deformValue e x f H,continuous_deformValue e x f H⟩ : C((unitInterval × A) × unitInterval,Y)).currydef deformFiber : C(unitInterval × A,Fiber e (e x)) wheretoFun z := ⟨(H z,deformPath e x f H z),deformValue_start e x f H z.1 z.2,deformValue_end e x f H z.1 z.2⟩continuous_toFun := (H.continuous.prodMk (deformPath e x f H).continuous).subtype_mk _@[simp] lemma deformFiber_zero (a : A) : deformFiber e x f H (0,a) = f a := byapply Subtype.extapply Prod.ext· exact H.apply_zero a· ext rexact deformValue_zero e x f H a rdef loopInclusion : C(Path (e x) (e x),Fiber e (e x)) wheretoFun p := ⟨(x,p.toContinuousMap),p.source,p.target⟩continuous_toFun := (continuous_const.prodMk continuous_induced_dom).subtype_mk _@[simp] lemma loopInclusion_base : loopInclusion e x (Path.refl (e x)) = base e x := rfldef loopRepresentative : C(A,Path (e x) (e x)) wheretoFun a := {toContinuousMap := deformPath e x f H (1,a)source' := bychange deformValue e x f H ((1,a),0) = e xrw [deformValue_start,H.apply_one,ContinuousMap.const_apply]target' := deformValue_end e x f H 1 a }continuous_toFun := byapply Path.continuous_uncurry_iff.mpexact (continuous_deformValue e x f H).comp ((continuous_const.prodMk continuous_fst).prodMk continuous_snd)def deformHomotopy : f.Homotopy ((loopInclusion e x).comp (loopRepresentative e x f H)) wheretoContinuousMap := deformFiber e x f Hmap_zero_left := deformFiber_zero e x f Hmap_one_left a := byapply Subtype.extapply Prod.ext· exact H.apply_one a· rfllemma deformValue_fixed (a : A) (ha : f a = base e x) (hH : ∀ s, H (s,a) = x)(s r : unitInterval) : deformValue e x f H ((s,a),r) = e x := byunfold deformValuesplit_ifs· rw [hH]· rw [ha]rfllemma deformFiber_fixed (a : A) (ha : f a = base e x) (hH : ∀ s, H (s,a) = x)(s : unitInterval) : deformFiber e x f H (s,a) = base e x := byapply Subtype.extapply Prod.ext (hH s)ext rexact deformValue_fixed e x f H a ha hH s rlemma loopRepresentative_fixed (a : A) (ha : f a = base e x) (hH : ∀ s, H (s,a) = x) :loopRepresentative e x f H a = Path.refl (e x) := byapply Path.extfunext rexact deformValue_fixed e x f H a ha hH 1 rend NearbyLagrangian.HomotopyFiberendnoncomputable sectionuniverse u v wnamespace NearbyLagrangian.HomotopyFiberopen ContinuousMapopen scoped Topology Topology.Homotopyopen BasedHomotopyvariable {N X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]variable (e : C(X,Y)) (x : X)def boundaryRepresentative (f : GenLoop N (Fiber e (e x)) (base e x))(H : (loopMap (projection e (e x)) rfl f).1.HomotopyRel(ContinuousMap.const _ x) (Cube.boundary N)) :GenLoop N (Path (e x) (e x)) (Path.refl (e x)) :=⟨loopRepresentative e x f.1 H.toHomotopy,byintro t htapply loopRepresentative_fixed· exact GenLoop.boundary f t ht· intro sexact (H.prop s t ht).trans (congrArg (projection e (e x)) (GenLoop.boundary f t ht))⟩def boundaryRepresentativeHomotopy (f : GenLoop N (Fiber e (e x)) (base e x))(H : (loopMap (projection e (e x)) rfl f).1.HomotopyRel(ContinuousMap.const _ x) (Cube.boundary N)) :f.1.HomotopyRel (loopMap (loopInclusion e x) rfl (boundaryRepresentative e x f H)).1(Cube.boundary N) wheretoHomotopy := deformHomotopy e x f.1 H.toHomotopyprop' s t ht := bychange deformFiber e x f.1 H.toHomotopy (s,t) = f trw [GenLoop.boundary f t ht]apply deformFiber_fixed· exact GenLoop.boundary f t ht· intro rexact (H.prop r t ht).trans (congrArg (projection e (e x)) (GenLoop.boundary f t ht))@[simp] theorem projection_loopInclusion (g : GenLoop N (Path (e x) (e x)) (Path.refl (e x))) :loopMap (projection e (e x)) rfl (loopMap (loopInclusion e x) rfl g) = GenLoop.const := byext trfltheorem projection_kernel_eq_loop_range [DecidableEq N] [Nonempty N](a : HomotopyGroup N (Fiber e (e x)) (base e x)) :groupMap (projection e (e x)) rfl a = 1 ↔∃ b : HomotopyGroup N (Path (e x) (e x)) (Path.refl (e x)),groupMap (loopInclusion e x) rfl b = a := byinduction a using Quotient.inductionOn with| h f =>constructor· intro hchange (⟦loopMap (projection e (e x)) rfl f⟧ : HomotopyGroup N X x) = ⟦GenLoop.const⟧ at hobtain ⟨H⟩ := Quotient.exact hrefine ⟨⟦boundaryRepresentative e x f H⟧, ?_⟩exact Quotient.sound ⟨(boundaryRepresentativeHomotopy e x f H).symm⟩· rintro ⟨b,hb⟩rw [← hb]induction b using Quotient.inductionOn with| h g =>change (⟦loopMap (projection e (e x)) rfl (loopMap (loopInclusion e x) rfl g)⟧ :HomotopyGroup N X x) = ⟦GenLoop.const⟧exact congrArg Quotient.mk'' (projection_loopInclusion e x g)end NearbyLagrangian.HomotopyFiberendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319import Mathlibimport OAI.Topology.Homotopy.BasedMapsnamespace OAI/-! The path-space homotopy fiber and exactness at its projection. -/noncomputable sectionuniverse u v wnamespace NearbyLagrangian.HomotopyFiberopen ContinuousMapopen scoped Topology Topology.Homotopyopen BasedHomotopyvariable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]def Fiber (e : C(X,Y)) (y : Y) :={z : X × C(unitInterval,Y) // z.2 0 = e z.1 ∧ z.2 1 = y}instance (e : C(X,Y)) (y : Y) : TopologicalSpace (Fiber e y) := inferInstanceAs(TopologicalSpace {z : X × C(unitInterval,Y) // z.2 0 = e z.1 ∧ z.2 1 = y})def base (e : C(X,Y)) (x : X) : Fiber e (e x) :=⟨(x,ContinuousMap.const _ (e x)),rfl,rfl⟩def projection (e : C(X,Y)) (y : Y) : C(Fiber e y,X) :=⟨fun z => z.1.1,continuous_fst.comp continuous_subtype_val⟩@[simp] theorem projection_base (e : C(X,Y)) (x : X) :projection e (e x) (base e x) = x := rflvariable {N : Type*}def projectionNullhomotopy (e : C(X,Y)) (x : X)(f : GenLoop N (Fiber e (e x)) (base e x)) :(loopMap e rfl (loopMap (projection e (e x)) rfl f)).1.HomotopyRel (ContinuousMap.const _ (e x)) (Cube.boundary N) wheretoFun z := (f z.2).1.2 z.1continuous_toFun := byexact ((continuous_snd.comp (continuous_subtype_val.comp (f.1.continuous.comp continuous_snd))).eval continuous_fst)map_zero_left t := (f t).2.1map_one_left t := (f t).2.2prop' s t ht := bychange (f t).1.2 s = e (f t).1.1rw [GenLoop.boundary f t ht]rfldef liftNullhomotopy (e : C(X,Y)) (x : X) (f : GenLoop N X x)(H : (loopMap e rfl f).1.HomotopyRel (ContinuousMap.const _ (e x)) (Cube.boundary N)) :GenLoop N (Fiber e (e x)) (base e x) :=⟨⟨fun t => ⟨(f t,(H.toContinuousMap.comp ContinuousMap.prodSwap).curry t),H.map_zero_left t,H.map_one_left t⟩,byapply Continuous.subtype_mkexact f.1.continuous.prodMk (H.toContinuousMap.comp ContinuousMap.prodSwap).curry.continuous⟩,byintro t htapply Subtype.extapply Prod.ext (GenLoop.boundary f t ht)ext sexact (H.prop s t ht).trans (congrArg e (GenLoop.boundary f t ht))⟩@[simp] theorem projection_liftNullhomotopy (e : C(X,Y)) (x : X) (f : GenLoop N X x)(H : (loopMap e rfl f).1.HomotopyRel (ContinuousMap.const _ (e x)) (Cube.boundary N)) :loopMap (projection e (e x)) rfl (liftNullhomotopy e x f H) = f := by ext; rfltheorem kernel_eq_projection_range [DecidableEq N] [Nonempty N](e : C(X,Y)) (x : X) (a : HomotopyGroup N X x) :groupMap e rfl a = 1 ↔∃ b : HomotopyGroup N (Fiber e (e x)) (base e x),groupMap (projection e (e x)) rfl b = a := byinduction a using Quotient.inductionOn with| h f =>constructor· intro hchange (⟦loopMap e rfl f⟧ : HomotopyGroup N Y (e x)) = ⟦GenLoop.const⟧ at hobtain ⟨H⟩ := Quotient.exact hexact ⟨⟦liftNullhomotopy e x f H⟧,congrArg Quotient.mk'' (projection_liftNullhomotopy e x f H)⟩· rintro ⟨b,hb⟩rw [← hb]induction b using Quotient.inductionOn with| h g =>change (⟦loopMap e rfl (loopMap (projection e (e x)) rfl g)⟧ : HomotopyGroup N Y (e x)) = ⟦GenLoop.const⟧exact Quotient.sound ⟨projectionNullhomotopy e x g⟩end NearbyLagrangian.HomotopyFiberendnoncomputable sectionuniverse u v wnamespace NearbyLagrangian.HomotopyFiberopen ContinuousMap Setopen scoped Topology Topology.Homotopyopen BasedHomotopydef frontTime (s r : unitInterval) : unitInterval := projIcc 0 1 zero_le_one ((s:ℝ)-2*r)def backTime (s r : unitInterval) : unitInterval := projIcc 0 1 zero_le_one ((2*(r:ℝ)-s)/(2-s))lemma continuous_frontTime : Continuous (fun z : unitInterval × unitInterval => frontTime z.1 z.2) := byunfold frontTimefun_proplemma continuous_backTime : Continuous (fun z : unitInterval × unitInterval => backTime z.1 z.2) := byunfold backTimeapply continuous_projIcc.compapply Continuous.div· fun_prop· fun_prop· intro zhave := z.1.property.2linarith@[simp] lemma frontTime_zero_right (s : unitInterval) : frontTime s 0 = s := bychange projIcc 0 1 zero_le_one ((s:ℝ)-2*0) = ssimp only [mul_zero,sub_zero]exact projIcc_val _ s@[simp] lemma backTime_one_right (s : unitInterval) : backTime s 1 = 1 := byunfold backTimehave hs : (2:ℝ)-s ≠ 0 := by linarith [s.property.2]simp [hs]@[simp] lemma backTime_zero_left (r : unitInterval) : backTime 0 r = r := bychange projIcc 0 1 zero_le_one ((2*(r:ℝ)-0)/(2-0)) = rhave he : (2*(r:ℝ)-(0:ℝ))/(2-(0:ℝ)) = r := by ringrw [he]exact projIcc_val _ rlemma frontTime_seam {s r : unitInterval} (h : 2*(r:ℝ)=s) : frontTime s r = 0 := byunfold frontTimerw [h,sub_self]exact projIcc_left _lemma backTime_seam {s r : unitInterval} (h : 2*(r:ℝ)=s) : backTime s r = 0 := byunfold backTimerw [h,sub_self,zero_div]exact projIcc_left _variable {A X Y : Type*} [TopologicalSpace A] [TopologicalSpace X] [TopologicalSpace Y]variable (e : C(X,Y)) (x : X) (f : C(A,Fiber e (e x)))variable (H : ((projection e (e x)).comp f).Homotopy (ContinuousMap.const A x))def deformValue (z : (unitInterval × A) × unitInterval) : Y :=if 2*(z.2:ℝ) ≤ z.1.1 then e (H (frontTime z.1.1 z.2,z.1.2))else (f z.1.2).1.2 (backTime z.1.1 z.2)lemma continuous_deformValue : Continuous (deformValue e x f H) := byunfold deformValueapply continuous_if_le· fun_prop· fun_prop· apply Continuous.continuousOnapply e.continuous.compapply H.continuous.compexact (continuous_frontTime.comp ((continuous_fst.comp continuous_fst).prodMk continuous_snd)).prodMk(continuous_snd.comp continuous_fst)· apply Continuous.continuousOnexact (continuous_snd.comp (continuous_subtype_val.comp(f.continuous.comp (continuous_snd.comp continuous_fst)))).eval(continuous_backTime.comp ((continuous_fst.comp continuous_fst).prodMk continuous_snd))· intro z hzrw [frontTime_seam hz,backTime_seam hz,H.apply_zero]exact (f z.1.2).2.1.symm@[simp] lemma deformValue_start (s : unitInterval) (a : A) :deformValue e x f H ((s,a),0) = e (H (s,a)) := bychange (if 2*(0:ℝ) ≤ s then e (H (frontTime s 0,a)) else (f a).1.2 (backTime s 0)) = e (H (s,a))simp only [mul_zero,ite_eq_left s.property.1,frontTime_zero_right]@[simp] lemma deformValue_end (s : unitInterval) (a : A) :deformValue e x f H ((s,a),1) = e x := bychange (if 2*(1:ℝ) ≤ s then e (H (frontTime s 1,a)) else (f a).1.2 (backTime s 1)) = e xhave hs : ¬ 2*(1:ℝ) ≤ (s:ℝ) := by linarith [s.property.2]rw [ite_eq_right hs,backTime_one_right]exact (f a).2.2@[simp] lemma deformValue_zero (a : A) (r : unitInterval) :deformValue e x f H ((0,a),r) = (f a).1.2 r := byunfold deformValuesplit_ifs with hr· have he : r = 0 := Subtype.ext (by dsimp at hr ⊢; linarith [r.property.1])rw [he,frontTime_zero_right,H.apply_zero]exact (f a).2.1.symm· rw [backTime_zero_left]def deformPath : C(unitInterval × A,C(unitInterval,Y)) :=(⟨deformValue e x f H,continuous_deformValue e x f H⟩ : C((unitInterval × A) × unitInterval,Y)).currydef deformFiber : C(unitInterval × A,Fiber e (e x)) wheretoFun z := ⟨(H z,deformPath e x f H z),deformValue_start e x f H z.1 z.2,deformValue_end e x f H z.1 z.2⟩continuous_toFun := (H.continuous.prodMk (deformPath e x f H).continuous).subtype_mk _@[simp] lemma deformFiber_zero (a : A) : deformFiber e x f H (0,a) = f a := byapply Subtype.extapply Prod.ext· exact H.apply_zero a· ext rexact deformValue_zero e x f H a rdef loopInclusion : C(Path (e x) (e x),Fiber e (e x)) wheretoFun p := ⟨(x,p.toContinuousMap),p.source,p.target⟩continuous_toFun := (continuous_const.prodMk continuous_induced_dom).subtype_mk _@[simp] lemma loopInclusion_base : loopInclusion e x (Path.refl (e x)) = base e x := rfldef loopRepresentative : C(A,Path (e x) (e x)) wheretoFun a := {toContinuousMap := deformPath e x f H (1,a)source' := bychange deformValue e x f H ((1,a),0) = e xrw [deformValue_start,H.apply_one,ContinuousMap.const_apply]target' := deformValue_end e x f H 1 a }continuous_toFun := byapply Path.continuous_uncurry_iff.mpexact (continuous_deformValue e x f H).comp ((continuous_const.prodMk continuous_fst).prodMk continuous_snd)def deformHomotopy : f.Homotopy ((loopInclusion e x).comp (loopRepresentative e x f H)) wheretoContinuousMap := deformFiber e x f Hmap_zero_left := deformFiber_zero e x f Hmap_one_left a := byapply Subtype.extapply Prod.ext· exact H.apply_one a· rfllemma deformValue_fixed (a : A) (ha : f a = base e x) (hH : ∀ s, H (s,a) = x)(s r : unitInterval) : deformValue e x f H ((s,a),r) = e x := byunfold deformValuesplit_ifs· rw [hH]· rw [ha]rfllemma deformFiber_fixed (a : A) (ha : f a = base e x) (hH : ∀ s, H (s,a) = x)(s : unitInterval) : deformFiber e x f H (s,a) = base e x := byapply Subtype.extapply Prod.ext (hH s)ext rexact deformValue_fixed e x f H a ha hH s rlemma loopRepresentative_fixed (a : A) (ha : f a = base e x) (hH : ∀ s, H (s,a) = x) :loopRepresentative e x f H a = Path.refl (e x) := byapply Path.extfunext rexact deformValue_fixed e x f H a ha hH 1 rend NearbyLagrangian.HomotopyFiberendnoncomputable sectionuniverse u v wnamespace NearbyLagrangian.HomotopyFiberopen ContinuousMapopen scoped Topology Topology.Homotopyopen BasedHomotopyvariable {N X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]variable (e : C(X,Y)) (x : X)def boundaryRepresentative (f : GenLoop N (Fiber e (e x)) (base e x))(H : (loopMap (projection e (e x)) rfl f).1.HomotopyRel(ContinuousMap.const _ x) (Cube.boundary N)) :GenLoop N (Path (e x) (e x)) (Path.refl (e x)) :=⟨loopRepresentative e x f.1 H.toHomotopy,byintro t htapply loopRepresentative_fixed· exact GenLoop.boundary f t ht· intro sexact (H.prop s t ht).trans (congrArg (projection e (e x)) (GenLoop.boundary f t ht))⟩def boundaryRepresentativeHomotopy (f : GenLoop N (Fiber e (e x)) (base e x))(H : (loopMap (projection e (e x)) rfl f).1.HomotopyRel(ContinuousMap.const _ x) (Cube.boundary N)) :f.1.HomotopyRel (loopMap (loopInclusion e x) rfl (boundaryRepresentative e x f H)).1(Cube.boundary N) wheretoHomotopy := deformHomotopy e x f.1 H.toHomotopyprop' s t ht := bychange deformFiber e x f.1 H.toHomotopy (s,t) = f trw [GenLoop.boundary f t ht]apply deformFiber_fixed· exact GenLoop.boundary f t ht· intro rexact (H.prop r t ht).trans (congrArg (projection e (e x)) (GenLoop.boundary f t ht))@[simp] theorem projection_loopInclusion (g : GenLoop N (Path (e x) (e x)) (Path.refl (e x))) :loopMap (projection e (e x)) rfl (loopMap (loopInclusion e x) rfl g) = GenLoop.const := byext trfltheorem projection_kernel_eq_loop_range [DecidableEq N] [Nonempty N](a : HomotopyGroup N (Fiber e (e x)) (base e x)) :groupMap (projection e (e x)) rfl a = 1 ↔∃ b : HomotopyGroup N (Path (e x) (e x)) (Path.refl (e x)),groupMap (loopInclusion e x) rfl b = a := byinduction a using Quotient.inductionOn with| h f =>constructor· intro hchange (⟦loopMap (projection e (e x)) rfl f⟧ : HomotopyGroup N X x) = ⟦GenLoop.const⟧ at hobtain ⟨H⟩ := Quotient.exact hrefine ⟨⟦boundaryRepresentative e x f H⟧, ?_⟩exact Quotient.sound ⟨(boundaryRepresentativeHomotopy e x f H).symm⟩· rintro ⟨b,hb⟩rw [← hb]induction b using Quotient.inductionOn with| h g =>change (⟦loopMap (projection e (e x)) rfl (loopMap (loopInclusion e x) rfl g)⟧ :HomotopyGroup N X x) = ⟦GenLoop.const⟧exact congrArg Quotient.mk'' (projection_loopInclusion e x g)end NearbyLagrangian.HomotopyFiberendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143import Mathlibnamespace OAI/-! Loop-space homeomorphisms and the degree-shift equivalence. -/noncomputable sectionuniverse u v wnamespace NearbyLagrangian.BasedHomotopyopen ContinuousMapopen scoped Topology Topology.Homotopyvariable {N M X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]variable {x : X} {y : Y}theorem genLoop_homotopic_iff_joined (f g : GenLoop N X x) :GenLoop.Homotopic f g ↔ Joined f g := byconstructor· rintro ⟨H⟩refine ⟨{toFun := fun s => ⟨H.toContinuousMap.curry s,fun t ht =>(H.prop s t ht).trans (GenLoop.boundary f t ht)⟩continuous_toFun := H.toContinuousMap.curry.continuous.subtype_mk _source' := ?_target' := ?_ }⟩· ext t; exact H.apply_zero t· ext t; exact H.apply_one t· rintro ⟨P⟩refine ⟨{toFun := fun z => P z.1 z.2continuous_toFun := ?_map_zero_left := ?_map_one_left := ?_prop' := ?_ }⟩· exact (continuous_subtype_val.comp (P.continuous.comp continuous_fst)).eval continuous_snd· intro t; exact congrArg (fun z : GenLoop N X x => z t) P.source· intro t; exact congrArg (fun z : GenLoop N X x => z t) P.target· intro s t htexact (GenLoop.boundary (P s) t ht).trans (GenLoop.boundary f t ht).symmdef piEquivOfLoopHomeomorph (e : GenLoop N X x ≃ₜ GenLoop M Y y) :HomotopyGroup N X x ≃ HomotopyGroup M Y y :=Quotient.congr e.toEquiv fun f g => bychange GenLoop.Homotopic f g ↔ GenLoop.Homotopic (e f) (e g)rw [genLoop_homotopic_iff_joined,genLoop_homotopic_iff_joined]constructor· intro h; exact h.map e.continuous_toFun· intro hhave hh : Joined (e.symm (e f)) (e.symm (e g)) := h.map e.symm.continuous_toFunsimpa only [Homeomorph.symm_apply_apply] using hhdef piReindexEquiv (e : N ≃ M) (x : X) :HomotopyGroup N X x ≃ HomotopyGroup M X x :=piEquivOfLoopHomeomorph (GenLoop.congr x e)def flattenPathLoop (f : GenLoop N (Path y y) (Path.refl y)) :GenLoop (N ⊕ Unit) Y y :=⟨⟨fun a => f (a ∘ Sum.inl) (a (Sum.inr ())),byapply Continuous.eval· exact f.1.continuous.comp (by fun_prop)· fun_prop⟩,byrintro a ⟨i | i,hi⟩ <;> change f (a ∘ Sum.inl) (a (Sum.inr ())) = y· have h : a ∘ Sum.inl ∈ Cube.boundary N := ⟨i,hi⟩rw [GenLoop.boundary f _ h]rfl· cases ircases hi with hi | hi· rw [hi]; exact (f _).source· rw [hi]; exact (f _).target⟩def curryPathLoop (g : GenLoop (N ⊕ Unit) Y y) :GenLoop N (Path y y) (Path.refl y) :=⟨⟨fun a => {toFun := fun r => g (Sum.elim a (fun _ => r))continuous_toFun := g.1.continuous.comp (by apply continuous_pi; intro i; cases i <;> dsimp only [Sum.elim] <;> fun_prop)source' := GenLoop.boundary g _ ⟨Sum.inr (),Or.inl rfl⟩target' := GenLoop.boundary g _ ⟨Sum.inr (),Or.inr rfl⟩ },byapply Path.continuous_uncurry_iff.mpexact g.1.continuous.comp (by apply continuous_pi; intro i; cases i <;> dsimp only [Sum.elim] <;> fun_prop)⟩,byrintro a ⟨i,hi⟩apply Path.extfunext rexact GenLoop.boundary g _ ⟨Sum.inl i,hi⟩⟩@[simp] lemma curry_flatten (f : GenLoop N (Path y y) (Path.refl y)) :curryPathLoop (flattenPathLoop f) = f := byapply Subtype.extext a rrfl@[simp] lemma flatten_curry (g : GenLoop (N ⊕ Unit) Y y) :flattenPathLoop (curryPathLoop g) = g := byapply Subtype.extext achange g (Sum.elim (a ∘ Sum.inl) (fun _ => a (Sum.inr ()))) = g acongr 1funext icases i with| inl i => rfl| inr i => cases i; rfllemma continuous_flattenPathLoop : Continuous (@flattenPathLoop N Y _ y) := byapply Continuous.subtype_mkapply ContinuousMap.continuous_of_continuous_uncurrychange Continuous (fun z : GenLoop N (Path y y) (Path.refl y) × ((N ⊕ Unit) → unitInterval) =>z.1 (z.2 ∘ Sum.inl) (z.2 (Sum.inr ())))have h : Continuous (fun z : GenLoop N (Path y y) (Path.refl y) × ((N ⊕ Unit) → unitInterval) =>z.1 (z.2 ∘ Sum.inl)) :=(continuous_subtype_val.comp continuous_fst).eval(continuous_pi (fun i => (continuous_apply (Sum.inl i)).comp continuous_snd))exact h.eval ((continuous_apply (Sum.inr ())).comp continuous_snd)lemma continuous_curryPathLoop : Continuous (@curryPathLoop N Y _ y) := byapply Continuous.subtype_mkapply ContinuousMap.continuous_of_continuous_uncurryapply Path.continuous_uncurry_iff.mpexact (continuous_subtype_val.comp (continuous_fst.comp continuous_fst)).eval(by apply continuous_pi; intro i; cases i <;> dsimp only [Sum.elim] <;> fun_prop)def loopSpaceCubeHomeomorph :GenLoop N (Path y y) (Path.refl y) ≃ₜ GenLoop (N ⊕ Unit) Y y wheretoFun := flattenPathLoopinvFun := curryPathLoopleft_inv := curry_flattenright_inv := flatten_currycontinuous_toFun := continuous_flattenPathLoopcontinuous_invFun := continuous_curryPathLoopdef loopPiEquiv (y : Y) :HomotopyGroup N (Path y y) (Path.refl y) ≃ HomotopyGroup (N ⊕ Unit) Y y :=piEquivOfLoopHomeomorph loopSpaceCubeHomeomorphdef pi9LoopEquivPi10 (y : Y) :π_ 9 (Path y y) (Path.refl y) ≃ π_ 10 Y y :=(loopPiEquiv y).trans (piReindexEquiv((Equiv.sumCongr (Equiv.refl (Fin 9)) (Equiv.ofUnique Unit (Fin 1))).trans finSumFinEquiv) y)end NearbyLagrangian.BasedHomotopyendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143import Mathlibnamespace OAI/-! Loop-space homeomorphisms and the degree-shift equivalence. -/noncomputable sectionuniverse u v wnamespace NearbyLagrangian.BasedHomotopyopen ContinuousMapopen scoped Topology Topology.Homotopyvariable {N M X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]variable {x : X} {y : Y}theorem genLoop_homotopic_iff_joined (f g : GenLoop N X x) :GenLoop.Homotopic f g ↔ Joined f g := byconstructor· rintro ⟨H⟩refine ⟨{toFun := fun s => ⟨H.toContinuousMap.curry s,fun t ht =>(H.prop s t ht).trans (GenLoop.boundary f t ht)⟩continuous_toFun := H.toContinuousMap.curry.continuous.subtype_mk _source' := ?_target' := ?_ }⟩· ext t; exact H.apply_zero t· ext t; exact H.apply_one t· rintro ⟨P⟩refine ⟨{toFun := fun z => P z.1 z.2continuous_toFun := ?_map_zero_left := ?_map_one_left := ?_prop' := ?_ }⟩· exact (continuous_subtype_val.comp (P.continuous.comp continuous_fst)).eval continuous_snd· intro t; exact congrArg (fun z : GenLoop N X x => z t) P.source· intro t; exact congrArg (fun z : GenLoop N X x => z t) P.target· intro s t htexact (GenLoop.boundary (P s) t ht).trans (GenLoop.boundary f t ht).symmdef piEquivOfLoopHomeomorph (e : GenLoop N X x ≃ₜ GenLoop M Y y) :HomotopyGroup N X x ≃ HomotopyGroup M Y y :=Quotient.congr e.toEquiv fun f g => bychange GenLoop.Homotopic f g ↔ GenLoop.Homotopic (e f) (e g)rw [genLoop_homotopic_iff_joined,genLoop_homotopic_iff_joined]constructor· intro h; exact h.map e.continuous_toFun· intro hhave hh : Joined (e.symm (e f)) (e.symm (e g)) := h.map e.symm.continuous_toFunsimpa only [Homeomorph.symm_apply_apply] using hhdef piReindexEquiv (e : N ≃ M) (x : X) :HomotopyGroup N X x ≃ HomotopyGroup M X x :=piEquivOfLoopHomeomorph (GenLoop.congr x e)def flattenPathLoop (f : GenLoop N (Path y y) (Path.refl y)) :GenLoop (N ⊕ Unit) Y y :=⟨⟨fun a => f (a ∘ Sum.inl) (a (Sum.inr ())),byapply Continuous.eval· exact f.1.continuous.comp (by fun_prop)· fun_prop⟩,byrintro a ⟨i | i,hi⟩ <;> change f (a ∘ Sum.inl) (a (Sum.inr ())) = y· have h : a ∘ Sum.inl ∈ Cube.boundary N := ⟨i,hi⟩rw [GenLoop.boundary f _ h]rfl· cases ircases hi with hi | hi· rw [hi]; exact (f _).source· rw [hi]; exact (f _).target⟩def curryPathLoop (g : GenLoop (N ⊕ Unit) Y y) :GenLoop N (Path y y) (Path.refl y) :=⟨⟨fun a => {toFun := fun r => g (Sum.elim a (fun _ => r))continuous_toFun := g.1.continuous.comp (by apply continuous_pi; intro i; cases i <;> dsimp only [Sum.elim] <;> fun_prop)source' := GenLoop.boundary g _ ⟨Sum.inr (),Or.inl rfl⟩target' := GenLoop.boundary g _ ⟨Sum.inr (),Or.inr rfl⟩ },byapply Path.continuous_uncurry_iff.mpexact g.1.continuous.comp (by apply continuous_pi; intro i; cases i <;> dsimp only [Sum.elim] <;> fun_prop)⟩,byrintro a ⟨i,hi⟩apply Path.extfunext rexact GenLoop.boundary g _ ⟨Sum.inl i,hi⟩⟩@[simp] lemma curry_flatten (f : GenLoop N (Path y y) (Path.refl y)) :curryPathLoop (flattenPathLoop f) = f := byapply Subtype.extext a rrfl@[simp] lemma flatten_curry (g : GenLoop (N ⊕ Unit) Y y) :flattenPathLoop (curryPathLoop g) = g := byapply Subtype.extext achange g (Sum.elim (a ∘ Sum.inl) (fun _ => a (Sum.inr ()))) = g acongr 1funext icases i with| inl i => rfl| inr i => cases i; rfllemma continuous_flattenPathLoop : Continuous (@flattenPathLoop N Y _ y) := byapply Continuous.subtype_mkapply ContinuousMap.continuous_of_continuous_uncurrychange Continuous (fun z : GenLoop N (Path y y) (Path.refl y) × ((N ⊕ Unit) → unitInterval) =>z.1 (z.2 ∘ Sum.inl) (z.2 (Sum.inr ())))have h : Continuous (fun z : GenLoop N (Path y y) (Path.refl y) × ((N ⊕ Unit) → unitInterval) =>z.1 (z.2 ∘ Sum.inl)) :=(continuous_subtype_val.comp continuous_fst).eval(continuous_pi (fun i => (continuous_apply (Sum.inl i)).comp continuous_snd))exact h.eval ((continuous_apply (Sum.inr ())).comp continuous_snd)lemma continuous_curryPathLoop : Continuous (@curryPathLoop N Y _ y) := byapply Continuous.subtype_mkapply ContinuousMap.continuous_of_continuous_uncurryapply Path.continuous_uncurry_iff.mpexact (continuous_subtype_val.comp (continuous_fst.comp continuous_fst)).eval(by apply continuous_pi; intro i; cases i <;> dsimp only [Sum.elim] <;> fun_prop)def loopSpaceCubeHomeomorph :GenLoop N (Path y y) (Path.refl y) ≃ₜ GenLoop (N ⊕ Unit) Y y wheretoFun := flattenPathLoopinvFun := curryPathLoopleft_inv := curry_flattenright_inv := flatten_currycontinuous_toFun := continuous_flattenPathLoopcontinuous_invFun := continuous_curryPathLoopdef loopPiEquiv (y : Y) :HomotopyGroup N (Path y y) (Path.refl y) ≃ HomotopyGroup (N ⊕ Unit) Y y :=piEquivOfLoopHomeomorph loopSpaceCubeHomeomorphdef pi9LoopEquivPi10 (y : Y) :π_ 9 (Path y y) (Path.refl y) ≃ π_ 10 Y y :=(loopPiEquiv y).trans (piReindexEquiv((Equiv.sumCongr (Equiv.refl (Fin 9)) (Equiv.ofUnique Unit (Fin 1))).trans finSumFinEquiv) y)end NearbyLagrangian.BasedHomotopyendend OAI
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128import Mathlibnamespace OAI/-! Continuous collapse to a one-point compactification and parameterized descent. -/noncomputable sectionuniverse u v wopen Set ContinuousMap Topologyopen scoped Classical OnePoint Topologynamespace NearbyLagrangian.OpenCollapsevariable {Y : Type*}def collapse (U : Set Y) (y : Y) : OnePoint U :=if h : y ∈ U then (⟨y,h⟩ : U) else ∞@[simp] lemma collapse_of_mem {U : Set Y} {y : Y} (h : y ∈ U) :collapse U y = (⟨y,h⟩ : U) := by simp [collapse,h]@[simp] lemma collapse_of_notMem {U : Set Y} {y : Y} (h : y ∉ U) :collapse U y = ∞ := by simp [collapse,h]lemma collapse_eq_infty {U : Set Y} {y : Y} : collapse U y = ∞ ↔ y ∉ U := byby_cases h : y ∈ U <;> simp [h]lemma collapse_eq {U : Set Y} {y z : Y} :collapse U y = collapse U z ↔ y = z ∨ y ∉ U ∧ z ∉ U := byby_cases hy : y ∈ U· by_cases hz : z ∈ U· simp [collapse,hy,hz]· have hn : y ≠ z := by rintro rfl; contradictionsimp [collapse,hy,hz,hn]· by_cases hz : z ∈ U· have hn : y ≠ z := by rintro rfl; contradictionsimp [collapse,hy,hz,hn]· simp [collapse,hy,hz]variable [TopologicalSpace Y] [T2Space Y]lemma continuous_collapse {U : Set Y} (hU : IsOpen U) : Continuous (collapse U) := byrw [continuous_def]intro S hSby_cases hi : ∞ ∈ S· have hK := ((OnePoint.isOpen_iff_of_mem hi).mp hS).2have he : (collapse U ⁻¹' S)ᶜ = Subtype.val '' (((↑) : U → OnePoint U) ⁻¹' S)ᶜ := byext yby_cases hy : y ∈ U· simp [hy,Set.mem_image,collapse]· simp [hy,collapse,hi]rw [← isClosed_compl_iff,he]exact (hK.image continuous_subtype_val).isClosed· have hV := (OnePoint.isOpen_iff_of_notMem hi).mp hShave he : collapse U ⁻¹' S = Subtype.val '' (((↑) : U → OnePoint U) ⁻¹' S) := byext yby_cases hy : y ∈ U· simp [hy,Set.mem_image,collapse]· simp [hy,collapse,hi]rw [he]exact hU.isOpenMap_subtype_val _ hVomit [TopologicalSpace Y] [T2Space Y] inlemma collapse_surjective {U : Set Y} (hU : Uᶜ.Nonempty) : Function.Surjective (collapse U) := byintro zinduction z using OnePoint.rec with| infty => obtain ⟨y,hy⟩ := hU; exact ⟨y,collapse_of_notMem hy⟩| coe y => exact ⟨y,collapse_of_mem y.property⟩variable [CompactSpace Y]lemma isQuotientMap_collapse {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty) :IsQuotientMap (collapse U) := bylet : LocallyCompactSpace U := hU.locallyCompactSpaceexact (continuous_collapse hU).isClosedMap.isQuotientMap (continuous_collapse hU)(collapse_surjective hUc)def descend {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty){X : Type*} [TopologicalSpace X] (f : C(Y,X)) (x : X)(hf : ∀ y ∉ U, f y = x) : C(OnePoint U,X) wheretoFun := fun z => z.elim x (fun y => f y)continuous_toFun := (isQuotientMap_collapse hU hUc).continuous_iff.mpr (byhave he : (fun z : OnePoint U => z.elim x (fun y => f y)) ∘ collapse U = f := byfunext yby_cases hy : y ∈ U· simp [hy]· simp [hy,hf y hy]rw [he]exact f.continuous)@[simp] lemma descend_collapse {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty){X : Type*} [TopologicalSpace X] (f : C(Y,X)) (x : X)(hf : ∀ y ∉ U, f y = x) (y : Y) : descend hU hUc f x hf (collapse U y) = f y := byby_cases hy : y ∈ U <;> simp [descend,hy,hf y]end NearbyLagrangian.OpenCollapseendnoncomputable sectionuniverse u v wopen Set ContinuousMap Topologyopen scoped Classical OnePoint Topologynamespace NearbyLagrangian.OpenCollapsevariable {Y P X : Type*} [TopologicalSpace Y] [T2Space Y] [CompactSpace Y][TopologicalSpace P] [T2Space P] [CompactSpace P] [TopologicalSpace X]lemma continuous_descend_param {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty)(F : C(P × Y,X)) (g : C(P,X)) (hF : ∀ p y, y ∉ U → F (p,y) = g p) :Continuous (fun q : P × OnePoint U => q.2.elim (g q.1) (fun y => F (q.1,y))) := bylet : LocallyCompactSpace U := hU.locallyCompactSpacelet c : P × Y → P × OnePoint U := fun z => (z.1,collapse U z.2)have hc : Continuous c := continuous_fst.prodMk ((continuous_collapse hU).comp continuous_snd)have hs : Function.Surjective c := byrintro ⟨p,z⟩obtain ⟨y,hy⟩ := collapse_surjective hUc zexact ⟨(p,y),Prod.ext rfl hy⟩have hq := hc.isClosedMap.isQuotientMap hc hsapply hq.continuous_iff.mprhave he : (fun q : P × OnePoint U => q.2.elim (g q.1) (fun y => F (q.1,y))) ∘ c = F := byfunext qrcases q with ⟨p,y⟩change (collapse U y).elim (g p) (fun y => F (p,y)) = F (p,y)by_cases hy : y ∈ U <;> simp [hy,hF p y]rw [he]exact F.continuousend NearbyLagrangian.OpenCollapseendend OAI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128import Mathlibnamespace OAI/-! Continuous collapse to a one-point compactification and parameterized descent. -/noncomputable sectionuniverse u v wopen Set ContinuousMap Topologyopen scoped Classical OnePoint Topologynamespace NearbyLagrangian.OpenCollapsevariable {Y : Type*}def collapse (U : Set Y) (y : Y) : OnePoint U :=if h : y ∈ U then (⟨y,h⟩ : U) else ∞@[simp] lemma collapse_of_mem {U : Set Y} {y : Y} (h : y ∈ U) :collapse U y = (⟨y,h⟩ : U) := by simp [collapse,h]@[simp] lemma collapse_of_notMem {U : Set Y} {y : Y} (h : y ∉ U) :collapse U y = ∞ := by simp [collapse,h]lemma collapse_eq_infty {U : Set Y} {y : Y} : collapse U y = ∞ ↔ y ∉ U := byby_cases h : y ∈ U <;> simp [h]lemma collapse_eq {U : Set Y} {y z : Y} :collapse U y = collapse U z ↔ y = z ∨ y ∉ U ∧ z ∉ U := byby_cases hy : y ∈ U· by_cases hz : z ∈ U· simp [collapse,hy,hz]· have hn : y ≠ z := by rintro rfl; contradictionsimp [collapse,hy,hz,hn]· by_cases hz : z ∈ U· have hn : y ≠ z := by rintro rfl; contradictionsimp [collapse,hy,hz,hn]· simp [collapse,hy,hz]variable [TopologicalSpace Y] [T2Space Y]lemma continuous_collapse {U : Set Y} (hU : IsOpen U) : Continuous (collapse U) := byrw [continuous_def]intro S hSby_cases hi : ∞ ∈ S· have hK := ((OnePoint.isOpen_iff_of_mem hi).mp hS).2have he : (collapse U ⁻¹' S)ᶜ = Subtype.val '' (((↑) : U → OnePoint U) ⁻¹' S)ᶜ := byext yby_cases hy : y ∈ U· simp [hy,Set.mem_image,collapse]· simp [hy,collapse,hi]rw [← isClosed_compl_iff,he]exact (hK.image continuous_subtype_val).isClosed· have hV := (OnePoint.isOpen_iff_of_notMem hi).mp hShave he : collapse U ⁻¹' S = Subtype.val '' (((↑) : U → OnePoint U) ⁻¹' S) := byext yby_cases hy : y ∈ U· simp [hy,Set.mem_image,collapse]· simp [hy,collapse,hi]rw [he]exact hU.isOpenMap_subtype_val _ hVomit [TopologicalSpace Y] [T2Space Y] inlemma collapse_surjective {U : Set Y} (hU : Uᶜ.Nonempty) : Function.Surjective (collapse U) := byintro zinduction z using OnePoint.rec with| infty => obtain ⟨y,hy⟩ := hU; exact ⟨y,collapse_of_notMem hy⟩| coe y => exact ⟨y,collapse_of_mem y.property⟩variable [CompactSpace Y]lemma isQuotientMap_collapse {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty) :IsQuotientMap (collapse U) := bylet : LocallyCompactSpace U := hU.locallyCompactSpaceexact (continuous_collapse hU).isClosedMap.isQuotientMap (continuous_collapse hU)(collapse_surjective hUc)def descend {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty){X : Type*} [TopologicalSpace X] (f : C(Y,X)) (x : X)(hf : ∀ y ∉ U, f y = x) : C(OnePoint U,X) wheretoFun := fun z => z.elim x (fun y => f y)continuous_toFun := (isQuotientMap_collapse hU hUc).continuous_iff.mpr (byhave he : (fun z : OnePoint U => z.elim x (fun y => f y)) ∘ collapse U = f := byfunext yby_cases hy : y ∈ U· simp [hy]· simp [hy,hf y hy]rw [he]exact f.continuous)@[simp] lemma descend_collapse {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty){X : Type*} [TopologicalSpace X] (f : C(Y,X)) (x : X)(hf : ∀ y ∉ U, f y = x) (y : Y) : descend hU hUc f x hf (collapse U y) = f y := byby_cases hy : y ∈ U <;> simp [descend,hy,hf y]end NearbyLagrangian.OpenCollapseendnoncomputable sectionuniverse u v wopen Set ContinuousMap Topologyopen scoped Classical OnePoint Topologynamespace NearbyLagrangian.OpenCollapsevariable {Y P X : Type*} [TopologicalSpace Y] [T2Space Y] [CompactSpace Y][TopologicalSpace P] [T2Space P] [CompactSpace P] [TopologicalSpace X]lemma continuous_descend_param {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty)(F : C(P × Y,X)) (g : C(P,X)) (hF : ∀ p y, y ∉ U → F (p,y) = g p) :Continuous (fun q : P × OnePoint U => q.2.elim (g q.1) (fun y => F (q.1,y))) := bylet : LocallyCompactSpace U := hU.locallyCompactSpacelet c : P × Y → P × OnePoint U := fun z => (z.1,collapse U z.2)have hc : Continuous c := continuous_fst.prodMk ((continuous_collapse hU).comp continuous_snd)have hs : Function.Surjective c := byrintro ⟨p,z⟩obtain ⟨y,hy⟩ := collapse_surjective hUc zexact ⟨(p,y),Prod.ext rfl hy⟩have hq := hc.isClosedMap.isQuotientMap hc hsapply hq.continuous_iff.mprhave he : (fun q : P × OnePoint U => q.2.elim (g q.1) (fun y => F (q.1,y))) ∘ c = F := byfunext qrcases q with ⟨p,y⟩change (collapse U y).elim (g p) (fun y => F (p,y)) = F (p,y)by_cases hy : y ∈ U <;> simp [hy,hF p y]rw [he]exact F.continuousend NearbyLagrangian.OpenCollapseendend OAI
lean/OAI.lean+914-914
lean/OAI/Topology/CoarseAssembly.lean+190-190
lean/OAI/Topology/CoarseAssembly/UnconditionalConclusion.lean+60-60
lean/OAI/Topology/CoarseAssembly/UniformCycleNormalization.lean+53-53
lean/OAI/Topology/CoarseAssembly/UniformSubdivision.lean+47-47
lean/OAI/Topology/CoarseAssembly/UnitalCycleInvertible.lean+32-32
lean/OAI/Topology/CoarseAssembly/UnitalCycleNormalization.lean+43-43
lean/OAI/Topology/CoarseAssembly/UnitalRepresentative.lean+130-130
lean/OAI/Topology/CoarseAssembly/UnitalStructureAlgebra.lean+66-66
lean/OAI/Topology/CoarseAssembly/UnitaryHomotopyIndex.lean+59-59
lean/OAI/Topology/CoarseAssembly/UnitaryIndex.lean+76-76
lean/OAI/Topology/CoarseAssembly/UnrestrictedBoundedHomotopy.lean+80-80
lean/OAI/Topology/CoarseAssembly/WindingHomotopy.lean+83-83
lean/OAI/Topology/CoarseAssembly/WindingIndexEvaluation.lean+60-60
lean/OAI/Topology/EilenbergGanea/AffineTransport.lean+449-449
lean/OAI/Topology/EilenbergGanea/CliqueCohomology.lean+232-232
lean/OAI/Topology/EilenbergGanea/CubicalCover.lean+822-822
lean/OAI/Topology/EilenbergGanea/Dimension.lean+115-115
lean/OAI/Topology/EilenbergGanea/IntegralDegree.lean
lean/OAI/Topology/EilenbergGanea/IntegralModules.lean+308-308
lean/OAI/Topology/EilenbergGanea/LevelBasis.lean+968-968
lean/OAI/Topology/EilenbergGanea/LevelTransport.lean+626-626
lean/OAI/Topology/EilenbergGanea/Main.lean+43-43
lean/OAI/Topology/EilenbergGanea/Model.lean+61-61
lean/OAI/Topology/EilenbergGanea/PresentationAlignment.lean
lean/OAI/Topology/EilenbergGanea/PresentationComparison.lean
lean/OAI/Topology/EilenbergGanea/Regularization.lean
lean/OAI/Topology/EilenbergGanea/Seed.lean+164-164
lean/OAI/Topology/EilenbergGanea/SeedChains.lean
lean/OAI/Topology/EilenbergGanea/SeedConnection.lean+277-277
lean/OAI/Topology/EilenbergGanea/SeedContraction.lean
lean/OAI/Topology/EilenbergGanea/SeedHolonomy.lean+191-191
lean/OAI/Topology/EilenbergGanea/SmallHolonomy.lean+744-744
lean/OAI/Topology/EilenbergGanea/UnitaryWords.lean+890-890
lean/OAI/Topology/EilenbergGanea/WordEquations.lean+388-388
lean/OAI/Topology/HahnSeries/Pivots.lean+852-852
lean/OAI/Topology/Homotopy/BasedMaps.lean+71-71
lean/OAI/Topology/Homotopy/ConeHomotopy.lean+234-234
lean/OAI/Topology/Homotopy/CubicalNullity.lean+263-263
lean/OAI/Topology/Homotopy/CubicalSpheres.lean+341-341
lean/OAI/Topology/Homotopy/FiberCone.lean+393-393
lean/OAI/Topology/Homotopy/FiberKernel.lean+57-57
lean/OAI/Topology/Homotopy/HomotopyFiber.lean+319-319
lean/OAI/Topology/Homotopy/LoopHomotopy.lean+143-143
lean/OAI/Topology/Homotopy/OpenCollapse.lean+128-128
lean/OAI/Topology/Homotopy/RayTelescope.lean
lean/OAI/Topology/TorusCompression/Boundary.lean
lean/README.md
lean/docs/027.md
lean/docs/049.md