roseking commited on
Commit
d23d6f3
·
verified ·
1 Parent(s): 5bd7182

Sync from openai/math@faee2cf485a8 (part 27)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. lean/OAI.lean +914 -914
  2. lean/OAI/Topology/CoarseAssembly.lean +190 -190
  3. lean/OAI/Topology/CoarseAssembly/UnconditionalConclusion.lean +60 -60
  4. lean/OAI/Topology/CoarseAssembly/UniformCycleNormalization.lean +53 -53
  5. lean/OAI/Topology/CoarseAssembly/UniformSubdivision.lean +47 -47
  6. lean/OAI/Topology/CoarseAssembly/UnitalCycleInvertible.lean +32 -32
  7. lean/OAI/Topology/CoarseAssembly/UnitalCycleNormalization.lean +43 -43
  8. lean/OAI/Topology/CoarseAssembly/UnitalRepresentative.lean +130 -130
  9. lean/OAI/Topology/CoarseAssembly/UnitalStructureAlgebra.lean +66 -66
  10. lean/OAI/Topology/CoarseAssembly/UnitaryHomotopyIndex.lean +59 -59
  11. lean/OAI/Topology/CoarseAssembly/UnitaryIndex.lean +76 -76
  12. lean/OAI/Topology/CoarseAssembly/UnrestrictedBoundedHomotopy.lean +80 -80
  13. lean/OAI/Topology/CoarseAssembly/WindingHomotopy.lean +83 -83
  14. lean/OAI/Topology/CoarseAssembly/WindingIndexEvaluation.lean +60 -60
  15. lean/OAI/Topology/EilenbergGanea/AffineTransport.lean +449 -449
  16. lean/OAI/Topology/EilenbergGanea/CliqueCohomology.lean +232 -232
  17. lean/OAI/Topology/EilenbergGanea/CubicalCover.lean +822 -822
  18. lean/OAI/Topology/EilenbergGanea/Dimension.lean +115 -115
  19. lean/OAI/Topology/EilenbergGanea/IntegralDegree.lean +0 -0
  20. lean/OAI/Topology/EilenbergGanea/IntegralModules.lean +308 -308
  21. lean/OAI/Topology/EilenbergGanea/LevelBasis.lean +968 -968
  22. lean/OAI/Topology/EilenbergGanea/LevelTransport.lean +626 -626
  23. lean/OAI/Topology/EilenbergGanea/Main.lean +43 -43
  24. lean/OAI/Topology/EilenbergGanea/Model.lean +61 -61
  25. lean/OAI/Topology/EilenbergGanea/PresentationAlignment.lean +0 -0
  26. lean/OAI/Topology/EilenbergGanea/PresentationComparison.lean +0 -0
  27. lean/OAI/Topology/EilenbergGanea/Regularization.lean +0 -0
  28. lean/OAI/Topology/EilenbergGanea/Seed.lean +164 -164
  29. lean/OAI/Topology/EilenbergGanea/SeedChains.lean +0 -0
  30. lean/OAI/Topology/EilenbergGanea/SeedConnection.lean +277 -277
  31. lean/OAI/Topology/EilenbergGanea/SeedContraction.lean +0 -0
  32. lean/OAI/Topology/EilenbergGanea/SeedHolonomy.lean +191 -191
  33. lean/OAI/Topology/EilenbergGanea/SmallHolonomy.lean +744 -744
  34. lean/OAI/Topology/EilenbergGanea/UnitaryWords.lean +890 -890
  35. lean/OAI/Topology/EilenbergGanea/WordEquations.lean +388 -388
  36. lean/OAI/Topology/HahnSeries/Pivots.lean +852 -852
  37. lean/OAI/Topology/Homotopy/BasedMaps.lean +71 -71
  38. lean/OAI/Topology/Homotopy/ConeHomotopy.lean +234 -234
  39. lean/OAI/Topology/Homotopy/CubicalNullity.lean +263 -263
  40. lean/OAI/Topology/Homotopy/CubicalSpheres.lean +341 -341
  41. lean/OAI/Topology/Homotopy/FiberCone.lean +393 -393
  42. lean/OAI/Topology/Homotopy/FiberKernel.lean +57 -57
  43. lean/OAI/Topology/Homotopy/HomotopyFiber.lean +319 -319
  44. lean/OAI/Topology/Homotopy/LoopHomotopy.lean +143 -143
  45. lean/OAI/Topology/Homotopy/OpenCollapse.lean +128 -128
  46. lean/OAI/Topology/Homotopy/RayTelescope.lean +383 -383
  47. lean/OAI/Topology/TorusCompression/Boundary.lean +572 -572
  48. lean/README.md +11 -11
  49. lean/docs/027.md +17 -17
  50. lean/docs/049.md +4 -0
lean/OAI.lean CHANGED
@@ -1,914 +1,914 @@
1
- import OAI.Algebra.AffineCancellation.Main
2
- import OAI.Algebra.AlgebraicObstruction.AlgebraicInput
3
- import OAI.Algebra.AlgebraicObstruction.Holonomy
4
- import OAI.Algebra.AuslanderReiten.All
5
- import OAI.Algebra.BogomolovPop.Injectivity
6
- import OAI.Algebra.Cohomology.SemilinearCochains
7
- import OAI.Algebra.DepthFive.Main
8
- import OAI.Algebra.Determinantal.Main
9
- import OAI.Algebra.Divisor.Normalization
10
- import OAI.Algebra.Divisor.RationalRecovery
11
- import OAI.Algebra.Drinfeld.Completion
12
- import OAI.Algebra.FiniteTensor.Main
13
- import OAI.Algebra.Finitistic.Main
14
- import OAI.Algebra.FinitisticAsymmetry.Main
15
- import OAI.Algebra.FormalGroup.Honda.Main
16
- import OAI.Algebra.FormulaHitting.Main
17
- import OAI.Algebra.FrobeniusObstruction.Obstruction
18
- import OAI.Algebra.GroupRing.CylinderRetention
19
- import OAI.Algebra.GroupRing.Main
20
- import OAI.Algebra.MarkedTensor.Main
21
- import OAI.Algebra.Module.CompactPadic
22
- import OAI.Algebra.OddKaplansky.GeneralTransfer
23
- import OAI.Algebra.PolynomialChains.Real
24
- import OAI.Algebra.Universal.Coset
25
- import OAI.Algebra.Universal.GraphDecidability
26
- import OAI.AlgebraicGeometry.AbhyankarSathaye.Counterexample
27
- import OAI.AlgebraicGeometry.CartierSections
28
- import OAI.AlgebraicGeometry.CharacterVarieties
29
- import OAI.AlgebraicGeometry.CommutingDerivations.OrdinaryExtraMain
30
- import OAI.AlgebraicGeometry.LogKodaira.FiberNegative
31
- import OAI.AlgebraicGeometry.LogKodaira.RootFactor
32
- import OAI.AlgebraicGeometry.NumericalDimension.IndexedTransfer
33
- import OAI.AlgebraicGeometry.NumericalDimension.RelativeNegativity
34
- import OAI.AlgebraicGeometry.NumericalDimension.TwistedPushforward
35
- import OAI.AlgebraicGeometry.PlaneCurves.Nagata
36
- import OAI.AlgebraicGeometry.RelativeTriviality.RelativeTriviality
37
- import OAI.AlgebraicGeometry.SectionFields.Main
38
- import OAI.AlgebraicGeometry.Seshadri.Main
39
- import OAI.AlgebraicGeometry.Stability.NumericalWalls
40
- import OAI.AlgebraicGeometry.StableCoordinate.All
41
- import OAI.AlgebraicGeometry.SurfaceCones
42
- import OAI.Analysis.AffineBernstein.Main
43
- import OAI.Analysis.AllenCahn.Main
44
- import OAI.Analysis.AncientFlat.Main
45
- import OAI.Analysis.BackwardIntertwiners.AlgebraCorollary
46
- import OAI.Analysis.BernoulliCone.Main
47
- import OAI.Analysis.BiholderTransport.Main
48
- import OAI.Analysis.BoundedHochschild.AtomicPrimitives
49
- import OAI.Analysis.BoundedHochschild.CenterPowers
50
- import OAI.Analysis.BoundedHochschild.CentralLinearPatch
51
- import OAI.Analysis.BoundedHochschild.CocycleNormalParts
52
- import OAI.Analysis.BoundedHochschild.CommutativePrimitives
53
- import OAI.Analysis.BoundedHochschild.FactorFinitePaths
54
- import OAI.Analysis.BoundedHochschild.FactorPrimitive
55
- import OAI.Analysis.BoundedHochschild.FreeWords
56
- import OAI.Analysis.BoundedHochschild.MainResult
57
- import OAI.Analysis.BoundedHochschild.MatrixDisplacement
58
- import OAI.Analysis.BoundedHochschild.TypeIICorners
59
- import OAI.Analysis.BoundedHochschild.TypeIPrimitives
60
- import OAI.Analysis.BoundedHochschild.UnitaryLifts
61
- import OAI.Analysis.BoxTransport.Routing
62
- import OAI.Analysis.Brenier.Stability
63
- import OAI.Analysis.BrownMeasure.Main
64
- import OAI.Analysis.C0Absorption.Main
65
- import OAI.Analysis.CStarAlgebra.PureInfiniteness.Main
66
- import OAI.Analysis.CardinalInterpolation.ModTwelve
67
- import OAI.Analysis.CharacterCriterion.Main
68
- import OAI.Analysis.CircleDomains.LengthArea
69
- import OAI.Analysis.CircleDomains.Development
70
- import OAI.Analysis.Commutator.Main
71
- import OAI.Analysis.Conductivity.Main
72
- import OAI.Analysis.Cotype.Main
73
- import OAI.Analysis.CoulombIonization.Main
74
- import OAI.Analysis.CoulombRadii.Main
75
- import OAI.Analysis.CoulombTransport.Main
76
- import OAI.Analysis.Crouzeix.Main
77
- import OAI.Analysis.Daugavet.Main
78
- import OAI.Analysis.DiamondDistortion.Main
79
- import OAI.Analysis.DirectCrouzeix.Main
80
- import OAI.Analysis.DiskMaximal.Main
81
- import OAI.Analysis.FactorGeneration.Main
82
- import OAI.Analysis.FiniteFactor.Main
83
- import OAI.Analysis.ForestSpace.Main
84
- import OAI.Analysis.Fourier.HeightLayers
85
- import OAI.Analysis.Fourier.SphereExtension
86
- import OAI.Analysis.FourierExtension.LpEstimate
87
- import OAI.Analysis.FourierLLogL.PaperMain
88
- import OAI.Analysis.FreeEntropy.Main
89
- import OAI.Analysis.FreeGroupFactor.Main
90
- import OAI.Analysis.FreeWords.Main
91
- import OAI.Analysis.Graph.Gradients
92
- import OAI.Analysis.GroupDeterminants.Main
93
- import OAI.Analysis.HardSphere.Main
94
- import OAI.Analysis.HenonEmden.Main
95
- import OAI.Analysis.HilbertCrouzeix.Main
96
- import OAI.Analysis.HotSpots.Main
97
- import OAI.Analysis.HyperbolicCones
98
- import OAI.Analysis.Hyperinvariant
99
- import OAI.Analysis.IncompressibleFlow.AffineExtension
100
- import OAI.Analysis.InnerProductSpace.ComplexSolvability
101
- import OAI.Analysis.IntegralMeans.Main
102
- import OAI.Analysis.IntegralMeans.SharpEndpoints
103
- import OAI.Analysis.InterpolatedFactors.Interpolation
104
- import OAI.Analysis.IrrationalRotation.Main
105
- import OAI.Analysis.JiangSu.Main
106
- import OAI.Analysis.Kakeya.FixedScale
107
- import OAI.Analysis.Kaplansky.Main
108
- import OAI.Analysis.Kaplansky.StableFiniteness
109
- import OAI.Analysis.Laughlin.Main
110
- import OAI.Analysis.Laughlin.UniformGap
111
- import OAI.Analysis.LaughlinFock.Main
112
- import OAI.Analysis.LaughlinFock.TensorIntegrals
113
- import OAI.Analysis.LaughlinGap.Main
114
- import OAI.Analysis.LaughlinGap.ThreeAveraging
115
- import OAI.Analysis.LiebThirring.CoerciveInverse
116
- import OAI.Analysis.LiebThirring.CompactAlternative
117
- import OAI.Analysis.LiebThirring.ContinuousRepresentative
118
- import OAI.Analysis.LiebThirring.DiscreteSpectrum
119
- import OAI.Analysis.LiebThirring.Eigenspace
120
- import OAI.Analysis.LiebThirring.EigenvalueSum
121
- import OAI.Analysis.LiebThirring.FormCongruence
122
- import OAI.Analysis.LiebThirring.FreeForm
123
- import OAI.Analysis.LiebThirring.LocalCompactness
124
- import OAI.Analysis.LiebThirring.LocalWeight
125
- import OAI.Analysis.LiebThirring.LowestEigenvalue
126
- import OAI.Analysis.LiebThirring.Main
127
- import OAI.Analysis.LiebThirring.Multiplication
128
- import OAI.Analysis.LiebThirring.NegativeResolvent
129
- import OAI.Analysis.LiebThirring.OneState
130
- import OAI.Analysis.LiebThirring.OperatorForm
131
- import OAI.Analysis.LiebThirring.OperatorGraph
132
- import OAI.Analysis.LiebThirring.PotentialCompactness
133
- import OAI.Analysis.LiebThirring.PotentialSplit
134
- import OAI.Analysis.LiebThirring.Resolvent
135
- import OAI.Analysis.LiebThirring.SchrodingerOperator
136
- import OAI.Analysis.LiebThirring.SobolevBound
137
- import OAI.Analysis.LiebThirring.SpectralMain
138
- import OAI.Analysis.LiebThirring.SpectralMoment
139
- import OAI.Analysis.LiebThirring.WeightedCutoff
140
- import OAI.Analysis.LienardCycles.Main
141
- import OAI.Analysis.Lipschitz.TriangularLattice
142
- import OAI.Analysis.LipschitzEquivalence.Main
143
- import OAI.Analysis.LipschitzFree.Main
144
- import OAI.Analysis.LipschitzFree.Renorming
145
- import OAI.Analysis.LipschitzHilbert.Main
146
- import OAI.Analysis.Littlewood.Main
147
- import OAI.Analysis.Littlewood.FiniteFlatness
148
- import OAI.Analysis.LpDimension.Main
149
- import OAI.Analysis.Mahler
150
- import OAI.Analysis.Mahler.Classification
151
- import OAI.Analysis.MarkovType.All
152
- import OAI.Analysis.MassAction.Main
153
- import OAI.Analysis.MatrixSigning.Main
154
- import OAI.Analysis.MetricEntropy.Main
155
- import OAI.Analysis.ModularRecovery.Main
156
- import OAI.Analysis.MumfordShah.CompactExclusion
157
- import OAI.Analysis.MutuallyUnbiased.Bases.ThreeMain
158
- import OAI.Analysis.MutuallyUnbiased.Main
159
- import OAI.Analysis.Naimark.Tracial
160
- import OAI.Analysis.NavierStokes.VelocitySpace
161
- import OAI.Analysis.NefAdjoint.FractionalDensity
162
- import OAI.Analysis.NefAdjoint.SectionGauge
163
- import OAI.Analysis.NodalLength.Main
164
- import OAI.Analysis.Nonexpansive
165
- import OAI.Analysis.NuclearUltrapower.Main
166
- import OAI.Analysis.NumericalRange.Main
167
- import OAI.Analysis.PathSelection.Main
168
- import OAI.Analysis.PeriodicLattice.Main
169
- import OAI.Analysis.PlanarEndpoint.Main
170
- import OAI.Analysis.Polynomial.Exhaustion
171
- import OAI.Analysis.ProductSpaces.Main
172
- import OAI.Analysis.Pureness.Main
173
- import OAI.Analysis.Quantum.DimensionTen.Main
174
- import OAI.Analysis.RCDHeat.Main
175
- import OAI.Analysis.RecursivePotentials.EquivalentNorms
176
- import OAI.Analysis.RecursivePotentials.JoinedGeometry
177
- import OAI.Analysis.RecursivePotentials.Main
178
- import OAI.Analysis.RecursivePotentials.Model
179
- import OAI.Analysis.RecursivePotentials.TreeGeometry
180
- import OAI.Analysis.RecursivePotentials.VariableCompletion
181
- import OAI.Analysis.RecursivePotentials.VariableEstimates
182
- import OAI.Analysis.RecursivePotentials.VariableLp
183
- import OAI.Analysis.RecursivePotentials.VariableStability
184
- import OAI.Analysis.RecursivePotentials.ZeroRootGeometry
185
- import OAI.Analysis.RelativeGeneration.Main
186
- import OAI.Analysis.RieszRectifiability.Main
187
- import OAI.Analysis.RotationWeights.Main
188
- import OAI.Analysis.SegmentLenses.HeadRanges
189
- import OAI.Analysis.SegmentLenses.Main
190
- import OAI.Analysis.SeparableQuotients.Main
191
- import OAI.Analysis.SeparableQuotients.Positive.Main
192
- import OAI.Analysis.SignedDisk.Main
193
- import OAI.Analysis.SphereIsometry.Main
194
- import OAI.Analysis.Steinitz.Main
195
- import OAI.Analysis.StrictMeans.Main
196
- import OAI.Analysis.StructuralCrouzeix.Endpoint
197
- import OAI.Analysis.SymmetricDomains.Main
198
- import OAI.Analysis.TemperedDistribution.ConformalIdentities
199
- import OAI.Analysis.TraceCone.Main
200
- import OAI.Analysis.TracialCohomology.Vanishing
201
- import OAI.Analysis.TracialSplitting.Main
202
- import OAI.Analysis.TreePotential.Main
203
- import OAI.Analysis.Triangular.Main
204
- import OAI.Analysis.TriangularHilbert.Main
205
- import OAI.Analysis.Unitarizability.AllDiscrete
206
- import OAI.Analysis.Unitarizability.UniverseTransport
207
- import OAI.Analysis.VlasovMaxwell.Main
208
- import OAI.Analysis.WeakInfiniteness.Main
209
- import OAI.CategoryTheory.Globular.Main
210
- import OAI.CategoryTheory.ThickClosure.Main
211
- import OAI.CategoryTheory.Thomason.RankedFaithfulness
212
- import OAI.Combinatorics.Automata.Main
213
- import OAI.Combinatorics.BalancedRyser.Main
214
- import OAI.Combinatorics.BooleanFunctions.Main
215
- import OAI.Combinatorics.Chromatic.Main
216
- import OAI.Combinatorics.CliqueFree.Main
217
- import OAI.Combinatorics.Coboundary.Main
218
- import OAI.Combinatorics.CompleteCrossing.Main
219
- import OAI.Combinatorics.ContingencyTables.FactorialLift
220
- import OAI.Combinatorics.Crossing.Main
221
- import OAI.Combinatorics.CycleDecomposition.Main
222
- import OAI.Combinatorics.DiscreteConvexity.Main
223
- import OAI.Combinatorics.Distances.PolynomialIsolation
224
- import OAI.Combinatorics.EditDistance.Main
225
- import OAI.Combinatorics.EuclideanRamsey.Circle
226
- import OAI.Combinatorics.EuclideanRamsey.Main
227
- import OAI.Combinatorics.EuclideanRamsey.NineStatement
228
- import OAI.Combinatorics.EuclideanRamsey.Quadratic
229
- import OAI.Combinatorics.EuclideanRamsey.Spherical
230
- import OAI.Combinatorics.EuclideanRamsey.Transitive
231
- import OAI.Combinatorics.ExpectationThreshold.Main
232
- import OAI.Combinatorics.FiniteCircle.Main
233
- import OAI.Combinatorics.GotsmanLinial.Main
234
- import OAI.Combinatorics.GraphSpectrum.SampledChromatic
235
- import OAI.Combinatorics.GraphThreshold.Main
236
- import OAI.Combinatorics.HadwigerCounterexample.Main
237
- import OAI.Combinatorics.HalvingLines.Main
238
- import OAI.Combinatorics.Hamiltonian.Main
239
- import OAI.Combinatorics.Honeycomb.FiniteCylinder
240
- import OAI.Combinatorics.Honeycomb.PolygonMoment
241
- import OAI.Combinatorics.HoneycombBridges.ExactLength
242
- import OAI.Combinatorics.HoneycombBridges.Geometry
243
- import OAI.Combinatorics.HoneycombChords
244
- import OAI.Combinatorics.HoneycombCorridor.CorridorTransfer
245
- import OAI.Combinatorics.IndependentSets.Main
246
- import OAI.Combinatorics.InfiniteMatroid.Corollaries
247
- import OAI.Combinatorics.InfiniteMatroid.Main
248
- import OAI.Combinatorics.KMedian.Main
249
- import OAI.Combinatorics.KMedian.Threshold
250
- import OAI.Combinatorics.KMedianRecovery.Main
251
- import OAI.Combinatorics.KMedianRecovery.Refined.Main
252
- import OAI.Combinatorics.KMedianRecovery.Refined.Recovery
253
- import OAI.Combinatorics.KServer.Main
254
- import OAI.Combinatorics.ListHadwiger.Main
255
- import OAI.Combinatorics.MatchingCount.Main
256
- import OAI.Combinatorics.MatchingEntropy.Main
257
- import OAI.Combinatorics.Permanent.Main
258
- import OAI.Combinatorics.PolynomialVacuum.Main
259
- import OAI.Combinatorics.PortMatching.Reduction
260
- import OAI.Combinatorics.Progressions.Main
261
- import OAI.Combinatorics.Ramsey.CycleClique.Main
262
- import OAI.Combinatorics.Ramsey.Hypercube
263
- import OAI.Combinatorics.RamseyFive.Main
264
- import OAI.Combinatorics.StableGraphs.ExteriorBounds
265
- import OAI.Combinatorics.StripMass.Main
266
- import OAI.Combinatorics.SumProduct.Alignment.Main
267
- import OAI.Combinatorics.ThinTrees.AlgorithmicMain
268
- import OAI.Combinatorics.TriangleFace.Main
269
- import OAI.Combinatorics.MatchingPSD.AffineLift
270
- import OAI.Combinatorics.MatchingPSD.Main
271
- import OAI.Combinatorics.MatrixRemoval.Main
272
- import OAI.Combinatorics.MatroidCounting.CommonBases
273
- import OAI.Combinatorics.ParityLifts.AsymptoticBounds
274
- import OAI.Combinatorics.PerfectMatching.AlgorithmPartition
275
- import OAI.Combinatorics.PerfectMatching.Ascent
276
- import OAI.Combinatorics.PerfectMatching.CompletePairs
277
- import OAI.Combinatorics.PerfectMatching.Completion
278
- import OAI.Combinatorics.PerfectMatching.CountCorrect
279
- import OAI.Combinatorics.PerfectMatching.DyadicEntropy
280
- import OAI.Combinatorics.PerfectMatching.DyadicEnvelope
281
- import OAI.Combinatorics.PerfectMatching.ElementaryCount
282
- import OAI.Combinatorics.PerfectMatching.EntropyUpper
283
- import OAI.Combinatorics.PerfectMatching.FeasibilityRepair
284
- import OAI.Combinatorics.PerfectMatching.ForcedReduction
285
- import OAI.Combinatorics.PerfectMatching.Main
286
- import OAI.Combinatorics.PerfectMatching.Model
287
- import OAI.Combinatorics.PerfectMatching.ObjectivePenalty
288
- import OAI.Combinatorics.PerfectMatching.ParameterBounds
289
- import OAI.Combinatorics.PerfectMatching.Partition
290
- import OAI.Combinatorics.PerfectMatching.Separable
291
- import OAI.Combinatorics.PerfectMatching.SeparableCount
292
- import OAI.Combinatorics.PerfectMatching.SeparableCovariance
293
- import OAI.Combinatorics.PerfectMatching.SeparableLower
294
- import OAI.Combinatorics.PerfectMatching.SizeBounds
295
- import OAI.Combinatorics.PerfectMatching.Violation
296
- import OAI.Combinatorics.PerfectMatching.WeightedSpectrum
297
- import OAI.Combinatorics.PlanarL1.Embedding
298
- import OAI.Combinatorics.ProgressionColoring.Main
299
- import OAI.Combinatorics.Ryser.Main
300
- import OAI.Combinatorics.Ryser.OddExtensions
301
- import OAI.Combinatorics.SecondNeighborhood.Main
302
- import OAI.Combinatorics.Sensitivity.Main
303
- import OAI.Combinatorics.SharpRamsey.Main
304
- import OAI.Combinatorics.SharpThreshold.Main
305
- import OAI.Combinatorics.Sidorenko.RandomHost
306
- import OAI.Combinatorics.SnakyCertificate.Main
307
- import OAI.Combinatorics.SparsestCut.Main
308
- import OAI.Combinatorics.SphericalRamsey
309
- import OAI.Combinatorics.SphericalRamsey.Result
310
- import OAI.Combinatorics.SquareDifference.Main
311
- import OAI.Combinatorics.ThinTrees.Main
312
- import OAI.Combinatorics.TreeEdit.Main
313
- import OAI.Combinatorics.TreewidthL1.Main
314
- import OAI.Combinatorics.TriangleRemoval.Main
315
- import OAI.Combinatorics.TwoWayAutomata.ExplicitFamily
316
- import OAI.Combinatorics.TwoWayAutomata.Main
317
- import OAI.Combinatorics.TwoWayAutomata.PolynomialBound
318
- import OAI.Combinatorics.UniformKServer.Main
319
- import OAI.Combinatorics.VariableWL
320
- import OAI.Combinatorics.YoungDiagram.RealCapacity
321
- import OAI.Combinatorics.YoungDiagram.RealLargeCapacity
322
- import OAI.Computability.BinPacking.Main
323
- import OAI.Computability.DegreeRigidity.Main
324
- import OAI.Computability.DepthThree
325
- import OAI.Computability.DeterministicSum.Main
326
- import OAI.Computability.DirectedFeedback.Main
327
- import OAI.Computability.FourierCircuit.Main
328
- import OAI.Computability.FourierTransform.Main
329
- import OAI.Computability.GeneralizedCircuits.Mesh
330
- import OAI.Computability.Logspace.Deterministic
331
- import OAI.Computability.Logspace.Equality
332
- import OAI.Computability.LoopMatching.Endpoint
333
- import OAI.Computability.MatchingCount.ArgRoutine
334
- import OAI.Computability.MatchingCount.BinaryAlgorithm
335
- import OAI.Computability.MatchingCount.BinaryParser
336
- import OAI.Computability.MatchingCount.BinarySolve
337
- import OAI.Computability.MatchingCount.CappedPower
338
- import OAI.Computability.MatchingCount.CutAlgebra
339
- import OAI.Computability.MatchingCount.DenseOracle
340
- import OAI.Computability.MatchingCount.DivisionRoutine
341
- import OAI.Computability.MatchingCount.FiniteStack
342
- import OAI.Computability.MatchingCount.FoldRoutine
343
- import OAI.Computability.MatchingCount.GuardRoutine
344
- import OAI.Computability.MatchingCount.IntegerRoutine
345
- import OAI.Computability.MatchingCount.IterateRoutine
346
- import OAI.Computability.MatchingCount.LengthRoutine
347
- import OAI.Computability.MatchingCount.ListNumeric
348
- import OAI.Computability.MatchingCount.ListRoutine
349
- import OAI.Computability.MatchingCount.MapRoutine
350
- import OAI.Computability.MatchingCount.OddCutParity
351
- import OAI.Computability.MatchingCount.OddCutUncross
352
- import OAI.Computability.MatchingCount.OddMincut
353
- import OAI.Computability.MatchingCount.OptionCases
354
- import OAI.Computability.MatchingCount.OracleBounds
355
- import OAI.Computability.MatchingCount.OrbitRoutine
356
- import OAI.Computability.MatchingCount.PairRoutine
357
- import OAI.Computability.MatchingCount.ParamRoutine
358
- import OAI.Computability.MatchingCount.ParserSupport
359
- import OAI.Computability.MatchingCount.PolyCoding
360
- import OAI.Computability.MatchingCount.ProjectionRoutine
361
- import OAI.Computability.MatchingCount.RawBitsBridge
362
- import OAI.Computability.MatchingCount.RawContraction
363
- import OAI.Computability.MatchingCount.RawContractionCompiler
364
- import OAI.Computability.MatchingCount.RawData
365
- import OAI.Computability.MatchingCount.RawFlow
366
- import OAI.Computability.MatchingCount.RawFlowCompiler
367
- import OAI.Computability.MatchingCount.RawFlowSize
368
- import OAI.Computability.MatchingCount.RawInput
369
- import OAI.Computability.MatchingCount.RawOddBounds
370
- import OAI.Computability.MatchingCount.RawOddCompiler
371
- import OAI.Computability.MatchingCount.RawOddCut
372
- import OAI.Computability.MatchingCount.RawOptimizer
373
- import OAI.Computability.MatchingCount.RawOptimizerCompiler
374
- import OAI.Computability.MatchingCount.RawOptimizerData
375
- import OAI.Computability.MatchingCount.RawOptimizerDataCompiler
376
- import OAI.Computability.MatchingCount.RawOptimizerRows
377
- import OAI.Computability.MatchingCount.RawOptimizerRowsCompiler
378
- import OAI.Computability.MatchingCount.RawPrimitives
379
- import OAI.Computability.MatchingCount.RawRoutine
380
- import OAI.Computability.MatchingCount.RawSearch
381
- import OAI.Computability.MatchingCount.RawSearchCompiler
382
- import OAI.Computability.MatchingCount.RawSearchSize
383
- import OAI.Computability.MatchingCount.RawSize
384
- import OAI.Computability.MatchingCount.RecursiveBounds
385
- import OAI.Computability.MatchingCount.RecursiveCoding
386
- import OAI.Computability.MatchingCount.RecursiveCompiler
387
- import OAI.Computability.MatchingCount.RecursiveEval
388
- import OAI.Computability.MatchingCount.ResidualSearch
389
- import OAI.Computability.MatchingCount.ScaledAlgorithm
390
- import OAI.Computability.MatchingCount.ScaledBounds
391
- import OAI.Computability.MatchingCount.ScaledState
392
- import OAI.Computability.MatchingCount.SelectRoutine
393
- import OAI.Computability.MatchingCount.SequenceRoutine
394
- import OAI.Computability.MatchingCount.StackCopy
395
- import OAI.Computability.MatchingCount.StackEmbed
396
- import OAI.Computability.MatchingCount.StackFrame
397
- import OAI.Computability.MatchingCount.StackMacros
398
- import OAI.Computability.MatchingCount.StackPair
399
- import OAI.Computability.MatchingCount.StackRoutine
400
- import OAI.Computability.MatchingCount.SumRoutine
401
- import OAI.Computability.MatchingCount.TerminalMincut
402
- import OAI.Computability.MatchingCount.UnaryArithmetic
403
- import OAI.Computability.MatchingCount.UnaryClog
404
- import OAI.Computability.MatchingCount.UnaryDivision
405
- import OAI.Computability.MatchingCount.UnitFlow
406
- import OAI.Computability.MatchingCount.UnitMincut
407
- import OAI.Computability.MaxCut.Main
408
- import OAI.Computability.MeanPayoff.Main
409
- import OAI.Computability.MinUncut.Main
410
- import OAI.Computability.PerfectCompleteness.Main
411
- import OAI.Computability.QuantumFactoring.Main
412
- import OAI.Computability.RandomMean.Main
413
- import OAI.Computability.RationalHitting.Main
414
- import OAI.Computability.Scheduling.Main
415
- import OAI.Computability.SpaceSimulation.Main
416
- import OAI.Computability.StarHeight.Main
417
- import OAI.Computability.Superstring.Main
418
- import OAI.Computability.TypeSystem.Normalization
419
- import OAI.Computability.UniqueGames.Main
420
- import OAI.Computability.VertexCover.Main
421
- import OAI.Computability.WLIdentification.Main
422
- import OAI.Computability.WeisfeilerLeman.Main
423
- import OAI.Computability.WitnessedChoice.Main
424
- import OAI.Dynamics.ConditionalShuffle.TwoColors
425
- import OAI.Dynamics.EntropyCounterexample
426
- import OAI.Dynamics.MultipleMixing.Main
427
- import OAI.Dynamics.SmoothObstruction.Main
428
- import OAI.Dynamics.StandardMap.ComponentsMain
429
- import OAI.Dynamics.StandardMap.EntropyEndpoint
430
- import OAI.Dynamics.StandardMap.EntropyLyapunov
431
- import OAI.Dynamics.ThreeTorus.Main
432
- import OAI.Dynamics.TriangleBilliards.Main
433
- import OAI.GameTheory.SnakyConditional.Main
434
- import OAI.GameTheory.SnakyTwentyOne.Main
435
- import OAI.Geometry.Anticanonical.BranchedQuotient
436
- import OAI.Geometry.Anticanonical.DeckRecovery
437
- import OAI.Geometry.Anticanonical.DeletedFaces
438
- import OAI.Geometry.Anticanonical.HilbertEstimates
439
- import OAI.Geometry.Arnold.Main
440
- import OAI.Geometry.BallPacking.Main
441
- import OAI.Geometry.BallPacking.Necessity.Main
442
- import OAI.Geometry.Borsuk.Main
443
- import OAI.Geometry.CAT0Fillings.Main
444
- import OAI.Geometry.Cannon.Main
445
- import OAI.Geometry.ConjugatePoints.ThreeManifold
446
- import OAI.Geometry.CoveringDensity.Main
447
- import OAI.Geometry.CubicTorus.Main
448
- import OAI.Geometry.CylinderCovering.Main
449
- import OAI.Geometry.DoublingHilbert.CompactBanach
450
- import OAI.Geometry.DoublingHilbert.Main
451
- import OAI.Geometry.HarmonicGrowth.Main
452
- import OAI.Geometry.HeilbronnTriangle
453
- import OAI.Geometry.HyperbolicGroups.BipartiteLink
454
- import OAI.Geometry.HyperbolicGroups.ClosedPicture
455
- import OAI.Geometry.HyperbolicGroups.LetterFillingArea
456
- import OAI.Geometry.HyperbolicGroups.LocalSegmentContinuation
457
- import OAI.Geometry.HyperbolicGroups.LocalSegmentTools
458
- import OAI.Geometry.HyperbolicGroups.Main
459
- import OAI.Geometry.HyperbolicGroups.Parity
460
- import OAI.Geometry.HyperbolicGroups.PolygonContraction
461
- import OAI.Geometry.HyperbolicGroups.TreePathDepth
462
- import OAI.Geometry.HypersurfaceGerms.Main
463
- import OAI.Geometry.Immersion.ClosedSurface.Main
464
- import OAI.Geometry.IntegralFillings.Main
465
- import OAI.Geometry.IsometricImmersion.All
466
- import OAI.Geometry.Kahler
467
- import OAI.Geometry.KahlerSplitting.Main
468
- import OAI.Geometry.LatticeCovering
469
- import OAI.Geometry.LogVolume.BrunnMinkowski
470
- import OAI.Geometry.Manifold.ProjectiveSphere
471
- import OAI.Geometry.NearbyLagrangian.Main
472
- import OAI.Geometry.NearbyLagrangian.TubeKernel
473
- import OAI.Geometry.NegativeCurvature.Tube
474
- import OAI.Geometry.NilpotentCharts.Main
475
- import OAI.Geometry.NodalSets.Main
476
- import OAI.Geometry.Perimeter.Regularity.Main
477
- import OAI.Geometry.PeriodicTiling.Main
478
- import OAI.Geometry.PinnedDistances.Pins
479
- import OAI.Geometry.PlaneColoring.Five
480
- import OAI.Geometry.PlaneColoring.Main
481
- import OAI.Geometry.PolarProducts.Main
482
- import OAI.Geometry.PrescribedPotential.AtlasLocalization
483
- import OAI.Geometry.PrescribedPotential.AugmentedVolume
484
- import OAI.Geometry.PrescribedPotential.CalabiFrameCalculus
485
- import OAI.Geometry.PrescribedPotential.CalabiFrameScalars
486
- import OAI.Geometry.PrescribedPotential.CalabiRicciContraction
487
- import OAI.Geometry.PrescribedPotential.ClosedRangeSmooth
488
- import OAI.Geometry.PrescribedPotential.CommutatorSupport
489
- import OAI.Geometry.PrescribedPotential.CompletedProduct
490
- import OAI.Geometry.PrescribedPotential.CompletedRealification
491
- import OAI.Geometry.PrescribedPotential.CompletedVolume
492
- import OAI.Geometry.PrescribedPotential.CoordinateEllipticity
493
- import OAI.Geometry.PrescribedPotential.CoordinateExtension
494
- import OAI.Geometry.PrescribedPotential.CoordinateMinimumBound
495
- import OAI.Geometry.PrescribedPotential.CoordinatePotential
496
- import OAI.Geometry.PrescribedPotential.DerivativeEllipticGain
497
- import OAI.Geometry.PrescribedPotential.DerivativeLocalization
498
- import OAI.Geometry.PrescribedPotential.EvenRellich
499
- import OAI.Geometry.PrescribedPotential.FixedScaleBootstrap
500
- import OAI.Geometry.PrescribedPotential.FredholmKernel
501
- import OAI.Geometry.PrescribedPotential.FredholmRegularity
502
- import OAI.Geometry.PrescribedPotential.GlobalBounds
503
- import OAI.Geometry.PrescribedPotential.GlobalError
504
- import OAI.Geometry.PrescribedPotential.GlobalFiniteEmbedding
505
- import OAI.Geometry.PrescribedPotential.GlobalNonlinearCommutator
506
- import OAI.Geometry.PrescribedPotential.GlobalProduct
507
- import OAI.Geometry.PrescribedPotential.GlobalRellich
508
- import OAI.Geometry.PrescribedPotential.GlobalSmooth
509
- import OAI.Geometry.PrescribedPotential.HigherMetricOperator
510
- import OAI.Geometry.PrescribedPotential.HigherPoisson
511
- import OAI.Geometry.PrescribedPotential.HigherResolvent
512
- import OAI.Geometry.PrescribedPotential.LinearizedCommutator
513
- import OAI.Geometry.PrescribedPotential.MetricQuasilinearEquation
514
- import OAI.Geometry.PrescribedPotential.NonlinearCoreCommutator
515
- import OAI.Geometry.PrescribedPotential.NonlinearRemainderStrong
516
- import OAI.Geometry.PrescribedPotential.PathCalabiBound
517
- import OAI.Geometry.PrescribedPotential.PathCoordinateDensity
518
- import OAI.Geometry.PrescribedPotential.PathFrameBounds
519
- import OAI.Geometry.PrescribedPotential.PointPoisson
520
- import OAI.Geometry.PrescribedPotential.PositiveOpenness
521
- import OAI.Geometry.PrescribedPotential.PositivePotentialLinearization
522
- import OAI.Geometry.PrescribedPotential.PotentialDensityDifferential
523
- import OAI.Geometry.PrescribedPotential.PrescribedPotential
524
- import OAI.Geometry.PrescribedPotential.QuantitativeResolvent
525
- import OAI.Geometry.PrescribedPotential.RealMapSmooth
526
- import OAI.Geometry.PrescribedPotential.RealPoisson
527
- import OAI.Geometry.PrescribedPotential.RealSmoothCompactness
528
- import OAI.Geometry.PrescribedPotential.RegularityCutoffs
529
- import OAI.Geometry.PrescribedPotential.RegularityJets
530
- import OAI.Geometry.PrescribedPotential.SmoothChartInverse
531
- import OAI.Geometry.PrescribedPotential.SmoothLocalPath
532
- import OAI.Geometry.PrescribedPotential.SmoothPathLimit
533
- import OAI.Geometry.PrescribedPotential.SmoothSequenceCompactness
534
- import OAI.Geometry.PrescribedPotential.SobolevDetDifferential
535
- import OAI.Geometry.PrescribedPotential.SobolevExponential
536
- import OAI.Geometry.PrescribedPotential.SobolevFirstGain
537
- import OAI.Geometry.PrescribedPotential.SobolevOpenness
538
- import OAI.Geometry.PrescribedPotential.TwoScaleRegularity
539
- import OAI.Geometry.PrescribedPotential.UniformPathSobolev
540
- import OAI.Geometry.PrescribedPotential.WeakDerivativeLocalization
541
- import OAI.Geometry.PrescribedPotential.WeakPositive
542
- import OAI.Geometry.PrescribedRicci.BoundedSmoothPoisson
543
- import OAI.Geometry.PrescribedRicci.CalabiGradient
544
- import OAI.Geometry.PrescribedRicci.CalabiMetricC1
545
- import OAI.Geometry.PrescribedRicci.CalabiRough
546
- import OAI.Geometry.PrescribedRicci.CalabiTrace
547
- import OAI.Geometry.PrescribedRicci.CalabiTraceBound
548
- import OAI.Geometry.PrescribedRicci.ChernBianchi
549
- import OAI.Geometry.PrescribedRicci.ChernLuConnection
550
- import OAI.Geometry.PrescribedRicci.ChernRough
551
- import OAI.Geometry.PrescribedRicci.CofactorCore
552
- import OAI.Geometry.PrescribedRicci.CofactorCoreEquation
553
- import OAI.Geometry.PrescribedRicci.CofactorLocalization
554
- import OAI.Geometry.PrescribedRicci.CompactPathBounds
555
- import OAI.Geometry.PrescribedRicci.CompactPathRicci
556
- import OAI.Geometry.PrescribedRicci.FixedCofactorBootstrap
557
- import OAI.Geometry.PrescribedRicci.FixedCofactorStep
558
- import OAI.Geometry.PrescribedRicci.GlobalSmoothCompact
559
- import OAI.Geometry.PrescribedRicci.IntegratedKahlerEnergy
560
- import OAI.Geometry.PrescribedRicci.JetProductL2
561
- import OAI.Geometry.PrescribedRicci.KahlerCauchySchwarz
562
- import OAI.Geometry.PrescribedRicci.KahlerChartGradient
563
- import OAI.Geometry.PrescribedRicci.KahlerChartLp
564
- import OAI.Geometry.PrescribedRicci.KahlerEnergyProduct
565
- import OAI.Geometry.PrescribedRicci.KahlerIntegralPos
566
- import OAI.Geometry.PrescribedRicci.KahlerL2Comparison
567
- import OAI.Geometry.PrescribedRicci.KahlerPoincare
568
- import OAI.Geometry.PrescribedRicci.KahlerPoissonL2
569
- import OAI.Geometry.PrescribedRicci.KahlerSobolev
570
- import OAI.Geometry.PrescribedRicci.KahlerVolumeMeasure
571
- import OAI.Geometry.PrescribedRicci.KahlerVolumeVariation
572
- import OAI.Geometry.PrescribedRicci.MongeAmpereC0
573
- import OAI.Geometry.PrescribedRicci.MongeAmpereEnergy
574
- import OAI.Geometry.PrescribedRicci.MongeAmpereL2
575
- import OAI.Geometry.PrescribedRicci.NormalizeVolumePath
576
- import OAI.Geometry.PrescribedRicci.PathLocalGain
577
- import OAI.Geometry.PrescribedRicci.PathUniformHigher
578
- import OAI.Geometry.PrescribedRicci.PathUniformSobolevBase
579
- import OAI.Geometry.PrescribedRicci.PositiveOpenness
580
- import OAI.Geometry.PrescribedRicci.PositivePathLimit
581
- import OAI.Geometry.PrescribedRicci.PrescribedRicci
582
- import OAI.Geometry.PrescribedRicci.SmoothLocalInverse
583
- import OAI.Geometry.PrescribedRicci.SmoothPathLimit
584
- import OAI.Geometry.PrescribedRicci.SmoothPositivePath
585
- import OAI.Geometry.PrescribedRicci.TameCofactorGain
586
- import OAI.Geometry.PrescribedRicci.TraceMaximum
587
- import OAI.Geometry.PrescribedRicci.UniformCalabi
588
- import OAI.Geometry.PrescribedRicci.UniformChernLu
589
- import OAI.Geometry.PrescribedRicci.UniformMetricBounds
590
- import OAI.Geometry.PrescribedRicci.UniformPathPatches
591
- import OAI.Geometry.PrescribedRicci.WeightedMongeAmpereEnergy
592
- import OAI.Geometry.ProjectionBodies.Main
593
- import OAI.Geometry.ProjectionBody.Main
594
- import OAI.Geometry.ProjectionVolume.Main
595
- import OAI.Geometry.QuadricBundles.Main
596
- import OAI.Geometry.Riemannian.HarmonicCore.Main
597
- import OAI.Geometry.RuledCovering.Main
598
- import OAI.Geometry.SmoothYau.Main
599
- import OAI.Geometry.SplitTangent.AllCompactLeaves
600
- import OAI.Geometry.SplitTangent.AllProjectiveLeaves
601
- import OAI.Geometry.SplitTangent.AnalyticFiniteRelations
602
- import OAI.Geometry.SplitTangent.ArbitraryPlaqueLeaves
603
- import OAI.Geometry.SplitTangent.BasicDerivativeKernel
604
- import OAI.Geometry.SplitTangent.BoxFirstTransport
605
- import OAI.Geometry.SplitTangent.ChartSubmersion
606
- import OAI.Geometry.SplitTangent.CompactLeafQuotient
607
- import OAI.Geometry.SplitTangent.CompactPositiveLeaf
608
- import OAI.Geometry.SplitTangent.ComplementaryLeafIntersections
609
- import OAI.Geometry.SplitTangent.DenseCompactLeaves
610
- import OAI.Geometry.SplitTangent.DenseRationalVariation
611
- import OAI.Geometry.SplitTangent.EmbeddedLeafCharts
612
- import OAI.Geometry.SplitTangent.EmbeddedRationalCurve
613
- import OAI.Geometry.SplitTangent.EmbeddedTangentLift
614
- import OAI.Geometry.SplitTangent.EverywhereSmoothLeafQuotient
615
- import OAI.Geometry.SplitTangent.GenericLeafProductCover
616
- import OAI.Geometry.SplitTangent.GlobalAffineRelations
617
- import OAI.Geometry.SplitTangent.GlobalLeafRelations
618
- import OAI.Geometry.SplitTangent.GlobalProducts
619
- import OAI.Geometry.SplitTangent.GlobalTopologicalProduct
620
- import OAI.Geometry.SplitTangent.HolomorphicBasicTransport
621
- import OAI.Geometry.SplitTangent.HolomorphicLeafBasic
622
- import OAI.Geometry.SplitTangent.HolomorphicManifoldProduct
623
- import OAI.Geometry.SplitTangent.IntegrabilityReduction
624
- import OAI.Geometry.SplitTangent.IntrinsicPositiveLeaf
625
- import OAI.Geometry.SplitTangent.LeafAffineRelations
626
- import OAI.Geometry.SplitTangent.LeafAlgebraicDependence
627
- import OAI.Geometry.SplitTangent.LeafClosureRelations
628
- import OAI.Geometry.SplitTangent.LeafCompactLimits
629
- import OAI.Geometry.SplitTangent.LeafGermIdentity
630
- import OAI.Geometry.SplitTangent.LeafHomogeneousRelations
631
- import OAI.Geometry.SplitTangent.LeafLimitRelations
632
- import OAI.Geometry.SplitTangent.LeafLimitsSinglePlaque
633
- import OAI.Geometry.SplitTangent.LeafPolynomialGrowth
634
- import OAI.Geometry.SplitTangent.LeafProducts
635
- import OAI.Geometry.SplitTangent.LeafTopology
636
- import OAI.Geometry.SplitTangent.ManifoldJetAnalytic
637
- import OAI.Geometry.SplitTangent.OpenPositiveLeaves
638
- import OAI.Geometry.SplitTangent.PlaqueConnectedSets
639
- import OAI.Geometry.SplitTangent.PlaqueTangentImage
640
- import OAI.Geometry.SplitTangent.PolynomialLeafGerms
641
- import OAI.Geometry.SplitTangent.PositiveCoverLift
642
- import OAI.Geometry.SplitTangent.ProductCriteria
643
- import OAI.Geometry.SplitTangent.ProjectiveHypersurfaces
644
- import OAI.Geometry.SplitTangent.ProjectivePositiveLeaf
645
- import OAI.Geometry.SplitTangent.ProjectiveTangentBox
646
- import OAI.Geometry.SplitTangent.QuotientSubmersions
647
- import OAI.Geometry.SplitTangent.RCCovariantVanishing
648
- import OAI.Geometry.SplitTangent.RationalCoverLift
649
- import OAI.Geometry.SplitTangent.RationalReparam
650
- import OAI.Geometry.SplitTangent.RationalVariation
651
- import OAI.Geometry.SplitTangent.TangentCurveLeaf
652
- import OAI.Geometry.SplitTangent.TangentRationalChains
653
- import OAI.Geometry.SplitTangent.TransverseDiscrete
654
- import OAI.Geometry.SplitTangent.TransverseQuotient
655
- import OAI.Geometry.SplitTangent.ZariskiPairOpen
656
- import OAI.Geometry.Symplectic.MorseBounds.Main
657
- import OAI.Geometry.TamingCompatibility.Main
658
- import OAI.Geometry.TranslativeCovering.Main
659
- import OAI.Geometry.TriangularCovering.Main
660
- import OAI.Geometry.UnitDistances.Main
661
- import OAI.Geometry.Varifold.NullComparison
662
- import OAI.Geometry.WeakHessian.Main
663
- import OAI.Geometry.WeakMTW.Main
664
- import OAI.GroupTheory.ArithmeticGerms.Stabilizers
665
- import OAI.GroupTheory.ArtinCAT0.Main
666
- import OAI.GroupTheory.BooneHigman.Main
667
- import OAI.GroupTheory.CyclicSeries.Length
668
- import OAI.GroupTheory.FiniteIndex.Realization
669
- import OAI.GroupTheory.FiniteKernel.VirtualAbelian
670
- import OAI.GroupTheory.FiniteLattice.LabelledCollection
671
- import OAI.GroupTheory.FiniteLattice.NormalPreimage
672
- import OAI.GroupTheory.FiniteType.Main
673
- import OAI.GroupTheory.Heisenberg.BarDetector
674
- import OAI.GroupTheory.Hyperbolic.Main
675
- import OAI.GroupTheory.Kervaire.Main
676
- import OAI.GroupTheory.PChains.Cancellation
677
- import OAI.GroupTheory.PeriodicGroups.Main
678
- import OAI.GroupTheory.SimpleAmenable.Main
679
- import OAI.GroupTheory.SimpleOvergroups.Main
680
- import OAI.GroupTheory.Thompson.Main
681
- import OAI.GroupTheory.UniversalGroup.Main
682
- import OAI.InformationTheory.AmplitudeDamping.Main
683
- import OAI.InformationTheory.BooleanNoise.Main
684
- import OAI.InformationTheory.DimensionTen.StateKey
685
- import OAI.InformationTheory.Entanglement.Main
686
- import OAI.InformationTheory.PhotonNumber.Inequality
687
- import OAI.InformationTheory.QuantumCircuit.Main
688
- import OAI.InformationTheory.QuantumCircuit.Regularity
689
- import OAI.InformationTheory.SecretKey.DimensionTen
690
- import OAI.InformationTheory.SecretKey.Main
691
- import OAI.InformationTheory.SoftChannel.Main
692
- import OAI.LinearAlgebra.Barker.Main
693
- import OAI.LinearAlgebra.CirculantHadamard.Main
694
- import OAI.LinearAlgebra.CliffordAlgebra.KugaSatake
695
- import OAI.LinearAlgebra.Descent.Rational
696
- import OAI.LinearAlgebra.Hadamard.Main
697
- import OAI.LinearAlgebra.MatrixFields.Main
698
- import OAI.LinearAlgebra.MatrixMultiplication.Main
699
- import OAI.LinearAlgebra.TensorProduct.ScalarDescent
700
- import OAI.MathematicalPhysics.AlternatingFlow.Development
701
- import OAI.MathematicalPhysics.Anderson.Certificates
702
- import OAI.MathematicalPhysics.BFSS.Main
703
- import OAI.MathematicalPhysics.Coulomb.OuterRadius
704
- import OAI.MathematicalPhysics.CriticalMixing.Main
705
- import OAI.MathematicalPhysics.CriticalSK.LowerExponents
706
- import OAI.MathematicalPhysics.CriticalSK.Main
707
- import OAI.MathematicalPhysics.Elasticity.Uniqueness
708
- import OAI.MathematicalPhysics.HardSphere.GrandCanonical
709
- import OAI.MathematicalPhysics.Heisenberg.Main
710
- import OAI.MathematicalPhysics.NavierStokes.BalancedTransport.MainResult
711
- import OAI.MathematicalPhysics.NavierStokes.Material.Main
712
- import OAI.MathematicalPhysics.NavierStokes.ShearFlows.Main
713
- import OAI.MathematicalPhysics.NavierStokes.VelocityDetection.Main
714
- import OAI.MathematicalPhysics.PEPSFilters.GeometricOptimizer
715
- import OAI.MathematicalPhysics.PEPSMove.PhysicalMove
716
- import OAI.MathematicalPhysics.PEPSSubvolume.Main
717
- import OAI.MathematicalPhysics.PlanarAnderson.Spectrum
718
- import OAI.MathematicalPhysics.PrefixFlows.Main
719
- import OAI.MathematicalPhysics.RapidForcing.Main
720
- import OAI.MathematicalPhysics.RecorderFlows.Main
721
- import OAI.MathematicalPhysics.SheetFlows.SheetProgram
722
- import OAI.MathematicalPhysics.TensorNetwork.VectorColumn
723
- import OAI.MeasureTheory.DyadicAvoidance.Main
724
- import OAI.MeasureTheory.Falconer.Main
725
- import OAI.MeasureTheory.FalconerCompletion.Main
726
- import OAI.MeasureTheory.SelfSimilar.Main
727
- import OAI.MeasureTheory.SelfSimilar.DimensionCorollaries
728
- import OAI.ModelTheory.AbstractElementary.ModelExistence
729
- import OAI.ModelTheory.Categoricity.Main
730
- import OAI.ModelTheory.Choiceless.Separation
731
- import OAI.NumberTheory.Catalan.Main
732
- import OAI.NumberTheory.CubicGauss.Main
733
- import OAI.NumberTheory.CubicGram.Main
734
- import OAI.NumberTheory.DirichletL.Hecke.Nonvanishing
735
- import OAI.NumberTheory.DirichletL.Nonvanishing
736
- import OAI.NumberTheory.DuffinSchaeffer.Reductions
737
- import OAI.NumberTheory.EgyptianFractions.All
738
- import OAI.NumberTheory.GaussianMoat.Main
739
- import OAI.NumberTheory.Jacobsthal.Main
740
- import OAI.NumberTheory.JointDickman.PaperMain
741
- import OAI.NumberTheory.NumberField.UnitRadicals
742
- import OAI.NumberTheory.OrdinaryCorrelations.AbsoluteDefect.Main
743
- import OAI.NumberTheory.OrdinaryCorrelations.Elliott.Main
744
- import OAI.NumberTheory.OrdinaryCorrelations.HighTrace.Main
745
- import OAI.NumberTheory.Ostmann.Main
746
- import OAI.NumberTheory.PiExponent.Main
747
- import OAI.NumberTheory.PowerFree.Main
748
- import OAI.NumberTheory.PrimeGaps.RatioCorollary
749
- import OAI.NumberTheory.PrimePackets.Main
750
- import OAI.NumberTheory.QuadraticForms.ComponentLengths
751
- import OAI.NumberTheory.ShortEgyptian.Main
752
- import OAI.NumberTheory.SiegelZeros.Main
753
- import OAI.NumberTheory.SingleFold.Main
754
- import OAI.NumberTheory.TotientAsymptotic.Main
755
- import OAI.NumberTheory.TotientFibers.FiniteFiber
756
- import OAI.Optimization.Tropical.TruffetCounterexample
757
- import OAI.Probability.Ballisticity.Main
758
- import OAI.Probability.Ballisticity.VelocityHemisphere
759
- import OAI.Probability.BenjaminiSchramm
760
- import OAI.Probability.BinarySweep.Main
761
- import OAI.Probability.ClassicalON.Main
762
- import OAI.Probability.Contingency.LocalRepair
763
- import OAI.Probability.Contingency.PreparedResidual
764
- import OAI.Probability.ContinuumTransition.Main
765
- import OAI.Probability.CoordinateSweeps.Main
766
- import OAI.Probability.CriticalPercolation.Main
767
- import OAI.Probability.CriticalZ3.Main
768
- import OAI.Probability.CubeShuffle.WeightedMoments
769
- import OAI.Probability.DilutedSpin.Main
770
- import OAI.Probability.DirectionalWalk.Main
771
- import OAI.Probability.EntangledGames.Main
772
- import OAI.Probability.FKPressure.Main
773
- import OAI.Probability.FirstPassage.Main
774
- import OAI.Probability.FKMaps.Convergence
775
- import OAI.Probability.FreeIsing.Main
776
- import OAI.Probability.GaussianInformation.Main
777
- import OAI.Probability.GaussianPropeller.Main
778
- import OAI.Probability.GaussianRegression.Main
779
- import OAI.Probability.GaussianReplacement.Streaming
780
- import OAI.Probability.Honeycomb.FreeEnergy
781
- import OAI.Probability.Honeycomb.TriangleVisits
782
- import OAI.Probability.Ising.Main
783
- import OAI.Probability.IsingPerceptron.FullReplicaIBP
784
- import OAI.Probability.IsingPerceptron.VariationalFiniteness
785
- import OAI.Probability.JammingConcavity.DeletionUniformRowEstimates
786
- import OAI.Probability.JammingConcavity.RowFiniteDiagonalRowGeneralInterpolation
787
- import OAI.Probability.JammingConcavity.RowQuadraticTerminalLimit
788
- import OAI.Probability.JammingConcavity.VarianceTensorization
789
- import OAI.Probability.LatticeSurface.Brownian.BrownianClockFacet
790
- import OAI.Probability.LatticeSurface.Brownian.BrownianClockSupport
791
- import OAI.Probability.LatticeSurface.Brownian.BrownianPath
792
- import OAI.Probability.LatticeSurface.Brownian.BrownianPathIdentities
793
- import OAI.Probability.LatticeSurface.Coercivity.HoleWeighted
794
- import OAI.Probability.LatticeSurface.Convexity.ClusterDynamicsDefs
795
- import OAI.Probability.LatticeSurface.Convexity.FiniteLevelBarrier
796
- import OAI.Probability.LatticeSurface.Convexity.Metropolis
797
- import OAI.Probability.LatticeSurface.Convexity.MetropolisSupport
798
- import OAI.Probability.LatticeSurface.Convexity.ProductSums
799
- import OAI.Probability.LatticeSurface.Convexity.SupportUnit
800
- import OAI.Probability.LatticeSurface.Convexity.TailNumerics
801
- import OAI.Probability.LatticeSurface.Convexity.TransportResampling
802
- import OAI.Probability.LatticeSurface.Dynamics.CompactCoupling
803
- import OAI.Probability.LatticeSurface.Dynamics.LatticeShift
804
- import OAI.Probability.LatticeSurface.Dynamics.ProjectionComparison
805
- import OAI.Probability.LatticeSurface.Dynamics.ProjectionGlobal
806
- import OAI.Probability.LatticeSurface.Dynamics.ProjectionLimit
807
- import OAI.Probability.LatticeSurface.Dynamics.TiltApplication
808
- import OAI.Probability.LatticeSurface.Dynamics.TiltSupport
809
- import OAI.Probability.LatticeSurface.Dynamics.WeightedInitial
810
- import OAI.Probability.LatticeSurface.Geometry.ContactVolume
811
- import OAI.Probability.LatticeSurface.Moments.Averages
812
- import OAI.Probability.Localization.Main
813
- import OAI.Probability.LogConcave.Main
814
- import OAI.Probability.MatroidProphet
815
- import OAI.Probability.MatroidSecretary.Main
816
- import OAI.Probability.MemoryPrecision.Main
817
- import OAI.Probability.ParisiFinite.ParisiCanonicalTransport
818
- import OAI.Probability.ParisiFinite.ParisiEntropyDecomposition
819
- import OAI.Probability.ParisiFinite.RealShiftNormSqLe
820
- import OAI.Probability.ParisiFinite.SpinFlip
821
- import OAI.Probability.ParisiFinite.WeightedGradientField
822
- import OAI.Probability.Perceptron.Main
823
- import OAI.Probability.PosteriorReplicas.Main
824
- import OAI.Probability.ProbabilityMeasure.ArctanCenter
825
- import OAI.Probability.ProjectionMoments.Main
826
- import OAI.Probability.RadialTransition.DensityInterval
827
- import OAI.Probability.RadialTransition.Main
828
- import OAI.Probability.RandomSAT.Main
829
- import OAI.Probability.Renewal.Main
830
- import OAI.Probability.SATComputability.Main
831
- import OAI.Probability.SATVariance.Main
832
- import OAI.Probability.SKBarriers.Main
833
- import OAI.Probability.SKCutoff.Denominator
834
- import OAI.Probability.SKFluctuations.ComparisonMinimumRealOverlapConclusion
835
- import OAI.Probability.SKGap.Main
836
- import OAI.Probability.SKSupport.Main
837
- import OAI.Probability.SKValue.Main
838
- import OAI.Probability.SLE.MainReduction
839
- import OAI.Probability.SLE.MomentGauge
840
- import OAI.Probability.SLE.SausageCharge
841
- import OAI.Probability.SLEGauge.Main
842
- import OAI.Probability.SLELocalization.CircleMeans
843
- import OAI.Probability.SLELocalization.DriverStability
844
- import OAI.Probability.SLELocalization.FilledObstacle
845
- import OAI.Probability.SLELocalization.LoewnerCocycle
846
- import OAI.Probability.SLELocalization.MappedExit
847
- import OAI.Probability.SLELocalization.MeshSlab
848
- import OAI.Probability.SLELocalization.PastObstacle
849
- import OAI.Probability.SLELocalization.RetainedFirstMoment
850
- import OAI.Probability.SLELocalization.SlitMaps
851
- import OAI.Probability.SLELocalization.SpatialLimit
852
- import OAI.Probability.SLELocalization.StrongRestart
853
- import OAI.Probability.SLELocalization.TraceAvoidance
854
- import OAI.Probability.SLELocalization.TruncatedEnergy
855
- import OAI.Probability.SignedSweeps.Main
856
- import OAI.Probability.SpanningForest.Main
857
- import OAI.Probability.SphericalField.Main
858
- import OAI.Probability.SphericalPerceptron.PressureComparison
859
- import OAI.Probability.StrongRayleigh
860
- import OAI.Probability.Subsphere.Main
861
- import OAI.Probability.SwitchChain
862
- import OAI.Probability.ThorpCompatibility.Main
863
- import OAI.Probability.ThorpResults.FullDevelopment
864
- import OAI.Probability.ThorpRouting.Main
865
- import OAI.Probability.ThorpRouting.RegularTrace
866
- import OAI.Probability.ThorpShuffle.FirstFourier
867
- import OAI.Probability.ThorpShuffle.FirstMain
868
- import OAI.Probability.ThorpShuffle.FixedLists.Main
869
- import OAI.Probability.ThorpShuffle.Main
870
- import OAI.Probability.ThreeState.Main
871
- import OAI.Probability.ThreeStateClauses.Main
872
- import OAI.Probability.TraceReconstruction
873
- import OAI.Probability.UnimodularPercolation.CayleyMain
874
- import OAI.Probability.UnimodularPercolation.Main
875
- import OAI.Probability.UnimodularPercolation.UnimodularMain
876
- import OAI.Probability.Voronoi.CardyFormula
877
- import OAI.RepresentationTheory.AlperinWeights.Brauer
878
- import OAI.RepresentationTheory.Block.Defect
879
- import OAI.RepresentationTheory.FoulkesHowe
880
- import OAI.RepresentationTheory.FoulkesSixth.Main
881
- import OAI.RepresentationTheory.GraphModels.NormalActions
882
- import OAI.RepresentationTheory.KazhdanLusztig.Invariance
883
- import OAI.RepresentationTheory.PartialPermutation.Main
884
- import OAI.RepresentationTheory.ProjectiveInduction.CosetTransport
885
- import OAI.RepresentationTheory.RestrictedTilting.Main
886
- import OAI.RepresentationTheory.RowColumn.Occupied
887
- import OAI.RepresentationTheory.Saxl.Main
888
- import OAI.RepresentationTheory.SpinAngle.TypeAngle
889
- import OAI.RepresentationTheory.TensorSquares.Main
890
- import OAI.RepresentationTheory.Torus.ConvexWeights
891
- import OAI.RepresentationTheory.VertexAlgebra.Main
892
- import OAI.RingTheory.BassTrace.Main
893
- import OAI.RingTheory.BassTrace.TorsionFree
894
- import OAI.RingTheory.DirectFiniteness.FinitelyPresented
895
- import OAI.RingTheory.DirectFiniteness.Main
896
- import OAI.RingTheory.DivisionRing.FiniteDescent
897
- import OAI.RingTheory.FormalGroup.Main
898
- import OAI.RingTheory.GroupAction.TraceOne
899
- import OAI.RingTheory.Kurosh.Main
900
- import OAI.RingTheory.Multiplicity.Main
901
- import OAI.RingTheory.Tachikawa.Counterexample
902
- import OAI.SetTheory.PartitionConsistency.Main
903
- import OAI.SetTheory.PartitionPrinciple.Main
904
- import OAI.Topology.ArtinGroups.Main
905
- import OAI.Topology.ArtinGroups.ParabolicIntersections.Main
906
- import OAI.Topology.EilenbergGanea.Main
907
- import OAI.Topology.TorusCompression.Boundary
908
- import OAI.Topology.CoarseAssembly
909
- import OAI.RepresentationTheory.UniversalSquare.Main
910
- import OAI.Probability.SKRatio.Main
911
- import OAI.Geometry.Relativity.CKS.Main
912
- import OAI.Geometry.SurfaceImmersion.All
913
-
914
- import OAI.GroupTheory.PolycyclicRecognition
 
1
+ import OAI.Algebra.AffineCancellation.Main
2
+ import OAI.Algebra.AlgebraicObstruction.AlgebraicInput
3
+ import OAI.Algebra.AlgebraicObstruction.Holonomy
4
+ import OAI.Algebra.AuslanderReiten.All
5
+ import OAI.Algebra.BogomolovPop.Injectivity
6
+ import OAI.Algebra.Cohomology.SemilinearCochains
7
+ import OAI.Algebra.DepthFive.Main
8
+ import OAI.Algebra.Determinantal.Main
9
+ import OAI.Algebra.Divisor.Normalization
10
+ import OAI.Algebra.Divisor.RationalRecovery
11
+ import OAI.Algebra.Drinfeld.Completion
12
+ import OAI.Algebra.FiniteTensor.Main
13
+ import OAI.Algebra.Finitistic.Main
14
+ import OAI.Algebra.FinitisticAsymmetry.Main
15
+ import OAI.Algebra.FormalGroup.Honda.Main
16
+ import OAI.Algebra.FormulaHitting.Main
17
+ import OAI.Algebra.FrobeniusObstruction.Obstruction
18
+ import OAI.Algebra.GroupRing.CylinderRetention
19
+ import OAI.Algebra.GroupRing.Main
20
+ import OAI.Algebra.MarkedTensor.Main
21
+ import OAI.Algebra.Module.CompactPadic
22
+ import OAI.Algebra.OddKaplansky.GeneralTransfer
23
+ import OAI.Algebra.PolynomialChains.Real
24
+ import OAI.Algebra.Universal.Coset
25
+ import OAI.Algebra.Universal.GraphDecidability
26
+ import OAI.AlgebraicGeometry.AbhyankarSathaye.Counterexample
27
+ import OAI.AlgebraicGeometry.CartierSections
28
+ import OAI.AlgebraicGeometry.CharacterVarieties
29
+ import OAI.AlgebraicGeometry.CommutingDerivations.OrdinaryExtraMain
30
+ import OAI.AlgebraicGeometry.LogKodaira.FiberNegative
31
+ import OAI.AlgebraicGeometry.LogKodaira.RootFactor
32
+ import OAI.AlgebraicGeometry.NumericalDimension.IndexedTransfer
33
+ import OAI.AlgebraicGeometry.NumericalDimension.RelativeNegativity
34
+ import OAI.AlgebraicGeometry.NumericalDimension.TwistedPushforward
35
+ import OAI.AlgebraicGeometry.PlaneCurves.Nagata
36
+ import OAI.AlgebraicGeometry.RelativeTriviality.RelativeTriviality
37
+ import OAI.AlgebraicGeometry.SectionFields.Main
38
+ import OAI.AlgebraicGeometry.Seshadri.Main
39
+ import OAI.AlgebraicGeometry.Stability.NumericalWalls
40
+ import OAI.AlgebraicGeometry.StableCoordinate.All
41
+ import OAI.AlgebraicGeometry.SurfaceCones
42
+ import OAI.Analysis.AffineBernstein.Main
43
+ import OAI.Analysis.AllenCahn.Main
44
+ import OAI.Analysis.AncientFlat.Main
45
+ import OAI.Analysis.BackwardIntertwiners.AlgebraCorollary
46
+ import OAI.Analysis.BernoulliCone.Main
47
+ import OAI.Analysis.BiholderTransport.Main
48
+ import OAI.Analysis.BoundedHochschild.AtomicPrimitives
49
+ import OAI.Analysis.BoundedHochschild.CenterPowers
50
+ import OAI.Analysis.BoundedHochschild.CentralLinearPatch
51
+ import OAI.Analysis.BoundedHochschild.CocycleNormalParts
52
+ import OAI.Analysis.BoundedHochschild.CommutativePrimitives
53
+ import OAI.Analysis.BoundedHochschild.FactorFinitePaths
54
+ import OAI.Analysis.BoundedHochschild.FactorPrimitive
55
+ import OAI.Analysis.BoundedHochschild.FreeWords
56
+ import OAI.Analysis.BoundedHochschild.MainResult
57
+ import OAI.Analysis.BoundedHochschild.MatrixDisplacement
58
+ import OAI.Analysis.BoundedHochschild.TypeIICorners
59
+ import OAI.Analysis.BoundedHochschild.TypeIPrimitives
60
+ import OAI.Analysis.BoundedHochschild.UnitaryLifts
61
+ import OAI.Analysis.BoxTransport.Routing
62
+ import OAI.Analysis.Brenier.Stability
63
+ import OAI.Analysis.BrownMeasure.Main
64
+ import OAI.Analysis.C0Absorption.Main
65
+ import OAI.Analysis.CStarAlgebra.PureInfiniteness.Main
66
+ import OAI.Analysis.CardinalInterpolation.ModTwelve
67
+ import OAI.Analysis.CharacterCriterion.Main
68
+ import OAI.Analysis.CircleDomains.LengthArea
69
+ import OAI.Analysis.CircleDomains.Development
70
+ import OAI.Analysis.Commutator.Main
71
+ import OAI.Analysis.Conductivity.Main
72
+ import OAI.Analysis.Cotype.Main
73
+ import OAI.Analysis.CoulombIonization.Main
74
+ import OAI.Analysis.CoulombRadii.Main
75
+ import OAI.Analysis.CoulombTransport.Main
76
+ import OAI.Analysis.Crouzeix.Main
77
+ import OAI.Analysis.Daugavet.Main
78
+ import OAI.Analysis.DiamondDistortion.Main
79
+ import OAI.Analysis.DirectCrouzeix.Main
80
+ import OAI.Analysis.DiskMaximal.Main
81
+ import OAI.Analysis.FactorGeneration.Main
82
+ import OAI.Analysis.FiniteFactor.Main
83
+ import OAI.Analysis.ForestSpace.Main
84
+ import OAI.Analysis.Fourier.HeightLayers
85
+ import OAI.Analysis.Fourier.SphereExtension
86
+ import OAI.Analysis.FourierExtension.LpEstimate
87
+ import OAI.Analysis.FourierLLogL.PaperMain
88
+ import OAI.Analysis.FreeEntropy.Main
89
+ import OAI.Analysis.FreeGroupFactor.Main
90
+ import OAI.Analysis.FreeWords.Main
91
+ import OAI.Analysis.Graph.Gradients
92
+ import OAI.Analysis.GroupDeterminants.Main
93
+ import OAI.Analysis.HardSphere.Main
94
+ import OAI.Analysis.HenonEmden.Main
95
+ import OAI.Analysis.HilbertCrouzeix.Main
96
+ import OAI.Analysis.HotSpots.Main
97
+ import OAI.Analysis.HyperbolicCones
98
+ import OAI.Analysis.Hyperinvariant
99
+ import OAI.Analysis.IncompressibleFlow.AffineExtension
100
+ import OAI.Analysis.InnerProductSpace.ComplexSolvability
101
+ import OAI.Analysis.IntegralMeans.Main
102
+ import OAI.Analysis.IntegralMeans.SharpEndpoints
103
+ import OAI.Analysis.InterpolatedFactors.Interpolation
104
+ import OAI.Analysis.IrrationalRotation.Main
105
+ import OAI.Analysis.JiangSu.Main
106
+ import OAI.Analysis.Kakeya.FixedScale
107
+ import OAI.Analysis.Kaplansky.Main
108
+ import OAI.Analysis.Kaplansky.StableFiniteness
109
+ import OAI.Analysis.Laughlin.Main
110
+ import OAI.Analysis.Laughlin.UniformGap
111
+ import OAI.Analysis.LaughlinFock.Main
112
+ import OAI.Analysis.LaughlinFock.TensorIntegrals
113
+ import OAI.Analysis.LaughlinGap.Main
114
+ import OAI.Analysis.LaughlinGap.ThreeAveraging
115
+ import OAI.Analysis.LiebThirring.CoerciveInverse
116
+ import OAI.Analysis.LiebThirring.CompactAlternative
117
+ import OAI.Analysis.LiebThirring.ContinuousRepresentative
118
+ import OAI.Analysis.LiebThirring.DiscreteSpectrum
119
+ import OAI.Analysis.LiebThirring.Eigenspace
120
+ import OAI.Analysis.LiebThirring.EigenvalueSum
121
+ import OAI.Analysis.LiebThirring.FormCongruence
122
+ import OAI.Analysis.LiebThirring.FreeForm
123
+ import OAI.Analysis.LiebThirring.LocalCompactness
124
+ import OAI.Analysis.LiebThirring.LocalWeight
125
+ import OAI.Analysis.LiebThirring.LowestEigenvalue
126
+ import OAI.Analysis.LiebThirring.Main
127
+ import OAI.Analysis.LiebThirring.Multiplication
128
+ import OAI.Analysis.LiebThirring.NegativeResolvent
129
+ import OAI.Analysis.LiebThirring.OneState
130
+ import OAI.Analysis.LiebThirring.OperatorForm
131
+ import OAI.Analysis.LiebThirring.OperatorGraph
132
+ import OAI.Analysis.LiebThirring.PotentialCompactness
133
+ import OAI.Analysis.LiebThirring.PotentialSplit
134
+ import OAI.Analysis.LiebThirring.Resolvent
135
+ import OAI.Analysis.LiebThirring.SchrodingerOperator
136
+ import OAI.Analysis.LiebThirring.SobolevBound
137
+ import OAI.Analysis.LiebThirring.SpectralMain
138
+ import OAI.Analysis.LiebThirring.SpectralMoment
139
+ import OAI.Analysis.LiebThirring.WeightedCutoff
140
+ import OAI.Analysis.LienardCycles.Main
141
+ import OAI.Analysis.Lipschitz.TriangularLattice
142
+ import OAI.Analysis.LipschitzEquivalence.Main
143
+ import OAI.Analysis.LipschitzFree.Main
144
+ import OAI.Analysis.LipschitzFree.Renorming
145
+ import OAI.Analysis.LipschitzHilbert.Main
146
+ import OAI.Analysis.Littlewood.Main
147
+ import OAI.Analysis.Littlewood.FiniteFlatness
148
+ import OAI.Analysis.LpDimension.Main
149
+ import OAI.Analysis.Mahler
150
+ import OAI.Analysis.Mahler.Classification
151
+ import OAI.Analysis.MarkovType.All
152
+ import OAI.Analysis.MassAction.Main
153
+ import OAI.Analysis.MatrixSigning.Main
154
+ import OAI.Analysis.MetricEntropy.Main
155
+ import OAI.Analysis.ModularRecovery.Main
156
+ import OAI.Analysis.MumfordShah.CompactExclusion
157
+ import OAI.Analysis.MutuallyUnbiased.Bases.ThreeMain
158
+ import OAI.Analysis.MutuallyUnbiased.Main
159
+ import OAI.Analysis.Naimark.Tracial
160
+ import OAI.Analysis.NavierStokes.VelocitySpace
161
+ import OAI.Analysis.NefAdjoint.FractionalDensity
162
+ import OAI.Analysis.NefAdjoint.SectionGauge
163
+ import OAI.Analysis.NodalLength.Main
164
+ import OAI.Analysis.Nonexpansive
165
+ import OAI.Analysis.NuclearUltrapower.Main
166
+ import OAI.Analysis.NumericalRange.Main
167
+ import OAI.Analysis.PathSelection.Main
168
+ import OAI.Analysis.PeriodicLattice.Main
169
+ import OAI.Analysis.PlanarEndpoint.Main
170
+ import OAI.Analysis.Polynomial.Exhaustion
171
+ import OAI.Analysis.ProductSpaces.Main
172
+ import OAI.Analysis.Pureness.Main
173
+ import OAI.Analysis.Quantum.DimensionTen.Main
174
+ import OAI.Analysis.RCDHeat.Main
175
+ import OAI.Analysis.RecursivePotentials.EquivalentNorms
176
+ import OAI.Analysis.RecursivePotentials.JoinedGeometry
177
+ import OAI.Analysis.RecursivePotentials.Main
178
+ import OAI.Analysis.RecursivePotentials.Model
179
+ import OAI.Analysis.RecursivePotentials.TreeGeometry
180
+ import OAI.Analysis.RecursivePotentials.VariableCompletion
181
+ import OAI.Analysis.RecursivePotentials.VariableEstimates
182
+ import OAI.Analysis.RecursivePotentials.VariableLp
183
+ import OAI.Analysis.RecursivePotentials.VariableStability
184
+ import OAI.Analysis.RecursivePotentials.ZeroRootGeometry
185
+ import OAI.Analysis.RelativeGeneration.Main
186
+ import OAI.Analysis.RieszRectifiability.Main
187
+ import OAI.Analysis.RotationWeights.Main
188
+ import OAI.Analysis.SegmentLenses.HeadRanges
189
+ import OAI.Analysis.SegmentLenses.Main
190
+ import OAI.Analysis.SeparableQuotients.Main
191
+ import OAI.Analysis.SeparableQuotients.Positive.Main
192
+ import OAI.Analysis.SignedDisk.Main
193
+ import OAI.Analysis.SphereIsometry.Main
194
+ import OAI.Analysis.Steinitz.Main
195
+ import OAI.Analysis.StrictMeans.Main
196
+ import OAI.Analysis.StructuralCrouzeix.Endpoint
197
+ import OAI.Analysis.SymmetricDomains.Main
198
+ import OAI.Analysis.TemperedDistribution.ConformalIdentities
199
+ import OAI.Analysis.TraceCone.Main
200
+ import OAI.Analysis.TracialCohomology.Vanishing
201
+ import OAI.Analysis.TracialSplitting.Main
202
+ import OAI.Analysis.TreePotential.Main
203
+ import OAI.Analysis.Triangular.Main
204
+ import OAI.Analysis.TriangularHilbert.Main
205
+ import OAI.Analysis.Unitarizability.AllDiscrete
206
+ import OAI.Analysis.Unitarizability.UniverseTransport
207
+ import OAI.Analysis.VlasovMaxwell.Main
208
+ import OAI.Analysis.WeakInfiniteness.Main
209
+ import OAI.CategoryTheory.Globular.Main
210
+ import OAI.CategoryTheory.ThickClosure.Main
211
+ import OAI.CategoryTheory.Thomason.RankedFaithfulness
212
+ import OAI.Combinatorics.Automata.Main
213
+ import OAI.Combinatorics.BalancedRyser.Main
214
+ import OAI.Combinatorics.BooleanFunctions.Main
215
+ import OAI.Combinatorics.Chromatic.Main
216
+ import OAI.Combinatorics.CliqueFree.Main
217
+ import OAI.Combinatorics.Coboundary.Main
218
+ import OAI.Combinatorics.CompleteCrossing.Main
219
+ import OAI.Combinatorics.ContingencyTables.FactorialLift
220
+ import OAI.Combinatorics.Crossing.Main
221
+ import OAI.Combinatorics.CycleDecomposition.Main
222
+ import OAI.Combinatorics.DiscreteConvexity.Main
223
+ import OAI.Combinatorics.Distances.PolynomialIsolation
224
+ import OAI.Combinatorics.EditDistance.Main
225
+ import OAI.Combinatorics.EuclideanRamsey.Circle
226
+ import OAI.Combinatorics.EuclideanRamsey.Main
227
+ import OAI.Combinatorics.EuclideanRamsey.NineStatement
228
+ import OAI.Combinatorics.EuclideanRamsey.Quadratic
229
+ import OAI.Combinatorics.EuclideanRamsey.Spherical
230
+ import OAI.Combinatorics.EuclideanRamsey.Transitive
231
+ import OAI.Combinatorics.ExpectationThreshold.Main
232
+ import OAI.Combinatorics.FiniteCircle.Main
233
+ import OAI.Combinatorics.GotsmanLinial.Main
234
+ import OAI.Combinatorics.GraphSpectrum.SampledChromatic
235
+ import OAI.Combinatorics.GraphThreshold.Main
236
+ import OAI.Combinatorics.HadwigerCounterexample.Main
237
+ import OAI.Combinatorics.HalvingLines.Main
238
+ import OAI.Combinatorics.Hamiltonian.Main
239
+ import OAI.Combinatorics.Honeycomb.FiniteCylinder
240
+ import OAI.Combinatorics.Honeycomb.PolygonMoment
241
+ import OAI.Combinatorics.HoneycombBridges.ExactLength
242
+ import OAI.Combinatorics.HoneycombBridges.Geometry
243
+ import OAI.Combinatorics.HoneycombChords
244
+ import OAI.Combinatorics.HoneycombCorridor.CorridorTransfer
245
+ import OAI.Combinatorics.IndependentSets.Main
246
+ import OAI.Combinatorics.InfiniteMatroid.Corollaries
247
+ import OAI.Combinatorics.InfiniteMatroid.Main
248
+ import OAI.Combinatorics.KMedian.Main
249
+ import OAI.Combinatorics.KMedian.Threshold
250
+ import OAI.Combinatorics.KMedianRecovery.Main
251
+ import OAI.Combinatorics.KMedianRecovery.Refined.Main
252
+ import OAI.Combinatorics.KMedianRecovery.Refined.Recovery
253
+ import OAI.Combinatorics.KServer.Main
254
+ import OAI.Combinatorics.ListHadwiger.Main
255
+ import OAI.Combinatorics.MatchingCount.Main
256
+ import OAI.Combinatorics.MatchingEntropy.Main
257
+ import OAI.Combinatorics.Permanent.Main
258
+ import OAI.Combinatorics.PolynomialVacuum.Main
259
+ import OAI.Combinatorics.PortMatching.Reduction
260
+ import OAI.Combinatorics.Progressions.Main
261
+ import OAI.Combinatorics.Ramsey.CycleClique.Main
262
+ import OAI.Combinatorics.Ramsey.Hypercube
263
+ import OAI.Combinatorics.RamseyFive.Main
264
+ import OAI.Combinatorics.StableGraphs.ExteriorBounds
265
+ import OAI.Combinatorics.StripMass.Main
266
+ import OAI.Combinatorics.SumProduct.Alignment.Main
267
+ import OAI.Combinatorics.ThinTrees.AlgorithmicMain
268
+ import OAI.Combinatorics.TriangleFace.Main
269
+ import OAI.Combinatorics.MatchingPSD.AffineLift
270
+ import OAI.Combinatorics.MatchingPSD.Main
271
+ import OAI.Combinatorics.MatrixRemoval.Main
272
+ import OAI.Combinatorics.MatroidCounting.CommonBases
273
+ import OAI.Combinatorics.ParityLifts.AsymptoticBounds
274
+ import OAI.Combinatorics.PerfectMatching.AlgorithmPartition
275
+ import OAI.Combinatorics.PerfectMatching.Ascent
276
+ import OAI.Combinatorics.PerfectMatching.CompletePairs
277
+ import OAI.Combinatorics.PerfectMatching.Completion
278
+ import OAI.Combinatorics.PerfectMatching.CountCorrect
279
+ import OAI.Combinatorics.PerfectMatching.DyadicEntropy
280
+ import OAI.Combinatorics.PerfectMatching.DyadicEnvelope
281
+ import OAI.Combinatorics.PerfectMatching.ElementaryCount
282
+ import OAI.Combinatorics.PerfectMatching.EntropyUpper
283
+ import OAI.Combinatorics.PerfectMatching.FeasibilityRepair
284
+ import OAI.Combinatorics.PerfectMatching.ForcedReduction
285
+ import OAI.Combinatorics.PerfectMatching.Main
286
+ import OAI.Combinatorics.PerfectMatching.Model
287
+ import OAI.Combinatorics.PerfectMatching.ObjectivePenalty
288
+ import OAI.Combinatorics.PerfectMatching.ParameterBounds
289
+ import OAI.Combinatorics.PerfectMatching.Partition
290
+ import OAI.Combinatorics.PerfectMatching.Separable
291
+ import OAI.Combinatorics.PerfectMatching.SeparableCount
292
+ import OAI.Combinatorics.PerfectMatching.SeparableCovariance
293
+ import OAI.Combinatorics.PerfectMatching.SeparableLower
294
+ import OAI.Combinatorics.PerfectMatching.SizeBounds
295
+ import OAI.Combinatorics.PerfectMatching.Violation
296
+ import OAI.Combinatorics.PerfectMatching.WeightedSpectrum
297
+ import OAI.Combinatorics.PlanarL1.Embedding
298
+ import OAI.Combinatorics.ProgressionColoring.Main
299
+ import OAI.Combinatorics.Ryser.Main
300
+ import OAI.Combinatorics.Ryser.OddExtensions
301
+ import OAI.Combinatorics.SecondNeighborhood.Main
302
+ import OAI.Combinatorics.Sensitivity.Main
303
+ import OAI.Combinatorics.SharpRamsey.Main
304
+ import OAI.Combinatorics.SharpThreshold.Main
305
+ import OAI.Combinatorics.Sidorenko.RandomHost
306
+ import OAI.Combinatorics.SnakyCertificate.Main
307
+ import OAI.Combinatorics.SparsestCut.Main
308
+ import OAI.Combinatorics.SphericalRamsey
309
+ import OAI.Combinatorics.SphericalRamsey.Result
310
+ import OAI.Combinatorics.SquareDifference.Main
311
+ import OAI.Combinatorics.ThinTrees.Main
312
+ import OAI.Combinatorics.TreeEdit.Main
313
+ import OAI.Combinatorics.TreewidthL1.Main
314
+ import OAI.Combinatorics.TriangleRemoval.Main
315
+ import OAI.Combinatorics.TwoWayAutomata.ExplicitFamily
316
+ import OAI.Combinatorics.TwoWayAutomata.Main
317
+ import OAI.Combinatorics.TwoWayAutomata.PolynomialBound
318
+ import OAI.Combinatorics.UniformKServer.Main
319
+ import OAI.Combinatorics.VariableWL
320
+ import OAI.Combinatorics.YoungDiagram.RealCapacity
321
+ import OAI.Combinatorics.YoungDiagram.RealLargeCapacity
322
+ import OAI.Computability.BinPacking.Main
323
+ import OAI.Computability.DegreeRigidity.Main
324
+ import OAI.Computability.DepthThree
325
+ import OAI.Computability.DeterministicSum.Main
326
+ import OAI.Computability.DirectedFeedback.Main
327
+ import OAI.Computability.FourierCircuit.Main
328
+ import OAI.Computability.FourierTransform.Main
329
+ import OAI.Computability.GeneralizedCircuits.Mesh
330
+ import OAI.Computability.Logspace.Deterministic
331
+ import OAI.Computability.Logspace.Equality
332
+ import OAI.Computability.LoopMatching.Endpoint
333
+ import OAI.Computability.MatchingCount.ArgRoutine
334
+ import OAI.Computability.MatchingCount.BinaryAlgorithm
335
+ import OAI.Computability.MatchingCount.BinaryParser
336
+ import OAI.Computability.MatchingCount.BinarySolve
337
+ import OAI.Computability.MatchingCount.CappedPower
338
+ import OAI.Computability.MatchingCount.CutAlgebra
339
+ import OAI.Computability.MatchingCount.DenseOracle
340
+ import OAI.Computability.MatchingCount.DivisionRoutine
341
+ import OAI.Computability.MatchingCount.FiniteStack
342
+ import OAI.Computability.MatchingCount.FoldRoutine
343
+ import OAI.Computability.MatchingCount.GuardRoutine
344
+ import OAI.Computability.MatchingCount.IntegerRoutine
345
+ import OAI.Computability.MatchingCount.IterateRoutine
346
+ import OAI.Computability.MatchingCount.LengthRoutine
347
+ import OAI.Computability.MatchingCount.ListNumeric
348
+ import OAI.Computability.MatchingCount.ListRoutine
349
+ import OAI.Computability.MatchingCount.MapRoutine
350
+ import OAI.Computability.MatchingCount.OddCutParity
351
+ import OAI.Computability.MatchingCount.OddCutUncross
352
+ import OAI.Computability.MatchingCount.OddMincut
353
+ import OAI.Computability.MatchingCount.OptionCases
354
+ import OAI.Computability.MatchingCount.OracleBounds
355
+ import OAI.Computability.MatchingCount.OrbitRoutine
356
+ import OAI.Computability.MatchingCount.PairRoutine
357
+ import OAI.Computability.MatchingCount.ParamRoutine
358
+ import OAI.Computability.MatchingCount.ParserSupport
359
+ import OAI.Computability.MatchingCount.PolyCoding
360
+ import OAI.Computability.MatchingCount.ProjectionRoutine
361
+ import OAI.Computability.MatchingCount.RawBitsBridge
362
+ import OAI.Computability.MatchingCount.RawContraction
363
+ import OAI.Computability.MatchingCount.RawContractionCompiler
364
+ import OAI.Computability.MatchingCount.RawData
365
+ import OAI.Computability.MatchingCount.RawFlow
366
+ import OAI.Computability.MatchingCount.RawFlowCompiler
367
+ import OAI.Computability.MatchingCount.RawFlowSize
368
+ import OAI.Computability.MatchingCount.RawInput
369
+ import OAI.Computability.MatchingCount.RawOddBounds
370
+ import OAI.Computability.MatchingCount.RawOddCompiler
371
+ import OAI.Computability.MatchingCount.RawOddCut
372
+ import OAI.Computability.MatchingCount.RawOptimizer
373
+ import OAI.Computability.MatchingCount.RawOptimizerCompiler
374
+ import OAI.Computability.MatchingCount.RawOptimizerData
375
+ import OAI.Computability.MatchingCount.RawOptimizerDataCompiler
376
+ import OAI.Computability.MatchingCount.RawOptimizerRows
377
+ import OAI.Computability.MatchingCount.RawOptimizerRowsCompiler
378
+ import OAI.Computability.MatchingCount.RawPrimitives
379
+ import OAI.Computability.MatchingCount.RawRoutine
380
+ import OAI.Computability.MatchingCount.RawSearch
381
+ import OAI.Computability.MatchingCount.RawSearchCompiler
382
+ import OAI.Computability.MatchingCount.RawSearchSize
383
+ import OAI.Computability.MatchingCount.RawSize
384
+ import OAI.Computability.MatchingCount.RecursiveBounds
385
+ import OAI.Computability.MatchingCount.RecursiveCoding
386
+ import OAI.Computability.MatchingCount.RecursiveCompiler
387
+ import OAI.Computability.MatchingCount.RecursiveEval
388
+ import OAI.Computability.MatchingCount.ResidualSearch
389
+ import OAI.Computability.MatchingCount.ScaledAlgorithm
390
+ import OAI.Computability.MatchingCount.ScaledBounds
391
+ import OAI.Computability.MatchingCount.ScaledState
392
+ import OAI.Computability.MatchingCount.SelectRoutine
393
+ import OAI.Computability.MatchingCount.SequenceRoutine
394
+ import OAI.Computability.MatchingCount.StackCopy
395
+ import OAI.Computability.MatchingCount.StackEmbed
396
+ import OAI.Computability.MatchingCount.StackFrame
397
+ import OAI.Computability.MatchingCount.StackMacros
398
+ import OAI.Computability.MatchingCount.StackPair
399
+ import OAI.Computability.MatchingCount.StackRoutine
400
+ import OAI.Computability.MatchingCount.SumRoutine
401
+ import OAI.Computability.MatchingCount.TerminalMincut
402
+ import OAI.Computability.MatchingCount.UnaryArithmetic
403
+ import OAI.Computability.MatchingCount.UnaryClog
404
+ import OAI.Computability.MatchingCount.UnaryDivision
405
+ import OAI.Computability.MatchingCount.UnitFlow
406
+ import OAI.Computability.MatchingCount.UnitMincut
407
+ import OAI.Computability.MaxCut.Main
408
+ import OAI.Computability.MeanPayoff.Main
409
+ import OAI.Computability.MinUncut.Main
410
+ import OAI.Computability.PerfectCompleteness.Main
411
+ import OAI.Computability.QuantumFactoring.Main
412
+ import OAI.Computability.RandomMean.Main
413
+ import OAI.Computability.RationalHitting.Main
414
+ import OAI.Computability.Scheduling.Main
415
+ import OAI.Computability.SpaceSimulation.Main
416
+ import OAI.Computability.StarHeight.Main
417
+ import OAI.Computability.Superstring.Main
418
+ import OAI.Computability.TypeSystem.Normalization
419
+ import OAI.Computability.UniqueGames.Main
420
+ import OAI.Computability.VertexCover.Main
421
+ import OAI.Computability.WLIdentification.Main
422
+ import OAI.Computability.WeisfeilerLeman.Main
423
+ import OAI.Computability.WitnessedChoice.Main
424
+ import OAI.Dynamics.ConditionalShuffle.TwoColors
425
+ import OAI.Dynamics.EntropyCounterexample
426
+ import OAI.Dynamics.MultipleMixing.Main
427
+ import OAI.Dynamics.SmoothObstruction.Main
428
+ import OAI.Dynamics.StandardMap.ComponentsMain
429
+ import OAI.Dynamics.StandardMap.EntropyEndpoint
430
+ import OAI.Dynamics.StandardMap.EntropyLyapunov
431
+ import OAI.Dynamics.ThreeTorus.Main
432
+ import OAI.Dynamics.TriangleBilliards.Main
433
+ import OAI.GameTheory.SnakyConditional.Main
434
+ import OAI.GameTheory.SnakyTwentyOne.Main
435
+ import OAI.Geometry.Anticanonical.BranchedQuotient
436
+ import OAI.Geometry.Anticanonical.DeckRecovery
437
+ import OAI.Geometry.Anticanonical.DeletedFaces
438
+ import OAI.Geometry.Anticanonical.HilbertEstimates
439
+ import OAI.Geometry.Arnold.Main
440
+ import OAI.Geometry.BallPacking.Main
441
+ import OAI.Geometry.BallPacking.Necessity.Main
442
+ import OAI.Geometry.Borsuk.Main
443
+ import OAI.Geometry.CAT0Fillings.Main
444
+ import OAI.Geometry.Cannon.Main
445
+ import OAI.Geometry.ConjugatePoints.ThreeManifold
446
+ import OAI.Geometry.CoveringDensity.Main
447
+ import OAI.Geometry.CubicTorus.Main
448
+ import OAI.Geometry.CylinderCovering.Main
449
+ import OAI.Geometry.DoublingHilbert.CompactBanach
450
+ import OAI.Geometry.DoublingHilbert.Main
451
+ import OAI.Geometry.HarmonicGrowth.Main
452
+ import OAI.Geometry.HeilbronnTriangle
453
+ import OAI.Geometry.HyperbolicGroups.BipartiteLink
454
+ import OAI.Geometry.HyperbolicGroups.ClosedPicture
455
+ import OAI.Geometry.HyperbolicGroups.LetterFillingArea
456
+ import OAI.Geometry.HyperbolicGroups.LocalSegmentContinuation
457
+ import OAI.Geometry.HyperbolicGroups.LocalSegmentTools
458
+ import OAI.Geometry.HyperbolicGroups.Main
459
+ import OAI.Geometry.HyperbolicGroups.Parity
460
+ import OAI.Geometry.HyperbolicGroups.PolygonContraction
461
+ import OAI.Geometry.HyperbolicGroups.TreePathDepth
462
+ import OAI.Geometry.HypersurfaceGerms.Main
463
+ import OAI.Geometry.Immersion.ClosedSurface.Main
464
+ import OAI.Geometry.IntegralFillings.Main
465
+ import OAI.Geometry.IsometricImmersion.All
466
+ import OAI.Geometry.Kahler
467
+ import OAI.Geometry.KahlerSplitting.Main
468
+ import OAI.Geometry.LatticeCovering
469
+ import OAI.Geometry.LogVolume.BrunnMinkowski
470
+ import OAI.Geometry.Manifold.ProjectiveSphere
471
+ import OAI.Geometry.NearbyLagrangian.Main
472
+ import OAI.Geometry.NearbyLagrangian.TubeKernel
473
+ import OAI.Geometry.NegativeCurvature.Tube
474
+ import OAI.Geometry.NilpotentCharts.Main
475
+ import OAI.Geometry.NodalSets.Main
476
+ import OAI.Geometry.Perimeter.Regularity.Main
477
+ import OAI.Geometry.PeriodicTiling.Main
478
+ import OAI.Geometry.PinnedDistances.Pins
479
+ import OAI.Geometry.PlaneColoring.Five
480
+ import OAI.Geometry.PlaneColoring.Main
481
+ import OAI.Geometry.PolarProducts.Main
482
+ import OAI.Geometry.PrescribedPotential.AtlasLocalization
483
+ import OAI.Geometry.PrescribedPotential.AugmentedVolume
484
+ import OAI.Geometry.PrescribedPotential.CalabiFrameCalculus
485
+ import OAI.Geometry.PrescribedPotential.CalabiFrameScalars
486
+ import OAI.Geometry.PrescribedPotential.CalabiRicciContraction
487
+ import OAI.Geometry.PrescribedPotential.ClosedRangeSmooth
488
+ import OAI.Geometry.PrescribedPotential.CommutatorSupport
489
+ import OAI.Geometry.PrescribedPotential.CompletedProduct
490
+ import OAI.Geometry.PrescribedPotential.CompletedRealification
491
+ import OAI.Geometry.PrescribedPotential.CompletedVolume
492
+ import OAI.Geometry.PrescribedPotential.CoordinateEllipticity
493
+ import OAI.Geometry.PrescribedPotential.CoordinateExtension
494
+ import OAI.Geometry.PrescribedPotential.CoordinateMinimumBound
495
+ import OAI.Geometry.PrescribedPotential.CoordinatePotential
496
+ import OAI.Geometry.PrescribedPotential.DerivativeEllipticGain
497
+ import OAI.Geometry.PrescribedPotential.DerivativeLocalization
498
+ import OAI.Geometry.PrescribedPotential.EvenRellich
499
+ import OAI.Geometry.PrescribedPotential.FixedScaleBootstrap
500
+ import OAI.Geometry.PrescribedPotential.FredholmKernel
501
+ import OAI.Geometry.PrescribedPotential.FredholmRegularity
502
+ import OAI.Geometry.PrescribedPotential.GlobalBounds
503
+ import OAI.Geometry.PrescribedPotential.GlobalError
504
+ import OAI.Geometry.PrescribedPotential.GlobalFiniteEmbedding
505
+ import OAI.Geometry.PrescribedPotential.GlobalNonlinearCommutator
506
+ import OAI.Geometry.PrescribedPotential.GlobalProduct
507
+ import OAI.Geometry.PrescribedPotential.GlobalRellich
508
+ import OAI.Geometry.PrescribedPotential.GlobalSmooth
509
+ import OAI.Geometry.PrescribedPotential.HigherMetricOperator
510
+ import OAI.Geometry.PrescribedPotential.HigherPoisson
511
+ import OAI.Geometry.PrescribedPotential.HigherResolvent
512
+ import OAI.Geometry.PrescribedPotential.LinearizedCommutator
513
+ import OAI.Geometry.PrescribedPotential.MetricQuasilinearEquation
514
+ import OAI.Geometry.PrescribedPotential.NonlinearCoreCommutator
515
+ import OAI.Geometry.PrescribedPotential.NonlinearRemainderStrong
516
+ import OAI.Geometry.PrescribedPotential.PathCalabiBound
517
+ import OAI.Geometry.PrescribedPotential.PathCoordinateDensity
518
+ import OAI.Geometry.PrescribedPotential.PathFrameBounds
519
+ import OAI.Geometry.PrescribedPotential.PointPoisson
520
+ import OAI.Geometry.PrescribedPotential.PositiveOpenness
521
+ import OAI.Geometry.PrescribedPotential.PositivePotentialLinearization
522
+ import OAI.Geometry.PrescribedPotential.PotentialDensityDifferential
523
+ import OAI.Geometry.PrescribedPotential.PrescribedPotential
524
+ import OAI.Geometry.PrescribedPotential.QuantitativeResolvent
525
+ import OAI.Geometry.PrescribedPotential.RealMapSmooth
526
+ import OAI.Geometry.PrescribedPotential.RealPoisson
527
+ import OAI.Geometry.PrescribedPotential.RealSmoothCompactness
528
+ import OAI.Geometry.PrescribedPotential.RegularityCutoffs
529
+ import OAI.Geometry.PrescribedPotential.RegularityJets
530
+ import OAI.Geometry.PrescribedPotential.SmoothChartInverse
531
+ import OAI.Geometry.PrescribedPotential.SmoothLocalPath
532
+ import OAI.Geometry.PrescribedPotential.SmoothPathLimit
533
+ import OAI.Geometry.PrescribedPotential.SmoothSequenceCompactness
534
+ import OAI.Geometry.PrescribedPotential.SobolevDetDifferential
535
+ import OAI.Geometry.PrescribedPotential.SobolevExponential
536
+ import OAI.Geometry.PrescribedPotential.SobolevFirstGain
537
+ import OAI.Geometry.PrescribedPotential.SobolevOpenness
538
+ import OAI.Geometry.PrescribedPotential.TwoScaleRegularity
539
+ import OAI.Geometry.PrescribedPotential.UniformPathSobolev
540
+ import OAI.Geometry.PrescribedPotential.WeakDerivativeLocalization
541
+ import OAI.Geometry.PrescribedPotential.WeakPositive
542
+ import OAI.Geometry.PrescribedRicci.BoundedSmoothPoisson
543
+ import OAI.Geometry.PrescribedRicci.CalabiGradient
544
+ import OAI.Geometry.PrescribedRicci.CalabiMetricC1
545
+ import OAI.Geometry.PrescribedRicci.CalabiRough
546
+ import OAI.Geometry.PrescribedRicci.CalabiTrace
547
+ import OAI.Geometry.PrescribedRicci.CalabiTraceBound
548
+ import OAI.Geometry.PrescribedRicci.ChernBianchi
549
+ import OAI.Geometry.PrescribedRicci.ChernLuConnection
550
+ import OAI.Geometry.PrescribedRicci.ChernRough
551
+ import OAI.Geometry.PrescribedRicci.CofactorCore
552
+ import OAI.Geometry.PrescribedRicci.CofactorCoreEquation
553
+ import OAI.Geometry.PrescribedRicci.CofactorLocalization
554
+ import OAI.Geometry.PrescribedRicci.CompactPathBounds
555
+ import OAI.Geometry.PrescribedRicci.CompactPathRicci
556
+ import OAI.Geometry.PrescribedRicci.FixedCofactorBootstrap
557
+ import OAI.Geometry.PrescribedRicci.FixedCofactorStep
558
+ import OAI.Geometry.PrescribedRicci.GlobalSmoothCompact
559
+ import OAI.Geometry.PrescribedRicci.IntegratedKahlerEnergy
560
+ import OAI.Geometry.PrescribedRicci.JetProductL2
561
+ import OAI.Geometry.PrescribedRicci.KahlerCauchySchwarz
562
+ import OAI.Geometry.PrescribedRicci.KahlerChartGradient
563
+ import OAI.Geometry.PrescribedRicci.KahlerChartLp
564
+ import OAI.Geometry.PrescribedRicci.KahlerEnergyProduct
565
+ import OAI.Geometry.PrescribedRicci.KahlerIntegralPos
566
+ import OAI.Geometry.PrescribedRicci.KahlerL2Comparison
567
+ import OAI.Geometry.PrescribedRicci.KahlerPoincare
568
+ import OAI.Geometry.PrescribedRicci.KahlerPoissonL2
569
+ import OAI.Geometry.PrescribedRicci.KahlerSobolev
570
+ import OAI.Geometry.PrescribedRicci.KahlerVolumeMeasure
571
+ import OAI.Geometry.PrescribedRicci.KahlerVolumeVariation
572
+ import OAI.Geometry.PrescribedRicci.MongeAmpereC0
573
+ import OAI.Geometry.PrescribedRicci.MongeAmpereEnergy
574
+ import OAI.Geometry.PrescribedRicci.MongeAmpereL2
575
+ import OAI.Geometry.PrescribedRicci.NormalizeVolumePath
576
+ import OAI.Geometry.PrescribedRicci.PathLocalGain
577
+ import OAI.Geometry.PrescribedRicci.PathUniformHigher
578
+ import OAI.Geometry.PrescribedRicci.PathUniformSobolevBase
579
+ import OAI.Geometry.PrescribedRicci.PositiveOpenness
580
+ import OAI.Geometry.PrescribedRicci.PositivePathLimit
581
+ import OAI.Geometry.PrescribedRicci.PrescribedRicci
582
+ import OAI.Geometry.PrescribedRicci.SmoothLocalInverse
583
+ import OAI.Geometry.PrescribedRicci.SmoothPathLimit
584
+ import OAI.Geometry.PrescribedRicci.SmoothPositivePath
585
+ import OAI.Geometry.PrescribedRicci.TameCofactorGain
586
+ import OAI.Geometry.PrescribedRicci.TraceMaximum
587
+ import OAI.Geometry.PrescribedRicci.UniformCalabi
588
+ import OAI.Geometry.PrescribedRicci.UniformChernLu
589
+ import OAI.Geometry.PrescribedRicci.UniformMetricBounds
590
+ import OAI.Geometry.PrescribedRicci.UniformPathPatches
591
+ import OAI.Geometry.PrescribedRicci.WeightedMongeAmpereEnergy
592
+ import OAI.Geometry.ProjectionBodies.Main
593
+ import OAI.Geometry.ProjectionBody.Main
594
+ import OAI.Geometry.ProjectionVolume.Main
595
+ import OAI.Geometry.QuadricBundles.Main
596
+ import OAI.Geometry.Riemannian.HarmonicCore.Main
597
+ import OAI.Geometry.RuledCovering.Main
598
+ import OAI.Geometry.SmoothYau.Main
599
+ import OAI.Geometry.SplitTangent.AllCompactLeaves
600
+ import OAI.Geometry.SplitTangent.AllProjectiveLeaves
601
+ import OAI.Geometry.SplitTangent.AnalyticFiniteRelations
602
+ import OAI.Geometry.SplitTangent.ArbitraryPlaqueLeaves
603
+ import OAI.Geometry.SplitTangent.BasicDerivativeKernel
604
+ import OAI.Geometry.SplitTangent.BoxFirstTransport
605
+ import OAI.Geometry.SplitTangent.ChartSubmersion
606
+ import OAI.Geometry.SplitTangent.CompactLeafQuotient
607
+ import OAI.Geometry.SplitTangent.CompactPositiveLeaf
608
+ import OAI.Geometry.SplitTangent.ComplementaryLeafIntersections
609
+ import OAI.Geometry.SplitTangent.DenseCompactLeaves
610
+ import OAI.Geometry.SplitTangent.DenseRationalVariation
611
+ import OAI.Geometry.SplitTangent.EmbeddedLeafCharts
612
+ import OAI.Geometry.SplitTangent.EmbeddedRationalCurve
613
+ import OAI.Geometry.SplitTangent.EmbeddedTangentLift
614
+ import OAI.Geometry.SplitTangent.EverywhereSmoothLeafQuotient
615
+ import OAI.Geometry.SplitTangent.GenericLeafProductCover
616
+ import OAI.Geometry.SplitTangent.GlobalAffineRelations
617
+ import OAI.Geometry.SplitTangent.GlobalLeafRelations
618
+ import OAI.Geometry.SplitTangent.GlobalProducts
619
+ import OAI.Geometry.SplitTangent.GlobalTopologicalProduct
620
+ import OAI.Geometry.SplitTangent.HolomorphicBasicTransport
621
+ import OAI.Geometry.SplitTangent.HolomorphicLeafBasic
622
+ import OAI.Geometry.SplitTangent.HolomorphicManifoldProduct
623
+ import OAI.Geometry.SplitTangent.IntegrabilityReduction
624
+ import OAI.Geometry.SplitTangent.IntrinsicPositiveLeaf
625
+ import OAI.Geometry.SplitTangent.LeafAffineRelations
626
+ import OAI.Geometry.SplitTangent.LeafAlgebraicDependence
627
+ import OAI.Geometry.SplitTangent.LeafClosureRelations
628
+ import OAI.Geometry.SplitTangent.LeafCompactLimits
629
+ import OAI.Geometry.SplitTangent.LeafGermIdentity
630
+ import OAI.Geometry.SplitTangent.LeafHomogeneousRelations
631
+ import OAI.Geometry.SplitTangent.LeafLimitRelations
632
+ import OAI.Geometry.SplitTangent.LeafLimitsSinglePlaque
633
+ import OAI.Geometry.SplitTangent.LeafPolynomialGrowth
634
+ import OAI.Geometry.SplitTangent.LeafProducts
635
+ import OAI.Geometry.SplitTangent.LeafTopology
636
+ import OAI.Geometry.SplitTangent.ManifoldJetAnalytic
637
+ import OAI.Geometry.SplitTangent.OpenPositiveLeaves
638
+ import OAI.Geometry.SplitTangent.PlaqueConnectedSets
639
+ import OAI.Geometry.SplitTangent.PlaqueTangentImage
640
+ import OAI.Geometry.SplitTangent.PolynomialLeafGerms
641
+ import OAI.Geometry.SplitTangent.PositiveCoverLift
642
+ import OAI.Geometry.SplitTangent.ProductCriteria
643
+ import OAI.Geometry.SplitTangent.ProjectiveHypersurfaces
644
+ import OAI.Geometry.SplitTangent.ProjectivePositiveLeaf
645
+ import OAI.Geometry.SplitTangent.ProjectiveTangentBox
646
+ import OAI.Geometry.SplitTangent.QuotientSubmersions
647
+ import OAI.Geometry.SplitTangent.RCCovariantVanishing
648
+ import OAI.Geometry.SplitTangent.RationalCoverLift
649
+ import OAI.Geometry.SplitTangent.RationalReparam
650
+ import OAI.Geometry.SplitTangent.RationalVariation
651
+ import OAI.Geometry.SplitTangent.TangentCurveLeaf
652
+ import OAI.Geometry.SplitTangent.TangentRationalChains
653
+ import OAI.Geometry.SplitTangent.TransverseDiscrete
654
+ import OAI.Geometry.SplitTangent.TransverseQuotient
655
+ import OAI.Geometry.SplitTangent.ZariskiPairOpen
656
+ import OAI.Geometry.Symplectic.MorseBounds.Main
657
+ import OAI.Geometry.TamingCompatibility.Main
658
+ import OAI.Geometry.TranslativeCovering.Main
659
+ import OAI.Geometry.TriangularCovering.Main
660
+ import OAI.Geometry.UnitDistances.Main
661
+ import OAI.Geometry.Varifold.NullComparison
662
+ import OAI.Geometry.WeakHessian.Main
663
+ import OAI.Geometry.WeakMTW.Main
664
+ import OAI.GroupTheory.ArithmeticGerms.Stabilizers
665
+ import OAI.GroupTheory.ArtinCAT0.Main
666
+ import OAI.GroupTheory.BooneHigman.Main
667
+ import OAI.GroupTheory.CyclicSeries.Length
668
+ import OAI.GroupTheory.FiniteIndex.Realization
669
+ import OAI.GroupTheory.FiniteKernel.VirtualAbelian
670
+ import OAI.GroupTheory.FiniteLattice.LabelledCollection
671
+ import OAI.GroupTheory.FiniteLattice.NormalPreimage
672
+ import OAI.GroupTheory.FiniteType.Main
673
+ import OAI.GroupTheory.Heisenberg.BarDetector
674
+ import OAI.GroupTheory.Hyperbolic.Main
675
+ import OAI.GroupTheory.Kervaire.Main
676
+ import OAI.GroupTheory.PChains.Cancellation
677
+ import OAI.GroupTheory.PeriodicGroups.Main
678
+ import OAI.GroupTheory.SimpleAmenable.Main
679
+ import OAI.GroupTheory.SimpleOvergroups.Main
680
+ import OAI.GroupTheory.Thompson.Main
681
+ import OAI.GroupTheory.UniversalGroup.Main
682
+ import OAI.InformationTheory.AmplitudeDamping.Main
683
+ import OAI.InformationTheory.BooleanNoise.Main
684
+ import OAI.InformationTheory.DimensionTen.StateKey
685
+ import OAI.InformationTheory.Entanglement.Main
686
+ import OAI.InformationTheory.PhotonNumber.Inequality
687
+ import OAI.InformationTheory.QuantumCircuit.Main
688
+ import OAI.InformationTheory.QuantumCircuit.Regularity
689
+ import OAI.InformationTheory.SecretKey.DimensionTen
690
+ import OAI.InformationTheory.SecretKey.Main
691
+ import OAI.InformationTheory.SoftChannel.Main
692
+ import OAI.LinearAlgebra.Barker.Main
693
+ import OAI.LinearAlgebra.CirculantHadamard.Main
694
+ import OAI.LinearAlgebra.CliffordAlgebra.KugaSatake
695
+ import OAI.LinearAlgebra.Descent.Rational
696
+ import OAI.LinearAlgebra.Hadamard.Main
697
+ import OAI.LinearAlgebra.MatrixFields.Main
698
+ import OAI.LinearAlgebra.MatrixMultiplication.Main
699
+ import OAI.LinearAlgebra.TensorProduct.ScalarDescent
700
+ import OAI.MathematicalPhysics.AlternatingFlow.Development
701
+ import OAI.MathematicalPhysics.Anderson.Certificates
702
+ import OAI.MathematicalPhysics.BFSS.Main
703
+ import OAI.MathematicalPhysics.Coulomb.OuterRadius
704
+ import OAI.MathematicalPhysics.CriticalMixing.Main
705
+ import OAI.MathematicalPhysics.CriticalSK.LowerExponents
706
+ import OAI.MathematicalPhysics.CriticalSK.Main
707
+ import OAI.MathematicalPhysics.Elasticity.Uniqueness
708
+ import OAI.MathematicalPhysics.HardSphere.GrandCanonical
709
+ import OAI.MathematicalPhysics.Heisenberg.Main
710
+ import OAI.MathematicalPhysics.NavierStokes.BalancedTransport.MainResult
711
+ import OAI.MathematicalPhysics.NavierStokes.Material.Main
712
+ import OAI.MathematicalPhysics.NavierStokes.ShearFlows.Main
713
+ import OAI.MathematicalPhysics.NavierStokes.VelocityDetection.Main
714
+ import OAI.MathematicalPhysics.PEPSFilters.GeometricOptimizer
715
+ import OAI.MathematicalPhysics.PEPSMove.PhysicalMove
716
+ import OAI.MathematicalPhysics.PEPSSubvolume.Main
717
+ import OAI.MathematicalPhysics.PlanarAnderson.Spectrum
718
+ import OAI.MathematicalPhysics.PrefixFlows.Main
719
+ import OAI.MathematicalPhysics.RapidForcing.Main
720
+ import OAI.MathematicalPhysics.RecorderFlows.Main
721
+ import OAI.MathematicalPhysics.SheetFlows.SheetProgram
722
+ import OAI.MathematicalPhysics.TensorNetwork.VectorColumn
723
+ import OAI.MeasureTheory.DyadicAvoidance.Main
724
+ import OAI.MeasureTheory.Falconer.Main
725
+ import OAI.MeasureTheory.FalconerCompletion.Main
726
+ import OAI.MeasureTheory.SelfSimilar.Main
727
+ import OAI.MeasureTheory.SelfSimilar.DimensionCorollaries
728
+ import OAI.ModelTheory.AbstractElementary.ModelExistence
729
+ import OAI.ModelTheory.Categoricity.Main
730
+ import OAI.ModelTheory.Choiceless.Separation
731
+ import OAI.NumberTheory.Catalan.Main
732
+ import OAI.NumberTheory.CubicGauss.Main
733
+ import OAI.NumberTheory.CubicGram.Main
734
+ import OAI.NumberTheory.DirichletL.Hecke.Nonvanishing
735
+ import OAI.NumberTheory.DirichletL.Nonvanishing
736
+ import OAI.NumberTheory.DuffinSchaeffer.Reductions
737
+ import OAI.NumberTheory.EgyptianFractions.All
738
+ import OAI.NumberTheory.GaussianMoat.Main
739
+ import OAI.NumberTheory.Jacobsthal.Main
740
+ import OAI.NumberTheory.JointDickman.PaperMain
741
+ import OAI.NumberTheory.NumberField.UnitRadicals
742
+ import OAI.NumberTheory.OrdinaryCorrelations.AbsoluteDefect.Main
743
+ import OAI.NumberTheory.OrdinaryCorrelations.Elliott.Main
744
+ import OAI.NumberTheory.OrdinaryCorrelations.HighTrace.Main
745
+ import OAI.NumberTheory.Ostmann.Main
746
+ import OAI.NumberTheory.PiExponent.Main
747
+ import OAI.NumberTheory.PowerFree.Main
748
+ import OAI.NumberTheory.PrimeGaps.RatioCorollary
749
+ import OAI.NumberTheory.PrimePackets.Main
750
+ import OAI.NumberTheory.QuadraticForms.ComponentLengths
751
+ import OAI.NumberTheory.ShortEgyptian.Main
752
+ import OAI.NumberTheory.SiegelZeros.Main
753
+ import OAI.NumberTheory.SingleFold.Main
754
+ import OAI.NumberTheory.TotientAsymptotic.Main
755
+ import OAI.NumberTheory.TotientFibers.FiniteFiber
756
+ import OAI.Optimization.Tropical.TruffetCounterexample
757
+ import OAI.Probability.Ballisticity.Main
758
+ import OAI.Probability.Ballisticity.VelocityHemisphere
759
+ import OAI.Probability.BenjaminiSchramm
760
+ import OAI.Probability.BinarySweep.Main
761
+ import OAI.Probability.ClassicalON.Main
762
+ import OAI.Probability.Contingency.LocalRepair
763
+ import OAI.Probability.Contingency.PreparedResidual
764
+ import OAI.Probability.ContinuumTransition.Main
765
+ import OAI.Probability.CoordinateSweeps.Main
766
+ import OAI.Probability.CriticalPercolation.Main
767
+ import OAI.Probability.CriticalZ3.Main
768
+ import OAI.Probability.CubeShuffle.WeightedMoments
769
+ import OAI.Probability.DilutedSpin.Main
770
+ import OAI.Probability.DirectionalWalk.Main
771
+ import OAI.Probability.EntangledGames.Main
772
+ import OAI.Probability.FKPressure.Main
773
+ import OAI.Probability.FirstPassage.Main
774
+ import OAI.Probability.FKMaps.Convergence
775
+ import OAI.Probability.FreeIsing.Main
776
+ import OAI.Probability.GaussianInformation.Main
777
+ import OAI.Probability.GaussianPropeller.Main
778
+ import OAI.Probability.GaussianRegression.Main
779
+ import OAI.Probability.GaussianReplacement.Streaming
780
+ import OAI.Probability.Honeycomb.FreeEnergy
781
+ import OAI.Probability.Honeycomb.TriangleVisits
782
+ import OAI.Probability.Ising.Main
783
+ import OAI.Probability.IsingPerceptron.FullReplicaIBP
784
+ import OAI.Probability.IsingPerceptron.VariationalFiniteness
785
+ import OAI.Probability.JammingConcavity.DeletionUniformRowEstimates
786
+ import OAI.Probability.JammingConcavity.RowFiniteDiagonalRowGeneralInterpolation
787
+ import OAI.Probability.JammingConcavity.RowQuadraticTerminalLimit
788
+ import OAI.Probability.JammingConcavity.VarianceTensorization
789
+ import OAI.Probability.LatticeSurface.Brownian.BrownianClockFacet
790
+ import OAI.Probability.LatticeSurface.Brownian.BrownianClockSupport
791
+ import OAI.Probability.LatticeSurface.Brownian.BrownianPath
792
+ import OAI.Probability.LatticeSurface.Brownian.BrownianPathIdentities
793
+ import OAI.Probability.LatticeSurface.Coercivity.HoleWeighted
794
+ import OAI.Probability.LatticeSurface.Convexity.ClusterDynamicsDefs
795
+ import OAI.Probability.LatticeSurface.Convexity.FiniteLevelBarrier
796
+ import OAI.Probability.LatticeSurface.Convexity.Metropolis
797
+ import OAI.Probability.LatticeSurface.Convexity.MetropolisSupport
798
+ import OAI.Probability.LatticeSurface.Convexity.ProductSums
799
+ import OAI.Probability.LatticeSurface.Convexity.SupportUnit
800
+ import OAI.Probability.LatticeSurface.Convexity.TailNumerics
801
+ import OAI.Probability.LatticeSurface.Convexity.TransportResampling
802
+ import OAI.Probability.LatticeSurface.Dynamics.CompactCoupling
803
+ import OAI.Probability.LatticeSurface.Dynamics.LatticeShift
804
+ import OAI.Probability.LatticeSurface.Dynamics.ProjectionComparison
805
+ import OAI.Probability.LatticeSurface.Dynamics.ProjectionGlobal
806
+ import OAI.Probability.LatticeSurface.Dynamics.ProjectionLimit
807
+ import OAI.Probability.LatticeSurface.Dynamics.TiltApplication
808
+ import OAI.Probability.LatticeSurface.Dynamics.TiltSupport
809
+ import OAI.Probability.LatticeSurface.Dynamics.WeightedInitial
810
+ import OAI.Probability.LatticeSurface.Geometry.ContactVolume
811
+ import OAI.Probability.LatticeSurface.Moments.Averages
812
+ import OAI.Probability.Localization.Main
813
+ import OAI.Probability.LogConcave.Main
814
+ import OAI.Probability.MatroidProphet
815
+ import OAI.Probability.MatroidSecretary.Main
816
+ import OAI.Probability.MemoryPrecision.Main
817
+ import OAI.Probability.ParisiFinite.ParisiCanonicalTransport
818
+ import OAI.Probability.ParisiFinite.ParisiEntropyDecomposition
819
+ import OAI.Probability.ParisiFinite.RealShiftNormSqLe
820
+ import OAI.Probability.ParisiFinite.SpinFlip
821
+ import OAI.Probability.ParisiFinite.WeightedGradientField
822
+ import OAI.Probability.Perceptron.Main
823
+ import OAI.Probability.PosteriorReplicas.Main
824
+ import OAI.Probability.ProbabilityMeasure.ArctanCenter
825
+ import OAI.Probability.ProjectionMoments.Main
826
+ import OAI.Probability.RadialTransition.DensityInterval
827
+ import OAI.Probability.RadialTransition.Main
828
+ import OAI.Probability.RandomSAT.Main
829
+ import OAI.Probability.Renewal.Main
830
+ import OAI.Probability.SATComputability.Main
831
+ import OAI.Probability.SATVariance.Main
832
+ import OAI.Probability.SKBarriers.Main
833
+ import OAI.Probability.SKCutoff.Denominator
834
+ import OAI.Probability.SKFluctuations.ComparisonMinimumRealOverlapConclusion
835
+ import OAI.Probability.SKGap.Main
836
+ import OAI.Probability.SKSupport.Main
837
+ import OAI.Probability.SKValue.Main
838
+ import OAI.Probability.SLE.MainReduction
839
+ import OAI.Probability.SLE.MomentGauge
840
+ import OAI.Probability.SLE.SausageCharge
841
+ import OAI.Probability.SLEGauge.Main
842
+ import OAI.Probability.SLELocalization.CircleMeans
843
+ import OAI.Probability.SLELocalization.DriverStability
844
+ import OAI.Probability.SLELocalization.FilledObstacle
845
+ import OAI.Probability.SLELocalization.LoewnerCocycle
846
+ import OAI.Probability.SLELocalization.MappedExit
847
+ import OAI.Probability.SLELocalization.MeshSlab
848
+ import OAI.Probability.SLELocalization.PastObstacle
849
+ import OAI.Probability.SLELocalization.RetainedFirstMoment
850
+ import OAI.Probability.SLELocalization.SlitMaps
851
+ import OAI.Probability.SLELocalization.SpatialLimit
852
+ import OAI.Probability.SLELocalization.StrongRestart
853
+ import OAI.Probability.SLELocalization.TraceAvoidance
854
+ import OAI.Probability.SLELocalization.TruncatedEnergy
855
+ import OAI.Probability.SignedSweeps.Main
856
+ import OAI.Probability.SpanningForest.Main
857
+ import OAI.Probability.SphericalField.Main
858
+ import OAI.Probability.SphericalPerceptron.PressureComparison
859
+ import OAI.Probability.StrongRayleigh
860
+ import OAI.Probability.Subsphere.Main
861
+ import OAI.Probability.SwitchChain
862
+ import OAI.Probability.ThorpCompatibility.Main
863
+ import OAI.Probability.ThorpResults.FullDevelopment
864
+ import OAI.Probability.ThorpRouting.Main
865
+ import OAI.Probability.ThorpRouting.RegularTrace
866
+ import OAI.Probability.ThorpShuffle.FirstFourier
867
+ import OAI.Probability.ThorpShuffle.FirstMain
868
+ import OAI.Probability.ThorpShuffle.FixedLists.Main
869
+ import OAI.Probability.ThorpShuffle.Main
870
+ import OAI.Probability.ThreeState.Main
871
+ import OAI.Probability.ThreeStateClauses.Main
872
+ import OAI.Probability.TraceReconstruction
873
+ import OAI.Probability.UnimodularPercolation.CayleyMain
874
+ import OAI.Probability.UnimodularPercolation.Main
875
+ import OAI.Probability.UnimodularPercolation.UnimodularMain
876
+ import OAI.Probability.Voronoi.CardyFormula
877
+ import OAI.RepresentationTheory.AlperinWeights.Brauer
878
+ import OAI.RepresentationTheory.Block.Defect
879
+ import OAI.RepresentationTheory.FoulkesHowe
880
+ import OAI.RepresentationTheory.FoulkesSixth.Main
881
+ import OAI.RepresentationTheory.GraphModels.NormalActions
882
+ import OAI.RepresentationTheory.KazhdanLusztig.Invariance
883
+ import OAI.RepresentationTheory.PartialPermutation.Main
884
+ import OAI.RepresentationTheory.ProjectiveInduction.CosetTransport
885
+ import OAI.RepresentationTheory.RestrictedTilting.Main
886
+ import OAI.RepresentationTheory.RowColumn.Occupied
887
+ import OAI.RepresentationTheory.Saxl.Main
888
+ import OAI.RepresentationTheory.SpinAngle.TypeAngle
889
+ import OAI.RepresentationTheory.TensorSquares.Main
890
+ import OAI.RepresentationTheory.Torus.ConvexWeights
891
+ import OAI.RepresentationTheory.VertexAlgebra.Main
892
+ import OAI.RingTheory.BassTrace.Main
893
+ import OAI.RingTheory.BassTrace.TorsionFree
894
+ import OAI.RingTheory.DirectFiniteness.FinitelyPresented
895
+ import OAI.RingTheory.DirectFiniteness.Main
896
+ import OAI.RingTheory.DivisionRing.FiniteDescent
897
+ import OAI.RingTheory.FormalGroup.Main
898
+ import OAI.RingTheory.GroupAction.TraceOne
899
+ import OAI.RingTheory.Kurosh.Main
900
+ import OAI.RingTheory.Multiplicity.Main
901
+ import OAI.RingTheory.Tachikawa.Counterexample
902
+ import OAI.SetTheory.PartitionConsistency.Main
903
+ import OAI.SetTheory.PartitionPrinciple.Main
904
+ import OAI.Topology.ArtinGroups.Main
905
+ import OAI.Topology.ArtinGroups.ParabolicIntersections.Main
906
+ import OAI.Topology.EilenbergGanea.Main
907
+ import OAI.Topology.TorusCompression.Boundary
908
+ import OAI.Topology.CoarseAssembly
909
+ import OAI.RepresentationTheory.UniversalSquare.Main
910
+ import OAI.Probability.SKRatio.Main
911
+ import OAI.Geometry.Relativity.CKS.Main
912
+ import OAI.Geometry.SurfaceImmersion.All
913
+
914
+ import OAI.GroupTheory.PolycyclicRecognition
lean/OAI/Topology/CoarseAssembly.lean CHANGED
@@ -1,190 +1,190 @@
1
- import OAI.Topology.CoarseAssembly.FiberedPersistence
2
- import OAI.Topology.CoarseAssembly.HomotopyFilling
3
- import OAI.Topology.CoarseAssembly.LatticeHat
4
- import OAI.Topology.CoarseAssembly.FilledDisc
5
- import OAI.Topology.CoarseAssembly.FilledEdges
6
- import OAI.Topology.CoarseAssembly.FilledWalks
7
- import OAI.Topology.CoarseAssembly.CompactFamilyMap
8
- import OAI.Topology.CoarseAssembly.FamilyFilling
9
- import OAI.Topology.CoarseAssembly.RipsProperEmbedding
10
- import OAI.Topology.CoarseAssembly.RoeInclusion
11
- import OAI.Topology.CoarseAssembly.BoundaryGeometry
12
- import OAI.Topology.CoarseAssembly.BoundaryWalks
13
- import OAI.Topology.CoarseAssembly.BoundaryComponents
14
- import OAI.Topology.CoarseAssembly.HexagonSides
15
- import OAI.Topology.CoarseAssembly.RipsMapCalculus
16
- import OAI.Topology.CoarseAssembly.RipsReindex
17
- import OAI.Topology.CoarseAssembly.ConcretePersistence
18
- import OAI.Topology.CoarseAssembly.BoundaryLoopMaps
19
- import OAI.Topology.CoarseAssembly.BoundaryAssemblyMaps
20
- import OAI.Topology.CoarseAssembly.BoundaryConclusion
21
- import OAI.Topology.CoarseAssembly.PublishedInputReduction
22
- import OAI.Topology.CoarseAssembly.CycleCompactPerturbation
23
- import OAI.Topology.CoarseAssembly.UnitalCycleNormalization
24
- import OAI.Topology.CoarseAssembly.FiniteCycle
25
- import OAI.Topology.CoarseAssembly.FredholmSquare
26
- import OAI.Topology.CoarseAssembly.UnitalCycleInvertible
27
- import OAI.Topology.CoarseAssembly.CompactFunctionalCalculus
28
- import OAI.Topology.CoarseAssembly.RipsEmbedding
29
- import OAI.Topology.CoarseAssembly.ClopenRestriction
30
- import OAI.Topology.CoarseAssembly.ClopenNaturality
31
- import OAI.Topology.CoarseAssembly.CountableAdditivity
32
- import OAI.Topology.CoarseAssembly.SeparatedRips
33
- import OAI.Topology.CoarseAssembly.RipsCompactSupport
34
- import OAI.Topology.CoarseAssembly.RipsFamilyMap
35
- import OAI.Topology.CoarseAssembly.RipsFamilyRestriction
36
- import OAI.Topology.CoarseAssembly.RipsPathCoarsening
37
- import OAI.Topology.CoarseAssembly.CocycleCircleMap
38
- import OAI.Topology.CoarseAssembly.RipsPaths
39
- import OAI.Topology.CoarseAssembly.CocyclePathLifting
40
- import OAI.Topology.CoarseAssembly.FiniteRips
41
- import OAI.Topology.CoarseAssembly.RipsWindingTest
42
- import OAI.Topology.CoarseAssembly.LoopCircle
43
- import OAI.Topology.CoarseAssembly.CirclePairing
44
- import OAI.Topology.CoarseAssembly.FiniteWindingIndex
45
- import OAI.Topology.CoarseAssembly.InclusionModule
46
- import OAI.Topology.CoarseAssembly.BoundaryEmbedding
47
- import OAI.Topology.CoarseAssembly.SeparatedUnion
48
- import OAI.Topology.CoarseAssembly.GraphMetric
49
- import OAI.Topology.CoarseAssembly.SeparatedGeometry
50
- import OAI.Topology.CoarseAssembly.ConcreteSpaces
51
- import OAI.Topology.CoarseAssembly.ConcreteTransferMaps
52
- import OAI.Topology.CoarseAssembly.ConcreteTransfer
53
- import OAI.Topology.CoarseAssembly.Averaging
54
- import OAI.Topology.CoarseAssembly.ProjectionBlocks
55
- import OAI.Topology.CoarseAssembly.SpatialAveraging
56
- import OAI.Topology.CoarseAssembly.AveragingPropagation
57
- import OAI.Topology.CoarseAssembly.KazhdanInput
58
- import OAI.Topology.CoarseAssembly.TensorFibers
59
- import OAI.Topology.CoarseAssembly.TransferCriterion
60
- import OAI.Topology.CoarseAssembly.FiniteFiberMaps
61
- import OAI.Topology.CoarseAssembly.CongruenceSurjective
62
- import OAI.Topology.CoarseAssembly.CongruenceEdgeOperators
63
- import OAI.Topology.CoarseAssembly.GraphFiberOperators
64
- import OAI.Topology.CoarseAssembly.PathFiberOperators
65
- import OAI.Topology.CoarseAssembly.DiscConnected
66
- import OAI.Topology.CoarseAssembly.FiberConnected
67
- import OAI.Topology.CoarseAssembly.FiberDegree
68
- import OAI.Topology.CoarseAssembly.AnalyticKHomology
69
- import OAI.Topology.CoarseAssembly.Assembly
70
- import OAI.Topology.CoarseAssembly.BoundaryIndex
71
- import OAI.Topology.CoarseAssembly.BlockOperators
72
- import OAI.Topology.CoarseAssembly.BoundedGeometry
73
- import OAI.Topology.CoarseAssembly.ChosenHolonomy
74
- import OAI.Topology.CoarseAssembly.CongruenceQuotients
75
- import OAI.Topology.CoarseAssembly.CongruenceMaps
76
- import OAI.Topology.CoarseAssembly.CongruenceFibers
77
- import OAI.Topology.CoarseAssembly.Conjugation
78
- import OAI.Topology.CoarseAssembly.ControlledMatrices
79
- import OAI.Topology.CoarseAssembly.FiniteWords
80
- import OAI.Topology.CoarseAssembly.FiberedGraph
81
- import OAI.Topology.CoarseAssembly.FiberConstants
82
- import OAI.Topology.CoarseAssembly.FiberEmbedding
83
- import OAI.Topology.CoarseAssembly.FredholmModule
84
- import OAI.Topology.CoarseAssembly.Holonomy
85
- import OAI.Topology.CoarseAssembly.HilbertSum
86
- import OAI.Topology.CoarseAssembly.Lattice
87
- import OAI.Topology.CoarseAssembly.LatticeCharge
88
- import OAI.Topology.CoarseAssembly.LocallyFinite
89
- import OAI.Topology.CoarseAssembly.NonUnitalK1
90
- import OAI.Topology.CoarseAssembly.Persistence
91
- import OAI.Topology.CoarseAssembly.RipsRealization
92
- import OAI.Topology.CoarseAssembly.Roe
93
- import OAI.Topology.CoarseAssembly.RoeCalculus
94
- import OAI.Topology.CoarseAssembly.RoeTransfer
95
- import OAI.Topology.CoarseAssembly.RoeRows
96
- import OAI.Topology.CoarseAssembly.Sandwich
97
- import OAI.Topology.CoarseAssembly.ShortLoops
98
- import OAI.Topology.CoarseAssembly.SpatialBlocks
99
- import OAI.Topology.CoarseAssembly.TopologicalK1
100
- import OAI.Topology.CoarseAssembly.TraceObstruction
101
- import OAI.Topology.CoarseAssembly.TraceSeparation
102
- import OAI.Topology.CoarseAssembly.TransferLift
103
- import OAI.Topology.CoarseAssembly.RealNormalization
104
- import OAI.Topology.CoarseAssembly.InvolutiveNormalization
105
- import OAI.Topology.CoarseAssembly.ScalarCycleNormalization
106
- import OAI.Topology.CoarseAssembly.LocalCompactPerturbation
107
- import OAI.Topology.CoarseAssembly.ScalarCutDown
108
- import OAI.Topology.CoarseAssembly.SupportedNormalization
109
- import OAI.Topology.CoarseAssembly.PointCoefficient
110
- import OAI.Topology.CoarseAssembly.FredholmParametrix
111
- import OAI.Topology.CoarseAssembly.ToeplitzCompression
112
- import OAI.Topology.CoarseAssembly.CycleIndex
113
- import OAI.Topology.CoarseAssembly.RepresentedCutDown
114
- import OAI.Topology.CoarseAssembly.RepresentedNormalization
115
- import OAI.Topology.CoarseAssembly.RepresentedIndex
116
- import OAI.Topology.CoarseAssembly.CompactIndex
117
- import OAI.Topology.CoarseAssembly.OperatorNormalization
118
- import OAI.Topology.CoarseAssembly.EssentialToeplitz
119
- import OAI.Topology.CoarseAssembly.ExplicitCutDown
120
- import OAI.Topology.CoarseAssembly.RawCycleIndex
121
- import OAI.Topology.CoarseAssembly.DegenerateCutDown
122
- import OAI.Topology.CoarseAssembly.UnitaryIndex
123
- import OAI.Topology.CoarseAssembly.CompactIndexPairing
124
- import OAI.Topology.CoarseAssembly.CircleInputReduction
125
- import OAI.Topology.CoarseAssembly.CircleCoefficient
126
- import OAI.Topology.CoarseAssembly.ExplicitCircleFamily
127
- import OAI.Topology.CoarseAssembly.ExplicitBoundaryConclusion
128
- import OAI.Topology.CoarseAssembly.StructureQuotient
129
- import OAI.Topology.CoarseAssembly.ControlledBoundaryHomotopy
130
- import OAI.Topology.CoarseAssembly.CayleyNaturality
131
- import OAI.Topology.CoarseAssembly.RipsPartition
132
- import OAI.Topology.CoarseAssembly.PartitionIsometry
133
- import OAI.Topology.CoarseAssembly.RipsBoundaryRepresentative
134
- import OAI.Topology.CoarseAssembly.AmpleRipsFamily
135
- import OAI.Topology.CoarseAssembly.MultiplierBoundaryHomotopy
136
- import OAI.Topology.CoarseAssembly.RelativeNaturality
137
- import OAI.Topology.CoarseAssembly.SeparatedFamilyHomotopy
138
- import OAI.Topology.CoarseAssembly.SeparatedFamilyPerturbation
139
- import OAI.Topology.CoarseAssembly.SpatialBoundaryNaturality
140
- import OAI.Topology.CoarseAssembly.CoefficientRoeHom
141
- import OAI.Topology.CoarseAssembly.PartitionInclusion
142
- import OAI.Topology.CoarseAssembly.CoefficientInclusion
143
- import OAI.Topology.CoarseAssembly.ExplicitBoundaryRepresentative
144
- import OAI.Topology.CoarseAssembly.NormalizedRipsFamily
145
- import OAI.Topology.CoarseAssembly.RipsBoundaryDegeneracy
146
- import OAI.Topology.CoarseAssembly.RipsFamilyCompactPerturbation
147
- import OAI.Topology.CoarseAssembly.RipsScaleCompatibility
148
- import OAI.Topology.CoarseAssembly.MultiplierUnitaryHomotopy
149
- import OAI.Topology.CoarseAssembly.RelativeTwoDiagonal
150
- import OAI.Topology.CoarseAssembly.IsometryDilation
151
-
152
- import OAI.Topology.CoarseAssembly.RelativePartialIsometry
153
- import OAI.Topology.CoarseAssembly.MultiplierIsometryInvariance
154
-
155
- import OAI.Topology.CoarseAssembly.RipsEmbeddingIndependence
156
- import OAI.Topology.CoarseAssembly.PointwiseEmbeddingTransition
157
-
158
- import OAI.Topology.CoarseAssembly.RipsUnitaryFamily
159
- import OAI.Topology.CoarseAssembly.OrthogonalSumBoundary
160
-
161
- import OAI.Topology.CoarseAssembly.RipsDirectSumBoundary
162
-
163
- import OAI.Topology.CoarseAssembly.SeparatedFamilyNearby
164
-
165
- import OAI.Topology.CoarseAssembly.ControlledCoarseAssembly
166
- import OAI.Topology.CoarseAssembly.RipsFiniteHomotopy
167
- import OAI.Topology.CoarseAssembly.RipsFixedRepresentationHomotopy
168
-
169
- import OAI.Topology.CoarseAssembly.RipsUnrestrictedHomotopy
170
- import OAI.Topology.CoarseAssembly.RegularizedRipsFamily
171
- import OAI.Topology.CoarseAssembly.BoundedTransformNaturality
172
- import OAI.Topology.CoarseAssembly.SeparatedRipsIndex
173
- import OAI.Topology.CoarseAssembly.RipsFiniteTail
174
- import OAI.Topology.CoarseAssembly.RegularizedCoarsening
175
- import OAI.Topology.CoarseAssembly.LateRipsCoarsening
176
- import OAI.Topology.CoarseAssembly.SeparatedCoarseAssembly
177
- import OAI.Topology.CoarseAssembly.SeparatedIndexNaturality
178
- import OAI.Topology.CoarseAssembly.IndexFamilyTransport
179
- import OAI.Topology.CoarseAssembly.ConstructedConclusion
180
- import OAI.Topology.CoarseAssembly.AveragingEnergy
181
- import OAI.Topology.CoarseAssembly.RegularConstants
182
- import OAI.Topology.CoarseAssembly.UnconditionalConclusion
183
-
184
- /-!
185
- # A bounded-geometry counterexample to coarse Novikov
186
-
187
- The concrete graph union has an infinite-order assembly-kernel class,
188
- and its constructed analytic assembly map fails to be injective both
189
- integrally and rationally.
190
- -/
 
1
+ import OAI.Topology.CoarseAssembly.FiberedPersistence
2
+ import OAI.Topology.CoarseAssembly.HomotopyFilling
3
+ import OAI.Topology.CoarseAssembly.LatticeHat
4
+ import OAI.Topology.CoarseAssembly.FilledDisc
5
+ import OAI.Topology.CoarseAssembly.FilledEdges
6
+ import OAI.Topology.CoarseAssembly.FilledWalks
7
+ import OAI.Topology.CoarseAssembly.CompactFamilyMap
8
+ import OAI.Topology.CoarseAssembly.FamilyFilling
9
+ import OAI.Topology.CoarseAssembly.RipsProperEmbedding
10
+ import OAI.Topology.CoarseAssembly.RoeInclusion
11
+ import OAI.Topology.CoarseAssembly.BoundaryGeometry
12
+ import OAI.Topology.CoarseAssembly.BoundaryWalks
13
+ import OAI.Topology.CoarseAssembly.BoundaryComponents
14
+ import OAI.Topology.CoarseAssembly.HexagonSides
15
+ import OAI.Topology.CoarseAssembly.RipsMapCalculus
16
+ import OAI.Topology.CoarseAssembly.RipsReindex
17
+ import OAI.Topology.CoarseAssembly.ConcretePersistence
18
+ import OAI.Topology.CoarseAssembly.BoundaryLoopMaps
19
+ import OAI.Topology.CoarseAssembly.BoundaryAssemblyMaps
20
+ import OAI.Topology.CoarseAssembly.BoundaryConclusion
21
+ import OAI.Topology.CoarseAssembly.PublishedInputReduction
22
+ import OAI.Topology.CoarseAssembly.CycleCompactPerturbation
23
+ import OAI.Topology.CoarseAssembly.UnitalCycleNormalization
24
+ import OAI.Topology.CoarseAssembly.FiniteCycle
25
+ import OAI.Topology.CoarseAssembly.FredholmSquare
26
+ import OAI.Topology.CoarseAssembly.UnitalCycleInvertible
27
+ import OAI.Topology.CoarseAssembly.CompactFunctionalCalculus
28
+ import OAI.Topology.CoarseAssembly.RipsEmbedding
29
+ import OAI.Topology.CoarseAssembly.ClopenRestriction
30
+ import OAI.Topology.CoarseAssembly.ClopenNaturality
31
+ import OAI.Topology.CoarseAssembly.CountableAdditivity
32
+ import OAI.Topology.CoarseAssembly.SeparatedRips
33
+ import OAI.Topology.CoarseAssembly.RipsCompactSupport
34
+ import OAI.Topology.CoarseAssembly.RipsFamilyMap
35
+ import OAI.Topology.CoarseAssembly.RipsFamilyRestriction
36
+ import OAI.Topology.CoarseAssembly.RipsPathCoarsening
37
+ import OAI.Topology.CoarseAssembly.CocycleCircleMap
38
+ import OAI.Topology.CoarseAssembly.RipsPaths
39
+ import OAI.Topology.CoarseAssembly.CocyclePathLifting
40
+ import OAI.Topology.CoarseAssembly.FiniteRips
41
+ import OAI.Topology.CoarseAssembly.RipsWindingTest
42
+ import OAI.Topology.CoarseAssembly.LoopCircle
43
+ import OAI.Topology.CoarseAssembly.CirclePairing
44
+ import OAI.Topology.CoarseAssembly.FiniteWindingIndex
45
+ import OAI.Topology.CoarseAssembly.InclusionModule
46
+ import OAI.Topology.CoarseAssembly.BoundaryEmbedding
47
+ import OAI.Topology.CoarseAssembly.SeparatedUnion
48
+ import OAI.Topology.CoarseAssembly.GraphMetric
49
+ import OAI.Topology.CoarseAssembly.SeparatedGeometry
50
+ import OAI.Topology.CoarseAssembly.ConcreteSpaces
51
+ import OAI.Topology.CoarseAssembly.ConcreteTransferMaps
52
+ import OAI.Topology.CoarseAssembly.ConcreteTransfer
53
+ import OAI.Topology.CoarseAssembly.Averaging
54
+ import OAI.Topology.CoarseAssembly.ProjectionBlocks
55
+ import OAI.Topology.CoarseAssembly.SpatialAveraging
56
+ import OAI.Topology.CoarseAssembly.AveragingPropagation
57
+ import OAI.Topology.CoarseAssembly.KazhdanInput
58
+ import OAI.Topology.CoarseAssembly.TensorFibers
59
+ import OAI.Topology.CoarseAssembly.TransferCriterion
60
+ import OAI.Topology.CoarseAssembly.FiniteFiberMaps
61
+ import OAI.Topology.CoarseAssembly.CongruenceSurjective
62
+ import OAI.Topology.CoarseAssembly.CongruenceEdgeOperators
63
+ import OAI.Topology.CoarseAssembly.GraphFiberOperators
64
+ import OAI.Topology.CoarseAssembly.PathFiberOperators
65
+ import OAI.Topology.CoarseAssembly.DiscConnected
66
+ import OAI.Topology.CoarseAssembly.FiberConnected
67
+ import OAI.Topology.CoarseAssembly.FiberDegree
68
+ import OAI.Topology.CoarseAssembly.AnalyticKHomology
69
+ import OAI.Topology.CoarseAssembly.Assembly
70
+ import OAI.Topology.CoarseAssembly.BoundaryIndex
71
+ import OAI.Topology.CoarseAssembly.BlockOperators
72
+ import OAI.Topology.CoarseAssembly.BoundedGeometry
73
+ import OAI.Topology.CoarseAssembly.ChosenHolonomy
74
+ import OAI.Topology.CoarseAssembly.CongruenceQuotients
75
+ import OAI.Topology.CoarseAssembly.CongruenceMaps
76
+ import OAI.Topology.CoarseAssembly.CongruenceFibers
77
+ import OAI.Topology.CoarseAssembly.Conjugation
78
+ import OAI.Topology.CoarseAssembly.ControlledMatrices
79
+ import OAI.Topology.CoarseAssembly.FiniteWords
80
+ import OAI.Topology.CoarseAssembly.FiberedGraph
81
+ import OAI.Topology.CoarseAssembly.FiberConstants
82
+ import OAI.Topology.CoarseAssembly.FiberEmbedding
83
+ import OAI.Topology.CoarseAssembly.FredholmModule
84
+ import OAI.Topology.CoarseAssembly.Holonomy
85
+ import OAI.Topology.CoarseAssembly.HilbertSum
86
+ import OAI.Topology.CoarseAssembly.Lattice
87
+ import OAI.Topology.CoarseAssembly.LatticeCharge
88
+ import OAI.Topology.CoarseAssembly.LocallyFinite
89
+ import OAI.Topology.CoarseAssembly.NonUnitalK1
90
+ import OAI.Topology.CoarseAssembly.Persistence
91
+ import OAI.Topology.CoarseAssembly.RipsRealization
92
+ import OAI.Topology.CoarseAssembly.Roe
93
+ import OAI.Topology.CoarseAssembly.RoeCalculus
94
+ import OAI.Topology.CoarseAssembly.RoeTransfer
95
+ import OAI.Topology.CoarseAssembly.RoeRows
96
+ import OAI.Topology.CoarseAssembly.Sandwich
97
+ import OAI.Topology.CoarseAssembly.ShortLoops
98
+ import OAI.Topology.CoarseAssembly.SpatialBlocks
99
+ import OAI.Topology.CoarseAssembly.TopologicalK1
100
+ import OAI.Topology.CoarseAssembly.TraceObstruction
101
+ import OAI.Topology.CoarseAssembly.TraceSeparation
102
+ import OAI.Topology.CoarseAssembly.TransferLift
103
+ import OAI.Topology.CoarseAssembly.RealNormalization
104
+ import OAI.Topology.CoarseAssembly.InvolutiveNormalization
105
+ import OAI.Topology.CoarseAssembly.ScalarCycleNormalization
106
+ import OAI.Topology.CoarseAssembly.LocalCompactPerturbation
107
+ import OAI.Topology.CoarseAssembly.ScalarCutDown
108
+ import OAI.Topology.CoarseAssembly.SupportedNormalization
109
+ import OAI.Topology.CoarseAssembly.PointCoefficient
110
+ import OAI.Topology.CoarseAssembly.FredholmParametrix
111
+ import OAI.Topology.CoarseAssembly.ToeplitzCompression
112
+ import OAI.Topology.CoarseAssembly.CycleIndex
113
+ import OAI.Topology.CoarseAssembly.RepresentedCutDown
114
+ import OAI.Topology.CoarseAssembly.RepresentedNormalization
115
+ import OAI.Topology.CoarseAssembly.RepresentedIndex
116
+ import OAI.Topology.CoarseAssembly.CompactIndex
117
+ import OAI.Topology.CoarseAssembly.OperatorNormalization
118
+ import OAI.Topology.CoarseAssembly.EssentialToeplitz
119
+ import OAI.Topology.CoarseAssembly.ExplicitCutDown
120
+ import OAI.Topology.CoarseAssembly.RawCycleIndex
121
+ import OAI.Topology.CoarseAssembly.DegenerateCutDown
122
+ import OAI.Topology.CoarseAssembly.UnitaryIndex
123
+ import OAI.Topology.CoarseAssembly.CompactIndexPairing
124
+ import OAI.Topology.CoarseAssembly.CircleInputReduction
125
+ import OAI.Topology.CoarseAssembly.CircleCoefficient
126
+ import OAI.Topology.CoarseAssembly.ExplicitCircleFamily
127
+ import OAI.Topology.CoarseAssembly.ExplicitBoundaryConclusion
128
+ import OAI.Topology.CoarseAssembly.StructureQuotient
129
+ import OAI.Topology.CoarseAssembly.ControlledBoundaryHomotopy
130
+ import OAI.Topology.CoarseAssembly.CayleyNaturality
131
+ import OAI.Topology.CoarseAssembly.RipsPartition
132
+ import OAI.Topology.CoarseAssembly.PartitionIsometry
133
+ import OAI.Topology.CoarseAssembly.RipsBoundaryRepresentative
134
+ import OAI.Topology.CoarseAssembly.AmpleRipsFamily
135
+ import OAI.Topology.CoarseAssembly.MultiplierBoundaryHomotopy
136
+ import OAI.Topology.CoarseAssembly.RelativeNaturality
137
+ import OAI.Topology.CoarseAssembly.SeparatedFamilyHomotopy
138
+ import OAI.Topology.CoarseAssembly.SeparatedFamilyPerturbation
139
+ import OAI.Topology.CoarseAssembly.SpatialBoundaryNaturality
140
+ import OAI.Topology.CoarseAssembly.CoefficientRoeHom
141
+ import OAI.Topology.CoarseAssembly.PartitionInclusion
142
+ import OAI.Topology.CoarseAssembly.CoefficientInclusion
143
+ import OAI.Topology.CoarseAssembly.ExplicitBoundaryRepresentative
144
+ import OAI.Topology.CoarseAssembly.NormalizedRipsFamily
145
+ import OAI.Topology.CoarseAssembly.RipsBoundaryDegeneracy
146
+ import OAI.Topology.CoarseAssembly.RipsFamilyCompactPerturbation
147
+ import OAI.Topology.CoarseAssembly.RipsScaleCompatibility
148
+ import OAI.Topology.CoarseAssembly.MultiplierUnitaryHomotopy
149
+ import OAI.Topology.CoarseAssembly.RelativeTwoDiagonal
150
+ import OAI.Topology.CoarseAssembly.IsometryDilation
151
+
152
+ import OAI.Topology.CoarseAssembly.RelativePartialIsometry
153
+ import OAI.Topology.CoarseAssembly.MultiplierIsometryInvariance
154
+
155
+ import OAI.Topology.CoarseAssembly.RipsEmbeddingIndependence
156
+ import OAI.Topology.CoarseAssembly.PointwiseEmbeddingTransition
157
+
158
+ import OAI.Topology.CoarseAssembly.RipsUnitaryFamily
159
+ import OAI.Topology.CoarseAssembly.OrthogonalSumBoundary
160
+
161
+ import OAI.Topology.CoarseAssembly.RipsDirectSumBoundary
162
+
163
+ import OAI.Topology.CoarseAssembly.SeparatedFamilyNearby
164
+
165
+ import OAI.Topology.CoarseAssembly.ControlledCoarseAssembly
166
+ import OAI.Topology.CoarseAssembly.RipsFiniteHomotopy
167
+ import OAI.Topology.CoarseAssembly.RipsFixedRepresentationHomotopy
168
+
169
+ import OAI.Topology.CoarseAssembly.RipsUnrestrictedHomotopy
170
+ import OAI.Topology.CoarseAssembly.RegularizedRipsFamily
171
+ import OAI.Topology.CoarseAssembly.BoundedTransformNaturality
172
+ import OAI.Topology.CoarseAssembly.SeparatedRipsIndex
173
+ import OAI.Topology.CoarseAssembly.RipsFiniteTail
174
+ import OAI.Topology.CoarseAssembly.RegularizedCoarsening
175
+ import OAI.Topology.CoarseAssembly.LateRipsCoarsening
176
+ import OAI.Topology.CoarseAssembly.SeparatedCoarseAssembly
177
+ import OAI.Topology.CoarseAssembly.SeparatedIndexNaturality
178
+ import OAI.Topology.CoarseAssembly.IndexFamilyTransport
179
+ import OAI.Topology.CoarseAssembly.ConstructedConclusion
180
+ import OAI.Topology.CoarseAssembly.AveragingEnergy
181
+ import OAI.Topology.CoarseAssembly.RegularConstants
182
+ import OAI.Topology.CoarseAssembly.UnconditionalConclusion
183
+
184
+ /-!
185
+ # A bounded-geometry counterexample to coarse Novikov
186
+
187
+ The concrete graph union has an infinite-order assembly-kernel class,
188
+ and its constructed analytic assembly map fails to be injective both
189
+ integrally and rationally.
190
+ -/
lean/OAI/Topology/CoarseAssembly/UnconditionalConclusion.lean CHANGED
@@ -1,60 +1,60 @@
1
- import OAI.Topology.CoarseAssembly.Definitions
2
- import OAI.Topology.CoarseAssembly.CongruenceElementary
3
- import OAI.Topology.CoarseAssembly.ConstructedConclusion
4
-
5
- namespace OAI
6
-
7
- /-! # The unconditional bounded-geometry counterexample
8
-
9
- The geometric construction, analytic assembly, integral spectral certificate
10
- and finite congruence generation are combined here.
11
- -/
12
-
13
- noncomputable section
14
-
15
- namespace CoarseAssembly
16
-
17
- open Congruence Rips Analytic
18
-
19
- attribute [local instance] OAI.CoarseAssembly.unconditionalConclusionMetric
20
-
21
- theorem provedKazhdanInput : PublishedKazhdanInput :=
22
- publishedKazhdanInput_of_elementaryReduction elementaryReduction_surjective
23
-
24
- /-- The constructed ordinary coarse assembly map has an infinite-order
25
- kernel class and fails injectivity both integrally and rationally. -/
26
- theorem bounded_geometry_counterexample_unconditional :
27
- ProperSpace VertexUnion ∧ UniformFiniteBalls VertexUnion ∧
28
- (∀ x y : VertexUnion, x ≠ y → 1 ≤ dist x y) ∧
29
- ∃ α : KX1 VertexUnion,
30
- (∀ n : ℤ, n ≠ 0 → n • α ≠ 0) ∧ constructedCoarseAssembly α = 0 ∧
31
- (1 : ℚ) ⊗ₜ[ℤ] α ≠ 0 ∧
32
- ¬ Function.Injective constructedCoarseAssembly ∧
33
- ¬ Function.Injective (constructedCoarseAssembly.toIntLinearMap.lTensor ℚ) :=
34
- bounded_geometry_counterexample_from_gap provedKazhdanInput
35
-
36
- /-- The graph-family clauses of the main theorem, together with the full
37
- coarse-assembly conclusion for its concrete separated union. -/
38
- theorem bounded_geometry_graph_counterexample_unconditional :
39
- (∀ j, Finite (FiberVertex j) ∧
40
- (fiberedGraph elementaryMoves chosenHolonomyUnit j).Connected) ∧
41
- (∃ D : ℕ, ∀ j (x : FiberVertex j),
42
- Nat.card {y // (fiberedGraph elementaryMoves chosenHolonomyUnit j).Adj x y} ≤ D) ∧
43
- ProperSpace VertexUnion ∧ UniformFiniteBalls VertexUnion ∧
44
- (∀ x y : VertexUnion, x ≠ y → 1 ≤ dist x y) ∧
45
- ∃ α : KX1 VertexUnion,
46
- (∀ n : ℤ, n ≠ 0 → n • α ≠ 0) ∧ constructedCoarseAssembly α = 0 ∧
47
- (1 : ℚ) ⊗ₜ[ℤ] α ≠ 0 ∧
48
- ¬ Function.Injective constructedCoarseAssembly ∧
49
- ¬ Function.Injective (constructedCoarseAssembly.toIntLinearMap.lTensor ℚ) := by
50
- refine ⟨?_, ?_, bounded_geometry_counterexample_unconditional⟩
51
- · intro j
52
- exact ⟨inferInstance, fiberedGraph_connected elementaryMoves chosenHolonomyUnit j⟩
53
- · exact ⟨7 * (symmetricMoves elementaryMoves).card * 2 ^ 9,
54
- fun _ x => card_fibered_neighbors_le elementaryMoves chosenHolonomyUnit x⟩
55
-
56
- end CoarseAssembly
57
-
58
- end
59
-
60
- end OAI
 
1
+ import OAI.Topology.CoarseAssembly.Definitions
2
+ import OAI.Topology.CoarseAssembly.CongruenceElementary
3
+ import OAI.Topology.CoarseAssembly.ConstructedConclusion
4
+
5
+ namespace OAI
6
+
7
+ /-! # The unconditional bounded-geometry counterexample
8
+
9
+ The geometric construction, analytic assembly, integral spectral certificate
10
+ and finite congruence generation are combined here.
11
+ -/
12
+
13
+ noncomputable section
14
+
15
+ namespace CoarseAssembly
16
+
17
+ open Congruence Rips Analytic
18
+
19
+ attribute [local instance] OAI.CoarseAssembly.unconditionalConclusionMetric
20
+
21
+ theorem provedKazhdanInput : PublishedKazhdanInput :=
22
+ publishedKazhdanInput_of_elementaryReduction elementaryReduction_surjective
23
+
24
+ /-- The constructed ordinary coarse assembly map has an infinite-order
25
+ kernel class and fails injectivity both integrally and rationally. -/
26
+ theorem bounded_geometry_counterexample_unconditional :
27
+ ProperSpace VertexUnion ∧ UniformFiniteBalls VertexUnion ∧
28
+ (∀ x y : VertexUnion, x ≠ y → 1 ≤ dist x y) ∧
29
+ ∃ α : KX1 VertexUnion,
30
+ (∀ n : ℤ, n ≠ 0 → n • α ≠ 0) ∧ constructedCoarseAssembly α = 0 ∧
31
+ (1 : ℚ) ⊗ₜ[ℤ] α ≠ 0 ∧
32
+ ¬ Function.Injective constructedCoarseAssembly ∧
33
+ ¬ Function.Injective (constructedCoarseAssembly.toIntLinearMap.lTensor ℚ) :=
34
+ bounded_geometry_counterexample_from_gap provedKazhdanInput
35
+
36
+ /-- The graph-family clauses of the main theorem, together with the full
37
+ coarse-assembly conclusion for its concrete separated union. -/
38
+ theorem bounded_geometry_graph_counterexample_unconditional :
39
+ (∀ j, Finite (FiberVertex j) ∧
40
+ (fiberedGraph elementaryMoves chosenHolonomyUnit j).Connected) ∧
41
+ (∃ D : ℕ, ∀ j (x : FiberVertex j),
42
+ Nat.card {y // (fiberedGraph elementaryMoves chosenHolonomyUnit j).Adj x y} ≤ D) ∧
43
+ ProperSpace VertexUnion ∧ UniformFiniteBalls VertexUnion ∧
44
+ (∀ x y : VertexUnion, x ≠ y → 1 ≤ dist x y) ∧
45
+ ∃ α : KX1 VertexUnion,
46
+ (∀ n : ℤ, n ≠ 0 → n • α ≠ 0) ∧ constructedCoarseAssembly α = 0 ∧
47
+ (1 : ℚ) ⊗ₜ[ℤ] α ≠ 0 ∧
48
+ ¬ Function.Injective constructedCoarseAssembly ∧
49
+ ¬ Function.Injective (constructedCoarseAssembly.toIntLinearMap.lTensor ℚ) := by
50
+ refine ⟨?_, ?_, bounded_geometry_counterexample_unconditional⟩
51
+ · intro j
52
+ exact ⟨inferInstance, fiberedGraph_connected elementaryMoves chosenHolonomyUnit j⟩
53
+ · exact ⟨7 * (symmetricMoves elementaryMoves).card * 2 ^ 9,
54
+ fun _ x => card_fibered_neighbors_le elementaryMoves chosenHolonomyUnit x⟩
55
+
56
+ end CoarseAssembly
57
+
58
+ end
59
+
60
+ end OAI
lean/OAI/Topology/CoarseAssembly/UniformCycleNormalization.lean CHANGED
@@ -1,53 +1,53 @@
1
- import OAI.Topology.CoarseAssembly.SigmaCycle
2
- import OAI.Topology.CoarseAssembly.RepresentedNormalization
3
-
4
- namespace OAI
5
-
6
- /-! # Uniformly bounded representatives for countable families -/
7
-
8
- noncomputable section
9
-
10
- namespace CoarseAssembly.Analytic
11
-
12
- open scoped ZeroAtInfty
13
-
14
- theorem involution_norm_le_one {H : HilbertSpace} (F : End H)
15
- (hself : IsSelfAdjoint F) (hsq : F * F = 1) : ‖F‖ ≤ 1 := by
16
- have he : ‖F‖ ^ 2 = ‖(1 : End H)‖ := by
17
- rw [← hself.norm_mul_self, hsq]
18
- have hi : ‖(1 : End H)‖ ≤ 1 := ContinuousLinearMap.norm_id_le
19
- nlinarith [norm_nonneg F]
20
-
21
- variable {A : Type} [CStarAlgebra A]
22
-
23
- def normalizedCycle (c : OddCycle A) : OddCycle A :=
24
- (exists_represented_involutive_representative c).choose
25
-
26
- theorem normalizedCycle_class (c : OddCycle A) :
27
- cycleClass A (normalizedCycle c) = cycleClass A c :=
28
- (exists_represented_involutive_representative c).choose_spec.1
29
-
30
- theorem normalizedCycle_selfAdjoint (c : OddCycle A) :
31
- IsSelfAdjoint (normalizedCycle c).operator :=
32
- (exists_represented_involutive_representative c).choose_spec.2.1
33
-
34
- theorem normalizedCycle_sq (c : OddCycle A) :
35
- (normalizedCycle c).operator * (normalizedCycle c).operator = 1 :=
36
- (exists_represented_involutive_representative c).choose_spec.2.2.1
37
-
38
- theorem normalizedCycle_norm (c : OddCycle A) : ‖(normalizedCycle c).operator‖ ≤ 1 :=
39
- involution_norm_le_one _ (normalizedCycle_selfAdjoint c) (normalizedCycle_sq c)
40
-
41
- variable (Y : ℕ → Type) [∀ j, TopologicalSpace (Y j)] [∀ j, CompactSpace (Y j)]
42
-
43
- /-- Actual locally finite cycle for an arbitrary countable family of compact-source cycles. -/
44
- def normalizedFamilyCycle (c : ∀ j, OddCycle C(Y j, ℂ)) : OddCycle C₀(Sigma Y, ℂ) :=
45
- sigmaCycle Y (fun j => normalizedCycle (c j)) 1 (by norm_num)
46
- (fun j => normalizedCycle_norm (c j)) (fun j => normalizedCycle_selfAdjoint (c j))
47
- (fun j => normalizedCycle_sq (c j))
48
-
49
- end CoarseAssembly.Analytic
50
-
51
- end
52
-
53
- end OAI
 
1
+ import OAI.Topology.CoarseAssembly.SigmaCycle
2
+ import OAI.Topology.CoarseAssembly.RepresentedNormalization
3
+
4
+ namespace OAI
5
+
6
+ /-! # Uniformly bounded representatives for countable families -/
7
+
8
+ noncomputable section
9
+
10
+ namespace CoarseAssembly.Analytic
11
+
12
+ open scoped ZeroAtInfty
13
+
14
+ theorem involution_norm_le_one {H : HilbertSpace} (F : End H)
15
+ (hself : IsSelfAdjoint F) (hsq : F * F = 1) : ‖F‖ ≤ 1 := by
16
+ have he : ‖F‖ ^ 2 = ‖(1 : End H)‖ := by
17
+ rw [← hself.norm_mul_self, hsq]
18
+ have hi : ‖(1 : End H)‖ ≤ 1 := ContinuousLinearMap.norm_id_le
19
+ nlinarith [norm_nonneg F]
20
+
21
+ variable {A : Type} [CStarAlgebra A]
22
+
23
+ def normalizedCycle (c : OddCycle A) : OddCycle A :=
24
+ (exists_represented_involutive_representative c).choose
25
+
26
+ theorem normalizedCycle_class (c : OddCycle A) :
27
+ cycleClass A (normalizedCycle c) = cycleClass A c :=
28
+ (exists_represented_involutive_representative c).choose_spec.1
29
+
30
+ theorem normalizedCycle_selfAdjoint (c : OddCycle A) :
31
+ IsSelfAdjoint (normalizedCycle c).operator :=
32
+ (exists_represented_involutive_representative c).choose_spec.2.1
33
+
34
+ theorem normalizedCycle_sq (c : OddCycle A) :
35
+ (normalizedCycle c).operator * (normalizedCycle c).operator = 1 :=
36
+ (exists_represented_involutive_representative c).choose_spec.2.2.1
37
+
38
+ theorem normalizedCycle_norm (c : OddCycle A) : ‖(normalizedCycle c).operator‖ ≤ 1 :=
39
+ involution_norm_le_one _ (normalizedCycle_selfAdjoint c) (normalizedCycle_sq c)
40
+
41
+ variable (Y : ℕ → Type) [∀ j, TopologicalSpace (Y j)] [∀ j, CompactSpace (Y j)]
42
+
43
+ /-- Actual locally finite cycle for an arbitrary countable family of compact-source cycles. -/
44
+ def normalizedFamilyCycle (c : ∀ j, OddCycle C(Y j, ℂ)) : OddCycle C₀(Sigma Y, ℂ) :=
45
+ sigmaCycle Y (fun j => normalizedCycle (c j)) 1 (by norm_num)
46
+ (fun j => normalizedCycle_norm (c j)) (fun j => normalizedCycle_selfAdjoint (c j))
47
+ (fun j => normalizedCycle_sq (c j))
48
+
49
+ end CoarseAssembly.Analytic
50
+
51
+ end
52
+
53
+ end OAI
lean/OAI/Topology/CoarseAssembly/UniformSubdivision.lean CHANGED
@@ -1,47 +1,47 @@
1
- import OAI.Topology.CoarseAssembly.FredholmModule
2
- import Mathlib.Topology.UniformSpace.HeineCantor
3
- import Mathlib.Algebra.Order.Archimedean.Real.Basic
4
-
5
- namespace OAI
6
-
7
- /-! # Finite subdivisions of an actual norm-continuous homotopy -/
8
-
9
- noncomputable section
10
-
11
- namespace CoarseAssembly.Analytic
12
-
13
- def intervalGrid (N : ℕ) (hN : 0 < N) (j : ℕ) : Interval :=
14
- ⟨((min j N : ℕ) : ℝ) / N, div_nonneg (Nat.cast_nonneg _) (Nat.cast_nonneg _),
15
- (div_le_one (Nat.cast_pos.mpr hN)).mpr (by exact_mod_cast Nat.min_le_right j N)⟩
16
-
17
- @[simp] theorem intervalGrid_start (N : ℕ) (hN : 0 < N) : intervalGrid N hN 0 = start := by
18
- apply Subtype.ext
19
- simp [intervalGrid, start]
20
-
21
- @[simp] theorem intervalGrid_finish (N : ℕ) (hN : 0 < N) : intervalGrid N hN N = finish := by
22
- apply Subtype.ext
23
- simp [intervalGrid, finish, Nat.ne_of_gt hN]
24
-
25
- theorem intervalGrid_dist (N : ℕ) (hN : 0 < N) (j : ℕ) (hj : j < N) :
26
- dist (intervalGrid N hN (j + 1)) (intervalGrid N hN j) = (N : ℝ)⁻¹ := by
27
- change |((min (j + 1) N : ℕ) : ℝ) / N - ((min j N : ℕ) : ℝ) / N| = _
28
- rw [Nat.min_eq_left (Nat.succ_le_of_lt hj), Nat.min_eq_left hj.le, Nat.cast_succ]
29
- have he : ((j : ℝ) + 1) / N - (j : ℝ) / N = 1 / N := by ring
30
- rw [he, abs_of_nonneg (by positivity), one_div]
31
-
32
- theorem exists_interval_subdivision {E : Type*} [PseudoMetricSpace E]
33
- (f : Interval → E) (hf : Continuous f) (ε : ℝ) (hε : 0 < ε) :
34
- ∃ (N : ℕ) (hN : 0 < N), ∀ j, j < N →
35
- dist (f (intervalGrid N hN (j + 1))) (f (intervalGrid N hN j)) < ε := by
36
- obtain ⟨δ, hδ, hclose⟩ := Metric.uniformContinuous_iff.mp
37
- (CompactSpace.uniformContinuous_of_continuous hf) ε hε
38
- obtain ⟨N, hN, hn⟩ := Real.exists_nat_pos_inv_lt hδ
39
- refine ⟨N, hN, fun j hj => hclose ?_⟩
40
- rw [intervalGrid_dist N hN j hj]
41
- exact hn
42
-
43
- end CoarseAssembly.Analytic
44
-
45
- end
46
-
47
- end OAI
 
1
+ import OAI.Topology.CoarseAssembly.FredholmModule
2
+ import Mathlib.Topology.UniformSpace.HeineCantor
3
+ import Mathlib.Algebra.Order.Archimedean.Real.Basic
4
+
5
+ namespace OAI
6
+
7
+ /-! # Finite subdivisions of an actual norm-continuous homotopy -/
8
+
9
+ noncomputable section
10
+
11
+ namespace CoarseAssembly.Analytic
12
+
13
+ def intervalGrid (N : ℕ) (hN : 0 < N) (j : ℕ) : Interval :=
14
+ ⟨((min j N : ℕ) : ℝ) / N, div_nonneg (Nat.cast_nonneg _) (Nat.cast_nonneg _),
15
+ (div_le_one (Nat.cast_pos.mpr hN)).mpr (by exact_mod_cast Nat.min_le_right j N)⟩
16
+
17
+ @[simp] theorem intervalGrid_start (N : ℕ) (hN : 0 < N) : intervalGrid N hN 0 = start := by
18
+ apply Subtype.ext
19
+ simp [intervalGrid, start]
20
+
21
+ @[simp] theorem intervalGrid_finish (N : ℕ) (hN : 0 < N) : intervalGrid N hN N = finish := by
22
+ apply Subtype.ext
23
+ simp [intervalGrid, finish, Nat.ne_of_gt hN]
24
+
25
+ theorem intervalGrid_dist (N : ℕ) (hN : 0 < N) (j : ℕ) (hj : j < N) :
26
+ dist (intervalGrid N hN (j + 1)) (intervalGrid N hN j) = (N : ℝ)⁻¹ := by
27
+ change |((min (j + 1) N : ℕ) : ℝ) / N - ((min j N : ℕ) : ℝ) / N| = _
28
+ rw [Nat.min_eq_left (Nat.succ_le_of_lt hj), Nat.min_eq_left hj.le, Nat.cast_succ]
29
+ have he : ((j : ℝ) + 1) / N - (j : ℝ) / N = 1 / N := by ring
30
+ rw [he, abs_of_nonneg (by positivity), one_div]
31
+
32
+ theorem exists_interval_subdivision {E : Type*} [PseudoMetricSpace E]
33
+ (f : Interval → E) (hf : Continuous f) (ε : ℝ) (hε : 0 < ε) :
34
+ ∃ (N : ℕ) (hN : 0 < N), ∀ j, j < N →
35
+ dist (f (intervalGrid N hN (j + 1))) (f (intervalGrid N hN j)) < ε := by
36
+ obtain ⟨δ, hδ, hclose⟩ := Metric.uniformContinuous_iff.mp
37
+ (CompactSpace.uniformContinuous_of_continuous hf) ε hε
38
+ obtain ⟨N, hN, hn⟩ := Real.exists_nat_pos_inv_lt hδ
39
+ refine ⟨N, hN, fun j hj => hclose ?_⟩
40
+ rw [intervalGrid_dist N hN j hj]
41
+ exact hn
42
+
43
+ end CoarseAssembly.Analytic
44
+
45
+ end
46
+
47
+ end OAI
lean/OAI/Topology/CoarseAssembly/UnitalCycleInvertible.lean CHANGED
@@ -1,32 +1,32 @@
1
- import OAI.Topology.CoarseAssembly.FredholmInvertible
2
-
3
- namespace OAI
4
-
5
- /-! # Invertible self-adjoint representatives for unital odd cycles -/
6
-
7
- noncomputable section
8
-
9
- namespace CoarseAssembly.Analytic
10
-
11
- variable {A : Type} [CStarAlgebra A]
12
-
13
- theorem exists_invertible_selfAdjoint_representative (c : OddCycle A)
14
- (hunital : c.representation 1 = 1) :
15
- ∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧
16
- d.representation 1 = 1 ∧ IsSelfAdjoint d.operator ∧ IsUnit d.operator := by
17
- obtain ⟨d, hdc, hdunit, hdself⟩ := exists_selfAdjoint_representative c hunital
18
- have hc : IsCompactOperator (d.operator * d.operator - 1 : End d.space) := by
19
- simpa only [hdunit, mul_one] using d.square_compact 1
20
- have hp := kernelProjection_compact d.operator hc
21
- have hps : IsCompactOperator (star (kernelProjection d.operator) : End d.space) := by
22
- rw [(kernelProjection_selfAdjoint d.operator).star_eq]
23
- exact hp
24
- refine ⟨d.compactPerturb (kernelProjection d.operator) hp hps,
25
- (compactPerturb_class d _ hp hps).trans hdc, hdunit,
26
- kernel_corrected_selfAdjoint d.operator hdself, kernel_corrected_isUnit d.operator hdself hc⟩
27
-
28
- end CoarseAssembly.Analytic
29
-
30
- end
31
-
32
- end OAI
 
1
+ import OAI.Topology.CoarseAssembly.FredholmInvertible
2
+
3
+ namespace OAI
4
+
5
+ /-! # Invertible self-adjoint representatives for unital odd cycles -/
6
+
7
+ noncomputable section
8
+
9
+ namespace CoarseAssembly.Analytic
10
+
11
+ variable {A : Type} [CStarAlgebra A]
12
+
13
+ theorem exists_invertible_selfAdjoint_representative (c : OddCycle A)
14
+ (hunital : c.representation 1 = 1) :
15
+ ∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧
16
+ d.representation 1 = 1 ∧ IsSelfAdjoint d.operator ∧ IsUnit d.operator := by
17
+ obtain ⟨d, hdc, hdunit, hdself⟩ := exists_selfAdjoint_representative c hunital
18
+ have hc : IsCompactOperator (d.operator * d.operator - 1 : End d.space) := by
19
+ simpa only [hdunit, mul_one] using d.square_compact 1
20
+ have hp := kernelProjection_compact d.operator hc
21
+ have hps : IsCompactOperator (star (kernelProjection d.operator) : End d.space) := by
22
+ rw [(kernelProjection_selfAdjoint d.operator).star_eq]
23
+ exact hp
24
+ refine ⟨d.compactPerturb (kernelProjection d.operator) hp hps,
25
+ (compactPerturb_class d _ hp hps).trans hdc, hdunit,
26
+ kernel_corrected_selfAdjoint d.operator hdself, kernel_corrected_isUnit d.operator hdself hc⟩
27
+
28
+ end CoarseAssembly.Analytic
29
+
30
+ end
31
+
32
+ end OAI
lean/OAI/Topology/CoarseAssembly/UnitalCycleNormalization.lean CHANGED
@@ -1,43 +1,43 @@
1
- import OAI.Topology.CoarseAssembly.CycleCompactPerturbation
2
- import Mathlib.Tactic.Module
3
-
4
- namespace OAI
5
-
6
- /-! # Self-adjoint normalization of a unital Fredholm cycle
7
-
8
- The compact adjoint defect allows replacement of the operator by its
9
- self-adjoint part, with the represented algebra and K-homology class fixed.
10
- -/
11
-
12
- noncomputable section
13
-
14
- namespace CoarseAssembly.Analytic
15
-
16
- variable {A : Type} [CStarAlgebra A]
17
-
18
- theorem exists_selfAdjoint_representative (c : OddCycle A)
19
- (hunital : c.representation 1 = 1) :
20
- ∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧
21
- d.representation 1 = 1 ∧ IsSelfAdjoint d.operator := by
22
- let K : End c.space := (1 / 2 : ℝ) • (star c.operator - c.operator)
23
- have hdefect : IsCompactOperator (star c.operator - c.operator : End c.space) := by
24
- simpa only [hunital, mul_one] using c.adjoint_compact 1
25
- have hK : IsCompactOperator K := hdefect.smul (1 / 2 : ℝ)
26
- have hstar : star K = -K := by
27
- dsimp only [K]
28
- rw [star_smul, star_trivial, star_sub, star_star]
29
- module
30
- have hKs : IsCompactOperator (star K : End c.space) := by
31
- rw [hstar]
32
- exact hK.neg
33
- refine ⟨c.compactPerturb K hK hKs, compactPerturb_class c K hK hKs, hunital, ?_⟩
34
- change star (c.operator + K) = c.operator + K
35
- rw [star_add, hstar]
36
- dsimp only [K]
37
- module
38
-
39
- end CoarseAssembly.Analytic
40
-
41
- end
42
-
43
- end OAI
 
1
+ import OAI.Topology.CoarseAssembly.CycleCompactPerturbation
2
+ import Mathlib.Tactic.Module
3
+
4
+ namespace OAI
5
+
6
+ /-! # Self-adjoint normalization of a unital Fredholm cycle
7
+
8
+ The compact adjoint defect allows replacement of the operator by its
9
+ self-adjoint part, with the represented algebra and K-homology class fixed.
10
+ -/
11
+
12
+ noncomputable section
13
+
14
+ namespace CoarseAssembly.Analytic
15
+
16
+ variable {A : Type} [CStarAlgebra A]
17
+
18
+ theorem exists_selfAdjoint_representative (c : OddCycle A)
19
+ (hunital : c.representation 1 = 1) :
20
+ ∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧
21
+ d.representation 1 = 1 ∧ IsSelfAdjoint d.operator := by
22
+ let K : End c.space := (1 / 2 : ℝ) • (star c.operator - c.operator)
23
+ have hdefect : IsCompactOperator (star c.operator - c.operator : End c.space) := by
24
+ simpa only [hunital, mul_one] using c.adjoint_compact 1
25
+ have hK : IsCompactOperator K := hdefect.smul (1 / 2 : ℝ)
26
+ have hstar : star K = -K := by
27
+ dsimp only [K]
28
+ rw [star_smul, star_trivial, star_sub, star_star]
29
+ module
30
+ have hKs : IsCompactOperator (star K : End c.space) := by
31
+ rw [hstar]
32
+ exact hK.neg
33
+ refine ⟨c.compactPerturb K hK hKs, compactPerturb_class c K hK hKs, hunital, ?_⟩
34
+ change star (c.operator + K) = c.operator + K
35
+ rw [star_add, hstar]
36
+ dsimp only [K]
37
+ module
38
+
39
+ end CoarseAssembly.Analytic
40
+
41
+ end
42
+
43
+ end OAI
lean/OAI/Topology/CoarseAssembly/UnitalRepresentative.lean CHANGED
@@ -1,130 +1,130 @@
1
- import OAI.Topology.CoarseAssembly.BinaryCycle
2
- import OAI.Topology.CoarseAssembly.CharacterExtension
3
- import OAI.Topology.CoarseAssembly.ProjectionSwap
4
- import OAI.Topology.CoarseAssembly.UniformCycleNormalization
5
-
6
- namespace OAI
7
-
8
- /-! # Unital representatives for compact-source analytic classes
9
-
10
- Adjoin a degenerate character cycle and exchange the complementary
11
- subspaces by the explicit projection-swap unitary. This proves that
12
- completion of a representation by a character preserves its class.
13
- -/
14
-
15
- noncomputable section
16
-
17
- namespace CoarseAssembly.Analytic
18
-
19
- variable {H : HilbertSpace}
20
-
21
- theorem projectionSwap_representation (P R : End H) (hP : IsStarProjection P)
22
- (hPR : P * R = R) (hRP : R * P = R) (z : ℂ) :
23
- binaryBlock H H (R + z • (1 - P)) (z • P) =
24
- operatorConjugation (projectionSwapUnitary H P hP).toLinearIsometry
25
- (binaryBlock H H R (z • 1)) := by
26
- rw [projectionSwapUnitary_conjugation]
27
- have hu := projectionSwap_sq H P hP.isIdempotentElem
28
- suffices hi : binaryBlock H H (R + z • (1 - P)) (z • P) * projectionSwap H P =
29
- projectionSwap H P * binaryBlock H H R (z • 1) by
30
- have hi' := congrArg (fun T => T * projectionSwap H P) hi
31
- simpa only [mul_assoc, hu, mul_one] using hi'
32
- apply ContinuousLinearMap.ext
33
- intro x
34
- change binaryBlock H H (R + z • (1 - P)) (z • P) (projectionSwap H P x) =
35
- projectionSwap H P (binaryBlock H H R (z • 1) x)
36
- rw [projectionSwap_apply H, binaryBlock_apply H H, binaryBlock_apply H H,
37
- projectionSwap_apply H]
38
- apply (WithLp.ofLp_injective 2)
39
- have hp (y : H) : P (P y) = P y := DFunLike.congr_fun hP.isIdempotentElem y
40
- have hpr (y : H) : P (R y) = R y := DFunLike.congr_fun hPR y
41
- have hrp (y : H) : R (P y) = R y := DFunLike.congr_fun hRP y
42
- change
43
- ((R + z • (1 - P)) (P x.fst + (1 - P) x.snd),
44
- (z • P) ((1 - P) x.fst + P x.snd)) =
45
- (P (R x.fst) + (1 - P) ((z • (1 : End H)) x.snd),
46
- (1 - P) (R x.fst) + P ((z • (1 : End H)) x.snd))
47
- simp only [add_apply, smul_apply, sub_apply, one_apply_eq_self, map_add, map_sub,
48
- map_smul, hp, hpr, hrp]
49
- ext <;> module
50
-
51
- theorem projectionSwap_operator (P F : End H) (hP : IsStarProjection P)
52
- (hF : IsSelfAdjoint F) (hQ : F * (1 - P) = 1 - P) :
53
- binaryBlock H H F 1 =
54
- operatorConjugation (projectionSwapUnitary H P hP).toLinearIsometry
55
- (binaryBlock H H F 1) := by
56
- rw [projectionSwapUnitary_conjugation]
57
- have hu := projectionSwap_sq H P hP.isIdempotentElem
58
- have hc := (commute_of_complement F P hF hP.isSelfAdjoint hQ).eq
59
- have hQ' : (1 - P) * F = 1 - P := by
60
- have h := congrArg star hQ
61
- simpa only [star_mul, star_sub, star_one, hP.isSelfAdjoint.star_eq, hF.star_eq] using h
62
- suffices hi : binaryBlock H H F 1 * projectionSwap H P =
63
- projectionSwap H P * binaryBlock H H F 1 by
64
- have hi' := congrArg (fun T => T * projectionSwap H P) hi
65
- simpa only [mul_assoc, hu, mul_one] using hi'
66
- apply ContinuousLinearMap.ext
67
- intro x
68
- change binaryBlock H H F 1 (projectionSwap H P x) =
69
- projectionSwap H P (binaryBlock H H F 1 x)
70
- rw [projectionSwap_apply H, binaryBlock_apply H H, binaryBlock_apply H H,
71
- projectionSwap_apply H]
72
- apply (WithLp.ofLp_injective 2)
73
- have hfp (y : H) : F (P y) = P (F y) := DFunLike.congr_fun hc y
74
- have hfq (y : H) : F ((1 - P) y) = (1 - P) y := DFunLike.congr_fun hQ y
75
- have hqf (y : H) : (1 - P) (F y) = (1 - P) y := DFunLike.congr_fun hQ' y
76
- change (F (P x.fst + (1 - P) x.snd), (1 - P) x.fst + P x.snd) =
77
- (P (F x.fst) + (1 - P) x.snd, (1 - P) (F x.fst) + P x.snd)
78
- rw [map_add, hfp, hfq, hqf]
79
-
80
- variable {A : Type} [CStarAlgebra A]
81
-
82
- theorem characterExtension_class (c : OddCycle A) (χ : A →⋆ₐ[ℂ] ℂ)
83
- (hF : IsSelfAdjoint c.operator)
84
- (hQ : c.operator * (1 - c.representation 1) = 1 - c.representation 1)
85
- (hsq : IsCompactOperator (c.operator * c.operator - 1 : End c.space)) :
86
- cycleClass A (c.characterExtension χ hF hQ hsq) = cycleClass A c := by
87
- let d := identityOperatorCycle
88
- (characterProjectionRepresentation χ (1 : End c.space) (IsStarProjection.one _))
89
- let e := identityOperatorCycle
90
- (characterProjectionRepresentation χ (c.representation 1) (representation_unit_projection c))
91
- have he : (c.binarySum d).UnitaryEquivalent
92
- ((c.characterExtension χ hF hQ hsq).binarySum e) := by
93
- refine ⟨projectionSwapUnitary c.space (c.representation 1) (representation_unit_projection c),
94
- ?_, ?_⟩
95
- · intro a
96
- change binaryBlock c.space c.space
97
- (c.representation a + χ a • (1 - c.representation 1)) (χ a • c.representation 1) = _
98
- exact projectionSwap_representation _ _ (representation_unit_projection c)
99
- (by rw [← map_mul, one_mul]) (by rw [← map_mul, mul_one]) (χ a)
100
- · exact projectionSwap_operator _ _ (representation_unit_projection c) hF hQ
101
- have h := unitary_eq _ _ he
102
- rw [binarySum_class, binarySum_class,
103
- degenerate_zero d (identityOperatorCycle_degenerate _),
104
- degenerate_zero e (identityOperatorCycle_degenerate _), add_zero, add_zero] at h
105
- exact h.symm
106
-
107
- /-- Every analytic cycle over an algebra with a character has a unital
108
- representative. The assertion includes equality in the actual cycle quotient. -/
109
- theorem exists_unital_representative (c : OddCycle A) (χ : A →⋆ₐ[ℂ] ℂ) :
110
- ∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧ d.representation 1 = 1 := by
111
- let d := c.cutDown
112
- let e := d.characterExtension χ (cutDown_selfAdjoint c) (cutDown_complement c)
113
- (cutDown_square_compact c)
114
- refine ⟨e, ?_, characterExtension_unital d χ _ _ _⟩
115
- exact (characterExtension_class d χ _ _ _).trans (cutDown_class c)
116
-
117
- /-- The representatives needed by whole-family Rips localization can be
118
- chosen unital, self-adjoint, involutive, and uniformly bounded by one. -/
119
- theorem exists_unital_involutive_representative (c : OddCycle A) (χ : A →⋆ₐ[ℂ] ℂ) :
120
- ∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧ d.representation 1 = 1 ∧
121
- IsSelfAdjoint d.operator ∧ d.operator * d.operator = 1 ∧ ‖d.operator‖ ≤ 1 := by
122
- obtain ⟨d, hdc, hdu⟩ := exists_unital_representative c χ
123
- obtain ⟨e, hed, heu, hes, heq⟩ := exists_involutive_representative d hdu
124
- exact ⟨e, hed.trans hdc, heu, hes, heq, involution_norm_le_one _ hes heq⟩
125
-
126
- end CoarseAssembly.Analytic
127
-
128
- end
129
-
130
- end OAI
 
1
+ import OAI.Topology.CoarseAssembly.BinaryCycle
2
+ import OAI.Topology.CoarseAssembly.CharacterExtension
3
+ import OAI.Topology.CoarseAssembly.ProjectionSwap
4
+ import OAI.Topology.CoarseAssembly.UniformCycleNormalization
5
+
6
+ namespace OAI
7
+
8
+ /-! # Unital representatives for compact-source analytic classes
9
+
10
+ Adjoin a degenerate character cycle and exchange the complementary
11
+ subspaces by the explicit projection-swap unitary. This proves that
12
+ completion of a representation by a character preserves its class.
13
+ -/
14
+
15
+ noncomputable section
16
+
17
+ namespace CoarseAssembly.Analytic
18
+
19
+ variable {H : HilbertSpace}
20
+
21
+ theorem projectionSwap_representation (P R : End H) (hP : IsStarProjection P)
22
+ (hPR : P * R = R) (hRP : R * P = R) (z : ℂ) :
23
+ binaryBlock H H (R + z • (1 - P)) (z • P) =
24
+ operatorConjugation (projectionSwapUnitary H P hP).toLinearIsometry
25
+ (binaryBlock H H R (z • 1)) := by
26
+ rw [projectionSwapUnitary_conjugation]
27
+ have hu := projectionSwap_sq H P hP.isIdempotentElem
28
+ suffices hi : binaryBlock H H (R + z • (1 - P)) (z • P) * projectionSwap H P =
29
+ projectionSwap H P * binaryBlock H H R (z • 1) by
30
+ have hi' := congrArg (fun T => T * projectionSwap H P) hi
31
+ simpa only [mul_assoc, hu, mul_one] using hi'
32
+ apply ContinuousLinearMap.ext
33
+ intro x
34
+ change binaryBlock H H (R + z • (1 - P)) (z • P) (projectionSwap H P x) =
35
+ projectionSwap H P (binaryBlock H H R (z • 1) x)
36
+ rw [projectionSwap_apply H, binaryBlock_apply H H, binaryBlock_apply H H,
37
+ projectionSwap_apply H]
38
+ apply (WithLp.ofLp_injective 2)
39
+ have hp (y : H) : P (P y) = P y := DFunLike.congr_fun hP.isIdempotentElem y
40
+ have hpr (y : H) : P (R y) = R y := DFunLike.congr_fun hPR y
41
+ have hrp (y : H) : R (P y) = R y := DFunLike.congr_fun hRP y
42
+ change
43
+ ((R + z • (1 - P)) (P x.fst + (1 - P) x.snd),
44
+ (z • P) ((1 - P) x.fst + P x.snd)) =
45
+ (P (R x.fst) + (1 - P) ((z • (1 : End H)) x.snd),
46
+ (1 - P) (R x.fst) + P ((z • (1 : End H)) x.snd))
47
+ simp only [add_apply, smul_apply, sub_apply, one_apply_eq_self, map_add, map_sub,
48
+ map_smul, hp, hpr, hrp]
49
+ ext <;> module
50
+
51
+ theorem projectionSwap_operator (P F : End H) (hP : IsStarProjection P)
52
+ (hF : IsSelfAdjoint F) (hQ : F * (1 - P) = 1 - P) :
53
+ binaryBlock H H F 1 =
54
+ operatorConjugation (projectionSwapUnitary H P hP).toLinearIsometry
55
+ (binaryBlock H H F 1) := by
56
+ rw [projectionSwapUnitary_conjugation]
57
+ have hu := projectionSwap_sq H P hP.isIdempotentElem
58
+ have hc := (commute_of_complement F P hF hP.isSelfAdjoint hQ).eq
59
+ have hQ' : (1 - P) * F = 1 - P := by
60
+ have h := congrArg star hQ
61
+ simpa only [star_mul, star_sub, star_one, hP.isSelfAdjoint.star_eq, hF.star_eq] using h
62
+ suffices hi : binaryBlock H H F 1 * projectionSwap H P =
63
+ projectionSwap H P * binaryBlock H H F 1 by
64
+ have hi' := congrArg (fun T => T * projectionSwap H P) hi
65
+ simpa only [mul_assoc, hu, mul_one] using hi'
66
+ apply ContinuousLinearMap.ext
67
+ intro x
68
+ change binaryBlock H H F 1 (projectionSwap H P x) =
69
+ projectionSwap H P (binaryBlock H H F 1 x)
70
+ rw [projectionSwap_apply H, binaryBlock_apply H H, binaryBlock_apply H H,
71
+ projectionSwap_apply H]
72
+ apply (WithLp.ofLp_injective 2)
73
+ have hfp (y : H) : F (P y) = P (F y) := DFunLike.congr_fun hc y
74
+ have hfq (y : H) : F ((1 - P) y) = (1 - P) y := DFunLike.congr_fun hQ y
75
+ have hqf (y : H) : (1 - P) (F y) = (1 - P) y := DFunLike.congr_fun hQ' y
76
+ change (F (P x.fst + (1 - P) x.snd), (1 - P) x.fst + P x.snd) =
77
+ (P (F x.fst) + (1 - P) x.snd, (1 - P) (F x.fst) + P x.snd)
78
+ rw [map_add, hfp, hfq, hqf]
79
+
80
+ variable {A : Type} [CStarAlgebra A]
81
+
82
+ theorem characterExtension_class (c : OddCycle A) (χ : A →⋆ₐ[ℂ] ℂ)
83
+ (hF : IsSelfAdjoint c.operator)
84
+ (hQ : c.operator * (1 - c.representation 1) = 1 - c.representation 1)
85
+ (hsq : IsCompactOperator (c.operator * c.operator - 1 : End c.space)) :
86
+ cycleClass A (c.characterExtension χ hF hQ hsq) = cycleClass A c := by
87
+ let d := identityOperatorCycle
88
+ (characterProjectionRepresentation χ (1 : End c.space) (IsStarProjection.one _))
89
+ let e := identityOperatorCycle
90
+ (characterProjectionRepresentation χ (c.representation 1) (representation_unit_projection c))
91
+ have he : (c.binarySum d).UnitaryEquivalent
92
+ ((c.characterExtension χ hF hQ hsq).binarySum e) := by
93
+ refine ⟨projectionSwapUnitary c.space (c.representation 1) (representation_unit_projection c),
94
+ ?_, ?_⟩
95
+ · intro a
96
+ change binaryBlock c.space c.space
97
+ (c.representation a + χ a • (1 - c.representation 1)) (χ a • c.representation 1) = _
98
+ exact projectionSwap_representation _ _ (representation_unit_projection c)
99
+ (by rw [← map_mul, one_mul]) (by rw [← map_mul, mul_one]) (χ a)
100
+ · exact projectionSwap_operator _ _ (representation_unit_projection c) hF hQ
101
+ have h := unitary_eq _ _ he
102
+ rw [binarySum_class, binarySum_class,
103
+ degenerate_zero d (identityOperatorCycle_degenerate _),
104
+ degenerate_zero e (identityOperatorCycle_degenerate _), add_zero, add_zero] at h
105
+ exact h.symm
106
+
107
+ /-- Every analytic cycle over an algebra with a character has a unital
108
+ representative. The assertion includes equality in the actual cycle quotient. -/
109
+ theorem exists_unital_representative (c : OddCycle A) (χ : A →⋆ₐ[ℂ] ℂ) :
110
+ ∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧ d.representation 1 = 1 := by
111
+ let d := c.cutDown
112
+ let e := d.characterExtension χ (cutDown_selfAdjoint c) (cutDown_complement c)
113
+ (cutDown_square_compact c)
114
+ refine ⟨e, ?_, characterExtension_unital d χ _ _ _⟩
115
+ exact (characterExtension_class d χ _ _ _).trans (cutDown_class c)
116
+
117
+ /-- The representatives needed by whole-family Rips localization can be
118
+ chosen unital, self-adjoint, involutive, and uniformly bounded by one. -/
119
+ theorem exists_unital_involutive_representative (c : OddCycle A) (χ : A →⋆ₐ[ℂ] ℂ) :
120
+ ∃ d : OddCycle A, cycleClass A d = cycleClass A c ∧ d.representation 1 = 1 ∧
121
+ IsSelfAdjoint d.operator ∧ d.operator * d.operator = 1 ∧ ‖d.operator‖ ≤ 1 := by
122
+ obtain ⟨d, hdc, hdu⟩ := exists_unital_representative c χ
123
+ obtain ⟨e, hed, heu, hes, heq⟩ := exists_involutive_representative d hdu
124
+ exact ⟨e, hed.trans hdc, heu, hes, heq, involution_norm_le_one _ hes heq⟩
125
+
126
+ end CoarseAssembly.Analytic
127
+
128
+ end
129
+
130
+ end OAI
lean/OAI/Topology/CoarseAssembly/UnitalStructureAlgebra.lean CHANGED
@@ -1,66 +1,66 @@
1
- import OAI.Topology.CoarseAssembly.StructureQuotient
2
- import Mathlib.Analysis.CStarAlgebra.Spectrum
3
-
4
- namespace OAI
5
-
6
- /-! # The unit of the controlled pseudolocal algebra -/
7
-
8
- noncomputable section
9
-
10
- namespace CoarseAssembly.DiscreteRoe
11
-
12
- variable {X H : Type*} [DecidableEq X] [PseudoMetricSpace X]
13
- [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
14
-
15
- local instance : IsScalarTower ℂ (Operator X H) (Operator X H) where
16
- smul_assoc c T S := by ext v; simp
17
- local instance : SMulCommClass ℂ (Operator X H) (Operator X H) where
18
- smul_comm c T S := by ext v; simp
19
- local instance : ContinuousStar (Operator X H) := ⟨operator_star_continuous⟩
20
-
21
- omit [CompleteSpace H] in
22
- theorem propagationLE_one : PropagationLE 0 (1 : Operator X H) := by
23
- intro x y hxy
24
- have hne : x ≠ y := by intro h; simp [h] at hxy
25
- ext v
26
- simp [entry_apply, lp.single_apply, hne]
27
-
28
- theorem structureGenerator_one : StructureGenerator (1 : Operator X H) := by
29
- refine ⟨⟨0, le_rfl, propagationLE_one⟩, ?_, ?_⟩
30
- · intro f
31
- simp only [one_mul, mul_one, sub_self]
32
- exact isCompactOperator_zero
33
- · rw [star_one (Operator X H)]
34
- intro f
35
- simp only [one_mul, mul_one, sub_self]
36
- exact isCompactOperator_zero
37
-
38
- theorem structureAlgebra_one : (1 : Operator X H) ∈ structureAlgebra (X := X) (H := H) :=
39
- (NonUnitalStarSubalgebra.le_topologicalClosure _)
40
- (NonUnitalStarAlgebra.subset_adjoin ℂ _ (structureGenerator_one (X := X) (H := H)))
41
-
42
- /-- The controlled structure algebra with its actual identity operator. -/
43
- def unitalStructureAlgebra : StarSubalgebra ℂ (Operator X H) where
44
- carrier := structureAlgebra (X := X) (H := H)
45
- add_mem' := (structureAlgebra (X := X) (H := H)).add_mem
46
- mul_mem' := (structureAlgebra (X := X) (H := H)).mul_mem
47
- star_mem' := fun h => star_mem h
48
- algebraMap_mem' z := by
49
- rw [Algebra.algebraMap_eq_smul_one]
50
- exact (structureAlgebra (X := X) (H := H)).smul_mem z structureAlgebra_one
51
-
52
- theorem unitalStructureAlgebra_closed :
53
- IsClosed (unitalStructureAlgebra (X := X) (H := H) : Set (Operator X H)) :=
54
- NonUnitalStarSubalgebra.isClosed_topologicalClosure _
55
-
56
- instance : CompleteSpace (unitalStructureAlgebra (X := X) (H := H)) :=
57
- unitalStructureAlgebra_closed.completeSpace_coe
58
-
59
- instance : CStarAlgebra (unitalStructureAlgebra (X := X) (H := H)) :=
60
- StarSubalgebra.cstarAlgebra _ (h_closed := unitalStructureAlgebra_closed)
61
-
62
- end CoarseAssembly.DiscreteRoe
63
-
64
- end
65
-
66
- end OAI
 
1
+ import OAI.Topology.CoarseAssembly.StructureQuotient
2
+ import Mathlib.Analysis.CStarAlgebra.Spectrum
3
+
4
+ namespace OAI
5
+
6
+ /-! # The unit of the controlled pseudolocal algebra -/
7
+
8
+ noncomputable section
9
+
10
+ namespace CoarseAssembly.DiscreteRoe
11
+
12
+ variable {X H : Type*} [DecidableEq X] [PseudoMetricSpace X]
13
+ [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
14
+
15
+ local instance : IsScalarTower ℂ (Operator X H) (Operator X H) where
16
+ smul_assoc c T S := by ext v; simp
17
+ local instance : SMulCommClass ℂ (Operator X H) (Operator X H) where
18
+ smul_comm c T S := by ext v; simp
19
+ local instance : ContinuousStar (Operator X H) := ⟨operator_star_continuous⟩
20
+
21
+ omit [CompleteSpace H] in
22
+ theorem propagationLE_one : PropagationLE 0 (1 : Operator X H) := by
23
+ intro x y hxy
24
+ have hne : x ≠ y := by intro h; simp [h] at hxy
25
+ ext v
26
+ simp [entry_apply, lp.single_apply, hne]
27
+
28
+ theorem structureGenerator_one : StructureGenerator (1 : Operator X H) := by
29
+ refine ⟨⟨0, le_rfl, propagationLE_one⟩, ?_, ?_⟩
30
+ · intro f
31
+ simp only [one_mul, mul_one, sub_self]
32
+ exact isCompactOperator_zero
33
+ · rw [star_one (Operator X H)]
34
+ intro f
35
+ simp only [one_mul, mul_one, sub_self]
36
+ exact isCompactOperator_zero
37
+
38
+ theorem structureAlgebra_one : (1 : Operator X H) ∈ structureAlgebra (X := X) (H := H) :=
39
+ (NonUnitalStarSubalgebra.le_topologicalClosure _)
40
+ (NonUnitalStarAlgebra.subset_adjoin ℂ _ (structureGenerator_one (X := X) (H := H)))
41
+
42
+ /-- The controlled structure algebra with its actual identity operator. -/
43
+ def unitalStructureAlgebra : StarSubalgebra ℂ (Operator X H) where
44
+ carrier := structureAlgebra (X := X) (H := H)
45
+ add_mem' := (structureAlgebra (X := X) (H := H)).add_mem
46
+ mul_mem' := (structureAlgebra (X := X) (H := H)).mul_mem
47
+ star_mem' := fun h => star_mem h
48
+ algebraMap_mem' z := by
49
+ rw [Algebra.algebraMap_eq_smul_one]
50
+ exact (structureAlgebra (X := X) (H := H)).smul_mem z structureAlgebra_one
51
+
52
+ theorem unitalStructureAlgebra_closed :
53
+ IsClosed (unitalStructureAlgebra (X := X) (H := H) : Set (Operator X H)) :=
54
+ NonUnitalStarSubalgebra.isClosed_topologicalClosure _
55
+
56
+ instance : CompleteSpace (unitalStructureAlgebra (X := X) (H := H)) :=
57
+ unitalStructureAlgebra_closed.completeSpace_coe
58
+
59
+ instance : CStarAlgebra (unitalStructureAlgebra (X := X) (H := H)) :=
60
+ StarSubalgebra.cstarAlgebra _ (h_closed := unitalStructureAlgebra_closed)
61
+
62
+ end CoarseAssembly.DiscreteRoe
63
+
64
+ end
65
+
66
+ end OAI
lean/OAI/Topology/CoarseAssembly/UnitaryHomotopyIndex.lean CHANGED
@@ -1,59 +1,59 @@
1
- import OAI.Topology.CoarseAssembly.CompactIndexPairing
2
-
3
- namespace OAI
4
-
5
- /-! # Homotopy invariance in the unitary argument of the index pairing -/
6
-
7
- noncomputable section
8
-
9
- namespace CoarseAssembly.Analytic
10
-
11
- open scoped CStarAlgebra
12
-
13
- variable {A : Type} [CStarAlgebra A]
14
-
15
- theorem rawCycleIndex_unitaryHomotopy (c : OddCycle A) (u : Interval → A)
16
- (hu : Continuous u) (hul : ∀ t, star (u t) * u t = 1)
17
- (hur : ∀ t, u t * star (u t) = 1) :
18
- rawCycleIndex c (u start) = rawCycleIndex c (u finish) := by
19
- apply fredholmIndex_homotopy (fun t => rawCycleToeplitz c (u t))
20
- · have hrep : Continuous (fun t => c.representation (u t)) := (map_continuous c.representation).comp hu
21
- have hext : Continuous (fun t => unitaryExtension c (u t)) := hrep.add continuous_const
22
- exact ((continuous_const.mul hext).mul continuous_const).add continuous_const
23
- · intro t
24
- exact rawCycleToeplitz_fredholm c (u t) (hul t) (hur t)
25
-
26
- theorem indexPairing_unitaryHomotopy (u : Interval → A) (hu : Continuous u)
27
- (hul : ∀ t, star (u t) * u t = 1) (hur : ∀ t, u t * star (u t) = 1) :
28
- indexPairing (u start) (hul start) (hur start) =
29
- indexPairing (u finish) (hul finish) (hur finish) := by
30
- apply hom_ext
31
- intro c
32
- simp only [indexPairing_cycleClass]
33
- exact rawCycleIndex_unitaryHomotopy c u hu hul hur
34
-
35
- open scoped ZeroAtInfty
36
-
37
- variable {X : Type} [TopologicalSpace X] [CompactSpace X]
38
-
39
- theorem compactIndexPairing_homotopy {f g : C(X, Circle)} (F : f.Homotopy g) :
40
- compactIndexPairing f = compactIndexPairing g := by
41
- let u : Interval → C(X, ℂ) := fun t => compactUnitary (homotopySlice F t)
42
- have hu : Continuous u := by
43
- let coeCircle : C(Circle, ℂ) := ⟨fun z => (z : ℂ), continuous_subtype_val⟩
44
- exact (ContinuousMap.continuous_postcomp coeCircle).comp F.toContinuousMap.curry.continuous
45
- have hul (t : Interval) : star (u t) * u t = 1 := compactUnitary_star_mul _
46
- have hur (t : Interval) : u t * star (u t) = 1 := compactUnitary_mul_star _
47
- have hi := indexPairing_unitaryHomotopy u hu hul hur
48
- have he : indexPairing (compactUnitary f) (compactUnitary_star_mul f)
49
- (compactUnitary_mul_star f) = indexPairing (compactUnitary g)
50
- (compactUnitary_star_mul g) (compactUnitary_mul_star g) := by
51
- simpa only [u, homotopySlice_start, homotopySlice_finish] using hi
52
- unfold compactIndexPairing
53
- rw [he]
54
-
55
- end CoarseAssembly.Analytic
56
-
57
- end
58
-
59
- end OAI
 
1
+ import OAI.Topology.CoarseAssembly.CompactIndexPairing
2
+
3
+ namespace OAI
4
+
5
+ /-! # Homotopy invariance in the unitary argument of the index pairing -/
6
+
7
+ noncomputable section
8
+
9
+ namespace CoarseAssembly.Analytic
10
+
11
+ open scoped CStarAlgebra
12
+
13
+ variable {A : Type} [CStarAlgebra A]
14
+
15
+ theorem rawCycleIndex_unitaryHomotopy (c : OddCycle A) (u : Interval → A)
16
+ (hu : Continuous u) (hul : ∀ t, star (u t) * u t = 1)
17
+ (hur : ∀ t, u t * star (u t) = 1) :
18
+ rawCycleIndex c (u start) = rawCycleIndex c (u finish) := by
19
+ apply fredholmIndex_homotopy (fun t => rawCycleToeplitz c (u t))
20
+ · have hrep : Continuous (fun t => c.representation (u t)) := (map_continuous c.representation).comp hu
21
+ have hext : Continuous (fun t => unitaryExtension c (u t)) := hrep.add continuous_const
22
+ exact ((continuous_const.mul hext).mul continuous_const).add continuous_const
23
+ · intro t
24
+ exact rawCycleToeplitz_fredholm c (u t) (hul t) (hur t)
25
+
26
+ theorem indexPairing_unitaryHomotopy (u : Interval → A) (hu : Continuous u)
27
+ (hul : ∀ t, star (u t) * u t = 1) (hur : ∀ t, u t * star (u t) = 1) :
28
+ indexPairing (u start) (hul start) (hur start) =
29
+ indexPairing (u finish) (hul finish) (hur finish) := by
30
+ apply hom_ext
31
+ intro c
32
+ simp only [indexPairing_cycleClass]
33
+ exact rawCycleIndex_unitaryHomotopy c u hu hul hur
34
+
35
+ open scoped ZeroAtInfty
36
+
37
+ variable {X : Type} [TopologicalSpace X] [CompactSpace X]
38
+
39
+ theorem compactIndexPairing_homotopy {f g : C(X, Circle)} (F : f.Homotopy g) :
40
+ compactIndexPairing f = compactIndexPairing g := by
41
+ let u : Interval → C(X, ℂ) := fun t => compactUnitary (homotopySlice F t)
42
+ have hu : Continuous u := by
43
+ let coeCircle : C(Circle, ℂ) := ⟨fun z => (z : ℂ), continuous_subtype_val⟩
44
+ exact (ContinuousMap.continuous_postcomp coeCircle).comp F.toContinuousMap.curry.continuous
45
+ have hul (t : Interval) : star (u t) * u t = 1 := compactUnitary_star_mul _
46
+ have hur (t : Interval) : u t * star (u t) = 1 := compactUnitary_mul_star _
47
+ have hi := indexPairing_unitaryHomotopy u hu hul hur
48
+ have he : indexPairing (compactUnitary f) (compactUnitary_star_mul f)
49
+ (compactUnitary_mul_star f) = indexPairing (compactUnitary g)
50
+ (compactUnitary_star_mul g) (compactUnitary_mul_star g) := by
51
+ simpa only [u, homotopySlice_start, homotopySlice_finish] using hi
52
+ unfold compactIndexPairing
53
+ rw [he]
54
+
55
+ end CoarseAssembly.Analytic
56
+
57
+ end
58
+
59
+ end OAI
lean/OAI/Topology/CoarseAssembly/UnitaryIndex.lean CHANGED
@@ -1,76 +1,76 @@
1
- import OAI.Topology.CoarseAssembly.DegenerateCutDown
2
-
3
- namespace OAI
4
-
5
- /-! # Unitary invariance of the explicit cycle index -/
6
-
7
- noncomputable section
8
-
9
- namespace CoarseAssembly.Analytic
10
-
11
- variable {H K : HilbertSpace}
12
-
13
- theorem operatorConjugation_equiv (e : H ≃ₗᵢ[ℂ] K) (T : End H) :
14
- operatorConjugation e.toLinearIsometry T = e.conjStarAlgEquiv T := by
15
- have he : e.toLinearIsometry.toContinuousLinearMap.adjoint =
16
- (e.symm : K →L[ℂ] H) := e.adjoint_eq_symm
17
- ext x
18
- change e (T (e.toLinearIsometry.toContinuousLinearMap.adjoint x)) = e (T (e.symm x))
19
- rw [he]
20
- rfl
21
-
22
- theorem symmetricCutDown_map (φ : End H →⋆ₐ[ℂ] End K) (P F : End H) :
23
- φ (symmetricCutDown P F) = symmetricCutDown (φ P) (φ F) := by
24
- have hs (r : ℝ) (T : End H) : φ (r • T) = r • φ T := φ.toAlgHom.map_smul_of_tower r T
25
- unfold symmetricCutDown
26
- rw [map_add, hs, map_add, map_star,
27
- map_mul, map_mul, map_sub, map_one]
28
-
29
- theorem positiveProjection_map (φ : End H →⋆ₐ[ℂ] End K) (F : End H) :
30
- φ (positiveProjection F) = positiveProjection (φ F) := by
31
- have hs (r : ℝ) (T : End H) : φ (r • T) = r • φ T := φ.toAlgHom.map_smul_of_tower r T
32
- unfold positiveProjection
33
- rw [hs, map_add, map_one]
34
-
35
- theorem toeplitzCompression_map (φ : End H →⋆ₐ[ℂ] End K) (P U : End H) :
36
- φ (toeplitzCompression P U) = toeplitzCompression (φ P) (φ U) := by
37
- simp only [toeplitzCompression, map_add, map_mul, map_sub, map_one]
38
-
39
- theorem fredholmIndex_conjugation (e : H ≃ₗᵢ[ℂ] K) (T : End H) (hT : T.IsFredholm) :
40
- (e.conjStarAlgEquiv T).toLinearMap.index = T.toLinearMap.index := by
41
- have he := e.toContinuousLinearEquiv.isFredholm
42
- have hei := e.symm.toContinuousLinearEquiv.isFredholm
43
- have hz : (e.toContinuousLinearEquiv : H →L[ℂ] K).toLinearMap.index = 0 :=
44
- LinearMap.index_of_bijective e.bijective
45
- have hzi : (e.symm.toContinuousLinearEquiv : K →L[ℂ] H).toLinearMap.index = 0 :=
46
- LinearMap.index_of_bijective e.symm.bijective
47
- change ((e.toContinuousLinearEquiv : H →L[ℂ] K) ∘L T ∘L
48
- (e.symm.toContinuousLinearEquiv : K →L[ℂ] H)).toLinearMap.index = _
49
- rw [he.index_comp (hT.comp hei), hT.index_comp hei, hz, hzi, zero_add, add_zero]
50
-
51
- variable {A : Type} [CStarAlgebra A]
52
-
53
- theorem rawCycleToeplitz_unitary (c d : OddCycle A) (h : c.UnitaryEquivalent d) (u : A) :
54
- rawCycleToeplitz d u = h.unitary.conjStarAlgEquiv (rawCycleToeplitz c u) := by
55
- let φ : End c.space →⋆ₐ[ℂ] End d.space := h.unitary.conjStarAlgEquiv.toStarAlgHom
56
- have hrep (a : A) : d.representation a = φ (c.representation a) :=
57
- (h.representation_eq a).trans (operatorConjugation_equiv h.unitary _)
58
- have hop : d.operator = φ c.operator :=
59
- h.operator_eq.trans (operatorConjugation_equiv h.unitary _)
60
- change rawCycleToeplitz d u = φ (rawCycleToeplitz c u)
61
- unfold rawCycleToeplitz
62
- rw [toeplitzCompression_map φ, positiveProjection_map φ, symmetricCutDown_map φ]
63
- simp only [unitaryExtension, map_add, map_sub, map_one]
64
- rw [hop, hrep 1, hrep u]
65
-
66
- theorem rawCycleIndex_unitary (c d : OddCycle A) (h : c.UnitaryEquivalent d) (u : A)
67
- (hul : star u * u = 1) (hur : u * star u = 1) : rawCycleIndex d u = rawCycleIndex c u := by
68
- unfold rawCycleIndex
69
- rw [rawCycleToeplitz_unitary c d h u]
70
- exact fredholmIndex_conjugation h.unitary _ (rawCycleToeplitz_fredholm c u hul hur)
71
-
72
- end CoarseAssembly.Analytic
73
-
74
- end
75
-
76
- end OAI
 
1
+ import OAI.Topology.CoarseAssembly.DegenerateCutDown
2
+
3
+ namespace OAI
4
+
5
+ /-! # Unitary invariance of the explicit cycle index -/
6
+
7
+ noncomputable section
8
+
9
+ namespace CoarseAssembly.Analytic
10
+
11
+ variable {H K : HilbertSpace}
12
+
13
+ theorem operatorConjugation_equiv (e : H ≃ₗᵢ[ℂ] K) (T : End H) :
14
+ operatorConjugation e.toLinearIsometry T = e.conjStarAlgEquiv T := by
15
+ have he : e.toLinearIsometry.toContinuousLinearMap.adjoint =
16
+ (e.symm : K →L[ℂ] H) := e.adjoint_eq_symm
17
+ ext x
18
+ change e (T (e.toLinearIsometry.toContinuousLinearMap.adjoint x)) = e (T (e.symm x))
19
+ rw [he]
20
+ rfl
21
+
22
+ theorem symmetricCutDown_map (φ : End H →⋆ₐ[ℂ] End K) (P F : End H) :
23
+ φ (symmetricCutDown P F) = symmetricCutDown (φ P) (φ F) := by
24
+ have hs (r : ℝ) (T : End H) : φ (r • T) = r • φ T := φ.toAlgHom.map_smul_of_tower r T
25
+ unfold symmetricCutDown
26
+ rw [map_add, hs, map_add, map_star,
27
+ map_mul, map_mul, map_sub, map_one]
28
+
29
+ theorem positiveProjection_map (φ : End H →⋆ₐ[ℂ] End K) (F : End H) :
30
+ φ (positiveProjection F) = positiveProjection (φ F) := by
31
+ have hs (r : ℝ) (T : End H) : φ (r • T) = r • φ T := φ.toAlgHom.map_smul_of_tower r T
32
+ unfold positiveProjection
33
+ rw [hs, map_add, map_one]
34
+
35
+ theorem toeplitzCompression_map (φ : End H →⋆ₐ[ℂ] End K) (P U : End H) :
36
+ φ (toeplitzCompression P U) = toeplitzCompression (φ P) (φ U) := by
37
+ simp only [toeplitzCompression, map_add, map_mul, map_sub, map_one]
38
+
39
+ theorem fredholmIndex_conjugation (e : H ≃ₗᵢ[ℂ] K) (T : End H) (hT : T.IsFredholm) :
40
+ (e.conjStarAlgEquiv T).toLinearMap.index = T.toLinearMap.index := by
41
+ have he := e.toContinuousLinearEquiv.isFredholm
42
+ have hei := e.symm.toContinuousLinearEquiv.isFredholm
43
+ have hz : (e.toContinuousLinearEquiv : H →L[ℂ] K).toLinearMap.index = 0 :=
44
+ LinearMap.index_of_bijective e.bijective
45
+ have hzi : (e.symm.toContinuousLinearEquiv : K →L[ℂ] H).toLinearMap.index = 0 :=
46
+ LinearMap.index_of_bijective e.symm.bijective
47
+ change ((e.toContinuousLinearEquiv : H →L[ℂ] K) ∘L T ∘L
48
+ (e.symm.toContinuousLinearEquiv : K →L[ℂ] H)).toLinearMap.index = _
49
+ rw [he.index_comp (hT.comp hei), hT.index_comp hei, hz, hzi, zero_add, add_zero]
50
+
51
+ variable {A : Type} [CStarAlgebra A]
52
+
53
+ theorem rawCycleToeplitz_unitary (c d : OddCycle A) (h : c.UnitaryEquivalent d) (u : A) :
54
+ rawCycleToeplitz d u = h.unitary.conjStarAlgEquiv (rawCycleToeplitz c u) := by
55
+ let φ : End c.space →⋆ₐ[ℂ] End d.space := h.unitary.conjStarAlgEquiv.toStarAlgHom
56
+ have hrep (a : A) : d.representation a = φ (c.representation a) :=
57
+ (h.representation_eq a).trans (operatorConjugation_equiv h.unitary _)
58
+ have hop : d.operator = φ c.operator :=
59
+ h.operator_eq.trans (operatorConjugation_equiv h.unitary _)
60
+ change rawCycleToeplitz d u = φ (rawCycleToeplitz c u)
61
+ unfold rawCycleToeplitz
62
+ rw [toeplitzCompression_map φ, positiveProjection_map φ, symmetricCutDown_map φ]
63
+ simp only [unitaryExtension, map_add, map_sub, map_one]
64
+ rw [hop, hrep 1, hrep u]
65
+
66
+ theorem rawCycleIndex_unitary (c d : OddCycle A) (h : c.UnitaryEquivalent d) (u : A)
67
+ (hul : star u * u = 1) (hur : u * star u = 1) : rawCycleIndex d u = rawCycleIndex c u := by
68
+ unfold rawCycleIndex
69
+ rw [rawCycleToeplitz_unitary c d h u]
70
+ exact fredholmIndex_conjugation h.unitary _ (rawCycleToeplitz_fredholm c u hul hur)
71
+
72
+ end CoarseAssembly.Analytic
73
+
74
+ end
75
+
76
+ end OAI
lean/OAI/Topology/CoarseAssembly/UnrestrictedBoundedHomotopy.lean CHANGED
@@ -1,80 +1,80 @@
1
- import OAI.Topology.CoarseAssembly.BoundedFamilySubdivision
2
-
3
- namespace OAI
4
-
5
- /-! # Whole-union boundary invariance without uniform homotopy speeds
6
-
7
- Finite subdivisions are chosen separately on each component. The two sums
8
- of consecutive samples have uniformly close localized operators. Rotation
9
- and direct-sum additivity cancel the common interior samples in actual Roe K₁.
10
- -/
11
-
12
- noncomputable section
13
-
14
- namespace CoarseAssembly.Rips
15
-
16
- open Analytic DiscreteRoe
17
-
18
- variable {Q : ℕ → Type} [∀ i, MetricSpace (Q i)] [∀ i, Fintype (Q i)]
19
- [∀ i, DecidableEq (Q i)] {r : ℝ}
20
-
21
- namespace BoundedFamilyHomotopy
22
-
23
- theorem sampled_telescope (h : BoundedFamilyHomotopy Q r)
24
- (χ : ∀ i, C(Point (Q i) r, ℂ) →⋆ₐ[ℂ] ℂ)
25
- (o : ∀ i, Q i) (hr : 0 ≤ r) (N : ℕ → ℕ) (τ : ℕ → ℕ → Interval)
26
- (hnear : (h.sample χ (fun i => N i + 1) τ).boundary o hr =
27
- (h.sample χ (fun i => N i + 1) (fun i j => τ i (j + 1))).boundary o hr) :
28
- (h.eval (fun i => τ i 0)).boundary o hr =
29
- (h.eval (fun i => τ i (N i + 1))).boundary o hr := by
30
- let := separatedMetric o
31
- have hleft := h.sample_head_tail_boundary χ o hr N τ
32
- have hright := h.sample_head_tail_boundary χ o hr N
33
- (fun i => lastEndpointFirst (N i) (τ i))
34
- have hh : (fun i => lastEndpointFirst (N i) (τ i) 0) =
35
- (fun i => τ i (N i + 1)) := funext (fun i => lastEndpointFirst_zero (N i) (τ i))
36
- have ht : (fun i j => lastEndpointFirst (N i) (τ i) (j + 1)) =
37
- (fun i j => τ i (j + 1)) := funext (fun i => funext (fun j => lastEndpointFirst_succ (N i) (τ i) j))
38
- have hh' := congrArg (fun t : ℕ → Interval => (h.eval t).boundary o hr) hh
39
- have ht' := congrArg (fun t : ℕ → ℕ → Interval => (h.sample χ N t).boundary o hr) ht
40
- have hright' := hright.trans (congrArg₂ (fun a b => a + b) hh' ht')
41
- have hrotate := h.sample_rotate_boundary χ o hr N τ
42
- exact add_right_cancel (hleft.symm.trans (hnear.trans (hrotate.symm.trans hright')))
43
-
44
- theorem endpoint_boundary_eq (h : BoundedFamilyHomotopy Q r)
45
- (χ : ∀ i, C(Point (Q i) r, ℂ) →⋆ₐ[ℂ] ℂ)
46
- (o : ∀ i, Q i) (hr : 0 ≤ r) :
47
- (h.eval (fun _ => start)).boundary o hr = (h.eval (fun _ => finish)).boundary o hr := by
48
- let s := h.smallSubdivision
49
- have he := h.sampled_telescope χ o hr s.count s.time
50
- (h.sampled_boundary_eq χ o hr s.count s.time s.step)
51
- have h0 : (fun i => s.time i 0) = (fun _ => start) := funext s.at_start
52
- have h1 : (fun i => s.time i (s.count i + 1)) = (fun _ => finish) := funext s.at_finish
53
- have he0 := congrArg (fun t : ℕ → Interval => (h.eval t).boundary o hr) h0
54
- have he1 := congrArg (fun t : ℕ → Interval => (h.eval t).boundary o hr) h1
55
- exact he0.symm.trans (he.trans he1)
56
-
57
- end BoundedFamilyHomotopy
58
-
59
- /-- Arbitrary componentwise continuous unital self-adjoint homotopies with
60
- a common operator bound preserve the whole-union Roe boundary. -/
61
- theorem ampleRipsFamilyBoundary_boundedHomotopy
62
- (o : ∀ i, Q i) (hr : 0 ≤ r)
63
- (χ : ∀ i, C(Point (Q i) r, ℂ) →⋆ₐ[ℂ] ℂ)
64
- (h : ∀ i, OddHomotopy C(Point (Q i) r, ℂ))
65
- (hπ : ∀ t i, (h i).representation t 1 = 1)
66
- (hs : ∀ t i, IsSelfAdjoint ((h i).operator t))
67
- (C : ℝ) (hC : 1 ≤ C) (hn : ∀ t i, ‖(h i).operator t‖ ≤ C) :
68
- letI := separatedMetric o
69
- ampleRipsFamilyBoundary o r hr (fun i => (h i).eval start) (hπ start) (hs start)
70
- C (zero_le_one.trans hC) (hn start) =
71
- ampleRipsFamilyBoundary o r hr (fun i => (h i).eval finish) (hπ finish) (hs finish)
72
- C (zero_le_one.trans hC) (hn finish) := by
73
- let H : BoundedFamilyHomotopy Q r := ⟨h, hπ, hs, C, hC, hn⟩
74
- exact H.endpoint_boundary_eq χ o hr
75
-
76
- end CoarseAssembly.Rips
77
-
78
- end
79
-
80
- end OAI
 
1
+ import OAI.Topology.CoarseAssembly.BoundedFamilySubdivision
2
+
3
+ namespace OAI
4
+
5
+ /-! # Whole-union boundary invariance without uniform homotopy speeds
6
+
7
+ Finite subdivisions are chosen separately on each component. The two sums
8
+ of consecutive samples have uniformly close localized operators. Rotation
9
+ and direct-sum additivity cancel the common interior samples in actual Roe K₁.
10
+ -/
11
+
12
+ noncomputable section
13
+
14
+ namespace CoarseAssembly.Rips
15
+
16
+ open Analytic DiscreteRoe
17
+
18
+ variable {Q : ℕ → Type} [∀ i, MetricSpace (Q i)] [∀ i, Fintype (Q i)]
19
+ [∀ i, DecidableEq (Q i)] {r : ℝ}
20
+
21
+ namespace BoundedFamilyHomotopy
22
+
23
+ theorem sampled_telescope (h : BoundedFamilyHomotopy Q r)
24
+ (χ : ∀ i, C(Point (Q i) r, ℂ) →⋆ₐ[ℂ] ℂ)
25
+ (o : ∀ i, Q i) (hr : 0 ≤ r) (N : ℕ → ℕ) (τ : ℕ → ℕ → Interval)
26
+ (hnear : (h.sample χ (fun i => N i + 1) τ).boundary o hr =
27
+ (h.sample χ (fun i => N i + 1) (fun i j => τ i (j + 1))).boundary o hr) :
28
+ (h.eval (fun i => τ i 0)).boundary o hr =
29
+ (h.eval (fun i => τ i (N i + 1))).boundary o hr := by
30
+ let := separatedMetric o
31
+ have hleft := h.sample_head_tail_boundary χ o hr N τ
32
+ have hright := h.sample_head_tail_boundary χ o hr N
33
+ (fun i => lastEndpointFirst (N i) (τ i))
34
+ have hh : (fun i => lastEndpointFirst (N i) (τ i) 0) =
35
+ (fun i => τ i (N i + 1)) := funext (fun i => lastEndpointFirst_zero (N i) (τ i))
36
+ have ht : (fun i j => lastEndpointFirst (N i) (τ i) (j + 1)) =
37
+ (fun i j => τ i (j + 1)) := funext (fun i => funext (fun j => lastEndpointFirst_succ (N i) (τ i) j))
38
+ have hh' := congrArg (fun t : ℕ → Interval => (h.eval t).boundary o hr) hh
39
+ have ht' := congrArg (fun t : ℕ → ℕ → Interval => (h.sample χ N t).boundary o hr) ht
40
+ have hright' := hright.trans (congrArg₂ (fun a b => a + b) hh' ht')
41
+ have hrotate := h.sample_rotate_boundary χ o hr N τ
42
+ exact add_right_cancel (hleft.symm.trans (hnear.trans (hrotate.symm.trans hright')))
43
+
44
+ theorem endpoint_boundary_eq (h : BoundedFamilyHomotopy Q r)
45
+ (χ : ∀ i, C(Point (Q i) r, ℂ) →⋆ₐ[ℂ] ℂ)
46
+ (o : ∀ i, Q i) (hr : 0 ≤ r) :
47
+ (h.eval (fun _ => start)).boundary o hr = (h.eval (fun _ => finish)).boundary o hr := by
48
+ let s := h.smallSubdivision
49
+ have he := h.sampled_telescope χ o hr s.count s.time
50
+ (h.sampled_boundary_eq χ o hr s.count s.time s.step)
51
+ have h0 : (fun i => s.time i 0) = (fun _ => start) := funext s.at_start
52
+ have h1 : (fun i => s.time i (s.count i + 1)) = (fun _ => finish) := funext s.at_finish
53
+ have he0 := congrArg (fun t : ℕ → Interval => (h.eval t).boundary o hr) h0
54
+ have he1 := congrArg (fun t : ℕ → Interval => (h.eval t).boundary o hr) h1
55
+ exact he0.symm.trans (he.trans he1)
56
+
57
+ end BoundedFamilyHomotopy
58
+
59
+ /-- Arbitrary componentwise continuous unital self-adjoint homotopies with
60
+ a common operator bound preserve the whole-union Roe boundary. -/
61
+ theorem ampleRipsFamilyBoundary_boundedHomotopy
62
+ (o : ∀ i, Q i) (hr : 0 ≤ r)
63
+ (χ : ∀ i, C(Point (Q i) r, ℂ) →⋆ₐ[ℂ] ℂ)
64
+ (h : ∀ i, OddHomotopy C(Point (Q i) r, ℂ))
65
+ (hπ : ∀ t i, (h i).representation t 1 = 1)
66
+ (hs : ∀ t i, IsSelfAdjoint ((h i).operator t))
67
+ (C : ℝ) (hC : 1 ≤ C) (hn : ∀ t i, ‖(h i).operator t‖ ≤ C) :
68
+ letI := separatedMetric o
69
+ ampleRipsFamilyBoundary o r hr (fun i => (h i).eval start) (hπ start) (hs start)
70
+ C (zero_le_one.trans hC) (hn start) =
71
+ ampleRipsFamilyBoundary o r hr (fun i => (h i).eval finish) (hπ finish) (hs finish)
72
+ C (zero_le_one.trans hC) (hn finish) := by
73
+ let H : BoundedFamilyHomotopy Q r := ⟨h, hπ, hs, C, hC, hn⟩
74
+ exact H.endpoint_boundary_eq χ o hr
75
+
76
+ end CoarseAssembly.Rips
77
+
78
+ end
79
+
80
+ end OAI
lean/OAI/Topology/CoarseAssembly/WindingHomotopy.lean CHANGED
@@ -1,83 +1,83 @@
1
- import OAI.Topology.CoarseAssembly.MultiplicativeIndexPairing
2
-
3
- namespace OAI
4
-
5
- /-! # The explicit homotopy from a lifted loop to its winding power -/
6
-
7
- noncomputable section
8
-
9
- namespace CoarseAssembly
10
-
11
- open unitInterval
12
-
13
- /-- The degree-`n` self-map of the additive circle. -/
14
- def circleDegree (n : ℤ) : C(WindingCircle, WindingCircle) :=
15
- ⟨fun z => n • z, continuous_id.zsmul n⟩
16
-
17
- theorem windingCircle_intCast (n : ℤ) : ((n : ℝ) : WindingCircle) = 0 := by
18
- have h : ((n • (1 : ℝ) : ℝ) : WindingCircle) = 0 := by
19
- rw [AddCircle.coe_zsmul, AddCircle.coe_period, smul_zero]
20
- simpa only [zsmul_eq_mul, mul_one] using h
21
-
22
- /-- Straight-line interpolation of the real lift with `t ↦ n*t`. -/
23
- def windingInterpolation (n : ℤ) (L : Path (0 : ℝ) (n : ℝ)) (s : unitInterval) :
24
- Path (0 : WindingCircle) 0 where
25
- toFun t := (((1 - (s : ℝ)) * L t + (s : ℝ) * n * (t : ℝ) : ℝ) : WindingCircle)
26
- continuous_toFun := (AddCircle.continuous_mk' 1).comp
27
- ((L.continuous.const_mul _).add (continuous_subtype_val.const_mul _))
28
- source' := by simp
29
- target' := by
30
- have he : (1 - (s : ℝ)) * (n : ℝ) + (s : ℝ) * n * 1 = n := by ring
31
- simp only [Path.target, Set.Icc.coe_one, he]
32
- exact windingCircle_intCast n
33
-
34
- def windingInterpolationMap (n : ℤ) (L : Path (0 : ℝ) (n : ℝ)) :
35
- unitInterval × WindingCircle → WindingCircle :=
36
- fun p => loopCircle (windingInterpolation n L p.1) p.2
37
-
38
- theorem windingInterpolationMap_continuous (n : ℤ) (L : Path (0 : ℝ) (n : ℝ)) :
39
- Continuous (windingInterpolationMap n L) := by
40
- let q : unitInterval × unitInterval → unitInterval × WindingCircle :=
41
- fun p => (p.1, ((p.2 : ℝ) : WindingCircle))
42
- have hq : Continuous q := continuous_fst.prodMk
43
- ((AddCircle.continuous_mk' 1).comp (continuous_subtype_val.comp continuous_snd))
44
- have hqs : Function.Surjective q := by
45
- rintro ⟨s, z⟩
46
- obtain ⟨t, ht⟩ := circle_parameter_surjective z
47
- exact ⟨(s, t), Prod.ext rfl ht⟩
48
- apply ((hq.isClosedMap.isQuotientMap hq hqs).continuous_iff).2
49
- have he : windingInterpolationMap n L ∘ q = fun p : unitInterval × unitInterval =>
50
- (((1 - (p.1 : ℝ)) * L p.2 + (p.1 : ℝ) * n * (p.2 : ℝ) : ℝ) : WindingCircle) := by
51
- funext p
52
- exact loopCircle_apply (windingInterpolation n L p.1) p.2
53
- rw [he]
54
- apply (AddCircle.continuous_mk' 1).comp
55
- exact ((continuous_const.sub (continuous_subtype_val.comp continuous_fst)).mul
56
- (L.continuous.comp continuous_snd)).add
57
- (((continuous_subtype_val.comp continuous_fst).mul continuous_const).mul
58
- (continuous_subtype_val.comp continuous_snd))
59
-
60
- def windingHomotopy (g : C(WindingCircle, WindingCircle)) (n : ℤ)
61
- (L : Path (0 : ℝ) (n : ℝ))
62
- (hL : ∀ t : unitInterval, g (t : ℝ) = (L t : WindingCircle)) :
63
- g.Homotopy (circleDegree n) where
64
- toFun := windingInterpolationMap n L
65
- continuous_toFun := windingInterpolationMap_continuous n L
66
- map_zero_left z := by
67
- obtain ⟨t, rfl⟩ := circle_parameter_surjective z
68
- rw [windingInterpolationMap, loopCircle_apply, hL t]
69
- change ((((1 - (0 : ℝ)) * L t + (0 : ℝ) * n * (t : ℝ)) : ℝ) : WindingCircle) = _
70
- simp
71
- map_one_left z := by
72
- obtain ⟨t, rfl⟩ := circle_parameter_surjective z
73
- rw [windingInterpolationMap, loopCircle_apply]
74
- change ((((1 - (1 : ℝ)) * L t + (1 : ℝ) * n * (t : ℝ)) : ℝ) : WindingCircle) =
75
- n • ((t : ℝ) : WindingCircle)
76
- simpa only [sub_self, zero_mul, zero_add, one_mul, zsmul_eq_mul] using
77
- (AddCircle.coe_zsmul (p := (1 : ℝ)) (n := n) (x := (t : ℝ)))
78
-
79
- end CoarseAssembly
80
-
81
- end
82
-
83
- end OAI
 
1
+ import OAI.Topology.CoarseAssembly.MultiplicativeIndexPairing
2
+
3
+ namespace OAI
4
+
5
+ /-! # The explicit homotopy from a lifted loop to its winding power -/
6
+
7
+ noncomputable section
8
+
9
+ namespace CoarseAssembly
10
+
11
+ open unitInterval
12
+
13
+ /-- The degree-`n` self-map of the additive circle. -/
14
+ def circleDegree (n : ℤ) : C(WindingCircle, WindingCircle) :=
15
+ ⟨fun z => n • z, continuous_id.zsmul n⟩
16
+
17
+ theorem windingCircle_intCast (n : ℤ) : ((n : ℝ) : WindingCircle) = 0 := by
18
+ have h : ((n • (1 : ℝ) : ℝ) : WindingCircle) = 0 := by
19
+ rw [AddCircle.coe_zsmul, AddCircle.coe_period, smul_zero]
20
+ simpa only [zsmul_eq_mul, mul_one] using h
21
+
22
+ /-- Straight-line interpolation of the real lift with `t ↦ n*t`. -/
23
+ def windingInterpolation (n : ℤ) (L : Path (0 : ℝ) (n : ℝ)) (s : unitInterval) :
24
+ Path (0 : WindingCircle) 0 where
25
+ toFun t := (((1 - (s : ℝ)) * L t + (s : ℝ) * n * (t : ℝ) : ℝ) : WindingCircle)
26
+ continuous_toFun := (AddCircle.continuous_mk' 1).comp
27
+ ((L.continuous.const_mul _).add (continuous_subtype_val.const_mul _))
28
+ source' := by simp
29
+ target' := by
30
+ have he : (1 - (s : ℝ)) * (n : ℝ) + (s : ℝ) * n * 1 = n := by ring
31
+ simp only [Path.target, Set.Icc.coe_one, he]
32
+ exact windingCircle_intCast n
33
+
34
+ def windingInterpolationMap (n : ℤ) (L : Path (0 : ℝ) (n : ℝ)) :
35
+ unitInterval × WindingCircle → WindingCircle :=
36
+ fun p => loopCircle (windingInterpolation n L p.1) p.2
37
+
38
+ theorem windingInterpolationMap_continuous (n : ℤ) (L : Path (0 : ℝ) (n : ℝ)) :
39
+ Continuous (windingInterpolationMap n L) := by
40
+ let q : unitInterval × unitInterval → unitInterval × WindingCircle :=
41
+ fun p => (p.1, ((p.2 : ℝ) : WindingCircle))
42
+ have hq : Continuous q := continuous_fst.prodMk
43
+ ((AddCircle.continuous_mk' 1).comp (continuous_subtype_val.comp continuous_snd))
44
+ have hqs : Function.Surjective q := by
45
+ rintro ⟨s, z⟩
46
+ obtain ⟨t, ht⟩ := circle_parameter_surjective z
47
+ exact ⟨(s, t), Prod.ext rfl ht⟩
48
+ apply ((hq.isClosedMap.isQuotientMap hq hqs).continuous_iff).2
49
+ have he : windingInterpolationMap n L ∘ q = fun p : unitInterval × unitInterval =>
50
+ (((1 - (p.1 : ℝ)) * L p.2 + (p.1 : ℝ) * n * (p.2 : ℝ) : ℝ) : WindingCircle) := by
51
+ funext p
52
+ exact loopCircle_apply (windingInterpolation n L p.1) p.2
53
+ rw [he]
54
+ apply (AddCircle.continuous_mk' 1).comp
55
+ exact ((continuous_const.sub (continuous_subtype_val.comp continuous_fst)).mul
56
+ (L.continuous.comp continuous_snd)).add
57
+ (((continuous_subtype_val.comp continuous_fst).mul continuous_const).mul
58
+ (continuous_subtype_val.comp continuous_snd))
59
+
60
+ def windingHomotopy (g : C(WindingCircle, WindingCircle)) (n : ℤ)
61
+ (L : Path (0 : ℝ) (n : ℝ))
62
+ (hL : ∀ t : unitInterval, g (t : ℝ) = (L t : WindingCircle)) :
63
+ g.Homotopy (circleDegree n) where
64
+ toFun := windingInterpolationMap n L
65
+ continuous_toFun := windingInterpolationMap_continuous n L
66
+ map_zero_left z := by
67
+ obtain ⟨t, rfl⟩ := circle_parameter_surjective z
68
+ rw [windingInterpolationMap, loopCircle_apply, hL t]
69
+ change ((((1 - (0 : ℝ)) * L t + (0 : ℝ) * n * (t : ℝ)) : ℝ) : WindingCircle) = _
70
+ simp
71
+ map_one_left z := by
72
+ obtain ⟨t, rfl⟩ := circle_parameter_surjective z
73
+ rw [windingInterpolationMap, loopCircle_apply]
74
+ change ((((1 - (1 : ℝ)) * L t + (1 : ℝ) * n * (t : ℝ)) : ℝ) : WindingCircle) =
75
+ n • ((t : ℝ) : WindingCircle)
76
+ simpa only [sub_self, zero_mul, zero_add, one_mul, zsmul_eq_mul] using
77
+ (AddCircle.coe_zsmul (p := (1 : ℝ)) (n := n) (x := (t : ℝ)))
78
+
79
+ end CoarseAssembly
80
+
81
+ end
82
+
83
+ end OAI
lean/OAI/Topology/CoarseAssembly/WindingIndexEvaluation.lean CHANGED
@@ -1,60 +1,60 @@
1
- import OAI.Topology.CoarseAssembly.WindingHomotopy
2
-
3
- namespace OAI
4
-
5
- /-! # Reducing the winding index formula to one generator evaluation
6
-
7
- The pairing, its naturality, homotopy invariance and power law are proved.
8
- Only an actual circle class with coordinate index one remains to construct.
9
- -/
10
-
11
- noncomputable section
12
-
13
- namespace CoarseAssembly
14
-
15
- open Analytic unitInterval
16
-
17
- theorem circleUnitary_degree (n : ℤ) : circleUnitary (circleDegree n) =
18
- circleUnitary (ContinuousMap.id WindingCircle) ^ n := by
19
- apply ContinuousMap.ext
20
- intro z
21
- exact AddCircle.toCircle_zsmul z n
22
-
23
- theorem winding_index_hom (g : C(WindingCircle, WindingCircle)) (n : ℤ)
24
- (L : Path (0 : ℝ) (n : ℝ))
25
- (hL : ∀ t : unitInterval, g (t : ℝ) = (L t : WindingCircle)) :
26
- compactIndexPairing (circleUnitary g) =
27
- n • compactIndexPairing (circleUnitary (ContinuousMap.id WindingCircle)) := by
28
- let toCircleMap : C(WindingCircle, Circle) := ⟨AddCircle.toCircle, AddCircle.continuous_toCircle⟩
29
- have h := compactIndexPairing_homotopy
30
- ((ContinuousMap.Homotopy.refl toCircleMap).comp (windingHomotopy g n L hL))
31
- change compactIndexPairing (circleUnitary g) = compactIndexPairing (circleUnitary (circleDegree n)) at h
32
- rw [circleUnitary_degree, compactIndexPairing_zpow] at h
33
- exact h
34
-
35
- theorem winding_index (g : C(WindingCircle, WindingCircle)) (n : ℤ)
36
- (L : Path (0 : ℝ) (n : ℝ))
37
- (hL : ∀ t : unitInterval, g (t : ℝ) = (L t : WindingCircle))
38
- (α : LocallyFiniteK1 WindingCircle) :
39
- compactIndexPairing (circleUnitary g) α =
40
- n * compactIndexPairing (circleUnitary (ContinuousMap.id WindingCircle)) α := by
41
- simpa only [AddMonoidHom.smul_apply, zsmul_eq_mul, Int.cast_id] using
42
- DFunLike.congr_fun (winding_index_hom g n L hL) α
43
-
44
- /-- All the published circle fields follow from a single coordinate-index-one class. -/
45
- def circleInputOfIndexOne (α : LocallyFiniteK1 WindingCircle)
46
- (hα : compactIndexPairing (circleUnitary (ContinuousMap.id WindingCircle)) α = 1) :
47
- PublishedCircleInput where
48
- fundamental := α
49
- pairing f := compactIndexPairing (circleUnitary f)
50
- loop_naturality f γ := by
51
- have h := DFunLike.congr_fun (compactIndexPairing_natural (circleUnitary f) γ) α
52
- exact h
53
- winding g n L hL := by
54
- rw [winding_index g n L hL α, hα, mul_one]
55
-
56
- end CoarseAssembly
57
-
58
- end
59
-
60
- end OAI
 
1
+ import OAI.Topology.CoarseAssembly.WindingHomotopy
2
+
3
+ namespace OAI
4
+
5
+ /-! # Reducing the winding index formula to one generator evaluation
6
+
7
+ The pairing, its naturality, homotopy invariance and power law are proved.
8
+ Only an actual circle class with coordinate index one remains to construct.
9
+ -/
10
+
11
+ noncomputable section
12
+
13
+ namespace CoarseAssembly
14
+
15
+ open Analytic unitInterval
16
+
17
+ theorem circleUnitary_degree (n : ℤ) : circleUnitary (circleDegree n) =
18
+ circleUnitary (ContinuousMap.id WindingCircle) ^ n := by
19
+ apply ContinuousMap.ext
20
+ intro z
21
+ exact AddCircle.toCircle_zsmul z n
22
+
23
+ theorem winding_index_hom (g : C(WindingCircle, WindingCircle)) (n : ℤ)
24
+ (L : Path (0 : ℝ) (n : ℝ))
25
+ (hL : ∀ t : unitInterval, g (t : ℝ) = (L t : WindingCircle)) :
26
+ compactIndexPairing (circleUnitary g) =
27
+ n • compactIndexPairing (circleUnitary (ContinuousMap.id WindingCircle)) := by
28
+ let toCircleMap : C(WindingCircle, Circle) := ⟨AddCircle.toCircle, AddCircle.continuous_toCircle⟩
29
+ have h := compactIndexPairing_homotopy
30
+ ((ContinuousMap.Homotopy.refl toCircleMap).comp (windingHomotopy g n L hL))
31
+ change compactIndexPairing (circleUnitary g) = compactIndexPairing (circleUnitary (circleDegree n)) at h
32
+ rw [circleUnitary_degree, compactIndexPairing_zpow] at h
33
+ exact h
34
+
35
+ theorem winding_index (g : C(WindingCircle, WindingCircle)) (n : ℤ)
36
+ (L : Path (0 : ℝ) (n : ℝ))
37
+ (hL : ∀ t : unitInterval, g (t : ℝ) = (L t : WindingCircle))
38
+ (α : LocallyFiniteK1 WindingCircle) :
39
+ compactIndexPairing (circleUnitary g) α =
40
+ n * compactIndexPairing (circleUnitary (ContinuousMap.id WindingCircle)) α := by
41
+ simpa only [AddMonoidHom.smul_apply, zsmul_eq_mul, Int.cast_id] using
42
+ DFunLike.congr_fun (winding_index_hom g n L hL) α
43
+
44
+ /-- All the published circle fields follow from a single coordinate-index-one class. -/
45
+ def circleInputOfIndexOne (α : LocallyFiniteK1 WindingCircle)
46
+ (hα : compactIndexPairing (circleUnitary (ContinuousMap.id WindingCircle)) α = 1) :
47
+ PublishedCircleInput where
48
+ fundamental := α
49
+ pairing f := compactIndexPairing (circleUnitary f)
50
+ loop_naturality f γ := by
51
+ have h := DFunLike.congr_fun (compactIndexPairing_natural (circleUnitary f) γ) α
52
+ exact h
53
+ winding g n L hL := by
54
+ rw [winding_index g n L hL α, hα, mul_one]
55
+
56
+ end CoarseAssembly
57
+
58
+ end
59
+
60
+ end OAI
lean/OAI/Topology/EilenbergGanea/AffineTransport.lean CHANGED
@@ -1,449 +1,449 @@
1
- import OAI.Topology.EilenbergGanea.SmallHolonomy
2
- import OAI.GroupTheory.RightAngledArtin.TraceWords
3
-
4
- namespace OAI
5
-
6
- noncomputable section
7
-
8
- open Classical Set Filter Topology MeasureTheory
9
- open scoped Quaternion ContDiff
10
-
11
- namespace EilenbergGanea
12
- namespace AffineTransport
13
-
14
- /-- A finite family of proper quaternion subspaces cannot cover ℍ. -/
15
- theorem exists_avoid_subspaces {I : Type*} [Finite I]
16
- (p : I → Submodule ℝ ℍ) (hp : ∀ i, p i ≠ ⊤) :
17
- ∃ q : ℍ, ∀ i, q ∉ p i := by
18
- have ho (i) : IsOpen ((p i : Set ℍ)ᶜ) :=
19
- (p i).closed_of_finiteDimensional.isOpen_compl
20
- have hd (i) : Dense ((p i : Set ℍ)ᶜ) := by
21
- apply interior_eq_empty_iff_dense_compl.mp
22
- apply Set.not_nonempty_iff_eq_empty.mp
23
- intro h
24
- exact hp i ((p i).eq_top_of_nonempty_interior' h)
25
- obtain ⟨q,hq⟩ := (dense_iInter_of_isOpen ho hd).nonempty
26
- exact ⟨q,Set.mem_iInter.mp hq⟩
27
-
28
- /-- Simultaneous general position for finitely many local quaternion gauges.
29
- Different vertices may use different invertible linear transformations in each
30
- chart. No flatness or topology is assumed in this finite-dimensional lemma. -/
31
- theorem exists_triangle_general_position {A V : Type*} [Finite A] [Fintype V]
32
- (T : A → V → ℍ ≃ₗ[ℝ] ℍ) :
33
- ∃ q : V → ℍ, ∀ a (s : Finset V), s.card ≤ 3 →
34
- LinearIndepOn ℝ (fun v => T a v (q v)) (s : Set V) := by
35
- classical
36
- suffices ∀ U : Finset V, ∃ q : V → ℍ, ∀ a (s : Finset V), s ⊆ U → s.card ≤ 3 →
37
- LinearIndepOn ℝ (fun v => T a v (q v)) (s : Set V) by
38
- obtain ⟨q,hq⟩ := this Finset.univ
39
- exact ⟨q,fun a s h => hq a s (Finset.subset_univ _) h⟩
40
- intro U
41
- induction U using Finset.induction with
42
- | empty =>
43
- refine ⟨0,?_⟩
44
- intro a s hs _
45
- have : s = ∅ := Finset.subset_empty.mp hs
46
- subst s
47
- simpa only [Finset.coe_empty,Pi.zero_apply] using
48
- linearIndepOn_empty ℝ (fun v => T a v (0 : ℍ))
49
- | @insert v U hv ih =>
50
- obtain ⟨q,hq⟩ := ih
51
- let I := A × {s : Finset V // s ⊆ U ∧ s.card ≤ 2}
52
- let p : I → Submodule ℝ ℍ := fun i =>
53
- (Submodule.span ℝ ((fun w => T i.1 w (q w)) '' (i.2.val : Set V))).comap
54
- (T i.1 v).toLinearMap
55
- have hp (i : I) : p i ≠ ⊤ := by
56
- have hf : Module.finrank ℝ (Submodule.span ℝ
57
- ((fun w => T i.1 w (q w)) '' (i.2.val : Set V))) ≤ 2 := by
58
- have hh := finrank_span_finset_le_card (R := ℝ) (i.2.val.image (fun w => T i.1 w (q w)))
59
- rw [Finset.coe_image] at hh
60
- exact hh.trans ((Finset.card_image_le).trans i.2.property.2)
61
- have hproper : Submodule.span ℝ ((fun w => T i.1 w (q w)) ''
62
- (i.2.val : Set V)) ≠ ⊤ := by
63
- apply ne_of_lt (Submodule.lt_top_of_finrank_lt_finrank _)
64
- rw [Quaternion.finrank_eq_four]
65
- omega
66
- intro hh
67
- apply hproper
68
- apply top_unique
69
- intro x _
70
- have hm : (T i.1 v).symm x ∈ p i := by rw [hh]; trivial
71
- simpa only [p,Submodule.mem_comap,LinearEquiv.coe_coe,
72
- LinearEquiv.apply_symm_apply] using hm
73
- obtain ⟨z,hz⟩ := exists_avoid_subspaces p hp
74
- refine ⟨Function.update q v z,?_⟩
75
- intro a s hs hc
76
- by_cases hvs : v ∈ s
77
- · have hsub : s.erase v ⊆ U := by
78
- intro w hw
79
- have hh := hs (Finset.mem_of_mem_erase hw)
80
- exact (Finset.mem_insert.mp hh).resolve_left (Finset.ne_of_mem_erase hw)
81
- have hcard : (s.erase v).card ≤ 2 := by
82
- have he := Finset.card_erase_add_one hvs
83
- omega
84
- have heq : ∀ w ∈ (s.erase v : Finset V), Function.update q v z w = q w := by
85
- intro w hw
86
- exact Function.update_of_ne (Finset.ne_of_mem_erase hw) _ _
87
- have hi : LinearIndepOn ℝ (fun w => T a w (Function.update q v z w))
88
- ((s.erase v : Finset V) : Set V) := by
89
- apply (hq a (s.erase v) hsub (by omega)).congr
90
- intro w hw
91
- dsimp only
92
- rw [heq w hw]
93
- have hn : T a v (Function.update q v z v) ∉ Submodule.span ℝ
94
- ((fun w => T a w (Function.update q v z w)) ''
95
- ((s.erase v : Finset V) : Set V)) := by
96
- rw [Function.update_self]
97
- have him : ((fun w => T a w (Function.update q v z w)) ''
98
- ((s.erase v : Finset V) : Set V)) =
99
- ((fun w => T a w (q w)) '' ((s.erase v : Finset V) : Set V)) := by
100
- apply Set.image_congr
101
- intro w hw
102
- rw [heq w hw]
103
- rw [him]
104
- exact hz ⟨a,⟨s.erase v,hsub,hcard⟩⟩
105
- have ht := (linearIndepOn_insert (by simp : v ∉ ((s.erase v : Finset V) : Set V))).mpr
106
- ⟨hi,hn⟩
107
- simpa only [← Finset.coe_insert,Finset.insert_erase hvs] using ht
108
- · have hsub : s ⊆ U := by
109
- intro w hw
110
- have hh := hs hw
111
- rcases Finset.mem_insert.mp hh with rfl | hh
112
- · exact False.elim (hvs hw)
113
- · exact hh
114
- apply (hq a s hsub hc).congr
115
- intro w hw
116
- dsimp only
117
- rw [Function.update_of_ne (by intro h; subst w; exact hvs hw)]
118
-
119
-
120
- @[simp] theorem unit_norm (h : SU2) : ‖(h : ℍ)‖ = 1 :=
121
- (quaternion_mem_unitary_iff _).mp h.property
122
-
123
- def leftLinearEquiv (h : SU2) : ℍ ≃ₗ[ℝ] ℍ where
124
- toFun q := (h : ℍ) * q
125
- invFun q := (h⁻¹ : SU2) * q
126
- left_inv q := by simp [← mul_assoc,← Submonoid.coe_mul]
127
- right_inv q := by simp [← mul_assoc,← Submonoid.coe_mul]
128
- map_add' _ _ := mul_add _ _ _
129
- map_smul' r q := mul_smul_comm r (h : ℍ) q
130
-
131
- @[simp] theorem leftLinearEquiv_apply (h : SU2) (q : ℍ) :
132
- leftLinearEquiv h q = (h : ℍ) * q := rfl
133
-
134
- theorem normalize_left (h : SU2) {q : ℍ} (hq : q ≠ 0) :
135
- normalizeQuaternion ((h : ℍ) * q) = h * normalizeQuaternion q := by
136
- have hh : (h : ℍ) * q ≠ 0 := by
137
- exact (leftLinearEquiv h).map_ne_zero_iff.mpr hq
138
- apply Subtype.ext
139
- rw [normalizeQuaternion_coe_of_ne_zero hh]
140
- change ‖(h : ℍ) * q‖⁻¹ • ((h : ℍ) * q) = (h : ℍ) * (normalizeQuaternion q : ℍ)
141
- rw [normalizeQuaternion_coe_of_ne_zero hq,norm_mul,unit_norm,one_mul,mul_smul_comm]
142
-
143
- section FiniteSimplex
144
- variable {V : Type*} [Fintype V]
145
-
146
- def coordinateSimplex : Set (V → ℝ) :=
147
- {weights | (∀ vertex, 0 ≤ weights vertex) ∧ ∑ vertex, weights vertex = 1}
148
-
149
- /-- Closed coordinate face of the standard simplex. -/
150
- def face (s : Finset V) : Set (V → ℝ) :=
151
- {b | b ∈ coordinateSimplex ∧ ∀ v ∉ s, b v = 0}
152
-
153
- /-- The whole two-skeleton of a finite standard simplex. -/
154
- def triangleSet : Set (V → ℝ) :=
155
- ⋃ s : {s : Finset V // s.card ≤ 3}, face s.val
156
-
157
- abbrev TrianglePoint (V : Type*) [Fintype V] := (triangleSet : Set (V → ℝ))
158
-
159
- theorem mem_triangleSet {b : V → ℝ} : b ∈ triangleSet ↔
160
- ∃ s : Finset V, s.card ≤ 3 ∧ b ∈ coordinateSimplex ∧ ∀ v ∉ s, b v = 0 := by
161
- simp only [triangleSet,Set.mem_iUnion,face,Set.mem_ofPred_eq,Subtype.exists,exists_prop]
162
-
163
- omit [Fintype V] in
164
- private theorem isClosed_face_support (s : Finset V) :
165
- IsClosed {b : V → ℝ | ∀ v ∉ s, b v = 0} := by
166
- have he : {b : V → ℝ | ∀ v ∉ s, b v = 0} =
167
- ⋂ v, ⋂ (_ : v ∉ s), {b : V → ℝ | b v = 0} := by ext b; simp
168
- rw [he]
169
- exact isClosed_iInter fun v => isClosed_iInter fun _ =>
170
- isClosed_eq (continuous_apply v) continuous_const
171
-
172
- theorem isCompact_face (s : Finset V) : IsCompact (face s) := by
173
- have compact_simplex : IsCompact (coordinateSimplex : Set (V → ℝ)) := by
174
- convert isCompact_range
175
- (Convexity.StdSimplex.isEmbedding_toFun_comp_weights ℝ V).continuous using 1
176
- rw [Convexity.StdSimplex.range_toFun_comp_weights]
177
- ext weights
178
- simp [coordinateSimplex]
179
- exact compact_simplex.inter_right (isClosed_face_support s)
180
-
181
- theorem isCompact_triangleSet : IsCompact (triangleSet : Set (V → ℝ)) :=
182
- isCompact_iUnion fun _ => isCompact_face _
183
-
184
- instance : CompactSpace (TrianglePoint V) :=
185
- isCompact_iff_compactSpace.mp isCompact_triangleSet
186
-
187
- theorem point_simplex (b : TrianglePoint V) : (b : V → ℝ) ∈ coordinateSimplex := by
188
- obtain ⟨_,_,h,_⟩ := mem_triangleSet.mp b.property
189
- exact h
190
-
191
- theorem point_exists_nonzero (b : TrianglePoint V) : ∃ v, (b : V → ℝ) v ≠ 0 := by
192
- by_contra! h
193
- have he := (point_simplex b).2
194
- simp only [h,Finset.sum_const_zero] at he
195
- norm_num at he
196
-
197
- variable (h : V → V → SU2) (q : V → ℍ)
198
-
199
- def rawGauge (a : V) (b : V → ℝ) : ℍ := ∑ v, b v • ((h a v : ℍ) * q v)
200
-
201
- def GeneralPosition : Prop := ∀ a (s : Finset V), s.card ≤ 3 →
202
- LinearIndepOn ℝ (fun v => (h a v : ℍ) * q v) (s : Set V)
203
-
204
- theorem exists_generalPosition : ∃ q : V → ℍ, GeneralPosition h q := by
205
- obtain ⟨q,hq⟩ := exists_triangle_general_position (fun a v => leftLinearEquiv (h a v))
206
- exact ⟨q,hq⟩
207
-
208
- theorem rawGauge_ne_zero (hq : GeneralPosition h q) (a : V) (b : TrianglePoint V) :
209
- rawGauge h q a b ≠ 0 := by
210
- classical
211
- obtain ⟨s,hs,hb,hout⟩ := mem_triangleSet.mp b.property
212
- intro he
213
- have he' : ∑ v ∈ s, (b : V → ℝ) v • ((h a v : ℍ) * q v) = 0 := by
214
- rw [← he]
215
- apply Finset.sum_subset (Finset.subset_univ _)
216
- intro v _ hv
217
- rw [hout v hv,zero_smul]
218
- have hz := (linearIndepOn_iff'.mp (hq a s hs)) s b (Set.Subset.refl _) he'
219
- have hall : ∀ v, (b : V → ℝ) v = 0 := by
220
- intro v
221
- by_cases hv : v ∈ s
222
- · exact hz v hv
223
- · exact hout v hv
224
- have heq := hb.2
225
- simp only [hall,Finset.sum_const_zero] at heq
226
- norm_num at heq
227
-
228
- def gauge (a : V) (b : TrianglePoint V) : SU2 := normalizeQuaternion (rawGauge h q a b)
229
-
230
- theorem continuous_rawGauge (a : V) : Continuous (rawGauge h q a) :=
231
- continuous_finsetSum _ fun v _ => (continuous_apply v).smul continuous_const
232
-
233
- theorem continuous_gauge (hq : GeneralPosition h q) (a : V) : Continuous (gauge h q a) := by
234
- apply continuous_iff_continuousAt.mpr
235
- intro b
236
- exact ContinuousAt.comp (f := fun c : TrianglePoint V => rawGauge h q a c)
237
- (normalizeQuaternion_continuousAt (rawGauge_ne_zero h q hq a b))
238
- ((continuous_rawGauge h q a).comp continuous_subtype_val).continuousAt
239
-
240
- /-- Uniform modulus over all charts, including across the edges of all simplices. -/
241
- theorem gauges_uniform (hq : GeneralPosition h q) {ε : ℝ} (hε : 0 < ε) :
242
- ∃ δ > 0, ∀ b c : TrianglePoint V, dist b c < δ →
243
- ∀ a, dist (gauge h q a b) (gauge h q a c) < ε := by
244
- have hc : Continuous (fun b : TrianglePoint V => fun a => gauge h q a b) :=
245
- continuous_pi fun a => continuous_gauge h q hq a
246
- have hu := CompactSpace.uniformContinuous_of_continuous hc
247
- obtain ⟨δ,hδ,H⟩ := Metric.uniformContinuous_iff.mp hu ε hε
248
- refine ⟨δ,hδ,?_⟩
249
- intro b c hbc a
250
- exact 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)
251
-
252
- end FiniteSimplex
253
-
254
- theorem unitary_dist_left (a b c : SU2) : dist (a * b) (a * c) = dist b c := by
255
- change dist ((a : ℍ) * (b : ℍ)) ((a : ℍ) * (c : ℍ)) = dist (b : ℍ) (c : ℍ)
256
- rw [dist_eq_norm,dist_eq_norm,← mul_sub,norm_mul,unit_norm,one_mul]
257
-
258
- theorem unitary_dist_inv_mul_one (a b : SU2) : dist (a⁻¹ * b) 1 = dist a b := by
259
- rw [← unitary_dist_left a (a⁻¹ * b) 1]
260
- simp [dist_comm]
261
-
262
- theorem unitary_dist_mul_one_le (a b : SU2) :
263
- dist (a * b) 1 ≤ dist a 1 + dist b 1 := by
264
- calc
265
- dist (a * b) 1 ≤ dist (a * b) a + dist a 1 := dist_triangle _ _ _
266
- _ = dist b 1 + dist a 1 := by
267
- exact congrArg (fun t => t + dist a 1) (by simpa only [mul_one] using unitary_dist_left a b 1)
268
- _ = dist a 1 + dist b 1 := add_comm _ _
269
-
270
- section Connection
271
- variable {V : Type*} [Fintype V]
272
- variable (L : SimpleGraph V)
273
-
274
- def Related (a b : V) : Prop := a = b ∨ L.Adj a b
275
-
276
- omit [Fintype V] in
277
- theorem Related.refl (a : V) : Related L a a := Or.inl rfl
278
-
279
- omit [Fintype V] in
280
- theorem Related.symm {a b : V} : Related L a b → Related L b a := by
281
- rintro (rfl | h)
282
- · exact Related.refl L _
283
- · exact Or.inr h.symm
284
-
285
- def Star (a : V) (b : TrianglePoint V) : Prop :=
286
- ∀ v, (b : V → ℝ) v ≠ 0 → Related L a v
287
-
288
- def CliquePoint (b : TrianglePoint V) : Prop :=
289
- ∀ a, (b : V → ℝ) a ≠ 0 → Star L a b
290
-
291
- def Compatible (b c : TrianglePoint V) : Prop :=
292
- ∀ v w, ((b : V → ℝ) v ≠ 0 ∨ (c : V → ℝ) v ≠ 0) →
293
- ((b : V → ℝ) w ≠ 0 ∨ (c : V → ℝ) w ≠ 0) → Related L v w
294
-
295
- def root (b : TrianglePoint V) : V := Classical.choose (point_exists_nonzero b)
296
-
297
- theorem root_mem (b : TrianglePoint V) : (b : V → ℝ) (root b) ≠ 0 :=
298
- Classical.choose_spec (point_exists_nonzero b)
299
-
300
- variable (h : V → V → SU2) (q : V → ℍ)
301
-
302
- def FlatConnection : Prop := ∀ a b c, Related L a b → Related L b c →
303
- Related L a c → h a b * h b c = h a c
304
-
305
- theorem rawGauge_transition (hf : FlatConnection L h) {a c : V}
306
- {b : TrianglePoint V} (hac : Related L a c) (ha : Star L a b) (hc : Star L c b) :
307
- rawGauge h q a b = (h a c : ℍ) * rawGauge h q c b := by
308
- classical
309
- simp only [rawGauge,Finset.mul_sum]
310
- apply Finset.sum_congr rfl
311
- intro v _
312
- by_cases hv : (b : V → ℝ) v = 0
313
- · simp [hv]
314
- · rw [mul_smul_comm,← mul_assoc,← Submonoid.coe_mul,hf a c v hac (hc v hv) (ha v hv)]
315
-
316
- theorem gauge_transition (hf : FlatConnection L h) (hq : GeneralPosition h q)
317
- {a c : V} {b : TrianglePoint V} (hac : Related L a c)
318
- (ha : Star L a b) (hc : Star L c b) :
319
- gauge h q a b = h a c * gauge h q c b := by
320
- unfold gauge
321
- rw [rawGauge_transition L h q hf hac ha hc]
322
- exact normalize_left _ (rawGauge_ne_zero h q hq c b)
323
-
324
- def chartTransport (a : V) (b c : TrianglePoint V) : SU2 :=
325
- (gauge h q a b)⁻¹ * gauge h q a c
326
-
327
- def transport (b c : TrianglePoint V) : SU2 := chartTransport h q (root b) b c
328
-
329
- theorem transport_chart (hf : FlatConnection L h) (hq : GeneralPosition h q)
330
- {b c : TrianglePoint V} (hb : Compatible L b c) {a : V}
331
- (hab : Star L a b) (hac : Star L a c) :
332
- transport h q b c = chartTransport h q a b c := by
333
- have hrb : Star L (root b) b := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inl hv)
334
- have hrc : Star L (root b) c := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inr hv)
335
- have har : Related L a (root b) := hab _ (root_mem b)
336
- unfold transport chartTransport
337
- rw [gauge_transition L h q hf hq har hab hrb,
338
- gauge_transition L h q hf hq har hac hrc]
339
- group
340
-
341
- theorem compatible_symm {b c : TrianglePoint V} (hb : Compatible L b c) :
342
- Compatible L c b := fun v w hv hw => hb v w hv.symm hw.symm
343
-
344
- theorem transport_reverse (hf : FlatConnection L h) (hq : GeneralPosition h q)
345
- {b c : TrianglePoint V} (hb : Compatible L b c) :
346
- transport h q c b = (transport h q b c)⁻¹ := by
347
- have hrc : Star L (root b) c := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inr hv)
348
- have hrb : Star L (root b) b := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inl hv)
349
- rw [transport_chart L h q hf hq (compatible_symm L hb) hrc hrb]
350
- unfold transport chartTransport
351
- group
352
-
353
- theorem chartTransport_trans (a : V) (b c d : TrianglePoint V) :
354
- chartTransport h q a b c * chartTransport h q a c d = chartTransport h q a b d := by
355
- unfold chartTransport
356
- group
357
-
358
- theorem exists_large_coordinate (b : TrianglePoint V) :
359
- ∃ a, 1 / (Fintype.card V + 1 : ℝ) < (b : V → ℝ) a := by
360
- by_contra! H
361
- have hs := Finset.sum_le_sum (s := Finset.univ) (fun a _ => H a)
362
- have hb := (point_simplex b).2
363
- rw [hb,Finset.sum_const,Finset.card_univ,nsmul_eq_mul] at hs
364
- have hn : 0 ≤ (Fintype.card V : ℝ) := Nat.cast_nonneg _
365
- have hd : 0 < (Fintype.card V : ℝ) + 1 := by positivity
366
- have he := (le_div_iff₀ hd).mp (by simpa only [mul_one_div] using hs)
367
- linarith
368
-
369
- theorem nearby_star {b c : TrianglePoint V} {a : V}
370
- (ha : 1 / (Fintype.card V + 1 : ℝ) < (b : V → ℝ) a)
371
- (hc : CliquePoint L c) (hbc : dist b c < 1 / (Fintype.card V + 1 : ℝ)) :
372
- Star L a c := by
373
- apply hc a
374
- intro he
375
- have hd := lt_of_le_of_lt (dist_le_pi_dist (b : V → ℝ) (c : V → ℝ) a) hbc
376
- rw [he, Real.dist_eq,sub_zero,abs_of_nonneg ((point_simplex b).1 a)] at hd
377
- exact (not_lt_of_ge ha.le) hd
378
-
379
- theorem chartTransport_dist (a : V) (b c : TrianglePoint V) :
380
- dist (chartTransport h q a b c) 1 = dist (gauge h q a b) (gauge h q a c) :=
381
- unitary_dist_inv_mul_one _ _
382
-
383
- theorem transport_uniform (hq : GeneralPosition h q) {ε : ℝ} (hε : 0 < ε) :
384
- ∃ δ > 0, ∀ b c : TrianglePoint V, dist b c < δ → dist (transport h q b c) 1 < ε := by
385
- obtain ⟨δ,hδ,H⟩ := gauges_uniform h q hq hε
386
- exact ⟨δ,hδ,fun b c hbc => (chartTransport_dist h q _ b c).symm ▸ H b c hbc (root b)⟩
387
-
388
- /-- Two compatible pieces, rather than a chosen homotopy class of paths, suffice. -/
389
- def edgeTransport (b c d : TrianglePoint V) : SU2 := transport h q b c * transport h q c d
390
-
391
- theorem edgeTransport_chart (hf : FlatConnection L h) (hq : GeneralPosition h q)
392
- {b c d : TrianglePoint V} (hbc : Compatible L b c) (hcd : Compatible L c d)
393
- {a : V} (hab : Star L a b) (hac : Star L a c) (had : Star L a d) :
394
- edgeTransport h q b c d = chartTransport h q a b d := by
395
- rw [edgeTransport,transport_chart L h q hf hq hbc hab hac,
396
- transport_chart L h q hf hq hcd hac had,chartTransport_trans]
397
-
398
- theorem edgeTransport_reverse (hf : FlatConnection L h) (hq : GeneralPosition h q)
399
- {b c d : TrianglePoint V} (hbc : Compatible L b c) (hcd : Compatible L c d) :
400
- edgeTransport h q d c b = (edgeTransport h q b c d)⁻¹ := by
401
- rw [edgeTransport,edgeTransport,transport_reverse L h q hf hq hbc,
402
- transport_reverse L h q hf hq hcd,mul_inv_rev]
403
-
404
- theorem edgeTransport_uniform (hq : GeneralPosition h q) {ε : ℝ} (hε : 0 < ε) :
405
- ∃ δ > 0, ∀ b c d : TrianglePoint V, dist b c < δ → dist c d < δ →
406
- dist (edgeTransport h q b c d) 1 < ε := by
407
- obtain ⟨δ,hδ,H⟩ := transport_uniform h q hq (show 0 < ε/2 by positivity)
408
- refine ⟨δ,hδ,?_⟩
409
- intro b c d hbc hcd
410
- apply lt_of_le_of_lt (unitary_dist_mul_one_le _ _)
411
- have h₁ := H b c hbc
412
- have h₂ := H c d hcd
413
- linarith
414
-
415
- /-- All three edge images in one chart have exactly trivial triangle holonomy. -/
416
- theorem edgeTransport_triangle (hf : FlatConnection L h) (hq : GeneralPosition h q)
417
- (b c d u v w : TrianglePoint V) {a : V}
418
- (hbu : Compatible L b u) (huc : Compatible L u c)
419
- (hcv : Compatible L c v) (hvd : Compatible L v d)
420
- (hdw : Compatible L d w) (hwb : Compatible L w b)
421
- (hab : Star L a b) (hac : Star L a c) (had : Star L a d)
422
- (hau : Star L a u) (hav : Star L a v) (haw : Star L a w) :
423
- edgeTransport h q b u c * edgeTransport h q c v d * edgeTransport h q d w b = 1 := by
424
- rw [edgeTransport_chart L h q hf hq hbu huc hab hau hac,
425
- edgeTransport_chart L h q hf hq hcv hvd hac hav had,
426
- edgeTransport_chart L h q hf hq hdw hwb had haw hab]
427
- unfold chartTransport
428
- group
429
-
430
- /-- A uniform local chart for any finite or infinite family of nearby clique points. -/
431
- theorem nearby_family_chart {I : Type*} (b : TrianglePoint V) (c : I → TrianglePoint V)
432
- (hc : ∀ i, CliquePoint L (c i))
433
- (hbc : ∀ i, dist b (c i) < 1 / (Fintype.card V + 1 : ℝ)) :
434
- ∃ a, ∀ i, Star L a (c i) := by
435
- obtain ⟨a,ha⟩ := exists_large_coordinate b
436
- exact ⟨a,fun i => nearby_star L ha (hc i) (hbc i)⟩
437
-
438
- end Connection
439
-
440
- end AffineTransport
441
-
442
-
443
-
444
-
445
- end EilenbergGanea
446
-
447
- end
448
-
449
- end OAI
 
1
+ import OAI.Topology.EilenbergGanea.SmallHolonomy
2
+ import OAI.GroupTheory.RightAngledArtin.TraceWords
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+
8
+ open Classical Set Filter Topology MeasureTheory
9
+ open scoped Quaternion ContDiff
10
+
11
+ namespace EilenbergGanea
12
+ namespace AffineTransport
13
+
14
+ /-- A finite family of proper quaternion subspaces cannot cover ℍ. -/
15
+ theorem exists_avoid_subspaces {I : Type*} [Finite I]
16
+ (p : I → Submodule ℝ ℍ) (hp : ∀ i, p i ≠ ⊤) :
17
+ ∃ q : ℍ, ∀ i, q ∉ p i := by
18
+ have ho (i) : IsOpen ((p i : Set ℍ)ᶜ) :=
19
+ (p i).closed_of_finiteDimensional.isOpen_compl
20
+ have hd (i) : Dense ((p i : Set ℍ)ᶜ) := by
21
+ apply interior_eq_empty_iff_dense_compl.mp
22
+ apply Set.not_nonempty_iff_eq_empty.mp
23
+ intro h
24
+ exact hp i ((p i).eq_top_of_nonempty_interior' h)
25
+ obtain ⟨q,hq⟩ := (dense_iInter_of_isOpen ho hd).nonempty
26
+ exact ⟨q,Set.mem_iInter.mp hq⟩
27
+
28
+ /-- Simultaneous general position for finitely many local quaternion gauges.
29
+ Different vertices may use different invertible linear transformations in each
30
+ chart. No flatness or topology is assumed in this finite-dimensional lemma. -/
31
+ theorem exists_triangle_general_position {A V : Type*} [Finite A] [Fintype V]
32
+ (T : A → V → ℍ ≃ₗ[ℝ] ℍ) :
33
+ ∃ q : V → ℍ, ∀ a (s : Finset V), s.card ≤ 3 →
34
+ LinearIndepOn ℝ (fun v => T a v (q v)) (s : Set V) := by
35
+ classical
36
+ suffices ∀ U : Finset V, ∃ q : V → ℍ, ∀ a (s : Finset V), s ⊆ U → s.card ≤ 3 →
37
+ LinearIndepOn ℝ (fun v => T a v (q v)) (s : Set V) by
38
+ obtain ⟨q,hq⟩ := this Finset.univ
39
+ exact ⟨q,fun a s h => hq a s (Finset.subset_univ _) h⟩
40
+ intro U
41
+ induction U using Finset.induction with
42
+ | empty =>
43
+ refine ⟨0,?_⟩
44
+ intro a s hs _
45
+ have : s = ∅ := Finset.subset_empty.mp hs
46
+ subst s
47
+ simpa only [Finset.coe_empty,Pi.zero_apply] using
48
+ linearIndepOn_empty ℝ (fun v => T a v (0 : ℍ))
49
+ | @insert v U hv ih =>
50
+ obtain ⟨q,hq⟩ := ih
51
+ let I := A × {s : Finset V // s ⊆ U ∧ s.card ≤ 2}
52
+ let p : I → Submodule ℝ ℍ := fun i =>
53
+ (Submodule.span ℝ ((fun w => T i.1 w (q w)) '' (i.2.val : Set V))).comap
54
+ (T i.1 v).toLinearMap
55
+ have hp (i : I) : p i ≠ ⊤ := by
56
+ have hf : Module.finrank ℝ (Submodule.span ℝ
57
+ ((fun w => T i.1 w (q w)) '' (i.2.val : Set V))) ≤ 2 := by
58
+ have hh := finrank_span_finset_le_card (R := ℝ) (i.2.val.image (fun w => T i.1 w (q w)))
59
+ rw [Finset.coe_image] at hh
60
+ exact hh.trans ((Finset.card_image_le).trans i.2.property.2)
61
+ have hproper : Submodule.span ℝ ((fun w => T i.1 w (q w)) ''
62
+ (i.2.val : Set V)) ≠ ⊤ := by
63
+ apply ne_of_lt (Submodule.lt_top_of_finrank_lt_finrank _)
64
+ rw [Quaternion.finrank_eq_four]
65
+ omega
66
+ intro hh
67
+ apply hproper
68
+ apply top_unique
69
+ intro x _
70
+ have hm : (T i.1 v).symm x ∈ p i := by rw [hh]; trivial
71
+ simpa only [p,Submodule.mem_comap,LinearEquiv.coe_coe,
72
+ LinearEquiv.apply_symm_apply] using hm
73
+ obtain ⟨z,hz⟩ := exists_avoid_subspaces p hp
74
+ refine ⟨Function.update q v z,?_⟩
75
+ intro a s hs hc
76
+ by_cases hvs : v ∈ s
77
+ · have hsub : s.erase v ⊆ U := by
78
+ intro w hw
79
+ have hh := hs (Finset.mem_of_mem_erase hw)
80
+ exact (Finset.mem_insert.mp hh).resolve_left (Finset.ne_of_mem_erase hw)
81
+ have hcard : (s.erase v).card ≤ 2 := by
82
+ have he := Finset.card_erase_add_one hvs
83
+ omega
84
+ have heq : ∀ w ∈ (s.erase v : Finset V), Function.update q v z w = q w := by
85
+ intro w hw
86
+ exact Function.update_of_ne (Finset.ne_of_mem_erase hw) _ _
87
+ have hi : LinearIndepOn ℝ (fun w => T a w (Function.update q v z w))
88
+ ((s.erase v : Finset V) : Set V) := by
89
+ apply (hq a (s.erase v) hsub (by omega)).congr
90
+ intro w hw
91
+ dsimp only
92
+ rw [heq w hw]
93
+ have hn : T a v (Function.update q v z v) ∉ Submodule.span ℝ
94
+ ((fun w => T a w (Function.update q v z w)) ''
95
+ ((s.erase v : Finset V) : Set V)) := by
96
+ rw [Function.update_self]
97
+ have him : ((fun w => T a w (Function.update q v z w)) ''
98
+ ((s.erase v : Finset V) : Set V)) =
99
+ ((fun w => T a w (q w)) '' ((s.erase v : Finset V) : Set V)) := by
100
+ apply Set.image_congr
101
+ intro w hw
102
+ rw [heq w hw]
103
+ rw [him]
104
+ exact hz ⟨a,⟨s.erase v,hsub,hcard⟩⟩
105
+ have ht := (linearIndepOn_insert (by simp : v ∉ ((s.erase v : Finset V) : Set V))).mpr
106
+ ⟨hi,hn⟩
107
+ simpa only [← Finset.coe_insert,Finset.insert_erase hvs] using ht
108
+ · have hsub : s ⊆ U := by
109
+ intro w hw
110
+ have hh := hs hw
111
+ rcases Finset.mem_insert.mp hh with rfl | hh
112
+ · exact False.elim (hvs hw)
113
+ · exact hh
114
+ apply (hq a s hsub hc).congr
115
+ intro w hw
116
+ dsimp only
117
+ rw [Function.update_of_ne (by intro h; subst w; exact hvs hw)]
118
+
119
+
120
+ @[simp] theorem unit_norm (h : SU2) : ‖(h : ℍ)‖ = 1 :=
121
+ (quaternion_mem_unitary_iff _).mp h.property
122
+
123
+ def leftLinearEquiv (h : SU2) : ℍ ≃ₗ[ℝ] ℍ where
124
+ toFun q := (h : ℍ) * q
125
+ invFun q := (h⁻¹ : SU2) * q
126
+ left_inv q := by simp [← mul_assoc,← Submonoid.coe_mul]
127
+ right_inv q := by simp [← mul_assoc,← Submonoid.coe_mul]
128
+ map_add' _ _ := mul_add _ _ _
129
+ map_smul' r q := mul_smul_comm r (h : ℍ) q
130
+
131
+ @[simp] theorem leftLinearEquiv_apply (h : SU2) (q : ℍ) :
132
+ leftLinearEquiv h q = (h : ℍ) * q := rfl
133
+
134
+ theorem normalize_left (h : SU2) {q : ℍ} (hq : q ≠ 0) :
135
+ normalizeQuaternion ((h : ℍ) * q) = h * normalizeQuaternion q := by
136
+ have hh : (h : ℍ) * q ≠ 0 := by
137
+ exact (leftLinearEquiv h).map_ne_zero_iff.mpr hq
138
+ apply Subtype.ext
139
+ rw [normalizeQuaternion_coe_of_ne_zero hh]
140
+ change ‖(h : ℍ) * q‖⁻¹ • ((h : ℍ) * q) = (h : ℍ) * (normalizeQuaternion q : ℍ)
141
+ rw [normalizeQuaternion_coe_of_ne_zero hq,norm_mul,unit_norm,one_mul,mul_smul_comm]
142
+
143
+ section FiniteSimplex
144
+ variable {V : Type*} [Fintype V]
145
+
146
+ def coordinateSimplex : Set (V → ℝ) :=
147
+ {weights | (∀ vertex, 0 ≤ weights vertex) ∧ ∑ vertex, weights vertex = 1}
148
+
149
+ /-- Closed coordinate face of the standard simplex. -/
150
+ def face (s : Finset V) : Set (V → ℝ) :=
151
+ {b | b ∈ coordinateSimplex ∧ ∀ v ∉ s, b v = 0}
152
+
153
+ /-- The whole two-skeleton of a finite standard simplex. -/
154
+ def triangleSet : Set (V → ℝ) :=
155
+ ⋃ s : {s : Finset V // s.card ≤ 3}, face s.val
156
+
157
+ abbrev TrianglePoint (V : Type*) [Fintype V] := (triangleSet : Set (V → ℝ))
158
+
159
+ theorem mem_triangleSet {b : V → ℝ} : b ∈ triangleSet ↔
160
+ ∃ s : Finset V, s.card ≤ 3 ∧ b ∈ coordinateSimplex ∧ ∀ v ∉ s, b v = 0 := by
161
+ simp only [triangleSet,Set.mem_iUnion,face,Set.mem_ofPred_eq,Subtype.exists,exists_prop]
162
+
163
+ omit [Fintype V] in
164
+ private theorem isClosed_face_support (s : Finset V) :
165
+ IsClosed {b : V → ℝ | ∀ v ∉ s, b v = 0} := by
166
+ have he : {b : V → ℝ | ∀ v ∉ s, b v = 0} =
167
+ ⋂ v, ⋂ (_ : v ∉ s), {b : V → ℝ | b v = 0} := by ext b; simp
168
+ rw [he]
169
+ exact isClosed_iInter fun v => isClosed_iInter fun _ =>
170
+ isClosed_eq (continuous_apply v) continuous_const
171
+
172
+ theorem isCompact_face (s : Finset V) : IsCompact (face s) := by
173
+ have compact_simplex : IsCompact (coordinateSimplex : Set (V → ℝ)) := by
174
+ convert isCompact_range
175
+ (Convexity.StdSimplex.isEmbedding_toFun_comp_weights ℝ V).continuous using 1
176
+ rw [Convexity.StdSimplex.range_toFun_comp_weights]
177
+ ext weights
178
+ simp [coordinateSimplex]
179
+ exact compact_simplex.inter_right (isClosed_face_support s)
180
+
181
+ theorem isCompact_triangleSet : IsCompact (triangleSet : Set (V → ℝ)) :=
182
+ isCompact_iUnion fun _ => isCompact_face _
183
+
184
+ instance : CompactSpace (TrianglePoint V) :=
185
+ isCompact_iff_compactSpace.mp isCompact_triangleSet
186
+
187
+ theorem point_simplex (b : TrianglePoint V) : (b : V → ℝ) ∈ coordinateSimplex := by
188
+ obtain ⟨_,_,h,_⟩ := mem_triangleSet.mp b.property
189
+ exact h
190
+
191
+ theorem point_exists_nonzero (b : TrianglePoint V) : ∃ v, (b : V → ℝ) v ≠ 0 := by
192
+ by_contra! h
193
+ have he := (point_simplex b).2
194
+ simp only [h,Finset.sum_const_zero] at he
195
+ norm_num at he
196
+
197
+ variable (h : V → V → SU2) (q : V → ℍ)
198
+
199
+ def rawGauge (a : V) (b : V → ℝ) : ℍ := ∑ v, b v • ((h a v : ℍ) * q v)
200
+
201
+ def GeneralPosition : Prop := ∀ a (s : Finset V), s.card ≤ 3 →
202
+ LinearIndepOn ℝ (fun v => (h a v : ℍ) * q v) (s : Set V)
203
+
204
+ theorem exists_generalPosition : ∃ q : V → ℍ, GeneralPosition h q := by
205
+ obtain ⟨q,hq⟩ := exists_triangle_general_position (fun a v => leftLinearEquiv (h a v))
206
+ exact ⟨q,hq⟩
207
+
208
+ theorem rawGauge_ne_zero (hq : GeneralPosition h q) (a : V) (b : TrianglePoint V) :
209
+ rawGauge h q a b ≠ 0 := by
210
+ classical
211
+ obtain ⟨s,hs,hb,hout⟩ := mem_triangleSet.mp b.property
212
+ intro he
213
+ have he' : ∑ v ∈ s, (b : V → ℝ) v • ((h a v : ℍ) * q v) = 0 := by
214
+ rw [← he]
215
+ apply Finset.sum_subset (Finset.subset_univ _)
216
+ intro v _ hv
217
+ rw [hout v hv,zero_smul]
218
+ have hz := (linearIndepOn_iff'.mp (hq a s hs)) s b (Set.Subset.refl _) he'
219
+ have hall : ∀ v, (b : V → ℝ) v = 0 := by
220
+ intro v
221
+ by_cases hv : v ∈ s
222
+ · exact hz v hv
223
+ · exact hout v hv
224
+ have heq := hb.2
225
+ simp only [hall,Finset.sum_const_zero] at heq
226
+ norm_num at heq
227
+
228
+ def gauge (a : V) (b : TrianglePoint V) : SU2 := normalizeQuaternion (rawGauge h q a b)
229
+
230
+ theorem continuous_rawGauge (a : V) : Continuous (rawGauge h q a) :=
231
+ continuous_finsetSum _ fun v _ => (continuous_apply v).smul continuous_const
232
+
233
+ theorem continuous_gauge (hq : GeneralPosition h q) (a : V) : Continuous (gauge h q a) := by
234
+ apply continuous_iff_continuousAt.mpr
235
+ intro b
236
+ exact ContinuousAt.comp (f := fun c : TrianglePoint V => rawGauge h q a c)
237
+ (normalizeQuaternion_continuousAt (rawGauge_ne_zero h q hq a b))
238
+ ((continuous_rawGauge h q a).comp continuous_subtype_val).continuousAt
239
+
240
+ /-- Uniform modulus over all charts, including across the edges of all simplices. -/
241
+ theorem gauges_uniform (hq : GeneralPosition h q) {ε : ℝ} (hε : 0 < ε) :
242
+ ∃ δ > 0, ∀ b c : TrianglePoint V, dist b c < δ →
243
+ ∀ a, dist (gauge h q a b) (gauge h q a c) < ε := by
244
+ have hc : Continuous (fun b : TrianglePoint V => fun a => gauge h q a b) :=
245
+ continuous_pi fun a => continuous_gauge h q hq a
246
+ have hu := CompactSpace.uniformContinuous_of_continuous hc
247
+ obtain ⟨δ,hδ,H⟩ := Metric.uniformContinuous_iff.mp hu ε hε
248
+ refine ⟨δ,hδ,?_⟩
249
+ intro b c hbc a
250
+ exact 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)
251
+
252
+ end FiniteSimplex
253
+
254
+ theorem unitary_dist_left (a b c : SU2) : dist (a * b) (a * c) = dist b c := by
255
+ change dist ((a : ℍ) * (b : ℍ)) ((a : ℍ) * (c : ℍ)) = dist (b : ℍ) (c : ℍ)
256
+ rw [dist_eq_norm,dist_eq_norm,← mul_sub,norm_mul,unit_norm,one_mul]
257
+
258
+ theorem unitary_dist_inv_mul_one (a b : SU2) : dist (a⁻¹ * b) 1 = dist a b := by
259
+ rw [← unitary_dist_left a (a⁻¹ * b) 1]
260
+ simp [dist_comm]
261
+
262
+ theorem unitary_dist_mul_one_le (a b : SU2) :
263
+ dist (a * b) 1 ≤ dist a 1 + dist b 1 := by
264
+ calc
265
+ dist (a * b) 1 ≤ dist (a * b) a + dist a 1 := dist_triangle _ _ _
266
+ _ = dist b 1 + dist a 1 := by
267
+ exact congrArg (fun t => t + dist a 1) (by simpa only [mul_one] using unitary_dist_left a b 1)
268
+ _ = dist a 1 + dist b 1 := add_comm _ _
269
+
270
+ section Connection
271
+ variable {V : Type*} [Fintype V]
272
+ variable (L : SimpleGraph V)
273
+
274
+ def Related (a b : V) : Prop := a = b ∨ L.Adj a b
275
+
276
+ omit [Fintype V] in
277
+ theorem Related.refl (a : V) : Related L a a := Or.inl rfl
278
+
279
+ omit [Fintype V] in
280
+ theorem Related.symm {a b : V} : Related L a b → Related L b a := by
281
+ rintro (rfl | h)
282
+ · exact Related.refl L _
283
+ · exact Or.inr h.symm
284
+
285
+ def Star (a : V) (b : TrianglePoint V) : Prop :=
286
+ ∀ v, (b : V → ℝ) v ≠ 0 → Related L a v
287
+
288
+ def CliquePoint (b : TrianglePoint V) : Prop :=
289
+ ∀ a, (b : V → ℝ) a ≠ 0 → Star L a b
290
+
291
+ def Compatible (b c : TrianglePoint V) : Prop :=
292
+ ∀ v w, ((b : V → ℝ) v ≠ 0 ∨ (c : V → ℝ) v ≠ 0) →
293
+ ((b : V → ℝ) w ≠ 0 ∨ (c : V → ℝ) w ≠ 0) → Related L v w
294
+
295
+ def root (b : TrianglePoint V) : V := Classical.choose (point_exists_nonzero b)
296
+
297
+ theorem root_mem (b : TrianglePoint V) : (b : V → ℝ) (root b) ≠ 0 :=
298
+ Classical.choose_spec (point_exists_nonzero b)
299
+
300
+ variable (h : V → V → SU2) (q : V → ℍ)
301
+
302
+ def FlatConnection : Prop := ∀ a b c, Related L a b → Related L b c →
303
+ Related L a c → h a b * h b c = h a c
304
+
305
+ theorem rawGauge_transition (hf : FlatConnection L h) {a c : V}
306
+ {b : TrianglePoint V} (hac : Related L a c) (ha : Star L a b) (hc : Star L c b) :
307
+ rawGauge h q a b = (h a c : ℍ) * rawGauge h q c b := by
308
+ classical
309
+ simp only [rawGauge,Finset.mul_sum]
310
+ apply Finset.sum_congr rfl
311
+ intro v _
312
+ by_cases hv : (b : V → ℝ) v = 0
313
+ · simp [hv]
314
+ · rw [mul_smul_comm,← mul_assoc,← Submonoid.coe_mul,hf a c v hac (hc v hv) (ha v hv)]
315
+
316
+ theorem gauge_transition (hf : FlatConnection L h) (hq : GeneralPosition h q)
317
+ {a c : V} {b : TrianglePoint V} (hac : Related L a c)
318
+ (ha : Star L a b) (hc : Star L c b) :
319
+ gauge h q a b = h a c * gauge h q c b := by
320
+ unfold gauge
321
+ rw [rawGauge_transition L h q hf hac ha hc]
322
+ exact normalize_left _ (rawGauge_ne_zero h q hq c b)
323
+
324
+ def chartTransport (a : V) (b c : TrianglePoint V) : SU2 :=
325
+ (gauge h q a b)⁻¹ * gauge h q a c
326
+
327
+ def transport (b c : TrianglePoint V) : SU2 := chartTransport h q (root b) b c
328
+
329
+ theorem transport_chart (hf : FlatConnection L h) (hq : GeneralPosition h q)
330
+ {b c : TrianglePoint V} (hb : Compatible L b c) {a : V}
331
+ (hab : Star L a b) (hac : Star L a c) :
332
+ transport h q b c = chartTransport h q a b c := by
333
+ have hrb : Star L (root b) b := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inl hv)
334
+ have hrc : Star L (root b) c := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inr hv)
335
+ have har : Related L a (root b) := hab _ (root_mem b)
336
+ unfold transport chartTransport
337
+ rw [gauge_transition L h q hf hq har hab hrb,
338
+ gauge_transition L h q hf hq har hac hrc]
339
+ group
340
+
341
+ theorem compatible_symm {b c : TrianglePoint V} (hb : Compatible L b c) :
342
+ Compatible L c b := fun v w hv hw => hb v w hv.symm hw.symm
343
+
344
+ theorem transport_reverse (hf : FlatConnection L h) (hq : GeneralPosition h q)
345
+ {b c : TrianglePoint V} (hb : Compatible L b c) :
346
+ transport h q c b = (transport h q b c)⁻¹ := by
347
+ have hrc : Star L (root b) c := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inr hv)
348
+ have hrb : Star L (root b) b := fun v hv => hb _ _ (Or.inl (root_mem b)) (Or.inl hv)
349
+ rw [transport_chart L h q hf hq (compatible_symm L hb) hrc hrb]
350
+ unfold transport chartTransport
351
+ group
352
+
353
+ theorem chartTransport_trans (a : V) (b c d : TrianglePoint V) :
354
+ chartTransport h q a b c * chartTransport h q a c d = chartTransport h q a b d := by
355
+ unfold chartTransport
356
+ group
357
+
358
+ theorem exists_large_coordinate (b : TrianglePoint V) :
359
+ ∃ a, 1 / (Fintype.card V + 1 : ℝ) < (b : V → ℝ) a := by
360
+ by_contra! H
361
+ have hs := Finset.sum_le_sum (s := Finset.univ) (fun a _ => H a)
362
+ have hb := (point_simplex b).2
363
+ rw [hb,Finset.sum_const,Finset.card_univ,nsmul_eq_mul] at hs
364
+ have hn : 0 ≤ (Fintype.card V : ℝ) := Nat.cast_nonneg _
365
+ have hd : 0 < (Fintype.card V : ℝ) + 1 := by positivity
366
+ have he := (le_div_iff₀ hd).mp (by simpa only [mul_one_div] using hs)
367
+ linarith
368
+
369
+ theorem nearby_star {b c : TrianglePoint V} {a : V}
370
+ (ha : 1 / (Fintype.card V + 1 : ℝ) < (b : V → ℝ) a)
371
+ (hc : CliquePoint L c) (hbc : dist b c < 1 / (Fintype.card V + 1 : ℝ)) :
372
+ Star L a c := by
373
+ apply hc a
374
+ intro he
375
+ have hd := lt_of_le_of_lt (dist_le_pi_dist (b : V → ℝ) (c : V → ℝ) a) hbc
376
+ rw [he, Real.dist_eq,sub_zero,abs_of_nonneg ((point_simplex b).1 a)] at hd
377
+ exact (not_lt_of_ge ha.le) hd
378
+
379
+ theorem chartTransport_dist (a : V) (b c : TrianglePoint V) :
380
+ dist (chartTransport h q a b c) 1 = dist (gauge h q a b) (gauge h q a c) :=
381
+ unitary_dist_inv_mul_one _ _
382
+
383
+ theorem transport_uniform (hq : GeneralPosition h q) {ε : ℝ} (hε : 0 < ε) :
384
+ ∃ δ > 0, ∀ b c : TrianglePoint V, dist b c < δ → dist (transport h q b c) 1 < ε := by
385
+ obtain ⟨δ,hδ,H⟩ := gauges_uniform h q hq hε
386
+ exact ⟨δ,hδ,fun b c hbc => (chartTransport_dist h q _ b c).symm ▸ H b c hbc (root b)⟩
387
+
388
+ /-- Two compatible pieces, rather than a chosen homotopy class of paths, suffice. -/
389
+ def edgeTransport (b c d : TrianglePoint V) : SU2 := transport h q b c * transport h q c d
390
+
391
+ theorem edgeTransport_chart (hf : FlatConnection L h) (hq : GeneralPosition h q)
392
+ {b c d : TrianglePoint V} (hbc : Compatible L b c) (hcd : Compatible L c d)
393
+ {a : V} (hab : Star L a b) (hac : Star L a c) (had : Star L a d) :
394
+ edgeTransport h q b c d = chartTransport h q a b d := by
395
+ rw [edgeTransport,transport_chart L h q hf hq hbc hab hac,
396
+ transport_chart L h q hf hq hcd hac had,chartTransport_trans]
397
+
398
+ theorem edgeTransport_reverse (hf : FlatConnection L h) (hq : GeneralPosition h q)
399
+ {b c d : TrianglePoint V} (hbc : Compatible L b c) (hcd : Compatible L c d) :
400
+ edgeTransport h q d c b = (edgeTransport h q b c d)⁻¹ := by
401
+ rw [edgeTransport,edgeTransport,transport_reverse L h q hf hq hbc,
402
+ transport_reverse L h q hf hq hcd,mul_inv_rev]
403
+
404
+ theorem edgeTransport_uniform (hq : GeneralPosition h q) {ε : ℝ} (hε : 0 < ε) :
405
+ ∃ δ > 0, ∀ b c d : TrianglePoint V, dist b c < δ → dist c d < δ →
406
+ dist (edgeTransport h q b c d) 1 < ε := by
407
+ obtain ⟨δ,hδ,H⟩ := transport_uniform h q hq (show 0 < ε/2 by positivity)
408
+ refine ⟨δ,hδ,?_⟩
409
+ intro b c d hbc hcd
410
+ apply lt_of_le_of_lt (unitary_dist_mul_one_le _ _)
411
+ have h₁ := H b c hbc
412
+ have h₂ := H c d hcd
413
+ linarith
414
+
415
+ /-- All three edge images in one chart have exactly trivial triangle holonomy. -/
416
+ theorem edgeTransport_triangle (hf : FlatConnection L h) (hq : GeneralPosition h q)
417
+ (b c d u v w : TrianglePoint V) {a : V}
418
+ (hbu : Compatible L b u) (huc : Compatible L u c)
419
+ (hcv : Compatible L c v) (hvd : Compatible L v d)
420
+ (hdw : Compatible L d w) (hwb : Compatible L w b)
421
+ (hab : Star L a b) (hac : Star L a c) (had : Star L a d)
422
+ (hau : Star L a u) (hav : Star L a v) (haw : Star L a w) :
423
+ edgeTransport h q b u c * edgeTransport h q c v d * edgeTransport h q d w b = 1 := by
424
+ rw [edgeTransport_chart L h q hf hq hbu huc hab hau hac,
425
+ edgeTransport_chart L h q hf hq hcv hvd hac hav had,
426
+ edgeTransport_chart L h q hf hq hdw hwb had haw hab]
427
+ unfold chartTransport
428
+ group
429
+
430
+ /-- A uniform local chart for any finite or infinite family of nearby clique points. -/
431
+ theorem nearby_family_chart {I : Type*} (b : TrianglePoint V) (c : I → TrianglePoint V)
432
+ (hc : ∀ i, CliquePoint L (c i))
433
+ (hbc : ∀ i, dist b (c i) < 1 / (Fintype.card V + 1 : ℝ)) :
434
+ ∃ a, ∀ i, Star L a (c i) := by
435
+ obtain ⟨a,ha⟩ := exists_large_coordinate b
436
+ exact ⟨a,fun i => nearby_star L ha (hc i) (hbc i)⟩
437
+
438
+ end Connection
439
+
440
+ end AffineTransport
441
+
442
+
443
+
444
+
445
+ end EilenbergGanea
446
+
447
+ end
448
+
449
+ end OAI
lean/OAI/Topology/EilenbergGanea/CliqueCohomology.lean CHANGED
@@ -1,232 +1,232 @@
1
- import OAI.Topology.EilenbergGanea.Model
2
- import Mathlib.CategoryTheory.Abelian.Projective.Ext
3
- import Mathlib.RepresentationTheory.Homological.GroupCohomology.Basic
4
- import Mathlib.RepresentationTheory.Homological.GroupCohomology.LowDegree
5
- import Mathlib.RepresentationTheory.Homological.GroupCohomology.LongExactSequence
6
-
7
- namespace OAI
8
-
9
- noncomputable section
10
-
11
- open Classical Set
12
-
13
- namespace EilenbergGanea
14
- section CliqueSquare
15
- variable {V : Type*} (L : SimpleGraph V)
16
-
17
- def generatorExponent (v : V) : ArtinGroup L →* Multiplicative ℤ := by
18
- classical
19
- exact artinLift L (fun w => Multiplicative.ofAdd (if w = v then 1 else 0))
20
- (fun _ _ _ => Commute.all _ _)
21
-
22
- @[simp] theorem generatorExponent_of [DecidableEq V] (v w : V) :
23
- generatorExponent L v (artinGenerator L w) = Multiplicative.ofAdd (if w = v then 1 else 0) := by
24
- classical
25
- simp [generatorExponent]
26
-
27
- def heightDifference (v b : V) : (height L).ker :=
28
- ⟨artinGenerator L v * (artinGenerator L b)⁻¹, by simp⟩
29
-
30
- theorem heightDifference_commute (v w b : V)
31
- (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :
32
- Commute (heightDifference L v b) (heightDifference L w b) := by
33
- apply Subtype.ext
34
- exact (((adjacent_generators_commute L hvw).mul_right
35
- (adjacent_generators_commute L hvb).inv_right).mul_left
36
- (((adjacent_generators_commute L hwb).symm.inv_left).mul_right (Commute.refl _)))
37
-
38
- def cliqueSquare (v w b : V) (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :
39
- Multiplicative (ℤ × ℤ) →* (height L).ker where
40
- toFun n := heightDifference L v b ^ n.toAdd.1 * heightDifference L w b ^ n.toAdd.2
41
- map_one' := by simp
42
- map_mul' n m := by
43
- change _ ^ (n.toAdd.1 + m.toAdd.1) * _ ^ (n.toAdd.2 + m.toAdd.2) = _
44
- rw [zpow_add, zpow_add]
45
- simp only [mul_assoc]
46
- congr 1
47
- rw [← mul_assoc, ((heightDifference_commute L v w b hvw hvb hwb).zpow_zpow m.toAdd.1 n.toAdd.2).eq, mul_assoc]
48
-
49
- theorem cliqueSquare_injective (v w b : V) (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :
50
- Function.Injective (cliqueSquare L v w b hvw hvb hwb) := by
51
- classical
52
- have hvw' : v ≠ w := L.ne_of_adj hvw
53
- have hvb' : v ≠ b := L.ne_of_adj hvb
54
- have hwb' : w ≠ b := L.ne_of_adj hwb
55
- intro n m he
56
- have h₁ := congrArg (fun x : (height L).ker => generatorExponent L v x.val) he
57
- have h₂ := congrArg (fun x : (height L).ker => generatorExponent L w x.val) he
58
- have hn₁ : n.toAdd.1 = m.toAdd.1 := by
59
- simpa [cliqueSquare, heightDifference, generatorExponent_of, hvw', hvw'.symm, hvb', hvb'.symm] using congrArg Multiplicative.toAdd h₁
60
- have hn₂ : n.toAdd.2 = m.toAdd.2 := by
61
- simpa [cliqueSquare, heightDifference, generatorExponent_of, hvw', hwb', hwb'.symm] using congrArg Multiplicative.toAdd h₂
62
- exact congrArg Multiplicative.ofAdd (Prod.ext hn₁ hn₂)
63
- end CliqueSquare
64
-
65
- def seedCliqueVertex : SeedCell := .inl (.inl none)
66
- def seedCliqueEdge : SeedCell := .inr (.inl (.inl (false, 0)))
67
- def seedCliqueFace : SeedCell := .inr (.inr ⟨false, ⟨0, by decide⟩⟩)
68
-
69
- theorem source_contains_int_square :
70
- ∃ f : Multiplicative (ℤ × ℤ) →* SourceGroup, Function.Injective f := by
71
- have hve : seedGraph.Adj seedCliqueVertex seedCliqueEdge := by
72
- change properFace _ _ ∨ _
73
- left
74
- simp [properFace, seedCliqueVertex, seedCliqueEdge, edgeVertices, circleStart]
75
- have hvf : seedGraph.Adj seedCliqueVertex seedCliqueFace := by
76
- change properFace _ _ ∨ _
77
- left
78
- simp [properFace, seedCliqueVertex, seedCliqueFace, sectorVertices, sectorEdges, edgeVertices, sectorCircleEdge, sectorLetter, seedWord, circleStart, circleEnd]
79
- have hef : seedGraph.Adj seedCliqueEdge seedCliqueFace := by
80
- change properFace _ _ ∨ _
81
- left
82
- simp [properFace, seedCliqueEdge, seedCliqueFace, sectorEdges, sectorCircleEdge, sectorLetter, seedWord]
83
- exact ⟨cliqueSquare seedGraph _ _ _ hve hvf hef,
84
- cliqueSquare_injective seedGraph _ _ _ hve hvf hef⟩
85
-
86
- section CupCocycle
87
- open groupCohomology
88
- variable {G : Type} [Group G]
89
-
90
- /-- The cup product of two integral exponent homomorphisms. -/
91
- def exponentCup (a b : G →* Multiplicative ℤ) : cocycles₂ (Rep.trivial ℤ G ℤ) :=
92
- ⟨fun p => (a p.1).toAdd * (b p.2).toAdd, by
93
- rw [mem_cocycles₂_iff]
94
- intro g h j
95
- simp only [map_mul, toAdd_mul]
96
- change ((a g).toAdd + (a h).toAdd) * (b j).toAdd + (a g).toAdd * (b h).toAdd =
97
- (a h).toAdd * (b j).toAdd + (a g).toAdd * ((b h).toAdd + (b j).toAdd)
98
- ring⟩
99
-
100
- /-- Antisymmetrizing on a commuting pair detects a nonzero integral class. -/
101
- theorem exponentCup_not_coboundary (a b : G →* Multiplicative ℤ) (g h : G)
102
- (hc : Commute g h)
103
- (hag : (a g).toAdd = 1) (hah : (a h).toAdd = 0)
104
- (hbg : (b g).toAdd = 0) (hbh : (b h).toAdd = 1) :
105
- ⇑(exponentCup a b) ∉ coboundaries₂ (Rep.trivial ℤ G ℤ) := by
106
- rintro ⟨f, hf⟩
107
- have h₁ := congrFun hf (g, h)
108
- have h₂ := congrFun hf (h, g)
109
- change f h - f (g*h) + f g = (a g).toAdd * (b h).toAdd at h₁
110
- change f g - f (h*g) + f h = (a h).toAdd * (b g).toAdd at h₂
111
- rw [hag, hbh] at h₁
112
- rw [hah, hbg, ← hc.eq] at h₂
113
- change (f h : ℤ) - f (g*h) + f g = 1 * 1 at h₁
114
- change (f g : ℤ) - f (g*h) + f h = 0 * 0 at h₂
115
- linarith
116
-
117
- theorem exponentCup_class_ne_zero (a b : G →* Multiplicative ℤ) (g h : G)
118
- (hc : Commute g h)
119
- (hag : (a g).toAdd = 1) (hah : (a h).toAdd = 0)
120
- (hbg : (b g).toAdd = 0) (hbh : (b h).toAdd = 1) :
121
- H2π _ (exponentCup a b) ≠ 0 := by
122
- intro he
123
- exact exponentCup_not_coboundary a b g h hc hag hah hbg hbh
124
- ((H2π_eq_zero_iff (A := Rep.trivial ℤ G ℤ) (exponentCup a b)).mp he)
125
-
126
- end CupCocycle
127
-
128
- section CliqueCohomology
129
- open groupCohomology
130
- variable {V : Type} (L : SimpleGraph V)
131
-
132
- theorem clique_exponent_class_nonzero (v w b : V)
133
- (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :
134
- ∃ x : H2 (Rep.trivial ℤ (height L).ker ℤ), x ≠ 0 := by
135
- classical
136
- let a := (generatorExponent L v).comp (height L).ker.subtype
137
- let d := (generatorExponent L w).comp (height L).ker.subtype
138
- have hvw' := L.ne_of_adj hvw
139
- have hvb' := L.ne_of_adj hvb
140
- have hwb' := L.ne_of_adj hwb
141
- refine ⟨H2π _ (exponentCup a d), exponentCup_class_ne_zero a d
142
- (heightDifference L v b) (heightDifference L w b)
143
- (heightDifference_commute L v w b hvw hvb hwb) ?_ ?_ ?_ ?_⟩
144
- all_goals simp [a, d, heightDifference, hvw', hvw'.symm, hvb'.symm, hwb'.symm]
145
-
146
- end CliqueCohomology
147
-
148
-
149
- open CategoryTheory CategoryTheory.Limits
150
-
151
- section
152
- variable {C D : Type*} [Category* C] [Category* D] [Abelian C] [Abelian D]
153
- {X Y : C} (P : ProjectiveResolution X) (F : C ⥤ D)
154
- [F.Additive] [F.Full] [F.Faithful]
155
- [F.PreservesProjectiveObjects] [F.PreservesHomology]
156
-
157
- /-- Vanishing in the literal projective-dimension sense forces every
158
- 2-cocycle in a projective resolution to be a coboundary; the fully faithful
159
- exact functor permits us to use this for the representation/group-ring equivalence. -/
160
- theorem cocycle_boundary_of_projectiveDimension_lt_two
161
- [HasProjectiveDimensionLT (F.obj X) 2]
162
- (f : P.complex.X 2 ⟶ Y) (hf : P.complex.d 3 2 ≫ f = 0) :
163
- ∃ g : P.complex.X 1 ⟶ Y, P.complex.d 2 1 ≫ g = f := by
164
- let := HasExt.standard D
165
- let Q := F.mapProjectiveResolution P
166
- have hmf : Q.complex.d 3 2 ≫ F.map f = 0 := by
167
- change F.map (P.complex.d 3 2) ≫ F.map f = 0
168
- rw [← F.map_comp, hf, F.map_zero]
169
- have hc := Abelian.Ext.eq_zero_of_hasProjectiveDimensionLT (Q.extMk (F.map f) 3 rfl hmf) 2 (by rfl)
170
- obtain ⟨g, hg⟩ := (Q.extMk_eq_zero_iff (F.map f) 3 rfl hmf 1 rfl).mp hc
171
- change F.obj (P.complex.X 1) ⟶ F.obj Y at g
172
- change F.map (P.complex.d 2 1) ≫ g = F.map f at hg
173
- refine ⟨F.preimage g, F.map_injective ?_⟩
174
- rw [F.map_comp, F.map_preimage]
175
- exact hg
176
-
177
- /-- The same vanishing expressed in the library's older linear-Yoneda model
178
- of Ext. This theorem proves rather than assumes the bridge between the two APIs. -/
179
- theorem isZero_homology_two_of_projectiveDimension_lt_two
180
- (R : Type*) [Ring R] [Linear R C]
181
- [HasProjectiveDimensionLT (F.obj X) 2] :
182
- IsZero ((P.complex.linearYonedaObj R Y).homology 2) := by
183
- rw [← HomologicalComplex.exactAt_iff_isZero_homology]
184
- rw [HomologicalComplex.exactAt_iff' _ 1 2 3 (by simp) (by simp)]
185
- rw [ShortComplex.moduleCat_exact_iff]
186
- intro f hf
187
- change P.complex.d 3 2 ≫ f = 0 at hf
188
- exact cocycle_boundary_of_projectiveDimension_lt_two P F f hf
189
- end
190
-
191
- open CategoryTheory CategoryTheory.Limits
192
-
193
- theorem two_le_cohomologicalDimension_of_H2_nonzero (G : Type) [Group G]
194
- (hx : ∃ x : groupCohomology.H2 (Rep.trivial ℤ G ℤ), x ≠ 0) :
195
- 2 ≤ cohomologicalDimension G := by
196
- change (2 : ℕ) ≤ CategoryTheory.projectiveDimension
197
- (ModuleCat.of (MonoidAlgebra ℤ G) (Representation.trivial ℤ G ℤ).asModule)
198
- rw [CategoryTheory.projectiveDimension_ge_iff]
199
- intro hd
200
- let F := Rep.toModuleMonoidAlgebra (k := ℤ) (G := G)
201
- let P := Rep.barResolution ℤ G
202
- let : F.Additive := Functor.additive_of_preserves_binary_products F
203
- have : HasProjectiveDimensionLT (F.obj (Rep.trivial ℤ G ℤ)) 2 := hd
204
- have hz := isZero_homology_two_of_projectiveDimension_lt_two
205
- (Y := Rep.trivial ℤ G ℤ) P F ℤ
206
- have hz' : IsZero (groupCohomology.H2 (Rep.trivial ℤ G ℤ)) :=
207
- hz.of_iso (groupCohomologyIso (Rep.trivial ℤ G ℤ) 2 P)
208
- obtain ⟨x, hx⟩ := hx
209
- exact hx ((ModuleCat.isZero_iff_subsingleton.mp hz').elim x 0)
210
-
211
- theorem height_kernel_two_le_cohomologicalDimension {V : Type} (L : SimpleGraph V)
212
- (v w b : V) (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :
213
- 2 ≤ cohomologicalDimension (height L).ker :=
214
- two_le_cohomologicalDimension_of_H2_nonzero _ (clique_exponent_class_nonzero L v w b hvw hvb hwb)
215
-
216
- theorem source_two_le_cohomologicalDimension : 2 ≤ cohomologicalDimension SourceGroup := by
217
- apply height_kernel_two_le_cohomologicalDimension seedGraph seedCliqueVertex seedCliqueEdge seedCliqueFace
218
- · change properFace _ _ ∨ _
219
- left
220
- simp [properFace, seedCliqueVertex, seedCliqueEdge, edgeVertices, circleStart]
221
- · change properFace _ _ ∨ _
222
- left
223
- simp [properFace, seedCliqueVertex, seedCliqueFace, sectorVertices, sectorEdges, edgeVertices, sectorCircleEdge, sectorLetter, seedWord, circleStart, circleEnd]
224
- · change properFace _ _ ∨ _
225
- left
226
- simp [properFace, seedCliqueEdge, seedCliqueFace, sectorEdges, sectorCircleEdge, sectorLetter, seedWord]
227
- end EilenbergGanea
228
-
229
-
230
- end
231
-
232
- end OAI
 
1
+ import OAI.Topology.EilenbergGanea.Model
2
+ import Mathlib.CategoryTheory.Abelian.Projective.Ext
3
+ import Mathlib.RepresentationTheory.Homological.GroupCohomology.Basic
4
+ import Mathlib.RepresentationTheory.Homological.GroupCohomology.LowDegree
5
+ import Mathlib.RepresentationTheory.Homological.GroupCohomology.LongExactSequence
6
+
7
+ namespace OAI
8
+
9
+ noncomputable section
10
+
11
+ open Classical Set
12
+
13
+ namespace EilenbergGanea
14
+ section CliqueSquare
15
+ variable {V : Type*} (L : SimpleGraph V)
16
+
17
+ def generatorExponent (v : V) : ArtinGroup L →* Multiplicative ℤ := by
18
+ classical
19
+ exact artinLift L (fun w => Multiplicative.ofAdd (if w = v then 1 else 0))
20
+ (fun _ _ _ => Commute.all _ _)
21
+
22
+ @[simp] theorem generatorExponent_of [DecidableEq V] (v w : V) :
23
+ generatorExponent L v (artinGenerator L w) = Multiplicative.ofAdd (if w = v then 1 else 0) := by
24
+ classical
25
+ simp [generatorExponent]
26
+
27
+ def heightDifference (v b : V) : (height L).ker :=
28
+ ⟨artinGenerator L v * (artinGenerator L b)⁻¹, by simp⟩
29
+
30
+ theorem heightDifference_commute (v w b : V)
31
+ (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :
32
+ Commute (heightDifference L v b) (heightDifference L w b) := by
33
+ apply Subtype.ext
34
+ exact (((adjacent_generators_commute L hvw).mul_right
35
+ (adjacent_generators_commute L hvb).inv_right).mul_left
36
+ (((adjacent_generators_commute L hwb).symm.inv_left).mul_right (Commute.refl _)))
37
+
38
+ def cliqueSquare (v w b : V) (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :
39
+ Multiplicative (ℤ × ℤ) →* (height L).ker where
40
+ toFun n := heightDifference L v b ^ n.toAdd.1 * heightDifference L w b ^ n.toAdd.2
41
+ map_one' := by simp
42
+ map_mul' n m := by
43
+ change _ ^ (n.toAdd.1 + m.toAdd.1) * _ ^ (n.toAdd.2 + m.toAdd.2) = _
44
+ rw [zpow_add, zpow_add]
45
+ simp only [mul_assoc]
46
+ congr 1
47
+ rw [← mul_assoc, ((heightDifference_commute L v w b hvw hvb hwb).zpow_zpow m.toAdd.1 n.toAdd.2).eq, mul_assoc]
48
+
49
+ theorem cliqueSquare_injective (v w b : V) (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :
50
+ Function.Injective (cliqueSquare L v w b hvw hvb hwb) := by
51
+ classical
52
+ have hvw' : v ≠ w := L.ne_of_adj hvw
53
+ have hvb' : v ≠ b := L.ne_of_adj hvb
54
+ have hwb' : w ≠ b := L.ne_of_adj hwb
55
+ intro n m he
56
+ have h₁ := congrArg (fun x : (height L).ker => generatorExponent L v x.val) he
57
+ have h₂ := congrArg (fun x : (height L).ker => generatorExponent L w x.val) he
58
+ have hn₁ : n.toAdd.1 = m.toAdd.1 := by
59
+ simpa [cliqueSquare, heightDifference, generatorExponent_of, hvw', hvw'.symm, hvb', hvb'.symm] using congrArg Multiplicative.toAdd h₁
60
+ have hn₂ : n.toAdd.2 = m.toAdd.2 := by
61
+ simpa [cliqueSquare, heightDifference, generatorExponent_of, hvw', hwb', hwb'.symm] using congrArg Multiplicative.toAdd h₂
62
+ exact congrArg Multiplicative.ofAdd (Prod.ext hn₁ hn₂)
63
+ end CliqueSquare
64
+
65
+ def seedCliqueVertex : SeedCell := .inl (.inl none)
66
+ def seedCliqueEdge : SeedCell := .inr (.inl (.inl (false, 0)))
67
+ def seedCliqueFace : SeedCell := .inr (.inr ⟨false, ⟨0, by decide⟩⟩)
68
+
69
+ theorem source_contains_int_square :
70
+ ∃ f : Multiplicative (ℤ × ℤ) →* SourceGroup, Function.Injective f := by
71
+ have hve : seedGraph.Adj seedCliqueVertex seedCliqueEdge := by
72
+ change properFace _ _ ∨ _
73
+ left
74
+ simp [properFace, seedCliqueVertex, seedCliqueEdge, edgeVertices, circleStart]
75
+ have hvf : seedGraph.Adj seedCliqueVertex seedCliqueFace := by
76
+ change properFace _ _ ∨ _
77
+ left
78
+ simp [properFace, seedCliqueVertex, seedCliqueFace, sectorVertices, sectorEdges, edgeVertices, sectorCircleEdge, sectorLetter, seedWord, circleStart, circleEnd]
79
+ have hef : seedGraph.Adj seedCliqueEdge seedCliqueFace := by
80
+ change properFace _ _ ∨ _
81
+ left
82
+ simp [properFace, seedCliqueEdge, seedCliqueFace, sectorEdges, sectorCircleEdge, sectorLetter, seedWord]
83
+ exact ⟨cliqueSquare seedGraph _ _ _ hve hvf hef,
84
+ cliqueSquare_injective seedGraph _ _ _ hve hvf hef⟩
85
+
86
+ section CupCocycle
87
+ open groupCohomology
88
+ variable {G : Type} [Group G]
89
+
90
+ /-- The cup product of two integral exponent homomorphisms. -/
91
+ def exponentCup (a b : G →* Multiplicative ℤ) : cocycles₂ (Rep.trivial ℤ G ℤ) :=
92
+ ⟨fun p => (a p.1).toAdd * (b p.2).toAdd, by
93
+ rw [mem_cocycles₂_iff]
94
+ intro g h j
95
+ simp only [map_mul, toAdd_mul]
96
+ change ((a g).toAdd + (a h).toAdd) * (b j).toAdd + (a g).toAdd * (b h).toAdd =
97
+ (a h).toAdd * (b j).toAdd + (a g).toAdd * ((b h).toAdd + (b j).toAdd)
98
+ ring⟩
99
+
100
+ /-- Antisymmetrizing on a commuting pair detects a nonzero integral class. -/
101
+ theorem exponentCup_not_coboundary (a b : G →* Multiplicative ℤ) (g h : G)
102
+ (hc : Commute g h)
103
+ (hag : (a g).toAdd = 1) (hah : (a h).toAdd = 0)
104
+ (hbg : (b g).toAdd = 0) (hbh : (b h).toAdd = 1) :
105
+ ⇑(exponentCup a b) ∉ coboundaries₂ (Rep.trivial ℤ G ℤ) := by
106
+ rintro ⟨f, hf⟩
107
+ have h₁ := congrFun hf (g, h)
108
+ have h₂ := congrFun hf (h, g)
109
+ change f h - f (g*h) + f g = (a g).toAdd * (b h).toAdd at h₁
110
+ change f g - f (h*g) + f h = (a h).toAdd * (b g).toAdd at h₂
111
+ rw [hag, hbh] at h₁
112
+ rw [hah, hbg, ← hc.eq] at h₂
113
+ change (f h : ℤ) - f (g*h) + f g = 1 * 1 at h₁
114
+ change (f g : ℤ) - f (g*h) + f h = 0 * 0 at h₂
115
+ linarith
116
+
117
+ theorem exponentCup_class_ne_zero (a b : G →* Multiplicative ℤ) (g h : G)
118
+ (hc : Commute g h)
119
+ (hag : (a g).toAdd = 1) (hah : (a h).toAdd = 0)
120
+ (hbg : (b g).toAdd = 0) (hbh : (b h).toAdd = 1) :
121
+ H2π _ (exponentCup a b) ≠ 0 := by
122
+ intro he
123
+ exact exponentCup_not_coboundary a b g h hc hag hah hbg hbh
124
+ ((H2π_eq_zero_iff (A := Rep.trivial ℤ G ℤ) (exponentCup a b)).mp he)
125
+
126
+ end CupCocycle
127
+
128
+ section CliqueCohomology
129
+ open groupCohomology
130
+ variable {V : Type} (L : SimpleGraph V)
131
+
132
+ theorem clique_exponent_class_nonzero (v w b : V)
133
+ (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :
134
+ ∃ x : H2 (Rep.trivial ℤ (height L).ker ℤ), x ≠ 0 := by
135
+ classical
136
+ let a := (generatorExponent L v).comp (height L).ker.subtype
137
+ let d := (generatorExponent L w).comp (height L).ker.subtype
138
+ have hvw' := L.ne_of_adj hvw
139
+ have hvb' := L.ne_of_adj hvb
140
+ have hwb' := L.ne_of_adj hwb
141
+ refine ⟨H2π _ (exponentCup a d), exponentCup_class_ne_zero a d
142
+ (heightDifference L v b) (heightDifference L w b)
143
+ (heightDifference_commute L v w b hvw hvb hwb) ?_ ?_ ?_ ?_⟩
144
+ all_goals simp [a, d, heightDifference, hvw', hvw'.symm, hvb'.symm, hwb'.symm]
145
+
146
+ end CliqueCohomology
147
+
148
+
149
+ open CategoryTheory CategoryTheory.Limits
150
+
151
+ section
152
+ variable {C D : Type*} [Category* C] [Category* D] [Abelian C] [Abelian D]
153
+ {X Y : C} (P : ProjectiveResolution X) (F : C ⥤ D)
154
+ [F.Additive] [F.Full] [F.Faithful]
155
+ [F.PreservesProjectiveObjects] [F.PreservesHomology]
156
+
157
+ /-- Vanishing in the literal projective-dimension sense forces every
158
+ 2-cocycle in a projective resolution to be a coboundary; the fully faithful
159
+ exact functor permits us to use this for the representation/group-ring equivalence. -/
160
+ theorem cocycle_boundary_of_projectiveDimension_lt_two
161
+ [HasProjectiveDimensionLT (F.obj X) 2]
162
+ (f : P.complex.X 2 ⟶ Y) (hf : P.complex.d 3 2 ≫ f = 0) :
163
+ ∃ g : P.complex.X 1 ⟶ Y, P.complex.d 2 1 ≫ g = f := by
164
+ let := HasExt.standard D
165
+ let Q := F.mapProjectiveResolution P
166
+ have hmf : Q.complex.d 3 2 ≫ F.map f = 0 := by
167
+ change F.map (P.complex.d 3 2) ≫ F.map f = 0
168
+ rw [← F.map_comp, hf, F.map_zero]
169
+ have hc := Abelian.Ext.eq_zero_of_hasProjectiveDimensionLT (Q.extMk (F.map f) 3 rfl hmf) 2 (by rfl)
170
+ obtain ⟨g, hg⟩ := (Q.extMk_eq_zero_iff (F.map f) 3 rfl hmf 1 rfl).mp hc
171
+ change F.obj (P.complex.X 1) ⟶ F.obj Y at g
172
+ change F.map (P.complex.d 2 1) ≫ g = F.map f at hg
173
+ refine ⟨F.preimage g, F.map_injective ?_⟩
174
+ rw [F.map_comp, F.map_preimage]
175
+ exact hg
176
+
177
+ /-- The same vanishing expressed in the library's older linear-Yoneda model
178
+ of Ext. This theorem proves rather than assumes the bridge between the two APIs. -/
179
+ theorem isZero_homology_two_of_projectiveDimension_lt_two
180
+ (R : Type*) [Ring R] [Linear R C]
181
+ [HasProjectiveDimensionLT (F.obj X) 2] :
182
+ IsZero ((P.complex.linearYonedaObj R Y).homology 2) := by
183
+ rw [← HomologicalComplex.exactAt_iff_isZero_homology]
184
+ rw [HomologicalComplex.exactAt_iff' _ 1 2 3 (by simp) (by simp)]
185
+ rw [ShortComplex.moduleCat_exact_iff]
186
+ intro f hf
187
+ change P.complex.d 3 2 ≫ f = 0 at hf
188
+ exact cocycle_boundary_of_projectiveDimension_lt_two P F f hf
189
+ end
190
+
191
+ open CategoryTheory CategoryTheory.Limits
192
+
193
+ theorem two_le_cohomologicalDimension_of_H2_nonzero (G : Type) [Group G]
194
+ (hx : ∃ x : groupCohomology.H2 (Rep.trivial ℤ G ℤ), x ≠ 0) :
195
+ 2 ≤ cohomologicalDimension G := by
196
+ change (2 : ℕ) ≤ CategoryTheory.projectiveDimension
197
+ (ModuleCat.of (MonoidAlgebra ℤ G) (Representation.trivial ℤ G ℤ).asModule)
198
+ rw [CategoryTheory.projectiveDimension_ge_iff]
199
+ intro hd
200
+ let F := Rep.toModuleMonoidAlgebra (k := ℤ) (G := G)
201
+ let P := Rep.barResolution ℤ G
202
+ let : F.Additive := Functor.additive_of_preserves_binary_products F
203
+ have : HasProjectiveDimensionLT (F.obj (Rep.trivial ℤ G ℤ)) 2 := hd
204
+ have hz := isZero_homology_two_of_projectiveDimension_lt_two
205
+ (Y := Rep.trivial ℤ G ℤ) P F ℤ
206
+ have hz' : IsZero (groupCohomology.H2 (Rep.trivial ℤ G ℤ)) :=
207
+ hz.of_iso (groupCohomologyIso (Rep.trivial ℤ G ℤ) 2 P)
208
+ obtain ⟨x, hx⟩ := hx
209
+ exact hx ((ModuleCat.isZero_iff_subsingleton.mp hz').elim x 0)
210
+
211
+ theorem height_kernel_two_le_cohomologicalDimension {V : Type} (L : SimpleGraph V)
212
+ (v w b : V) (hvw : L.Adj v w) (hvb : L.Adj v b) (hwb : L.Adj w b) :
213
+ 2 ≤ cohomologicalDimension (height L).ker :=
214
+ two_le_cohomologicalDimension_of_H2_nonzero _ (clique_exponent_class_nonzero L v w b hvw hvb hwb)
215
+
216
+ theorem source_two_le_cohomologicalDimension : 2 ≤ cohomologicalDimension SourceGroup := by
217
+ apply height_kernel_two_le_cohomologicalDimension seedGraph seedCliqueVertex seedCliqueEdge seedCliqueFace
218
+ · change properFace _ _ ∨ _
219
+ left
220
+ simp [properFace, seedCliqueVertex, seedCliqueEdge, edgeVertices, circleStart]
221
+ · change properFace _ _ ∨ _
222
+ left
223
+ simp [properFace, seedCliqueVertex, seedCliqueFace, sectorVertices, sectorEdges, edgeVertices, sectorCircleEdge, sectorLetter, seedWord, circleStart, circleEnd]
224
+ · change properFace _ _ ∨ _
225
+ left
226
+ simp [properFace, seedCliqueEdge, seedCliqueFace, sectorEdges, sectorCircleEdge, sectorLetter, seedWord]
227
+ end EilenbergGanea
228
+
229
+
230
+ end
231
+
232
+ end OAI
lean/OAI/Topology/EilenbergGanea/CubicalCover.lean CHANGED
@@ -1,822 +1,822 @@
1
- import OAI.AlgebraicTopology.Cubical.Realization
2
- import OAI.AlgebraicTopology.Cubical.ArtinChains
3
- import OAI.Topology.EilenbergGanea.Model
4
- import OAI.Topology.EilenbergGanea.SeedConnection
5
- import Mathlib.Topology.Covering.Quotient
6
- import Mathlib.Topology.Covering.Deck
7
- import Mathlib.Topology.Homotopy.Lifting
8
-
9
- namespace OAI
10
-
11
- noncomputable section
12
-
13
- open Classical Set Topology
14
- open scoped Quaternion
15
-
16
- namespace EilenbergGanea.DescendingCube.Data
17
- open CubeInterpolation
18
- variable {G A : Type*} [Group G] {f : A → G} (D : Data f)
19
- variable [Fintype A]
20
-
21
- omit [Fintype A] in
22
- theorem cellComm (c : D.Cell) : (c.directions : Set A).Pairwise
23
- (fun a b => Commute (f a) (f b)) :=
24
- fun _ ha _ hb he => D.commute c.top _ _ (c.subset ha) (c.subset hb) he
25
-
26
- omit [Fintype A] in
27
- theorem ones_eq_filter (c : D.Cell) (x : D.Coordinates c) :
28
- D.ones c x = c.directions.filter (fun a => D.fullCoord c x a = 1) := by
29
- ext a
30
- simp only [mem_ones,Finset.mem_filter]
31
- constructor
32
- · rintro ⟨ha,hx⟩
33
- exact ⟨ha,by simpa only [fullCoord,dite_eq_left ha] using hx⟩
34
- · rintro ⟨ha,hx⟩
35
- exact ⟨ha,by simpa only [fullCoord,dite_eq_left ha] using hx⟩
36
-
37
- omit [Fintype A] in
38
- theorem normalize_fullCoord (c : D.Cell) (x : D.Coordinates c) :
39
- CubeInterpolation.normalize (D.fullCoord c x) = D.normalizedCoord c x := by
40
- funext a
41
- by_cases ha : a ∈ c.directions
42
- · simp only [CubeInterpolation.normalize,fullCoord,normalizedCoord,dite_eq_left ha]
43
- · simp [CubeInterpolation.normalize,fullCoord,normalizedCoord,ha]
44
-
45
- def interpolation (p : D.Point) (φ : G → ℝ) : ℝ :=
46
- operator f (D.active p) (D.cellComm (D.pointCell p)) p.coord φ p.top
47
-
48
- theorem active_characteristic_subset (c : D.Cell) (x : D.Coordinates c) :
49
- D.active (D.characteristic c x) ⊆ c.directions := by
50
- intro a ha
51
- by_contra h
52
- apply ((D.mem_active _ _).mp ha)
53
- change D.normalizedCoord c x a = 0
54
- simp [normalizedCoord,h]
55
-
56
- theorem interpolation_characteristic (c : D.Cell) (x : D.Coordinates c) (φ : G → ℝ) :
57
- D.interpolation (D.characteristic c x) φ =
58
- operator f c.directions (D.cellComm c) (D.fullCoord c x) φ c.top := by
59
- have hsub := D.active_characteristic_subset c x
60
- have he := operator_subset f (D.active (D.characteristic c x)) c.directions
61
- (D.cellComm c) hsub (D.normalizedCoord c x) (by
62
- intro a _ hn
63
- exact not_not.mp (by simpa only [mem_active,characteristic] using hn))
64
- have hn := operator_normalize f c.directions (D.cellComm c) (D.fullCoord c x)
65
- simp only [normalize_fullCoord,← ones_eq_filter] at hn
66
- have hh := congrArg (fun T : Module.End ℝ (G → ℝ) => T φ c.top) hn
67
- rw [Module.End.mul_apply,translation_apply,he] at hh
68
- exact hh.symm
69
-
70
- theorem interpolation_continuous (φ : G → ℝ) :
71
- Continuous (fun p : D.Point => D.interpolation p φ) := by
72
- apply D.evaluation_quotient.continuous_iff.mpr
73
- apply continuous_sigma
74
- intro c
75
- change Continuous (fun x : D.Coordinates c => D.interpolation (D.characteristic c x) φ)
76
- simp only [interpolation_characteristic]
77
- exact operator_continuous f c.directions _ (D.fullCoord c)
78
- (fun a _ => D.fullCoord_continuous c a) φ c.top
79
-
80
- theorem interpolation_vertex_pos (p : D.Point) :
81
- 0 < D.interpolation p (fun a => if a = p.top then 1 else 0) := by
82
- apply operator_pos
83
- · intro a _; exact ⟨p.nonneg a,p.lt_one a⟩
84
- · intro a; split_ifs <;> norm_num
85
- · simp
86
-
87
- omit [Fintype A] in
88
- theorem descending_operator_delta_zero (s : Finset A) (g : G) (hs : s ⊆ D.desc g)
89
- (x : A → ℝ) (b : G) (hb : D.length g ≤ D.length b) (hne : b ≠ g) :
90
- operator f s (fun a ha d hd hne => D.commute g a d (hs ha) (hs hd) hne)
91
- x (fun a => if a = b then 1 else 0) g = 0 := by
92
- induction s using Finset.induction_on generalizing g with
93
- | empty => simp [operator_empty,hne.symm]
94
- | @insert a s ha ih =>
95
- have hga := hs (Finset.mem_insert_self a s)
96
- have hs0 : s ⊆ D.desc g := fun d hd => hs (Finset.mem_insert_of_mem hd)
97
- have hs1 : s ⊆ D.desc (g * f a) := by
98
- intro d hd
99
- exact D.preserve g a d hga (hs0 hd) (by intro he; exact ha (he ▸ hd))
100
- have hd := D.decrease g a hga
101
- have hb1 : D.length (g*f a) ≤ D.length b := by omega
102
- have hne1 : b ≠ g*f a := by intro he; rw [he] at hb; omega
103
- have hc : (↑(insert a s) : Set A).Pairwise (fun a d => Commute (f a) (f d)) :=
104
- fun _ ha _ hd hne => D.commute g _ _ (hs ha) (hs hd) hne
105
- change operator f (insert a s) hc x (fun a => if a = b then 1 else 0) g = 0
106
- rw [operator_insert f s a ha,Module.End.mul_apply,blend_apply]
107
- rw [ih g hs0 hb hne,ih (g*f a) hs1 hb1 hne1]
108
- ring
109
-
110
- theorem interpolation_vertex_zero (p : D.Point) (b : G)
111
- (hb : D.length p.top ≤ D.length b) (hne : b ≠ p.top) :
112
- D.interpolation p (fun a => if a = b then 1 else 0) = 0 :=
113
- D.descending_operator_delta_zero (D.active p) p.top (D.pointCell p).subset p.coord b hb hne
114
-
115
- theorem interpolation_top_eq (p q : D.Point)
116
- (he : ∀ φ, D.interpolation p φ = D.interpolation q φ) : p.top = q.top := by
117
- have length_le (p q : D.Point) (he : ∀ φ, D.interpolation p φ = D.interpolation q φ) :
118
- D.length q.top ≤ D.length p.top := by
119
- by_contra hn
120
- have hlt : D.length p.top < D.length q.top := lt_of_not_ge hn
121
- have hne : q.top ≠ p.top := by intro eq; rw [eq] at hlt; exact lt_irrefl _ hlt
122
- have hz := D.interpolation_vertex_zero p q.top hlt.le hne
123
- have hp := D.interpolation_vertex_pos q
124
- rw [← he,hz] at hp
125
- exact lt_irrefl _ hp
126
- have h₁ := length_le p q he
127
- by_contra hne
128
- have hz := D.interpolation_vertex_zero q p.top h₁ hne
129
- have hp := D.interpolation_vertex_pos p
130
- rw [he,hz] at hp
131
- exact lt_irrefl _ hp
132
-
133
- variable (exponent : A → G →* Multiplicative ℝ)
134
- variable (hexponent : ∀ g a, a ∈ D.desc g → ∀ b, b ∈ D.desc g →
135
- (exponent a (f b)).toAdd = if a = b then 1 else 0)
136
-
137
- include hexponent in
138
- theorem interpolation_exponent (p : D.Point) (a : A) (ha : a ∈ D.desc p.top) :
139
- D.interpolation p (fun g => (exponent a g).toAdd) =
140
- (exponent a p.top).toAdd + p.coord a := by
141
- refine (operator_linear f (exponent a) (D.active p)
142
- (D.cellComm (D.pointCell p)) p.coord p.top).trans ?_
143
- congr 1
144
- have he : ∀ b ∈ D.active p, (exponent a (f b)).toAdd = if a = b then 1 else 0 :=
145
- fun b hb => hexponent p.top a ha b ((D.pointCell p).subset hb)
146
- simp only [Finset.sum_congr rfl (fun b hb => congrArg (fun t : ℝ => p.coord b * t) (he b hb)),
147
- mul_ite,mul_one,mul_zero,Finset.sum_ite_eq]
148
- by_cases h : p.coord a = 0
149
- · simp [h]
150
- · simp [mem_active,h]
151
-
152
- include exponent hexponent in
153
- theorem interpolation_injective : Function.Injective
154
- (fun p : D.Point => fun φ : G → ℝ => D.interpolation p φ) := by
155
- intro p q he
156
- have he' : ∀ φ, D.interpolation p φ = D.interpolation q φ := fun φ => congrFun he φ
157
- have hb := D.interpolation_top_eq p q he'
158
- apply Point.ext hb
159
- funext a
160
- by_cases ha : a ∈ D.desc p.top
161
- · have hq : a ∈ D.desc q.top := by simpa only [hb] using ha
162
- have hh := he' (fun g => (exponent a g).toAdd)
163
- rw [D.interpolation_exponent exponent hexponent p a ha,
164
- D.interpolation_exponent exponent hexponent q a hq,hb] at hh
165
- exact add_left_cancel hh
166
- · have hp : p.coord a = 0 := by_contra (fun hn => ha (p.support a hn))
167
- have hq : q.coord a = 0 := by
168
- by_contra hn
169
- exact ha (by simpa only [hb] using q.support a hn)
170
- rw [hp,hq]
171
-
172
- include exponent hexponent in
173
- theorem point_t2 : T2Space D.Point :=
174
- T2Space.of_injective_continuous
175
- (D.interpolation_injective exponent hexponent)
176
- (continuous_pi (fun φ => D.interpolation_continuous φ))
177
-
178
- end EilenbergGanea.DescendingCube.Data
179
-
180
- open Classical Topology
181
- namespace WeakRealization
182
-
183
- /-- A homeomorphism is induced by point-separating coordinates and actual
184
- continuous lifts on each characteristic disk, in both directions. -/
185
- def homeomorph {ι κ X Y Z : Type*} {E : ι → Type*} {F : κ → Type*}
186
- [TopologicalSpace X] [TopologicalSpace Y]
187
- [∀ i, TopologicalSpace (E i)] [∀ j, TopologicalSpace (F j)]
188
- (e : ((i : ι) × E i) → X) (f : ((j : κ) × F j) → Y)
189
- (he : IsQuotientMap e) (hf : IsQuotientMap f)
190
- (J : X → Z) (K : Y → Z) (hJ : Function.Injective J) (hK : Function.Injective K)
191
- (hxy : ∀ i, ∃ φ : C(E i,Y), ∀ t, K (φ t) = J (e ⟨i,t⟩))
192
- (hyx : ∀ j, ∃ φ : C(F j,X), ∀ t, J (φ t) = K (f ⟨j,t⟩)) : X ≃ₜ Y := by
193
- have hx : ∀ x, ∃ y, K y = J x := by
194
- intro x
195
- obtain ⟨⟨i,t⟩,rfl⟩ := he.surjective x
196
- obtain ⟨φ,hφ⟩ := hxy i
197
- exact ⟨φ t,hφ t⟩
198
- have hy : ∀ y, ∃ x, J x = K y := by
199
- intro y
200
- obtain ⟨⟨j,t⟩,rfl⟩ := hf.surjective y
201
- obtain ⟨φ,hφ⟩ := hyx j
202
- exact ⟨φ t,hφ t⟩
203
- let A : X → Y := fun x => (hx x).choose
204
- let B : Y → X := fun y => (hy y).choose
205
- have hA : ∀ x, K (A x) = J x := fun x => (hx x).choose_spec
206
- have hB : ∀ y, J (B y) = K y := fun y => (hy y).choose_spec
207
- refine {
208
- toEquiv := {
209
- toFun := A
210
- invFun := B
211
- left_inv := fun x => hJ ((hB (A x)).trans (hA x))
212
- right_inv := fun y => hK ((hA (B y)).trans (hB y)) }
213
- continuous_toFun := ?_
214
- continuous_invFun := ?_ }
215
- · apply he.continuous_iff.mpr
216
- apply continuous_sigma
217
- intro i
218
- obtain ⟨φ,hφ⟩ := hxy i
219
- have hh : (fun t => A (e ⟨i,t⟩)) = φ := by
220
- funext t
221
- exact hK ((hA _).trans (hφ t).symm)
222
- change Continuous (fun t => A (e ⟨i,t⟩))
223
- rw [hh]
224
- exact φ.continuous
225
- · apply hf.continuous_iff.mpr
226
- apply continuous_sigma
227
- intro j
228
- obtain ⟨φ,hφ⟩ := hyx j
229
- have hh : (fun t => B (f ⟨j,t⟩)) = φ := by
230
- funext t
231
- exact hJ ((hB _).trans (hφ t).symm)
232
- change Continuous (fun t => B (f ⟨j,t⟩))
233
- rw [hh]
234
- exact φ.continuous
235
-
236
- end WeakRealization
237
-
238
- namespace EilenbergGanea.CubeInterpolation
239
- open CubicalChains.Reorientation
240
- variable {G V : Type*} [Group G]
241
-
242
- /-- Interpolation in a listed cube, independent of any topological model. -/
243
- def listed (f : V → G) (w : List V) (x : V → ℝ) : Module.End ℝ (G → ℝ) :=
244
- (w.map (fun v => blend (f v) (x v))).prod
245
-
246
- @[simp] theorem listed_nil (f : V → G) (x : V → ℝ) : listed f [] x = 1 := rfl
247
- @[simp] theorem listed_cons (f : V → G) (v : V) (w : List V) (x : V → ℝ) :
248
- listed f (v::w) x = blend (f v) (x v) * listed f w x := rfl
249
-
250
- theorem operator_listed [DecidableEq V] (f : V → G) (w : List V) (hw : w.Nodup)
251
- (hc : (w.toFinset : Set V).Pairwise (fun v u => Commute (f v) (f u))) (x : V → ℝ) :
252
- operator f w.toFinset hc x = listed f w x :=
253
- Finset.noncommProd_toFinset w _ _ hw
254
-
255
- /-- Literal multilinear invariance under reversing selected cube directions. -/
256
- theorem listed_reorientation (f : V → G) (w : List (Signed V))
257
- (hw : w.Pairwise (fun a b => Commute (f a.1) (f b.1)))
258
- (x : Signed V → ℝ) (z : V → ℝ)
259
- (hx : ∀ a ∈ w, x a = if a.2 then 1-z a.1 else z a.1) (φ : G → ℝ) (g : G) :
260
- listed (step f) w x φ g = listed f (w.map Prod.fst) z φ (origin f g w) := by
261
- induction w generalizing g with
262
- | nil => rfl
263
- | cons a w ih =>
264
- obtain ⟨ha,hw⟩ := List.pairwise_cons.mp hw
265
- have hxw : ∀ b ∈ w, x b = if b.2 then 1-z b.1 else z b.1 :=
266
- fun b hb => hx b (by simp [hb])
267
- simp only [listed_cons,List.map_cons,Module.End.mul_apply,blend_apply,
268
- ih hw hxw,hx a (by simp),step,origin]
269
- cases hb : a.2
270
- · simp only [Bool.false_eq_true,↓reduceIte]
271
- rw [origin_shift f g (f a.1) w ha]
272
- · simp only [↓reduceIte]
273
- rw [origin_shift f g (f a.1)⁻¹ w (fun b hb => (ha b hb).inv_left),
274
- inv_mul_cancel_right]
275
- ring
276
-
277
- end EilenbergGanea.CubeInterpolation
278
-
279
- namespace EilenbergGanea.ArtinCubicalTopology
280
- open TraceWords CubeInterpolation CubicalChains.Reorientation
281
- variable {V : Type*} [Fintype V] (L : SimpleGraph V)
282
-
283
- local instance : Std.Symm L.Adj := ⟨fun _ _ h => h.symm⟩
284
- local instance : Std.Irrefl L.Adj := ⟨fun _ => L.irrefl⟩
285
-
286
- abbrev f := artinGenerator L
287
- abbrev comm := fun v w h => adjacent_generators_commute L (v := v) (w := w) h
288
- abbrev D := artinDescendingData L
289
- abbrev Positive := CubeRealization.Point L (f L) (comm L)
290
- abbrev Descending := (D L).Point
291
-
292
- omit [Fintype V] in
293
- @[simp] theorem step_eq (a : Letter V) : step (f L) a = letterValue (f L) (invLetter a) := by
294
- cases a with | mk v b => cases b <;> rfl
295
-
296
- def exponent (v : V) : ArtinGroup L →* Multiplicative ℝ :=
297
- artinLift L (fun w => Multiplicative.ofAdd (if v = w then (1 : ℝ) else 0))
298
- (fun _ _ _ => Commute.all _ _)
299
-
300
- omit [Fintype V] in
301
- @[simp] theorem exponent_generator (v w : V) :
302
- (exponent L v (f L w)).toAdd = if v = w then 1 else 0 := by
303
- simp [exponent,f]
304
-
305
- omit [Fintype V] in
306
- @[simp] theorem height_generator (v : V) : (height L (f L v)).toAdd = 1 := by
307
- exact congrArg Multiplicative.toAdd (PresentedGroup.toGroup.of _)
308
-
309
- def signedExponent (a : Letter V) : ArtinGroup L →* Multiplicative ℝ :=
310
- artinLift L (fun v => Multiplicative.ofAdd
311
- (if a.1 = v then (if a.2 then (-1 : ℝ) else 1) else 0))
312
- (fun _ _ _ => Commute.all _ _)
313
-
314
- theorem signedExponent_step (g : ArtinGroup L) (a : Letter V) (ha : a ∈ (D L).desc g)
315
- (b : Letter V) (hb : b ∈ (D L).desc g) :
316
- (signedExponent L a (letterValue (f L) (invLetter b))).toAdd = if a = b then 1 else 0 := by
317
- by_cases he : a = b
318
- · subst b
319
- rcases a with ⟨v,b⟩
320
- cases b <;> simp [signedExponent,letterValue,invLetter,f]
321
- · have hi : Independent L a b := rightDescents_pairwise L g
322
- (by simpa [D,artinDescendingData] using ha) (by simpa [D,artinDescendingData] using hb) he
323
- have hv : a.1 ≠ b.1 := hi.ne
324
- rcases b with ⟨v,b⟩
325
- cases b <;> simp [signedExponent,letterValue,invLetter,f,hv,he]
326
-
327
- theorem positive_interp_inj : Function.Injective
328
- (fun p : Positive L => fun φ => CubeRealization.interpolation L (f L) (comm L) p φ) :=
329
- CubeRealization.interpolation_injective L (f L) (comm L) (height L) (height_generator L)
330
- (exponent L) (exponent_generator L)
331
-
332
- theorem descending_interp_inj : Function.Injective
333
- (fun p : Descending L => fun φ => (D L).interpolation p φ) :=
334
- (D L).interpolation_injective (signedExponent L) (by
335
- intro g a ha b hb
336
- by_cases he : a = b <;> simpa [he] using signedExponent_step L g a ha b hb)
337
-
338
- def flip (b : Bool) (t : unitInterval) : unitInterval :=
339
- if b then unitInterval.symm t else t
340
-
341
- @[simp] theorem flip_flip (b : Bool) (t : unitInterval) : flip b (flip b t) = t := by
342
- cases b <;> simp [flip]
343
-
344
- theorem flip_continuous (b : Bool) : Continuous (flip b) := by
345
- cases b
346
- · exact continuous_id
347
- · exact unitInterval.continuous_symm
348
-
349
- def vertexEquiv (w : Word V) (hw : (w.map Prod.fst).Nodup) :
350
- w.toFinset ≃ (w.map Prod.fst).toFinset :=
351
- Equiv.ofBijective (fun a => ⟨a.val.1,by
352
- exact List.mem_toFinset.mpr (List.mem_map.mpr ⟨a.val,List.mem_toFinset.mp a.property,rfl⟩)⟩) (by
353
- constructor
354
- · intro a b he
355
- apply Subtype.ext
356
- exact (List.nodup_map_iff_inj_on (hw.of_map Prod.fst)).mp hw
357
- a.val (List.mem_toFinset.mp a.property) b.val (List.mem_toFinset.mp b.property) (congrArg Subtype.val he)
358
- · intro v
359
- obtain ⟨a,ha,he⟩ := List.mem_map.mp (List.mem_toFinset.mp v.property)
360
- exact ⟨⟨a,by simpa using ha⟩,Subtype.ext he⟩)
361
-
362
- omit [Fintype V] in
363
- @[simp] theorem vertexEquiv_val (w : Word V) (hw : (w.map Prod.fst).Nodup)
364
- (a : w.toFinset) : (vertexEquiv w hw a).val = a.val.1 := rfl
365
-
366
- def toPositiveCoords (w : Word V) (hw : (w.map Prod.fst).Nodup)
367
- (x : w.toFinset → unitInterval) : (w.map Prod.fst).toFinset → unitInterval :=
368
- fun v => flip ((vertexEquiv w hw).symm v).val.2 (x ((vertexEquiv w hw).symm v))
369
-
370
- omit [Fintype V] in
371
- @[simp] theorem toPositiveCoords_apply (w : Word V) (hw : (w.map Prod.fst).Nodup)
372
- (x : w.toFinset → unitInterval) (a : w.toFinset) :
373
- toPositiveCoords w hw x (vertexEquiv w hw a) = flip a.val.2 (x a) := by
374
- simp [toPositiveCoords]
375
-
376
- omit [Fintype V] in
377
- theorem toPositiveCoords_continuous (w : Word V) (hw : (w.map Prod.fst).Nodup) :
378
- Continuous (toPositiveCoords w hw) :=
379
- continuous_pi (fun _ => (flip_continuous _).comp (continuous_apply _))
380
-
381
- def toDescendingCoords (w : Word V) (hw : (w.map Prod.fst).Nodup)
382
- (z : (w.map Prod.fst).toFinset → unitInterval) : w.toFinset → unitInterval :=
383
- fun a => flip a.val.2 (z (vertexEquiv w hw a))
384
-
385
- omit [Fintype V] in
386
- theorem toDescendingCoords_continuous (w : Word V) (hw : (w.map Prod.fst).Nodup) :
387
- Continuous (toDescendingCoords w hw) :=
388
- continuous_pi (fun _ => (flip_continuous _).comp (continuous_apply _))
389
-
390
- omit [Fintype V] in
391
- @[simp] theorem toPositive_toDescending (w : Word V) (hw : (w.map Prod.fst).Nodup)
392
- (z : (w.map Prod.fst).toFinset → unitInterval) :
393
- toPositiveCoords w hw (toDescendingCoords w hw z) = z := by
394
- funext v
395
- obtain ⟨a,rfl⟩ := (vertexEquiv w hw).surjective v
396
- simp [toDescendingCoords]
397
-
398
- def positiveCell (g : ArtinGroup L) (w : Word V) (hw : (w.map Prod.fst).Pairwise L.Adj) :
399
- CubeRealization.Cell (G := ArtinGroup L) L where
400
- base := origin (f L) g w
401
- directions := (w.map Prod.fst).toFinset
402
- clique := fun _ ha _ hb he => hw.forall (List.mem_toFinset.mp ha) (List.mem_toFinset.mp hb) he
403
-
404
- def descendingCell (g : ArtinGroup L) (w : Word V)
405
- (hd : ∀ a ∈ w, a ∈ rightDescents L g) : (D L).Cell where
406
- top := g
407
- directions := w.toFinset
408
- subset a ha := by simpa [D,artinDescendingData] using hd a (List.mem_toFinset.mp ha)
409
-
410
- theorem interpolation_reorientation (g : ArtinGroup L) (w : Word V)
411
- (hw : (w.map Prod.fst).Pairwise L.Adj) (hd : ∀ a ∈ w, a ∈ rightDescents L g)
412
- (x : (D L).Coordinates (descendingCell L g w hd)) (φ : ArtinGroup L → ℝ) :
413
- (D L).interpolation ((D L).characteristic (descendingCell L g w hd) x) φ =
414
- CubeRealization.interpolation L (f L) (comm L)
415
- (CubeRealization.characteristic (f L) (comm L) (positiveCell L g w hw)
416
- (toPositiveCoords w hw.nodup x)) φ := by
417
- refine ((D L).interpolation_characteristic (descendingCell L g w hd) x φ).trans ?_
418
- refine Eq.trans ?_ (CubeRealization.interpolation_characteristic L (f L) (comm L)
419
- (positiveCell L g w hw) (toPositiveCoords w hw.nodup x) φ).symm
420
- have hf : (fun a : Letter V => letterValue (artinGenerator L) (invLetter a)) = step (f L) :=
421
- funext (fun a => (step_eq L a).symm)
422
- erw [operator_listed _ w (hw.nodup.of_map Prod.fst),operator_listed _ _ hw.nodup]
423
- have hop := congrArg (fun k : Letter V → ArtinGroup L => listed k w) hf
424
- rw [hop]
425
- apply listed_reorientation
426
- · exact (List.pairwise_map.mp hw).imp (fun hh => adjacent_generators_commute L hh)
427
- · intro a ha
428
- let aa : w.toFinset := ⟨a,by simpa using ha⟩
429
- have h₁ : (D L).fullCoord (descendingCell L g w hd) x a = (x aa : ℝ) := by
430
- exact (D L).fullCoord_mem (descendingCell L g w hd) x aa
431
- have h₂ : CubeRealization.fullCoord (positiveCell L g w hw)
432
- (toPositiveCoords w hw.nodup x) a.1 = (flip a.2 (x aa) : ℝ) := by
433
- have hh := CubeRealization.fullCoord_mem (positiveCell L g w hw)
434
- (toPositiveCoords w hw.nodup x) (vertexEquiv w hw.nodup aa)
435
- exact hh.trans (congrArg (fun z : unitInterval => (z : ℝ))
436
- (toPositiveCoords_apply w hw.nodup x aa))
437
- rw [h₁,h₂]
438
- cases h : a.2 <;> simp [flip]
439
-
440
- theorem descendingCell_rep (c : (D L).Cell) :
441
- ∃ (g : ArtinGroup L) (w : Word V) (_hw : (w.map Prod.fst).Pairwise L.Adj)
442
- (hd : ∀ a ∈ w, a ∈ rightDescents L g), descendingCell L g w hd = c := by
443
- let w := c.directions.toList
444
- have hd : ∀ a ∈ w, a ∈ rightDescents L c.top := by
445
- intro a ha
446
- have hh := c.subset (Finset.mem_toList.mp ha)
447
- simpa [D,artinDescendingData] using hh
448
- have hw : (w.map Prod.fst).Pairwise L.Adj := by
449
- apply List.pairwise_map.mpr
450
- apply c.directions.nodup_toList.pairwise_of_forall_ne
451
- intro a ha b hb he
452
- exact rightDescents_pairwise L c.top (hd a ha) (hd b hb) he
453
- refine ⟨c.top,w,hw,hd,?_⟩
454
- cases c with
455
- | mk g s hs =>
456
- dsimp only [descendingCell,w]
457
- congr
458
- exact s.toList_toFinset
459
-
460
- omit [Fintype V] in
461
- theorem positiveCell_rep (c : CubeRealization.Cell (G := ArtinGroup L) L) :
462
- ∃ (g : ArtinGroup L) (w : Word V) (hw : (w.map Prod.fst).Pairwise L.Adj)
463
- (_hd : ∀ a ∈ w, a ∈ rightDescents L g), positiveCell L g w hw = c := by
464
- let v := c.directions.toList
465
- have hv : v.Pairwise L.Adj := c.directions.nodup_toList.pairwise_of_forall_ne
466
- (fun a ha b hb he => c.clique (Finset.mem_toList.mp ha) (Finset.mem_toList.mp hb) he)
467
- let o := CubeDescents.orient L c.base v
468
- have hw : (o.2.map Prod.fst).Pairwise L.Adj := by
469
- simpa only [o,CubeDescents.orient_map] using hv
470
- have hd : ∀ a ∈ o.2, a ∈ rightDescents L o.1 := CubeDescents.orient_descents L c.base v hv
471
- refine ⟨o.1,o.2,hw,hd,?_⟩
472
- have hb : origin (f L) o.1 o.2 = c.base := CubeDescents.origin_orient L c.base v hv
473
- have hs : (o.2.map Prod.fst).toFinset = c.directions := by
474
- simp only [o,CubeDescents.orient_map,v,Finset.toList_toFinset]
475
- cases c with
476
- | mk g s hc =>
477
- change CubeRealization.Cell.mk (origin (f L) o.1 o.2) (o.2.map Prod.fst).toFinset _ = _
478
- congr
479
-
480
- theorem descending_local_lift (c : (D L).Cell) :
481
- ∃ φ : C((D L).Coordinates c,Positive L), ∀ x,
482
- (fun ψ => CubeRealization.interpolation L (f L) (comm L) (φ x) ψ) =
483
- (fun ψ => (D L).interpolation ((D L).characteristic c x) ψ) := by
484
- obtain ⟨g,w,hw,hd,rfl⟩ := descendingCell_rep L c
485
- refine ⟨⟨fun x => CubeRealization.characteristic (f L) (comm L) (positiveCell L g w hw)
486
- (toPositiveCoords w hw.nodup x),
487
- (CubeRealization.characteristic_continuous (f L) (comm L) (positiveCell L g w hw)).comp
488
- (toPositiveCoords_continuous w hw.nodup)⟩,?_⟩
489
- intro x
490
- funext ψ
491
- exact (interpolation_reorientation L g w hw hd x ψ).symm
492
-
493
- theorem positive_local_lift (c : CubeRealization.Cell (G := ArtinGroup L) L) :
494
- ∃ φ : C(CubeRealization.Coordinates c,Descending L), ∀ x,
495
- (fun ψ => (D L).interpolation (φ x) ψ) =
496
- (fun ψ => CubeRealization.interpolation L (f L) (comm L)
497
- (CubeRealization.characteristic (f L) (comm L) c x) ψ) := by
498
- obtain ⟨g,w,hw,hd,rfl⟩ := positiveCell_rep L c
499
- refine ⟨⟨fun x => (D L).characteristic (descendingCell L g w hd) (toDescendingCoords w hw.nodup x),
500
- ((D L).characteristic_continuous (descendingCell L g w hd)).comp
501
- (toDescendingCoords_continuous w hw.nodup)⟩,?_⟩
502
- intro x
503
- funext ψ
504
- change (D L).interpolation ((D L).characteristic (descendingCell L g w hd)
505
- (toDescendingCoords w hw.nodup x)) ψ = _
506
- change (w.map Prod.fst).toFinset → unitInterval at x
507
- simpa only [toPositive_toDescending] using interpolation_reorientation L g w hw hd
508
- (toDescendingCoords w hw.nodup x) ψ
509
-
510
- /-- Reorientation preserves the actual weak topologies, not only cellular chains. -/
511
- def reorient : Descending L ≃ₜ Positive L :=
512
- WeakRealization.homeomorph (D L).evaluation (CubeRealization.evaluation (f L) (comm L))
513
- (D L).evaluation_quotient (CubeRealization.evaluation_quotient (f L) (comm L))
514
- (fun p ψ => (D L).interpolation p ψ)
515
- (fun p ψ => CubeRealization.interpolation L (f L) (comm L) p ψ)
516
- (descending_interp_inj L) (positive_interp_inj L)
517
- (descending_local_lift L) (positive_local_lift L)
518
-
519
- variable [Nonempty V]
520
-
521
- /-- The ordinary positive-cube CW realization is genuinely contractible. -/
522
- theorem positive_contractible : ContractibleSpace (Positive L) := by
523
- let : ContractibleSpace (Descending L) := artinDescending_contractible L
524
- exact (reorient L).symm.contractibleSpace
525
-
526
- end EilenbergGanea.ArtinCubicalTopology
527
-
528
- open Classical Set Topology
529
- namespace CompactChart
530
-
531
- /-- A characteristic map which has singleton fibers over its open cell has a
532
- continuous inverse there. Compactness is used only on the closed disk; no
533
- regularity of the attaching sphere is required. -/
534
- theorem continuousOn_symm {A X : Type*} [TopologicalSpace A] [TopologicalSpace X]
535
- [T2Space X] (e : PartialEquiv A X) (K : Set A) (hK : IsCompact K)
536
- (hsub : e.source ⊆ K) (hc : ContinuousOn e K)
537
- (hboundary : ∀ a ∈ K, e a ∈ e.target → a ∈ e.source) :
538
- ContinuousOn e.symm e.target := by
539
- let : CompactSpace K := isCompact_iff_compactSpace.mp hK
540
- let f : K → X := fun a => e a
541
- have hf : Continuous f := continuousOn_iff_continuous_domRestrict.mp hc
542
- let r := e.target.restrictPreimage f
543
- have hr : Function.Surjective r := by
544
- intro x
545
- refine ⟨⟨⟨e.symm x,hsub (e.map_target x.property)��,?_⟩,?_⟩
546
- · change e (e.symm x) ∈ e.target
547
- rw [e.right_inv x.property]
548
- exact x.property
549
- · exact Subtype.ext (e.right_inv x.property)
550
- have hq : IsQuotientMap r :=
551
- (hf.isClosedMap.restrictPreimage e.target).isQuotientMap hf.restrictPreimage hr
552
- apply continuousOn_iff_continuous_domRestrict.mpr
553
- apply hq.continuous_iff.mpr
554
- have he : (fun x : e.target => e.symm x) ∘ r =
555
- (fun a : f ⁻¹' e.target => (a.val.val : A)) := by
556
- funext a
557
- exact e.left_inv (hboundary a.val a.val.property a.property)
558
- change Continuous ((fun x : e.target => e.symm x) ∘ r)
559
- rw [he]
560
- exact continuous_subtype_val.comp continuous_subtype_val
561
-
562
- end CompactChart
563
-
564
- namespace EilenbergGanea.CubeRealization
565
-
566
- section
567
- open Metric
568
- variable {G V : Type*} [Group G] [Fintype V]
569
- variable {L : SimpleGraph V} (f : V → G)
570
- variable (comm : ∀ v w, L.Adj v w → Commute (f v) (f w))
571
-
572
- theorem chartInverse_continuousOn_of_t2 [T2Space (Point (G := G) L f comm)]
573
- {n : ℕ} (c : DimCell (G := G) (L := L) n) :
574
- ContinuousOn (chart f comm c).symm (chart f comm c).target := by
575
- apply CompactChart.continuousOn_symm (chart f comm c) (closedBall 0 1)
576
- (isCompact_closedBall _ _) ball_subset_closedBall (chart_continuous f comm c).continuousOn
577
- intro t ht he
578
- change pointCell (chart f comm c t) = c.val at he
579
- change t ∈ ball 0 1
580
- by_contra hn
581
- have hs : t ∈ sphere 0 1 := mem_sphere.mpr
582
- (le_antisymm (mem_closedBall.mp ht) (le_of_not_gt hn))
583
- have hd := boundary_dimension_lt f comm c hs
584
- rw [he,c.property] at hd
585
- exact (lt_irrefl _) hd
586
-
587
- /-- The ordinary CW structure follows from the genuine normalized-cube gluing;
588
- only Hausdorffness and compact characteristic disks are used. -/
589
- @[instance_reducible] def cwComplexOfT2 [T2Space (Point (G := G) L f comm)] : CWComplex (univ : Set (Point (G := G) L f comm)) where
590
- cell := DimCell (G := G) (L := L)
591
- map := fun _ c => chart f comm c
592
- source_eq := fun _ _ => rfl
593
- continuousOn := fun _ c => (chart_continuous f comm c).continuousOn
594
- continuousOn_symm := fun _ c => chartInverse_continuousOn_of_t2 f comm c
595
- pairwiseDisjoint' := by
596
- intro a _ b _ hab
597
- change Disjoint (chart f comm a.2 '' ball 0 1) (chart f comm b.2 '' ball 0 1)
598
- rw [chart_image_ball,chart_image_ball]
599
- apply Set.disjoint_left.mpr
600
- intro p ha hb
601
- apply hab
602
- have he : a.2.val = b.2.val := ha.symm.trans hb
603
- have hn : a.1 = b.1 := a.2.property.symm.trans ((congrArg (fun c => c.directions.card) he).trans b.2.property)
604
- cases a with | mk n a =>
605
- cases b with | mk m b =>
606
- dsimp at hn
607
- subst m
608
- exact congrArg (Sigma.mk n) (Subtype.ext he)
609
- mapsTo' := chart_mapsTo f comm
610
- closed' := by
611
- intro A _ hA
612
- apply (evaluation_quotient f comm).isClosed_preimage.mp
613
- rw [isClosed_sigma_iff]
614
- intro c
615
- let d : DimCell (G := G) (L := L) c.directions.card := ⟨c,rfl⟩
616
- have hh := (hA _ d).preimage (characteristic_continuous f comm c)
617
- rw [chart_image_disk] at hh
618
- change IsClosed (characteristic f comm c ⁻¹' (A ∩ Set.range (characteristic f comm c))) at hh
619
- change IsClosed (characteristic f comm c ⁻¹' A)
620
- simpa only [Set.preimage_inter,Set.preimage_range,Set.inter_univ] using hh
621
- union' := by
622
- apply Set.eq_univ_of_forall
623
- intro p
624
- let d : DimCell (G := G) (L := L) (pointCell p).directions.card := ⟨pointCell p,rfl⟩
625
- apply Set.mem_iUnion.mpr
626
- refine ⟨_,Set.mem_iUnion.mpr ⟨d,?_⟩⟩
627
- rw [chart_image_disk]
628
- exact ⟨pointCoordinates p,characteristic_point f comm p⟩
629
-
630
- end
631
-
632
- variable {G Q V : Type*} [Group G] [Group Q] [Fintype V]
633
- variable {L : SimpleGraph V} (f : V → G)
634
- variable (comm : ∀ v w, L.Adj v w → Commute (f v) (f w))
635
- variable (q : G →* Q)
636
-
637
- include comm in
638
- omit [Fintype V] in
639
- theorem mappedComm : ∀ v w, L.Adj v w → Commute ((q ∘ f) v) ((q ∘ f) w) :=
640
- fun v w hvw => (comm v w hvw).map q
641
-
642
- /-- Applying a group homomorphism only to the initial vertices of cubes. -/
643
- def mapPoint (p : Point (G := G) L f comm) : Point (G := Q) L (q ∘ f) (mappedComm f comm q) where
644
- base := q p.base
645
- coord := p.coord
646
- nonneg := p.nonneg
647
- lt_one := p.lt_one
648
- clique := p.clique
649
-
650
- def mapCell (c : Cell (G := G) L) : Cell (G := Q) L where
651
- base := q c.base
652
- directions := c.directions
653
- clique := c.clique
654
-
655
- omit [Fintype V] in
656
- @[simp] theorem mapPoint_base (p : Point (G := G) L f comm) :
657
- (mapPoint f comm q p).base = q p.base := rfl
658
-
659
- omit [Fintype V] in
660
- @[simp] theorem mapPoint_coord (p : Point (G := G) L f comm) :
661
- (mapPoint f comm q p).coord = p.coord := rfl
662
-
663
- omit [Fintype V] in
664
- @[simp] theorem mapPoint_characteristic (c : Cell (G := G) L) (x : Coordinates c) :
665
- mapPoint f comm q (characteristic f comm c x) =
666
- characteristic (q ∘ f) (mappedComm f comm q) (mapCell q c) x := by
667
- apply Point.ext
668
- · change q (c.base * product f comm (ones c x) _) =
669
- q c.base * product (q ∘ f) (mappedComm f comm q) (ones c x) _
670
- rw [map_mul]
671
- congr 1
672
- exact Finset.map_noncommProd _ _ _ q
673
- · rfl
674
-
675
- theorem mapPoint_continuous : Continuous (mapPoint f comm q) := by
676
- apply (evaluation_quotient f comm).continuous_iff.mpr
677
- apply continuous_sigma
678
- intro c
679
- change Continuous (fun x => mapPoint f comm q (characteristic f comm c x))
680
- simp only [mapPoint_characteristic]
681
- exact characteristic_continuous (q ∘ f) (mappedComm f comm q) (mapCell q c)
682
-
683
- omit [Fintype V] in
684
- theorem mapCell_surjective (hq : Function.Surjective q) : Function.Surjective (mapCell (L := L) q) := by
685
- rintro ⟨a,s,hs⟩
686
- obtain ⟨g,rfl⟩ := hq a
687
- exact ⟨⟨g,s,hs⟩,rfl⟩
688
-
689
- omit [Fintype V] in
690
- theorem mapPoint_surjective (hq : Function.Surjective q) : Function.Surjective (mapPoint f comm q) := by
691
- rintro ⟨a,x,hx,ht,hc⟩
692
- obtain ⟨g,rfl⟩ := hq a
693
- exact ⟨⟨g,x,hx,ht,hc⟩,rfl⟩
694
-
695
- /-- The base-label quotient is a genuine topological quotient for the weak
696
- cubical topologies, proved by lifting each actual characteristic disk. -/
697
- theorem mapPoint_quotient (hq : Function.Surjective q) : IsQuotientMap (mapPoint f comm q) := by
698
- apply isQuotientMap_iff_isClosed.mpr
699
- refine ⟨mapPoint_surjective f comm q hq,?_⟩
700
- intro A
701
- constructor
702
- · exact fun hA => hA.preimage (mapPoint_continuous f comm q)
703
- · intro hA
704
- apply (evaluation_quotient (q ∘ f) (mappedComm f comm q)).isClosed_preimage.mp
705
- rw [isClosed_sigma_iff]
706
- intro c
707
- obtain ⟨d,rfl⟩ := mapCell_surjective q hq c
708
- have hh := hA.preimage (characteristic_continuous f comm d)
709
- change IsClosed ((fun x => mapPoint f comm q (characteristic f comm d x)) ⁻¹' A) at hh
710
- change IsClosed ((fun x : Coordinates d =>
711
- characteristic (q ∘ f) (mappedComm f comm q) (mapCell q d) x) ⁻¹' A)
712
- simpa only [mapPoint_characteristic] using hh
713
-
714
- omit [Fintype V] in
715
- /-- The literal group-kernel orbits are exactly the fibers of the cube map. -/
716
- theorem mapPoint_eq_iff_orbit (p r : Point (G := G) L f comm) :
717
- mapPoint f comm q p = mapPoint f comm q r ↔ p ∈ MulAction.orbit q.ker r := by
718
- constructor
719
- · intro he
720
- have hb : q p.base = q r.base := congrArg Point.base he
721
- have hx : p.coord = r.coord := congrArg (fun z : Point (G := Q) L (q ∘ f)
722
- (mappedComm f comm q) => z.coord) he
723
- let g : q.ker := ⟨p.base * r.base⁻¹,by simp only [MonoidHom.mem_ker,map_mul,map_inv,hb,mul_inv_cancel]⟩
724
- refine ⟨g,?_⟩
725
- apply Point.ext
726
- · change (p.base * r.base⁻¹) * r.base = p.base
727
- simp [mul_assoc]
728
- · exact hx.symm
729
- · rintro ⟨g,rfl⟩
730
- apply Point.ext
731
- · change q ((g : G) * r.base) = q r.base
732
- rw [map_mul,g.property,one_mul]
733
- · rfl
734
-
735
- /-- The quotient homeomorphism respects the actual weak topologies. -/
736
- def kernelQuotientHomeomorph (hq : Function.Surjective q) :
737
- Quotient (MulAction.orbitRel q.ker (Point (G := G) L f comm)) ≃ₜ
738
- Point (G := Q) L (q ∘ f) (mappedComm f comm q) :=
739
- (Homeomorph.Quotient.congrRight (fun p r => (mapPoint_eq_iff_orbit f comm q p r).symm)).trans
740
- (Topology.IsQuotientMap.homeomorph (f := ⟨mapPoint f comm q,mapPoint_continuous f comm q⟩)
741
- (mapPoint_quotient f comm q hq))
742
-
743
- variable (h : G →* Multiplicative ℤ) (hf : ∀ v, (h (f v)).toAdd = 1)
744
- variable (exponent : V → G →* Multiplicative ℝ)
745
- variable (hexponent : ∀ v w, (exponent v (f w)).toAdd = if v = w then 1 else 0)
746
-
747
- include h hf exponent hexponent in
748
- theorem quotientPoint_t2 (hq : Function.Surjective q) :
749
- T2Space (Point (G := Q) L (q ∘ f) (mappedComm f comm q)) := by
750
- let := point_t2 L f comm h hf exponent hexponent
751
- let := point_weaklyLocallyCompact L f comm
752
- exact (kernelQuotientHomeomorph f comm q hq).t2Space
753
-
754
- include h hf exponent hexponent in
755
- theorem mapPoint_covering (hq : Function.Surjective q) :
756
- IsQuotientCoveringMap (mapPoint f comm q) q.ker where
757
- toIsQuotientMap := mapPoint_quotient f comm q hq
758
- continuous_const_smul := continuous_const_smul
759
- apply_eq_iff_mem_orbit := mapPoint_eq_iff_orbit f comm q _ _
760
- disjoint := (subgroup_quotient_covering f comm h hf exponent hexponent q.ker).disjoint
761
-
762
- end EilenbergGanea.CubeRealization
763
-
764
- namespace EilenbergGanea
765
- universe u
766
- namespace ArtinCubicalTopology
767
- open CubeRealization
768
- variable {V : Type u} [Fintype V] [Nonempty V] (L : SimpleGraph V)
769
-
770
- omit [Fintype V] in
771
- theorem height_surjective : Function.Surjective (height L) := by
772
- intro n
773
- let v : V := Classical.choice inferInstance
774
- refine ⟨f L v ^ n.toAdd,?_⟩
775
- rw [map_zpow]
776
- apply Multiplicative.toAdd.injective
777
- change n.toAdd • (height L (f L v)).toAdd = n.toAdd
778
- simp only [height_generator,zsmul_eq_mul,mul_one,Int.cast_id]
779
-
780
- def HeightQuotient := Point L ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))
781
-
782
- instance : TopologicalSpace (HeightQuotient L) := inferInstanceAs (TopologicalSpace
783
- (Point L ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))))
784
-
785
- /-- An ordinary cubical classifying space for the height kernel, with one cube
786
- for every integral level and clique. Contractibility above is the explicit
787
- word-length contraction, and the fundamental-group identification reuses
788
- Mathlib's checked covering-monodromy equivalence. -/
789
- theorem height_hasClassifyingSpace (d : ℕ)
790
- (hd : ∀ s : Finset V, (s : Set V).Pairwise L.Adj → s.card ≤ d) :
791
- HasClassifyingSpace.{u} (height L).ker d := by
792
- let X := Point L ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))
793
- let E := Positive L
794
- let : ContractibleSpace E := positive_contractible L
795
- let : T2Space X := quotientPoint_t2 (f L) (comm L) (height L)
796
- (height L) (height_generator L) (exponent L) (exponent_generator L) (height_surjective L)
797
- let : Topology.CWComplex (Set.univ : Set X) :=
798
- cwComplexOfT2 ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))
799
- let p : E → X := mapPoint (f L) (comm L) (height L)
800
- have hp : IsQuotientCoveringMap p (height L).ker :=
801
- mapPoint_covering (f L) (comm L) (height L) (height L) (height_generator L)
802
- (exponent L) (exponent_generator L) (height_surjective L)
803
- have hs : Function.Surjective p := mapPoint_surjective (f L) (comm L) (height L) (height_surjective L)
804
- let : PathConnectedSpace X := hs.pathConnectedSpace hp.continuous
805
- let e : E := Classical.choice (inferInstance : Nonempty E)
806
- refine ⟨X,inferInstance,inferInstance,inferInstance,?_,inferInstance,p e,?_,
807
- E,inferInstance,inferInstance,p,hp.isCoveringMap,hs⟩
808
- · intro k hk
809
- exact ⟨fun c => Nat.not_lt_of_ge ((c.property.symm ▸ hd c.val.directions c.val.clique)) hk⟩
810
- · exact ⟨(hp.fundamentalGroupEquiv ⟨e,rfl⟩).trans (MulEquiv.inv' ((height L).ker)).symm⟩
811
-
812
- end ArtinCubicalTopology
813
-
814
- /-- The fixed source group has an ordinary three-dimensional classifying CW
815
- space, with an actually contractible surjective covering. -/
816
- theorem source_hasClassifyingSpace_three : HasClassifyingSpace.{0} SourceGroup 3 :=
817
- ArtinCubicalTopology.height_hasClassifyingSpace seedGraph 3 SeedConnection.clique_card_le_three
818
- end EilenbergGanea
819
-
820
- end
821
-
822
- end OAI
 
1
+ import OAI.AlgebraicTopology.Cubical.Realization
2
+ import OAI.AlgebraicTopology.Cubical.ArtinChains
3
+ import OAI.Topology.EilenbergGanea.Model
4
+ import OAI.Topology.EilenbergGanea.SeedConnection
5
+ import Mathlib.Topology.Covering.Quotient
6
+ import Mathlib.Topology.Covering.Deck
7
+ import Mathlib.Topology.Homotopy.Lifting
8
+
9
+ namespace OAI
10
+
11
+ noncomputable section
12
+
13
+ open Classical Set Topology
14
+ open scoped Quaternion
15
+
16
+ namespace EilenbergGanea.DescendingCube.Data
17
+ open CubeInterpolation
18
+ variable {G A : Type*} [Group G] {f : A → G} (D : Data f)
19
+ variable [Fintype A]
20
+
21
+ omit [Fintype A] in
22
+ theorem cellComm (c : D.Cell) : (c.directions : Set A).Pairwise
23
+ (fun a b => Commute (f a) (f b)) :=
24
+ fun _ ha _ hb he => D.commute c.top _ _ (c.subset ha) (c.subset hb) he
25
+
26
+ omit [Fintype A] in
27
+ theorem ones_eq_filter (c : D.Cell) (x : D.Coordinates c) :
28
+ D.ones c x = c.directions.filter (fun a => D.fullCoord c x a = 1) := by
29
+ ext a
30
+ simp only [mem_ones,Finset.mem_filter]
31
+ constructor
32
+ · rintro ⟨ha,hx⟩
33
+ exact ⟨ha,by simpa only [fullCoord,dite_eq_left ha] using hx⟩
34
+ · rintro ⟨ha,hx⟩
35
+ exact ⟨ha,by simpa only [fullCoord,dite_eq_left ha] using hx⟩
36
+
37
+ omit [Fintype A] in
38
+ theorem normalize_fullCoord (c : D.Cell) (x : D.Coordinates c) :
39
+ CubeInterpolation.normalize (D.fullCoord c x) = D.normalizedCoord c x := by
40
+ funext a
41
+ by_cases ha : a ∈ c.directions
42
+ · simp only [CubeInterpolation.normalize,fullCoord,normalizedCoord,dite_eq_left ha]
43
+ · simp [CubeInterpolation.normalize,fullCoord,normalizedCoord,ha]
44
+
45
+ def interpolation (p : D.Point) (φ : G → ℝ) : ℝ :=
46
+ operator f (D.active p) (D.cellComm (D.pointCell p)) p.coord φ p.top
47
+
48
+ theorem active_characteristic_subset (c : D.Cell) (x : D.Coordinates c) :
49
+ D.active (D.characteristic c x) ⊆ c.directions := by
50
+ intro a ha
51
+ by_contra h
52
+ apply ((D.mem_active _ _).mp ha)
53
+ change D.normalizedCoord c x a = 0
54
+ simp [normalizedCoord,h]
55
+
56
+ theorem interpolation_characteristic (c : D.Cell) (x : D.Coordinates c) (φ : G → ℝ) :
57
+ D.interpolation (D.characteristic c x) φ =
58
+ operator f c.directions (D.cellComm c) (D.fullCoord c x) φ c.top := by
59
+ have hsub := D.active_characteristic_subset c x
60
+ have he := operator_subset f (D.active (D.characteristic c x)) c.directions
61
+ (D.cellComm c) hsub (D.normalizedCoord c x) (by
62
+ intro a _ hn
63
+ exact not_not.mp (by simpa only [mem_active,characteristic] using hn))
64
+ have hn := operator_normalize f c.directions (D.cellComm c) (D.fullCoord c x)
65
+ simp only [normalize_fullCoord,← ones_eq_filter] at hn
66
+ have hh := congrArg (fun T : Module.End ℝ (G → ℝ) => T φ c.top) hn
67
+ rw [Module.End.mul_apply,translation_apply,he] at hh
68
+ exact hh.symm
69
+
70
+ theorem interpolation_continuous (φ : G → ℝ) :
71
+ Continuous (fun p : D.Point => D.interpolation p φ) := by
72
+ apply D.evaluation_quotient.continuous_iff.mpr
73
+ apply continuous_sigma
74
+ intro c
75
+ change Continuous (fun x : D.Coordinates c => D.interpolation (D.characteristic c x) φ)
76
+ simp only [interpolation_characteristic]
77
+ exact operator_continuous f c.directions _ (D.fullCoord c)
78
+ (fun a _ => D.fullCoord_continuous c a) φ c.top
79
+
80
+ theorem interpolation_vertex_pos (p : D.Point) :
81
+ 0 < D.interpolation p (fun a => if a = p.top then 1 else 0) := by
82
+ apply operator_pos
83
+ · intro a _; exact ⟨p.nonneg a,p.lt_one a⟩
84
+ · intro a; split_ifs <;> norm_num
85
+ · simp
86
+
87
+ omit [Fintype A] in
88
+ theorem descending_operator_delta_zero (s : Finset A) (g : G) (hs : s ⊆ D.desc g)
89
+ (x : A → ℝ) (b : G) (hb : D.length g ≤ D.length b) (hne : b ≠ g) :
90
+ operator f s (fun a ha d hd hne => D.commute g a d (hs ha) (hs hd) hne)
91
+ x (fun a => if a = b then 1 else 0) g = 0 := by
92
+ induction s using Finset.induction_on generalizing g with
93
+ | empty => simp [operator_empty,hne.symm]
94
+ | @insert a s ha ih =>
95
+ have hga := hs (Finset.mem_insert_self a s)
96
+ have hs0 : s ⊆ D.desc g := fun d hd => hs (Finset.mem_insert_of_mem hd)
97
+ have hs1 : s ⊆ D.desc (g * f a) := by
98
+ intro d hd
99
+ exact D.preserve g a d hga (hs0 hd) (by intro he; exact ha (he ▸ hd))
100
+ have hd := D.decrease g a hga
101
+ have hb1 : D.length (g*f a) ≤ D.length b := by omega
102
+ have hne1 : b ≠ g*f a := by intro he; rw [he] at hb; omega
103
+ have hc : (↑(insert a s) : Set A).Pairwise (fun a d => Commute (f a) (f d)) :=
104
+ fun _ ha _ hd hne => D.commute g _ _ (hs ha) (hs hd) hne
105
+ change operator f (insert a s) hc x (fun a => if a = b then 1 else 0) g = 0
106
+ rw [operator_insert f s a ha,Module.End.mul_apply,blend_apply]
107
+ rw [ih g hs0 hb hne,ih (g*f a) hs1 hb1 hne1]
108
+ ring
109
+
110
+ theorem interpolation_vertex_zero (p : D.Point) (b : G)
111
+ (hb : D.length p.top ≤ D.length b) (hne : b ≠ p.top) :
112
+ D.interpolation p (fun a => if a = b then 1 else 0) = 0 :=
113
+ D.descending_operator_delta_zero (D.active p) p.top (D.pointCell p).subset p.coord b hb hne
114
+
115
+ theorem interpolation_top_eq (p q : D.Point)
116
+ (he : ∀ φ, D.interpolation p φ = D.interpolation q φ) : p.top = q.top := by
117
+ have length_le (p q : D.Point) (he : ∀ φ, D.interpolation p φ = D.interpolation q φ) :
118
+ D.length q.top ≤ D.length p.top := by
119
+ by_contra hn
120
+ have hlt : D.length p.top < D.length q.top := lt_of_not_ge hn
121
+ have hne : q.top ≠ p.top := by intro eq; rw [eq] at hlt; exact lt_irrefl _ hlt
122
+ have hz := D.interpolation_vertex_zero p q.top hlt.le hne
123
+ have hp := D.interpolation_vertex_pos q
124
+ rw [← he,hz] at hp
125
+ exact lt_irrefl _ hp
126
+ have h₁ := length_le p q he
127
+ by_contra hne
128
+ have hz := D.interpolation_vertex_zero q p.top h₁ hne
129
+ have hp := D.interpolation_vertex_pos p
130
+ rw [he,hz] at hp
131
+ exact lt_irrefl _ hp
132
+
133
+ variable (exponent : A → G →* Multiplicative ℝ)
134
+ variable (hexponent : ∀ g a, a ∈ D.desc g → ∀ b, b ∈ D.desc g →
135
+ (exponent a (f b)).toAdd = if a = b then 1 else 0)
136
+
137
+ include hexponent in
138
+ theorem interpolation_exponent (p : D.Point) (a : A) (ha : a ∈ D.desc p.top) :
139
+ D.interpolation p (fun g => (exponent a g).toAdd) =
140
+ (exponent a p.top).toAdd + p.coord a := by
141
+ refine (operator_linear f (exponent a) (D.active p)
142
+ (D.cellComm (D.pointCell p)) p.coord p.top).trans ?_
143
+ congr 1
144
+ have he : ∀ b ∈ D.active p, (exponent a (f b)).toAdd = if a = b then 1 else 0 :=
145
+ fun b hb => hexponent p.top a ha b ((D.pointCell p).subset hb)
146
+ simp only [Finset.sum_congr rfl (fun b hb => congrArg (fun t : ℝ => p.coord b * t) (he b hb)),
147
+ mul_ite,mul_one,mul_zero,Finset.sum_ite_eq]
148
+ by_cases h : p.coord a = 0
149
+ · simp [h]
150
+ · simp [mem_active,h]
151
+
152
+ include exponent hexponent in
153
+ theorem interpolation_injective : Function.Injective
154
+ (fun p : D.Point => fun φ : G → ℝ => D.interpolation p φ) := by
155
+ intro p q he
156
+ have he' : ∀ φ, D.interpolation p φ = D.interpolation q φ := fun φ => congrFun he φ
157
+ have hb := D.interpolation_top_eq p q he'
158
+ apply Point.ext hb
159
+ funext a
160
+ by_cases ha : a ∈ D.desc p.top
161
+ · have hq : a ∈ D.desc q.top := by simpa only [hb] using ha
162
+ have hh := he' (fun g => (exponent a g).toAdd)
163
+ rw [D.interpolation_exponent exponent hexponent p a ha,
164
+ D.interpolation_exponent exponent hexponent q a hq,hb] at hh
165
+ exact add_left_cancel hh
166
+ · have hp : p.coord a = 0 := by_contra (fun hn => ha (p.support a hn))
167
+ have hq : q.coord a = 0 := by
168
+ by_contra hn
169
+ exact ha (by simpa only [hb] using q.support a hn)
170
+ rw [hp,hq]
171
+
172
+ include exponent hexponent in
173
+ theorem point_t2 : T2Space D.Point :=
174
+ T2Space.of_injective_continuous
175
+ (D.interpolation_injective exponent hexponent)
176
+ (continuous_pi (fun φ => D.interpolation_continuous φ))
177
+
178
+ end EilenbergGanea.DescendingCube.Data
179
+
180
+ open Classical Topology
181
+ namespace WeakRealization
182
+
183
+ /-- A homeomorphism is induced by point-separating coordinates and actual
184
+ continuous lifts on each characteristic disk, in both directions. -/
185
+ def homeomorph {ι κ X Y Z : Type*} {E : ι → Type*} {F : κ → Type*}
186
+ [TopologicalSpace X] [TopologicalSpace Y]
187
+ [∀ i, TopologicalSpace (E i)] [∀ j, TopologicalSpace (F j)]
188
+ (e : ((i : ι) × E i) → X) (f : ((j : κ) × F j) → Y)
189
+ (he : IsQuotientMap e) (hf : IsQuotientMap f)
190
+ (J : X → Z) (K : Y → Z) (hJ : Function.Injective J) (hK : Function.Injective K)
191
+ (hxy : ∀ i, ∃ φ : C(E i,Y), ∀ t, K (φ t) = J (e ⟨i,t⟩))
192
+ (hyx : ∀ j, ∃ φ : C(F j,X), ∀ t, J (φ t) = K (f ⟨j,t⟩)) : X ≃ₜ Y := by
193
+ have hx : ∀ x, ∃ y, K y = J x := by
194
+ intro x
195
+ obtain ⟨⟨i,t⟩,rfl⟩ := he.surjective x
196
+ obtain ⟨φ,hφ⟩ := hxy i
197
+ exact ⟨φ t,hφ t⟩
198
+ have hy : ∀ y, ∃ x, J x = K y := by
199
+ intro y
200
+ obtain ⟨⟨j,t⟩,rfl⟩ := hf.surjective y
201
+ obtain ⟨φ,hφ⟩ := hyx j
202
+ exact ⟨φ t,hφ t⟩
203
+ let A : X → Y := fun x => (hx x).choose
204
+ let B : Y → X := fun y => (hy y).choose
205
+ have hA : ∀ x, K (A x) = J x := fun x => (hx x).choose_spec
206
+ have hB : ∀ y, J (B y) = K y := fun y => (hy y).choose_spec
207
+ refine {
208
+ toEquiv := {
209
+ toFun := A
210
+ invFun := B
211
+ left_inv := fun x => hJ ((hB (A x)).trans (hA x))
212
+ right_inv := fun y => hK ((hA (B y)).trans (hB y)) }
213
+ continuous_toFun := ?_
214
+ continuous_invFun := ?_ }
215
+ · apply he.continuous_iff.mpr
216
+ apply continuous_sigma
217
+ intro i
218
+ obtain ⟨φ,hφ⟩ := hxy i
219
+ have hh : (fun t => A (e ⟨i,t⟩)) = φ := by
220
+ funext t
221
+ exact hK ((hA _).trans (hφ t).symm)
222
+ change Continuous (fun t => A (e ⟨i,t⟩))
223
+ rw [hh]
224
+ exact φ.continuous
225
+ · apply hf.continuous_iff.mpr
226
+ apply continuous_sigma
227
+ intro j
228
+ obtain ⟨φ,hφ⟩ := hyx j
229
+ have hh : (fun t => B (f ⟨j,t⟩)) = φ := by
230
+ funext t
231
+ exact hJ ((hB _).trans (hφ t).symm)
232
+ change Continuous (fun t => B (f ⟨j,t⟩))
233
+ rw [hh]
234
+ exact φ.continuous
235
+
236
+ end WeakRealization
237
+
238
+ namespace EilenbergGanea.CubeInterpolation
239
+ open CubicalChains.Reorientation
240
+ variable {G V : Type*} [Group G]
241
+
242
+ /-- Interpolation in a listed cube, independent of any topological model. -/
243
+ def listed (f : V → G) (w : List V) (x : V → ℝ) : Module.End ℝ (G → ℝ) :=
244
+ (w.map (fun v => blend (f v) (x v))).prod
245
+
246
+ @[simp] theorem listed_nil (f : V → G) (x : V → ℝ) : listed f [] x = 1 := rfl
247
+ @[simp] theorem listed_cons (f : V → G) (v : V) (w : List V) (x : V → ℝ) :
248
+ listed f (v::w) x = blend (f v) (x v) * listed f w x := rfl
249
+
250
+ theorem operator_listed [DecidableEq V] (f : V → G) (w : List V) (hw : w.Nodup)
251
+ (hc : (w.toFinset : Set V).Pairwise (fun v u => Commute (f v) (f u))) (x : V → ℝ) :
252
+ operator f w.toFinset hc x = listed f w x :=
253
+ Finset.noncommProd_toFinset w _ _ hw
254
+
255
+ /-- Literal multilinear invariance under reversing selected cube directions. -/
256
+ theorem listed_reorientation (f : V → G) (w : List (Signed V))
257
+ (hw : w.Pairwise (fun a b => Commute (f a.1) (f b.1)))
258
+ (x : Signed V → ℝ) (z : V → ℝ)
259
+ (hx : ∀ a ∈ w, x a = if a.2 then 1-z a.1 else z a.1) (φ : G → ℝ) (g : G) :
260
+ listed (step f) w x φ g = listed f (w.map Prod.fst) z φ (origin f g w) := by
261
+ induction w generalizing g with
262
+ | nil => rfl
263
+ | cons a w ih =>
264
+ obtain ⟨ha,hw⟩ := List.pairwise_cons.mp hw
265
+ have hxw : ∀ b ∈ w, x b = if b.2 then 1-z b.1 else z b.1 :=
266
+ fun b hb => hx b (by simp [hb])
267
+ simp only [listed_cons,List.map_cons,Module.End.mul_apply,blend_apply,
268
+ ih hw hxw,hx a (by simp),step,origin]
269
+ cases hb : a.2
270
+ · simp only [Bool.false_eq_true,↓reduceIte]
271
+ rw [origin_shift f g (f a.1) w ha]
272
+ · simp only [↓reduceIte]
273
+ rw [origin_shift f g (f a.1)⁻¹ w (fun b hb => (ha b hb).inv_left),
274
+ inv_mul_cancel_right]
275
+ ring
276
+
277
+ end EilenbergGanea.CubeInterpolation
278
+
279
+ namespace EilenbergGanea.ArtinCubicalTopology
280
+ open TraceWords CubeInterpolation CubicalChains.Reorientation
281
+ variable {V : Type*} [Fintype V] (L : SimpleGraph V)
282
+
283
+ local instance : Std.Symm L.Adj := ⟨fun _ _ h => h.symm⟩
284
+ local instance : Std.Irrefl L.Adj := ⟨fun _ => L.irrefl⟩
285
+
286
+ abbrev f := artinGenerator L
287
+ abbrev comm := fun v w h => adjacent_generators_commute L (v := v) (w := w) h
288
+ abbrev D := artinDescendingData L
289
+ abbrev Positive := CubeRealization.Point L (f L) (comm L)
290
+ abbrev Descending := (D L).Point
291
+
292
+ omit [Fintype V] in
293
+ @[simp] theorem step_eq (a : Letter V) : step (f L) a = letterValue (f L) (invLetter a) := by
294
+ cases a with | mk v b => cases b <;> rfl
295
+
296
+ def exponent (v : V) : ArtinGroup L →* Multiplicative ℝ :=
297
+ artinLift L (fun w => Multiplicative.ofAdd (if v = w then (1 : ℝ) else 0))
298
+ (fun _ _ _ => Commute.all _ _)
299
+
300
+ omit [Fintype V] in
301
+ @[simp] theorem exponent_generator (v w : V) :
302
+ (exponent L v (f L w)).toAdd = if v = w then 1 else 0 := by
303
+ simp [exponent,f]
304
+
305
+ omit [Fintype V] in
306
+ @[simp] theorem height_generator (v : V) : (height L (f L v)).toAdd = 1 := by
307
+ exact congrArg Multiplicative.toAdd (PresentedGroup.toGroup.of _)
308
+
309
+ def signedExponent (a : Letter V) : ArtinGroup L →* Multiplicative ℝ :=
310
+ artinLift L (fun v => Multiplicative.ofAdd
311
+ (if a.1 = v then (if a.2 then (-1 : ℝ) else 1) else 0))
312
+ (fun _ _ _ => Commute.all _ _)
313
+
314
+ theorem signedExponent_step (g : ArtinGroup L) (a : Letter V) (ha : a ∈ (D L).desc g)
315
+ (b : Letter V) (hb : b ∈ (D L).desc g) :
316
+ (signedExponent L a (letterValue (f L) (invLetter b))).toAdd = if a = b then 1 else 0 := by
317
+ by_cases he : a = b
318
+ · subst b
319
+ rcases a with ⟨v,b⟩
320
+ cases b <;> simp [signedExponent,letterValue,invLetter,f]
321
+ · have hi : Independent L a b := rightDescents_pairwise L g
322
+ (by simpa [D,artinDescendingData] using ha) (by simpa [D,artinDescendingData] using hb) he
323
+ have hv : a.1 ≠ b.1 := hi.ne
324
+ rcases b with ⟨v,b⟩
325
+ cases b <;> simp [signedExponent,letterValue,invLetter,f,hv,he]
326
+
327
+ theorem positive_interp_inj : Function.Injective
328
+ (fun p : Positive L => fun φ => CubeRealization.interpolation L (f L) (comm L) p φ) :=
329
+ CubeRealization.interpolation_injective L (f L) (comm L) (height L) (height_generator L)
330
+ (exponent L) (exponent_generator L)
331
+
332
+ theorem descending_interp_inj : Function.Injective
333
+ (fun p : Descending L => fun φ => (D L).interpolation p φ) :=
334
+ (D L).interpolation_injective (signedExponent L) (by
335
+ intro g a ha b hb
336
+ by_cases he : a = b <;> simpa [he] using signedExponent_step L g a ha b hb)
337
+
338
+ def flip (b : Bool) (t : unitInterval) : unitInterval :=
339
+ if b then unitInterval.symm t else t
340
+
341
+ @[simp] theorem flip_flip (b : Bool) (t : unitInterval) : flip b (flip b t) = t := by
342
+ cases b <;> simp [flip]
343
+
344
+ theorem flip_continuous (b : Bool) : Continuous (flip b) := by
345
+ cases b
346
+ · exact continuous_id
347
+ · exact unitInterval.continuous_symm
348
+
349
+ def vertexEquiv (w : Word V) (hw : (w.map Prod.fst).Nodup) :
350
+ w.toFinset ≃ (w.map Prod.fst).toFinset :=
351
+ Equiv.ofBijective (fun a => ⟨a.val.1,by
352
+ exact List.mem_toFinset.mpr (List.mem_map.mpr ⟨a.val,List.mem_toFinset.mp a.property,rfl⟩)⟩) (by
353
+ constructor
354
+ · intro a b he
355
+ apply Subtype.ext
356
+ exact (List.nodup_map_iff_inj_on (hw.of_map Prod.fst)).mp hw
357
+ a.val (List.mem_toFinset.mp a.property) b.val (List.mem_toFinset.mp b.property) (congrArg Subtype.val he)
358
+ · intro v
359
+ obtain ⟨a,ha,he⟩ := List.mem_map.mp (List.mem_toFinset.mp v.property)
360
+ exact ⟨⟨a,by simpa using ha⟩,Subtype.ext he⟩)
361
+
362
+ omit [Fintype V] in
363
+ @[simp] theorem vertexEquiv_val (w : Word V) (hw : (w.map Prod.fst).Nodup)
364
+ (a : w.toFinset) : (vertexEquiv w hw a).val = a.val.1 := rfl
365
+
366
+ def toPositiveCoords (w : Word V) (hw : (w.map Prod.fst).Nodup)
367
+ (x : w.toFinset → unitInterval) : (w.map Prod.fst).toFinset → unitInterval :=
368
+ fun v => flip ((vertexEquiv w hw).symm v).val.2 (x ((vertexEquiv w hw).symm v))
369
+
370
+ omit [Fintype V] in
371
+ @[simp] theorem toPositiveCoords_apply (w : Word V) (hw : (w.map Prod.fst).Nodup)
372
+ (x : w.toFinset → unitInterval) (a : w.toFinset) :
373
+ toPositiveCoords w hw x (vertexEquiv w hw a) = flip a.val.2 (x a) := by
374
+ simp [toPositiveCoords]
375
+
376
+ omit [Fintype V] in
377
+ theorem toPositiveCoords_continuous (w : Word V) (hw : (w.map Prod.fst).Nodup) :
378
+ Continuous (toPositiveCoords w hw) :=
379
+ continuous_pi (fun _ => (flip_continuous _).comp (continuous_apply _))
380
+
381
+ def toDescendingCoords (w : Word V) (hw : (w.map Prod.fst).Nodup)
382
+ (z : (w.map Prod.fst).toFinset → unitInterval) : w.toFinset → unitInterval :=
383
+ fun a => flip a.val.2 (z (vertexEquiv w hw a))
384
+
385
+ omit [Fintype V] in
386
+ theorem toDescendingCoords_continuous (w : Word V) (hw : (w.map Prod.fst).Nodup) :
387
+ Continuous (toDescendingCoords w hw) :=
388
+ continuous_pi (fun _ => (flip_continuous _).comp (continuous_apply _))
389
+
390
+ omit [Fintype V] in
391
+ @[simp] theorem toPositive_toDescending (w : Word V) (hw : (w.map Prod.fst).Nodup)
392
+ (z : (w.map Prod.fst).toFinset → unitInterval) :
393
+ toPositiveCoords w hw (toDescendingCoords w hw z) = z := by
394
+ funext v
395
+ obtain ⟨a,rfl⟩ := (vertexEquiv w hw).surjective v
396
+ simp [toDescendingCoords]
397
+
398
+ def positiveCell (g : ArtinGroup L) (w : Word V) (hw : (w.map Prod.fst).Pairwise L.Adj) :
399
+ CubeRealization.Cell (G := ArtinGroup L) L where
400
+ base := origin (f L) g w
401
+ directions := (w.map Prod.fst).toFinset
402
+ clique := fun _ ha _ hb he => hw.forall (List.mem_toFinset.mp ha) (List.mem_toFinset.mp hb) he
403
+
404
+ def descendingCell (g : ArtinGroup L) (w : Word V)
405
+ (hd : ∀ a ∈ w, a ∈ rightDescents L g) : (D L).Cell where
406
+ top := g
407
+ directions := w.toFinset
408
+ subset a ha := by simpa [D,artinDescendingData] using hd a (List.mem_toFinset.mp ha)
409
+
410
+ theorem interpolation_reorientation (g : ArtinGroup L) (w : Word V)
411
+ (hw : (w.map Prod.fst).Pairwise L.Adj) (hd : ∀ a ∈ w, a ∈ rightDescents L g)
412
+ (x : (D L).Coordinates (descendingCell L g w hd)) (φ : ArtinGroup L → ℝ) :
413
+ (D L).interpolation ((D L).characteristic (descendingCell L g w hd) x) φ =
414
+ CubeRealization.interpolation L (f L) (comm L)
415
+ (CubeRealization.characteristic (f L) (comm L) (positiveCell L g w hw)
416
+ (toPositiveCoords w hw.nodup x)) φ := by
417
+ refine ((D L).interpolation_characteristic (descendingCell L g w hd) x φ).trans ?_
418
+ refine Eq.trans ?_ (CubeRealization.interpolation_characteristic L (f L) (comm L)
419
+ (positiveCell L g w hw) (toPositiveCoords w hw.nodup x) φ).symm
420
+ have hf : (fun a : Letter V => letterValue (artinGenerator L) (invLetter a)) = step (f L) :=
421
+ funext (fun a => (step_eq L a).symm)
422
+ erw [operator_listed _ w (hw.nodup.of_map Prod.fst),operator_listed _ _ hw.nodup]
423
+ have hop := congrArg (fun k : Letter V → ArtinGroup L => listed k w) hf
424
+ rw [hop]
425
+ apply listed_reorientation
426
+ · exact (List.pairwise_map.mp hw).imp (fun hh => adjacent_generators_commute L hh)
427
+ · intro a ha
428
+ let aa : w.toFinset := ⟨a,by simpa using ha⟩
429
+ have h₁ : (D L).fullCoord (descendingCell L g w hd) x a = (x aa : ℝ) := by
430
+ exact (D L).fullCoord_mem (descendingCell L g w hd) x aa
431
+ have h₂ : CubeRealization.fullCoord (positiveCell L g w hw)
432
+ (toPositiveCoords w hw.nodup x) a.1 = (flip a.2 (x aa) : ℝ) := by
433
+ have hh := CubeRealization.fullCoord_mem (positiveCell L g w hw)
434
+ (toPositiveCoords w hw.nodup x) (vertexEquiv w hw.nodup aa)
435
+ exact hh.trans (congrArg (fun z : unitInterval => (z : ℝ))
436
+ (toPositiveCoords_apply w hw.nodup x aa))
437
+ rw [h₁,h₂]
438
+ cases h : a.2 <;> simp [flip]
439
+
440
+ theorem descendingCell_rep (c : (D L).Cell) :
441
+ ∃ (g : ArtinGroup L) (w : Word V) (_hw : (w.map Prod.fst).Pairwise L.Adj)
442
+ (hd : ∀ a ∈ w, a ∈ rightDescents L g), descendingCell L g w hd = c := by
443
+ let w := c.directions.toList
444
+ have hd : ∀ a ∈ w, a ∈ rightDescents L c.top := by
445
+ intro a ha
446
+ have hh := c.subset (Finset.mem_toList.mp ha)
447
+ simpa [D,artinDescendingData] using hh
448
+ have hw : (w.map Prod.fst).Pairwise L.Adj := by
449
+ apply List.pairwise_map.mpr
450
+ apply c.directions.nodup_toList.pairwise_of_forall_ne
451
+ intro a ha b hb he
452
+ exact rightDescents_pairwise L c.top (hd a ha) (hd b hb) he
453
+ refine ⟨c.top,w,hw,hd,?_⟩
454
+ cases c with
455
+ | mk g s hs =>
456
+ dsimp only [descendingCell,w]
457
+ congr
458
+ exact s.toList_toFinset
459
+
460
+ omit [Fintype V] in
461
+ theorem positiveCell_rep (c : CubeRealization.Cell (G := ArtinGroup L) L) :
462
+ ∃ (g : ArtinGroup L) (w : Word V) (hw : (w.map Prod.fst).Pairwise L.Adj)
463
+ (_hd : ∀ a ∈ w, a ∈ rightDescents L g), positiveCell L g w hw = c := by
464
+ let v := c.directions.toList
465
+ have hv : v.Pairwise L.Adj := c.directions.nodup_toList.pairwise_of_forall_ne
466
+ (fun a ha b hb he => c.clique (Finset.mem_toList.mp ha) (Finset.mem_toList.mp hb) he)
467
+ let o := CubeDescents.orient L c.base v
468
+ have hw : (o.2.map Prod.fst).Pairwise L.Adj := by
469
+ simpa only [o,CubeDescents.orient_map] using hv
470
+ have hd : ∀ a ∈ o.2, a ∈ rightDescents L o.1 := CubeDescents.orient_descents L c.base v hv
471
+ refine ⟨o.1,o.2,hw,hd,?_⟩
472
+ have hb : origin (f L) o.1 o.2 = c.base := CubeDescents.origin_orient L c.base v hv
473
+ have hs : (o.2.map Prod.fst).toFinset = c.directions := by
474
+ simp only [o,CubeDescents.orient_map,v,Finset.toList_toFinset]
475
+ cases c with
476
+ | mk g s hc =>
477
+ change CubeRealization.Cell.mk (origin (f L) o.1 o.2) (o.2.map Prod.fst).toFinset _ = _
478
+ congr
479
+
480
+ theorem descending_local_lift (c : (D L).Cell) :
481
+ ∃ φ : C((D L).Coordinates c,Positive L), ∀ x,
482
+ (fun ψ => CubeRealization.interpolation L (f L) (comm L) (φ x) ψ) =
483
+ (fun ψ => (D L).interpolation ((D L).characteristic c x) ψ) := by
484
+ obtain ⟨g,w,hw,hd,rfl⟩ := descendingCell_rep L c
485
+ refine ⟨⟨fun x => CubeRealization.characteristic (f L) (comm L) (positiveCell L g w hw)
486
+ (toPositiveCoords w hw.nodup x),
487
+ (CubeRealization.characteristic_continuous (f L) (comm L) (positiveCell L g w hw)).comp
488
+ (toPositiveCoords_continuous w hw.nodup)⟩,?_⟩
489
+ intro x
490
+ funext ψ
491
+ exact (interpolation_reorientation L g w hw hd x ψ).symm
492
+
493
+ theorem positive_local_lift (c : CubeRealization.Cell (G := ArtinGroup L) L) :
494
+ ∃ φ : C(CubeRealization.Coordinates c,Descending L), ∀ x,
495
+ (fun ψ => (D L).interpolation (φ x) ψ) =
496
+ (fun ψ => CubeRealization.interpolation L (f L) (comm L)
497
+ (CubeRealization.characteristic (f L) (comm L) c x) ψ) := by
498
+ obtain ⟨g,w,hw,hd,rfl⟩ := positiveCell_rep L c
499
+ refine ⟨⟨fun x => (D L).characteristic (descendingCell L g w hd) (toDescendingCoords w hw.nodup x),
500
+ ((D L).characteristic_continuous (descendingCell L g w hd)).comp
501
+ (toDescendingCoords_continuous w hw.nodup)⟩,?_⟩
502
+ intro x
503
+ funext ψ
504
+ change (D L).interpolation ((D L).characteristic (descendingCell L g w hd)
505
+ (toDescendingCoords w hw.nodup x)) ψ = _
506
+ change (w.map Prod.fst).toFinset → unitInterval at x
507
+ simpa only [toPositive_toDescending] using interpolation_reorientation L g w hw hd
508
+ (toDescendingCoords w hw.nodup x) ψ
509
+
510
+ /-- Reorientation preserves the actual weak topologies, not only cellular chains. -/
511
+ def reorient : Descending L ≃ₜ Positive L :=
512
+ WeakRealization.homeomorph (D L).evaluation (CubeRealization.evaluation (f L) (comm L))
513
+ (D L).evaluation_quotient (CubeRealization.evaluation_quotient (f L) (comm L))
514
+ (fun p ψ => (D L).interpolation p ψ)
515
+ (fun p ψ => CubeRealization.interpolation L (f L) (comm L) p ψ)
516
+ (descending_interp_inj L) (positive_interp_inj L)
517
+ (descending_local_lift L) (positive_local_lift L)
518
+
519
+ variable [Nonempty V]
520
+
521
+ /-- The ordinary positive-cube CW realization is genuinely contractible. -/
522
+ theorem positive_contractible : ContractibleSpace (Positive L) := by
523
+ let : ContractibleSpace (Descending L) := artinDescending_contractible L
524
+ exact (reorient L).symm.contractibleSpace
525
+
526
+ end EilenbergGanea.ArtinCubicalTopology
527
+
528
+ open Classical Set Topology
529
+ namespace CompactChart
530
+
531
+ /-- A characteristic map which has singleton fibers over its open cell has a
532
+ continuous inverse there. Compactness is used only on the closed disk; no
533
+ regularity of the attaching sphere is required. -/
534
+ theorem continuousOn_symm {A X : Type*} [TopologicalSpace A] [TopologicalSpace X]
535
+ [T2Space X] (e : PartialEquiv A X) (K : Set A) (hK : IsCompact K)
536
+ (hsub : e.source ⊆ K) (hc : ContinuousOn e K)
537
+ (hboundary : ∀ a ∈ K, e a ∈ e.target → a ∈ e.source) :
538
+ ContinuousOn e.symm e.target := by
539
+ let : CompactSpace K := isCompact_iff_compactSpace.mp hK
540
+ let f : K → X := fun a => e a
541
+ have hf : Continuous f := continuousOn_iff_continuous_domRestrict.mp hc
542
+ let r := e.target.restrictPreimage f
543
+ have hr : Function.Surjective r := by
544
+ intro x
545
+ refine ⟨⟨⟨e.symm x,hsub (e.map_target x.property)⟩,?_⟩,?_⟩
546
+ · change e (e.symm x) ∈ e.target
547
+ rw [e.right_inv x.property]
548
+ exact x.property
549
+ · exact Subtype.ext (e.right_inv x.property)
550
+ have hq : IsQuotientMap r :=
551
+ (hf.isClosedMap.restrictPreimage e.target).isQuotientMap hf.restrictPreimage hr
552
+ apply continuousOn_iff_continuous_domRestrict.mpr
553
+ apply hq.continuous_iff.mpr
554
+ have he : (fun x : e.target => e.symm x) ∘ r =
555
+ (fun a : f ⁻¹' e.target => (a.val.val : A)) := by
556
+ funext a
557
+ exact e.left_inv (hboundary a.val a.val.property a.property)
558
+ change Continuous ((fun x : e.target => e.symm x) ∘ r)
559
+ rw [he]
560
+ exact continuous_subtype_val.comp continuous_subtype_val
561
+
562
+ end CompactChart
563
+
564
+ namespace EilenbergGanea.CubeRealization
565
+
566
+ section
567
+ open Metric
568
+ variable {G V : Type*} [Group G] [Fintype V]
569
+ variable {L : SimpleGraph V} (f : V → G)
570
+ variable (comm : ∀ v w, L.Adj v w → Commute (f v) (f w))
571
+
572
+ theorem chartInverse_continuousOn_of_t2 [T2Space (Point (G := G) L f comm)]
573
+ {n : ℕ} (c : DimCell (G := G) (L := L) n) :
574
+ ContinuousOn (chart f comm c).symm (chart f comm c).target := by
575
+ apply CompactChart.continuousOn_symm (chart f comm c) (closedBall 0 1)
576
+ (isCompact_closedBall _ _) ball_subset_closedBall (chart_continuous f comm c).continuousOn
577
+ intro t ht he
578
+ change pointCell (chart f comm c t) = c.val at he
579
+ change t ∈ ball 0 1
580
+ by_contra hn
581
+ have hs : t ∈ sphere 0 1 := mem_sphere.mpr
582
+ (le_antisymm (mem_closedBall.mp ht) (le_of_not_gt hn))
583
+ have hd := boundary_dimension_lt f comm c hs
584
+ rw [he,c.property] at hd
585
+ exact (lt_irrefl _) hd
586
+
587
+ /-- The ordinary CW structure follows from the genuine normalized-cube gluing;
588
+ only Hausdorffness and compact characteristic disks are used. -/
589
+ @[instance_reducible] def cwComplexOfT2 [T2Space (Point (G := G) L f comm)] : CWComplex (univ : Set (Point (G := G) L f comm)) where
590
+ cell := DimCell (G := G) (L := L)
591
+ map := fun _ c => chart f comm c
592
+ source_eq := fun _ _ => rfl
593
+ continuousOn := fun _ c => (chart_continuous f comm c).continuousOn
594
+ continuousOn_symm := fun _ c => chartInverse_continuousOn_of_t2 f comm c
595
+ pairwiseDisjoint' := by
596
+ intro a _ b _ hab
597
+ change Disjoint (chart f comm a.2 '' ball 0 1) (chart f comm b.2 '' ball 0 1)
598
+ rw [chart_image_ball,chart_image_ball]
599
+ apply Set.disjoint_left.mpr
600
+ intro p ha hb
601
+ apply hab
602
+ have he : a.2.val = b.2.val := ha.symm.trans hb
603
+ have hn : a.1 = b.1 := a.2.property.symm.trans ((congrArg (fun c => c.directions.card) he).trans b.2.property)
604
+ cases a with | mk n a =>
605
+ cases b with | mk m b =>
606
+ dsimp at hn
607
+ subst m
608
+ exact congrArg (Sigma.mk n) (Subtype.ext he)
609
+ mapsTo' := chart_mapsTo f comm
610
+ closed' := by
611
+ intro A _ hA
612
+ apply (evaluation_quotient f comm).isClosed_preimage.mp
613
+ rw [isClosed_sigma_iff]
614
+ intro c
615
+ let d : DimCell (G := G) (L := L) c.directions.card := ⟨c,rfl⟩
616
+ have hh := (hA _ d).preimage (characteristic_continuous f comm c)
617
+ rw [chart_image_disk] at hh
618
+ change IsClosed (characteristic f comm c ⁻¹' (A ∩ Set.range (characteristic f comm c))) at hh
619
+ change IsClosed (characteristic f comm c ⁻¹' A)
620
+ simpa only [Set.preimage_inter,Set.preimage_range,Set.inter_univ] using hh
621
+ union' := by
622
+ apply Set.eq_univ_of_forall
623
+ intro p
624
+ let d : DimCell (G := G) (L := L) (pointCell p).directions.card := ⟨pointCell p,rfl⟩
625
+ apply Set.mem_iUnion.mpr
626
+ refine ⟨_,Set.mem_iUnion.mpr ⟨d,?_⟩⟩
627
+ rw [chart_image_disk]
628
+ exact ⟨pointCoordinates p,characteristic_point f comm p⟩
629
+
630
+ end
631
+
632
+ variable {G Q V : Type*} [Group G] [Group Q] [Fintype V]
633
+ variable {L : SimpleGraph V} (f : V → G)
634
+ variable (comm : ∀ v w, L.Adj v w → Commute (f v) (f w))
635
+ variable (q : G →* Q)
636
+
637
+ include comm in
638
+ omit [Fintype V] in
639
+ theorem mappedComm : ∀ v w, L.Adj v w → Commute ((q ∘ f) v) ((q ∘ f) w) :=
640
+ fun v w hvw => (comm v w hvw).map q
641
+
642
+ /-- Applying a group homomorphism only to the initial vertices of cubes. -/
643
+ def mapPoint (p : Point (G := G) L f comm) : Point (G := Q) L (q ∘ f) (mappedComm f comm q) where
644
+ base := q p.base
645
+ coord := p.coord
646
+ nonneg := p.nonneg
647
+ lt_one := p.lt_one
648
+ clique := p.clique
649
+
650
+ def mapCell (c : Cell (G := G) L) : Cell (G := Q) L where
651
+ base := q c.base
652
+ directions := c.directions
653
+ clique := c.clique
654
+
655
+ omit [Fintype V] in
656
+ @[simp] theorem mapPoint_base (p : Point (G := G) L f comm) :
657
+ (mapPoint f comm q p).base = q p.base := rfl
658
+
659
+ omit [Fintype V] in
660
+ @[simp] theorem mapPoint_coord (p : Point (G := G) L f comm) :
661
+ (mapPoint f comm q p).coord = p.coord := rfl
662
+
663
+ omit [Fintype V] in
664
+ @[simp] theorem mapPoint_characteristic (c : Cell (G := G) L) (x : Coordinates c) :
665
+ mapPoint f comm q (characteristic f comm c x) =
666
+ characteristic (q ∘ f) (mappedComm f comm q) (mapCell q c) x := by
667
+ apply Point.ext
668
+ · change q (c.base * product f comm (ones c x) _) =
669
+ q c.base * product (q ∘ f) (mappedComm f comm q) (ones c x) _
670
+ rw [map_mul]
671
+ congr 1
672
+ exact Finset.map_noncommProd _ _ _ q
673
+ · rfl
674
+
675
+ theorem mapPoint_continuous : Continuous (mapPoint f comm q) := by
676
+ apply (evaluation_quotient f comm).continuous_iff.mpr
677
+ apply continuous_sigma
678
+ intro c
679
+ change Continuous (fun x => mapPoint f comm q (characteristic f comm c x))
680
+ simp only [mapPoint_characteristic]
681
+ exact characteristic_continuous (q ∘ f) (mappedComm f comm q) (mapCell q c)
682
+
683
+ omit [Fintype V] in
684
+ theorem mapCell_surjective (hq : Function.Surjective q) : Function.Surjective (mapCell (L := L) q) := by
685
+ rintro ⟨a,s,hs⟩
686
+ obtain ⟨g,rfl⟩ := hq a
687
+ exact ⟨⟨g,s,hs⟩,rfl⟩
688
+
689
+ omit [Fintype V] in
690
+ theorem mapPoint_surjective (hq : Function.Surjective q) : Function.Surjective (mapPoint f comm q) := by
691
+ rintro ⟨a,x,hx,ht,hc⟩
692
+ obtain ⟨g,rfl⟩ := hq a
693
+ exact ⟨⟨g,x,hx,ht,hc⟩,rfl⟩
694
+
695
+ /-- The base-label quotient is a genuine topological quotient for the weak
696
+ cubical topologies, proved by lifting each actual characteristic disk. -/
697
+ theorem mapPoint_quotient (hq : Function.Surjective q) : IsQuotientMap (mapPoint f comm q) := by
698
+ apply isQuotientMap_iff_isClosed.mpr
699
+ refine ⟨mapPoint_surjective f comm q hq,?_⟩
700
+ intro A
701
+ constructor
702
+ · exact fun hA => hA.preimage (mapPoint_continuous f comm q)
703
+ · intro hA
704
+ apply (evaluation_quotient (q ∘ f) (mappedComm f comm q)).isClosed_preimage.mp
705
+ rw [isClosed_sigma_iff]
706
+ intro c
707
+ obtain ⟨d,rfl⟩ := mapCell_surjective q hq c
708
+ have hh := hA.preimage (characteristic_continuous f comm d)
709
+ change IsClosed ((fun x => mapPoint f comm q (characteristic f comm d x)) ⁻¹' A) at hh
710
+ change IsClosed ((fun x : Coordinates d =>
711
+ characteristic (q ∘ f) (mappedComm f comm q) (mapCell q d) x) ⁻¹' A)
712
+ simpa only [mapPoint_characteristic] using hh
713
+
714
+ omit [Fintype V] in
715
+ /-- The literal group-kernel orbits are exactly the fibers of the cube map. -/
716
+ theorem mapPoint_eq_iff_orbit (p r : Point (G := G) L f comm) :
717
+ mapPoint f comm q p = mapPoint f comm q r ↔ p ∈ MulAction.orbit q.ker r := by
718
+ constructor
719
+ · intro he
720
+ have hb : q p.base = q r.base := congrArg Point.base he
721
+ have hx : p.coord = r.coord := congrArg (fun z : Point (G := Q) L (q ∘ f)
722
+ (mappedComm f comm q) => z.coord) he
723
+ let g : q.ker := ⟨p.base * r.base⁻¹,by simp only [MonoidHom.mem_ker,map_mul,map_inv,hb,mul_inv_cancel]⟩
724
+ refine ⟨g,?_⟩
725
+ apply Point.ext
726
+ · change (p.base * r.base⁻¹) * r.base = p.base
727
+ simp [mul_assoc]
728
+ · exact hx.symm
729
+ · rintro ⟨g,rfl⟩
730
+ apply Point.ext
731
+ · change q ((g : G) * r.base) = q r.base
732
+ rw [map_mul,g.property,one_mul]
733
+ · rfl
734
+
735
+ /-- The quotient homeomorphism respects the actual weak topologies. -/
736
+ def kernelQuotientHomeomorph (hq : Function.Surjective q) :
737
+ Quotient (MulAction.orbitRel q.ker (Point (G := G) L f comm)) ≃ₜ
738
+ Point (G := Q) L (q ∘ f) (mappedComm f comm q) :=
739
+ (Homeomorph.Quotient.congrRight (fun p r => (mapPoint_eq_iff_orbit f comm q p r).symm)).trans
740
+ (Topology.IsQuotientMap.homeomorph (f := ⟨mapPoint f comm q,mapPoint_continuous f comm q⟩)
741
+ (mapPoint_quotient f comm q hq))
742
+
743
+ variable (h : G →* Multiplicative ℤ) (hf : ∀ v, (h (f v)).toAdd = 1)
744
+ variable (exponent : V → G →* Multiplicative ℝ)
745
+ variable (hexponent : ∀ v w, (exponent v (f w)).toAdd = if v = w then 1 else 0)
746
+
747
+ include h hf exponent hexponent in
748
+ theorem quotientPoint_t2 (hq : Function.Surjective q) :
749
+ T2Space (Point (G := Q) L (q ∘ f) (mappedComm f comm q)) := by
750
+ let := point_t2 L f comm h hf exponent hexponent
751
+ let := point_weaklyLocallyCompact L f comm
752
+ exact (kernelQuotientHomeomorph f comm q hq).t2Space
753
+
754
+ include h hf exponent hexponent in
755
+ theorem mapPoint_covering (hq : Function.Surjective q) :
756
+ IsQuotientCoveringMap (mapPoint f comm q) q.ker where
757
+ toIsQuotientMap := mapPoint_quotient f comm q hq
758
+ continuous_const_smul := continuous_const_smul
759
+ apply_eq_iff_mem_orbit := mapPoint_eq_iff_orbit f comm q _ _
760
+ disjoint := (subgroup_quotient_covering f comm h hf exponent hexponent q.ker).disjoint
761
+
762
+ end EilenbergGanea.CubeRealization
763
+
764
+ namespace EilenbergGanea
765
+ universe u
766
+ namespace ArtinCubicalTopology
767
+ open CubeRealization
768
+ variable {V : Type u} [Fintype V] [Nonempty V] (L : SimpleGraph V)
769
+
770
+ omit [Fintype V] in
771
+ theorem height_surjective : Function.Surjective (height L) := by
772
+ intro n
773
+ let v : V := Classical.choice inferInstance
774
+ refine ⟨f L v ^ n.toAdd,?_⟩
775
+ rw [map_zpow]
776
+ apply Multiplicative.toAdd.injective
777
+ change n.toAdd • (height L (f L v)).toAdd = n.toAdd
778
+ simp only [height_generator,zsmul_eq_mul,mul_one,Int.cast_id]
779
+
780
+ def HeightQuotient := Point L ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))
781
+
782
+ instance : TopologicalSpace (HeightQuotient L) := inferInstanceAs (TopologicalSpace
783
+ (Point L ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))))
784
+
785
+ /-- An ordinary cubical classifying space for the height kernel, with one cube
786
+ for every integral level and clique. Contractibility above is the explicit
787
+ word-length contraction, and the fundamental-group identification reuses
788
+ Mathlib's checked covering-monodromy equivalence. -/
789
+ theorem height_hasClassifyingSpace (d : ℕ)
790
+ (hd : ∀ s : Finset V, (s : Set V).Pairwise L.Adj → s.card ≤ d) :
791
+ HasClassifyingSpace.{u} (height L).ker d := by
792
+ let X := Point L ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))
793
+ let E := Positive L
794
+ let : ContractibleSpace E := positive_contractible L
795
+ let : T2Space X := quotientPoint_t2 (f L) (comm L) (height L)
796
+ (height L) (height_generator L) (exponent L) (exponent_generator L) (height_surjective L)
797
+ let : Topology.CWComplex (Set.univ : Set X) :=
798
+ cwComplexOfT2 ((height L) ∘ f L) (mappedComm (f L) (comm L) (height L))
799
+ let p : E → X := mapPoint (f L) (comm L) (height L)
800
+ have hp : IsQuotientCoveringMap p (height L).ker :=
801
+ mapPoint_covering (f L) (comm L) (height L) (height L) (height_generator L)
802
+ (exponent L) (exponent_generator L) (height_surjective L)
803
+ have hs : Function.Surjective p := mapPoint_surjective (f L) (comm L) (height L) (height_surjective L)
804
+ let : PathConnectedSpace X := hs.pathConnectedSpace hp.continuous
805
+ let e : E := Classical.choice (inferInstance : Nonempty E)
806
+ refine ⟨X,inferInstance,inferInstance,inferInstance,?_,inferInstance,p e,?_,
807
+ E,inferInstance,inferInstance,p,hp.isCoveringMap,hs⟩
808
+ · intro k hk
809
+ exact ⟨fun c => Nat.not_lt_of_ge ((c.property.symm ▸ hd c.val.directions c.val.clique)) hk⟩
810
+ · exact ⟨(hp.fundamentalGroupEquiv ⟨e,rfl⟩).trans (MulEquiv.inv' ((height L).ker)).symm⟩
811
+
812
+ end ArtinCubicalTopology
813
+
814
+ /-- The fixed source group has an ordinary three-dimensional classifying CW
815
+ space, with an actually contractible surjective covering. -/
816
+ theorem source_hasClassifyingSpace_three : HasClassifyingSpace.{0} SourceGroup 3 :=
817
+ ArtinCubicalTopology.height_hasClassifyingSpace seedGraph 3 SeedConnection.clique_card_le_three
818
+ end EilenbergGanea
819
+
820
+ end
821
+
822
+ end OAI
lean/OAI/Topology/EilenbergGanea/Dimension.lean CHANGED
@@ -1,115 +1,115 @@
1
- import OAI.Topology.EilenbergGanea.SeedContraction
2
- import OAI.Topology.EilenbergGanea.LevelBasis
3
- import OAI.Topology.EilenbergGanea.CliqueCohomology
4
-
5
- namespace OAI
6
-
7
- noncomputable section
8
-
9
- open Classical Set Filter Topology MeasureTheory
10
- open scoped Quaternion ContDiff
11
-
12
- namespace EilenbergGanea.SeedEncoding
13
- @[simp] theorem cellEquiv_symm_apply (i : Fin 103) : cellEquiv.symm i = cellAt i := rfl
14
- end EilenbergGanea.SeedEncoding
15
- namespace EilenbergGanea
16
- noncomputable abbrev sourceVertexOrder : LinearOrder SeedCell :=
17
- LinearOrder.lift' SeedEncoding.cellEquiv SeedEncoding.cellEquiv.injective
18
- local instance : LinearOrder SeedCell := sourceVertexOrder
19
- local instance : Preorder SeedCell := sourceVertexOrder.toPartialOrder.toPreorder
20
- local instance : LT SeedCell := sourceVertexOrder.toLT
21
- local instance : LE SeedCell := sourceVertexOrder.toLE
22
-
23
- @[simp] theorem sourceVertexOrder_lt (a b : SeedCell) :
24
- a < b ↔ SeedEncoding.cellEquiv a < SeedEncoding.cellEquiv b := Iff.rfl
25
-
26
- theorem source_valid_to_index (w : List SeedCell) (hw : SimplicialChains.Valid seedGraph w) :
27
- SimplicialChains.Valid SeedChainCertificate.graph (w.map SeedEncoding.cellEquiv) := by
28
- constructor
29
- · rw [List.pairwise_map]
30
- exact hw.1
31
- · rw [List.pairwise_map]
32
- simpa only [SeedChainCertificate.graph,SimpleGraph.comap_adj,
33
- ← SeedEncoding.cellEquiv_symm_apply,Equiv.symm_apply_apply] using hw.2
34
-
35
- theorem index_valid_to_source (w : List (Fin 103))
36
- (hw : SimplicialChains.Valid SeedChainCertificate.graph w) :
37
- SimplicialChains.Valid seedGraph (w.map SeedEncoding.cellEquiv.symm) := by
38
- constructor
39
- · rw [List.pairwise_map]
40
- simpa only [sourceVertexOrder_lt,Equiv.apply_symm_apply] using hw.1
41
- · rw [List.pairwise_map]
42
- exact hw.2
43
-
44
- /-- Relabeling uses the original seed graph and merely chooses an order on its
45
- vertices for the signed integral chain convention. -/
46
- noncomputable def sourceLinkContraction (K : SimplicialChains.Contraction SeedChainCertificate.graph) :
47
- SimplicialChains.Contraction seedGraph :=
48
- K.reindex SeedEncoding.cellEquiv.symm (index_valid_to_source) (source_valid_to_index)
49
-
50
- end EilenbergGanea
51
-
52
- namespace EilenbergGanea
53
- local instance : LinearOrder SeedCell := sourceVertexOrder
54
- local instance : Preorder SeedCell := sourceVertexOrder.toPartialOrder.toPreorder
55
- local instance : LT SeedCell := sourceVertexOrder.toLT
56
- local instance : LE SeedCell := sourceVertexOrder.toLE
57
-
58
- theorem source_valid_length_le (w : List SeedCell) (hw : SimplicialChains.Valid seedGraph w) :
59
- w.length ≤ 3 := by
60
- simpa only [List.length_map] using
61
- SeedChainCertificate.valid_length_le (w.map SeedEncoding.cellEquiv) (source_valid_to_index w hw)
62
-
63
- theorem source_cd_eq_two_of_contraction
64
- (K : SimplicialChains.Contraction SeedChainCertificate.graph) :
65
- cohomologicalDimension SourceGroup = 2 := by
66
- apply le_antisymm
67
- · exact LevelBasis.artin_height_kernel_cd_le_two seedGraph seedBase seed_connected.preconnected
68
- (sourceLinkContraction K) source_valid_length_le
69
- · exact source_two_le_cohomologicalDimension
70
-
71
- /-- The exact remaining geometric interface is not limited to finite or
72
- countable presentations. This endpoint excludes any ordinary presentation
73
- whose actual integral equivariant cellular boundaries freely span cycles. -/
74
- theorem source_no_boundary_basis_of_contraction
75
- (K : SimplicialChains.Contraction SeedChainCertificate.graph)
76
- {A R : Type*} (a₀ : A → SourceGroup)
77
- (ha₀ : Function.Surjective (wordValue a₀))
78
- (r₀ : R → FreeGroup A) (hr₀ : ∀ i, wordValue a₀ (r₀ i) = 1)
79
- (hp₀ : (wordValue a₀).ker = Subgroup.normalClosure (Set.range r₀))
80
- (E : BasedChains SourceGroup R ≃ₗ[ℤ] cycles a₀)
81
- (hE : ∀ c, (E c : BasedChains SourceGroup A) = relatorChainMap a₀ r₀ c) : False := by
82
- let : Group.ResiduallyFinite SourceGroup := source_residuallyFinite
83
- exact LevelBasis.no_boundary_basis_presentation seedGraph seedBase seed_connected.preconnected
84
- (sourceLinkContraction K) source_valid_length_le SourceTransport.source_small_labels
85
- a₀ ha₀ r₀ hr₀ hp₀ E hE
86
-
87
- end EilenbergGanea
88
-
89
-
90
-
91
- namespace EilenbergGanea
92
-
93
- /-- Literal integral cohomological dimension of the source's fixed group. -/
94
- theorem source_cohomologicalDimension : cohomologicalDimension SourceGroup = 2 :=
95
- source_cd_eq_two_of_contraction SeedChainCertificate.contraction
96
-
97
- /-- No arbitrary-alphabet genuine presentation has its relators as an integral
98
- basis of Cayley cycles. -/
99
- theorem source_no_boundary_basis
100
- {A R : Type*} (a₀ : A → SourceGroup)
101
- (ha₀ : Function.Surjective (wordValue a₀))
102
- (r₀ : R → FreeGroup A) (hr₀ : ∀ i, wordValue a₀ (r₀ i) = 1)
103
- (hp₀ : (wordValue a₀).ker = Subgroup.normalClosure (Set.range r₀))
104
- (E : BasedChains SourceGroup R ≃ₗ[ℤ] cycles a₀)
105
- (hE : ∀ c, (E c : BasedChains SourceGroup A) = relatorChainMap a₀ r₀ c) : False :=
106
- source_no_boundary_basis_of_contraction SeedChainCertificate.contraction
107
- a₀ ha₀ r₀ hr₀ hp₀ E hE
108
-
109
- end EilenbergGanea
110
-
111
-
112
-
113
- end
114
-
115
- end OAI
 
1
+ import OAI.Topology.EilenbergGanea.SeedContraction
2
+ import OAI.Topology.EilenbergGanea.LevelBasis
3
+ import OAI.Topology.EilenbergGanea.CliqueCohomology
4
+
5
+ namespace OAI
6
+
7
+ noncomputable section
8
+
9
+ open Classical Set Filter Topology MeasureTheory
10
+ open scoped Quaternion ContDiff
11
+
12
+ namespace EilenbergGanea.SeedEncoding
13
+ @[simp] theorem cellEquiv_symm_apply (i : Fin 103) : cellEquiv.symm i = cellAt i := rfl
14
+ end EilenbergGanea.SeedEncoding
15
+ namespace EilenbergGanea
16
+ noncomputable abbrev sourceVertexOrder : LinearOrder SeedCell :=
17
+ LinearOrder.lift' SeedEncoding.cellEquiv SeedEncoding.cellEquiv.injective
18
+ local instance : LinearOrder SeedCell := sourceVertexOrder
19
+ local instance : Preorder SeedCell := sourceVertexOrder.toPartialOrder.toPreorder
20
+ local instance : LT SeedCell := sourceVertexOrder.toLT
21
+ local instance : LE SeedCell := sourceVertexOrder.toLE
22
+
23
+ @[simp] theorem sourceVertexOrder_lt (a b : SeedCell) :
24
+ a < b ↔ SeedEncoding.cellEquiv a < SeedEncoding.cellEquiv b := Iff.rfl
25
+
26
+ theorem source_valid_to_index (w : List SeedCell) (hw : SimplicialChains.Valid seedGraph w) :
27
+ SimplicialChains.Valid SeedChainCertificate.graph (w.map SeedEncoding.cellEquiv) := by
28
+ constructor
29
+ · rw [List.pairwise_map]
30
+ exact hw.1
31
+ · rw [List.pairwise_map]
32
+ simpa only [SeedChainCertificate.graph,SimpleGraph.comap_adj,
33
+ ← SeedEncoding.cellEquiv_symm_apply,Equiv.symm_apply_apply] using hw.2
34
+
35
+ theorem index_valid_to_source (w : List (Fin 103))
36
+ (hw : SimplicialChains.Valid SeedChainCertificate.graph w) :
37
+ SimplicialChains.Valid seedGraph (w.map SeedEncoding.cellEquiv.symm) := by
38
+ constructor
39
+ · rw [List.pairwise_map]
40
+ simpa only [sourceVertexOrder_lt,Equiv.apply_symm_apply] using hw.1
41
+ · rw [List.pairwise_map]
42
+ exact hw.2
43
+
44
+ /-- Relabeling uses the original seed graph and merely chooses an order on its
45
+ vertices for the signed integral chain convention. -/
46
+ noncomputable def sourceLinkContraction (K : SimplicialChains.Contraction SeedChainCertificate.graph) :
47
+ SimplicialChains.Contraction seedGraph :=
48
+ K.reindex SeedEncoding.cellEquiv.symm (index_valid_to_source) (source_valid_to_index)
49
+
50
+ end EilenbergGanea
51
+
52
+ namespace EilenbergGanea
53
+ local instance : LinearOrder SeedCell := sourceVertexOrder
54
+ local instance : Preorder SeedCell := sourceVertexOrder.toPartialOrder.toPreorder
55
+ local instance : LT SeedCell := sourceVertexOrder.toLT
56
+ local instance : LE SeedCell := sourceVertexOrder.toLE
57
+
58
+ theorem source_valid_length_le (w : List SeedCell) (hw : SimplicialChains.Valid seedGraph w) :
59
+ w.length ≤ 3 := by
60
+ simpa only [List.length_map] using
61
+ SeedChainCertificate.valid_length_le (w.map SeedEncoding.cellEquiv) (source_valid_to_index w hw)
62
+
63
+ theorem source_cd_eq_two_of_contraction
64
+ (K : SimplicialChains.Contraction SeedChainCertificate.graph) :
65
+ cohomologicalDimension SourceGroup = 2 := by
66
+ apply le_antisymm
67
+ · exact LevelBasis.artin_height_kernel_cd_le_two seedGraph seedBase seed_connected.preconnected
68
+ (sourceLinkContraction K) source_valid_length_le
69
+ · exact source_two_le_cohomologicalDimension
70
+
71
+ /-- The exact remaining geometric interface is not limited to finite or
72
+ countable presentations. This endpoint excludes any ordinary presentation
73
+ whose actual integral equivariant cellular boundaries freely span cycles. -/
74
+ theorem source_no_boundary_basis_of_contraction
75
+ (K : SimplicialChains.Contraction SeedChainCertificate.graph)
76
+ {A R : Type*} (a₀ : A → SourceGroup)
77
+ (ha₀ : Function.Surjective (wordValue a₀))
78
+ (r₀ : R → FreeGroup A) (hr₀ : ∀ i, wordValue a₀ (r₀ i) = 1)
79
+ (hp₀ : (wordValue a₀).ker = Subgroup.normalClosure (Set.range r₀))
80
+ (E : BasedChains SourceGroup R ≃ₗ[ℤ] cycles a₀)
81
+ (hE : ∀ c, (E c : BasedChains SourceGroup A) = relatorChainMap a₀ r₀ c) : False := by
82
+ let : Group.ResiduallyFinite SourceGroup := source_residuallyFinite
83
+ exact LevelBasis.no_boundary_basis_presentation seedGraph seedBase seed_connected.preconnected
84
+ (sourceLinkContraction K) source_valid_length_le SourceTransport.source_small_labels
85
+ a₀ ha₀ r₀ hr₀ hp₀ E hE
86
+
87
+ end EilenbergGanea
88
+
89
+
90
+
91
+ namespace EilenbergGanea
92
+
93
+ /-- Literal integral cohomological dimension of the source's fixed group. -/
94
+ theorem source_cohomologicalDimension : cohomologicalDimension SourceGroup = 2 :=
95
+ source_cd_eq_two_of_contraction SeedChainCertificate.contraction
96
+
97
+ /-- No arbitrary-alphabet genuine presentation has its relators as an integral
98
+ basis of Cayley cycles. -/
99
+ theorem source_no_boundary_basis
100
+ {A R : Type*} (a₀ : A → SourceGroup)
101
+ (ha₀ : Function.Surjective (wordValue a₀))
102
+ (r₀ : R → FreeGroup A) (hr₀ : ∀ i, wordValue a₀ (r₀ i) = 1)
103
+ (hp₀ : (wordValue a₀).ker = Subgroup.normalClosure (Set.range r₀))
104
+ (E : BasedChains SourceGroup R ≃ₗ[ℤ] cycles a₀)
105
+ (hE : ∀ c, (E c : BasedChains SourceGroup A) = relatorChainMap a₀ r₀ c) : False :=
106
+ source_no_boundary_basis_of_contraction SeedChainCertificate.contraction
107
+ a₀ ha₀ r₀ hr₀ hp₀ E hE
108
+
109
+ end EilenbergGanea
110
+
111
+
112
+
113
+ end
114
+
115
+ end OAI
lean/OAI/Topology/EilenbergGanea/IntegralDegree.lean CHANGED
The diff for this file is too large to render. See raw diff
 
lean/OAI/Topology/EilenbergGanea/IntegralModules.lean CHANGED
@@ -1,308 +1,308 @@
1
- import OAI.Topology.EilenbergGanea.Model
2
- import OAI.Topology.EilenbergGanea.PresentationAlignment
3
- import Mathlib.Algebra.Category.ModuleCat.ProjectiveDimension
4
- import Mathlib.RingTheory.Noetherian.Basic
5
-
6
- namespace OAI
7
-
8
- noncomputable section
9
-
10
- open Classical Set
11
-
12
- /-! Group-ring augmentation and literal two-syzygy dimension criterion. -/
13
- namespace EilenbergGanea
14
- open CategoryTheory
15
-
16
- section ProjectiveBound
17
- variable {R P Q M : Type} [Ring R]
18
- [AddCommGroup P] [Module R P] [AddCommGroup Q] [Module R Q]
19
- [AddCommGroup M] [Module R M]
20
-
21
- /-- Two successive projective syzygies give the literal integral upper bound. -/
22
- theorem projectiveDimension_le_two_of_syzygies
23
- (ε : P →ₗ[R] M) (hε : Function.Surjective ε)
24
- (d : Q →ₗ[R] LinearMap.ker ε) (hd : Function.Surjective d)
25
- [Module.Projective R P] [Module.Projective R Q]
26
- [Module.Projective R (LinearMap.ker d)] :
27
- CategoryTheory.projectiveDimension (ModuleCat.of R M) ≤ 2 := by
28
- have h₁ := (LinearMap.shortExact_shortComplexKer hd).hasProjectiveDimensionLT_X₃ 1
29
- (inferInstance : HasProjectiveDimensionLT (ModuleCat.of R (LinearMap.ker d)) 1)
30
- (inferInstance : HasProjectiveDimensionLT (ModuleCat.of R Q) 2)
31
- have h₂ := (LinearMap.shortExact_shortComplexKer hε).hasProjectiveDimensionLT_X₃ 2
32
- h₁ (inferInstance : HasProjectiveDimensionLT (ModuleCat.of R P) 3)
33
- exact (CategoryTheory.projectiveDimension_le_iff _ 2).mpr h₂
34
- end ProjectiveBound
35
-
36
- section CayleyModules
37
- variable {Γ S : Type} [Group Γ]
38
-
39
- abbrev IntegralGroupRing (Γ : Type) [Group Γ] := MonoidAlgebra ℤ Γ
40
- abbrev IntegralTrivialModule (Γ : Type) [Group Γ] :=
41
- (Representation.trivial ℤ Γ ℤ).asModule
42
-
43
- def cayleyAugmentation : IntegralGroupRing Γ →ₗ[IntegralGroupRing Γ] IntegralTrivialModule Γ :=
44
- LinearMap.toSpanSingleton (IntegralGroupRing Γ) _
45
- ((Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm 1)
46
-
47
- @[simp] theorem cayleyAugmentation_single (g : Γ) (n : ℤ) :
48
- cayleyAugmentation (MonoidAlgebra.single g n) =
49
- (Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm n := by
50
- change (MonoidAlgebra.single g n : IntegralGroupRing Γ) •
51
- ((Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm 1) = _
52
- rw [Representation.single_smul]
53
- change (n : ℤ) * 1 = n
54
- exact mul_one n
55
-
56
- theorem cayleyAugmentation_surjective :
57
- Function.Surjective (cayleyAugmentation (Γ := Γ)) := by
58
- intro n
59
- refine ⟨MonoidAlgebra.single (1 : Γ) ((Representation.trivial ℤ Γ ℤ).asModuleEquiv n),?_⟩
60
- rw [cayleyAugmentation_single,LinearEquiv.symm_apply_apply]
61
-
62
- def cayleyDifferential (v : S → Γ) :
63
- (S →₀ IntegralGroupRing Γ) →ₗ[IntegralGroupRing Γ] IntegralGroupRing Γ :=
64
- Finsupp.linearCombination _ (fun s => MonoidAlgebra.single (v s) 1 - 1)
65
-
66
- @[simp] theorem cayleyDifferential_single (v : S → Γ) (s : S) (r : IntegralGroupRing Γ) :
67
- cayleyDifferential v (Finsupp.single s r) = r * (MonoidAlgebra.single (v s) 1 - 1) := by
68
- simp [cayleyDifferential]
69
-
70
- @[simp] theorem cayleyAugmentation_one :
71
- cayleyAugmentation (1 : IntegralGroupRing Γ) =
72
- (Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm 1 :=
73
- cayleyAugmentation_single (1 : Γ) 1
74
-
75
- @[simp] theorem cayleyAugmentation_difference (g : Γ) :
76
- cayleyAugmentation (MonoidAlgebra.single g 1 - 1) = 0 := by
77
- rw [map_sub, cayleyAugmentation_single, cayleyAugmentation_one, sub_self]
78
-
79
- theorem cayleyDifferential_aug (v : S → Γ) :
80
- (cayleyAugmentation (Γ := Γ)).comp (cayleyDifferential v) = 0 := by
81
- change (cayleyAugmentation (Γ := Γ)).comp
82
- (Finsupp.linearCombination _ (fun s => MonoidAlgebra.single (v s) 1 - 1)) = 0
83
- rw [← Finsupp.linearCombination_linear_comp]
84
- have he : (cayleyAugmentation (Γ := Γ)) ∘
85
- (fun s => MonoidAlgebra.single (v s) 1 - 1) = (0 : S → IntegralTrivialModule Γ) := by
86
- funext s
87
- exact cayleyAugmentation_difference (v s)
88
- rw [he, Finsupp.linearCombination_zero]
89
-
90
- theorem cayleyGeneratorDifference_mem (v : S → Γ) (w : FreeGroup S) :
91
- MonoidAlgebra.single (FreeGroup.lift v w) 1 - 1 ∈ LinearMap.range (cayleyDifferential v) := by
92
- induction w using FreeGroup.induction_on with
93
- | one =>
94
- simp only [map_one]
95
- have he : (MonoidAlgebra.single (1 : Γ) 1 : IntegralGroupRing Γ) = 1 := rfl
96
- rw [he,sub_self]
97
- exact Submodule.zero_mem _
98
- | of s =>
99
- exact ⟨Finsupp.single s 1,by simp⟩
100
- | inv_of s =>
101
- refine ⟨Finsupp.single s (-MonoidAlgebra.single (v s)⁻¹ 1),?_⟩
102
- simp [mul_sub,MonoidAlgebra.single_mul_single]
103
- rfl
104
- | mul w z hw hz =>
105
- have hh := (LinearMap.range (cayleyDifferential v)).smul_mem
106
- (MonoidAlgebra.single (FreeGroup.lift v w) 1) hz
107
- have hc := (LinearMap.range (cayleyDifferential v)).add_mem hw hh
108
- rw [map_mul]
109
- convert hc using 1
110
- change _ = (_ - 1) + _ * (_ - 1)
111
- rw [mul_sub,mul_one,MonoidAlgebra.single_mul_single,one_mul]
112
- abel
113
-
114
- theorem cayleyAugmentation_normalize (v : S → Γ)
115
- (hv : Function.Surjective (FreeGroup.lift v)) (r : IntegralGroupRing Γ) :
116
- r - MonoidAlgebra.single 1
117
- ((Representation.trivial ℤ Γ ℤ).asModuleEquiv (cayleyAugmentation r)) ∈
118
- LinearMap.range (cayleyDifferential v) := by
119
- classical
120
- induction r using MonoidAlgebra.induction_linear with
121
- | zero => simp
122
- | add r t hr ht =>
123
- rw [map_add, map_add, MonoidAlgebra.single_add]
124
- convert (LinearMap.range (cayleyDifferential v)).add_mem hr ht using 1; abel
125
- | single g n =>
126
- rw [cayleyAugmentation_single, LinearEquiv.apply_symm_apply]
127
- obtain ⟨w, hw⟩ := hv g
128
- have hm := (LinearMap.range (cayleyDifferential v)).toAddSubgroup.zsmul_mem
129
- (cayleyGeneratorDifference_mem v w) n
130
- rw [hw] at hm
131
- convert hm using 1
132
- simp only [smul_sub, MonoidAlgebra.smul_single, zsmul_eq_mul, mul_one]
133
- rfl
134
-
135
- theorem cayley_exact (v : S → Γ) (hv : Function.Surjective (FreeGroup.lift v)) :
136
- LinearMap.range (cayleyDifferential v) = LinearMap.ker (cayleyAugmentation (Γ := Γ)) := by
137
- apply le_antisymm
138
- · rintro _ ⟨r,rfl⟩
139
- exact LinearMap.congr_fun (cayleyDifferential_aug v) r
140
- · intro r hr
141
- have hm := cayleyAugmentation_normalize v hv r
142
- rw [LinearMap.mem_ker.mp hr, map_zero, MonoidAlgebra.single_zero, sub_zero] at hm
143
- exact hm
144
-
145
- def cayleySyzygyDifferential (v : S → Γ) :
146
- (S →₀ IntegralGroupRing Γ) →ₗ[IntegralGroupRing Γ]
147
- LinearMap.ker (cayleyAugmentation (Γ := Γ)) :=
148
- (cayleyDifferential v).codRestrict _ (by
149
- intro r
150
- exact LinearMap.congr_fun (cayleyDifferential_aug v) r)
151
-
152
- theorem cayleySyzygyDifferential_surjective (v : S → Γ)
153
- (hv : Function.Surjective (FreeGroup.lift v)) :
154
- Function.Surjective (cayleySyzygyDifferential v) := by
155
- intro r
156
- have hr : (r : IntegralGroupRing Γ) ∈ LinearMap.range (cayleyDifferential v) := by
157
- rw [cayley_exact v hv]
158
- exact r.property
159
- obtain ⟨s, hs⟩ := hr
160
- exact ⟨s, Subtype.ext hs⟩
161
-
162
- theorem cayley_projectiveDimension_le_two (v : S → Γ)
163
- (hv : Function.Surjective (FreeGroup.lift v))
164
- [Module.Projective (IntegralGroupRing Γ) (LinearMap.ker (cayleyDifferential v))] :
165
- CategoryTheory.projectiveDimension
166
- (ModuleCat.of (IntegralGroupRing Γ) (IntegralTrivialModule Γ)) ≤ 2 := by
167
- have hk : LinearMap.ker (cayleySyzygyDifferential v) =
168
- LinearMap.ker (cayleyDifferential v) := LinearMap.ker_codRestrict _ _ _
169
- have : Module.Projective (IntegralGroupRing Γ)
170
- (LinearMap.ker (cayleySyzygyDifferential v)) := hk ▸ inferInstance
171
- exact projectiveDimension_le_two_of_syzygies cayleyAugmentation
172
- cayleyAugmentation_surjective (cayleySyzygyDifferential v)
173
- (cayleySyzygyDifferential_surjective v hv)
174
-
175
- end CayleyModules
176
- end EilenbergGanea
177
-
178
- namespace EilenbergGanea
179
- section ChainPackaging
180
- variable {Γ S T : Type} [Group Γ]
181
-
182
- /-- Reindex the actual integral edge chains as a free left group-ring module. -/
183
- def chainPackaging : BasedChains Γ S ≃ₗ[ℤ] S →₀ IntegralGroupRing Γ :=
184
- ((Finsupp.domLCongr (Equiv.prodComm Γ S)).trans (Finsupp.curryLinearEquiv ℤ)).trans
185
- (Finsupp.mapRange.linearEquiv (MonoidAlgebra.coeffLinearEquiv ℤ).symm)
186
-
187
- @[simp] theorem chainPackaging_single (g : Γ) (s : S) (n : ℤ) :
188
- chainPackaging (Finsupp.single (g,s) n) =
189
- Finsupp.single s (MonoidAlgebra.single g n) := by
190
- simp [chainPackaging, Finsupp.curry_single]
191
-
192
- @[simp] theorem chainPackaging_symm_single (g : Γ) (s : S) (n : ℤ) :
193
- (chainPackaging (Γ := Γ) (S := S)).symm
194
- (Finsupp.single s (MonoidAlgebra.single g n)) = Finsupp.single (g,s) n := by
195
- apply (chainPackaging (Γ := Γ) (S := S)).injective
196
- simp
197
-
198
- theorem chainPackaging_translate (g : Γ) (c : BasedChains Γ S) :
199
- chainPackaging (translateChains g c) =
200
- (MonoidAlgebra.single g 1 : IntegralGroupRing Γ) • chainPackaging c := by
201
- have he : (chainPackaging (Γ := Γ) (S := S)).toLinearMap.comp (translateChains g) =
202
- (DistribSMul.toLinearMap ℤ (S →₀ IntegralGroupRing Γ) (MonoidAlgebra.single g 1 : IntegralGroupRing Γ)).comp
203
- (chainPackaging (Γ := Γ) (S := S)).toLinearMap := by
204
- apply Finsupp.lhom_ext
205
- rintro ⟨h,s⟩ n
206
- simp [Finsupp.smul_single, MonoidAlgebra.single_mul_single]
207
- exact LinearMap.congr_fun he c
208
-
209
- theorem chainPackaging_boundary (v : S → Γ) (c : BasedChains Γ S) :
210
- cayleyDifferential v (chainPackaging c) = MonoidAlgebra.ofCoeff (edgeBoundary v c) := by
211
- have he : ((cayleyDifferential v).restrictScalars ℤ).comp
212
- (chainPackaging (Γ := Γ) (S := S)).toLinearMap =
213
- (MonoidAlgebra.coeffLinearEquiv ℤ).symm.toLinearMap.comp (edgeBoundary v) := by
214
- apply Finsupp.lhom_ext
215
- rintro ⟨g,s⟩ n
216
- simp only [LinearMap.comp_apply, LinearMap.coe_restrictScalars, LinearEquiv.coe_coe,
217
- chainPackaging_single, cayleyDifferential_single, edgeBoundary_single, map_smul,
218
- map_sub]
219
- simp only [mul_sub, MonoidAlgebra.single_mul_single, mul_one,
220
- MonoidAlgebra.coeffLinearEquiv_symm_apply, MonoidAlgebra.ofCoeff_single,
221
- MonoidAlgebra.smul_single, smul_sub, smul_eq_mul]
222
- exact LinearMap.congr_fun he c
223
-
224
- theorem chainPackaging_symm_translate (g : Γ) (c : S →₀ IntegralGroupRing Γ) :
225
- (chainPackaging (Γ := Γ) (S := S)).symm ((MonoidAlgebra.single g 1 : IntegralGroupRing Γ) • c) =
226
- translateChains g (chainPackaging.symm c) := by
227
- apply (chainPackaging (Γ := Γ) (S := S)).injective
228
- rw [chainPackaging_translate, LinearEquiv.apply_symm_apply, LinearEquiv.apply_symm_apply]
229
-
230
- /-- Equivariance on integral chains is exactly full group-ring linearity. -/
231
- def chainRingMap (A : BasedChains Γ S →ₗ[ℤ] BasedChains Γ T)
232
- (hA : ChainsEquivariant A) :
233
- (S →₀ IntegralGroupRing Γ) →ₗ[IntegralGroupRing Γ] T →₀ IntegralGroupRing Γ where
234
- toFun c := chainPackaging (A (chainPackaging.symm c))
235
- map_add' _ _ := by simp only [map_add]
236
- map_smul' r c := by
237
- induction r using MonoidAlgebra.induction_linear with
238
- | zero => simp only [zero_smul, map_zero]
239
- | add r t hr ht => simp only [add_smul, map_add, hr, ht]
240
- | single g n =>
241
- have hn : (MonoidAlgebra.single g n : IntegralGroupRing Γ) =
242
- n • MonoidAlgebra.single g 1 := by simp
243
- rw [hn]
244
- simp only [smul_assoc, map_smul, chainPackaging_symm_translate, RingHom.id_apply]
245
- rw [hA g _, chainPackaging_translate]
246
-
247
- @[simp] theorem chainRingMap_apply (A : BasedChains Γ S →ₗ[ℤ] BasedChains Γ T)
248
- (hA : ChainsEquivariant A) (c : S →₀ IntegralGroupRing Γ) :
249
- chainRingMap A hA c = chainPackaging (A (chainPackaging.symm c)) := rfl
250
-
251
- theorem chainPackaging_mem_cycles (v : S → Γ) (c : BasedChains Γ S) :
252
- c ∈ cycles v ↔ chainPackaging c ∈ LinearMap.ker (cayleyDifferential v) := by
253
- change edgeBoundary v c = 0 ↔ cayleyDifferential v (chainPackaging c) = 0
254
- rw [chainPackaging_boundary]
255
- constructor
256
- · intro h
257
- rw [h]
258
- rfl
259
- · intro h
260
- have hh := congrArg MonoidAlgebra.coeff h
261
- exact hh
262
-
263
- theorem projective_cayley_cycles_of_boundary_basis (v : S → Γ)
264
- (A : BasedChains Γ T →ₗ[ℤ] BasedChains Γ S) (hA : ChainsEquivariant A)
265
- (hAi : Function.Injective A) (hAr : LinearMap.range A = cycles v) :
266
- Module.Projective (IntegralGroupRing Γ) (LinearMap.ker (cayleyDifferential v)) := by
267
- have hm : ∀ c, chainRingMap A hA c ∈ LinearMap.ker (cayleyDifferential v) := by
268
- intro c
269
- apply (chainPackaging_mem_cycles v _).mp
270
- rw [← hAr]
271
- exact ⟨chainPackaging.symm c,rfl⟩
272
- let d := (chainRingMap A hA).codRestrict _ hm
273
- have hi : Function.Injective d := by
274
- intro c c' h
275
- apply (chainPackaging (Γ := Γ) (S := T)).symm.injective
276
- apply hAi
277
- apply chainPackaging.injective
278
- exact congrArg Subtype.val h
279
- have hs : Function.Surjective d := by
280
- intro c
281
- have hc : chainPackaging.symm (c : S →₀ IntegralGroupRing Γ) ∈ cycles v := by
282
- apply (chainPackaging_mem_cycles v _).mpr
283
- rw [LinearEquiv.apply_symm_apply]
284
- exact c.property
285
- rw [← hAr] at hc
286
- obtain ⟨b,hb⟩ := hc
287
- refine ⟨chainPackaging b,Subtype.ext ?_⟩
288
- change chainPackaging (A (chainPackaging.symm (chainPackaging b))) = c.val
289
- rw [LinearEquiv.symm_apply_apply,hb,LinearEquiv.apply_symm_apply]
290
- exact Module.Projective.of_equiv' (LinearEquiv.ofBijective d ⟨hi,hs⟩)
291
-
292
- theorem projectiveDimension_le_two_of_boundary_basis (v : S → Γ)
293
- (hv : Function.Surjective (FreeGroup.lift v))
294
- (A : BasedChains Γ T →ₗ[ℤ] BasedChains Γ S) (hA : ChainsEquivariant A)
295
- (hAi : Function.Injective A) (hAr : LinearMap.range A = cycles v) :
296
- CategoryTheory.projectiveDimension
297
- (ModuleCat.of (IntegralGroupRing Γ) (IntegralTrivialModule Γ)) ≤ 2 := by
298
- have := projective_cayley_cycles_of_boundary_basis v A hA hAi hAr
299
- exact cayley_projectiveDimension_le_two v hv
300
-
301
- end ChainPackaging
302
-
303
-
304
- end EilenbergGanea
305
-
306
- end
307
-
308
- end OAI
 
1
+ import OAI.Topology.EilenbergGanea.Model
2
+ import OAI.Topology.EilenbergGanea.PresentationAlignment
3
+ import Mathlib.Algebra.Category.ModuleCat.ProjectiveDimension
4
+ import Mathlib.RingTheory.Noetherian.Basic
5
+
6
+ namespace OAI
7
+
8
+ noncomputable section
9
+
10
+ open Classical Set
11
+
12
+ /-! Group-ring augmentation and literal two-syzygy dimension criterion. -/
13
+ namespace EilenbergGanea
14
+ open CategoryTheory
15
+
16
+ section ProjectiveBound
17
+ variable {R P Q M : Type} [Ring R]
18
+ [AddCommGroup P] [Module R P] [AddCommGroup Q] [Module R Q]
19
+ [AddCommGroup M] [Module R M]
20
+
21
+ /-- Two successive projective syzygies give the literal integral upper bound. -/
22
+ theorem projectiveDimension_le_two_of_syzygies
23
+ (ε : P →ₗ[R] M) (hε : Function.Surjective ε)
24
+ (d : Q →ₗ[R] LinearMap.ker ε) (hd : Function.Surjective d)
25
+ [Module.Projective R P] [Module.Projective R Q]
26
+ [Module.Projective R (LinearMap.ker d)] :
27
+ CategoryTheory.projectiveDimension (ModuleCat.of R M) ≤ 2 := by
28
+ have h₁ := (LinearMap.shortExact_shortComplexKer hd).hasProjectiveDimensionLT_X₃ 1
29
+ (inferInstance : HasProjectiveDimensionLT (ModuleCat.of R (LinearMap.ker d)) 1)
30
+ (inferInstance : HasProjectiveDimensionLT (ModuleCat.of R Q) 2)
31
+ have h₂ := (LinearMap.shortExact_shortComplexKer hε).hasProjectiveDimensionLT_X₃ 2
32
+ h₁ (inferInstance : HasProjectiveDimensionLT (ModuleCat.of R P) 3)
33
+ exact (CategoryTheory.projectiveDimension_le_iff _ 2).mpr h₂
34
+ end ProjectiveBound
35
+
36
+ section CayleyModules
37
+ variable {Γ S : Type} [Group Γ]
38
+
39
+ abbrev IntegralGroupRing (Γ : Type) [Group Γ] := MonoidAlgebra ℤ Γ
40
+ abbrev IntegralTrivialModule (Γ : Type) [Group Γ] :=
41
+ (Representation.trivial ℤ Γ ℤ).asModule
42
+
43
+ def cayleyAugmentation : IntegralGroupRing Γ →ₗ[IntegralGroupRing Γ] IntegralTrivialModule Γ :=
44
+ LinearMap.toSpanSingleton (IntegralGroupRing Γ) _
45
+ ((Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm 1)
46
+
47
+ @[simp] theorem cayleyAugmentation_single (g : Γ) (n : ℤ) :
48
+ cayleyAugmentation (MonoidAlgebra.single g n) =
49
+ (Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm n := by
50
+ change (MonoidAlgebra.single g n : IntegralGroupRing Γ) •
51
+ ((Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm 1) = _
52
+ rw [Representation.single_smul]
53
+ change (n : ℤ) * 1 = n
54
+ exact mul_one n
55
+
56
+ theorem cayleyAugmentation_surjective :
57
+ Function.Surjective (cayleyAugmentation (Γ := Γ)) := by
58
+ intro n
59
+ refine ⟨MonoidAlgebra.single (1 : Γ) ((Representation.trivial ℤ Γ ℤ).asModuleEquiv n),?_⟩
60
+ rw [cayleyAugmentation_single,LinearEquiv.symm_apply_apply]
61
+
62
+ def cayleyDifferential (v : S → Γ) :
63
+ (S →₀ IntegralGroupRing Γ) →ₗ[IntegralGroupRing Γ] IntegralGroupRing Γ :=
64
+ Finsupp.linearCombination _ (fun s => MonoidAlgebra.single (v s) 1 - 1)
65
+
66
+ @[simp] theorem cayleyDifferential_single (v : S → Γ) (s : S) (r : IntegralGroupRing Γ) :
67
+ cayleyDifferential v (Finsupp.single s r) = r * (MonoidAlgebra.single (v s) 1 - 1) := by
68
+ simp [cayleyDifferential]
69
+
70
+ @[simp] theorem cayleyAugmentation_one :
71
+ cayleyAugmentation (1 : IntegralGroupRing Γ) =
72
+ (Representation.trivial ℤ Γ ℤ).asModuleEquiv.symm 1 :=
73
+ cayleyAugmentation_single (1 : Γ) 1
74
+
75
+ @[simp] theorem cayleyAugmentation_difference (g : Γ) :
76
+ cayleyAugmentation (MonoidAlgebra.single g 1 - 1) = 0 := by
77
+ rw [map_sub, cayleyAugmentation_single, cayleyAugmentation_one, sub_self]
78
+
79
+ theorem cayleyDifferential_aug (v : S → Γ) :
80
+ (cayleyAugmentation (Γ := Γ)).comp (cayleyDifferential v) = 0 := by
81
+ change (cayleyAugmentation (Γ := Γ)).comp
82
+ (Finsupp.linearCombination _ (fun s => MonoidAlgebra.single (v s) 1 - 1)) = 0
83
+ rw [← Finsupp.linearCombination_linear_comp]
84
+ have he : (cayleyAugmentation (Γ := Γ)) ∘
85
+ (fun s => MonoidAlgebra.single (v s) 1 - 1) = (0 : S → IntegralTrivialModule Γ) := by
86
+ funext s
87
+ exact cayleyAugmentation_difference (v s)
88
+ rw [he, Finsupp.linearCombination_zero]
89
+
90
+ theorem cayleyGeneratorDifference_mem (v : S → Γ) (w : FreeGroup S) :
91
+ MonoidAlgebra.single (FreeGroup.lift v w) 1 - 1 ∈ LinearMap.range (cayleyDifferential v) := by
92
+ induction w using FreeGroup.induction_on with
93
+ | one =>
94
+ simp only [map_one]
95
+ have he : (MonoidAlgebra.single (1 : Γ) 1 : IntegralGroupRing Γ) = 1 := rfl
96
+ rw [he,sub_self]
97
+ exact Submodule.zero_mem _
98
+ | of s =>
99
+ exact ⟨Finsupp.single s 1,by simp⟩
100
+ | inv_of s =>
101
+ refine ⟨Finsupp.single s (-MonoidAlgebra.single (v s)⁻¹ 1),?_⟩
102
+ simp [mul_sub,MonoidAlgebra.single_mul_single]
103
+ rfl
104
+ | mul w z hw hz =>
105
+ have hh := (LinearMap.range (cayleyDifferential v)).smul_mem
106
+ (MonoidAlgebra.single (FreeGroup.lift v w) 1) hz
107
+ have hc := (LinearMap.range (cayleyDifferential v)).add_mem hw hh
108
+ rw [map_mul]
109
+ convert hc using 1
110
+ change _ = (_ - 1) + _ * (_ - 1)
111
+ rw [mul_sub,mul_one,MonoidAlgebra.single_mul_single,one_mul]
112
+ abel
113
+
114
+ theorem cayleyAugmentation_normalize (v : S → Γ)
115
+ (hv : Function.Surjective (FreeGroup.lift v)) (r : IntegralGroupRing Γ) :
116
+ r - MonoidAlgebra.single 1
117
+ ((Representation.trivial ℤ Γ ℤ).asModuleEquiv (cayleyAugmentation r)) ∈
118
+ LinearMap.range (cayleyDifferential v) := by
119
+ classical
120
+ induction r using MonoidAlgebra.induction_linear with
121
+ | zero => simp
122
+ | add r t hr ht =>
123
+ rw [map_add, map_add, MonoidAlgebra.single_add]
124
+ convert (LinearMap.range (cayleyDifferential v)).add_mem hr ht using 1; abel
125
+ | single g n =>
126
+ rw [cayleyAugmentation_single, LinearEquiv.apply_symm_apply]
127
+ obtain ⟨w, hw⟩ := hv g
128
+ have hm := (LinearMap.range (cayleyDifferential v)).toAddSubgroup.zsmul_mem
129
+ (cayleyGeneratorDifference_mem v w) n
130
+ rw [hw] at hm
131
+ convert hm using 1
132
+ simp only [smul_sub, MonoidAlgebra.smul_single, zsmul_eq_mul, mul_one]
133
+ rfl
134
+
135
+ theorem cayley_exact (v : S → Γ) (hv : Function.Surjective (FreeGroup.lift v)) :
136
+ LinearMap.range (cayleyDifferential v) = LinearMap.ker (cayleyAugmentation (Γ := Γ)) := by
137
+ apply le_antisymm
138
+ · rintro _ ⟨r,rfl⟩
139
+ exact LinearMap.congr_fun (cayleyDifferential_aug v) r
140
+ · intro r hr
141
+ have hm := cayleyAugmentation_normalize v hv r
142
+ rw [LinearMap.mem_ker.mp hr, map_zero, MonoidAlgebra.single_zero, sub_zero] at hm
143
+ exact hm
144
+
145
+ def cayleySyzygyDifferential (v : S → Γ) :
146
+ (S →₀ IntegralGroupRing Γ) →ₗ[IntegralGroupRing Γ]
147
+ LinearMap.ker (cayleyAugmentation (Γ := Γ)) :=
148
+ (cayleyDifferential v).codRestrict _ (by
149
+ intro r
150
+ exact LinearMap.congr_fun (cayleyDifferential_aug v) r)
151
+
152
+ theorem cayleySyzygyDifferential_surjective (v : S → Γ)
153
+ (hv : Function.Surjective (FreeGroup.lift v)) :
154
+ Function.Surjective (cayleySyzygyDifferential v) := by
155
+ intro r
156
+ have hr : (r : IntegralGroupRing Γ) ∈ LinearMap.range (cayleyDifferential v) := by
157
+ rw [cayley_exact v hv]
158
+ exact r.property
159
+ obtain ⟨s, hs⟩ := hr
160
+ exact ⟨s, Subtype.ext hs⟩
161
+
162
+ theorem cayley_projectiveDimension_le_two (v : S → Γ)
163
+ (hv : Function.Surjective (FreeGroup.lift v))
164
+ [Module.Projective (IntegralGroupRing Γ) (LinearMap.ker (cayleyDifferential v))] :
165
+ CategoryTheory.projectiveDimension
166
+ (ModuleCat.of (IntegralGroupRing Γ) (IntegralTrivialModule Γ)) ≤ 2 := by
167
+ have hk : LinearMap.ker (cayleySyzygyDifferential v) =
168
+ LinearMap.ker (cayleyDifferential v) := LinearMap.ker_codRestrict _ _ _
169
+ have : Module.Projective (IntegralGroupRing Γ)
170
+ (LinearMap.ker (cayleySyzygyDifferential v)) := hk ▸ inferInstance
171
+ exact projectiveDimension_le_two_of_syzygies cayleyAugmentation
172
+ cayleyAugmentation_surjective (cayleySyzygyDifferential v)
173
+ (cayleySyzygyDifferential_surjective v hv)
174
+
175
+ end CayleyModules
176
+ end EilenbergGanea
177
+
178
+ namespace EilenbergGanea
179
+ section ChainPackaging
180
+ variable {Γ S T : Type} [Group Γ]
181
+
182
+ /-- Reindex the actual integral edge chains as a free left group-ring module. -/
183
+ def chainPackaging : BasedChains Γ S ≃ₗ[ℤ] S →₀ IntegralGroupRing Γ :=
184
+ ((Finsupp.domLCongr (Equiv.prodComm Γ S)).trans (Finsupp.curryLinearEquiv ℤ)).trans
185
+ (Finsupp.mapRange.linearEquiv (MonoidAlgebra.coeffLinearEquiv ℤ).symm)
186
+
187
+ @[simp] theorem chainPackaging_single (g : Γ) (s : S) (n : ℤ) :
188
+ chainPackaging (Finsupp.single (g,s) n) =
189
+ Finsupp.single s (MonoidAlgebra.single g n) := by
190
+ simp [chainPackaging, Finsupp.curry_single]
191
+
192
+ @[simp] theorem chainPackaging_symm_single (g : Γ) (s : S) (n : ℤ) :
193
+ (chainPackaging (Γ := Γ) (S := S)).symm
194
+ (Finsupp.single s (MonoidAlgebra.single g n)) = Finsupp.single (g,s) n := by
195
+ apply (chainPackaging (Γ := Γ) (S := S)).injective
196
+ simp
197
+
198
+ theorem chainPackaging_translate (g : Γ) (c : BasedChains Γ S) :
199
+ chainPackaging (translateChains g c) =
200
+ (MonoidAlgebra.single g 1 : IntegralGroupRing Γ) • chainPackaging c := by
201
+ have he : (chainPackaging (Γ := Γ) (S := S)).toLinearMap.comp (translateChains g) =
202
+ (DistribSMul.toLinearMap ℤ (S →₀ IntegralGroupRing Γ) (MonoidAlgebra.single g 1 : IntegralGroupRing Γ)).comp
203
+ (chainPackaging (Γ := Γ) (S := S)).toLinearMap := by
204
+ apply Finsupp.lhom_ext
205
+ rintro ⟨h,s⟩ n
206
+ simp [Finsupp.smul_single, MonoidAlgebra.single_mul_single]
207
+ exact LinearMap.congr_fun he c
208
+
209
+ theorem chainPackaging_boundary (v : S → Γ) (c : BasedChains Γ S) :
210
+ cayleyDifferential v (chainPackaging c) = MonoidAlgebra.ofCoeff (edgeBoundary v c) := by
211
+ have he : ((cayleyDifferential v).restrictScalars ℤ).comp
212
+ (chainPackaging (Γ := Γ) (S := S)).toLinearMap =
213
+ (MonoidAlgebra.coeffLinearEquiv ℤ).symm.toLinearMap.comp (edgeBoundary v) := by
214
+ apply Finsupp.lhom_ext
215
+ rintro ⟨g,s⟩ n
216
+ simp only [LinearMap.comp_apply, LinearMap.coe_restrictScalars, LinearEquiv.coe_coe,
217
+ chainPackaging_single, cayleyDifferential_single, edgeBoundary_single, map_smul,
218
+ map_sub]
219
+ simp only [mul_sub, MonoidAlgebra.single_mul_single, mul_one,
220
+ MonoidAlgebra.coeffLinearEquiv_symm_apply, MonoidAlgebra.ofCoeff_single,
221
+ MonoidAlgebra.smul_single, smul_sub, smul_eq_mul]
222
+ exact LinearMap.congr_fun he c
223
+
224
+ theorem chainPackaging_symm_translate (g : Γ) (c : S →₀ IntegralGroupRing Γ) :
225
+ (chainPackaging (Γ := Γ) (S := S)).symm ((MonoidAlgebra.single g 1 : IntegralGroupRing Γ) • c) =
226
+ translateChains g (chainPackaging.symm c) := by
227
+ apply (chainPackaging (Γ := Γ) (S := S)).injective
228
+ rw [chainPackaging_translate, LinearEquiv.apply_symm_apply, LinearEquiv.apply_symm_apply]
229
+
230
+ /-- Equivariance on integral chains is exactly full group-ring linearity. -/
231
+ def chainRingMap (A : BasedChains Γ S →ₗ[ℤ] BasedChains Γ T)
232
+ (hA : ChainsEquivariant A) :
233
+ (S →₀ IntegralGroupRing Γ) →ₗ[IntegralGroupRing Γ] T →₀ IntegralGroupRing Γ where
234
+ toFun c := chainPackaging (A (chainPackaging.symm c))
235
+ map_add' _ _ := by simp only [map_add]
236
+ map_smul' r c := by
237
+ induction r using MonoidAlgebra.induction_linear with
238
+ | zero => simp only [zero_smul, map_zero]
239
+ | add r t hr ht => simp only [add_smul, map_add, hr, ht]
240
+ | single g n =>
241
+ have hn : (MonoidAlgebra.single g n : IntegralGroupRing Γ) =
242
+ n • MonoidAlgebra.single g 1 := by simp
243
+ rw [hn]
244
+ simp only [smul_assoc, map_smul, chainPackaging_symm_translate, RingHom.id_apply]
245
+ rw [hA g _, chainPackaging_translate]
246
+
247
+ @[simp] theorem chainRingMap_apply (A : BasedChains Γ S →ₗ[ℤ] BasedChains Γ T)
248
+ (hA : ChainsEquivariant A) (c : S →₀ IntegralGroupRing Γ) :
249
+ chainRingMap A hA c = chainPackaging (A (chainPackaging.symm c)) := rfl
250
+
251
+ theorem chainPackaging_mem_cycles (v : S → Γ) (c : BasedChains Γ S) :
252
+ c ∈ cycles v ↔ chainPackaging c ∈ LinearMap.ker (cayleyDifferential v) := by
253
+ change edgeBoundary v c = 0 ↔ cayleyDifferential v (chainPackaging c) = 0
254
+ rw [chainPackaging_boundary]
255
+ constructor
256
+ · intro h
257
+ rw [h]
258
+ rfl
259
+ · intro h
260
+ have hh := congrArg MonoidAlgebra.coeff h
261
+ exact hh
262
+
263
+ theorem projective_cayley_cycles_of_boundary_basis (v : S → Γ)
264
+ (A : BasedChains Γ T →ₗ[ℤ] BasedChains Γ S) (hA : ChainsEquivariant A)
265
+ (hAi : Function.Injective A) (hAr : LinearMap.range A = cycles v) :
266
+ Module.Projective (IntegralGroupRing Γ) (LinearMap.ker (cayleyDifferential v)) := by
267
+ have hm : ∀ c, chainRingMap A hA c ∈ LinearMap.ker (cayleyDifferential v) := by
268
+ intro c
269
+ apply (chainPackaging_mem_cycles v _).mp
270
+ rw [← hAr]
271
+ exact ⟨chainPackaging.symm c,rfl⟩
272
+ let d := (chainRingMap A hA).codRestrict _ hm
273
+ have hi : Function.Injective d := by
274
+ intro c c' h
275
+ apply (chainPackaging (Γ := Γ) (S := T)).symm.injective
276
+ apply hAi
277
+ apply chainPackaging.injective
278
+ exact congrArg Subtype.val h
279
+ have hs : Function.Surjective d := by
280
+ intro c
281
+ have hc : chainPackaging.symm (c : S →₀ IntegralGroupRing Γ) ∈ cycles v := by
282
+ apply (chainPackaging_mem_cycles v _).mpr
283
+ rw [LinearEquiv.apply_symm_apply]
284
+ exact c.property
285
+ rw [← hAr] at hc
286
+ obtain ⟨b,hb⟩ := hc
287
+ refine ⟨chainPackaging b,Subtype.ext ?_⟩
288
+ change chainPackaging (A (chainPackaging.symm (chainPackaging b))) = c.val
289
+ rw [LinearEquiv.symm_apply_apply,hb,LinearEquiv.apply_symm_apply]
290
+ exact Module.Projective.of_equiv' (LinearEquiv.ofBijective d ⟨hi,hs⟩)
291
+
292
+ theorem projectiveDimension_le_two_of_boundary_basis (v : S → Γ)
293
+ (hv : Function.Surjective (FreeGroup.lift v))
294
+ (A : BasedChains Γ T →ₗ[ℤ] BasedChains Γ S) (hA : ChainsEquivariant A)
295
+ (hAi : Function.Injective A) (hAr : LinearMap.range A = cycles v) :
296
+ CategoryTheory.projectiveDimension
297
+ (ModuleCat.of (IntegralGroupRing Γ) (IntegralTrivialModule Γ)) ≤ 2 := by
298
+ have := projective_cayley_cycles_of_boundary_basis v A hA hAi hAr
299
+ exact cayley_projectiveDimension_le_two v hv
300
+
301
+ end ChainPackaging
302
+
303
+
304
+ end EilenbergGanea
305
+
306
+ end
307
+
308
+ end OAI
lean/OAI/Topology/EilenbergGanea/LevelBasis.lean CHANGED
@@ -1,968 +1,968 @@
1
- import OAI.AlgebraicTopology.Cubical.HeightChains
2
- import OAI.Topology.EilenbergGanea.IntegralModules
3
- import OAI.Topology.EilenbergGanea.LevelTransport
4
-
5
- namespace OAI
6
-
7
- noncomputable section
8
-
9
- open Classical Set Filter Topology MeasureTheory
10
- open scoped Quaternion ContDiff
11
-
12
- namespace EilenbergGanea.LevelBasis
13
- open CubicalChains CubicalChains.LevelExact CubicalChains.HeightFiltration
14
- variable {G A : Type} [Group G] [LinearOrder A]
15
- variable (L : SimpleGraph A) (φ : G →* Multiplicative ℤ) (v : A → G) (root : A)
16
- def ht (g : G) : ℤ := (φ g).toAdd
17
- @[simp] theorem ht_mul (g q : G) : ht φ (g*q) = ht φ g + ht φ q := by simp [ht]
18
- @[simp] theorem ht_one : ht φ 1 = 0 := by simp [ht]
19
- @[simp] theorem ht_inv (g : G) : ht φ g⁻¹ = -ht φ g := by simp [ht]
20
- @[simp] theorem ht_zpow (g : G) (n : ℤ) : ht φ (g^n) = n * ht φ g := by simp [ht]
21
- @[simp] theorem ht_ker (g : φ.ker) : ht φ g = 0 := by simp [ht,MonoidHom.mem_ker.mp g.property]
22
- variable (hv : ∀ a, φ (v a) = Multiplicative.ofAdd (1 : ℤ))
23
- include hv in
24
- omit [LinearOrder A] in
25
- @[simp] theorem ht_generator (a : A) : ht φ (v a) = 1 := by simp [ht,hv]
26
- include hv in
27
- omit [LinearOrder A] in
28
- theorem ht_step (g : G) (a : A) : ht φ (g * v a) = ht φ g + 1 := by simp [ht_generator φ v hv]
29
-
30
- def Shape (k : ℕ) := {p : List A × ℤ // SimplicialChains.Valid L p.1 ∧ p.1.length = k ∧
31
- p.2 < 0 ∧ 0 < p.2 + (k : ℤ)}
32
- def basisIndex (k : ℕ) (p : φ.ker × Shape L k) : G × List A :=
33
- (p.1.val * (v (p.2.val.1.headD root)) ^ p.2.val.2,p.2.val.1)
34
-
35
- include hv in
36
- theorem basisIndex_height (k : ℕ) (p : φ.ker × Shape L k) :
37
- ht φ (basisIndex L φ v root k p).1 = p.2.val.2 := by
38
- simp only [basisIndex,ht_mul,ht_ker,ht_zpow,ht_generator φ v hv,mul_one,zero_add]
39
-
40
- include hv in
41
- theorem basisIndex_injective (k : ℕ) : Function.Injective (basisIndex L φ v root k) := by
42
- intro p q he
43
- have hw : p.2.val.1 = q.2.val.1 := congrArg Prod.snd he
44
- have hh := congrArg (fun x => ht φ x.1) he
45
- rw [basisIndex_height L φ v root hv,basisIndex_height L φ v root hv] at hh
46
- have hs : p.2 = q.2 := Subtype.ext (Prod.ext hw hh)
47
- have hg := congrArg Prod.fst he
48
- simp only [basisIndex,hs] at hg
49
- exact Prod.ext (Subtype.ext (mul_right_cancel hg)) hs
50
-
51
- include hv in
52
- theorem basisIndex_mem (k : ℕ) (p : φ.ker × Shape L k) :
53
- SimplicialChains.Valid L (basisIndex L φ v root k p).2 ∧
54
- (basisIndex L φ v root k p).2.length = k ∧
55
- ht φ (basisIndex L φ v root k p).1 < 0 ∧
56
- 0 < ht φ (basisIndex L φ v root k p).1 + (k : ℤ) := by
57
- rw [basisIndex_height L φ v root hv]
58
- exact p.2.property
59
-
60
- include hv in
61
- theorem exists_basisIndex {k : ℕ} (p : G × List A)
62
- (hp : SimplicialChains.Valid L p.2 ∧ p.2.length = k ∧ ht φ p.1 < 0 ∧ 0 < ht φ p.1 + (k : ℤ)) :
63
- ∃ q : φ.ker × Shape L k, basisIndex L φ v root k q = p := by
64
- let s : Shape L k := ⟨(p.2,ht φ p.1),hp⟩
65
- let g : φ.ker := ⟨p.1 * (v (p.2.headD root)) ^ (-ht φ p.1),by
66
- apply (Multiplicative.toAdd.injective)
67
- change ht φ (p.1 * (v (p.2.headD root)) ^ (-ht φ p.1)) = 0
68
- simp only [ht_mul,ht_zpow,ht_generator φ v hv,mul_one,add_neg_cancel]⟩
69
- refine ⟨(g,s),?_⟩
70
- apply Prod.ext
71
- · change (p.1 * (v (p.2.headD root)) ^ (-ht φ p.1)) * (v (p.2.headD root)) ^ (ht φ p.1) = p.1
72
- rw [mul_assoc,← zpow_add,neg_add_cancel,zpow_zero,mul_one]
73
- · rfl
74
-
75
- def includeBasis (k : ℕ) : (φ.ker × Shape L k →₀ ℤ) →ₗ[ℤ] CubicalChains.Chains G A :=
76
- Finsupp.lmapDomain ℤ ℤ (basisIndex L φ v root k)
77
- @[simp] theorem includeBasis_single (k : ℕ) (p : φ.ker × Shape L k) (n : ℤ) :
78
- includeBasis L φ v root k (Finsupp.single p n) = Finsupp.single (basisIndex L φ v root k p) n := by
79
- simp [includeBasis]
80
- include hv in
81
- theorem includeBasis_injective (k : ℕ) : Function.Injective (includeBasis L φ v root k) :=
82
- Finsupp.mapDomain_injective (basisIndex_injective L φ v root hv k)
83
-
84
- include hv in
85
- theorem includeBasis_range (k : ℕ) : LinearMap.range (includeBasis L φ v root k) = crossing L (ht φ) k := by
86
- rw [includeBasis,Finsupp.range_lmapDomain,crossing,Finsupp.supported_eq_span_single]
87
- congr 1
88
- ext c
89
- constructor
90
- · rintro ⟨p,rfl⟩
91
- exact ⟨basisIndex L φ v root k p,basisIndex_mem L φ v root hv k p,rfl⟩
92
- · rintro ⟨p,hp,rfl⟩
93
- obtain ⟨q,rfl⟩ := exists_basisIndex L φ v root hv p hp
94
- exact ⟨q,rfl⟩
95
-
96
- variable (comm : ∀ a b, L.Adj a b → Commute (v a) (v b))
97
- include hv in
98
- def projectBasis (k : ℕ) : CubicalChains.Chains G A →ₗ[ℤ] (φ.ker × Shape L k →₀ ℤ) :=
99
- Finsupp.lcomapDomain (basisIndex L φ v root k) (basisIndex_injective L φ v root hv k)
100
-
101
- @[simp] theorem project_include (k : ℕ) (c : φ.ker × Shape L k →₀ ℤ) :
102
- projectBasis L φ v root hv k (includeBasis L φ v root k c) = c :=
103
- Finsupp.leftInverse_lcomapDomain_mapDomain _ _ c
104
-
105
- include hv in
106
- theorem include_project {k : ℕ} {c : CubicalChains.Chains G A} (hc : c ∈ crossing L (ht φ) k) :
107
- includeBasis L φ v root k (projectBasis L φ v root hv k c) = c := by
108
- rw [← includeBasis_range L φ v root hv k] at hc
109
- obtain ⟨d,rfl⟩ := hc
110
- rw [project_include]
111
-
112
- include hv in
113
- theorem includeBasis_mem (k : ℕ) (c : φ.ker × Shape L k →₀ ℤ) :
114
- includeBasis L φ v root k c ∈ crossing L (ht φ) k := by
115
- rw [← includeBasis_range L φ v root hv k]
116
- exact ⟨c,rfl⟩
117
-
118
- /-- The level edge parameter has precisely two directions and initial height -1. -/
119
- theorem shape_two_form (s : Shape L 2) : ∃ a b, s.val = ([a,b],-1) := by
120
- obtain ⟨a,b,hab⟩ := List.length_eq_two.mp s.property.2.1
121
- refine ⟨a,b,Prod.ext hab ?_⟩
122
- have hn := s.property.2.2.1
123
- have hm := s.property.2.2.2
124
- norm_num at hm
125
- omega
126
-
127
- def generator (s : Shape L 2) : φ.ker :=
128
- ⟨(v (s.val.1.headD root))⁻¹ * v (s.val.1.tail.headD root),by simp [hv]⟩
129
-
130
- def includeVertices : (φ.ker →₀ ℤ) →ₗ[ℤ] CubicalChains.Chains G A :=
131
- Finsupp.lmapDomain ℤ ℤ (fun g => (g.val,[]))
132
- omit [LinearOrder A] in
133
- @[simp] theorem includeVertices_single (g : φ.ker) (n : ℤ) :
134
- includeVertices (A := A) φ (Finsupp.single g n) = Finsupp.single (g.val,[]) n := by simp [includeVertices]
135
- omit [LinearOrder A] in
136
- theorem includeVertices_injective : Function.Injective (includeVertices (A := A) φ) := by
137
- apply Finsupp.mapDomain_injective
138
- intro p q he
139
- exact Subtype.ext (congrArg Prod.fst he)
140
-
141
- include hv in
142
- omit [LinearOrder A] in
143
- theorem boundary_square (g : G) (a b : A) (hab : Commute (v a) (v b))
144
- (hg : ht φ g = -1) :
145
- levelBoundary v (ht φ) (Finsupp.single (g,[a,b]) 1) =
146
- Finsupp.single (g*v b,[]) 1 - Finsupp.single (g*v a,[]) 1 := by
147
- have hga : ht φ (g * v a) = 0 := by rw [ht_step φ v hv,hg]; omega
148
- have hgb : ht φ (g * v b) = 0 := by rw [ht_step φ v hv,hg]; omega
149
- simp only [levelBoundary_apply,boundary_single,one_smul,boundaryTerm_cons,boundaryTerm_nil,
150
- map_zero,sub_zero,map_sub,front_single,plus,select_single,hga,hgb,hg]
151
- norm_num
152
- rw [mul_assoc,hab.eq,← mul_assoc]
153
- abel
154
-
155
-
156
- include hv comm in
157
- theorem levelBoundary_include_single (p : φ.ker × Shape L 2) :
158
- levelBoundary v (ht φ) (includeBasis L φ v root 2 (Finsupp.single p 1)) =
159
- includeVertices (A := A) φ (edgeBoundary (generator L φ v root hv) (Finsupp.single p 1)) := by
160
- rcases p with ⟨g,⟨⟨w,n⟩,hs⟩⟩
161
- obtain ⟨a,b,hw⟩ := List.length_eq_two.mp hs.2.1
162
- change w = [a,b] at hw
163
- subst w
164
- have hn : n = -1 := by have h₁ := hs.2.2.1; have h₂ := hs.2.2.2; norm_num at h₂; omega
165
- subst n
166
- have hab : L.Adj a b := (List.pairwise_cons.mp hs.1.2).1 b (by simp)
167
- rw [includeBasis_single]
168
- change levelBoundary v (ht φ) (Finsupp.single (g.val * (v a)^(-1 : ℤ),[a,b]) 1) = _
169
- rw [boundary_square φ v hv _ a b (comm a b hab) (by simp [ht_generator φ v hv])]
170
- simp only [edgeBoundary,Finsupp.linearCombination_single]
171
- simp only [zpow_neg_one,one_smul,map_sub,includeVertices_single,
172
- Subgroup.coe_mul,generator,List.headD_cons,List.tail_cons,mul_assoc,inv_mul_cancel,mul_one]
173
-
174
- include hv comm in
175
- theorem levelBoundary_include (c : φ.ker × Shape L 2 →₀ ℤ) :
176
- levelBoundary v (ht φ) (includeBasis L φ v root 2 c) =
177
- includeVertices (A := A) φ (edgeBoundary (generator L φ v root hv) c) := by
178
- induction c using Finsupp.induction_linear with
179
- | zero => simp
180
- | add c d hc hd => simp only [map_add,hc,hd]
181
- | single p n =>
182
- have he : Finsupp.single p n = n • Finsupp.single p (1 : ℤ) := by simp
183
- rw [he,map_smul,map_smul,map_smul,map_smul,levelBoundary_include_single L φ v root hv comm]
184
-
185
- /-- The literal based integral boundary of the crossing three-cubes. -/
186
- def triangleBoundary : (φ.ker × Shape L 3 →₀ ℤ) →ₗ[ℤ] (φ.ker × Shape L 2 →₀ ℤ) :=
187
- (projectBasis L φ v root hv 2).comp ((crossPart (ht φ)).comp ((boundary v).comp (includeBasis L φ v root 3)))
188
-
189
- include hv in
190
- theorem triangleBoundary_inclusion (c : φ.ker × Shape L 3 →₀ ℤ) :
191
- includeBasis L φ v root 2 (triangleBoundary L φ v root hv c) =
192
- crossPart (ht φ) (boundary v (includeBasis L φ v root 3 c)) := by
193
- apply include_project L φ v root hv
194
- exact crossPart_mem L (ht φ) (boundary_total L v (ht φ) (ht_step φ v hv)
195
- (crossing_total L (ht φ) (includeBasis_mem L φ v root hv 3 c)))
196
-
197
- include hv comm in
198
- theorem triangleBoundary_cycle (c : φ.ker × Shape L 3 →₀ ℤ) :
199
- triangleBoundary L φ v root hv c ∈ cycles (generator L φ v root hv) := by
200
- apply includeVertices_injective φ
201
- rw [map_zero,← levelBoundary_include L φ v root hv comm,triangleBoundary_inclusion L φ v root hv]
202
- exact levelBoundary_cross_boundary L v (ht φ) (ht_step φ v hv) comm (includeBasis_mem L φ v root hv 3 c)
203
-
204
- variable (K : SimplicialChains.Contraction L)
205
- variable (exactTotal : ∀ {k : ℕ}, 0 < k → ∀ c, c ∈ total (G := G) L k → boundary v c = 0 →
206
- ∃ b ∈ total (G := G) L (k+1), boundary v b = c)
207
- variable (dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3)
208
- include hv comm K exactTotal in
209
- theorem triangleBoundary_range : LinearMap.range (triangleBoundary L φ v root hv) =
210
- cycles (generator L φ v root hv) := by
211
- apply le_antisymm
212
- · rintro _ ⟨c,rfl⟩
213
- exact triangleBoundary_cycle L φ v root hv comm c
214
- · intro c hc
215
- have hz : levelBoundary v (ht φ) (includeBasis L φ v root 2 c) = 0 := by
216
- rw [levelBoundary_include L φ v root hv comm,LinearMap.mem_ker.mp hc,map_zero]
217
- obtain ⟨t,ht,hdt⟩ := level_cycle_bounds L v (ht φ) K (ht_step φ v hv) comm exactTotal
218
- _ (includeBasis_mem L φ v root hv 2 c) hz
219
- rw [← includeBasis_range L φ v root hv 3] at ht
220
- obtain ⟨b,rfl⟩ := ht
221
- refine ⟨b,includeBasis_injective L φ v root hv 2 ?_⟩
222
- rwa [triangleBoundary_inclusion L φ v root hv]
223
-
224
- include hv comm K exactTotal dim in
225
- theorem triangleBoundary_injective : Function.Injective (triangleBoundary L φ v root hv) := by
226
- suffices hz : ∀ c, triangleBoundary L φ v root hv c = 0 → c = 0 by
227
- intro c d he
228
- exact sub_eq_zero.mp (hz (c-d) (by simp only [map_sub,he,sub_self]))
229
- intro c hc
230
- apply includeBasis_injective L φ v root hv 3
231
- rw [map_zero]
232
- apply level_boundary_injective L v (ht φ) K (ht_step φ v hv) comm exactTotal dim
233
- _ (includeBasis_mem L φ v root hv 3 c)
234
- rw [← triangleBoundary_inclusion L φ v root hv,hc,map_zero]
235
-
236
-
237
- /-- Left translation on the actual ambient cube chains. -/
238
- def leftTranslate (g : G) : CubicalChains.Chains G A →ₗ[ℤ] CubicalChains.Chains G A :=
239
- Finsupp.lmapDomain ℤ ℤ (fun p => (g*p.1,p.2))
240
- omit [LinearOrder A] in
241
- @[simp] theorem leftTranslate_single (g q : G) (w : List A) (n : ℤ) :
242
- leftTranslate g (Finsupp.single (q,w) n) = Finsupp.single (g*q,w) n := by simp [leftTranslate]
243
- omit [LinearOrder A] in
244
- theorem leftTranslate_front (g : G) (a : A) (c : CubicalChains.Chains G A) :
245
- leftTranslate g (CubicalChains.front a c) = CubicalChains.front a (leftTranslate g c) := by
246
- induction c using Finsupp.induction_linear with
247
- | zero => simp
248
- | add c d hc hd => simp only [map_add,hc,hd]
249
- | single p n => rcases p with ⟨q,w⟩; simp
250
- omit [LinearOrder A] in
251
- theorem leftTranslate_boundaryTerm (g q : G) (w : List A) :
252
- leftTranslate g (boundaryTerm v q w) = boundaryTerm v (g*q) w := by
253
- induction w with
254
- | nil => simp
255
- | cons a w ih => simp only [boundaryTerm_cons,map_sub,leftTranslate_single,leftTranslate_front,ih,mul_assoc]
256
- omit [LinearOrder A] in
257
- theorem leftTranslate_boundary (g : G) (c : CubicalChains.Chains G A) :
258
- leftTranslate g (boundary v c) = boundary v (leftTranslate g c) := by
259
- induction c using Finsupp.induction_linear with
260
- | zero => simp
261
- | add c d hc hd => simp only [map_add,hc,hd]
262
- | single p n => rcases p with ⟨q,w⟩; simp [leftTranslate_boundaryTerm]
263
- omit [LinearOrder A] in
264
- theorem leftTranslate_crossPart (g : φ.ker) (c : CubicalChains.Chains G A) :
265
- leftTranslate g.val (crossPart (ht φ) c) = crossPart (ht φ) (leftTranslate g.val c) := by
266
- induction c using Finsupp.induction_linear with
267
- | zero => simp
268
- | add c d hc hd => simp only [map_add,hc,hd]
269
- | single p n =>
270
- rcases p with ⟨q,w⟩
271
- simp only [crossPart,select_single,leftTranslate_single,ht_mul,ht_ker,zero_add]
272
- split <;> simp_all
273
-
274
- theorem includeBasis_translate (k : ℕ) (g : φ.ker) (c : φ.ker × Shape L k →₀ ℤ) :
275
- includeBasis L φ v root k (translateChains g c) = leftTranslate g.val (includeBasis L φ v root k c) := by
276
- induction c using Finsupp.induction_linear with
277
- | zero => simp
278
- | add c d hc hd => simp only [map_add,hc,hd]
279
- | single p n =>
280
- rcases p with ⟨q,s⟩
281
- simp only [translateChains_single,includeBasis_single,leftTranslate_single,basisIndex,
282
- Subgroup.coe_mul,mul_assoc]
283
-
284
- include hv in
285
- theorem triangleBoundary_equivariant : ChainsEquivariant (triangleBoundary L φ v root hv) := by
286
- intro g c
287
- apply includeBasis_injective L φ v root hv 2
288
- rw [triangleBoundary_inclusion L φ v root hv,includeBasis_translate,
289
- ← leftTranslate_boundary,← leftTranslate_crossPart,includeBasis_translate,
290
- triangleBoundary_inclusion L φ v root hv]
291
-
292
- end EilenbergGanea.LevelBasis
293
-
294
- namespace EilenbergGanea.LevelBasis
295
- variable {V : Type} [LinearOrder V] (L : SimpleGraph V)
296
-
297
- def pairShape (a b : V) (hab : a < b) (hadj : L.Adj a b) : Shape L 2 :=
298
- ⟨([a,b],-1),by simp [SimplicialChains.Valid,hab,hadj]⟩
299
-
300
- @[simp] theorem generator_pair (root a b : V) (hab : a < b) (hadj : L.Adj a b) :
301
- (generator L (height L) (artinGenerator L) root (height_generator L)
302
- (pairShape L a b hab hadj)).val = (artinGenerator L a)⁻¹ * artinGenerator L b := rfl
303
-
304
- /-- The actual oriented crossing-square edges generate precisely the height kernel. -/
305
- theorem generator_surjective (hconn : L.Preconnected) (root : V) :
306
- Function.Surjective (FreeGroup.lift (generator L (height L) (artinGenerator L) root (height_generator L))) := by
307
- let f := FreeGroup.lift (generator L (height L) (artinGenerator L) root (height_generator L))
308
- let F := (height L).ker.subtype.comp f
309
- have hgen : edgeGenerated L ≤ F.range := by
310
- apply (Subgroup.closure_le _).mpr
311
- rintro x ⟨a,b,hadj,rfl⟩
312
- have hab : a ≠ b := L.ne_of_adj hadj
313
- rcases lt_or_gt_of_ne hab with hab | hab
314
- · refine ⟨(FreeGroup.of (pairShape L a b hab hadj))⁻¹,?_⟩
315
- change (f ((FreeGroup.of (pairShape L a b hab hadj))⁻¹)).val = _
316
- simp only [f,map_inv,FreeGroup.lift_apply_of,Subgroup.coe_inv,generator_pair,mul_inv_rev,inv_inv]
317
- exact (adjacent_generators_commute L hadj).inv_right.eq.symm
318
- · refine ⟨FreeGroup.of (pairShape L b a hab hadj.symm),?_⟩
319
- change (f (FreeGroup.of (pairShape L b a hab hadj.symm))).val = _
320
- simp only [f,FreeGroup.lift_apply_of,generator_pair]
321
- exact (adjacent_generators_commute L hadj).inv_right.eq.symm
322
- intro g
323
- have he : g.val ∈ edgeGenerated L := by rw [edgeGenerated_eq_height_kernel L hconn root]; exact g.property
324
- obtain ⟨w,hw⟩ := hgen he
325
- exact ⟨w,Subtype.ext hw⟩
326
-
327
- end EilenbergGanea.LevelBasis
328
-
329
- namespace EilenbergGanea.LevelBasis
330
- open CubicalChains CubicalChains.HeightFiltration
331
- variable {V : Type} [LinearOrder V] [Fintype V] [Nonempty V] (L : SimpleGraph V)
332
-
333
- /-- The exactness input to the level slicing is the actual RAAG cube-chain
334
- contraction, not an assumption about a classifying space. -/
335
- theorem artin_total_cycle_bounds {k : ℕ} (hk : 0 < k)
336
- (c : Chains (ArtinGroup L) V) (hc : c ∈ total (G := ArtinGroup L) L k)
337
- (hz : boundary (artinGenerator L) c = 0) :
338
- ∃ b ∈ total (G := ArtinGroup L) L (k+1), boundary (artinGenerator L) b = c := by
339
- have he : ∀ n, total (G := ArtinGroup L) L n = TraceWords.CubeDescents.positiveChains L n := by
340
- intro n
341
- simp only [total,TraceWords.CubeDescents.positiveChains,SimplicialChains.Valid,and_assoc]
342
- rw [he] at hc ⊢
343
- exact TraceWords.CubeDescents.positive_cycle_bounds L hk c hc hz
344
-
345
- /-- Integral cd at most two for the genuine height kernel, from a genuine
346
- finite augmented link contraction and the dimension of its flag complex. -/
347
- theorem artin_height_kernel_cd_le_two (root : V) (hconn : L.Preconnected)
348
- (K : SimplicialChains.Contraction L)
349
- (dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3) :
350
- cohomologicalDimension (height L).ker ≤ 2 := by
351
- exact projectiveDimension_le_two_of_boundary_basis
352
- (generator L (height L) (artinGenerator L) root (height_generator L))
353
- (generator_surjective L hconn root)
354
- (triangleBoundary L (height L) (artinGenerator L) root (height_generator L))
355
- (triangleBoundary_equivariant L (height L) (artinGenerator L) root (height_generator L))
356
- (triangleBoundary_injective L (height L) (artinGenerator L) root (height_generator L)
357
- (fun _ _ h => adjacent_generators_commute L h) K (artin_total_cycle_bounds L) dim)
358
- (triangleBoundary_range L (height L) (artinGenerator L) root (height_generator L)
359
- (fun _ _ h => adjacent_generators_commute L h) K (artin_total_cycle_bounds L))
360
- end EilenbergGanea.LevelBasis
361
- namespace EilenbergGanea.LevelBasis
362
- open CubicalChains CubicalChains.LevelExact CubicalChains.HeightFiltration
363
- variable {G A : Type} [Group G] [LinearOrder A]
364
- variable (L : SimpleGraph A) (φ : G →* Multiplicative ℤ) (v : A → G) (root : A)
365
- variable (hv : ∀ a, φ (v a) = Multiplicative.ofAdd (1 : ℤ))
366
- variable (comm : ∀ a b, L.Adj a b → Commute (v a) (v b))
367
-
368
- instance shape_finite [Fintype A] (k : ℕ) : Finite (Shape L k) := by
369
- let f : Shape L k → List.Vector A k × Fin k := fun s =>
370
- (⟨s.val.1,s.property.2.1⟩,⟨(-s.val.2).toNat,by
371
- have hn := s.property.2.2.1
372
- have hm := s.property.2.2.2
373
- omega⟩)
374
- apply Finite.of_injective f
375
- intro s t h
376
- apply Subtype.ext
377
- apply Prod.ext
378
- · exact congrArg (fun p : List.Vector A k × Fin k => p.1.val) h
379
- · have he := congrArg (fun p : List.Vector A k × Fin k => p.2.val) h
380
- have hs := s.property.2.2.1
381
- have ht := t.property.2.2.1
382
- dsimp [f] at he
383
- omega
384
-
385
- noncomputable instance shape_fintype [Fintype A] (k : ℕ) : Fintype (Shape L k) := Fintype.ofFinite _
386
-
387
- def edgeShape (a b : A) (hab : SimplicialChains.Valid L [a,b]) : Shape L 2 :=
388
- ⟨([a,b],-1),hab,rfl,by norm_num,by norm_num⟩
389
-
390
- def triangleShape (a b c : A) (habc : SimplicialChains.Valid L [a,b,c])
391
- (n : ℤ) (hn : n = -1 ∨ n = -2) : Shape L 3 :=
392
- ⟨([a,b,c],n),habc,rfl,by omega,by norm_num; omega⟩
393
-
394
- @[simp] theorem generator_edgeShape (a b : A) (hab : SimplicialChains.Valid L [a,b]) :
395
- (generator L φ v root hv (edgeShape L a b hab) : G) = (v a)⁻¹ * v b := rfl
396
-
397
- theorem valid_triangle_edges {a b c : A} (h : SimplicialChains.Valid L [a,b,c]) :
398
- SimplicialChains.Valid L [a,b] ∧ SimplicialChains.Valid L [a,c] ∧
399
- SimplicialChains.Valid L [b,c] := by
400
- simp [SimplicialChains.Valid] at h ⊢
401
- tauto
402
-
403
- include comm in
404
- theorem edge_values_compose (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) :
405
- ((v a)⁻¹ * v b) * ((v b)⁻¹ * v c) = (v a)⁻¹ * v c ∧
406
- ((v b)⁻¹ * v c) * ((v a)⁻¹ * v b) = (v a)⁻¹ * v c := by
407
- have he := valid_triangle_edges L h
408
- have ha : L.Adj a b := by simpa [SimplicialChains.Valid] using he.1.2
409
- have hb : L.Adj a c := by simpa [SimplicialChains.Valid] using he.2.1.2
410
- have hc : L.Adj b c := by simpa [SimplicialChains.Valid] using he.2.2.2
411
- constructor
412
- · group
413
- · calc
414
- ((v b)⁻¹ * v c) * ((v a)⁻¹ * v b) = (v a)⁻¹ * ((v b)⁻¹ * v c) * v b := by
415
- rw [← mul_assoc,
416
- ((comm a b ha).inv_left.inv_right.mul_right (comm a c hb).inv_left).symm.eq]
417
- _ = (v a)⁻¹ * v c := by
418
- rw [mul_assoc,mul_assoc,← (comm b c hc).eq,inv_mul_cancel_left]
419
-
420
- def lowerTriangleWord (ab ac bc : Shape L 2) : FreeGroup (Shape L 2) :=
421
- FreeGroup.of ac * (FreeGroup.of bc)⁻¹ * (FreeGroup.of ab)⁻¹
422
-
423
- def upperTriangleWord (ab ac bc : Shape L 2) : FreeGroup (Shape L 2) :=
424
- FreeGroup.of ab * (FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) *
425
- (FreeGroup.of ab)⁻¹
426
-
427
- include comm in
428
- theorem triangle_words_trivial (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) :
429
- let e := valid_triangle_edges L h
430
- let ab := edgeShape L a b e.1
431
- let ac := edgeShape L a c e.2.1
432
- let bc := edgeShape L b c e.2.2
433
- wordValue (generator L φ v root hv) (lowerTriangleWord L ab ac bc) = 1 ∧
434
- wordValue (generator L φ v root hv) (upperTriangleWord L ab ac bc) = 1 := by
435
- dsimp only
436
- have he := edge_values_compose L v comm a b c h
437
- constructor <;> apply Subtype.ext
438
- · simp only [lowerTriangleWord,map_mul,map_inv,wordValue,FreeGroup.lift_apply_of,
439
- Subgroup.coe_mul,Subgroup.coe_inv,generator_edgeShape,OneMemClass.coe_one]
440
- group
441
- · simp only [upperTriangleWord,map_mul,map_inv,wordValue,FreeGroup.lift_apply_of,
442
- Subgroup.coe_mul,Subgroup.coe_inv,generator_edgeShape,OneMemClass.coe_one]
443
- rw [he.2,mul_inv_cancel,mul_one,mul_inv_cancel]
444
-
445
- include hv in
446
- theorem triangle_boundary_low (g : φ.ker) (a b c : A)
447
- (h : SimplicialChains.Valid L [a,b,c]) :
448
- let e := valid_triangle_edges L h
449
- let ab := edgeShape L a b e.1
450
- let ac := edgeShape L a c e.2.1
451
- let bc := edgeShape L b c e.2.2
452
- triangleBoundary L φ v root hv
453
- (Finsupp.single (g,triangleShape L a b c h (-1) (Or.inl rfl)) 1) =
454
- Finsupp.single (g,ac) 1 - Finsupp.single (g,ab) 1 -
455
- Finsupp.single (g * generator L φ v root hv ab,bc) 1 := by
456
- dsimp only
457
- apply includeBasis_injective L φ v root hv 2
458
- rw [triangleBoundary_inclusion L φ v root hv]
459
- simp only [map_sub,includeBasis_single,basisIndex,triangleShape,edgeShape,
460
- List.headD_cons,zpow_neg_one,Subgroup.coe_mul,generator,List.tail_cons]
461
- simp only [boundary_single,one_smul,boundaryTerm_cons,boundaryTerm_nil,map_zero,
462
- sub_zero,map_sub,front_single,crossPart,select,Finsupp.linearCombination_single,
463
- ht_mul,ht_ker,ht_inv,ht_generator φ v hv,List.length_cons,List.length_nil]
464
- norm_num
465
- simp only [mul_assoc,mul_inv_cancel,mul_one]
466
- abel
467
-
468
- include hv comm in
469
- theorem triangle_boundary_high (g : φ.ker) (a b c : A)
470
- (h : SimplicialChains.Valid L [a,b,c]) :
471
- let e := valid_triangle_edges L h
472
- let ab := edgeShape L a b e.1
473
- let ac := edgeShape L a c e.2.1
474
- let bc := edgeShape L b c e.2.2
475
- triangleBoundary L φ v root hv
476
- (Finsupp.single (g,triangleShape L a b c h (-2) (Or.inr rfl)) 1) =
477
- Finsupp.single (g * generator L φ v root hv ab,bc) 1 -
478
- Finsupp.single (g * generator L φ v root hv ab,ac) 1 +
479
- Finsupp.single (g * generator L φ v root hv ac,ab) 1 := by
480
- dsimp only
481
- have eh := valid_triangle_edges L h
482
- have hab : L.Adj a b := by simpa [SimplicialChains.Valid] using eh.1.2
483
- have hac : L.Adj a c := by simpa [SimplicialChains.Valid] using eh.2.1.2
484
- apply includeBasis_injective L φ v root hv 2
485
- rw [triangleBoundary_inclusion L φ v root hv]
486
- simp only [map_sub,map_add,includeBasis_single,basisIndex,triangleShape,edgeShape,
487
- List.headD_cons,Subgroup.coe_mul,generator,List.tail_cons]
488
- simp only [boundary_single,one_smul,boundaryTerm_cons,boundaryTerm_nil,map_zero,
489
- sub_zero,map_sub,front_single,crossPart,select,map_sub,Finsupp.linearCombination_single,
490
- ht_mul,ht_ker,ht_zpow,ht_generator φ v hv,List.length_cons,List.length_nil]
491
- norm_num
492
- have hb : (v a)^(-2 : ℤ) * v b = (v a)⁻¹ * v b * (v a)⁻¹ := by
493
- calc
494
- (v a)^(-2 : ℤ) * v b = (v a)⁻¹ * ((v a)⁻¹ * v b) := by group
495
- _ = (v a)⁻¹ * (v b * (v a)⁻¹) := congrArg ((v a)⁻¹ * ·) (comm a b hab).inv_left.eq
496
- _ = _ := (mul_assoc _ _ _).symm
497
- have hc : (v a)^(-2 : ℤ) * v c = (v a)⁻¹ * v c * (v a)⁻¹ := by
498
- calc
499
- (v a)^(-2 : ℤ) * v c = (v a)⁻¹ * ((v a)⁻¹ * v c) := by group
500
- _ = (v a)⁻¹ * (v c * (v a)⁻¹) := congrArg ((v a)⁻¹ * ·) (comm a c hac).inv_left.eq
501
- _ = _ := (mul_assoc _ _ _).symm
502
- have ha : (v a)^(-2 : ℤ) * v a = (v a)⁻¹ := by group
503
- simp only [zpow_neg,zpow_ofNat] at ha hb hc
504
- simp only [mul_assoc] at hb hc
505
- simp only [mul_assoc,ha,hb,hc,mul_inv_cancel,mul_one]
506
- abel
507
-
508
- section WordChains
509
- variable (w : Shape L 2 → G) (ab ac bc : Shape L 2)
510
- theorem lowerTriangleWord_chain (habc : w ab * w bc = w ac) (g : G) :
511
- pathChain w (lowerTriangleWord L ab ac bc) g =
512
- Finsupp.single (g,ac) 1 - Finsupp.single (g,ab) 1 -
513
- Finsupp.single (g * w ab,bc) 1 := by
514
- simp only [lowerTriangleWord,pathChain_mul,pathChain_inv,pathChain_of,
515
- map_mul,map_inv,wordValue,FreeGroup.lift_apply_of]
516
- rw [← habc]
517
- simp only [mul_assoc,mul_inv_cancel,mul_one]
518
- abel
519
-
520
- theorem upperTriangleWord_chain (habc : w ab * w bc = w ac)
521
- (hbac : w bc * w ab = w ac) (g : G) :
522
- pathChain w (upperTriangleWord L ab ac bc) g =
523
- Finsupp.single (g * w ab,bc) 1 - Finsupp.single (g * w ab,ac) 1 +
524
- Finsupp.single (g * w ac,ab) 1 := by
525
- have hr : wordValue w (FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) = 1 := by
526
- simp only [wordValue,map_mul,map_inv,FreeGroup.lift_apply_of,hbac,mul_inv_cancel]
527
- rw [upperTriangleWord,pathChain_conjugate w _ _ hr]
528
- simp only [pathChain_mul,pathChain_inv,pathChain_of,map_mul,wordValue,
529
- FreeGroup.lift_apply_of]
530
- rw [hbac]
531
- simp only [mul_assoc,habc,mul_inv_cancel,mul_one]
532
- abel
533
- end WordChains
534
-
535
- include comm in
536
- theorem triangle_words_chain (g : φ.ker) (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) :
537
- let e := valid_triangle_edges L h
538
- let ab := edgeShape L a b e.1
539
- let ac := edgeShape L a c e.2.1
540
- let bc := edgeShape L b c e.2.2
541
- pathChain (generator L φ v root hv) (lowerTriangleWord L ab ac bc) g =
542
- triangleBoundary L φ v root hv
543
- (Finsupp.single (g,triangleShape L a b c h (-1) (Or.inl rfl)) 1) ∧
544
- pathChain (generator L φ v root hv) (upperTriangleWord L ab ac bc) g =
545
- triangleBoundary L φ v root hv
546
- (Finsupp.single (g,triangleShape L a b c h (-2) (Or.inr rfl)) 1) := by
547
- dsimp only
548
- have he := edge_values_compose L v comm a b c h
549
- have h₁ : generator L φ v root hv (edgeShape L a b (valid_triangle_edges L h).1) *
550
- generator L φ v root hv (edgeShape L b c (valid_triangle_edges L h).2.2) =
551
- generator L φ v root hv (edgeShape L a c (valid_triangle_edges L h).2.1) :=
552
- Subtype.ext he.1
553
- have h₂ : generator L φ v root hv (edgeShape L b c (valid_triangle_edges L h).2.2) *
554
- generator L φ v root hv (edgeShape L a b (valid_triangle_edges L h).1) =
555
- generator L φ v root hv (edgeShape L a c (valid_triangle_edges L h).2.1) :=
556
- Subtype.ext he.2
557
- constructor
558
- · rw [lowerTriangleWord_chain L _ _ _ _ h₁,triangle_boundary_low L φ v root hv]
559
- · rw [upperTriangleWord_chain L _ _ _ _ h₁ h₂,
560
- triangle_boundary_high L φ v root hv comm]
561
-
562
- def triangleWordList : (w : List A) → SimplicialChains.Valid L w → ℤ → FreeGroup (Shape L 2)
563
- | [a,b,c],h,n =>
564
- let e := valid_triangle_edges L h
565
- if n = -1 then
566
- lowerTriangleWord L (edgeShape L a b e.1) (edgeShape L a c e.2.1) (edgeShape L b c e.2.2)
567
- else upperTriangleWord L (edgeShape L a b e.1) (edgeShape L a c e.2.1) (edgeShape L b c e.2.2)
568
- | _,_,_ => 1
569
-
570
- def triangleWord (s : Shape L 3) : FreeGroup (Shape L 2) :=
571
- triangleWordList L s.val.1 s.property.1 s.val.2
572
-
573
- theorem shape_three_form (s : Shape L 3) :
574
- ∃ (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) (n : ℤ) (hn : n = -1 ∨ n = -2),
575
- s = triangleShape L a b c h n hn := by
576
- obtain ⟨a,b,c,hw⟩ := List.length_eq_three.mp s.property.2.1
577
- have hn : s.val.2 = -1 ∨ s.val.2 = -2 := by
578
- have h₁ := s.property.2.2.1
579
- have h₂ := s.property.2.2.2
580
- norm_num at h₂
581
- omega
582
- refine ⟨a,b,c,hw ▸ s.property.1,s.val.2,hn,?_⟩
583
- exact Subtype.ext (Prod.ext hw rfl)
584
-
585
- include comm in
586
- theorem triangleWord_trivial (s : Shape L 3) :
587
- wordValue (generator L φ v root hv) (triangleWord L s) = 1 := by
588
- obtain ⟨a,b,c,h,n,hn,rfl⟩ := shape_three_form L s
589
- rcases hn with rfl | rfl
590
- · simpa [triangleWord,triangleWordList,triangleShape] using
591
- (triangle_words_trivial L φ v root hv comm a b c h).1
592
- · simpa [triangleWord,triangleWordList,triangleShape] using
593
- (triangle_words_trivial L φ v root hv comm a b c h).2
594
-
595
- include comm in
596
- theorem triangleWord_chain (s : Shape L 3) (g : φ.ker) :
597
- pathChain (generator L φ v root hv) (triangleWord L s) g =
598
- triangleBoundary L φ v root hv (Finsupp.single (g,s) 1) := by
599
- obtain ⟨a,b,c,h,n,hn,rfl⟩ := shape_three_form L s
600
- rcases hn with rfl | rfl
601
- · simpa [triangleWord,triangleWordList,triangleShape] using
602
- (triangle_words_chain L φ v root hv comm g a b c h).1
603
- · simpa [triangleWord,triangleWordList,triangleShape] using
604
- (triangle_words_chain L φ v root hv comm g a b c h).2
605
-
606
- end EilenbergGanea.LevelBasis
607
- namespace EilenbergGanea.LevelBasis
608
- open CubicalChains CubicalChains.HeightFiltration
609
- variable {G A : Type} [Group G] [LinearOrder A]
610
- variable (L : SimpleGraph A) (φ : G →* Multiplicative ℤ) (v : A → G) (root : A)
611
- variable (hv : ∀ a, φ (v a) = Multiplicative.ofAdd (1 : ℤ))
612
- variable (comm : ∀ a b, L.Adj a b → Commute (v a) (v b))
613
-
614
- include comm in
615
- theorem triangleBoundary_eq_relatorChainMap :
616
- triangleBoundary L φ v root hv =
617
- relatorChainMap (generator L φ v root hv) (triangleWord L) := by
618
- apply Finsupp.lhom_ext'
619
- intro p
620
- apply LinearMap.ext
621
- intro n
622
- simp only [LinearMap.coe_comp,Function.comp_apply,Finsupp.lsingle_apply,
623
- relatorChainMap,Finsupp.linearCombination_single]
624
- have he : Finsupp.single p n = n • Finsupp.single p (1 : ℤ) := by simp
625
- rw [he,map_smul,← triangleWord_chain L φ v root hv comm p.2 p.1]
626
-
627
- variable (K : SimplicialChains.Contraction L)
628
- variable (exactTotal : ∀ {k : ℕ}, 0 < k → ∀ c, c ∈ total (G := G) L k → boundary v c = 0 →
629
- ∃ b ∈ total (G := G) L (k+1), boundary v b = c)
630
- variable (dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3)
631
-
632
- noncomputable def triangleBasis : (φ.ker × Shape L 3 →₀ ℤ) ≃ₗ[ℤ]
633
- cycles (generator L φ v root hv) :=
634
- LinearEquiv.ofBijective
635
- ((triangleBoundary L φ v root hv).codRestrict (cycles (generator L φ v root hv))
636
- (triangleBoundary_cycle L φ v root hv comm))
637
- ⟨fun c d h => triangleBoundary_injective L φ v root hv comm K exactTotal dim
638
- (congrArg Subtype.val h),fun c => by
639
- have hc : c.val ∈ LinearMap.range (triangleBoundary L φ v root hv) := by
640
- rw [triangleBoundary_range L φ v root hv comm K exactTotal]
641
- exact c.property
642
- obtain ⟨b,hb⟩ := hc
643
- exact ⟨b,Subtype.ext hb⟩⟩
644
-
645
- theorem triangleBasis_value (c : φ.ker × Shape L 3 →₀ ℤ) :
646
- (triangleBasis L φ v root hv comm K exactTotal dim c : φ.ker × Shape L 2 →₀ ℤ) =
647
- relatorChainMap (generator L φ v root hv) (triangleWord L) c := by
648
- change triangleBoundary L φ v root hv c = _
649
- rw [triangleBoundary_eq_relatorChainMap L φ v root hv comm]
650
-
651
- end EilenbergGanea.LevelBasis
652
- namespace EilenbergGanea.LevelBasis
653
- open LevelTransport
654
- variable {V : Type} [LinearOrder V] (L : SimpleGraph V) (root : V) (N : ℕ)
655
-
656
- noncomputable def levelEquiv : (height L).ker ≃ NegativeLevel L N where
657
- toFun := fun g => ⟨(artinGenerator L root)⁻¹ ^ N * g.val,by
658
- simp only [map_mul,map_pow,map_inv,height_generator]
659
- rw [show height L g.val = 1 from g.property,mul_one]
660
- change N • (-1 : ℤ) = -(N : ℤ)
661
- simp⟩
662
- invFun := fun g => ⟨artinGenerator L root ^ N * g.val,by
663
- change (height L (artinGenerator L root ^ N * g.val)).toAdd = 0
664
- simp only [map_mul,map_pow,height_generator]
665
- change N • (1 : ℤ) + (height L g.val).toAdd = 0
666
- rw [g.property]
667
- simp⟩
668
- left_inv := fun g => Subtype.ext (by dsimp; group)
669
- right_inv := fun g => Subtype.ext (by dsimp; group)
670
-
671
- def basedLabel (a : NegativeLevel L N → V → V → SU2)
672
- (g : (height L).ker) (s : Shape L 2) : SU2 :=
673
- a (levelEquiv L root N g) (s.val.1.tail.headD root) (s.val.1.headD root)
674
-
675
- @[simp] theorem basedLabel_edge (a : NegativeLevel L N → V → V → SU2)
676
- (g : (height L).ker) (q r : V) (h : SimplicialChains.Valid L [q,r]) :
677
- basedLabel L root N a g (edgeShape L q r h) = a (levelEquiv L root N g) r q := rfl
678
-
679
- theorem levelEquiv_edge (g : (height L).ker) (q r : V)
680
- (h : SimplicialChains.Valid L [q,r]) :
681
- levelEquiv L root N
682
- (g * generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h)) =
683
- edgeVertex L N (levelEquiv L root N g) r q := by
684
- have ha : L.Adj q r := by simpa [SimplicialChains.Valid] using h.2
685
- apply Subtype.ext
686
- simp only [levelEquiv,Equiv.coe_fn_mk,Subgroup.coe_mul,generator_edgeShape,edgeVertex]
687
- rw [mul_assoc, (adjacent_generators_commute L ha).inv_left.eq]
688
- group
689
-
690
- theorem shape_two_presentation (s : Shape L 2) :
691
- ∃ (q r : V) (h : SimplicialChains.Valid L [q,r]), s = edgeShape L q r h := by
692
- obtain ⟨q,r,hw⟩ := List.length_eq_two.mp s.property.2.1
693
- have hn : s.val.2 = -1 := by
694
- have h₁ := s.property.2.2.1
695
- have h₂ := s.property.2.2.2
696
- norm_num at h₂
697
- omega
698
- refine ⟨q,r,hw ▸ s.property.1,?_⟩
699
- exact Subtype.ext (Prod.ext hw hn)
700
-
701
- theorem levelEquiv_edge_inv (g : (height L).ker) (q r : V)
702
- (h : SimplicialChains.Valid L [q,r]) :
703
- levelEquiv L root N
704
- (g * (generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h))⁻¹) =
705
- edgeVertex L N (levelEquiv L root N g) q r := by
706
- have he := levelEquiv_edge L root N
707
- (g * (generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h))⁻¹)
708
- q r h
709
- simp only [inv_mul_cancel_right] at he
710
- simpa only [edgeVertex_reverse] using congrArg (fun x => edgeVertex L N x q r) he.symm
711
-
712
- variable (a : NegativeLevel L N → V → V → SU2)
713
- variable (rev : ∀ g q r, a (edgeVertex L N g q r) r q = (a g q r)⁻¹)
714
- include rev in
715
- theorem basedLabel_inv_edge (g : (height L).ker) (q r : V)
716
- (h : SimplicialChains.Valid L [q,r]) :
717
- (basedLabel L root N a
718
- (g * (generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h))⁻¹)
719
- (edgeShape L q r h))⁻¹ = a (levelEquiv L root N g) q r := by
720
- rw [basedLabel_edge,levelEquiv_edge_inv,rev,inv_inv]
721
-
722
- def orientedWord (q r : V) (h : L.Adj q r) : FreeGroup (Shape L 2) :=
723
- if hlt : q < r then
724
- (FreeGroup.of (edgeShape L q r (by simpa [SimplicialChains.Valid] using And.intro hlt h)))⁻¹
725
- else
726
- FreeGroup.of (edgeShape L r q (by
727
- have hlt' : r < q := lt_of_le_of_ne (le_of_not_gt hlt) (Ne.symm (L.ne_of_adj h))
728
- simpa [SimplicialChains.Valid] using And.intro hlt' h.symm))
729
-
730
- theorem orientedWord_value (q r : V) (h : L.Adj q r) :
731
- (wordValue (generator L (height L) (artinGenerator L) root (height_generator L))
732
- (orientedWord L q r h) : ArtinGroup L) =
733
- artinGenerator L q * (artinGenerator L r)⁻¹ := by
734
- unfold orientedWord
735
- split_ifs
736
- · simp only [map_inv,wordValue,FreeGroup.lift_apply_of,Subgroup.coe_inv,generator_edgeShape,
737
- mul_inv_rev,inv_inv]
738
- exact (adjacent_generators_commute L h).inv_right.symm.eq
739
- · simp only [wordValue,FreeGroup.lift_apply_of,generator_edgeShape]
740
- exact (adjacent_generators_commute L h).inv_right.symm.eq
741
-
742
- theorem levelEquiv_orientedWord (g : (height L).ker) (q r : V) (h : L.Adj q r) :
743
- levelEquiv L root N
744
- (g * wordValue (generator L (height L) (artinGenerator L) root (height_generator L))
745
- (orientedWord L q r h)) = edgeVertex L N (levelEquiv L root N g) q r := by
746
- apply Subtype.ext
747
- simp only [levelEquiv,Equiv.coe_fn_mk,Subgroup.coe_mul,orientedWord_value,edgeVertex,mul_assoc]
748
-
749
- include rev in
750
- theorem orientedWord_product (g : (height L).ker) (q r : V) (h : L.Adj q r) :
751
- pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
752
- (basedLabel L root N a) (orientedWord L q r h) g = a (levelEquiv L root N g) q r := by
753
- unfold orientedWord
754
- split_ifs
755
- · simp only [pathProduct_inv,pathProduct_of,wordValue,FreeGroup.lift_apply_of]
756
- exact basedLabel_inv_edge L root N a rev g q r _
757
- · exact pathProduct_of _ _ _ _
758
-
759
-
760
- include rev in
761
- theorem inverse_edgeWord_product (g : (height L).ker) (q r : V)
762
- (h : SimplicialChains.Valid L [q,r]) :
763
- pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
764
- (basedLabel L root N a) (FreeGroup.of (edgeShape L q r h))⁻¹ g =
765
- a (levelEquiv L root N g) q r := by
766
- simp only [pathProduct_inv,pathProduct_of,wordValue,FreeGroup.lift_apply_of]
767
- exact basedLabel_inv_edge L root N a rev g q r h
768
-
769
- variable (tri : ∀ g₀ g₁ g₂ q₀ r₀ q₁ r₁ q₂ r₂,
770
- edgeVertex L N g₀ q₀ r₀ = g₁ → edgeVertex L N g₁ q₁ r₁ = g₂ →
771
- edgeVertex L N g₂ q₂ r₂ = g₀ → a g₀ q₀ r₀ * a g₁ q₁ r₁ * a g₂ q₂ r₂ = 1)
772
-
773
- include rev tri in
774
- theorem lowerTriangleWord_product (g : (height L).ker) (q r s : V)
775
- (h : SimplicialChains.Valid L [q,r,s]) :
776
- let e := valid_triangle_edges L h
777
- pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
778
- (basedLabel L root N a)
779
- (lowerTriangleWord L (edgeShape L q r e.1) (edgeShape L q s e.2.1)
780
- (edgeShape L r s e.2.2)) g = 1 := by
781
- let gen := generator L (height L) (artinGenerator L) root (height_generator L)
782
- let e := valid_triangle_edges L h
783
- let ab := edgeShape L q r e.1
784
- let ac := edgeShape L q s e.2.1
785
- let bc := edgeShape L r s e.2.2
786
- have he : gen ab * gen bc = gen ac :=
787
- Subtype.ext (edge_values_compose L (artinGenerator L)
788
- (fun _ _ hh => adjacent_generators_commute L hh) q r s h).1
789
- have hc : gen ac * (gen bc)⁻¹ = gen ab := by rw [← he]; group
790
- have hc' : g * gen ac * (gen bc)⁻¹ = g * gen ab := by rw [mul_assoc,hc]
791
- have ha : g * gen ab * (gen ab)⁻¹ = g := by group
792
- have T := tri (levelEquiv L root N g) (levelEquiv L root N (g * gen ac))
793
- (levelEquiv L root N (g * gen ab)) s q r s q r
794
- (levelEquiv_edge L root N g q s e.2.1).symm
795
- (by rw [← levelEquiv_edge_inv L root N (g * gen ac) r s e.2.2]; exact congrArg _ hc')
796
- (by rw [← levelEquiv_edge_inv L root N (g * gen ab) q r e.1]; exact congrArg _ ha)
797
- change pathProduct gen (basedLabel L root N a) (lowerTriangleWord L ab ac bc) g = 1
798
- simp only [lowerTriangleWord,pathProduct_mul,pathProduct_of,map_mul,map_inv,
799
- wordValue,FreeGroup.lift_apply_of]
800
- rw [hc]
801
- rw [inverse_edgeWord_product L root N a rev _ r s e.2.2,
802
- inverse_edgeWord_product L root N a rev _ q r e.1]
803
- exact T
804
-
805
- include rev tri in
806
- theorem upperInnerWord_product (g : (height L).ker) (q r s : V)
807
- (h : SimplicialChains.Valid L [q,r,s]) :
808
- let e := valid_triangle_edges L h
809
- pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
810
- (basedLabel L root N a)
811
- (FreeGroup.of (edgeShape L r s e.2.2) * FreeGroup.of (edgeShape L q r e.1) *
812
- (FreeGroup.of (edgeShape L q s e.2.1))⁻¹) g = 1 := by
813
- let gen := generator L (height L) (artinGenerator L) root (height_generator L)
814
- let e := valid_triangle_edges L h
815
- let ab := edgeShape L q r e.1
816
- let ac := edgeShape L q s e.2.1
817
- let bc := edgeShape L r s e.2.2
818
- have he : gen bc * gen ab = gen ac :=
819
- Subtype.ext (edge_values_compose L (artinGenerator L)
820
- (fun _ _ hh => adjacent_generators_commute L hh) q r s h).2
821
- have hc : g * gen bc * gen ab = g * gen ac := by rw [mul_assoc,he]
822
- have ha : g * gen ac * (gen ac)⁻¹ = g := by group
823
- have T := tri (levelEquiv L root N g) (levelEquiv L root N (g * gen bc))
824
- (levelEquiv L root N (g * gen ac)) s r r q q s
825
- (levelEquiv_edge L root N g r s e.2.2).symm
826
- (by rw [← levelEquiv_edge L root N (g * gen bc) q r e.1]; exact congrArg _ hc)
827
- (by rw [← levelEquiv_edge_inv L root N (g * gen ac) q s e.2.1]; exact congrArg _ ha)
828
- change pathProduct gen (basedLabel L root N a)
829
- (FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) g = 1
830
- simp only [pathProduct_mul,pathProduct_of,map_mul,wordValue,FreeGroup.lift_apply_of]
831
- rw [he,inverse_edgeWord_product L root N a rev _ q s e.2.1]
832
- exact T
833
-
834
- include rev tri in
835
- theorem upperTriangleWord_product (g : (height L).ker) (q r s : V)
836
- (h : SimplicialChains.Valid L [q,r,s]) :
837
- let e := valid_triangle_edges L h
838
- pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
839
- (basedLabel L root N a)
840
- (upperTriangleWord L (edgeShape L q r e.1) (edgeShape L q s e.2.1)
841
- (edgeShape L r s e.2.2)) g = 1 := by
842
- let gen := generator L (height L) (artinGenerator L) root (height_generator L)
843
- let e := valid_triangle_edges L h
844
- let ab := edgeShape L q r e.1
845
- let ac := edgeShape L q s e.2.1
846
- let bc := edgeShape L r s e.2.2
847
- have he : gen bc * gen ab = gen ac :=
848
- Subtype.ext (edge_values_compose L (artinGenerator L)
849
- (fun _ _ hh => adjacent_generators_commute L hh) q r s h).2
850
- have hr : wordValue gen (FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) = 1 := by
851
- simp only [map_mul,map_inv,wordValue,FreeGroup.lift_apply_of,he,mul_inv_cancel]
852
- change pathProduct gen (basedLabel L root N a) (upperTriangleWord L ab ac bc) g = 1
853
- rw [upperTriangleWord,pathProduct_conjugate_loop gen _ _ _ hr]
854
- rw [upperInnerWord_product L root N a rev tri _ q r s h]
855
- group
856
-
857
- include rev tri in
858
- theorem triangleWord_product (s : Shape L 3) (g : (height L).ker) :
859
- pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
860
- (basedLabel L root N a) (triangleWord L s) g = 1 := by
861
- obtain ⟨q,r,t,h,n,hn,rfl⟩ := shape_three_form L s
862
- rcases hn with rfl | rfl
863
- · simpa [triangleWord,triangleWordList,triangleShape] using
864
- lowerTriangleWord_product L root N a rev tri g q r t h
865
- · simpa [triangleWord,triangleWordList,triangleShape] using
866
- upperTriangleWord_product L root N a rev tri g q r t h
867
-
868
-
869
- variable {L N}
870
- def walkWord {g k : NegativeLevel L N} : Walk L N g k → FreeGroup (Shape L 2)
871
- | .nil _ => 1
872
- | .cons q r h p => orientedWord L q r h * walkWord p
873
-
874
- theorem walkWord_endpoint {g k : NegativeLevel L N} (p : Walk L N g k)
875
- (x : (height L).ker) (hx : levelEquiv L root N x = g) :
876
- levelEquiv L root N
877
- (x * wordValue (generator L (height L) (artinGenerator L) root (height_generator L))
878
- (walkWord p)) = k := by
879
- induction p generalizing x with
880
- | nil g => simpa [walkWord] using hx
881
- | @cons g k q r h p ih =>
882
- simp only [walkWord,map_mul,← mul_assoc]
883
- exact ih _ ((levelEquiv_orientedWord L root N x q r h).trans
884
- (congrArg (fun t => edgeVertex L N t q r) hx))
885
-
886
- include rev in
887
- theorem walkWord_product {g k : NegativeLevel L N} (p : Walk L N g k)
888
- (x : (height L).ker) (hx : levelEquiv L root N x = g) :
889
- pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
890
- (basedLabel L root N a) (walkWord p) x = p.eval a := by
891
- induction p generalizing x with
892
- | nil g => simp [walkWord,Walk.eval]
893
- | @cons g k q r h p ih =>
894
- rw [walkWord,pathProduct_mul,orientedWord_product L root N a rev x q r h]
895
- rw [ih _ ((levelEquiv_orientedWord L root N x q r h).trans
896
- (congrArg (fun t => edgeVertex L N t q r) hx)),hx]
897
- rfl
898
-
899
- include rev in
900
- theorem nontrivial_word_of_walk {g : NegativeLevel L N} (p : Walk L N g g)
901
- (hp : p.eval a ≠ 1) :
902
- ∃ (w : FreeGroup (Shape L 2)) (x : (height L).ker),
903
- wordValue (generator L (height L) (artinGenerator L) root (height_generator L)) w = 1 ∧
904
- pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
905
- (basedLabel L root N a) w x ≠ 1 := by
906
- let x := (levelEquiv L root N).symm g
907
- have hx : levelEquiv L root N x = g := (levelEquiv L root N).apply_symm_apply g
908
- refine ⟨walkWord p,x,?_,?_⟩
909
- · have he := walkWord_endpoint root p x hx
910
- have he' := (levelEquiv L root N).injective (he.trans hx.symm)
911
- exact mul_left_cancel (he'.trans (mul_one x).symm)
912
- · rwa [walkWord_product root a rev p x hx]
913
-
914
- end EilenbergGanea.LevelBasis
915
-
916
- namespace EilenbergGanea.LevelBasis
917
- open LevelTransport
918
- variable {V : Type} [LinearOrder V] [Fintype V] [Nonempty V] (L : SimpleGraph V)
919
- variable [Group.ResiduallyFinite (height L).ker]
920
- variable (root : V) (hconn : L.Preconnected)
921
- variable (K : SimplicialChains.Contraction L)
922
- variable (dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3)
923
-
924
- include root hconn K dim in
925
- /-- The source obstruction's algebraic endpoint, with no cardinal bound on
926
- an alleged presentation. Its geometric premise must still be derived from an
927
- ordinary two-dimensional classifying CW space. -/
928
- theorem no_boundary_basis_presentation
929
- (small : ∀ ε : ℝ, 0 < ε →
930
- ∃ N : ℕ, 1 < N ∧ ∃ a : NegativeLevel L N → V → V → SU2,
931
- (∀ g q r, a (edgeVertex L N g q r) r q = (a g q r)⁻¹) ∧
932
- (∀ g q r, dist (a g q r) 1 < ε) ∧
933
- (∀ g₀ g₁ g₂ q₀ r₀ q₁ r₁ q₂ r₂,
934
- edgeVertex L N g₀ q₀ r₀ = g₁ →
935
- edgeVertex L N g₁ q₁ r₁ = g₂ →
936
- edgeVertex L N g₂ q₂ r₂ = g₀ →
937
- a g₀ q₀ r₀ * a g₁ q₁ r₁ * a g₂ q₂ r₂ = 1) ∧
938
- ∃ (g : NegativeLevel L N) (p : Walk L N g g), p.eval a ≠ 1)
939
- {A R : Type*} (a₀ : A → (height L).ker)
940
- (ha₀ : Function.Surjective (wordValue a₀))
941
- (r₀ : R → FreeGroup A) (hr₀ : ∀ i, wordValue a₀ (r₀ i) = 1)
942
- (hp₀ : (wordValue a₀).ker = Subgroup.normalClosure (Set.range r₀))
943
- (E : BasedChains (height L).ker R ≃ₗ[ℤ] cycles a₀)
944
- (hE : ∀ c, (E c : BasedChains (height L).ker A) = relatorChainMap a₀ r₀ c) : False := by
945
- let gen := generator L (height L) (artinGenerator L) root (height_generator L)
946
- let comm := fun q r h => @adjacent_generators_commute V L q r h
947
- let B := triangleBasis L (height L) (artinGenerator L) root (height_generator L)
948
- comm K (artin_total_cycle_bounds L) dim
949
- obtain ⟨η,hη,hηa⟩ := boundary_basis_small_transport gen
950
- (generator_surjective L hconn root) (triangleWord L)
951
- (triangleWord_trivial L (height L) (artinGenerator L) root (height_generator L) comm)
952
- B (triangleBasis_value L (height L) (artinGenerator L) root (height_generator L)
953
- comm K (artin_total_cycle_bounds L) dim) a₀ ha₀ r₀ hr₀ hp₀ E hE
954
- obtain ⟨N,_,a,ha,hb,ht,g,p,hp⟩ := small η hη
955
- obtain ⟨w,x,hw,hx⟩ := nontrivial_word_of_walk root a ha p hp
956
- apply hx
957
- exact hηa (basedLabel L root N a)
958
- (fun x s => by
959
- simpa only [basedLabel,Subtype.dist_eq,dist_eq_norm,OneMemClass.coe_one] using
960
- hb (levelEquiv L root N x) (s.val.1.tail.headD root) (s.val.1.headD root))
961
- (triangleWord_product L root N a ha ht) w hw x
962
-
963
- end EilenbergGanea.LevelBasis
964
-
965
-
966
- end
967
-
968
- end OAI
 
1
+ import OAI.AlgebraicTopology.Cubical.HeightChains
2
+ import OAI.Topology.EilenbergGanea.IntegralModules
3
+ import OAI.Topology.EilenbergGanea.LevelTransport
4
+
5
+ namespace OAI
6
+
7
+ noncomputable section
8
+
9
+ open Classical Set Filter Topology MeasureTheory
10
+ open scoped Quaternion ContDiff
11
+
12
+ namespace EilenbergGanea.LevelBasis
13
+ open CubicalChains CubicalChains.LevelExact CubicalChains.HeightFiltration
14
+ variable {G A : Type} [Group G] [LinearOrder A]
15
+ variable (L : SimpleGraph A) (φ : G →* Multiplicative ℤ) (v : A → G) (root : A)
16
+ def ht (g : G) : ℤ := (φ g).toAdd
17
+ @[simp] theorem ht_mul (g q : G) : ht φ (g*q) = ht φ g + ht φ q := by simp [ht]
18
+ @[simp] theorem ht_one : ht φ 1 = 0 := by simp [ht]
19
+ @[simp] theorem ht_inv (g : G) : ht φ g⁻¹ = -ht φ g := by simp [ht]
20
+ @[simp] theorem ht_zpow (g : G) (n : ℤ) : ht φ (g^n) = n * ht φ g := by simp [ht]
21
+ @[simp] theorem ht_ker (g : φ.ker) : ht φ g = 0 := by simp [ht,MonoidHom.mem_ker.mp g.property]
22
+ variable (hv : ∀ a, φ (v a) = Multiplicative.ofAdd (1 : ℤ))
23
+ include hv in
24
+ omit [LinearOrder A] in
25
+ @[simp] theorem ht_generator (a : A) : ht φ (v a) = 1 := by simp [ht,hv]
26
+ include hv in
27
+ omit [LinearOrder A] in
28
+ theorem ht_step (g : G) (a : A) : ht φ (g * v a) = ht φ g + 1 := by simp [ht_generator φ v hv]
29
+
30
+ def Shape (k : ℕ) := {p : List A × ℤ // SimplicialChains.Valid L p.1 ∧ p.1.length = k ∧
31
+ p.2 < 0 ∧ 0 < p.2 + (k : ℤ)}
32
+ def basisIndex (k : ℕ) (p : φ.ker × Shape L k) : G × List A :=
33
+ (p.1.val * (v (p.2.val.1.headD root)) ^ p.2.val.2,p.2.val.1)
34
+
35
+ include hv in
36
+ theorem basisIndex_height (k : ℕ) (p : φ.ker × Shape L k) :
37
+ ht φ (basisIndex L φ v root k p).1 = p.2.val.2 := by
38
+ simp only [basisIndex,ht_mul,ht_ker,ht_zpow,ht_generator φ v hv,mul_one,zero_add]
39
+
40
+ include hv in
41
+ theorem basisIndex_injective (k : ℕ) : Function.Injective (basisIndex L φ v root k) := by
42
+ intro p q he
43
+ have hw : p.2.val.1 = q.2.val.1 := congrArg Prod.snd he
44
+ have hh := congrArg (fun x => ht φ x.1) he
45
+ rw [basisIndex_height L φ v root hv,basisIndex_height L φ v root hv] at hh
46
+ have hs : p.2 = q.2 := Subtype.ext (Prod.ext hw hh)
47
+ have hg := congrArg Prod.fst he
48
+ simp only [basisIndex,hs] at hg
49
+ exact Prod.ext (Subtype.ext (mul_right_cancel hg)) hs
50
+
51
+ include hv in
52
+ theorem basisIndex_mem (k : ℕ) (p : φ.ker × Shape L k) :
53
+ SimplicialChains.Valid L (basisIndex L φ v root k p).2 ∧
54
+ (basisIndex L φ v root k p).2.length = k ∧
55
+ ht φ (basisIndex L φ v root k p).1 < 0 ∧
56
+ 0 < ht φ (basisIndex L φ v root k p).1 + (k : ℤ) := by
57
+ rw [basisIndex_height L φ v root hv]
58
+ exact p.2.property
59
+
60
+ include hv in
61
+ theorem exists_basisIndex {k : ℕ} (p : G × List A)
62
+ (hp : SimplicialChains.Valid L p.2 ∧ p.2.length = k ∧ ht φ p.1 < 0 ∧ 0 < ht φ p.1 + (k : ℤ)) :
63
+ ∃ q : φ.ker × Shape L k, basisIndex L φ v root k q = p := by
64
+ let s : Shape L k := ⟨(p.2,ht φ p.1),hp⟩
65
+ let g : φ.ker := ⟨p.1 * (v (p.2.headD root)) ^ (-ht φ p.1),by
66
+ apply (Multiplicative.toAdd.injective)
67
+ change ht φ (p.1 * (v (p.2.headD root)) ^ (-ht φ p.1)) = 0
68
+ simp only [ht_mul,ht_zpow,ht_generator φ v hv,mul_one,add_neg_cancel]⟩
69
+ refine ⟨(g,s),?_⟩
70
+ apply Prod.ext
71
+ · change (p.1 * (v (p.2.headD root)) ^ (-ht φ p.1)) * (v (p.2.headD root)) ^ (ht φ p.1) = p.1
72
+ rw [mul_assoc,← zpow_add,neg_add_cancel,zpow_zero,mul_one]
73
+ · rfl
74
+
75
+ def includeBasis (k : ℕ) : (φ.ker × Shape L k →₀ ℤ) →ₗ[ℤ] CubicalChains.Chains G A :=
76
+ Finsupp.lmapDomain ℤ ℤ (basisIndex L φ v root k)
77
+ @[simp] theorem includeBasis_single (k : ℕ) (p : φ.ker × Shape L k) (n : ℤ) :
78
+ includeBasis L φ v root k (Finsupp.single p n) = Finsupp.single (basisIndex L φ v root k p) n := by
79
+ simp [includeBasis]
80
+ include hv in
81
+ theorem includeBasis_injective (k : ℕ) : Function.Injective (includeBasis L φ v root k) :=
82
+ Finsupp.mapDomain_injective (basisIndex_injective L φ v root hv k)
83
+
84
+ include hv in
85
+ theorem includeBasis_range (k : ℕ) : LinearMap.range (includeBasis L φ v root k) = crossing L (ht φ) k := by
86
+ rw [includeBasis,Finsupp.range_lmapDomain,crossing,Finsupp.supported_eq_span_single]
87
+ congr 1
88
+ ext c
89
+ constructor
90
+ · rintro ⟨p,rfl⟩
91
+ exact ⟨basisIndex L φ v root k p,basisIndex_mem L φ v root hv k p,rfl⟩
92
+ · rintro ⟨p,hp,rfl⟩
93
+ obtain ⟨q,rfl⟩ := exists_basisIndex L φ v root hv p hp
94
+ exact ⟨q,rfl⟩
95
+
96
+ variable (comm : ∀ a b, L.Adj a b → Commute (v a) (v b))
97
+ include hv in
98
+ def projectBasis (k : ℕ) : CubicalChains.Chains G A →ₗ[ℤ] (φ.ker × Shape L k →₀ ℤ) :=
99
+ Finsupp.lcomapDomain (basisIndex L φ v root k) (basisIndex_injective L φ v root hv k)
100
+
101
+ @[simp] theorem project_include (k : ℕ) (c : φ.ker × Shape L k →₀ ℤ) :
102
+ projectBasis L φ v root hv k (includeBasis L φ v root k c) = c :=
103
+ Finsupp.leftInverse_lcomapDomain_mapDomain _ _ c
104
+
105
+ include hv in
106
+ theorem include_project {k : ℕ} {c : CubicalChains.Chains G A} (hc : c ∈ crossing L (ht φ) k) :
107
+ includeBasis L φ v root k (projectBasis L φ v root hv k c) = c := by
108
+ rw [← includeBasis_range L φ v root hv k] at hc
109
+ obtain ⟨d,rfl⟩ := hc
110
+ rw [project_include]
111
+
112
+ include hv in
113
+ theorem includeBasis_mem (k : ℕ) (c : φ.ker × Shape L k →₀ ℤ) :
114
+ includeBasis L φ v root k c ∈ crossing L (ht φ) k := by
115
+ rw [← includeBasis_range L φ v root hv k]
116
+ exact ⟨c,rfl⟩
117
+
118
+ /-- The level edge parameter has precisely two directions and initial height -1. -/
119
+ theorem shape_two_form (s : Shape L 2) : ∃ a b, s.val = ([a,b],-1) := by
120
+ obtain ⟨a,b,hab⟩ := List.length_eq_two.mp s.property.2.1
121
+ refine ⟨a,b,Prod.ext hab ?_⟩
122
+ have hn := s.property.2.2.1
123
+ have hm := s.property.2.2.2
124
+ norm_num at hm
125
+ omega
126
+
127
+ def generator (s : Shape L 2) : φ.ker :=
128
+ ⟨(v (s.val.1.headD root))⁻¹ * v (s.val.1.tail.headD root),by simp [hv]⟩
129
+
130
+ def includeVertices : (φ.ker →₀ ℤ) →ₗ[ℤ] CubicalChains.Chains G A :=
131
+ Finsupp.lmapDomain ℤ ℤ (fun g => (g.val,[]))
132
+ omit [LinearOrder A] in
133
+ @[simp] theorem includeVertices_single (g : φ.ker) (n : ℤ) :
134
+ includeVertices (A := A) φ (Finsupp.single g n) = Finsupp.single (g.val,[]) n := by simp [includeVertices]
135
+ omit [LinearOrder A] in
136
+ theorem includeVertices_injective : Function.Injective (includeVertices (A := A) φ) := by
137
+ apply Finsupp.mapDomain_injective
138
+ intro p q he
139
+ exact Subtype.ext (congrArg Prod.fst he)
140
+
141
+ include hv in
142
+ omit [LinearOrder A] in
143
+ theorem boundary_square (g : G) (a b : A) (hab : Commute (v a) (v b))
144
+ (hg : ht φ g = -1) :
145
+ levelBoundary v (ht φ) (Finsupp.single (g,[a,b]) 1) =
146
+ Finsupp.single (g*v b,[]) 1 - Finsupp.single (g*v a,[]) 1 := by
147
+ have hga : ht φ (g * v a) = 0 := by rw [ht_step φ v hv,hg]; omega
148
+ have hgb : ht φ (g * v b) = 0 := by rw [ht_step φ v hv,hg]; omega
149
+ simp only [levelBoundary_apply,boundary_single,one_smul,boundaryTerm_cons,boundaryTerm_nil,
150
+ map_zero,sub_zero,map_sub,front_single,plus,select_single,hga,hgb,hg]
151
+ norm_num
152
+ rw [mul_assoc,hab.eq,← mul_assoc]
153
+ abel
154
+
155
+
156
+ include hv comm in
157
+ theorem levelBoundary_include_single (p : φ.ker × Shape L 2) :
158
+ levelBoundary v (ht φ) (includeBasis L φ v root 2 (Finsupp.single p 1)) =
159
+ includeVertices (A := A) φ (edgeBoundary (generator L φ v root hv) (Finsupp.single p 1)) := by
160
+ rcases p with ⟨g,⟨⟨w,n⟩,hs⟩⟩
161
+ obtain ⟨a,b,hw⟩ := List.length_eq_two.mp hs.2.1
162
+ change w = [a,b] at hw
163
+ subst w
164
+ have hn : n = -1 := by have h₁ := hs.2.2.1; have h₂ := hs.2.2.2; norm_num at h₂; omega
165
+ subst n
166
+ have hab : L.Adj a b := (List.pairwise_cons.mp hs.1.2).1 b (by simp)
167
+ rw [includeBasis_single]
168
+ change levelBoundary v (ht φ) (Finsupp.single (g.val * (v a)^(-1 : ℤ),[a,b]) 1) = _
169
+ rw [boundary_square φ v hv _ a b (comm a b hab) (by simp [ht_generator φ v hv])]
170
+ simp only [edgeBoundary,Finsupp.linearCombination_single]
171
+ simp only [zpow_neg_one,one_smul,map_sub,includeVertices_single,
172
+ Subgroup.coe_mul,generator,List.headD_cons,List.tail_cons,mul_assoc,inv_mul_cancel,mul_one]
173
+
174
+ include hv comm in
175
+ theorem levelBoundary_include (c : φ.ker × Shape L 2 →₀ ℤ) :
176
+ levelBoundary v (ht φ) (includeBasis L φ v root 2 c) =
177
+ includeVertices (A := A) φ (edgeBoundary (generator L φ v root hv) c) := by
178
+ induction c using Finsupp.induction_linear with
179
+ | zero => simp
180
+ | add c d hc hd => simp only [map_add,hc,hd]
181
+ | single p n =>
182
+ have he : Finsupp.single p n = n • Finsupp.single p (1 : ℤ) := by simp
183
+ rw [he,map_smul,map_smul,map_smul,map_smul,levelBoundary_include_single L φ v root hv comm]
184
+
185
+ /-- The literal based integral boundary of the crossing three-cubes. -/
186
+ def triangleBoundary : (φ.ker × Shape L 3 →₀ ℤ) →ₗ[ℤ] (φ.ker × Shape L 2 →₀ ℤ) :=
187
+ (projectBasis L φ v root hv 2).comp ((crossPart (ht φ)).comp ((boundary v).comp (includeBasis L φ v root 3)))
188
+
189
+ include hv in
190
+ theorem triangleBoundary_inclusion (c : φ.ker × Shape L 3 →₀ ℤ) :
191
+ includeBasis L φ v root 2 (triangleBoundary L φ v root hv c) =
192
+ crossPart (ht φ) (boundary v (includeBasis L φ v root 3 c)) := by
193
+ apply include_project L φ v root hv
194
+ exact crossPart_mem L (ht φ) (boundary_total L v (ht φ) (ht_step φ v hv)
195
+ (crossing_total L (ht φ) (includeBasis_mem L φ v root hv 3 c)))
196
+
197
+ include hv comm in
198
+ theorem triangleBoundary_cycle (c : φ.ker × Shape L 3 →₀ ℤ) :
199
+ triangleBoundary L φ v root hv c ∈ cycles (generator L φ v root hv) := by
200
+ apply includeVertices_injective φ
201
+ rw [map_zero,← levelBoundary_include L φ v root hv comm,triangleBoundary_inclusion L φ v root hv]
202
+ exact levelBoundary_cross_boundary L v (ht φ) (ht_step φ v hv) comm (includeBasis_mem L φ v root hv 3 c)
203
+
204
+ variable (K : SimplicialChains.Contraction L)
205
+ variable (exactTotal : ∀ {k : ℕ}, 0 < k → ∀ c, c ∈ total (G := G) L k → boundary v c = 0 →
206
+ ∃ b ∈ total (G := G) L (k+1), boundary v b = c)
207
+ variable (dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3)
208
+ include hv comm K exactTotal in
209
+ theorem triangleBoundary_range : LinearMap.range (triangleBoundary L φ v root hv) =
210
+ cycles (generator L φ v root hv) := by
211
+ apply le_antisymm
212
+ · rintro _ ⟨c,rfl⟩
213
+ exact triangleBoundary_cycle L φ v root hv comm c
214
+ · intro c hc
215
+ have hz : levelBoundary v (ht φ) (includeBasis L φ v root 2 c) = 0 := by
216
+ rw [levelBoundary_include L φ v root hv comm,LinearMap.mem_ker.mp hc,map_zero]
217
+ obtain ⟨t,ht,hdt⟩ := level_cycle_bounds L v (ht φ) K (ht_step φ v hv) comm exactTotal
218
+ _ (includeBasis_mem L φ v root hv 2 c) hz
219
+ rw [← includeBasis_range L φ v root hv 3] at ht
220
+ obtain ⟨b,rfl⟩ := ht
221
+ refine ⟨b,includeBasis_injective L φ v root hv 2 ?_⟩
222
+ rwa [triangleBoundary_inclusion L φ v root hv]
223
+
224
+ include hv comm K exactTotal dim in
225
+ theorem triangleBoundary_injective : Function.Injective (triangleBoundary L φ v root hv) := by
226
+ suffices hz : ∀ c, triangleBoundary L φ v root hv c = 0 → c = 0 by
227
+ intro c d he
228
+ exact sub_eq_zero.mp (hz (c-d) (by simp only [map_sub,he,sub_self]))
229
+ intro c hc
230
+ apply includeBasis_injective L φ v root hv 3
231
+ rw [map_zero]
232
+ apply level_boundary_injective L v (ht φ) K (ht_step φ v hv) comm exactTotal dim
233
+ _ (includeBasis_mem L φ v root hv 3 c)
234
+ rw [← triangleBoundary_inclusion L φ v root hv,hc,map_zero]
235
+
236
+
237
+ /-- Left translation on the actual ambient cube chains. -/
238
+ def leftTranslate (g : G) : CubicalChains.Chains G A →ₗ[ℤ] CubicalChains.Chains G A :=
239
+ Finsupp.lmapDomain ℤ ℤ (fun p => (g*p.1,p.2))
240
+ omit [LinearOrder A] in
241
+ @[simp] theorem leftTranslate_single (g q : G) (w : List A) (n : ℤ) :
242
+ leftTranslate g (Finsupp.single (q,w) n) = Finsupp.single (g*q,w) n := by simp [leftTranslate]
243
+ omit [LinearOrder A] in
244
+ theorem leftTranslate_front (g : G) (a : A) (c : CubicalChains.Chains G A) :
245
+ leftTranslate g (CubicalChains.front a c) = CubicalChains.front a (leftTranslate g c) := by
246
+ induction c using Finsupp.induction_linear with
247
+ | zero => simp
248
+ | add c d hc hd => simp only [map_add,hc,hd]
249
+ | single p n => rcases p with ⟨q,w⟩; simp
250
+ omit [LinearOrder A] in
251
+ theorem leftTranslate_boundaryTerm (g q : G) (w : List A) :
252
+ leftTranslate g (boundaryTerm v q w) = boundaryTerm v (g*q) w := by
253
+ induction w with
254
+ | nil => simp
255
+ | cons a w ih => simp only [boundaryTerm_cons,map_sub,leftTranslate_single,leftTranslate_front,ih,mul_assoc]
256
+ omit [LinearOrder A] in
257
+ theorem leftTranslate_boundary (g : G) (c : CubicalChains.Chains G A) :
258
+ leftTranslate g (boundary v c) = boundary v (leftTranslate g c) := by
259
+ induction c using Finsupp.induction_linear with
260
+ | zero => simp
261
+ | add c d hc hd => simp only [map_add,hc,hd]
262
+ | single p n => rcases p with ⟨q,w⟩; simp [leftTranslate_boundaryTerm]
263
+ omit [LinearOrder A] in
264
+ theorem leftTranslate_crossPart (g : φ.ker) (c : CubicalChains.Chains G A) :
265
+ leftTranslate g.val (crossPart (ht φ) c) = crossPart (ht φ) (leftTranslate g.val c) := by
266
+ induction c using Finsupp.induction_linear with
267
+ | zero => simp
268
+ | add c d hc hd => simp only [map_add,hc,hd]
269
+ | single p n =>
270
+ rcases p with ⟨q,w⟩
271
+ simp only [crossPart,select_single,leftTranslate_single,ht_mul,ht_ker,zero_add]
272
+ split <;> simp_all
273
+
274
+ theorem includeBasis_translate (k : ℕ) (g : φ.ker) (c : φ.ker × Shape L k →₀ ℤ) :
275
+ includeBasis L φ v root k (translateChains g c) = leftTranslate g.val (includeBasis L φ v root k c) := by
276
+ induction c using Finsupp.induction_linear with
277
+ | zero => simp
278
+ | add c d hc hd => simp only [map_add,hc,hd]
279
+ | single p n =>
280
+ rcases p with ⟨q,s⟩
281
+ simp only [translateChains_single,includeBasis_single,leftTranslate_single,basisIndex,
282
+ Subgroup.coe_mul,mul_assoc]
283
+
284
+ include hv in
285
+ theorem triangleBoundary_equivariant : ChainsEquivariant (triangleBoundary L φ v root hv) := by
286
+ intro g c
287
+ apply includeBasis_injective L φ v root hv 2
288
+ rw [triangleBoundary_inclusion L φ v root hv,includeBasis_translate,
289
+ ← leftTranslate_boundary,← leftTranslate_crossPart,includeBasis_translate,
290
+ triangleBoundary_inclusion L φ v root hv]
291
+
292
+ end EilenbergGanea.LevelBasis
293
+
294
+ namespace EilenbergGanea.LevelBasis
295
+ variable {V : Type} [LinearOrder V] (L : SimpleGraph V)
296
+
297
+ def pairShape (a b : V) (hab : a < b) (hadj : L.Adj a b) : Shape L 2 :=
298
+ ⟨([a,b],-1),by simp [SimplicialChains.Valid,hab,hadj]⟩
299
+
300
+ @[simp] theorem generator_pair (root a b : V) (hab : a < b) (hadj : L.Adj a b) :
301
+ (generator L (height L) (artinGenerator L) root (height_generator L)
302
+ (pairShape L a b hab hadj)).val = (artinGenerator L a)⁻¹ * artinGenerator L b := rfl
303
+
304
+ /-- The actual oriented crossing-square edges generate precisely the height kernel. -/
305
+ theorem generator_surjective (hconn : L.Preconnected) (root : V) :
306
+ Function.Surjective (FreeGroup.lift (generator L (height L) (artinGenerator L) root (height_generator L))) := by
307
+ let f := FreeGroup.lift (generator L (height L) (artinGenerator L) root (height_generator L))
308
+ let F := (height L).ker.subtype.comp f
309
+ have hgen : edgeGenerated L ≤ F.range := by
310
+ apply (Subgroup.closure_le _).mpr
311
+ rintro x ⟨a,b,hadj,rfl⟩
312
+ have hab : a ≠ b := L.ne_of_adj hadj
313
+ rcases lt_or_gt_of_ne hab with hab | hab
314
+ · refine ⟨(FreeGroup.of (pairShape L a b hab hadj))⁻¹,?_⟩
315
+ change (f ((FreeGroup.of (pairShape L a b hab hadj))⁻¹)).val = _
316
+ simp only [f,map_inv,FreeGroup.lift_apply_of,Subgroup.coe_inv,generator_pair,mul_inv_rev,inv_inv]
317
+ exact (adjacent_generators_commute L hadj).inv_right.eq.symm
318
+ · refine ⟨FreeGroup.of (pairShape L b a hab hadj.symm),?_⟩
319
+ change (f (FreeGroup.of (pairShape L b a hab hadj.symm))).val = _
320
+ simp only [f,FreeGroup.lift_apply_of,generator_pair]
321
+ exact (adjacent_generators_commute L hadj).inv_right.eq.symm
322
+ intro g
323
+ have he : g.val ∈ edgeGenerated L := by rw [edgeGenerated_eq_height_kernel L hconn root]; exact g.property
324
+ obtain ⟨w,hw⟩ := hgen he
325
+ exact ⟨w,Subtype.ext hw⟩
326
+
327
+ end EilenbergGanea.LevelBasis
328
+
329
+ namespace EilenbergGanea.LevelBasis
330
+ open CubicalChains CubicalChains.HeightFiltration
331
+ variable {V : Type} [LinearOrder V] [Fintype V] [Nonempty V] (L : SimpleGraph V)
332
+
333
+ /-- The exactness input to the level slicing is the actual RAAG cube-chain
334
+ contraction, not an assumption about a classifying space. -/
335
+ theorem artin_total_cycle_bounds {k : ℕ} (hk : 0 < k)
336
+ (c : Chains (ArtinGroup L) V) (hc : c ∈ total (G := ArtinGroup L) L k)
337
+ (hz : boundary (artinGenerator L) c = 0) :
338
+ ∃ b ∈ total (G := ArtinGroup L) L (k+1), boundary (artinGenerator L) b = c := by
339
+ have he : ∀ n, total (G := ArtinGroup L) L n = TraceWords.CubeDescents.positiveChains L n := by
340
+ intro n
341
+ simp only [total,TraceWords.CubeDescents.positiveChains,SimplicialChains.Valid,and_assoc]
342
+ rw [he] at hc ⊢
343
+ exact TraceWords.CubeDescents.positive_cycle_bounds L hk c hc hz
344
+
345
+ /-- Integral cd at most two for the genuine height kernel, from a genuine
346
+ finite augmented link contraction and the dimension of its flag complex. -/
347
+ theorem artin_height_kernel_cd_le_two (root : V) (hconn : L.Preconnected)
348
+ (K : SimplicialChains.Contraction L)
349
+ (dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3) :
350
+ cohomologicalDimension (height L).ker ≤ 2 := by
351
+ exact projectiveDimension_le_two_of_boundary_basis
352
+ (generator L (height L) (artinGenerator L) root (height_generator L))
353
+ (generator_surjective L hconn root)
354
+ (triangleBoundary L (height L) (artinGenerator L) root (height_generator L))
355
+ (triangleBoundary_equivariant L (height L) (artinGenerator L) root (height_generator L))
356
+ (triangleBoundary_injective L (height L) (artinGenerator L) root (height_generator L)
357
+ (fun _ _ h => adjacent_generators_commute L h) K (artin_total_cycle_bounds L) dim)
358
+ (triangleBoundary_range L (height L) (artinGenerator L) root (height_generator L)
359
+ (fun _ _ h => adjacent_generators_commute L h) K (artin_total_cycle_bounds L))
360
+ end EilenbergGanea.LevelBasis
361
+ namespace EilenbergGanea.LevelBasis
362
+ open CubicalChains CubicalChains.LevelExact CubicalChains.HeightFiltration
363
+ variable {G A : Type} [Group G] [LinearOrder A]
364
+ variable (L : SimpleGraph A) (φ : G →* Multiplicative ℤ) (v : A → G) (root : A)
365
+ variable (hv : ∀ a, φ (v a) = Multiplicative.ofAdd (1 : ℤ))
366
+ variable (comm : ∀ a b, L.Adj a b → Commute (v a) (v b))
367
+
368
+ instance shape_finite [Fintype A] (k : ℕ) : Finite (Shape L k) := by
369
+ let f : Shape L k → List.Vector A k × Fin k := fun s =>
370
+ (⟨s.val.1,s.property.2.1⟩,⟨(-s.val.2).toNat,by
371
+ have hn := s.property.2.2.1
372
+ have hm := s.property.2.2.2
373
+ omega⟩)
374
+ apply Finite.of_injective f
375
+ intro s t h
376
+ apply Subtype.ext
377
+ apply Prod.ext
378
+ · exact congrArg (fun p : List.Vector A k × Fin k => p.1.val) h
379
+ · have he := congrArg (fun p : List.Vector A k × Fin k => p.2.val) h
380
+ have hs := s.property.2.2.1
381
+ have ht := t.property.2.2.1
382
+ dsimp [f] at he
383
+ omega
384
+
385
+ noncomputable instance shape_fintype [Fintype A] (k : ℕ) : Fintype (Shape L k) := Fintype.ofFinite _
386
+
387
+ def edgeShape (a b : A) (hab : SimplicialChains.Valid L [a,b]) : Shape L 2 :=
388
+ ⟨([a,b],-1),hab,rfl,by norm_num,by norm_num⟩
389
+
390
+ def triangleShape (a b c : A) (habc : SimplicialChains.Valid L [a,b,c])
391
+ (n : ℤ) (hn : n = -1 ∨ n = -2) : Shape L 3 :=
392
+ ⟨([a,b,c],n),habc,rfl,by omega,by norm_num; omega⟩
393
+
394
+ @[simp] theorem generator_edgeShape (a b : A) (hab : SimplicialChains.Valid L [a,b]) :
395
+ (generator L φ v root hv (edgeShape L a b hab) : G) = (v a)⁻¹ * v b := rfl
396
+
397
+ theorem valid_triangle_edges {a b c : A} (h : SimplicialChains.Valid L [a,b,c]) :
398
+ SimplicialChains.Valid L [a,b] ∧ SimplicialChains.Valid L [a,c] ∧
399
+ SimplicialChains.Valid L [b,c] := by
400
+ simp [SimplicialChains.Valid] at h ⊢
401
+ tauto
402
+
403
+ include comm in
404
+ theorem edge_values_compose (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) :
405
+ ((v a)⁻¹ * v b) * ((v b)⁻¹ * v c) = (v a)⁻¹ * v c ∧
406
+ ((v b)⁻¹ * v c) * ((v a)⁻¹ * v b) = (v a)⁻¹ * v c := by
407
+ have he := valid_triangle_edges L h
408
+ have ha : L.Adj a b := by simpa [SimplicialChains.Valid] using he.1.2
409
+ have hb : L.Adj a c := by simpa [SimplicialChains.Valid] using he.2.1.2
410
+ have hc : L.Adj b c := by simpa [SimplicialChains.Valid] using he.2.2.2
411
+ constructor
412
+ · group
413
+ · calc
414
+ ((v b)⁻¹ * v c) * ((v a)⁻¹ * v b) = (v a)⁻¹ * ((v b)⁻¹ * v c) * v b := by
415
+ rw [← mul_assoc,
416
+ ((comm a b ha).inv_left.inv_right.mul_right (comm a c hb).inv_left).symm.eq]
417
+ _ = (v a)⁻¹ * v c := by
418
+ rw [mul_assoc,mul_assoc,← (comm b c hc).eq,inv_mul_cancel_left]
419
+
420
+ def lowerTriangleWord (ab ac bc : Shape L 2) : FreeGroup (Shape L 2) :=
421
+ FreeGroup.of ac * (FreeGroup.of bc)⁻¹ * (FreeGroup.of ab)⁻¹
422
+
423
+ def upperTriangleWord (ab ac bc : Shape L 2) : FreeGroup (Shape L 2) :=
424
+ FreeGroup.of ab * (FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) *
425
+ (FreeGroup.of ab)⁻¹
426
+
427
+ include comm in
428
+ theorem triangle_words_trivial (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) :
429
+ let e := valid_triangle_edges L h
430
+ let ab := edgeShape L a b e.1
431
+ let ac := edgeShape L a c e.2.1
432
+ let bc := edgeShape L b c e.2.2
433
+ wordValue (generator L φ v root hv) (lowerTriangleWord L ab ac bc) = 1 ∧
434
+ wordValue (generator L φ v root hv) (upperTriangleWord L ab ac bc) = 1 := by
435
+ dsimp only
436
+ have he := edge_values_compose L v comm a b c h
437
+ constructor <;> apply Subtype.ext
438
+ · simp only [lowerTriangleWord,map_mul,map_inv,wordValue,FreeGroup.lift_apply_of,
439
+ Subgroup.coe_mul,Subgroup.coe_inv,generator_edgeShape,OneMemClass.coe_one]
440
+ group
441
+ · simp only [upperTriangleWord,map_mul,map_inv,wordValue,FreeGroup.lift_apply_of,
442
+ Subgroup.coe_mul,Subgroup.coe_inv,generator_edgeShape,OneMemClass.coe_one]
443
+ rw [he.2,mul_inv_cancel,mul_one,mul_inv_cancel]
444
+
445
+ include hv in
446
+ theorem triangle_boundary_low (g : φ.ker) (a b c : A)
447
+ (h : SimplicialChains.Valid L [a,b,c]) :
448
+ let e := valid_triangle_edges L h
449
+ let ab := edgeShape L a b e.1
450
+ let ac := edgeShape L a c e.2.1
451
+ let bc := edgeShape L b c e.2.2
452
+ triangleBoundary L φ v root hv
453
+ (Finsupp.single (g,triangleShape L a b c h (-1) (Or.inl rfl)) 1) =
454
+ Finsupp.single (g,ac) 1 - Finsupp.single (g,ab) 1 -
455
+ Finsupp.single (g * generator L φ v root hv ab,bc) 1 := by
456
+ dsimp only
457
+ apply includeBasis_injective L φ v root hv 2
458
+ rw [triangleBoundary_inclusion L φ v root hv]
459
+ simp only [map_sub,includeBasis_single,basisIndex,triangleShape,edgeShape,
460
+ List.headD_cons,zpow_neg_one,Subgroup.coe_mul,generator,List.tail_cons]
461
+ simp only [boundary_single,one_smul,boundaryTerm_cons,boundaryTerm_nil,map_zero,
462
+ sub_zero,map_sub,front_single,crossPart,select,Finsupp.linearCombination_single,
463
+ ht_mul,ht_ker,ht_inv,ht_generator φ v hv,List.length_cons,List.length_nil]
464
+ norm_num
465
+ simp only [mul_assoc,mul_inv_cancel,mul_one]
466
+ abel
467
+
468
+ include hv comm in
469
+ theorem triangle_boundary_high (g : φ.ker) (a b c : A)
470
+ (h : SimplicialChains.Valid L [a,b,c]) :
471
+ let e := valid_triangle_edges L h
472
+ let ab := edgeShape L a b e.1
473
+ let ac := edgeShape L a c e.2.1
474
+ let bc := edgeShape L b c e.2.2
475
+ triangleBoundary L φ v root hv
476
+ (Finsupp.single (g,triangleShape L a b c h (-2) (Or.inr rfl)) 1) =
477
+ Finsupp.single (g * generator L φ v root hv ab,bc) 1 -
478
+ Finsupp.single (g * generator L φ v root hv ab,ac) 1 +
479
+ Finsupp.single (g * generator L φ v root hv ac,ab) 1 := by
480
+ dsimp only
481
+ have eh := valid_triangle_edges L h
482
+ have hab : L.Adj a b := by simpa [SimplicialChains.Valid] using eh.1.2
483
+ have hac : L.Adj a c := by simpa [SimplicialChains.Valid] using eh.2.1.2
484
+ apply includeBasis_injective L φ v root hv 2
485
+ rw [triangleBoundary_inclusion L φ v root hv]
486
+ simp only [map_sub,map_add,includeBasis_single,basisIndex,triangleShape,edgeShape,
487
+ List.headD_cons,Subgroup.coe_mul,generator,List.tail_cons]
488
+ simp only [boundary_single,one_smul,boundaryTerm_cons,boundaryTerm_nil,map_zero,
489
+ sub_zero,map_sub,front_single,crossPart,select,map_sub,Finsupp.linearCombination_single,
490
+ ht_mul,ht_ker,ht_zpow,ht_generator φ v hv,List.length_cons,List.length_nil]
491
+ norm_num
492
+ have hb : (v a)^(-2 : ℤ) * v b = (v a)⁻¹ * v b * (v a)⁻¹ := by
493
+ calc
494
+ (v a)^(-2 : ℤ) * v b = (v a)⁻¹ * ((v a)⁻¹ * v b) := by group
495
+ _ = (v a)⁻¹ * (v b * (v a)⁻¹) := congrArg ((v a)⁻¹ * ·) (comm a b hab).inv_left.eq
496
+ _ = _ := (mul_assoc _ _ _).symm
497
+ have hc : (v a)^(-2 : ℤ) * v c = (v a)⁻¹ * v c * (v a)⁻¹ := by
498
+ calc
499
+ (v a)^(-2 : ℤ) * v c = (v a)⁻¹ * ((v a)⁻¹ * v c) := by group
500
+ _ = (v a)⁻¹ * (v c * (v a)⁻¹) := congrArg ((v a)⁻¹ * ·) (comm a c hac).inv_left.eq
501
+ _ = _ := (mul_assoc _ _ _).symm
502
+ have ha : (v a)^(-2 : ℤ) * v a = (v a)⁻¹ := by group
503
+ simp only [zpow_neg,zpow_ofNat] at ha hb hc
504
+ simp only [mul_assoc] at hb hc
505
+ simp only [mul_assoc,ha,hb,hc,mul_inv_cancel,mul_one]
506
+ abel
507
+
508
+ section WordChains
509
+ variable (w : Shape L 2 → G) (ab ac bc : Shape L 2)
510
+ theorem lowerTriangleWord_chain (habc : w ab * w bc = w ac) (g : G) :
511
+ pathChain w (lowerTriangleWord L ab ac bc) g =
512
+ Finsupp.single (g,ac) 1 - Finsupp.single (g,ab) 1 -
513
+ Finsupp.single (g * w ab,bc) 1 := by
514
+ simp only [lowerTriangleWord,pathChain_mul,pathChain_inv,pathChain_of,
515
+ map_mul,map_inv,wordValue,FreeGroup.lift_apply_of]
516
+ rw [← habc]
517
+ simp only [mul_assoc,mul_inv_cancel,mul_one]
518
+ abel
519
+
520
+ theorem upperTriangleWord_chain (habc : w ab * w bc = w ac)
521
+ (hbac : w bc * w ab = w ac) (g : G) :
522
+ pathChain w (upperTriangleWord L ab ac bc) g =
523
+ Finsupp.single (g * w ab,bc) 1 - Finsupp.single (g * w ab,ac) 1 +
524
+ Finsupp.single (g * w ac,ab) 1 := by
525
+ have hr : wordValue w (FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) = 1 := by
526
+ simp only [wordValue,map_mul,map_inv,FreeGroup.lift_apply_of,hbac,mul_inv_cancel]
527
+ rw [upperTriangleWord,pathChain_conjugate w _ _ hr]
528
+ simp only [pathChain_mul,pathChain_inv,pathChain_of,map_mul,wordValue,
529
+ FreeGroup.lift_apply_of]
530
+ rw [hbac]
531
+ simp only [mul_assoc,habc,mul_inv_cancel,mul_one]
532
+ abel
533
+ end WordChains
534
+
535
+ include comm in
536
+ theorem triangle_words_chain (g : φ.ker) (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) :
537
+ let e := valid_triangle_edges L h
538
+ let ab := edgeShape L a b e.1
539
+ let ac := edgeShape L a c e.2.1
540
+ let bc := edgeShape L b c e.2.2
541
+ pathChain (generator L φ v root hv) (lowerTriangleWord L ab ac bc) g =
542
+ triangleBoundary L φ v root hv
543
+ (Finsupp.single (g,triangleShape L a b c h (-1) (Or.inl rfl)) 1) ∧
544
+ pathChain (generator L φ v root hv) (upperTriangleWord L ab ac bc) g =
545
+ triangleBoundary L φ v root hv
546
+ (Finsupp.single (g,triangleShape L a b c h (-2) (Or.inr rfl)) 1) := by
547
+ dsimp only
548
+ have he := edge_values_compose L v comm a b c h
549
+ have h₁ : generator L φ v root hv (edgeShape L a b (valid_triangle_edges L h).1) *
550
+ generator L φ v root hv (edgeShape L b c (valid_triangle_edges L h).2.2) =
551
+ generator L φ v root hv (edgeShape L a c (valid_triangle_edges L h).2.1) :=
552
+ Subtype.ext he.1
553
+ have h₂ : generator L φ v root hv (edgeShape L b c (valid_triangle_edges L h).2.2) *
554
+ generator L φ v root hv (edgeShape L a b (valid_triangle_edges L h).1) =
555
+ generator L φ v root hv (edgeShape L a c (valid_triangle_edges L h).2.1) :=
556
+ Subtype.ext he.2
557
+ constructor
558
+ · rw [lowerTriangleWord_chain L _ _ _ _ h₁,triangle_boundary_low L φ v root hv]
559
+ · rw [upperTriangleWord_chain L _ _ _ _ h₁ h₂,
560
+ triangle_boundary_high L φ v root hv comm]
561
+
562
+ def triangleWordList : (w : List A) → SimplicialChains.Valid L w → ℤ → FreeGroup (Shape L 2)
563
+ | [a,b,c],h,n =>
564
+ let e := valid_triangle_edges L h
565
+ if n = -1 then
566
+ lowerTriangleWord L (edgeShape L a b e.1) (edgeShape L a c e.2.1) (edgeShape L b c e.2.2)
567
+ else upperTriangleWord L (edgeShape L a b e.1) (edgeShape L a c e.2.1) (edgeShape L b c e.2.2)
568
+ | _,_,_ => 1
569
+
570
+ def triangleWord (s : Shape L 3) : FreeGroup (Shape L 2) :=
571
+ triangleWordList L s.val.1 s.property.1 s.val.2
572
+
573
+ theorem shape_three_form (s : Shape L 3) :
574
+ ∃ (a b c : A) (h : SimplicialChains.Valid L [a,b,c]) (n : ℤ) (hn : n = -1 ∨ n = -2),
575
+ s = triangleShape L a b c h n hn := by
576
+ obtain ⟨a,b,c,hw⟩ := List.length_eq_three.mp s.property.2.1
577
+ have hn : s.val.2 = -1 ∨ s.val.2 = -2 := by
578
+ have h₁ := s.property.2.2.1
579
+ have h₂ := s.property.2.2.2
580
+ norm_num at h₂
581
+ omega
582
+ refine ⟨a,b,c,hw ▸ s.property.1,s.val.2,hn,?_⟩
583
+ exact Subtype.ext (Prod.ext hw rfl)
584
+
585
+ include comm in
586
+ theorem triangleWord_trivial (s : Shape L 3) :
587
+ wordValue (generator L φ v root hv) (triangleWord L s) = 1 := by
588
+ obtain ⟨a,b,c,h,n,hn,rfl⟩ := shape_three_form L s
589
+ rcases hn with rfl | rfl
590
+ · simpa [triangleWord,triangleWordList,triangleShape] using
591
+ (triangle_words_trivial L φ v root hv comm a b c h).1
592
+ · simpa [triangleWord,triangleWordList,triangleShape] using
593
+ (triangle_words_trivial L φ v root hv comm a b c h).2
594
+
595
+ include comm in
596
+ theorem triangleWord_chain (s : Shape L 3) (g : φ.ker) :
597
+ pathChain (generator L φ v root hv) (triangleWord L s) g =
598
+ triangleBoundary L φ v root hv (Finsupp.single (g,s) 1) := by
599
+ obtain ⟨a,b,c,h,n,hn,rfl⟩ := shape_three_form L s
600
+ rcases hn with rfl | rfl
601
+ · simpa [triangleWord,triangleWordList,triangleShape] using
602
+ (triangle_words_chain L φ v root hv comm g a b c h).1
603
+ · simpa [triangleWord,triangleWordList,triangleShape] using
604
+ (triangle_words_chain L φ v root hv comm g a b c h).2
605
+
606
+ end EilenbergGanea.LevelBasis
607
+ namespace EilenbergGanea.LevelBasis
608
+ open CubicalChains CubicalChains.HeightFiltration
609
+ variable {G A : Type} [Group G] [LinearOrder A]
610
+ variable (L : SimpleGraph A) (φ : G →* Multiplicative ℤ) (v : A → G) (root : A)
611
+ variable (hv : ∀ a, φ (v a) = Multiplicative.ofAdd (1 : ℤ))
612
+ variable (comm : ∀ a b, L.Adj a b → Commute (v a) (v b))
613
+
614
+ include comm in
615
+ theorem triangleBoundary_eq_relatorChainMap :
616
+ triangleBoundary L φ v root hv =
617
+ relatorChainMap (generator L φ v root hv) (triangleWord L) := by
618
+ apply Finsupp.lhom_ext'
619
+ intro p
620
+ apply LinearMap.ext
621
+ intro n
622
+ simp only [LinearMap.coe_comp,Function.comp_apply,Finsupp.lsingle_apply,
623
+ relatorChainMap,Finsupp.linearCombination_single]
624
+ have he : Finsupp.single p n = n • Finsupp.single p (1 : ℤ) := by simp
625
+ rw [he,map_smul,← triangleWord_chain L φ v root hv comm p.2 p.1]
626
+
627
+ variable (K : SimplicialChains.Contraction L)
628
+ variable (exactTotal : ∀ {k : ℕ}, 0 < k → ∀ c, c ∈ total (G := G) L k → boundary v c = 0 →
629
+ ∃ b ∈ total (G := G) L (k+1), boundary v b = c)
630
+ variable (dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3)
631
+
632
+ noncomputable def triangleBasis : (φ.ker × Shape L 3 →₀ ℤ) ≃ₗ[ℤ]
633
+ cycles (generator L φ v root hv) :=
634
+ LinearEquiv.ofBijective
635
+ ((triangleBoundary L φ v root hv).codRestrict (cycles (generator L φ v root hv))
636
+ (triangleBoundary_cycle L φ v root hv comm))
637
+ ⟨fun c d h => triangleBoundary_injective L φ v root hv comm K exactTotal dim
638
+ (congrArg Subtype.val h),fun c => by
639
+ have hc : c.val ∈ LinearMap.range (triangleBoundary L φ v root hv) := by
640
+ rw [triangleBoundary_range L φ v root hv comm K exactTotal]
641
+ exact c.property
642
+ obtain ⟨b,hb⟩ := hc
643
+ exact ⟨b,Subtype.ext hb⟩⟩
644
+
645
+ theorem triangleBasis_value (c : φ.ker × Shape L 3 →₀ ℤ) :
646
+ (triangleBasis L φ v root hv comm K exactTotal dim c : φ.ker × Shape L 2 →₀ ℤ) =
647
+ relatorChainMap (generator L φ v root hv) (triangleWord L) c := by
648
+ change triangleBoundary L φ v root hv c = _
649
+ rw [triangleBoundary_eq_relatorChainMap L φ v root hv comm]
650
+
651
+ end EilenbergGanea.LevelBasis
652
+ namespace EilenbergGanea.LevelBasis
653
+ open LevelTransport
654
+ variable {V : Type} [LinearOrder V] (L : SimpleGraph V) (root : V) (N : ℕ)
655
+
656
+ noncomputable def levelEquiv : (height L).ker ≃ NegativeLevel L N where
657
+ toFun := fun g => ⟨(artinGenerator L root)⁻¹ ^ N * g.val,by
658
+ simp only [map_mul,map_pow,map_inv,height_generator]
659
+ rw [show height L g.val = 1 from g.property,mul_one]
660
+ change N • (-1 : ℤ) = -(N : ℤ)
661
+ simp⟩
662
+ invFun := fun g => ⟨artinGenerator L root ^ N * g.val,by
663
+ change (height L (artinGenerator L root ^ N * g.val)).toAdd = 0
664
+ simp only [map_mul,map_pow,height_generator]
665
+ change N • (1 : ℤ) + (height L g.val).toAdd = 0
666
+ rw [g.property]
667
+ simp⟩
668
+ left_inv := fun g => Subtype.ext (by dsimp; group)
669
+ right_inv := fun g => Subtype.ext (by dsimp; group)
670
+
671
+ def basedLabel (a : NegativeLevel L N → V → V → SU2)
672
+ (g : (height L).ker) (s : Shape L 2) : SU2 :=
673
+ a (levelEquiv L root N g) (s.val.1.tail.headD root) (s.val.1.headD root)
674
+
675
+ @[simp] theorem basedLabel_edge (a : NegativeLevel L N → V → V → SU2)
676
+ (g : (height L).ker) (q r : V) (h : SimplicialChains.Valid L [q,r]) :
677
+ basedLabel L root N a g (edgeShape L q r h) = a (levelEquiv L root N g) r q := rfl
678
+
679
+ theorem levelEquiv_edge (g : (height L).ker) (q r : V)
680
+ (h : SimplicialChains.Valid L [q,r]) :
681
+ levelEquiv L root N
682
+ (g * generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h)) =
683
+ edgeVertex L N (levelEquiv L root N g) r q := by
684
+ have ha : L.Adj q r := by simpa [SimplicialChains.Valid] using h.2
685
+ apply Subtype.ext
686
+ simp only [levelEquiv,Equiv.coe_fn_mk,Subgroup.coe_mul,generator_edgeShape,edgeVertex]
687
+ rw [mul_assoc, (adjacent_generators_commute L ha).inv_left.eq]
688
+ group
689
+
690
+ theorem shape_two_presentation (s : Shape L 2) :
691
+ ∃ (q r : V) (h : SimplicialChains.Valid L [q,r]), s = edgeShape L q r h := by
692
+ obtain ⟨q,r,hw⟩ := List.length_eq_two.mp s.property.2.1
693
+ have hn : s.val.2 = -1 := by
694
+ have h₁ := s.property.2.2.1
695
+ have h₂ := s.property.2.2.2
696
+ norm_num at h₂
697
+ omega
698
+ refine ⟨q,r,hw ▸ s.property.1,?_⟩
699
+ exact Subtype.ext (Prod.ext hw hn)
700
+
701
+ theorem levelEquiv_edge_inv (g : (height L).ker) (q r : V)
702
+ (h : SimplicialChains.Valid L [q,r]) :
703
+ levelEquiv L root N
704
+ (g * (generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h))⁻¹) =
705
+ edgeVertex L N (levelEquiv L root N g) q r := by
706
+ have he := levelEquiv_edge L root N
707
+ (g * (generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h))⁻¹)
708
+ q r h
709
+ simp only [inv_mul_cancel_right] at he
710
+ simpa only [edgeVertex_reverse] using congrArg (fun x => edgeVertex L N x q r) he.symm
711
+
712
+ variable (a : NegativeLevel L N → V → V → SU2)
713
+ variable (rev : ∀ g q r, a (edgeVertex L N g q r) r q = (a g q r)⁻¹)
714
+ include rev in
715
+ theorem basedLabel_inv_edge (g : (height L).ker) (q r : V)
716
+ (h : SimplicialChains.Valid L [q,r]) :
717
+ (basedLabel L root N a
718
+ (g * (generator L (height L) (artinGenerator L) root (height_generator L) (edgeShape L q r h))⁻¹)
719
+ (edgeShape L q r h))⁻¹ = a (levelEquiv L root N g) q r := by
720
+ rw [basedLabel_edge,levelEquiv_edge_inv,rev,inv_inv]
721
+
722
+ def orientedWord (q r : V) (h : L.Adj q r) : FreeGroup (Shape L 2) :=
723
+ if hlt : q < r then
724
+ (FreeGroup.of (edgeShape L q r (by simpa [SimplicialChains.Valid] using And.intro hlt h)))⁻¹
725
+ else
726
+ FreeGroup.of (edgeShape L r q (by
727
+ have hlt' : r < q := lt_of_le_of_ne (le_of_not_gt hlt) (Ne.symm (L.ne_of_adj h))
728
+ simpa [SimplicialChains.Valid] using And.intro hlt' h.symm))
729
+
730
+ theorem orientedWord_value (q r : V) (h : L.Adj q r) :
731
+ (wordValue (generator L (height L) (artinGenerator L) root (height_generator L))
732
+ (orientedWord L q r h) : ArtinGroup L) =
733
+ artinGenerator L q * (artinGenerator L r)⁻¹ := by
734
+ unfold orientedWord
735
+ split_ifs
736
+ · simp only [map_inv,wordValue,FreeGroup.lift_apply_of,Subgroup.coe_inv,generator_edgeShape,
737
+ mul_inv_rev,inv_inv]
738
+ exact (adjacent_generators_commute L h).inv_right.symm.eq
739
+ · simp only [wordValue,FreeGroup.lift_apply_of,generator_edgeShape]
740
+ exact (adjacent_generators_commute L h).inv_right.symm.eq
741
+
742
+ theorem levelEquiv_orientedWord (g : (height L).ker) (q r : V) (h : L.Adj q r) :
743
+ levelEquiv L root N
744
+ (g * wordValue (generator L (height L) (artinGenerator L) root (height_generator L))
745
+ (orientedWord L q r h)) = edgeVertex L N (levelEquiv L root N g) q r := by
746
+ apply Subtype.ext
747
+ simp only [levelEquiv,Equiv.coe_fn_mk,Subgroup.coe_mul,orientedWord_value,edgeVertex,mul_assoc]
748
+
749
+ include rev in
750
+ theorem orientedWord_product (g : (height L).ker) (q r : V) (h : L.Adj q r) :
751
+ pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
752
+ (basedLabel L root N a) (orientedWord L q r h) g = a (levelEquiv L root N g) q r := by
753
+ unfold orientedWord
754
+ split_ifs
755
+ · simp only [pathProduct_inv,pathProduct_of,wordValue,FreeGroup.lift_apply_of]
756
+ exact basedLabel_inv_edge L root N a rev g q r _
757
+ · exact pathProduct_of _ _ _ _
758
+
759
+
760
+ include rev in
761
+ theorem inverse_edgeWord_product (g : (height L).ker) (q r : V)
762
+ (h : SimplicialChains.Valid L [q,r]) :
763
+ pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
764
+ (basedLabel L root N a) (FreeGroup.of (edgeShape L q r h))⁻¹ g =
765
+ a (levelEquiv L root N g) q r := by
766
+ simp only [pathProduct_inv,pathProduct_of,wordValue,FreeGroup.lift_apply_of]
767
+ exact basedLabel_inv_edge L root N a rev g q r h
768
+
769
+ variable (tri : ∀ g₀ g₁ g₂ q₀ r₀ q₁ r₁ q₂ r₂,
770
+ edgeVertex L N g₀ q₀ r₀ = g₁ → edgeVertex L N g₁ q₁ r₁ = g₂ →
771
+ edgeVertex L N g₂ q₂ r₂ = g₀ → a g₀ q₀ r₀ * a g₁ q₁ r₁ * a g₂ q₂ r₂ = 1)
772
+
773
+ include rev tri in
774
+ theorem lowerTriangleWord_product (g : (height L).ker) (q r s : V)
775
+ (h : SimplicialChains.Valid L [q,r,s]) :
776
+ let e := valid_triangle_edges L h
777
+ pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
778
+ (basedLabel L root N a)
779
+ (lowerTriangleWord L (edgeShape L q r e.1) (edgeShape L q s e.2.1)
780
+ (edgeShape L r s e.2.2)) g = 1 := by
781
+ let gen := generator L (height L) (artinGenerator L) root (height_generator L)
782
+ let e := valid_triangle_edges L h
783
+ let ab := edgeShape L q r e.1
784
+ let ac := edgeShape L q s e.2.1
785
+ let bc := edgeShape L r s e.2.2
786
+ have he : gen ab * gen bc = gen ac :=
787
+ Subtype.ext (edge_values_compose L (artinGenerator L)
788
+ (fun _ _ hh => adjacent_generators_commute L hh) q r s h).1
789
+ have hc : gen ac * (gen bc)⁻¹ = gen ab := by rw [← he]; group
790
+ have hc' : g * gen ac * (gen bc)⁻¹ = g * gen ab := by rw [mul_assoc,hc]
791
+ have ha : g * gen ab * (gen ab)⁻¹ = g := by group
792
+ have T := tri (levelEquiv L root N g) (levelEquiv L root N (g * gen ac))
793
+ (levelEquiv L root N (g * gen ab)) s q r s q r
794
+ (levelEquiv_edge L root N g q s e.2.1).symm
795
+ (by rw [← levelEquiv_edge_inv L root N (g * gen ac) r s e.2.2]; exact congrArg _ hc')
796
+ (by rw [← levelEquiv_edge_inv L root N (g * gen ab) q r e.1]; exact congrArg _ ha)
797
+ change pathProduct gen (basedLabel L root N a) (lowerTriangleWord L ab ac bc) g = 1
798
+ simp only [lowerTriangleWord,pathProduct_mul,pathProduct_of,map_mul,map_inv,
799
+ wordValue,FreeGroup.lift_apply_of]
800
+ rw [hc]
801
+ rw [inverse_edgeWord_product L root N a rev _ r s e.2.2,
802
+ inverse_edgeWord_product L root N a rev _ q r e.1]
803
+ exact T
804
+
805
+ include rev tri in
806
+ theorem upperInnerWord_product (g : (height L).ker) (q r s : V)
807
+ (h : SimplicialChains.Valid L [q,r,s]) :
808
+ let e := valid_triangle_edges L h
809
+ pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
810
+ (basedLabel L root N a)
811
+ (FreeGroup.of (edgeShape L r s e.2.2) * FreeGroup.of (edgeShape L q r e.1) *
812
+ (FreeGroup.of (edgeShape L q s e.2.1))⁻¹) g = 1 := by
813
+ let gen := generator L (height L) (artinGenerator L) root (height_generator L)
814
+ let e := valid_triangle_edges L h
815
+ let ab := edgeShape L q r e.1
816
+ let ac := edgeShape L q s e.2.1
817
+ let bc := edgeShape L r s e.2.2
818
+ have he : gen bc * gen ab = gen ac :=
819
+ Subtype.ext (edge_values_compose L (artinGenerator L)
820
+ (fun _ _ hh => adjacent_generators_commute L hh) q r s h).2
821
+ have hc : g * gen bc * gen ab = g * gen ac := by rw [mul_assoc,he]
822
+ have ha : g * gen ac * (gen ac)⁻¹ = g := by group
823
+ have T := tri (levelEquiv L root N g) (levelEquiv L root N (g * gen bc))
824
+ (levelEquiv L root N (g * gen ac)) s r r q q s
825
+ (levelEquiv_edge L root N g r s e.2.2).symm
826
+ (by rw [← levelEquiv_edge L root N (g * gen bc) q r e.1]; exact congrArg _ hc)
827
+ (by rw [← levelEquiv_edge_inv L root N (g * gen ac) q s e.2.1]; exact congrArg _ ha)
828
+ change pathProduct gen (basedLabel L root N a)
829
+ (FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) g = 1
830
+ simp only [pathProduct_mul,pathProduct_of,map_mul,wordValue,FreeGroup.lift_apply_of]
831
+ rw [he,inverse_edgeWord_product L root N a rev _ q s e.2.1]
832
+ exact T
833
+
834
+ include rev tri in
835
+ theorem upperTriangleWord_product (g : (height L).ker) (q r s : V)
836
+ (h : SimplicialChains.Valid L [q,r,s]) :
837
+ let e := valid_triangle_edges L h
838
+ pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
839
+ (basedLabel L root N a)
840
+ (upperTriangleWord L (edgeShape L q r e.1) (edgeShape L q s e.2.1)
841
+ (edgeShape L r s e.2.2)) g = 1 := by
842
+ let gen := generator L (height L) (artinGenerator L) root (height_generator L)
843
+ let e := valid_triangle_edges L h
844
+ let ab := edgeShape L q r e.1
845
+ let ac := edgeShape L q s e.2.1
846
+ let bc := edgeShape L r s e.2.2
847
+ have he : gen bc * gen ab = gen ac :=
848
+ Subtype.ext (edge_values_compose L (artinGenerator L)
849
+ (fun _ _ hh => adjacent_generators_commute L hh) q r s h).2
850
+ have hr : wordValue gen (FreeGroup.of bc * FreeGroup.of ab * (FreeGroup.of ac)⁻¹) = 1 := by
851
+ simp only [map_mul,map_inv,wordValue,FreeGroup.lift_apply_of,he,mul_inv_cancel]
852
+ change pathProduct gen (basedLabel L root N a) (upperTriangleWord L ab ac bc) g = 1
853
+ rw [upperTriangleWord,pathProduct_conjugate_loop gen _ _ _ hr]
854
+ rw [upperInnerWord_product L root N a rev tri _ q r s h]
855
+ group
856
+
857
+ include rev tri in
858
+ theorem triangleWord_product (s : Shape L 3) (g : (height L).ker) :
859
+ pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
860
+ (basedLabel L root N a) (triangleWord L s) g = 1 := by
861
+ obtain ⟨q,r,t,h,n,hn,rfl⟩ := shape_three_form L s
862
+ rcases hn with rfl | rfl
863
+ · simpa [triangleWord,triangleWordList,triangleShape] using
864
+ lowerTriangleWord_product L root N a rev tri g q r t h
865
+ · simpa [triangleWord,triangleWordList,triangleShape] using
866
+ upperTriangleWord_product L root N a rev tri g q r t h
867
+
868
+
869
+ variable {L N}
870
+ def walkWord {g k : NegativeLevel L N} : Walk L N g k → FreeGroup (Shape L 2)
871
+ | .nil _ => 1
872
+ | .cons q r h p => orientedWord L q r h * walkWord p
873
+
874
+ theorem walkWord_endpoint {g k : NegativeLevel L N} (p : Walk L N g k)
875
+ (x : (height L).ker) (hx : levelEquiv L root N x = g) :
876
+ levelEquiv L root N
877
+ (x * wordValue (generator L (height L) (artinGenerator L) root (height_generator L))
878
+ (walkWord p)) = k := by
879
+ induction p generalizing x with
880
+ | nil g => simpa [walkWord] using hx
881
+ | @cons g k q r h p ih =>
882
+ simp only [walkWord,map_mul,← mul_assoc]
883
+ exact ih _ ((levelEquiv_orientedWord L root N x q r h).trans
884
+ (congrArg (fun t => edgeVertex L N t q r) hx))
885
+
886
+ include rev in
887
+ theorem walkWord_product {g k : NegativeLevel L N} (p : Walk L N g k)
888
+ (x : (height L).ker) (hx : levelEquiv L root N x = g) :
889
+ pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
890
+ (basedLabel L root N a) (walkWord p) x = p.eval a := by
891
+ induction p generalizing x with
892
+ | nil g => simp [walkWord,Walk.eval]
893
+ | @cons g k q r h p ih =>
894
+ rw [walkWord,pathProduct_mul,orientedWord_product L root N a rev x q r h]
895
+ rw [ih _ ((levelEquiv_orientedWord L root N x q r h).trans
896
+ (congrArg (fun t => edgeVertex L N t q r) hx)),hx]
897
+ rfl
898
+
899
+ include rev in
900
+ theorem nontrivial_word_of_walk {g : NegativeLevel L N} (p : Walk L N g g)
901
+ (hp : p.eval a ≠ 1) :
902
+ ∃ (w : FreeGroup (Shape L 2)) (x : (height L).ker),
903
+ wordValue (generator L (height L) (artinGenerator L) root (height_generator L)) w = 1 ∧
904
+ pathProduct (generator L (height L) (artinGenerator L) root (height_generator L))
905
+ (basedLabel L root N a) w x ≠ 1 := by
906
+ let x := (levelEquiv L root N).symm g
907
+ have hx : levelEquiv L root N x = g := (levelEquiv L root N).apply_symm_apply g
908
+ refine ⟨walkWord p,x,?_,?_⟩
909
+ · have he := walkWord_endpoint root p x hx
910
+ have he' := (levelEquiv L root N).injective (he.trans hx.symm)
911
+ exact mul_left_cancel (he'.trans (mul_one x).symm)
912
+ · rwa [walkWord_product root a rev p x hx]
913
+
914
+ end EilenbergGanea.LevelBasis
915
+
916
+ namespace EilenbergGanea.LevelBasis
917
+ open LevelTransport
918
+ variable {V : Type} [LinearOrder V] [Fintype V] [Nonempty V] (L : SimpleGraph V)
919
+ variable [Group.ResiduallyFinite (height L).ker]
920
+ variable (root : V) (hconn : L.Preconnected)
921
+ variable (K : SimplicialChains.Contraction L)
922
+ variable (dim : ∀ w, SimplicialChains.Valid L w → w.length ≤ 3)
923
+
924
+ include root hconn K dim in
925
+ /-- The source obstruction's algebraic endpoint, with no cardinal bound on
926
+ an alleged presentation. Its geometric premise must still be derived from an
927
+ ordinary two-dimensional classifying CW space. -/
928
+ theorem no_boundary_basis_presentation
929
+ (small : ∀ ε : ℝ, 0 < ε →
930
+ ∃ N : ℕ, 1 < N ∧ ∃ a : NegativeLevel L N → V → V → SU2,
931
+ (∀ g q r, a (edgeVertex L N g q r) r q = (a g q r)⁻¹) ∧
932
+ (∀ g q r, dist (a g q r) 1 < ε) ∧
933
+ (∀ g₀ g₁ g₂ q₀ r₀ q₁ r₁ q₂ r₂,
934
+ edgeVertex L N g₀ q₀ r₀ = g₁ →
935
+ edgeVertex L N g₁ q₁ r₁ = g₂ →
936
+ edgeVertex L N g₂ q₂ r₂ = g₀ →
937
+ a g₀ q₀ r₀ * a g₁ q₁ r₁ * a g₂ q₂ r₂ = 1) ∧
938
+ ∃ (g : NegativeLevel L N) (p : Walk L N g g), p.eval a ≠ 1)
939
+ {A R : Type*} (a₀ : A → (height L).ker)
940
+ (ha₀ : Function.Surjective (wordValue a₀))
941
+ (r₀ : R → FreeGroup A) (hr₀ : ∀ i, wordValue a₀ (r₀ i) = 1)
942
+ (hp₀ : (wordValue a₀).ker = Subgroup.normalClosure (Set.range r₀))
943
+ (E : BasedChains (height L).ker R ≃ₗ[ℤ] cycles a₀)
944
+ (hE : ∀ c, (E c : BasedChains (height L).ker A) = relatorChainMap a₀ r₀ c) : False := by
945
+ let gen := generator L (height L) (artinGenerator L) root (height_generator L)
946
+ let comm := fun q r h => @adjacent_generators_commute V L q r h
947
+ let B := triangleBasis L (height L) (artinGenerator L) root (height_generator L)
948
+ comm K (artin_total_cycle_bounds L) dim
949
+ obtain ⟨η,hη,hηa⟩ := boundary_basis_small_transport gen
950
+ (generator_surjective L hconn root) (triangleWord L)
951
+ (triangleWord_trivial L (height L) (artinGenerator L) root (height_generator L) comm)
952
+ B (triangleBasis_value L (height L) (artinGenerator L) root (height_generator L)
953
+ comm K (artin_total_cycle_bounds L) dim) a₀ ha₀ r₀ hr₀ hp₀ E hE
954
+ obtain ⟨N,_,a,ha,hb,ht,g,p,hp⟩ := small η hη
955
+ obtain ⟨w,x,hw,hx⟩ := nontrivial_word_of_walk root a ha p hp
956
+ apply hx
957
+ exact hηa (basedLabel L root N a)
958
+ (fun x s => by
959
+ simpa only [basedLabel,Subtype.dist_eq,dist_eq_norm,OneMemClass.coe_one] using
960
+ hb (levelEquiv L root N x) (s.val.1.tail.headD root) (s.val.1.headD root))
961
+ (triangleWord_product L root N a ha ht) w hw x
962
+
963
+ end EilenbergGanea.LevelBasis
964
+
965
+
966
+ end
967
+
968
+ end OAI
lean/OAI/Topology/EilenbergGanea/LevelTransport.lean CHANGED
@@ -1,626 +1,626 @@
1
- import OAI.Topology.EilenbergGanea.AffineTransport
2
- import OAI.Topology.EilenbergGanea.SeedConnection
3
-
4
- namespace OAI
5
-
6
- noncomputable section
7
-
8
- open Classical Set Filter Topology MeasureTheory
9
- open scoped Quaternion ContDiff
10
-
11
- namespace EilenbergGanea
12
- namespace LevelTransport
13
- open TraceWords AffineTransport
14
-
15
- variable {V : Type*} [Fintype V] [LinearOrder V] (L : SimpleGraph V)
16
- variable (hdim : ∀ s : Finset V, (s : Set V).Pairwise L.Adj → s.card ≤ 3)
17
-
18
- def point (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g)) : TrianglePoint V :=
19
- ⟨artinDirection L g,by
20
- apply mem_triangleSet.mpr
21
- refine ⟨(traceCounts L (artinNormalTrace L g)).support,
22
- hdim _ (traceCounts_support_clique L _),⟨?_,?_⟩,?_⟩
23
- · exact traceDirection_nonneg L _
24
- · exact traceDirection_sum L hg
25
- · intro v hv
26
- simp only [Finsupp.notMem_support_iff] at hv
27
- simp [artinDirection,traceDirection,hv]⟩
28
-
29
- @[simp] theorem point_val (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g)) :
30
- (point L hdim g hg : V → ℝ) = artinDirection L g := rfl
31
-
32
- theorem point_mem_support (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g))
33
- {v : V} (hv : (point L hdim g hg : V → ℝ) v ≠ 0) :
34
- v ∈ (traceCounts L (artinNormalTrace L g)).support := by
35
- by_contra h
36
- have he := Finsupp.notMem_support_iff.mp h
37
- exact hv (by simp [point,artinDirection,traceDirection,he])
38
-
39
- theorem point_clique (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g)) :
40
- CliquePoint L (point L hdim g hg) := by
41
- intro a ha v hv
42
- by_cases hav : a = v
43
- · exact Or.inl hav
44
- · exact Or.inr (traceCounts_support_clique L _
45
- (point_mem_support L hdim g hg ha) (point_mem_support L hdim g hg hv) hav)
46
-
47
- /-- Both hypotheses refer to actual reduced Artin lengths, not an assumed word metric. -/
48
- theorem point_step (g : ArtinGroup L) (x : Letter V)
49
- (hg : 0 < traceLength L (artinNormalTrace L g))
50
- (hgx : 0 < traceLength L (artinNormalTrace L (g * letterValue (artinGenerator L) x)))
51
- (N : ℕ) (hNg : N ≤ traceLength L (artinNormalTrace L g))
52
- (hNgx : N ≤ traceLength L (artinNormalTrace L (g * letterValue (artinGenerator L) x))) :
53
- Compatible L (point L hdim g hg) (point L hdim (g * letterValue (artinGenerator L) x) hgx) ∧
54
- dist (point L hdim g hg) (point L hdim (g * letterValue (artinGenerator L) x) hgx) ≤
55
- 2 / (N+1 : ℝ) := by
56
- classical
57
- obtain ⟨hs,n,_,hn,hbd⟩ := artinDirection_right_step L g x hg hgx
58
- have hNn : N ≤ n := by rcases hn with ⟨he,_⟩ | ⟨he,_⟩ <;> omega
59
- constructor
60
- · intro v w hv hw
61
- by_cases he : v = w
62
- · exact Or.inl he
63
- · apply Or.inr
64
- apply hs _ _ he
65
- · rcases hv with hv | hv
66
- · exact Finset.mem_union_left _ (point_mem_support L hdim g hg hv)
67
- · exact Finset.mem_union_right _ (point_mem_support L hdim _ hgx hv)
68
- · rcases hw with hw | hw
69
- · exact Finset.mem_union_left _ (point_mem_support L hdim g hg hw)
70
- · exact Finset.mem_union_right _ (point_mem_support L hdim _ hgx hw)
71
- · have hc : (N : ℝ) + 1 ≤ (n : ℝ) + 1 := by exact_mod_cast Nat.add_le_add_right hNn 1
72
- have hd : 0 < (N : ℝ) + 1 := by positivity
73
- have hfrac : 2 / (n+1 : ℝ) ≤ 2 / (N+1 : ℝ) :=
74
- div_le_div_of_nonneg_left (by norm_num) hd hc
75
- apply le_trans ?_ hfrac
76
- change dist (artinDirection L g) (artinDirection L (g * letterValue (artinGenerator L) x)) ≤ _
77
- apply (dist_pi_le_iff (by positivity)).mpr
78
- intro v
79
- rw [Real.dist_eq,abs_sub_comm]
80
- 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
81
-
82
-
83
- /-- The integral level downstairs; the action is by left multiplication by the height kernel. -/
84
- abbrev NegativeLevel (N : ℕ) := {g : ArtinGroup L // (height L g).toAdd = -(N : ℤ)}
85
-
86
- omit [Fintype V] [LinearOrder V] in
87
- theorem negative_level_length (N : ℕ) {g : ArtinGroup L}
88
- (hg : (height L g).toAdd = -(N : ℤ)) :
89
- N ≤ traceLength L (artinNormalTrace L g) := by
90
- have hh := height_abs_le_traceLength L g
91
- rw [hg,abs_neg,abs_of_nonneg (Nat.cast_nonneg N)] at hh
92
- exact_mod_cast hh
93
-
94
- def levelPoint (N : ℕ) (hN : 0 < N) (g : NegativeLevel L N) : TrianglePoint V :=
95
- point L hdim g (lt_of_lt_of_le hN (negative_level_length L N g.property))
96
-
97
- @[simp] theorem levelPoint_val (N : ℕ) (hN : 0 < N) (g : NegativeLevel L N) :
98
- (levelPoint L hdim N hN g : V → ℝ) = artinDirection L g := rfl
99
-
100
- def upperVertex (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (v : V) :
101
- NegativeLevel L (N-1) :=
102
- ⟨(g : ArtinGroup L) * artinGenerator L v,by
103
- rw [map_mul,height_generator]
104
- change (height L (g : ArtinGroup L)).toAdd + 1 = _
105
- rw [g.property]
106
- omega⟩
107
-
108
- def edgeVertex (N : ℕ) (g : NegativeLevel L N) (q r : V) : NegativeLevel L N :=
109
- ⟨(g : ArtinGroup L) * artinGenerator L q * (artinGenerator L r)⁻¹,by
110
- simp only [map_mul,map_inv,height_generator]
111
- change (height L (g : ArtinGroup L)).toAdd + 1 + -1 = _
112
- rw [g.property]
113
- omega⟩
114
-
115
- omit [Fintype V] [LinearOrder V] in
116
- theorem edgeVertex_reverse (N : ℕ) (g : NegativeLevel L N) (q r : V) :
117
- edgeVertex L N (edgeVertex L N g q r) r q = g := by
118
- apply Subtype.ext
119
- change (g : ArtinGroup L) * _ * _ * _ * _ = _
120
- group
121
-
122
- omit [Fintype V] [LinearOrder V] in
123
- theorem upperVertex_reverse (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (q r : V) :
124
- upperVertex L N hN (edgeVertex L N g q r) r = upperVertex L N hN g q := by
125
- apply Subtype.ext
126
- dsimp only [edgeVertex,upperVertex]
127
- group
128
-
129
- theorem upperPoint_step (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (v : V) :
130
- Compatible L (levelPoint L hdim N (by omega) g)
131
- (levelPoint L hdim (N-1) (by omega) (upperVertex L N hN g v)) ∧
132
- dist (levelPoint L hdim N (by omega) g)
133
- (levelPoint L hdim (N-1) (by omega) (upperVertex L N hN g v)) ≤ 2 / (N : ℝ) := by
134
- let hu := upperVertex L N hN g v
135
- have hlen := negative_level_length L N g.property
136
- have hlen' := negative_level_length L (N-1) hu.property
137
- dsimp only [hu,upperVertex] at hlen'
138
- have H := point_step L hdim (g : ArtinGroup L) (v,true)
139
- (lt_of_lt_of_le (by omega : 0 < N) hlen)
140
- (by simpa only [letterValue_positive] using lt_of_lt_of_le (by omega : 0 < N-1) hlen')
141
- (N-1) (le_trans (Nat.sub_le N 1) hlen)
142
- (by simpa only [letterValue_positive] using hlen')
143
- have he : ((N-1 : ℕ) : ℝ) + 1 = (N : ℝ) := by exact_mod_cast (show (N-1 : ℕ) + 1 = N by omega)
144
- simpa only [levelPoint,upperVertex,letterValue_positive,he] using H
145
-
146
- variable (h : V → V → SU2) (Q : V → ℍ)
147
-
148
- def edgeLabel (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (q r : V) : SU2 :=
149
- edgeTransport h Q (levelPoint L hdim N (by omega) g)
150
- (levelPoint L hdim (N-1) (by omega) (upperVertex L N hN g q))
151
- (levelPoint L hdim N (by omega) (edgeVertex L N g q r))
152
-
153
- theorem edgeLabel_reverse (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
154
- (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (q r : V) :
155
- edgeLabel L hdim h Q N hN (edgeVertex L N g q r) r q =
156
- (edgeLabel L hdim h Q N hN g q r)⁻¹ := by
157
- have h₁ := (upperPoint_step L hdim N hN g q).1
158
- have h₂ := (upperPoint_step L hdim N hN (edgeVertex L N g q r) r).1
159
- rw [upperVertex_reverse] at h₂
160
- unfold edgeLabel
161
- rw [edgeVertex_reverse,upperVertex_reverse]
162
- exact edgeTransport_reverse L h Q hf hQ h₁ (compatible_symm L h₂)
163
-
164
- theorem edgeLabel_uniform (hQ : GeneralPosition h Q) {ε : ℝ} (hε : 0 < ε) :
165
- ∃ M : ℕ, ∀ N : ℕ, M ≤ N → ∀ hN : 1 < N, ∀ g : NegativeLevel L N, ∀ q r : V,
166
- dist (edgeLabel L hdim h Q N hN g q r) 1 < ε := by
167
- obtain ⟨δ,hδ,H⟩ := edgeTransport_uniform h Q hQ hε
168
- obtain ⟨M,hM⟩ := exists_nat_gt (2 / δ)
169
- refine ⟨M,?_⟩
170
- intro N hMN hN g q r
171
- have hN0 : (0 : ℝ) < N := by exact_mod_cast (by omega : 0 < N)
172
- have hbound : 2 / (N : ℝ) < δ := by
173
- apply (div_lt_iff₀ hN0).mpr
174
- have hMN' : (M : ℝ) ≤ N := by exact_mod_cast hMN
175
- have hh := (div_lt_iff₀ hδ).mp hM
176
- nlinarith
177
- apply H
178
- · exact lt_of_le_of_lt (upperPoint_step L hdim N hN g q).2 hbound
179
- · have hh := (upperPoint_step L hdim N hN (edgeVertex L N g q r) r).2
180
- rw [upperVertex_reverse,dist_comm] at hh
181
- exact lt_of_le_of_lt hh hbound
182
-
183
-
184
- omit [LinearOrder V] in
185
- /-- Six compatible generator pieces around a level triangle lie in one flat chart
186
- once the three edge images are uniformly short. -/
187
- theorem triangle_of_short (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
188
- (b c d u v w : TrianglePoint V) (δ : ℝ) (hδ : 0 < δ)
189
- (hsmall : 4 * δ < 1 / (Fintype.card V + 1 : ℝ))
190
- (hb : CliquePoint L b) (hc : CliquePoint L c) (hd : CliquePoint L d)
191
- (hu : CliquePoint L u) (hv : CliquePoint L v) (hw : CliquePoint L w)
192
- (hbu : Compatible L b u) (huc : Compatible L u c)
193
- (hcv : Compatible L c v) (hvd : Compatible L v d)
194
- (hdw : Compatible L d w) (hwb : Compatible L w b)
195
- (dbu : dist b u ≤ δ) (duc : dist u c ≤ δ)
196
- (dcv : dist c v ≤ δ) (dvd : dist v d ≤ δ)
197
- (_ddw : dist d w ≤ δ) (dwb : dist w b ≤ δ) :
198
- edgeTransport h Q b u c * edgeTransport h Q c v d * edgeTransport h Q d w b = 1 := by
199
- have dbc : dist b c ≤ 2 * δ := by linarith [dist_triangle b u c]
200
- have dbv : dist b v ≤ 3 * δ := by linarith [dist_triangle b c v]
201
- have dbd : dist b d ≤ 4 * δ := by linarith [dist_triangle b v d]
202
- have dbw : dist b w ≤ δ := by simpa only [dist_comm] using dwb
203
- obtain ⟨a,ha⟩ := exists_large_coordinate b
204
- apply edgeTransport_triangle L h Q hf hQ b c d u v w hbu huc hcv hvd hdw hwb
205
- · 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 : ℝ))))
206
- · exact nearby_star L ha hc (by linarith)
207
- · exact nearby_star L ha hd (lt_of_le_of_lt dbd hsmall)
208
- · exact nearby_star L ha hu (by linarith)
209
- · exact nearby_star L ha hv (by linarith)
210
- · exact nearby_star L ha hw (by linarith)
211
-
212
- /-- Every oriented three-edge loop with these actual level endpoints is flat.
213
- In particular both kinds of sections of a three-cube are covered. -/
214
- theorem edgeLabel_triangle (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
215
- (N : ℕ) (hN : 1 < N) (hsize : 8 / (N : ℝ) < 1 / (Fintype.card V + 1 : ℝ))
216
- (g₀ g₁ g₂ : NegativeLevel L N) (q₀ r₀ q₁ r₁ q₂ r₂ : V)
217
- (e₀ : edgeVertex L N g₀ q₀ r₀ = g₁)
218
- (e₁ : edgeVertex L N g₁ q₁ r₁ = g₂)
219
- (e₂ : edgeVertex L N g₂ q₂ r₂ = g₀) :
220
- edgeLabel L hdim h Q N hN g₀ q₀ r₀ *
221
- edgeLabel L hdim h Q N hN g₁ q₁ r₁ *
222
- edgeLabel L hdim h Q N hN g₂ q₂ r₂ = 1 := by
223
- have h₀ := upperPoint_step L hdim N hN g₀ q₀
224
- have h₁ := upperPoint_step L hdim N hN g₁ q₁
225
- have h₂ := upperPoint_step L hdim N hN g₂ q₂
226
- have j₀ := upperPoint_step L hdim N hN g₁ r₀
227
- have j₁ := upperPoint_step L hdim N hN g₂ r₁
228
- have j₂ := upperPoint_step L hdim N hN g₀ r₂
229
- rw [← e₀,upperVertex_reverse,e₀] at j₀
230
- rw [← e₁,upperVertex_reverse,e₁] at j₁
231
- rw [← e₂,upperVertex_reverse,e₂] at j₂
232
- unfold edgeLabel
233
- rw [e₀,e₁,e₂]
234
- apply triangle_of_short L h Q hf hQ _ _ _ _ _ _ (2/(N : ℝ))
235
- · positivity
236
- · convert hsize using 1; ring
237
- · exact point_clique L hdim _ _
238
- · exact point_clique L hdim _ _
239
- · exact point_clique L hdim _ _
240
- · exact point_clique L hdim _ _
241
- · exact point_clique L hdim _ _
242
- · exact point_clique L hdim _ _
243
- · exact h₀.1
244
- · exact compatible_symm L j₀.1
245
- · exact h₁.1
246
- · exact compatible_symm L j₁.1
247
- · exact h₂.1
248
- · exact compatible_symm L j₂.1
249
- · exact h₀.2
250
- · simpa only [dist_comm] using j₀.2
251
- · exact h₁.2
252
- · simpa only [dist_comm] using j₁.2
253
- · exact h₂.2
254
- · simpa only [dist_comm] using j₂.2
255
-
256
-
257
- /-- A vertex of the simplex is also an honest point of its two-skeleton. -/
258
- def vertexPoint (v : V) : TrianglePoint V :=
259
- ⟨fun w => if v = w then 1 else 0,by
260
- apply mem_triangleSet.mpr
261
- refine ⟨{v},by simp,⟨?_,?_⟩,?_⟩
262
- · intro w; dsimp only; split_ifs <;> norm_num
263
- · simp
264
- · intro w hw
265
- simp only [Finset.mem_singleton] at hw
266
- simp [Ne.symm hw]⟩
267
-
268
- @[simp] theorem vertexPoint_val (v w : V) :
269
- (vertexPoint v : V → ℝ) w = if v = w then 1 else 0 := rfl
270
-
271
- theorem star_vertex {a v : V} (hav : Related L a v) : Star L a (vertexPoint v) := by
272
- intro w hw
273
- have he : v = w := by by_contra hh; exact hw (by simp [vertexPoint,hh])
274
- simpa only [← he] using hav
275
-
276
- omit [Fintype V] [LinearOrder V] in
277
- theorem negative_powers_upper {q r : V} (hqr : L.Adj q r) (n m : ℕ) :
278
- (artinGenerator L q)⁻¹ ^ (n+1) * (artinGenerator L r)⁻¹ ^ m * artinGenerator L q =
279
- (artinGenerator L q)⁻¹ ^ n * (artinGenerator L r)⁻¹ ^ m := by
280
- have hc := (adjacent_generators_commute L hqr).inv_right.pow_right m
281
- calc
282
- _ = (artinGenerator L q)⁻¹ ^ n *
283
- ((artinGenerator L q)⁻¹ * ((artinGenerator L r)⁻¹ ^ m * artinGenerator L q)) := by
284
- simp only [pow_succ]; group
285
- _ = (artinGenerator L q)⁻¹ ^ n *
286
- ((artinGenerator L q)⁻¹ * (artinGenerator L q * (artinGenerator L r)⁻¹ ^ m)) := by
287
- rw [← hc.eq]
288
- _ = _ := by group
289
-
290
- /-- Negative commuting powers remain exactly in their two-coordinate face. -/
291
- theorem powersPoint_star {q r : V} (hqr : L.Adj q r) (n m : ℕ)
292
- (hg : 0 < traceLength L (artinNormalTrace L
293
- ((artinGenerator L q)⁻¹ ^ n * (artinGenerator L r)⁻¹ ^ m))) :
294
- Star L q (point L hdim ((artinGenerator L q)⁻¹ ^ n * (artinGenerator L r)⁻¹ ^ m) hg) := by
295
- intro v hv
296
- by_cases hqv : q = v
297
- · exact Or.inl hqv
298
- by_cases hrv : r = v
299
- · exact Or.inr (hrv ▸ hqr)
300
- exfalso
301
- apply hv
302
- rw [point_val,direction_negative_commuting_powers L hqr]
303
- simp [hqv,hrv]
304
-
305
- /-- Constant endpoint in the q-direction, stated with a concrete positive height. -/
306
- theorem powersPoint_first {q r : V} (hqr : L.Adj q r) (N : ℕ) (hN : 0 < N)
307
- (hg : 0 < traceLength L (artinNormalTrace L
308
- ((artinGenerator L q)⁻¹ ^ N * (artinGenerator L r)⁻¹ ^ 0))) :
309
- point L hdim ((artinGenerator L q)⁻¹ ^ N * (artinGenerator L r)⁻¹ ^ 0) hg =
310
- vertexPoint q := by
311
- apply Subtype.ext
312
- funext v
313
- rw [point_val,vertexPoint_val,direction_negative_commuting_powers L hqr]
314
- have hn : (N : ℝ) ≠ 0 := by exact_mod_cast Nat.ne_of_gt hN
315
- by_cases hv : q = v <;> simp [hv,hn]
316
-
317
- theorem powersPoint_last {q r : V} (hqr : L.Adj q r) (N : ℕ) (hN : 0 < N)
318
- (hg : 0 < traceLength L (artinNormalTrace L
319
- ((artinGenerator L q)⁻¹ ^ 0 * (artinGenerator L r)⁻¹ ^ N))) :
320
- point L hdim ((artinGenerator L q)⁻¹ ^ 0 * (artinGenerator L r)⁻¹ ^ N) hg =
321
- vertexPoint r := by
322
- apply Subtype.ext
323
- funext v
324
- rw [point_val,vertexPoint_val,direction_negative_commuting_powers L hqr]
325
- have hn : (N : ℝ) ≠ 0 := by exact_mod_cast Nat.ne_of_gt hN
326
- by_cases hv : r = v <;> simp [hv,hn]
327
-
328
- def powerVertex (N : ℕ) (q r : V) (j : ℕ) : NegativeLevel L N :=
329
- ⟨(artinGenerator L q)⁻¹ ^ (N - min j N) * (artinGenerator L r)⁻¹ ^ min j N,by
330
- simp only [map_mul,map_pow,map_inv,height_generator]
331
- change (N-min j N : ℕ) • (-1 : ℤ) + (min j N : ℕ) • (-1 : ℤ) = _
332
- simp only [nsmul_eq_mul,mul_neg,mul_one]
333
- have hh : min j N ≤ N := min_le_right _ _
334
- omega⟩
335
-
336
- omit [Fintype V] [LinearOrder V] in
337
- theorem powerVertex_step (N : ℕ) {q r : V} (hqr : L.Adj q r) {j : ℕ} (hj : j < N) :
338
- edgeVertex L N (powerVertex L N q r j) q r = powerVertex L N q r (j+1) := by
339
- apply Subtype.ext
340
- dsimp only [powerVertex,edgeVertex]
341
- rw [min_eq_left (by omega : j ≤ N),min_eq_left (by omega : j+1 ≤ N)]
342
- have he : N-j = (N-(j+1))+1 := by omega
343
- rw [he,negative_powers_upper L hqr,pow_succ]
344
- group
345
-
346
- omit [Fintype V] [LinearOrder V] in
347
- theorem powerVertex_upper (N : ℕ) (hN : 1 < N) {q r : V}
348
- (hqr : L.Adj q r) {j : ℕ} (hj : j < N) :
349
- (upperVertex L N hN (powerVertex L N q r j) q : ArtinGroup L) =
350
- (artinGenerator L q)⁻¹ ^ (N-(j+1)) * (artinGenerator L r)⁻¹ ^ j := by
351
- dsimp only [powerVertex,upperVertex]
352
- rw [min_eq_left (by omega : j ≤ N)]
353
- have he : N-j = (N-(j+1))+1 := by omega
354
- rw [he,negative_powers_upper L hqr]
355
-
356
- theorem powerVertex_star (N : ℕ) (hN : 0 < N) {q r : V} (hqr : L.Adj q r) (j : ℕ) :
357
- Star L q (levelPoint L hdim N hN (powerVertex L N q r j)) :=
358
- powersPoint_star L hdim hqr _ _ _
359
-
360
- theorem powerVertex_upper_star (N : ℕ) (hN : 1 < N) {q r : V}
361
- (hqr : L.Adj q r) {j : ℕ} (hj : j < N) :
362
- Star L q (levelPoint L hdim (N-1) (by omega)
363
- (upperVertex L N hN (powerVertex L N q r j) q)) := by
364
- unfold levelPoint
365
- generalize_proofs hpos
366
- simp only [powerVertex_upper L N hN hqr hj] at hpos ⊢
367
- exact powersPoint_star L hdim hqr _ _ _
368
-
369
- theorem powerLabel_chart (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
370
- (N : ℕ) (hN : 1 < N) {q r : V} (hqr : L.Adj q r) {j : ℕ} (hj : j < N) :
371
- edgeLabel L hdim h Q N hN (powerVertex L N q r j) q r =
372
- chartTransport h Q q (levelPoint L hdim N (by omega) (powerVertex L N q r j))
373
- (levelPoint L hdim N (by omega) (powerVertex L N q r (j+1))) := by
374
- have hb := upperPoint_step L hdim N hN (powerVertex L N q r j) q
375
- have hc := upperPoint_step L hdim N hN (edgeVertex L N (powerVertex L N q r j) q r) r
376
- rw [upperVertex_reverse] at hc
377
- unfold edgeLabel
378
- rw [edgeTransport_chart L h Q hf hQ hb.1 (compatible_symm L hc.1)
379
- (powerVertex_star L hdim N (by omega) hqr j) (powerVertex_upper_star L hdim N hN hqr hj)]
380
- · rw [powerVertex_step L N hqr hj]
381
- · rw [powerVertex_step L N hqr hj]
382
- exact powerVertex_star L hdim N (by omega) hqr (j+1)
383
-
384
-
385
- /-- Directed walks retain the chosen generator pair, including parallel edges. -/
386
- inductive Walk (N : ℕ) : NegativeLevel L N → NegativeLevel L N → Type _
387
- | nil (g : NegativeLevel L N) : Walk N g g
388
- | cons {g k : NegativeLevel L N} (q r : V) (hqr : L.Adj q r)
389
- (p : Walk N (edgeVertex L N g q r) k) : Walk N g k
390
-
391
- namespace Walk
392
- variable {L} {N : ℕ}
393
-
394
- def append {g k l : NegativeLevel L N} : Walk L N g k → Walk L N k l → Walk L N g l
395
- | .nil _, p => p
396
- | .cons q r hqr p, t => .cons q r hqr (append p t)
397
-
398
- def cast {g k g' k' : NegativeLevel L N} (p : Walk L N g k)
399
- (hg : g = g') (hk : k = k') : Walk L N g' k' := hg ▸ hk ▸ p
400
-
401
- end Walk
402
-
403
- def walkProduct (N : ℕ) (hN : 1 < N) {g k : NegativeLevel L N} : Walk L N g k → SU2
404
- | .nil _ => 1
405
- | .cons (g := g) q r _ p => edgeLabel L hdim h Q N hN g q r * walkProduct N hN p
406
-
407
- @[simp] theorem walkProduct_nil (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) :
408
- walkProduct L hdim h Q N hN (.nil g) = 1 := rfl
409
-
410
- @[simp] theorem walkProduct_cons (N : ℕ) (hN : 1 < N) {g k : NegativeLevel L N}
411
- (q r : V) (hqr : L.Adj q r) (p : Walk L N (edgeVertex L N g q r) k) :
412
- walkProduct L hdim h Q N hN (.cons q r hqr p) =
413
- edgeLabel L hdim h Q N hN g q r * walkProduct L hdim h Q N hN p := rfl
414
-
415
- @[simp] theorem walkProduct_append (N : ℕ) (hN : 1 < N) {g k l : NegativeLevel L N}
416
- (p : Walk L N g k) (t : Walk L N k l) :
417
- walkProduct L hdim h Q N hN (p.append t) =
418
- walkProduct L hdim h Q N hN p * walkProduct L hdim h Q N hN t := by
419
- induction p with
420
- | nil => simp [Walk.append]
421
- | cons q r hqr p ih => simp [Walk.append,ih,mul_assoc]
422
-
423
- @[simp] theorem walkProduct_cast (N : ℕ) (hN : 1 < N) {g k g' k' : NegativeLevel L N}
424
- (p : Walk L N g k) (hg : g = g') (hk : k = k') :
425
- walkProduct L hdim h Q N hN (p.cast hg hk) = walkProduct L hdim h Q N hN p := by
426
- subst g'; subst k'; rfl
427
-
428
- /-- The entire subdivided edge has the exact endpoint transport, not merely a limit. -/
429
- theorem exists_powerWalk (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
430
- (N : ℕ) (hN : 1 < N) {q r : V} (hqr : L.Adj q r) (k : ℕ) (hk : k ≤ N) :
431
- ∃ p : Walk L N (powerVertex L N q r 0) (powerVertex L N q r k),
432
- walkProduct L hdim h Q N hN p =
433
- chartTransport h Q q (levelPoint L hdim N (by omega) (powerVertex L N q r 0))
434
- (levelPoint L hdim N (by omega) (powerVertex L N q r k)) := by
435
- induction k with
436
- | zero => exact ⟨.nil _,by simp [chartTransport]⟩
437
- | succ k ih =>
438
- obtain ⟨p,hp⟩ := ih (by omega)
439
- let t : Walk L N (powerVertex L N q r k)
440
- (edgeVertex L N (powerVertex L N q r k) q r) := .cons q r hqr (.nil _)
441
- let t' := t.cast rfl (powerVertex_step L N hqr (by omega : k < N))
442
- refine ⟨p.append t',?_⟩
443
- rw [walkProduct_append,hp]
444
- simp only [t',walkProduct_cast,t,walkProduct_cons,walkProduct_nil,mul_one]
445
- rw [powerLabel_chart L hdim h Q hf hQ N hN hqr (by omega),chartTransport_trans]
446
-
447
- def pureVertex (N : ℕ) (q : V) : NegativeLevel L N :=
448
- ⟨(artinGenerator L q)⁻¹ ^ N,by
449
- simp only [map_pow,map_inv,height_generator]
450
- change N • (-1 : ℤ) = -(N : ℤ)
451
- simp⟩
452
-
453
- omit [Fintype V] [LinearOrder V] in
454
- theorem powerVertex_zero (N : ℕ) (q r : V) :
455
- powerVertex L N q r 0 = pureVertex L N q := by apply Subtype.ext; simp [powerVertex,pureVertex]
456
-
457
- omit [Fintype V] [LinearOrder V] in
458
- theorem powerVertex_last (N : ℕ) (q r : V) :
459
- powerVertex L N q r N = pureVertex L N r := by apply Subtype.ext; simp [powerVertex,pureVertex]
460
-
461
- def vertexGauge (v : V) : SU2 := gauge h Q v (vertexPoint v)
462
-
463
- theorem levelPoint_power_zero (N : ℕ) (hN : 0 < N) {q r : V} (hqr : L.Adj q r) :
464
- levelPoint L hdim N hN (powerVertex L N q r 0) = vertexPoint q := by
465
- unfold levelPoint
466
- have hh : (powerVertex L N q r 0 : ArtinGroup L) =
467
- (artinGenerator L q)⁻¹ ^ N * (artinGenerator L r)⁻¹ ^ 0 := by simp [powerVertex]
468
- simp only [hh]
469
- exact powersPoint_first L hdim hqr N hN _
470
-
471
- theorem levelPoint_power_last (N : ℕ) (hN : 0 < N) {q r : V} (hqr : L.Adj q r) :
472
- levelPoint L hdim N hN (powerVertex L N q r N) = vertexPoint r := by
473
- unfold levelPoint
474
- have hh : (powerVertex L N q r N : ArtinGroup L) =
475
- (artinGenerator L q)⁻¹ ^ 0 * (artinGenerator L r)⁻¹ ^ N := by simp [powerVertex]
476
- simp only [hh]
477
- exact powersPoint_last L hdim hqr N hN _
478
-
479
- theorem exists_expanded_edge (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
480
- (N : ℕ) (hN : 1 < N) {q r : V} (hqr : L.Adj q r) :
481
- ∃ p : Walk L N (pureVertex L N q) (pureVertex L N r),
482
- walkProduct L hdim h Q N hN p =
483
- (vertexGauge h Q q)⁻¹ * h q r * vertexGauge h Q r := by
484
- obtain ⟨p,hp⟩ := exists_powerWalk L hdim h Q hf hQ N hN hqr N le_rfl
485
- refine ⟨p.cast (powerVertex_zero L N q r) (powerVertex_last L N q r),?_⟩
486
- rw [walkProduct_cast,hp,levelPoint_power_zero L hdim N (by omega) hqr,
487
- levelPoint_power_last L hdim N (by omega) hqr]
488
- unfold chartTransport vertexGauge
489
- rw [gauge_transition L h Q hf hQ (Or.inr hqr)
490
- (star_vertex L (Or.inr hqr)) (star_vertex L (Or.inl rfl))]
491
- group
492
-
493
- omit [Fintype V] [LinearOrder V] in
494
- def graphWalkProduct {a b : V} : L.Walk a b → SU2
495
- | .nil => 1
496
- | .cons (u := u) (v := v) _ p => h u v * graphWalkProduct p
497
-
498
- theorem exists_expanded_walk (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
499
- (N : ℕ) (hN : 1 < N) {q r : V} (w : L.Walk q r) :
500
- ∃ p : Walk L N (pureVertex L N q) (pureVertex L N r),
501
- walkProduct L hdim h Q N hN p =
502
- (vertexGauge h Q q)⁻¹ * graphWalkProduct L h w * vertexGauge h Q r := by
503
- induction w with
504
- | nil => exact ⟨.nil _,by simp [graphWalkProduct]⟩
505
- | @cons q t r hqt w ih =>
506
- obtain ⟨p,hp⟩ := exists_expanded_edge L hdim h Q hf hQ N hN hqt
507
- obtain ⟨s,hs⟩ := ih
508
- refine ⟨p.append s,?_⟩
509
- rw [walkProduct_append,hp,hs]
510
- simp only [graphWalkProduct]
511
- group
512
-
513
- omit [Fintype V] [LinearOrder V] in
514
- theorem graphWalkProduct_eq_zipWith {a b : V} (w : L.Walk a b) :
515
- graphWalkProduct L h w = (List.zipWith h w.support w.support.tail).prod := by
516
- induction w with
517
- | nil => simp [graphWalkProduct]
518
- | @cons q t r hqt w ih =>
519
- cases w with
520
- | nil => simp [graphWalkProduct]
521
- | cons htl p => simpa only [graphWalkProduct,SimpleGraph.Walk.support_cons,
522
- List.tail_cons,List.zipWith_cons_cons,List.prod_cons] using congrArg (h q t * ·) ih
523
-
524
- /-- A nontrivial seed holonomy survives every sufficiently translated level. -/
525
- theorem exists_nontrivial_level_walk (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
526
- (N : ℕ) (hN : 1 < N) {q : V} (w : L.Walk q q)
527
- (hw : graphWalkProduct L h w ≠ 1) :
528
- ∃ p : Walk L N (pureVertex L N q) (pureVertex L N q),
529
- walkProduct L hdim h Q N hN p ≠ 1 := by
530
- obtain ⟨p,hp⟩ := exists_expanded_walk L hdim h Q hf hQ N hN w
531
- refine ⟨p,?_⟩
532
- rw [hp]
533
- intro he
534
- apply hw
535
- calc
536
- graphWalkProduct L h w = vertexGauge h Q q *
537
- ((vertexGauge h Q q)⁻¹ * graphWalkProduct L h w * vertexGauge h Q q) *
538
- (vertexGauge h Q q)⁻¹ := by group
539
- _ = 1 := by rw [he]; group
540
-
541
-
542
- namespace Walk
543
- variable {L} {N : ℕ}
544
- omit [Fintype V] [LinearOrder V] in
545
- def eval (a : NegativeLevel L N → V → V → SU2)
546
- {g k : NegativeLevel L N} : Walk L N g k → SU2
547
- | .nil _ => 1
548
- | .cons (g := g) q r _ p => a g q r * eval a p
549
- end Walk
550
-
551
- theorem walkProduct_eq_eval (N : ℕ) (hN : 1 < N) {g k : NegativeLevel L N}
552
- (p : Walk L N g k) :
553
- walkProduct L hdim h Q N hN p = p.eval (edgeLabel L hdim h Q N hN) := by
554
- induction p with
555
- | nil => rfl
556
- | cons q r hqr p ih => simp only [walkProduct,Walk.eval,ih]
557
-
558
- end LevelTransport
559
-
560
- namespace SourceTransport
561
- open LevelTransport AffineTransport
562
-
563
- def seedWalk : seedGraph.Walk (.inl (.inl none)) (.inl (.inl none)) :=
564
- SimpleGraph.Walk.ofSupport SeedConnection.roseLoop
565
- (by simp [SeedConnection.roseLoop]) SeedConnection.roseLoop_edges
566
-
567
- theorem seedWalk_support : seedWalk.support = SeedConnection.roseLoop :=
568
- SimpleGraph.Walk.support_ofSupport _ _
569
-
570
- theorem seedWalk_product_ne : graphWalkProduct seedGraph SeedConnection.connection seedWalk ≠ 1 := by
571
- rw [graphWalkProduct_eq_zipWith,seedWalk_support]
572
- exact SeedConnection.roseLoop_nontrivial
573
-
574
- /-- Actual small flat transport for the fixed source level graph. There are no
575
- representation, direction-map, local-chart, or nontriviality hypotheses here. -/
576
- theorem source_small_labels (ε : ℝ) (hε : 0 < ε) :
577
- ∃ N : ℕ, 1 < N ∧ ∃ a : NegativeLevel seedGraph N → SeedCell → SeedCell → SU2,
578
- (∀ g q r, a (edgeVertex seedGraph N g q r) r q = (a g q r)⁻¹) ∧
579
- (∀ g q r, dist (a g q r) 1 < ε) ∧
580
- (∀ g₀ g₁ g₂ q₀ r₀ q₁ r₁ q₂ r₂,
581
- edgeVertex seedGraph N g₀ q₀ r₀ = g₁ →
582
- edgeVertex seedGraph N g₁ q₁ r₁ = g₂ →
583
- edgeVertex seedGraph N g₂ q₂ r₂ = g₀ →
584
- a g₀ q₀ r₀ * a g₁ q₁ r₁ * a g₂ q₂ r₂ = 1) ∧
585
- ∃ (g : NegativeLevel seedGraph N) (p : Walk seedGraph N g g), p.eval a ≠ 1 := by
586
- let : LinearOrder SeedCell := LinearOrder.lift' (Fintype.equivFin SeedCell)
587
- (Fintype.equivFin SeedCell).injective
588
- obtain ⟨Q,hQ⟩ := exists_generalPosition SeedConnection.connection
589
- have hf : FlatConnection seedGraph SeedConnection.connection :=
590
- fun _ _ _ hab hbc hac => SeedConnection.connection_flat hab hbc hac
591
- obtain ⟨M,hM⟩ := edgeLabel_uniform seedGraph SeedConnection.clique_card_le_three
592
- SeedConnection.connection Q hQ hε
593
- let D := Fintype.card SeedCell + 1
594
- let N := max M (8 * D + 2)
595
- have hMN : M ≤ N := le_max_left _ _
596
- have hNbound : 8 * D + 2 ≤ N := le_max_right _ _
597
- have hN : 1 < N := by omega
598
- have hD : (0 : ℝ) < D := by dsimp [D]; positivity
599
- have hNr : (0 : ℝ) < N := by exact_mod_cast (by omega : 0 < N)
600
- have hsize : 8 / (N : ℝ) < 1 / (Fintype.card SeedCell + 1 : ℝ) := by
601
- have hBN : (8 : ℝ) * D + 2 ≤ N := by exact_mod_cast hNbound
602
- have hDcast : (D : ℝ) = (Fintype.card SeedCell : ℝ) + 1 := by simp [D]
603
- rw [← hDcast]
604
- apply (div_lt_div_iff₀ hNr hD).mpr
605
- nlinarith
606
- let a := edgeLabel seedGraph SeedConnection.clique_card_le_three
607
- SeedConnection.connection Q N hN
608
- refine ⟨N,hN,a,?_,?_,?_,?_⟩
609
- · exact edgeLabel_reverse seedGraph SeedConnection.clique_card_le_three
610
- SeedConnection.connection Q hf hQ N hN
611
- · exact hM N hMN hN
612
- · exact edgeLabel_triangle seedGraph SeedConnection.clique_card_le_three
613
- SeedConnection.connection Q hf hQ N hN hsize
614
- · obtain ⟨p,hp⟩ := exists_nontrivial_level_walk seedGraph SeedConnection.clique_card_le_three
615
- SeedConnection.connection Q hf hQ N hN seedWalk seedWalk_product_ne
616
- refine ⟨_,p,?_⟩
617
- rwa [walkProduct_eq_eval] at hp
618
-
619
- end SourceTransport
620
- end EilenbergGanea
621
-
622
-
623
-
624
- end
625
-
626
- end OAI
 
1
+ import OAI.Topology.EilenbergGanea.AffineTransport
2
+ import OAI.Topology.EilenbergGanea.SeedConnection
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+
8
+ open Classical Set Filter Topology MeasureTheory
9
+ open scoped Quaternion ContDiff
10
+
11
+ namespace EilenbergGanea
12
+ namespace LevelTransport
13
+ open TraceWords AffineTransport
14
+
15
+ variable {V : Type*} [Fintype V] [LinearOrder V] (L : SimpleGraph V)
16
+ variable (hdim : ∀ s : Finset V, (s : Set V).Pairwise L.Adj → s.card ≤ 3)
17
+
18
+ def point (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g)) : TrianglePoint V :=
19
+ ⟨artinDirection L g,by
20
+ apply mem_triangleSet.mpr
21
+ refine ⟨(traceCounts L (artinNormalTrace L g)).support,
22
+ hdim _ (traceCounts_support_clique L _),⟨?_,?_⟩,?_⟩
23
+ · exact traceDirection_nonneg L _
24
+ · exact traceDirection_sum L hg
25
+ · intro v hv
26
+ simp only [Finsupp.notMem_support_iff] at hv
27
+ simp [artinDirection,traceDirection,hv]⟩
28
+
29
+ @[simp] theorem point_val (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g)) :
30
+ (point L hdim g hg : V → ℝ) = artinDirection L g := rfl
31
+
32
+ theorem point_mem_support (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g))
33
+ {v : V} (hv : (point L hdim g hg : V → ℝ) v ≠ 0) :
34
+ v ∈ (traceCounts L (artinNormalTrace L g)).support := by
35
+ by_contra h
36
+ have he := Finsupp.notMem_support_iff.mp h
37
+ exact hv (by simp [point,artinDirection,traceDirection,he])
38
+
39
+ theorem point_clique (g : ArtinGroup L) (hg : 0 < traceLength L (artinNormalTrace L g)) :
40
+ CliquePoint L (point L hdim g hg) := by
41
+ intro a ha v hv
42
+ by_cases hav : a = v
43
+ · exact Or.inl hav
44
+ · exact Or.inr (traceCounts_support_clique L _
45
+ (point_mem_support L hdim g hg ha) (point_mem_support L hdim g hg hv) hav)
46
+
47
+ /-- Both hypotheses refer to actual reduced Artin lengths, not an assumed word metric. -/
48
+ theorem point_step (g : ArtinGroup L) (x : Letter V)
49
+ (hg : 0 < traceLength L (artinNormalTrace L g))
50
+ (hgx : 0 < traceLength L (artinNormalTrace L (g * letterValue (artinGenerator L) x)))
51
+ (N : ℕ) (hNg : N ≤ traceLength L (artinNormalTrace L g))
52
+ (hNgx : N ≤ traceLength L (artinNormalTrace L (g * letterValue (artinGenerator L) x))) :
53
+ Compatible L (point L hdim g hg) (point L hdim (g * letterValue (artinGenerator L) x) hgx) ∧
54
+ dist (point L hdim g hg) (point L hdim (g * letterValue (artinGenerator L) x) hgx) ≤
55
+ 2 / (N+1 : ℝ) := by
56
+ classical
57
+ obtain ⟨hs,n,_,hn,hbd⟩ := artinDirection_right_step L g x hg hgx
58
+ have hNn : N ≤ n := by rcases hn with ⟨he,_⟩ | ⟨he,_⟩ <;> omega
59
+ constructor
60
+ · intro v w hv hw
61
+ by_cases he : v = w
62
+ · exact Or.inl he
63
+ · apply Or.inr
64
+ apply hs _ _ he
65
+ · rcases hv with hv | hv
66
+ · exact Finset.mem_union_left _ (point_mem_support L hdim g hg hv)
67
+ · exact Finset.mem_union_right _ (point_mem_support L hdim _ hgx hv)
68
+ · rcases hw with hw | hw
69
+ · exact Finset.mem_union_left _ (point_mem_support L hdim g hg hw)
70
+ · exact Finset.mem_union_right _ (point_mem_support L hdim _ hgx hw)
71
+ · have hc : (N : ℝ) + 1 ≤ (n : ℝ) + 1 := by exact_mod_cast Nat.add_le_add_right hNn 1
72
+ have hd : 0 < (N : ℝ) + 1 := by positivity
73
+ have hfrac : 2 / (n+1 : ℝ) ≤ 2 / (N+1 : ℝ) :=
74
+ div_le_div_of_nonneg_left (by norm_num) hd hc
75
+ apply le_trans ?_ hfrac
76
+ change dist (artinDirection L g) (artinDirection L (g * letterValue (artinGenerator L) x)) ≤ _
77
+ apply (dist_pi_le_iff (by positivity)).mpr
78
+ intro v
79
+ rw [Real.dist_eq,abs_sub_comm]
80
+ 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
81
+
82
+
83
+ /-- The integral level downstairs; the action is by left multiplication by the height kernel. -/
84
+ abbrev NegativeLevel (N : ℕ) := {g : ArtinGroup L // (height L g).toAdd = -(N : ℤ)}
85
+
86
+ omit [Fintype V] [LinearOrder V] in
87
+ theorem negative_level_length (N : ℕ) {g : ArtinGroup L}
88
+ (hg : (height L g).toAdd = -(N : ℤ)) :
89
+ N ≤ traceLength L (artinNormalTrace L g) := by
90
+ have hh := height_abs_le_traceLength L g
91
+ rw [hg,abs_neg,abs_of_nonneg (Nat.cast_nonneg N)] at hh
92
+ exact_mod_cast hh
93
+
94
+ def levelPoint (N : ℕ) (hN : 0 < N) (g : NegativeLevel L N) : TrianglePoint V :=
95
+ point L hdim g (lt_of_lt_of_le hN (negative_level_length L N g.property))
96
+
97
+ @[simp] theorem levelPoint_val (N : ℕ) (hN : 0 < N) (g : NegativeLevel L N) :
98
+ (levelPoint L hdim N hN g : V → ℝ) = artinDirection L g := rfl
99
+
100
+ def upperVertex (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (v : V) :
101
+ NegativeLevel L (N-1) :=
102
+ ⟨(g : ArtinGroup L) * artinGenerator L v,by
103
+ rw [map_mul,height_generator]
104
+ change (height L (g : ArtinGroup L)).toAdd + 1 = _
105
+ rw [g.property]
106
+ omega⟩
107
+
108
+ def edgeVertex (N : ℕ) (g : NegativeLevel L N) (q r : V) : NegativeLevel L N :=
109
+ ⟨(g : ArtinGroup L) * artinGenerator L q * (artinGenerator L r)⁻¹,by
110
+ simp only [map_mul,map_inv,height_generator]
111
+ change (height L (g : ArtinGroup L)).toAdd + 1 + -1 = _
112
+ rw [g.property]
113
+ omega⟩
114
+
115
+ omit [Fintype V] [LinearOrder V] in
116
+ theorem edgeVertex_reverse (N : ℕ) (g : NegativeLevel L N) (q r : V) :
117
+ edgeVertex L N (edgeVertex L N g q r) r q = g := by
118
+ apply Subtype.ext
119
+ change (g : ArtinGroup L) * _ * _ * _ * _ = _
120
+ group
121
+
122
+ omit [Fintype V] [LinearOrder V] in
123
+ theorem upperVertex_reverse (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (q r : V) :
124
+ upperVertex L N hN (edgeVertex L N g q r) r = upperVertex L N hN g q := by
125
+ apply Subtype.ext
126
+ dsimp only [edgeVertex,upperVertex]
127
+ group
128
+
129
+ theorem upperPoint_step (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (v : V) :
130
+ Compatible L (levelPoint L hdim N (by omega) g)
131
+ (levelPoint L hdim (N-1) (by omega) (upperVertex L N hN g v)) ∧
132
+ dist (levelPoint L hdim N (by omega) g)
133
+ (levelPoint L hdim (N-1) (by omega) (upperVertex L N hN g v)) ≤ 2 / (N : ℝ) := by
134
+ let hu := upperVertex L N hN g v
135
+ have hlen := negative_level_length L N g.property
136
+ have hlen' := negative_level_length L (N-1) hu.property
137
+ dsimp only [hu,upperVertex] at hlen'
138
+ have H := point_step L hdim (g : ArtinGroup L) (v,true)
139
+ (lt_of_lt_of_le (by omega : 0 < N) hlen)
140
+ (by simpa only [letterValue_positive] using lt_of_lt_of_le (by omega : 0 < N-1) hlen')
141
+ (N-1) (le_trans (Nat.sub_le N 1) hlen)
142
+ (by simpa only [letterValue_positive] using hlen')
143
+ have he : ((N-1 : ℕ) : ℝ) + 1 = (N : ℝ) := by exact_mod_cast (show (N-1 : ℕ) + 1 = N by omega)
144
+ simpa only [levelPoint,upperVertex,letterValue_positive,he] using H
145
+
146
+ variable (h : V → V → SU2) (Q : V → ℍ)
147
+
148
+ def edgeLabel (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (q r : V) : SU2 :=
149
+ edgeTransport h Q (levelPoint L hdim N (by omega) g)
150
+ (levelPoint L hdim (N-1) (by omega) (upperVertex L N hN g q))
151
+ (levelPoint L hdim N (by omega) (edgeVertex L N g q r))
152
+
153
+ theorem edgeLabel_reverse (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
154
+ (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) (q r : V) :
155
+ edgeLabel L hdim h Q N hN (edgeVertex L N g q r) r q =
156
+ (edgeLabel L hdim h Q N hN g q r)⁻¹ := by
157
+ have h₁ := (upperPoint_step L hdim N hN g q).1
158
+ have h₂ := (upperPoint_step L hdim N hN (edgeVertex L N g q r) r).1
159
+ rw [upperVertex_reverse] at h₂
160
+ unfold edgeLabel
161
+ rw [edgeVertex_reverse,upperVertex_reverse]
162
+ exact edgeTransport_reverse L h Q hf hQ h₁ (compatible_symm L h₂)
163
+
164
+ theorem edgeLabel_uniform (hQ : GeneralPosition h Q) {ε : ℝ} (hε : 0 < ε) :
165
+ ∃ M : ℕ, ∀ N : ℕ, M ≤ N → ∀ hN : 1 < N, ∀ g : NegativeLevel L N, ∀ q r : V,
166
+ dist (edgeLabel L hdim h Q N hN g q r) 1 < ε := by
167
+ obtain ⟨δ,hδ,H⟩ := edgeTransport_uniform h Q hQ hε
168
+ obtain ⟨M,hM⟩ := exists_nat_gt (2 / δ)
169
+ refine ⟨M,?_⟩
170
+ intro N hMN hN g q r
171
+ have hN0 : (0 : ℝ) < N := by exact_mod_cast (by omega : 0 < N)
172
+ have hbound : 2 / (N : ℝ) < δ := by
173
+ apply (div_lt_iff₀ hN0).mpr
174
+ have hMN' : (M : ℝ) ≤ N := by exact_mod_cast hMN
175
+ have hh := (div_lt_iff₀ hδ).mp hM
176
+ nlinarith
177
+ apply H
178
+ · exact lt_of_le_of_lt (upperPoint_step L hdim N hN g q).2 hbound
179
+ · have hh := (upperPoint_step L hdim N hN (edgeVertex L N g q r) r).2
180
+ rw [upperVertex_reverse,dist_comm] at hh
181
+ exact lt_of_le_of_lt hh hbound
182
+
183
+
184
+ omit [LinearOrder V] in
185
+ /-- Six compatible generator pieces around a level triangle lie in one flat chart
186
+ once the three edge images are uniformly short. -/
187
+ theorem triangle_of_short (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
188
+ (b c d u v w : TrianglePoint V) (δ : ℝ) (hδ : 0 < δ)
189
+ (hsmall : 4 * δ < 1 / (Fintype.card V + 1 : ℝ))
190
+ (hb : CliquePoint L b) (hc : CliquePoint L c) (hd : CliquePoint L d)
191
+ (hu : CliquePoint L u) (hv : CliquePoint L v) (hw : CliquePoint L w)
192
+ (hbu : Compatible L b u) (huc : Compatible L u c)
193
+ (hcv : Compatible L c v) (hvd : Compatible L v d)
194
+ (hdw : Compatible L d w) (hwb : Compatible L w b)
195
+ (dbu : dist b u ≤ δ) (duc : dist u c ≤ δ)
196
+ (dcv : dist c v ≤ δ) (dvd : dist v d ≤ δ)
197
+ (_ddw : dist d w ≤ δ) (dwb : dist w b ≤ δ) :
198
+ edgeTransport h Q b u c * edgeTransport h Q c v d * edgeTransport h Q d w b = 1 := by
199
+ have dbc : dist b c ≤ 2 * δ := by linarith [dist_triangle b u c]
200
+ have dbv : dist b v ≤ 3 * δ := by linarith [dist_triangle b c v]
201
+ have dbd : dist b d ≤ 4 * δ := by linarith [dist_triangle b v d]
202
+ have dbw : dist b w ≤ δ := by simpa only [dist_comm] using dwb
203
+ obtain ⟨a,ha⟩ := exists_large_coordinate b
204
+ apply edgeTransport_triangle L h Q hf hQ b c d u v w hbu huc hcv hvd hdw hwb
205
+ · 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 : ℝ))))
206
+ · exact nearby_star L ha hc (by linarith)
207
+ · exact nearby_star L ha hd (lt_of_le_of_lt dbd hsmall)
208
+ · exact nearby_star L ha hu (by linarith)
209
+ · exact nearby_star L ha hv (by linarith)
210
+ · exact nearby_star L ha hw (by linarith)
211
+
212
+ /-- Every oriented three-edge loop with these actual level endpoints is flat.
213
+ In particular both kinds of sections of a three-cube are covered. -/
214
+ theorem edgeLabel_triangle (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
215
+ (N : ℕ) (hN : 1 < N) (hsize : 8 / (N : ℝ) < 1 / (Fintype.card V + 1 : ℝ))
216
+ (g₀ g₁ g₂ : NegativeLevel L N) (q₀ r₀ q₁ r₁ q₂ r₂ : V)
217
+ (e₀ : edgeVertex L N g₀ q₀ r₀ = g₁)
218
+ (e₁ : edgeVertex L N g₁ q₁ r₁ = g₂)
219
+ (e₂ : edgeVertex L N g₂ q₂ r₂ = g₀) :
220
+ edgeLabel L hdim h Q N hN g₀ q₀ r₀ *
221
+ edgeLabel L hdim h Q N hN g₁ q₁ r₁ *
222
+ edgeLabel L hdim h Q N hN g₂ q₂ r₂ = 1 := by
223
+ have h₀ := upperPoint_step L hdim N hN g₀ q₀
224
+ have h₁ := upperPoint_step L hdim N hN g₁ q₁
225
+ have h₂ := upperPoint_step L hdim N hN g₂ q₂
226
+ have j₀ := upperPoint_step L hdim N hN g₁ r₀
227
+ have j₁ := upperPoint_step L hdim N hN g₂ r₁
228
+ have j₂ := upperPoint_step L hdim N hN g₀ r₂
229
+ rw [← e₀,upperVertex_reverse,e₀] at j₀
230
+ rw [← e₁,upperVertex_reverse,e₁] at j₁
231
+ rw [← e₂,upperVertex_reverse,e₂] at j₂
232
+ unfold edgeLabel
233
+ rw [e₀,e₁,e₂]
234
+ apply triangle_of_short L h Q hf hQ _ _ _ _ _ _ (2/(N : ℝ))
235
+ · positivity
236
+ · convert hsize using 1; ring
237
+ · exact point_clique L hdim _ _
238
+ · exact point_clique L hdim _ _
239
+ · exact point_clique L hdim _ _
240
+ · exact point_clique L hdim _ _
241
+ · exact point_clique L hdim _ _
242
+ · exact point_clique L hdim _ _
243
+ · exact h₀.1
244
+ · exact compatible_symm L j₀.1
245
+ · exact h₁.1
246
+ · exact compatible_symm L j₁.1
247
+ · exact h₂.1
248
+ · exact compatible_symm L j₂.1
249
+ · exact h₀.2
250
+ · simpa only [dist_comm] using j₀.2
251
+ · exact h₁.2
252
+ · simpa only [dist_comm] using j₁.2
253
+ · exact h₂.2
254
+ · simpa only [dist_comm] using j₂.2
255
+
256
+
257
+ /-- A vertex of the simplex is also an honest point of its two-skeleton. -/
258
+ def vertexPoint (v : V) : TrianglePoint V :=
259
+ ⟨fun w => if v = w then 1 else 0,by
260
+ apply mem_triangleSet.mpr
261
+ refine ⟨{v},by simp,⟨?_,?_⟩,?_⟩
262
+ · intro w; dsimp only; split_ifs <;> norm_num
263
+ · simp
264
+ · intro w hw
265
+ simp only [Finset.mem_singleton] at hw
266
+ simp [Ne.symm hw]⟩
267
+
268
+ @[simp] theorem vertexPoint_val (v w : V) :
269
+ (vertexPoint v : V → ℝ) w = if v = w then 1 else 0 := rfl
270
+
271
+ theorem star_vertex {a v : V} (hav : Related L a v) : Star L a (vertexPoint v) := by
272
+ intro w hw
273
+ have he : v = w := by by_contra hh; exact hw (by simp [vertexPoint,hh])
274
+ simpa only [← he] using hav
275
+
276
+ omit [Fintype V] [LinearOrder V] in
277
+ theorem negative_powers_upper {q r : V} (hqr : L.Adj q r) (n m : ℕ) :
278
+ (artinGenerator L q)⁻¹ ^ (n+1) * (artinGenerator L r)⁻¹ ^ m * artinGenerator L q =
279
+ (artinGenerator L q)⁻¹ ^ n * (artinGenerator L r)⁻¹ ^ m := by
280
+ have hc := (adjacent_generators_commute L hqr).inv_right.pow_right m
281
+ calc
282
+ _ = (artinGenerator L q)⁻¹ ^ n *
283
+ ((artinGenerator L q)⁻¹ * ((artinGenerator L r)⁻¹ ^ m * artinGenerator L q)) := by
284
+ simp only [pow_succ]; group
285
+ _ = (artinGenerator L q)⁻¹ ^ n *
286
+ ((artinGenerator L q)⁻¹ * (artinGenerator L q * (artinGenerator L r)⁻¹ ^ m)) := by
287
+ rw [← hc.eq]
288
+ _ = _ := by group
289
+
290
+ /-- Negative commuting powers remain exactly in their two-coordinate face. -/
291
+ theorem powersPoint_star {q r : V} (hqr : L.Adj q r) (n m : ℕ)
292
+ (hg : 0 < traceLength L (artinNormalTrace L
293
+ ((artinGenerator L q)⁻¹ ^ n * (artinGenerator L r)⁻¹ ^ m))) :
294
+ Star L q (point L hdim ((artinGenerator L q)⁻¹ ^ n * (artinGenerator L r)⁻¹ ^ m) hg) := by
295
+ intro v hv
296
+ by_cases hqv : q = v
297
+ · exact Or.inl hqv
298
+ by_cases hrv : r = v
299
+ · exact Or.inr (hrv ▸ hqr)
300
+ exfalso
301
+ apply hv
302
+ rw [point_val,direction_negative_commuting_powers L hqr]
303
+ simp [hqv,hrv]
304
+
305
+ /-- Constant endpoint in the q-direction, stated with a concrete positive height. -/
306
+ theorem powersPoint_first {q r : V} (hqr : L.Adj q r) (N : ℕ) (hN : 0 < N)
307
+ (hg : 0 < traceLength L (artinNormalTrace L
308
+ ((artinGenerator L q)⁻¹ ^ N * (artinGenerator L r)⁻¹ ^ 0))) :
309
+ point L hdim ((artinGenerator L q)⁻¹ ^ N * (artinGenerator L r)⁻¹ ^ 0) hg =
310
+ vertexPoint q := by
311
+ apply Subtype.ext
312
+ funext v
313
+ rw [point_val,vertexPoint_val,direction_negative_commuting_powers L hqr]
314
+ have hn : (N : ℝ) ≠ 0 := by exact_mod_cast Nat.ne_of_gt hN
315
+ by_cases hv : q = v <;> simp [hv,hn]
316
+
317
+ theorem powersPoint_last {q r : V} (hqr : L.Adj q r) (N : ℕ) (hN : 0 < N)
318
+ (hg : 0 < traceLength L (artinNormalTrace L
319
+ ((artinGenerator L q)⁻¹ ^ 0 * (artinGenerator L r)⁻¹ ^ N))) :
320
+ point L hdim ((artinGenerator L q)⁻¹ ^ 0 * (artinGenerator L r)⁻¹ ^ N) hg =
321
+ vertexPoint r := by
322
+ apply Subtype.ext
323
+ funext v
324
+ rw [point_val,vertexPoint_val,direction_negative_commuting_powers L hqr]
325
+ have hn : (N : ℝ) ≠ 0 := by exact_mod_cast Nat.ne_of_gt hN
326
+ by_cases hv : r = v <;> simp [hv,hn]
327
+
328
+ def powerVertex (N : ℕ) (q r : V) (j : ℕ) : NegativeLevel L N :=
329
+ ⟨(artinGenerator L q)⁻¹ ^ (N - min j N) * (artinGenerator L r)⁻¹ ^ min j N,by
330
+ simp only [map_mul,map_pow,map_inv,height_generator]
331
+ change (N-min j N : ℕ) • (-1 : ℤ) + (min j N : ℕ) • (-1 : ℤ) = _
332
+ simp only [nsmul_eq_mul,mul_neg,mul_one]
333
+ have hh : min j N ≤ N := min_le_right _ _
334
+ omega⟩
335
+
336
+ omit [Fintype V] [LinearOrder V] in
337
+ theorem powerVertex_step (N : ℕ) {q r : V} (hqr : L.Adj q r) {j : ℕ} (hj : j < N) :
338
+ edgeVertex L N (powerVertex L N q r j) q r = powerVertex L N q r (j+1) := by
339
+ apply Subtype.ext
340
+ dsimp only [powerVertex,edgeVertex]
341
+ rw [min_eq_left (by omega : j ≤ N),min_eq_left (by omega : j+1 ≤ N)]
342
+ have he : N-j = (N-(j+1))+1 := by omega
343
+ rw [he,negative_powers_upper L hqr,pow_succ]
344
+ group
345
+
346
+ omit [Fintype V] [LinearOrder V] in
347
+ theorem powerVertex_upper (N : ℕ) (hN : 1 < N) {q r : V}
348
+ (hqr : L.Adj q r) {j : ℕ} (hj : j < N) :
349
+ (upperVertex L N hN (powerVertex L N q r j) q : ArtinGroup L) =
350
+ (artinGenerator L q)⁻¹ ^ (N-(j+1)) * (artinGenerator L r)⁻¹ ^ j := by
351
+ dsimp only [powerVertex,upperVertex]
352
+ rw [min_eq_left (by omega : j ≤ N)]
353
+ have he : N-j = (N-(j+1))+1 := by omega
354
+ rw [he,negative_powers_upper L hqr]
355
+
356
+ theorem powerVertex_star (N : ℕ) (hN : 0 < N) {q r : V} (hqr : L.Adj q r) (j : ℕ) :
357
+ Star L q (levelPoint L hdim N hN (powerVertex L N q r j)) :=
358
+ powersPoint_star L hdim hqr _ _ _
359
+
360
+ theorem powerVertex_upper_star (N : ℕ) (hN : 1 < N) {q r : V}
361
+ (hqr : L.Adj q r) {j : ℕ} (hj : j < N) :
362
+ Star L q (levelPoint L hdim (N-1) (by omega)
363
+ (upperVertex L N hN (powerVertex L N q r j) q)) := by
364
+ unfold levelPoint
365
+ generalize_proofs hpos
366
+ simp only [powerVertex_upper L N hN hqr hj] at hpos ⊢
367
+ exact powersPoint_star L hdim hqr _ _ _
368
+
369
+ theorem powerLabel_chart (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
370
+ (N : ℕ) (hN : 1 < N) {q r : V} (hqr : L.Adj q r) {j : ℕ} (hj : j < N) :
371
+ edgeLabel L hdim h Q N hN (powerVertex L N q r j) q r =
372
+ chartTransport h Q q (levelPoint L hdim N (by omega) (powerVertex L N q r j))
373
+ (levelPoint L hdim N (by omega) (powerVertex L N q r (j+1))) := by
374
+ have hb := upperPoint_step L hdim N hN (powerVertex L N q r j) q
375
+ have hc := upperPoint_step L hdim N hN (edgeVertex L N (powerVertex L N q r j) q r) r
376
+ rw [upperVertex_reverse] at hc
377
+ unfold edgeLabel
378
+ rw [edgeTransport_chart L h Q hf hQ hb.1 (compatible_symm L hc.1)
379
+ (powerVertex_star L hdim N (by omega) hqr j) (powerVertex_upper_star L hdim N hN hqr hj)]
380
+ · rw [powerVertex_step L N hqr hj]
381
+ · rw [powerVertex_step L N hqr hj]
382
+ exact powerVertex_star L hdim N (by omega) hqr (j+1)
383
+
384
+
385
+ /-- Directed walks retain the chosen generator pair, including parallel edges. -/
386
+ inductive Walk (N : ℕ) : NegativeLevel L N → NegativeLevel L N → Type _
387
+ | nil (g : NegativeLevel L N) : Walk N g g
388
+ | cons {g k : NegativeLevel L N} (q r : V) (hqr : L.Adj q r)
389
+ (p : Walk N (edgeVertex L N g q r) k) : Walk N g k
390
+
391
+ namespace Walk
392
+ variable {L} {N : ℕ}
393
+
394
+ def append {g k l : NegativeLevel L N} : Walk L N g k → Walk L N k l → Walk L N g l
395
+ | .nil _, p => p
396
+ | .cons q r hqr p, t => .cons q r hqr (append p t)
397
+
398
+ def cast {g k g' k' : NegativeLevel L N} (p : Walk L N g k)
399
+ (hg : g = g') (hk : k = k') : Walk L N g' k' := hg ▸ hk ▸ p
400
+
401
+ end Walk
402
+
403
+ def walkProduct (N : ℕ) (hN : 1 < N) {g k : NegativeLevel L N} : Walk L N g k → SU2
404
+ | .nil _ => 1
405
+ | .cons (g := g) q r _ p => edgeLabel L hdim h Q N hN g q r * walkProduct N hN p
406
+
407
+ @[simp] theorem walkProduct_nil (N : ℕ) (hN : 1 < N) (g : NegativeLevel L N) :
408
+ walkProduct L hdim h Q N hN (.nil g) = 1 := rfl
409
+
410
+ @[simp] theorem walkProduct_cons (N : ℕ) (hN : 1 < N) {g k : NegativeLevel L N}
411
+ (q r : V) (hqr : L.Adj q r) (p : Walk L N (edgeVertex L N g q r) k) :
412
+ walkProduct L hdim h Q N hN (.cons q r hqr p) =
413
+ edgeLabel L hdim h Q N hN g q r * walkProduct L hdim h Q N hN p := rfl
414
+
415
+ @[simp] theorem walkProduct_append (N : ℕ) (hN : 1 < N) {g k l : NegativeLevel L N}
416
+ (p : Walk L N g k) (t : Walk L N k l) :
417
+ walkProduct L hdim h Q N hN (p.append t) =
418
+ walkProduct L hdim h Q N hN p * walkProduct L hdim h Q N hN t := by
419
+ induction p with
420
+ | nil => simp [Walk.append]
421
+ | cons q r hqr p ih => simp [Walk.append,ih,mul_assoc]
422
+
423
+ @[simp] theorem walkProduct_cast (N : ℕ) (hN : 1 < N) {g k g' k' : NegativeLevel L N}
424
+ (p : Walk L N g k) (hg : g = g') (hk : k = k') :
425
+ walkProduct L hdim h Q N hN (p.cast hg hk) = walkProduct L hdim h Q N hN p := by
426
+ subst g'; subst k'; rfl
427
+
428
+ /-- The entire subdivided edge has the exact endpoint transport, not merely a limit. -/
429
+ theorem exists_powerWalk (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
430
+ (N : ℕ) (hN : 1 < N) {q r : V} (hqr : L.Adj q r) (k : ℕ) (hk : k ≤ N) :
431
+ ∃ p : Walk L N (powerVertex L N q r 0) (powerVertex L N q r k),
432
+ walkProduct L hdim h Q N hN p =
433
+ chartTransport h Q q (levelPoint L hdim N (by omega) (powerVertex L N q r 0))
434
+ (levelPoint L hdim N (by omega) (powerVertex L N q r k)) := by
435
+ induction k with
436
+ | zero => exact ⟨.nil _,by simp [chartTransport]⟩
437
+ | succ k ih =>
438
+ obtain ⟨p,hp⟩ := ih (by omega)
439
+ let t : Walk L N (powerVertex L N q r k)
440
+ (edgeVertex L N (powerVertex L N q r k) q r) := .cons q r hqr (.nil _)
441
+ let t' := t.cast rfl (powerVertex_step L N hqr (by omega : k < N))
442
+ refine ⟨p.append t',?_⟩
443
+ rw [walkProduct_append,hp]
444
+ simp only [t',walkProduct_cast,t,walkProduct_cons,walkProduct_nil,mul_one]
445
+ rw [powerLabel_chart L hdim h Q hf hQ N hN hqr (by omega),chartTransport_trans]
446
+
447
+ def pureVertex (N : ℕ) (q : V) : NegativeLevel L N :=
448
+ ⟨(artinGenerator L q)⁻¹ ^ N,by
449
+ simp only [map_pow,map_inv,height_generator]
450
+ change N • (-1 : ℤ) = -(N : ℤ)
451
+ simp⟩
452
+
453
+ omit [Fintype V] [LinearOrder V] in
454
+ theorem powerVertex_zero (N : ℕ) (q r : V) :
455
+ powerVertex L N q r 0 = pureVertex L N q := by apply Subtype.ext; simp [powerVertex,pureVertex]
456
+
457
+ omit [Fintype V] [LinearOrder V] in
458
+ theorem powerVertex_last (N : ℕ) (q r : V) :
459
+ powerVertex L N q r N = pureVertex L N r := by apply Subtype.ext; simp [powerVertex,pureVertex]
460
+
461
+ def vertexGauge (v : V) : SU2 := gauge h Q v (vertexPoint v)
462
+
463
+ theorem levelPoint_power_zero (N : ℕ) (hN : 0 < N) {q r : V} (hqr : L.Adj q r) :
464
+ levelPoint L hdim N hN (powerVertex L N q r 0) = vertexPoint q := by
465
+ unfold levelPoint
466
+ have hh : (powerVertex L N q r 0 : ArtinGroup L) =
467
+ (artinGenerator L q)⁻¹ ^ N * (artinGenerator L r)⁻¹ ^ 0 := by simp [powerVertex]
468
+ simp only [hh]
469
+ exact powersPoint_first L hdim hqr N hN _
470
+
471
+ theorem levelPoint_power_last (N : ℕ) (hN : 0 < N) {q r : V} (hqr : L.Adj q r) :
472
+ levelPoint L hdim N hN (powerVertex L N q r N) = vertexPoint r := by
473
+ unfold levelPoint
474
+ have hh : (powerVertex L N q r N : ArtinGroup L) =
475
+ (artinGenerator L q)⁻¹ ^ 0 * (artinGenerator L r)⁻¹ ^ N := by simp [powerVertex]
476
+ simp only [hh]
477
+ exact powersPoint_last L hdim hqr N hN _
478
+
479
+ theorem exists_expanded_edge (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
480
+ (N : ℕ) (hN : 1 < N) {q r : V} (hqr : L.Adj q r) :
481
+ ∃ p : Walk L N (pureVertex L N q) (pureVertex L N r),
482
+ walkProduct L hdim h Q N hN p =
483
+ (vertexGauge h Q q)⁻¹ * h q r * vertexGauge h Q r := by
484
+ obtain ⟨p,hp⟩ := exists_powerWalk L hdim h Q hf hQ N hN hqr N le_rfl
485
+ refine ⟨p.cast (powerVertex_zero L N q r) (powerVertex_last L N q r),?_⟩
486
+ rw [walkProduct_cast,hp,levelPoint_power_zero L hdim N (by omega) hqr,
487
+ levelPoint_power_last L hdim N (by omega) hqr]
488
+ unfold chartTransport vertexGauge
489
+ rw [gauge_transition L h Q hf hQ (Or.inr hqr)
490
+ (star_vertex L (Or.inr hqr)) (star_vertex L (Or.inl rfl))]
491
+ group
492
+
493
+ omit [Fintype V] [LinearOrder V] in
494
+ def graphWalkProduct {a b : V} : L.Walk a b → SU2
495
+ | .nil => 1
496
+ | .cons (u := u) (v := v) _ p => h u v * graphWalkProduct p
497
+
498
+ theorem exists_expanded_walk (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
499
+ (N : ℕ) (hN : 1 < N) {q r : V} (w : L.Walk q r) :
500
+ ∃ p : Walk L N (pureVertex L N q) (pureVertex L N r),
501
+ walkProduct L hdim h Q N hN p =
502
+ (vertexGauge h Q q)⁻¹ * graphWalkProduct L h w * vertexGauge h Q r := by
503
+ induction w with
504
+ | nil => exact ⟨.nil _,by simp [graphWalkProduct]⟩
505
+ | @cons q t r hqt w ih =>
506
+ obtain ⟨p,hp⟩ := exists_expanded_edge L hdim h Q hf hQ N hN hqt
507
+ obtain ⟨s,hs⟩ := ih
508
+ refine ⟨p.append s,?_⟩
509
+ rw [walkProduct_append,hp,hs]
510
+ simp only [graphWalkProduct]
511
+ group
512
+
513
+ omit [Fintype V] [LinearOrder V] in
514
+ theorem graphWalkProduct_eq_zipWith {a b : V} (w : L.Walk a b) :
515
+ graphWalkProduct L h w = (List.zipWith h w.support w.support.tail).prod := by
516
+ induction w with
517
+ | nil => simp [graphWalkProduct]
518
+ | @cons q t r hqt w ih =>
519
+ cases w with
520
+ | nil => simp [graphWalkProduct]
521
+ | cons htl p => simpa only [graphWalkProduct,SimpleGraph.Walk.support_cons,
522
+ List.tail_cons,List.zipWith_cons_cons,List.prod_cons] using congrArg (h q t * ·) ih
523
+
524
+ /-- A nontrivial seed holonomy survives every sufficiently translated level. -/
525
+ theorem exists_nontrivial_level_walk (hf : FlatConnection L h) (hQ : GeneralPosition h Q)
526
+ (N : ℕ) (hN : 1 < N) {q : V} (w : L.Walk q q)
527
+ (hw : graphWalkProduct L h w ≠ 1) :
528
+ ∃ p : Walk L N (pureVertex L N q) (pureVertex L N q),
529
+ walkProduct L hdim h Q N hN p ≠ 1 := by
530
+ obtain ⟨p,hp⟩ := exists_expanded_walk L hdim h Q hf hQ N hN w
531
+ refine ⟨p,?_⟩
532
+ rw [hp]
533
+ intro he
534
+ apply hw
535
+ calc
536
+ graphWalkProduct L h w = vertexGauge h Q q *
537
+ ((vertexGauge h Q q)⁻¹ * graphWalkProduct L h w * vertexGauge h Q q) *
538
+ (vertexGauge h Q q)⁻¹ := by group
539
+ _ = 1 := by rw [he]; group
540
+
541
+
542
+ namespace Walk
543
+ variable {L} {N : ℕ}
544
+ omit [Fintype V] [LinearOrder V] in
545
+ def eval (a : NegativeLevel L N → V → V → SU2)
546
+ {g k : NegativeLevel L N} : Walk L N g k → SU2
547
+ | .nil _ => 1
548
+ | .cons (g := g) q r _ p => a g q r * eval a p
549
+ end Walk
550
+
551
+ theorem walkProduct_eq_eval (N : ℕ) (hN : 1 < N) {g k : NegativeLevel L N}
552
+ (p : Walk L N g k) :
553
+ walkProduct L hdim h Q N hN p = p.eval (edgeLabel L hdim h Q N hN) := by
554
+ induction p with
555
+ | nil => rfl
556
+ | cons q r hqr p ih => simp only [walkProduct,Walk.eval,ih]
557
+
558
+ end LevelTransport
559
+
560
+ namespace SourceTransport
561
+ open LevelTransport AffineTransport
562
+
563
+ def seedWalk : seedGraph.Walk (.inl (.inl none)) (.inl (.inl none)) :=
564
+ SimpleGraph.Walk.ofSupport SeedConnection.roseLoop
565
+ (by simp [SeedConnection.roseLoop]) SeedConnection.roseLoop_edges
566
+
567
+ theorem seedWalk_support : seedWalk.support = SeedConnection.roseLoop :=
568
+ SimpleGraph.Walk.support_ofSupport _ _
569
+
570
+ theorem seedWalk_product_ne : graphWalkProduct seedGraph SeedConnection.connection seedWalk ≠ 1 := by
571
+ rw [graphWalkProduct_eq_zipWith,seedWalk_support]
572
+ exact SeedConnection.roseLoop_nontrivial
573
+
574
+ /-- Actual small flat transport for the fixed source level graph. There are no
575
+ representation, direction-map, local-chart, or nontriviality hypotheses here. -/
576
+ theorem source_small_labels (ε : ℝ) (hε : 0 < ε) :
577
+ ∃ N : ℕ, 1 < N ∧ ∃ a : NegativeLevel seedGraph N → SeedCell → SeedCell → SU2,
578
+ (∀ g q r, a (edgeVertex seedGraph N g q r) r q = (a g q r)⁻¹) ∧
579
+ (∀ g q r, dist (a g q r) 1 < ε) ∧
580
+ (∀ g₀ g₁ g₂ q₀ r₀ q₁ r₁ q₂ r₂,
581
+ edgeVertex seedGraph N g₀ q₀ r₀ = g₁ →
582
+ edgeVertex seedGraph N g₁ q₁ r₁ = g₂ →
583
+ edgeVertex seedGraph N g₂ q₂ r₂ = g₀ →
584
+ a g₀ q₀ r₀ * a g₁ q₁ r₁ * a g₂ q₂ r₂ = 1) ∧
585
+ ∃ (g : NegativeLevel seedGraph N) (p : Walk seedGraph N g g), p.eval a ≠ 1 := by
586
+ let : LinearOrder SeedCell := LinearOrder.lift' (Fintype.equivFin SeedCell)
587
+ (Fintype.equivFin SeedCell).injective
588
+ obtain ⟨Q,hQ⟩ := exists_generalPosition SeedConnection.connection
589
+ have hf : FlatConnection seedGraph SeedConnection.connection :=
590
+ fun _ _ _ hab hbc hac => SeedConnection.connection_flat hab hbc hac
591
+ obtain ⟨M,hM⟩ := edgeLabel_uniform seedGraph SeedConnection.clique_card_le_three
592
+ SeedConnection.connection Q hQ hε
593
+ let D := Fintype.card SeedCell + 1
594
+ let N := max M (8 * D + 2)
595
+ have hMN : M ≤ N := le_max_left _ _
596
+ have hNbound : 8 * D + 2 ≤ N := le_max_right _ _
597
+ have hN : 1 < N := by omega
598
+ have hD : (0 : ℝ) < D := by dsimp [D]; positivity
599
+ have hNr : (0 : ℝ) < N := by exact_mod_cast (by omega : 0 < N)
600
+ have hsize : 8 / (N : ℝ) < 1 / (Fintype.card SeedCell + 1 : ℝ) := by
601
+ have hBN : (8 : ℝ) * D + 2 ≤ N := by exact_mod_cast hNbound
602
+ have hDcast : (D : ℝ) = (Fintype.card SeedCell : ℝ) + 1 := by simp [D]
603
+ rw [← hDcast]
604
+ apply (div_lt_div_iff₀ hNr hD).mpr
605
+ nlinarith
606
+ let a := edgeLabel seedGraph SeedConnection.clique_card_le_three
607
+ SeedConnection.connection Q N hN
608
+ refine ⟨N,hN,a,?_,?_,?_,?_⟩
609
+ · exact edgeLabel_reverse seedGraph SeedConnection.clique_card_le_three
610
+ SeedConnection.connection Q hf hQ N hN
611
+ · exact hM N hMN hN
612
+ · exact edgeLabel_triangle seedGraph SeedConnection.clique_card_le_three
613
+ SeedConnection.connection Q hf hQ N hN hsize
614
+ · obtain ⟨p,hp⟩ := exists_nontrivial_level_walk seedGraph SeedConnection.clique_card_le_three
615
+ SeedConnection.connection Q hf hQ N hN seedWalk seedWalk_product_ne
616
+ refine ⟨_,p,?_⟩
617
+ rwa [walkProduct_eq_eval] at hp
618
+
619
+ end SourceTransport
620
+ end EilenbergGanea
621
+
622
+
623
+
624
+ end
625
+
626
+ end OAI
lean/OAI/Topology/EilenbergGanea/Main.lean CHANGED
@@ -1,43 +1,43 @@
1
- import OAI.Topology.EilenbergGanea.Dimension
2
- import OAI.Topology.EilenbergGanea.CubicalCover
3
- import OAI.AlgebraicTopology.CWComplex.Presentation
4
-
5
- namespace OAI
6
-
7
- noncomputable section
8
-
9
- open Classical Set Metric Topology
10
-
11
- namespace EilenbergGanea
12
- universe u
13
-
14
- /-- Exclusion is for arbitrary ordinary2-dimensional classifying CW spaces,
15
- not merely finite presentations or cell complexes with finitely many orbits. -/
16
- theorem source_no_classifyingSpace_two : ¬ HasClassifyingSpace.{u} SourceGroup 2 := by
17
- rintro ⟨X,tX,hTX,cX,hd,hpc,x,⟨χ⟩,E,tE,hcon,p,cov,hs⟩
18
- let : TopologicalSpace X := tX
19
- let : T2Space X := hTX
20
- let : Topology.CWComplex (Set.univ : Set X) := cX
21
- let : PathConnectedSpace X := hpc
22
- let : TopologicalSpace E := tE
23
- let : ContractibleSpace E := hcon
24
- obtain ⟨A,a,ha,r,hr,hp,B,hB⟩ := CWPresentation.ordinary_boundary_basis cov hd hs x χ
25
- exact source_no_boundary_basis a ha r hr hp B hB
26
-
27
- /-- Source Theorem1.1 for the exact103-cell flag triangulation and its actual
28
- Artin height kernel. The last conjunct is polymorphic in the universe of the
29
- hypothetical ordinary CW model, with unrestricted numbers of cells. -/
30
- theorem source_main :
31
- Group.FG SourceGroup ∧ Group.ResiduallyFinite SourceGroup ∧
32
- cohomologicalDimension SourceGroup = 2 ∧
33
- HasClassifyingSpace.{0} SourceGroup 3 ∧
34
- ¬ HasClassifyingSpace.{u} SourceGroup 2 :=
35
- ⟨source_finitely_generated,source_residuallyFinite,source_cohomologicalDimension,
36
- source_hasClassifyingSpace_three,source_no_classifyingSpace_two⟩
37
-
38
- end EilenbergGanea
39
-
40
-
41
- end
42
-
43
- end OAI
 
1
+ import OAI.Topology.EilenbergGanea.Dimension
2
+ import OAI.Topology.EilenbergGanea.CubicalCover
3
+ import OAI.AlgebraicTopology.CWComplex.Presentation
4
+
5
+ namespace OAI
6
+
7
+ noncomputable section
8
+
9
+ open Classical Set Metric Topology
10
+
11
+ namespace EilenbergGanea
12
+ universe u
13
+
14
+ /-- Exclusion is for arbitrary ordinary2-dimensional classifying CW spaces,
15
+ not merely finite presentations or cell complexes with finitely many orbits. -/
16
+ theorem source_no_classifyingSpace_two : ¬ HasClassifyingSpace.{u} SourceGroup 2 := by
17
+ rintro ⟨X,tX,hTX,cX,hd,hpc,x,⟨χ⟩,E,tE,hcon,p,cov,hs⟩
18
+ let : TopologicalSpace X := tX
19
+ let : T2Space X := hTX
20
+ let : Topology.CWComplex (Set.univ : Set X) := cX
21
+ let : PathConnectedSpace X := hpc
22
+ let : TopologicalSpace E := tE
23
+ let : ContractibleSpace E := hcon
24
+ obtain ⟨A,a,ha,r,hr,hp,B,hB⟩ := CWPresentation.ordinary_boundary_basis cov hd hs x χ
25
+ exact source_no_boundary_basis a ha r hr hp B hB
26
+
27
+ /-- Source Theorem1.1 for the exact103-cell flag triangulation and its actual
28
+ Artin height kernel. The last conjunct is polymorphic in the universe of the
29
+ hypothetical ordinary CW model, with unrestricted numbers of cells. -/
30
+ theorem source_main :
31
+ Group.FG SourceGroup ∧ Group.ResiduallyFinite SourceGroup ∧
32
+ cohomologicalDimension SourceGroup = 2 ∧
33
+ HasClassifyingSpace.{0} SourceGroup 3 ∧
34
+ ¬ HasClassifyingSpace.{u} SourceGroup 2 :=
35
+ ⟨source_finitely_generated,source_residuallyFinite,source_cohomologicalDimension,
36
+ source_hasClassifyingSpace_three,source_no_classifyingSpace_two⟩
37
+
38
+ end EilenbergGanea
39
+
40
+
41
+ end
42
+
43
+ end OAI
lean/OAI/Topology/EilenbergGanea/Model.lean CHANGED
@@ -1,61 +1,61 @@
1
- import OAI.Topology.EilenbergGanea.Seed
2
- import OAI.GroupTheory.RightAngledArtin.ResidualFiniteness
3
- import Mathlib.Algebra.Category.ModuleCat.ProjectiveDimension
4
- import Mathlib.RepresentationTheory.Basic
5
- import Mathlib.Topology.CWComplex.Classical.Basic
6
- import Mathlib.Topology.Covering.Basic
7
- import Mathlib.Topology.Homotopy.Contractible
8
- import Mathlib.AlgebraicTopology.FundamentalGroupoid.FundamentalGroup
9
-
10
- namespace OAI
11
-
12
- noncomputable section
13
-
14
- open Classical Set Topology
15
-
16
- namespace EilenbergGanea
17
- abbrev SourceGroup := (height seedGraph).ker
18
-
19
- /-- Integral, left-module cohomological dimension; no rational replacement. -/
20
- def cohomologicalDimension (G : Type*) [Group G] : WithBot ℕ∞ :=
21
- CategoryTheory.projectiveDimension
22
- (ModuleCat.of (MonoidAlgebra ℤ G) (Representation.trivial ℤ G ℤ).asModule)
23
-
24
- universe u
25
- /-- Ordinary K(G,1) of dimension at most n. The cell and space types have no
26
- finiteness or countability restriction. The contractible surjective covering
27
- is the usual universal-cover characterization of a classifying space. -/
28
- def HasClassifyingSpace (G : Type*) [Group G] (n : ℕ) : Prop :=
29
- ∃ (X : Type u) (_ : TopologicalSpace X) (_ : T2Space X)
30
- (_ : Topology.CWComplex (Set.univ : Set X)),
31
- (∀ k : ℕ, n < k → IsEmpty (Topology.CWComplex.cell (Set.univ : Set X) k)) ∧
32
- PathConnectedSpace X ∧
33
- ∃ x : X, Nonempty (FundamentalGroup X x ≃* G) ∧
34
- ∃ (E : Type u) (_ : TopologicalSpace E), ContractibleSpace E ∧
35
- ∃ p : E → X, IsCoveringMap p ∧ Function.Surjective p
36
-
37
-
38
- end EilenbergGanea
39
-
40
- namespace EilenbergGanea
41
- /-- The finite-generation conjunct for the exact source height kernel. -/
42
- theorem source_finitely_generated : Group.FG SourceGroup :=
43
- height_kernel_fg seedGraph seed_connected.preconnected seedBase
44
-
45
-
46
-
47
- end EilenbergGanea
48
-
49
- namespace EilenbergGanea
50
- /-- The second exact conjunct of the source main theorem. -/
51
- theorem source_residuallyFinite : Group.ResiduallyFinite SourceGroup := by
52
- have := artin_residuallyFinite SeedCell seedGraph
53
- infer_instance
54
-
55
- end EilenbergGanea
56
-
57
-
58
-
59
- end
60
-
61
- end OAI
 
1
+ import OAI.Topology.EilenbergGanea.Seed
2
+ import OAI.GroupTheory.RightAngledArtin.ResidualFiniteness
3
+ import Mathlib.Algebra.Category.ModuleCat.ProjectiveDimension
4
+ import Mathlib.RepresentationTheory.Basic
5
+ import Mathlib.Topology.CWComplex.Classical.Basic
6
+ import Mathlib.Topology.Covering.Basic
7
+ import Mathlib.Topology.Homotopy.Contractible
8
+ import Mathlib.AlgebraicTopology.FundamentalGroupoid.FundamentalGroup
9
+
10
+ namespace OAI
11
+
12
+ noncomputable section
13
+
14
+ open Classical Set Topology
15
+
16
+ namespace EilenbergGanea
17
+ abbrev SourceGroup := (height seedGraph).ker
18
+
19
+ /-- Integral, left-module cohomological dimension; no rational replacement. -/
20
+ def cohomologicalDimension (G : Type*) [Group G] : WithBot ℕ∞ :=
21
+ CategoryTheory.projectiveDimension
22
+ (ModuleCat.of (MonoidAlgebra ℤ G) (Representation.trivial ℤ G ℤ).asModule)
23
+
24
+ universe u
25
+ /-- Ordinary K(G,1) of dimension at most n. The cell and space types have no
26
+ finiteness or countability restriction. The contractible surjective covering
27
+ is the usual universal-cover characterization of a classifying space. -/
28
+ def HasClassifyingSpace (G : Type*) [Group G] (n : ℕ) : Prop :=
29
+ ∃ (X : Type u) (_ : TopologicalSpace X) (_ : T2Space X)
30
+ (_ : Topology.CWComplex (Set.univ : Set X)),
31
+ (∀ k : ℕ, n < k → IsEmpty (Topology.CWComplex.cell (Set.univ : Set X) k)) ∧
32
+ PathConnectedSpace X ∧
33
+ ∃ x : X, Nonempty (FundamentalGroup X x ≃* G) ∧
34
+ ∃ (E : Type u) (_ : TopologicalSpace E), ContractibleSpace E ∧
35
+ ∃ p : E → X, IsCoveringMap p ∧ Function.Surjective p
36
+
37
+
38
+ end EilenbergGanea
39
+
40
+ namespace EilenbergGanea
41
+ /-- The finite-generation conjunct for the exact source height kernel. -/
42
+ theorem source_finitely_generated : Group.FG SourceGroup :=
43
+ height_kernel_fg seedGraph seed_connected.preconnected seedBase
44
+
45
+
46
+
47
+ end EilenbergGanea
48
+
49
+ namespace EilenbergGanea
50
+ /-- The second exact conjunct of the source main theorem. -/
51
+ theorem source_residuallyFinite : Group.ResiduallyFinite SourceGroup := by
52
+ have := artin_residuallyFinite SeedCell seedGraph
53
+ infer_instance
54
+
55
+ end EilenbergGanea
56
+
57
+
58
+
59
+ end
60
+
61
+ end OAI
lean/OAI/Topology/EilenbergGanea/PresentationAlignment.lean CHANGED
The diff for this file is too large to render. See raw diff
 
lean/OAI/Topology/EilenbergGanea/PresentationComparison.lean CHANGED
The diff for this file is too large to render. See raw diff
 
lean/OAI/Topology/EilenbergGanea/Regularization.lean CHANGED
The diff for this file is too large to render. See raw diff
 
lean/OAI/Topology/EilenbergGanea/Seed.lean CHANGED
@@ -1,164 +1,164 @@
1
- import Mathlib.Tactic
2
- import Mathlib.Combinatorics.SimpleGraph.Connectivity.Connected
3
- import Mathlib.Data.Fintype.Sum
4
- import Mathlib.LinearAlgebra.Matrix.Notation
5
-
6
- namespace OAI
7
-
8
- noncomputable section
9
-
10
- open Classical Set
11
-
12
- namespace EilenbergGanea
13
- /-- `false` names x; `true` names y. The second Boolean is the positive sign. -/
14
- def seedWord : Bool → List (Bool × Bool)
15
- | false => [(false, true), (false, true), (true, false), (true, false),
16
- (true, false), (true, false), (true, false)]
17
- | true => [(false, true), (false, true), (true, true), (false, false),
18
- (true, true), (false, false), (true, true), (false, false)]
19
-
20
- /-- Numbers of sectors in the two coned boundary polygons. -/
21
- def boundaryLength (r : Bool) : ℕ := 3 * (seedWord r).length
22
-
23
- abbrev RoseVertex := Option (Bool × Fin 2)
24
- abbrev SeedVertex := RoseVertex ⊕ Bool
25
- abbrev CircleEdge := Bool × Fin 3
26
- abbrev Sector := (r : Bool) × Fin (boundaryLength r)
27
- abbrev SeedEdge := CircleEdge ⊕ Sector
28
- abbrev SeedCell := SeedVertex ⊕ (SeedEdge ⊕ Sector)
29
-
30
- def circleStart (e : CircleEdge) : RoseVertex :=
31
- ![none, some (e.1, 0), some (e.1, 1)] e.2
32
-
33
- def circleEnd (e : CircleEdge) : RoseVertex :=
34
- ![some (e.1, 0), some (e.1, 1), none] e.2
35
-
36
- def sectorLetter (s : Sector) : Bool × Bool :=
37
- (seedWord s.1).get ⟨s.2.val / 3, by
38
- have h := s.2.isLt
39
- dsimp [boundaryLength] at h
40
- omega⟩
41
-
42
- def sectorCircleEdge (s : Sector) : CircleEdge :=
43
- ((sectorLetter s).1, if (sectorLetter s).2 then
44
- ⟨s.2.val % 3, Nat.mod_lt _ (by decide)⟩ else
45
- ⟨2 - s.2.val % 3, by omega⟩)
46
-
47
- def sectorStart (s : Sector) : RoseVertex :=
48
- if (sectorLetter s).2 then circleStart (sectorCircleEdge s)
49
- else circleEnd (sectorCircleEdge s)
50
-
51
- def nextSector (s : Sector) : Sector :=
52
- ⟨s.1, ⟨(s.2.val + 1) % boundaryLength s.1,
53
- Nat.mod_lt _ (by have := s.2.isLt; omega)⟩⟩
54
-
55
- def edgeVertices : SeedEdge → Finset SeedVertex
56
- | .inl e => {.inl (circleStart e), .inl (circleEnd e)}
57
- | .inr s => {.inr s.1, .inl (sectorStart s)}
58
-
59
- def sectorEdges (s : Sector) : Finset SeedEdge :=
60
- {.inl (sectorCircleEdge s), .inr s, .inr (nextSector s)}
61
-
62
- def sectorVertices (s : Sector) : Finset SeedVertex :=
63
- (sectorEdges s).biUnion edgeVertices
64
-
65
- /-- Proper cell-face incidence, including vertices of closed triangles. -/
66
- def properFace : SeedCell → SeedCell → Prop
67
- | .inl v, .inr (.inl e) => v ∈ edgeVertices e
68
- | .inl v, .inr (.inr s) => v ∈ sectorVertices s
69
- | .inr (.inl e), .inr (.inr s) => e ∈ sectorEdges s
70
- | _, _ => False
71
-
72
- def seedGraph : SimpleGraph SeedCell where
73
- Adj a b := properFace a b ∨ properFace b a
74
- symm := ⟨fun _ _ h => h.elim Or.inr Or.inl⟩
75
- loopless := ⟨by
76
- intro a
77
- rcases a with a | a
78
- · simp [properFace]
79
- · rcases a with a | a <;> simp [properFace]⟩
80
-
81
-
82
- end EilenbergGanea
83
-
84
- namespace EilenbergGanea
85
-
86
- /-- The vertex of the rose common to its two circles. -/
87
- def seedBase : SeedCell := .inl (.inl none)
88
-
89
- theorem seed_vertex_edge_adj {v : SeedVertex} {e : SeedEdge} (h : v ∈ edgeVertices e) :
90
- seedGraph.Adj (.inl v) (.inr (.inl e)) := Or.inl h
91
-
92
- theorem seed_edge_sector_adj {e : SeedEdge} {s : Sector} (h : e ∈ sectorEdges s) :
93
- seedGraph.Adj (.inr (.inl e)) (.inr (.inr s)) := Or.inl h
94
-
95
- theorem rose_vertex_reachable (v : RoseVertex) :
96
- seedGraph.Reachable seedBase (.inl (.inl v)) := by
97
- rcases v with _ | ⟨b, i⟩
98
- · exact .refl _
99
- · fin_cases i
100
- · have h₁ : seedGraph.Adj seedBase (.inr (.inl (.inl (b, 0)))) := by
101
- apply seed_vertex_edge_adj
102
- simp [edgeVertices, circleStart, circleEnd]
103
- have h₂ : seedGraph.Adj (.inl (.inl (some (b, 0))))
104
- (.inr (.inl (.inl (b, 0)))) := by
105
- apply seed_vertex_edge_adj
106
- simp [edgeVertices, circleStart, circleEnd]
107
- exact h₁.reachable.trans h₂.reachable.symm
108
- · have h₁ : seedGraph.Adj seedBase (.inr (.inl (.inl (b, 2)))) := by
109
- apply seed_vertex_edge_adj
110
- simp [edgeVertices, circleStart, circleEnd]
111
- have h₂ : seedGraph.Adj (.inl (.inl (some (b, 1))))
112
- (.inr (.inl (.inl (b, 2)))) := by
113
- apply seed_vertex_edge_adj
114
- simp [edgeVertices, circleStart, circleEnd]
115
- exact h₁.reachable.trans h₂.reachable.symm
116
-
117
- def firstSector (r : Bool) : Sector :=
118
- ⟨r, ⟨0, by cases r <;> decide⟩⟩
119
-
120
- theorem seed_vertex_reachable (v : SeedVertex) :
121
- seedGraph.Reachable seedBase (.inl v) := by
122
- rcases v with v | r
123
- · exact rose_vertex_reachable v
124
- · let s := firstSector r
125
- have h₁ : seedGraph.Adj (.inl (.inl (sectorStart s))) (.inr (.inl (.inr s))) := by
126
- apply seed_vertex_edge_adj
127
- simp [edgeVertices]
128
- have h₂ : seedGraph.Adj (.inl (.inr r)) (.inr (.inl (.inr s))) := by
129
- apply seed_vertex_edge_adj
130
- simp [edgeVertices, s, firstSector]
131
- exact ((rose_vertex_reachable (sectorStart s)).trans h₁.reachable).trans h₂.reachable.symm
132
-
133
- theorem seed_edge_reachable (e : SeedEdge) :
134
- seedGraph.Reachable seedBase (.inr (.inl e)) := by
135
- rcases e with e | s
136
- · apply (seed_vertex_reachable (.inl (circleStart e))).trans
137
- apply SimpleGraph.Adj.reachable
138
- apply seed_vertex_edge_adj
139
- simp [edgeVertices]
140
- · apply (seed_vertex_reachable (.inr s.1)).trans
141
- apply SimpleGraph.Adj.reachable
142
- apply seed_vertex_edge_adj
143
- simp [edgeVertices]
144
-
145
- theorem seed_cell_reachable (x : SeedCell) : seedGraph.Reachable seedBase x := by
146
- rcases x with v | e
147
- · exact seed_vertex_reachable v
148
- · rcases e with e | s
149
- · exact seed_edge_reachable e
150
- · apply (seed_edge_reachable (.inl (sectorCircleEdge s))).trans
151
- apply SimpleGraph.Adj.reachable
152
- apply seed_edge_sector_adj
153
- simp [sectorEdges]
154
-
155
- theorem seed_connected : seedGraph.Connected := by
156
- exact { preconnected := fun v w =>
157
- (seed_cell_reachable v).symm.trans (seed_cell_reachable w), nonempty := ⟨seedBase⟩ }
158
-
159
-
160
- end EilenbergGanea
161
-
162
- end
163
-
164
- end OAI
 
1
+ import Mathlib.Tactic
2
+ import Mathlib.Combinatorics.SimpleGraph.Connectivity.Connected
3
+ import Mathlib.Data.Fintype.Sum
4
+ import Mathlib.LinearAlgebra.Matrix.Notation
5
+
6
+ namespace OAI
7
+
8
+ noncomputable section
9
+
10
+ open Classical Set
11
+
12
+ namespace EilenbergGanea
13
+ /-- `false` names x; `true` names y. The second Boolean is the positive sign. -/
14
+ def seedWord : Bool → List (Bool × Bool)
15
+ | false => [(false, true), (false, true), (true, false), (true, false),
16
+ (true, false), (true, false), (true, false)]
17
+ | true => [(false, true), (false, true), (true, true), (false, false),
18
+ (true, true), (false, false), (true, true), (false, false)]
19
+
20
+ /-- Numbers of sectors in the two coned boundary polygons. -/
21
+ def boundaryLength (r : Bool) : ℕ := 3 * (seedWord r).length
22
+
23
+ abbrev RoseVertex := Option (Bool × Fin 2)
24
+ abbrev SeedVertex := RoseVertex ⊕ Bool
25
+ abbrev CircleEdge := Bool × Fin 3
26
+ abbrev Sector := (r : Bool) × Fin (boundaryLength r)
27
+ abbrev SeedEdge := CircleEdge ⊕ Sector
28
+ abbrev SeedCell := SeedVertex ⊕ (SeedEdge ⊕ Sector)
29
+
30
+ def circleStart (e : CircleEdge) : RoseVertex :=
31
+ ![none, some (e.1, 0), some (e.1, 1)] e.2
32
+
33
+ def circleEnd (e : CircleEdge) : RoseVertex :=
34
+ ![some (e.1, 0), some (e.1, 1), none] e.2
35
+
36
+ def sectorLetter (s : Sector) : Bool × Bool :=
37
+ (seedWord s.1).get ⟨s.2.val / 3, by
38
+ have h := s.2.isLt
39
+ dsimp [boundaryLength] at h
40
+ omega⟩
41
+
42
+ def sectorCircleEdge (s : Sector) : CircleEdge :=
43
+ ((sectorLetter s).1, if (sectorLetter s).2 then
44
+ ⟨s.2.val % 3, Nat.mod_lt _ (by decide)⟩ else
45
+ ⟨2 - s.2.val % 3, by omega⟩)
46
+
47
+ def sectorStart (s : Sector) : RoseVertex :=
48
+ if (sectorLetter s).2 then circleStart (sectorCircleEdge s)
49
+ else circleEnd (sectorCircleEdge s)
50
+
51
+ def nextSector (s : Sector) : Sector :=
52
+ ⟨s.1, ⟨(s.2.val + 1) % boundaryLength s.1,
53
+ Nat.mod_lt _ (by have := s.2.isLt; omega)⟩⟩
54
+
55
+ def edgeVertices : SeedEdge → Finset SeedVertex
56
+ | .inl e => {.inl (circleStart e), .inl (circleEnd e)}
57
+ | .inr s => {.inr s.1, .inl (sectorStart s)}
58
+
59
+ def sectorEdges (s : Sector) : Finset SeedEdge :=
60
+ {.inl (sectorCircleEdge s), .inr s, .inr (nextSector s)}
61
+
62
+ def sectorVertices (s : Sector) : Finset SeedVertex :=
63
+ (sectorEdges s).biUnion edgeVertices
64
+
65
+ /-- Proper cell-face incidence, including vertices of closed triangles. -/
66
+ def properFace : SeedCell → SeedCell → Prop
67
+ | .inl v, .inr (.inl e) => v ∈ edgeVertices e
68
+ | .inl v, .inr (.inr s) => v ∈ sectorVertices s
69
+ | .inr (.inl e), .inr (.inr s) => e ∈ sectorEdges s
70
+ | _, _ => False
71
+
72
+ def seedGraph : SimpleGraph SeedCell where
73
+ Adj a b := properFace a b ∨ properFace b a
74
+ symm := ⟨fun _ _ h => h.elim Or.inr Or.inl⟩
75
+ loopless := ⟨by
76
+ intro a
77
+ rcases a with a | a
78
+ · simp [properFace]
79
+ · rcases a with a | a <;> simp [properFace]⟩
80
+
81
+
82
+ end EilenbergGanea
83
+
84
+ namespace EilenbergGanea
85
+
86
+ /-- The vertex of the rose common to its two circles. -/
87
+ def seedBase : SeedCell := .inl (.inl none)
88
+
89
+ theorem seed_vertex_edge_adj {v : SeedVertex} {e : SeedEdge} (h : v ∈ edgeVertices e) :
90
+ seedGraph.Adj (.inl v) (.inr (.inl e)) := Or.inl h
91
+
92
+ theorem seed_edge_sector_adj {e : SeedEdge} {s : Sector} (h : e ∈ sectorEdges s) :
93
+ seedGraph.Adj (.inr (.inl e)) (.inr (.inr s)) := Or.inl h
94
+
95
+ theorem rose_vertex_reachable (v : RoseVertex) :
96
+ seedGraph.Reachable seedBase (.inl (.inl v)) := by
97
+ rcases v with _ | ⟨b, i⟩
98
+ · exact .refl _
99
+ · fin_cases i
100
+ · have h₁ : seedGraph.Adj seedBase (.inr (.inl (.inl (b, 0)))) := by
101
+ apply seed_vertex_edge_adj
102
+ simp [edgeVertices, circleStart, circleEnd]
103
+ have h₂ : seedGraph.Adj (.inl (.inl (some (b, 0))))
104
+ (.inr (.inl (.inl (b, 0)))) := by
105
+ apply seed_vertex_edge_adj
106
+ simp [edgeVertices, circleStart, circleEnd]
107
+ exact h₁.reachable.trans h₂.reachable.symm
108
+ · have h₁ : seedGraph.Adj seedBase (.inr (.inl (.inl (b, 2)))) := by
109
+ apply seed_vertex_edge_adj
110
+ simp [edgeVertices, circleStart, circleEnd]
111
+ have h₂ : seedGraph.Adj (.inl (.inl (some (b, 1))))
112
+ (.inr (.inl (.inl (b, 2)))) := by
113
+ apply seed_vertex_edge_adj
114
+ simp [edgeVertices, circleStart, circleEnd]
115
+ exact h₁.reachable.trans h₂.reachable.symm
116
+
117
+ def firstSector (r : Bool) : Sector :=
118
+ ⟨r, ⟨0, by cases r <;> decide⟩⟩
119
+
120
+ theorem seed_vertex_reachable (v : SeedVertex) :
121
+ seedGraph.Reachable seedBase (.inl v) := by
122
+ rcases v with v | r
123
+ · exact rose_vertex_reachable v
124
+ · let s := firstSector r
125
+ have h₁ : seedGraph.Adj (.inl (.inl (sectorStart s))) (.inr (.inl (.inr s))) := by
126
+ apply seed_vertex_edge_adj
127
+ simp [edgeVertices]
128
+ have h₂ : seedGraph.Adj (.inl (.inr r)) (.inr (.inl (.inr s))) := by
129
+ apply seed_vertex_edge_adj
130
+ simp [edgeVertices, s, firstSector]
131
+ exact ((rose_vertex_reachable (sectorStart s)).trans h₁.reachable).trans h₂.reachable.symm
132
+
133
+ theorem seed_edge_reachable (e : SeedEdge) :
134
+ seedGraph.Reachable seedBase (.inr (.inl e)) := by
135
+ rcases e with e | s
136
+ · apply (seed_vertex_reachable (.inl (circleStart e))).trans
137
+ apply SimpleGraph.Adj.reachable
138
+ apply seed_vertex_edge_adj
139
+ simp [edgeVertices]
140
+ · apply (seed_vertex_reachable (.inr s.1)).trans
141
+ apply SimpleGraph.Adj.reachable
142
+ apply seed_vertex_edge_adj
143
+ simp [edgeVertices]
144
+
145
+ theorem seed_cell_reachable (x : SeedCell) : seedGraph.Reachable seedBase x := by
146
+ rcases x with v | e
147
+ · exact seed_vertex_reachable v
148
+ · rcases e with e | s
149
+ · exact seed_edge_reachable e
150
+ · apply (seed_edge_reachable (.inl (sectorCircleEdge s))).trans
151
+ apply SimpleGraph.Adj.reachable
152
+ apply seed_edge_sector_adj
153
+ simp [sectorEdges]
154
+
155
+ theorem seed_connected : seedGraph.Connected := by
156
+ exact { preconnected := fun v w =>
157
+ (seed_cell_reachable v).symm.trans (seed_cell_reachable w), nonempty := ⟨seedBase⟩ }
158
+
159
+
160
+ end EilenbergGanea
161
+
162
+ end
163
+
164
+ end OAI
lean/OAI/Topology/EilenbergGanea/SeedChains.lean CHANGED
The diff for this file is too large to render. See raw diff
 
lean/OAI/Topology/EilenbergGanea/SeedConnection.lean CHANGED
@@ -1,277 +1,277 @@
1
- import OAI.Topology.EilenbergGanea.SeedHolonomy
2
- import OAI.GroupTheory.RightAngledArtin.Basic
3
-
4
- namespace OAI
5
-
6
- noncomputable section
7
-
8
- open Classical Set Filter Topology MeasureTheory
9
- open scoped Quaternion ContDiff
10
-
11
- namespace EilenbergGanea
12
- namespace SeedConnection
13
-
14
- def circleWord (e : CircleEdge) : FreeGroup Bool := if e.2 = 0 then FreeGroup.of e.1 else 1
15
-
16
- def boundaryEdgeWord (s : Sector) : FreeGroup Bool :=
17
- if (sectorLetter s).2 then circleWord (sectorCircleEdge s) else
18
- (circleWord (sectorCircleEdge s))⁻¹
19
-
20
- def boundaryWords (r : Bool) : List (FreeGroup Bool) :=
21
- List.ofFn (fun i : Fin (boundaryLength r) => boundaryEdgeWord ⟨r,i⟩)
22
-
23
- theorem boundaryWords_prod : ∀ r, (boundaryWords r).prod = seedRelator r := by
24
- decide
25
-
26
- theorem sector_end : ∀ s : Sector, sectorStart (nextSector s) =
27
- if (sectorLetter s).2 then circleEnd (sectorCircleEdge s)
28
- else circleStart (sectorCircleEdge s) := by decide
29
-
30
- theorem circle_distinct : ∀ e : CircleEdge, circleStart e ≠ circleEnd e := by decide
31
-
32
- theorem sector_distinct : ∀ s : Sector, sectorStart s ≠ sectorStart (nextSector s) := by decide
33
-
34
- def circleLabel (e : CircleEdge) : SeedSU2 := FreeGroup.lift seedLetterUnit (circleWord e)
35
-
36
- def radialLabel (s : Sector) : SeedSU2 :=
37
- FreeGroup.lift seedLetterUnit ((boundaryWords s.1).take s.2.val).prod
38
-
39
- @[simp] theorem boundaryWords_length (r : Bool) : (boundaryWords r).length = boundaryLength r :=
40
- List.length_ofFn
41
-
42
- @[simp] theorem boundaryWords_get (s : Sector) :
43
- (boundaryWords s.1)[s.2.val]'(by simp) = boundaryEdgeWord s := by
44
- simp [boundaryWords]
45
-
46
- theorem radial_step (s : Sector) : radialLabel (nextSector s) = radialLabel s *
47
- (if (sectorLetter s).2 then circleLabel (sectorCircleEdge s)
48
- else (circleLabel (sectorCircleEdge s))⁻¹) := by
49
- have hs : s.2.val < (boundaryWords s.1).length := by simp
50
- have he := congrArg (FreeGroup.lift seedLetterUnit) (congrArg List.prod
51
- (List.take_succ_eq_append_getElem hs))
52
- rw [List.prod_append,List.prod_singleton,map_mul,boundaryWords_get] at he
53
- have hf : FreeGroup.lift seedLetterUnit (boundaryEdgeWord s) =
54
- if (sectorLetter s).2 then circleLabel (sectorCircleEdge s)
55
- else (circleLabel (sectorCircleEdge s))⁻¹ := by
56
- unfold boundaryEdgeWord circleLabel
57
- split <;> simp
58
- rw [hf] at he
59
- change radialLabel (nextSector s) =
60
- FreeGroup.lift seedLetterUnit ((boundaryWords s.1).take s.2.val).prod * _
61
- rw [← he]
62
- unfold radialLabel nextSector
63
- dsimp only
64
- by_cases hn : s.2.val + 1 < boundaryLength s.1
65
- · rw [Nat.mod_eq_of_lt hn]
66
- · have hn' : s.2.val + 1 = boundaryLength s.1 := by have hh := s.2.isLt; omega
67
- rw [hn',Nat.mod_self,List.take_zero,List.prod_nil,map_one,
68
- ← boundaryWords_length,List.take_length,boundaryWords_prod,seedRelator_unit]
69
-
70
- def edgeAnchor : SeedEdge → SeedVertex
71
- | .inl e => .inl (circleStart e)
72
- | .inr s => .inr s.1
73
-
74
- def edgeLocal : SeedEdge → SeedVertex → SeedSU2
75
- | .inl e, v => if v = .inl (circleStart e) then 1 else circleLabel e
76
- | .inr s, v => if v = .inr s.1 then 1 else radialLabel s
77
-
78
- def faceLocal (s : Sector) (v : SeedVertex) : SeedSU2 :=
79
- if v = .inr s.1 then 1 else
80
- if v = .inl (sectorStart s) then radialLabel s else radialLabel (nextSector s)
81
-
82
- theorem edgeLocal_anchor (e : SeedEdge) : edgeLocal e (edgeAnchor e) = 1 := by
83
- cases e <;> simp [edgeLocal,edgeAnchor]
84
-
85
- theorem nextSector_first (s : Sector) : (nextSector s).1 = s.1 := rfl
86
-
87
- theorem faceLocal_incidence (s : Sector) (e : SeedEdge) (he : e ∈ sectorEdges s)
88
- (v : SeedVertex) (hv : v ∈ edgeVertices e) :
89
- faceLocal s v = faceLocal s (edgeAnchor e) * edgeLocal e v := by
90
- simp only [sectorEdges,Finset.mem_insert,Finset.mem_singleton] at he
91
- rcases he with rfl | rfl | rfl
92
- · simp only [edgeVertices,Finset.mem_insert,Finset.mem_singleton] at hv
93
- rcases hv with rfl | rfl
94
- · simp [edgeAnchor,edgeLocal]
95
- · have hd := circle_distinct (sectorCircleEdge s)
96
- have hr := radial_step s
97
- cases hb : (sectorLetter s).2
98
- · simp only [hb,Bool.false_eq_true,↓reduceIte] at hr
99
- simp only [sectorStart,hb,Bool.false_eq_true,↓reduceIte,
100
- edgeAnchor,edgeLocal,faceLocal,Sum.inl_ne_inr,
101
- Sum.inl.injEq,Ne.symm hd,hd]
102
- rw [hr]
103
- group
104
- · simp only [hb,↓reduceIte] at hr
105
- simp only [sectorStart,hb,↓reduceIte,edgeAnchor,edgeLocal,faceLocal,
106
- Sum.inl_ne_inr,Sum.inl.injEq,Ne.symm hd]
107
- exact hr
108
- · simp only [edgeVertices,Finset.mem_insert,Finset.mem_singleton] at hv
109
- rcases hv with rfl | rfl <;> simp [faceLocal,edgeLocal,edgeAnchor]
110
- · simp only [edgeVertices,Finset.mem_insert,Finset.mem_singleton] at hv
111
- rcases hv with rfl | rfl
112
- · simp [faceLocal,edgeLocal,edgeAnchor,nextSector_first]
113
- · simp [faceLocal,edgeLocal,edgeAnchor,nextSector_first,Ne.symm (sector_distinct s)]
114
-
115
- def cellRank : SeedCell → ℕ
116
- | .inl _ => 0
117
- | .inr (.inl _) => 1
118
- | .inr (.inr _) => 2
119
-
120
- theorem properFace_rank {a b : SeedCell} (h : properFace a b) : cellRank a < cellRank b := by
121
- rcases a with a | (a | a) <;> rcases b with b | (b | b) <;>
122
- simp only [properFace,cellRank] at * <;> omega
123
-
124
- theorem properFace_trans {a b c : SeedCell} (hab : properFace a b) (hbc : properFace b c) :
125
- properFace a c := by
126
- rcases a with a | (a | a) <;> rcases b with b | (b | b) <;>
127
- rcases c with c | (c | c) <;> simp only [properFace] at *
128
- exact Finset.mem_biUnion.mpr ⟨b,hbc,hab⟩
129
-
130
- def upLabel : SeedCell → SeedCell → SeedSU2
131
- | .inl v, .inr (.inl e) => (edgeLocal e v)⁻¹
132
- | .inl v, .inr (.inr s) => (faceLocal s v)⁻¹
133
- | .inr (.inl e), .inr (.inr s) => (faceLocal s (edgeAnchor e))⁻¹
134
- | _, _ => 1
135
-
136
- @[simp] theorem upLabel_diag (a : SeedCell) : upLabel a a = 1 := by
137
- rcases a with a | (a | a) <;> rfl
138
-
139
- theorem upLabel_same_rank {a b : SeedCell} (hab : cellRank a = cellRank b) :
140
- upLabel a b = 1 := by
141
- rcases a with a | (a | a) <;> rcases b with b | (b | b) <;>
142
- simp [upLabel,cellRank] at *
143
-
144
- theorem upLabel_trans {a b c : SeedCell} (hab : a = b ∨ properFace a b)
145
- (hbc : b = c ∨ properFace b c) : upLabel a b * upLabel b c = upLabel a c := by
146
- rcases hab with rfl | hab
147
- · simp
148
- rcases hbc with rfl | hbc
149
- · simp
150
- rcases a with a | (a | a) <;> rcases b with b | (b | b) <;>
151
- rcases c with c | (c | c) <;> simp only [properFace] at hab hbc
152
- simp only [upLabel,← mul_inv_rev]
153
- exact congrArg Inv.inv (faceLocal_incidence c b hbc a hab).symm
154
-
155
- def Related (a b : SeedCell) : Prop := a = b ∨ seedGraph.Adj a b
156
-
157
- theorem related_symm {a b : SeedCell} : Related a b → Related b a := by
158
- rintro (rfl | h)
159
- · exact Or.inl rfl
160
- · exact Or.inr h.symm
161
-
162
- theorem related_forward {a b : SeedCell} (h : Related a b) (hr : cellRank a ≤ cellRank b) :
163
- a = b ∨ properFace a b := by
164
- rcases h with h | h
165
- · exact Or.inl h
166
- rcases h with h | h
167
- · exact Or.inr h
168
- · have hd := properFace_rank h
169
- omega
170
-
171
- def connection (a b : SeedCell) : SeedSU2 :=
172
- if cellRank a ≤ cellRank b then upLabel a b else (upLabel b a)⁻¹
173
-
174
- @[simp] theorem connection_diag (a : SeedCell) : connection a a = 1 := by
175
- simp [connection]
176
-
177
- theorem connection_reverse (a b : SeedCell) : connection b a = (connection a b)⁻¹ := by
178
- by_cases hab : cellRank a ≤ cellRank b
179
- · by_cases hba : cellRank b ≤ cellRank a
180
- · have he := le_antisymm hab hba
181
- simp [connection,hab,hba,upLabel_same_rank he,upLabel_same_rank he.symm]
182
- · simp [connection,hab,hba]
183
- · have hba : cellRank b ≤ cellRank a := (le_total _ _).resolve_left hab
184
- simp [connection,hab,hba]
185
-
186
- theorem connection_flat_sorted {a b c : SeedCell} (hab : Related a b) (hbc : Related b c)
187
- (hrab : cellRank a ≤ cellRank b) (hrbc : cellRank b ≤ cellRank c) :
188
- connection a b * connection b c = connection a c := by
189
- simp only [connection,hrab,hrbc,le_trans hrab hrbc,↓reduceIte]
190
- exact upLabel_trans (related_forward hab hrab) (related_forward hbc hrbc)
191
-
192
- theorem connection_flat {a b c : SeedCell} (hab : Related a b) (hbc : Related b c)
193
- (hac : Related a c) : connection a b * connection b c = connection a c := by
194
- by_cases hrab : cellRank a ≤ cellRank b
195
- · by_cases hrbc : cellRank b ≤ cellRank c
196
- · exact connection_flat_sorted hab hbc hrab hrbc
197
- · have hrcb := le_of_lt (lt_of_not_ge hrbc)
198
- by_cases hrac : cellRank a ≤ cellRank c
199
- · have H := connection_flat_sorted hac (related_symm hbc) hrac hrcb
200
- rw [connection_reverse b c] at H
201
- rw [← H]
202
- group
203
- · have hrca := le_of_lt (lt_of_not_ge hrac)
204
- have H := connection_flat_sorted (related_symm hac) hab hrca hrab
205
- rw [connection_reverse a c,connection_reverse b c] at H
206
- calc
207
- connection a b * connection b c =
208
- connection a c * ((connection a c)⁻¹ * connection a b) * connection b c := by group
209
- _ = connection a c * (connection b c)⁻¹ * connection b c := by rw [H]
210
- _ = connection a c := by group
211
- · have hrba := le_of_lt (lt_of_not_ge hrab)
212
- by_cases hrac : cellRank a ≤ cellRank c
213
- · have H := connection_flat_sorted (related_symm hab) hac hrba hrac
214
- rw [connection_reverse a b] at H
215
- rw [← H]
216
- group
217
- · have hrca := le_of_lt (lt_of_not_ge hrac)
218
- by_cases hrbc : cellRank b ≤ cellRank c
219
- · have H := connection_flat_sorted hbc (related_symm hac) hrbc hrca
220
- rw [connection_reverse a c,connection_reverse a b] at H
221
- calc
222
- connection a b * connection b c =
223
- connection a b * (connection b c * (connection a c)⁻¹) * connection a c := by group
224
- _ = connection a b * (connection a b)⁻¹ * connection a c := by rw [H]
225
- _ = connection a c := by group
226
- · have hrcb := le_of_lt (lt_of_not_ge hrbc)
227
- have H := connection_flat_sorted (related_symm hbc) (related_symm hab) hrcb hrba
228
- rw [connection_reverse b c,connection_reverse a b,connection_reverse a c] at H
229
- have H' := congrArg Inv.inv H
230
- simpa only [mul_inv_rev,inv_inv] using H'
231
-
232
- def rankFin (a : SeedCell) : Fin 3 := ⟨cellRank a,by
233
- rcases a with a | (a | a) <;> norm_num [cellRank]⟩
234
-
235
- theorem adjacent_rank_ne {a b : SeedCell} (h : seedGraph.Adj a b) : rankFin a ≠ rankFin b := by
236
- intro he
237
- have he' := congrArg Fin.val he
238
- change cellRank a = cellRank b at he'
239
- rcases h with h | h <;> have hh := properFace_rank h <;> omega
240
-
241
- theorem clique_card_le_three (s : Finset SeedCell) (hs : (s : Set SeedCell).Pairwise seedGraph.Adj) :
242
- s.card ≤ 3 := by
243
- have hi : Set.InjOn rankFin (s : Set SeedCell) := by
244
- intro a ha b hb he
245
- by_contra hn
246
- exact adjacent_rank_ne (hs ha hb hn) he
247
- have hc := Finset.card_le_card (Finset.subset_univ (s.image rankFin))
248
- rwa [Finset.card_image_of_injOn hi,Finset.card_univ,Fintype.card_fin] at hc
249
-
250
- /-- The subdivided x-circle in the exact 103-cell order graph. -/
251
- def roseLoop : List SeedCell :=
252
- [.inl (.inl none), .inr (.inl (.inl (false,0))),
253
- .inl (.inl (some (false,0))), .inr (.inl (.inl (false,1))),
254
- .inl (.inl (some (false,1))), .inr (.inl (.inl (false,2))), .inl (.inl none)]
255
-
256
- theorem roseLoop_edges : roseLoop.IsChain seedGraph.Adj := by
257
- simp [roseLoop,List.isChain_cons_cons,seedGraph,properFace,edgeVertices,circleStart,circleEnd]
258
-
259
- theorem roseLoop_holonomy : (List.zipWith connection roseLoop roseLoop.tail).prod = seedXUnit := by
260
- simp [roseLoop,connection,cellRank,upLabel,edgeLocal,circleLabel,circleWord,
261
- circleStart,seedLetterUnit]
262
-
263
- theorem roseLoop_nontrivial : (List.zipWith connection roseLoop roseLoop.tail).prod ≠ 1 := by
264
- rw [roseLoop_holonomy]
265
- intro h
266
- have hh := congrArg (fun q : SeedSU2 => (q : ℍ).re) h
267
- norm_num [seedXUnit,seedXQuaternion] at hh
268
-
269
- end SeedConnection
270
-
271
-
272
-
273
- end EilenbergGanea
274
-
275
- end
276
-
277
- end OAI
 
1
+ import OAI.Topology.EilenbergGanea.SeedHolonomy
2
+ import OAI.GroupTheory.RightAngledArtin.Basic
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+
8
+ open Classical Set Filter Topology MeasureTheory
9
+ open scoped Quaternion ContDiff
10
+
11
+ namespace EilenbergGanea
12
+ namespace SeedConnection
13
+
14
+ def circleWord (e : CircleEdge) : FreeGroup Bool := if e.2 = 0 then FreeGroup.of e.1 else 1
15
+
16
+ def boundaryEdgeWord (s : Sector) : FreeGroup Bool :=
17
+ if (sectorLetter s).2 then circleWord (sectorCircleEdge s) else
18
+ (circleWord (sectorCircleEdge s))⁻¹
19
+
20
+ def boundaryWords (r : Bool) : List (FreeGroup Bool) :=
21
+ List.ofFn (fun i : Fin (boundaryLength r) => boundaryEdgeWord ⟨r,i⟩)
22
+
23
+ theorem boundaryWords_prod : ∀ r, (boundaryWords r).prod = seedRelator r := by
24
+ decide
25
+
26
+ theorem sector_end : ∀ s : Sector, sectorStart (nextSector s) =
27
+ if (sectorLetter s).2 then circleEnd (sectorCircleEdge s)
28
+ else circleStart (sectorCircleEdge s) := by decide
29
+
30
+ theorem circle_distinct : ∀ e : CircleEdge, circleStart e ≠ circleEnd e := by decide
31
+
32
+ theorem sector_distinct : ∀ s : Sector, sectorStart s ≠ sectorStart (nextSector s) := by decide
33
+
34
+ def circleLabel (e : CircleEdge) : SeedSU2 := FreeGroup.lift seedLetterUnit (circleWord e)
35
+
36
+ def radialLabel (s : Sector) : SeedSU2 :=
37
+ FreeGroup.lift seedLetterUnit ((boundaryWords s.1).take s.2.val).prod
38
+
39
+ @[simp] theorem boundaryWords_length (r : Bool) : (boundaryWords r).length = boundaryLength r :=
40
+ List.length_ofFn
41
+
42
+ @[simp] theorem boundaryWords_get (s : Sector) :
43
+ (boundaryWords s.1)[s.2.val]'(by simp) = boundaryEdgeWord s := by
44
+ simp [boundaryWords]
45
+
46
+ theorem radial_step (s : Sector) : radialLabel (nextSector s) = radialLabel s *
47
+ (if (sectorLetter s).2 then circleLabel (sectorCircleEdge s)
48
+ else (circleLabel (sectorCircleEdge s))⁻¹) := by
49
+ have hs : s.2.val < (boundaryWords s.1).length := by simp
50
+ have he := congrArg (FreeGroup.lift seedLetterUnit) (congrArg List.prod
51
+ (List.take_succ_eq_append_getElem hs))
52
+ rw [List.prod_append,List.prod_singleton,map_mul,boundaryWords_get] at he
53
+ have hf : FreeGroup.lift seedLetterUnit (boundaryEdgeWord s) =
54
+ if (sectorLetter s).2 then circleLabel (sectorCircleEdge s)
55
+ else (circleLabel (sectorCircleEdge s))⁻¹ := by
56
+ unfold boundaryEdgeWord circleLabel
57
+ split <;> simp
58
+ rw [hf] at he
59
+ change radialLabel (nextSector s) =
60
+ FreeGroup.lift seedLetterUnit ((boundaryWords s.1).take s.2.val).prod * _
61
+ rw [← he]
62
+ unfold radialLabel nextSector
63
+ dsimp only
64
+ by_cases hn : s.2.val + 1 < boundaryLength s.1
65
+ · rw [Nat.mod_eq_of_lt hn]
66
+ · have hn' : s.2.val + 1 = boundaryLength s.1 := by have hh := s.2.isLt; omega
67
+ rw [hn',Nat.mod_self,List.take_zero,List.prod_nil,map_one,
68
+ ← boundaryWords_length,List.take_length,boundaryWords_prod,seedRelator_unit]
69
+
70
+ def edgeAnchor : SeedEdge → SeedVertex
71
+ | .inl e => .inl (circleStart e)
72
+ | .inr s => .inr s.1
73
+
74
+ def edgeLocal : SeedEdge → SeedVertex → SeedSU2
75
+ | .inl e, v => if v = .inl (circleStart e) then 1 else circleLabel e
76
+ | .inr s, v => if v = .inr s.1 then 1 else radialLabel s
77
+
78
+ def faceLocal (s : Sector) (v : SeedVertex) : SeedSU2 :=
79
+ if v = .inr s.1 then 1 else
80
+ if v = .inl (sectorStart s) then radialLabel s else radialLabel (nextSector s)
81
+
82
+ theorem edgeLocal_anchor (e : SeedEdge) : edgeLocal e (edgeAnchor e) = 1 := by
83
+ cases e <;> simp [edgeLocal,edgeAnchor]
84
+
85
+ theorem nextSector_first (s : Sector) : (nextSector s).1 = s.1 := rfl
86
+
87
+ theorem faceLocal_incidence (s : Sector) (e : SeedEdge) (he : e ∈ sectorEdges s)
88
+ (v : SeedVertex) (hv : v ∈ edgeVertices e) :
89
+ faceLocal s v = faceLocal s (edgeAnchor e) * edgeLocal e v := by
90
+ simp only [sectorEdges,Finset.mem_insert,Finset.mem_singleton] at he
91
+ rcases he with rfl | rfl | rfl
92
+ · simp only [edgeVertices,Finset.mem_insert,Finset.mem_singleton] at hv
93
+ rcases hv with rfl | rfl
94
+ · simp [edgeAnchor,edgeLocal]
95
+ · have hd := circle_distinct (sectorCircleEdge s)
96
+ have hr := radial_step s
97
+ cases hb : (sectorLetter s).2
98
+ · simp only [hb,Bool.false_eq_true,↓reduceIte] at hr
99
+ simp only [sectorStart,hb,Bool.false_eq_true,↓reduceIte,
100
+ edgeAnchor,edgeLocal,faceLocal,Sum.inl_ne_inr,
101
+ Sum.inl.injEq,Ne.symm hd,hd]
102
+ rw [hr]
103
+ group
104
+ · simp only [hb,↓reduceIte] at hr
105
+ simp only [sectorStart,hb,↓reduceIte,edgeAnchor,edgeLocal,faceLocal,
106
+ Sum.inl_ne_inr,Sum.inl.injEq,Ne.symm hd]
107
+ exact hr
108
+ · simp only [edgeVertices,Finset.mem_insert,Finset.mem_singleton] at hv
109
+ rcases hv with rfl | rfl <;> simp [faceLocal,edgeLocal,edgeAnchor]
110
+ · simp only [edgeVertices,Finset.mem_insert,Finset.mem_singleton] at hv
111
+ rcases hv with rfl | rfl
112
+ · simp [faceLocal,edgeLocal,edgeAnchor,nextSector_first]
113
+ · simp [faceLocal,edgeLocal,edgeAnchor,nextSector_first,Ne.symm (sector_distinct s)]
114
+
115
+ def cellRank : SeedCell → ℕ
116
+ | .inl _ => 0
117
+ | .inr (.inl _) => 1
118
+ | .inr (.inr _) => 2
119
+
120
+ theorem properFace_rank {a b : SeedCell} (h : properFace a b) : cellRank a < cellRank b := by
121
+ rcases a with a | (a | a) <;> rcases b with b | (b | b) <;>
122
+ simp only [properFace,cellRank] at * <;> omega
123
+
124
+ theorem properFace_trans {a b c : SeedCell} (hab : properFace a b) (hbc : properFace b c) :
125
+ properFace a c := by
126
+ rcases a with a | (a | a) <;> rcases b with b | (b | b) <;>
127
+ rcases c with c | (c | c) <;> simp only [properFace] at *
128
+ exact Finset.mem_biUnion.mpr ⟨b,hbc,hab⟩
129
+
130
+ def upLabel : SeedCell → SeedCell → SeedSU2
131
+ | .inl v, .inr (.inl e) => (edgeLocal e v)⁻¹
132
+ | .inl v, .inr (.inr s) => (faceLocal s v)⁻¹
133
+ | .inr (.inl e), .inr (.inr s) => (faceLocal s (edgeAnchor e))⁻¹
134
+ | _, _ => 1
135
+
136
+ @[simp] theorem upLabel_diag (a : SeedCell) : upLabel a a = 1 := by
137
+ rcases a with a | (a | a) <;> rfl
138
+
139
+ theorem upLabel_same_rank {a b : SeedCell} (hab : cellRank a = cellRank b) :
140
+ upLabel a b = 1 := by
141
+ rcases a with a | (a | a) <;> rcases b with b | (b | b) <;>
142
+ simp [upLabel,cellRank] at *
143
+
144
+ theorem upLabel_trans {a b c : SeedCell} (hab : a = b ∨ properFace a b)
145
+ (hbc : b = c ∨ properFace b c) : upLabel a b * upLabel b c = upLabel a c := by
146
+ rcases hab with rfl | hab
147
+ · simp
148
+ rcases hbc with rfl | hbc
149
+ · simp
150
+ rcases a with a | (a | a) <;> rcases b with b | (b | b) <;>
151
+ rcases c with c | (c | c) <;> simp only [properFace] at hab hbc
152
+ simp only [upLabel,← mul_inv_rev]
153
+ exact congrArg Inv.inv (faceLocal_incidence c b hbc a hab).symm
154
+
155
+ def Related (a b : SeedCell) : Prop := a = b ∨ seedGraph.Adj a b
156
+
157
+ theorem related_symm {a b : SeedCell} : Related a b → Related b a := by
158
+ rintro (rfl | h)
159
+ · exact Or.inl rfl
160
+ · exact Or.inr h.symm
161
+
162
+ theorem related_forward {a b : SeedCell} (h : Related a b) (hr : cellRank a ≤ cellRank b) :
163
+ a = b ∨ properFace a b := by
164
+ rcases h with h | h
165
+ · exact Or.inl h
166
+ rcases h with h | h
167
+ · exact Or.inr h
168
+ · have hd := properFace_rank h
169
+ omega
170
+
171
+ def connection (a b : SeedCell) : SeedSU2 :=
172
+ if cellRank a ≤ cellRank b then upLabel a b else (upLabel b a)⁻¹
173
+
174
+ @[simp] theorem connection_diag (a : SeedCell) : connection a a = 1 := by
175
+ simp [connection]
176
+
177
+ theorem connection_reverse (a b : SeedCell) : connection b a = (connection a b)⁻¹ := by
178
+ by_cases hab : cellRank a ≤ cellRank b
179
+ · by_cases hba : cellRank b ≤ cellRank a
180
+ · have he := le_antisymm hab hba
181
+ simp [connection,hab,hba,upLabel_same_rank he,upLabel_same_rank he.symm]
182
+ · simp [connection,hab,hba]
183
+ · have hba : cellRank b ≤ cellRank a := (le_total _ _).resolve_left hab
184
+ simp [connection,hab,hba]
185
+
186
+ theorem connection_flat_sorted {a b c : SeedCell} (hab : Related a b) (hbc : Related b c)
187
+ (hrab : cellRank a ≤ cellRank b) (hrbc : cellRank b ≤ cellRank c) :
188
+ connection a b * connection b c = connection a c := by
189
+ simp only [connection,hrab,hrbc,le_trans hrab hrbc,↓reduceIte]
190
+ exact upLabel_trans (related_forward hab hrab) (related_forward hbc hrbc)
191
+
192
+ theorem connection_flat {a b c : SeedCell} (hab : Related a b) (hbc : Related b c)
193
+ (hac : Related a c) : connection a b * connection b c = connection a c := by
194
+ by_cases hrab : cellRank a ≤ cellRank b
195
+ · by_cases hrbc : cellRank b ≤ cellRank c
196
+ · exact connection_flat_sorted hab hbc hrab hrbc
197
+ · have hrcb := le_of_lt (lt_of_not_ge hrbc)
198
+ by_cases hrac : cellRank a ≤ cellRank c
199
+ · have H := connection_flat_sorted hac (related_symm hbc) hrac hrcb
200
+ rw [connection_reverse b c] at H
201
+ rw [← H]
202
+ group
203
+ · have hrca := le_of_lt (lt_of_not_ge hrac)
204
+ have H := connection_flat_sorted (related_symm hac) hab hrca hrab
205
+ rw [connection_reverse a c,connection_reverse b c] at H
206
+ calc
207
+ connection a b * connection b c =
208
+ connection a c * ((connection a c)⁻¹ * connection a b) * connection b c := by group
209
+ _ = connection a c * (connection b c)⁻¹ * connection b c := by rw [H]
210
+ _ = connection a c := by group
211
+ · have hrba := le_of_lt (lt_of_not_ge hrab)
212
+ by_cases hrac : cellRank a ≤ cellRank c
213
+ · have H := connection_flat_sorted (related_symm hab) hac hrba hrac
214
+ rw [connection_reverse a b] at H
215
+ rw [← H]
216
+ group
217
+ · have hrca := le_of_lt (lt_of_not_ge hrac)
218
+ by_cases hrbc : cellRank b ≤ cellRank c
219
+ · have H := connection_flat_sorted hbc (related_symm hac) hrbc hrca
220
+ rw [connection_reverse a c,connection_reverse a b] at H
221
+ calc
222
+ connection a b * connection b c =
223
+ connection a b * (connection b c * (connection a c)⁻¹) * connection a c := by group
224
+ _ = connection a b * (connection a b)⁻¹ * connection a c := by rw [H]
225
+ _ = connection a c := by group
226
+ · have hrcb := le_of_lt (lt_of_not_ge hrbc)
227
+ have H := connection_flat_sorted (related_symm hbc) (related_symm hab) hrcb hrba
228
+ rw [connection_reverse b c,connection_reverse a b,connection_reverse a c] at H
229
+ have H' := congrArg Inv.inv H
230
+ simpa only [mul_inv_rev,inv_inv] using H'
231
+
232
+ def rankFin (a : SeedCell) : Fin 3 := ⟨cellRank a,by
233
+ rcases a with a | (a | a) <;> norm_num [cellRank]⟩
234
+
235
+ theorem adjacent_rank_ne {a b : SeedCell} (h : seedGraph.Adj a b) : rankFin a ≠ rankFin b := by
236
+ intro he
237
+ have he' := congrArg Fin.val he
238
+ change cellRank a = cellRank b at he'
239
+ rcases h with h | h <;> have hh := properFace_rank h <;> omega
240
+
241
+ theorem clique_card_le_three (s : Finset SeedCell) (hs : (s : Set SeedCell).Pairwise seedGraph.Adj) :
242
+ s.card ≤ 3 := by
243
+ have hi : Set.InjOn rankFin (s : Set SeedCell) := by
244
+ intro a ha b hb he
245
+ by_contra hn
246
+ exact adjacent_rank_ne (hs ha hb hn) he
247
+ have hc := Finset.card_le_card (Finset.subset_univ (s.image rankFin))
248
+ rwa [Finset.card_image_of_injOn hi,Finset.card_univ,Fintype.card_fin] at hc
249
+
250
+ /-- The subdivided x-circle in the exact 103-cell order graph. -/
251
+ def roseLoop : List SeedCell :=
252
+ [.inl (.inl none), .inr (.inl (.inl (false,0))),
253
+ .inl (.inl (some (false,0))), .inr (.inl (.inl (false,1))),
254
+ .inl (.inl (some (false,1))), .inr (.inl (.inl (false,2))), .inl (.inl none)]
255
+
256
+ theorem roseLoop_edges : roseLoop.IsChain seedGraph.Adj := by
257
+ simp [roseLoop,List.isChain_cons_cons,seedGraph,properFace,edgeVertices,circleStart,circleEnd]
258
+
259
+ theorem roseLoop_holonomy : (List.zipWith connection roseLoop roseLoop.tail).prod = seedXUnit := by
260
+ simp [roseLoop,connection,cellRank,upLabel,edgeLocal,circleLabel,circleWord,
261
+ circleStart,seedLetterUnit]
262
+
263
+ theorem roseLoop_nontrivial : (List.zipWith connection roseLoop roseLoop.tail).prod ≠ 1 := by
264
+ rw [roseLoop_holonomy]
265
+ intro h
266
+ have hh := congrArg (fun q : SeedSU2 => (q : ℍ).re) h
267
+ norm_num [seedXUnit,seedXQuaternion] at hh
268
+
269
+ end SeedConnection
270
+
271
+
272
+
273
+ end EilenbergGanea
274
+
275
+ end
276
+
277
+ end OAI
lean/OAI/Topology/EilenbergGanea/SeedContraction.lean CHANGED
The diff for this file is too large to render. See raw diff
 
lean/OAI/Topology/EilenbergGanea/SeedHolonomy.lean CHANGED
@@ -1,191 +1,191 @@
1
- import OAI.Topology.EilenbergGanea.Seed
2
- import OAI.Topology.EilenbergGanea.SmallHolonomy
3
-
4
- namespace OAI
5
-
6
- noncomputable section
7
-
8
- open Classical Set Filter Topology MeasureTheory
9
- open scoped Quaternion ContDiff
10
-
11
- /-! Exact quaternion monodromy of the fixed presentation seed. -/
12
- open scoped Quaternion
13
- namespace EilenbergGanea
14
-
15
- abbrev SeedSU2 := unitary ℍ
16
-
17
- def seedGoldenReal : ℝ := (1 + Real.sqrt 5) / 4
18
-
19
- def seedXQuaternion : ℍ := ⟨0,1,0,0⟩
20
- def seedYQuaternion : ℍ :=
21
- ⟨seedGoldenReal,1/2,Real.sqrt ((3 - Real.sqrt 5)/8),0⟩
22
-
23
- theorem seedGoldenReal_quadratic : 4 * seedGoldenReal ^ 2 - 2 * seedGoldenReal - 1 = 0 := by
24
- have h := Real.sq_sqrt (show (0 : ℝ) ≤ 5 by norm_num)
25
- dsimp [seedGoldenReal]
26
- nlinarith
27
-
28
- theorem seedGoldenReal_cubic : 8 * seedGoldenReal ^ 3 - 4 * seedGoldenReal = 1 := by
29
- have h := seedGoldenReal_quadratic
30
- nlinarith [sq_nonneg (2 * seedGoldenReal - 1),
31
- mul_eq_zero_of_left h seedGoldenReal]
32
-
33
- theorem seedGoldenReal_quartic : 16 * seedGoldenReal ^ 4 - 12 * seedGoldenReal ^ 2 + 1 = 0 := by
34
- have h := seedGoldenReal_quadratic
35
- have h' := seedGoldenReal_cubic
36
- nlinarith [mul_eq_zero_of_left h (seedGoldenReal ^ 2),
37
- congrArg (fun t : ℝ => t * seedGoldenReal) h']
38
-
39
- theorem seedX_normSq : Quaternion.normSq seedXQuaternion = 1 := by
40
- rw [Quaternion.normSq_def']
41
- norm_num [seedXQuaternion]
42
-
43
- theorem seedY_normSq : Quaternion.normSq seedYQuaternion = 1 := by
44
- have hs := Real.sq_sqrt (show (0 : ℝ) ≤ 5 by norm_num)
45
- have hn := Real.sqrt_nonneg (5 : ℝ)
46
- have hle : Real.sqrt (5 : ℝ) ≤ 3 := by nlinarith
47
- have hc := Real.sq_sqrt (show (0 : ℝ) ≤ (3 - Real.sqrt 5)/8 by positivity)
48
- rw [Quaternion.normSq_def']
49
- change seedGoldenReal ^ 2 + (1 / 2 : ℝ) ^ 2 + Real.sqrt ((3 - Real.sqrt 5)/8) ^ 2 + 0 ^ 2 = 1
50
- dsimp [seedGoldenReal]
51
- nlinarith
52
-
53
- def seedXUnit : SeedSU2 := ⟨seedXQuaternion,by
54
- rw [Unitary.mem_iff,Quaternion.star_mul_self,Quaternion.self_mul_star,seedX_normSq]
55
- simp⟩
56
-
57
- def seedYUnit : SeedSU2 := ⟨seedYQuaternion,by
58
- rw [Unitary.mem_iff,Quaternion.star_mul_self,Quaternion.self_mul_star,seedY_normSq]
59
- simp⟩
60
-
61
- theorem unitQuaternion_quadratic (q : ℍ) (h : Quaternion.normSq q = 1) :
62
- q ^ 2 = (2 * q.re : ℝ) * q - 1 := by
63
- have hh := Quaternion.star_mul_self q
64
- rw [h,Quaternion.star_eq_two_re_sub,sub_mul] at hh
65
- simp only [Quaternion.coe_one] at hh
66
- have hh' : ((2 * q.re : ℝ) : ℍ) * q = 1 + q * q := by
67
- simpa only [add_comm] using sub_eq_iff_eq_add.mp hh
68
- rw [pow_two]
69
- apply eq_sub_iff_add_eq.mpr
70
- simpa only [add_comm] using hh'.symm
71
-
72
- theorem unitQuaternion_half_cube (q : ℍ) (h : Quaternion.normSq q = 1)
73
- (hr : q.re = 1/2) : q ^ 3 = -1 := by
74
- have hh := unitQuaternion_quadratic q h
75
- rw [hr] at hh
76
- norm_num at hh
77
- calc
78
- q ^ 3 = q ^ 2 * q := by rw [pow_succ]
79
- _ = (q - 1) * q := by rw [hh]
80
- _ = q ^ 2 - q := by noncomm_ring
81
- _ = -1 := by rw [hh]; noncomm_ring
82
-
83
- theorem seedX_square : seedXQuaternion ^ 2 = -1 := by
84
- rw [pow_two]
85
- apply Quaternion.ext
86
- · rw [Quaternion.re_mul]
87
- norm_num [seedXQuaternion]
88
- · rw [Quaternion.imI_mul]
89
- norm_num [seedXQuaternion]
90
- · rw [Quaternion.imJ_mul]
91
- norm_num [seedXQuaternion]
92
- · rw [Quaternion.imK_mul]
93
- norm_num [seedXQuaternion]
94
-
95
- theorem seedY_fifth : seedYQuaternion ^ 5 = -1 := by
96
- let q := seedYQuaternion
97
- let c : ℍ := (seedGoldenReal : ℝ)
98
- have hh : q ^ 2 = 2 * c * q - 1 := by
99
- simpa only [q,c,seedYQuaternion,Quaternion.coe_mul, show ((2 : ℝ) : ℍ) = 2 from rfl] using unitQuaternion_quadratic seedYQuaternion seedY_normSq
100
- have h3 : q ^ 3 = (4 * c ^ 2 - 1) * q - 2 * c := by
101
- calc
102
- q ^ 3 = q ^ 2 * q := by rw [pow_succ]
103
- _ = (2 * c * q - 1) * q := by rw [hh]
104
- _ = 2 * c * q ^ 2 - q := by noncomm_ring
105
- _ = (4 * c ^ 2 - 1) * q - 2 * c := by rw [hh]; noncomm_ring
106
- have h4 : q ^ 4 = (8 * c ^ 3 - 4 * c) * q - (4 * c ^ 2 - 1) := by
107
- calc
108
- q ^ 4 = q ^ 3 * q := by rw [pow_succ]
109
- _ = ((4 * c ^ 2 - 1) * q - 2 * c) * q := by rw [h3]
110
- _ = (4 * c ^ 2 - 1) * q ^ 2 - 2 * c * q := by noncomm_ring
111
- _ = (8 * c ^ 3 - 4 * c) * q - (4 * c ^ 2 - 1) := by rw [hh]; noncomm_ring
112
- have h5 : q ^ 5 = (16 * c ^ 4 - 12 * c ^ 2 + 1) * q - (8 * c ^ 3 - 4 * c) := by
113
- calc
114
- q ^ 5 = q ^ 4 * q := by rw [pow_succ]
115
- _ = ((8 * c ^ 3 - 4 * c) * q - (4 * c ^ 2 - 1)) * q := by rw [h4]
116
- _ = (8 * c ^ 3 - 4 * c) * q ^ 2 - (4 * c ^ 2 - 1) * q := by noncomm_ring
117
- _ = _ := by rw [hh]; noncomm_ring
118
- have hc3 : 8 * c ^ 3 - 4 * c = 1 := by
119
- change (8 : ℍ) * (seedGoldenReal : ℍ) ^ 3 - 4 * (seedGoldenReal : ℍ) = 1
120
- have h := congrArg (fun r : ℝ => (r : ℍ)) seedGoldenReal_cubic
121
- simpa only [Quaternion.coe_sub,Quaternion.coe_mul,Quaternion.coe_pow,Quaternion.coe_one,
122
- show ((8 : ℝ) : ℍ) = 8 from rfl, show ((4 : ℝ) : ℍ) = 4 from rfl] using h
123
- have hc4 : 16 * c ^ 4 - 12 * c ^ 2 + 1 = 0 := by
124
- change (16 : ℍ) * (seedGoldenReal : ℍ) ^ 4 - 12 * (seedGoldenReal : ℍ) ^ 2 + 1 = 0
125
- have h := congrArg (fun r : ℝ => (r : ℍ)) seedGoldenReal_quartic
126
- simpa only [Quaternion.coe_sub,Quaternion.coe_mul,Quaternion.coe_pow,Quaternion.coe_add,
127
- Quaternion.coe_one,Quaternion.coe_zero, show ((16 : ℝ) : ℍ) = 16 from rfl,
128
- show ((12 : ℝ) : ℍ) = 12 from rfl] using h
129
- simpa [hc3,hc4] using h5
130
-
131
- theorem seedXYinv_cube : (seedXQuaternion * star seedYQuaternion) ^ 3 = -1 := by
132
- apply unitQuaternion_half_cube
133
- · rw [map_mul,Quaternion.normSq_star,seedX_normSq,seedY_normSq,mul_one]
134
- · rw [Quaternion.re_mul]
135
- rw [Quaternion.imI_star]
136
- norm_num [seedXQuaternion,seedYQuaternion]
137
-
138
- theorem seed_unit_relations :
139
- seedXUnit ^ 2 = seedYUnit ^ 5 ∧
140
- seedXUnit ^ 2 = (seedXUnit * seedYUnit⁻¹) ^ 3 := by
141
- constructor
142
- · apply Subtype.val_injective
143
- change seedXQuaternion ^ 2 = seedYQuaternion ^ 5
144
- rw [seedX_square,seedY_fifth]
145
- · apply Subtype.val_injective
146
- change seedXQuaternion ^ 2 = (seedXQuaternion * star seedYQuaternion) ^ 3
147
- rw [seedX_square,seedXYinv_cube]
148
-
149
- def seedRelator : Bool → FreeGroup Bool
150
- | false => FreeGroup.of false ^ 2 * (FreeGroup.of true ^ 5)⁻¹
151
- | true => FreeGroup.of false ^ 2 * ((FreeGroup.of false * (FreeGroup.of true)⁻¹) ^ 3)⁻¹
152
-
153
- theorem seedWord_relator (r : Bool) : FreeGroup.mk (seedWord r) = seedRelator r := by
154
- cases r <;> decide
155
-
156
- def seedLetterUnit : Bool → SeedSU2
157
- | false => seedXUnit
158
- | true => seedYUnit
159
-
160
- theorem seedRelator_unit (r : Bool) : FreeGroup.lift seedLetterUnit (seedRelator r) = 1 := by
161
- cases r
162
- · simp only [seedRelator,map_mul,map_inv,map_pow,FreeGroup.lift_apply_of,seedLetterUnit]
163
- rw [seed_unit_relations.1,mul_inv_cancel]
164
- · simp only [seedRelator,map_mul,map_inv,map_pow,FreeGroup.lift_apply_of,seedLetterUnit]
165
- rw [seed_unit_relations.2,mul_inv_cancel]
166
-
167
- abbrev SeedPresentationGroup := PresentedGroup (Set.range seedRelator)
168
-
169
- def seedMonodromy : SeedPresentationGroup →* SeedSU2 :=
170
- PresentedGroup.toGroup (f := seedLetterUnit) (by
171
- rintro _ ⟨r,rfl⟩
172
- exact seedRelator_unit r)
173
-
174
- theorem seedMonodromy_nontrivial : seedMonodromy (PresentedGroup.of false) ≠ 1 := by
175
- intro h
176
- have hh := congrArg (fun q : SeedSU2 => (q : ℍ).re) h
177
- simp [seedMonodromy,seedLetterUnit,seedXUnit,seedXQuaternion] at hh
178
-
179
- /-- The source exponent-sum boundary, with rows indexed by its two relators. -/
180
- def seedExponentMatrix : Matrix (Fin 2) (Fin 2) ℤ := !![2,-5;-1,3]
181
-
182
- theorem seedExponentMatrix_det : seedExponentMatrix.det = 1 := by
183
- norm_num [seedExponentMatrix,Matrix.det_fin_two]
184
-
185
- end EilenbergGanea
186
-
187
-
188
-
189
- end
190
-
191
- end OAI
 
1
+ import OAI.Topology.EilenbergGanea.Seed
2
+ import OAI.Topology.EilenbergGanea.SmallHolonomy
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+
8
+ open Classical Set Filter Topology MeasureTheory
9
+ open scoped Quaternion ContDiff
10
+
11
+ /-! Exact quaternion monodromy of the fixed presentation seed. -/
12
+ open scoped Quaternion
13
+ namespace EilenbergGanea
14
+
15
+ abbrev SeedSU2 := unitary ℍ
16
+
17
+ def seedGoldenReal : ℝ := (1 + Real.sqrt 5) / 4
18
+
19
+ def seedXQuaternion : ℍ := ⟨0,1,0,0⟩
20
+ def seedYQuaternion : ℍ :=
21
+ ⟨seedGoldenReal,1/2,Real.sqrt ((3 - Real.sqrt 5)/8),0⟩
22
+
23
+ theorem seedGoldenReal_quadratic : 4 * seedGoldenReal ^ 2 - 2 * seedGoldenReal - 1 = 0 := by
24
+ have h := Real.sq_sqrt (show (0 : ℝ) ≤ 5 by norm_num)
25
+ dsimp [seedGoldenReal]
26
+ nlinarith
27
+
28
+ theorem seedGoldenReal_cubic : 8 * seedGoldenReal ^ 3 - 4 * seedGoldenReal = 1 := by
29
+ have h := seedGoldenReal_quadratic
30
+ nlinarith [sq_nonneg (2 * seedGoldenReal - 1),
31
+ mul_eq_zero_of_left h seedGoldenReal]
32
+
33
+ theorem seedGoldenReal_quartic : 16 * seedGoldenReal ^ 4 - 12 * seedGoldenReal ^ 2 + 1 = 0 := by
34
+ have h := seedGoldenReal_quadratic
35
+ have h' := seedGoldenReal_cubic
36
+ nlinarith [mul_eq_zero_of_left h (seedGoldenReal ^ 2),
37
+ congrArg (fun t : ℝ => t * seedGoldenReal) h']
38
+
39
+ theorem seedX_normSq : Quaternion.normSq seedXQuaternion = 1 := by
40
+ rw [Quaternion.normSq_def']
41
+ norm_num [seedXQuaternion]
42
+
43
+ theorem seedY_normSq : Quaternion.normSq seedYQuaternion = 1 := by
44
+ have hs := Real.sq_sqrt (show (0 : ℝ) ≤ 5 by norm_num)
45
+ have hn := Real.sqrt_nonneg (5 : ℝ)
46
+ have hle : Real.sqrt (5 : ℝ) ≤ 3 := by nlinarith
47
+ have hc := Real.sq_sqrt (show (0 : ℝ) ≤ (3 - Real.sqrt 5)/8 by positivity)
48
+ rw [Quaternion.normSq_def']
49
+ change seedGoldenReal ^ 2 + (1 / 2 : ℝ) ^ 2 + Real.sqrt ((3 - Real.sqrt 5)/8) ^ 2 + 0 ^ 2 = 1
50
+ dsimp [seedGoldenReal]
51
+ nlinarith
52
+
53
+ def seedXUnit : SeedSU2 := ⟨seedXQuaternion,by
54
+ rw [Unitary.mem_iff,Quaternion.star_mul_self,Quaternion.self_mul_star,seedX_normSq]
55
+ simp⟩
56
+
57
+ def seedYUnit : SeedSU2 := ⟨seedYQuaternion,by
58
+ rw [Unitary.mem_iff,Quaternion.star_mul_self,Quaternion.self_mul_star,seedY_normSq]
59
+ simp⟩
60
+
61
+ theorem unitQuaternion_quadratic (q : ℍ) (h : Quaternion.normSq q = 1) :
62
+ q ^ 2 = (2 * q.re : ℝ) * q - 1 := by
63
+ have hh := Quaternion.star_mul_self q
64
+ rw [h,Quaternion.star_eq_two_re_sub,sub_mul] at hh
65
+ simp only [Quaternion.coe_one] at hh
66
+ have hh' : ((2 * q.re : ℝ) : ℍ) * q = 1 + q * q := by
67
+ simpa only [add_comm] using sub_eq_iff_eq_add.mp hh
68
+ rw [pow_two]
69
+ apply eq_sub_iff_add_eq.mpr
70
+ simpa only [add_comm] using hh'.symm
71
+
72
+ theorem unitQuaternion_half_cube (q : ℍ) (h : Quaternion.normSq q = 1)
73
+ (hr : q.re = 1/2) : q ^ 3 = -1 := by
74
+ have hh := unitQuaternion_quadratic q h
75
+ rw [hr] at hh
76
+ norm_num at hh
77
+ calc
78
+ q ^ 3 = q ^ 2 * q := by rw [pow_succ]
79
+ _ = (q - 1) * q := by rw [hh]
80
+ _ = q ^ 2 - q := by noncomm_ring
81
+ _ = -1 := by rw [hh]; noncomm_ring
82
+
83
+ theorem seedX_square : seedXQuaternion ^ 2 = -1 := by
84
+ rw [pow_two]
85
+ apply Quaternion.ext
86
+ · rw [Quaternion.re_mul]
87
+ norm_num [seedXQuaternion]
88
+ · rw [Quaternion.imI_mul]
89
+ norm_num [seedXQuaternion]
90
+ · rw [Quaternion.imJ_mul]
91
+ norm_num [seedXQuaternion]
92
+ · rw [Quaternion.imK_mul]
93
+ norm_num [seedXQuaternion]
94
+
95
+ theorem seedY_fifth : seedYQuaternion ^ 5 = -1 := by
96
+ let q := seedYQuaternion
97
+ let c : ℍ := (seedGoldenReal : ℝ)
98
+ have hh : q ^ 2 = 2 * c * q - 1 := by
99
+ simpa only [q,c,seedYQuaternion,Quaternion.coe_mul, show ((2 : ℝ) : ℍ) = 2 from rfl] using unitQuaternion_quadratic seedYQuaternion seedY_normSq
100
+ have h3 : q ^ 3 = (4 * c ^ 2 - 1) * q - 2 * c := by
101
+ calc
102
+ q ^ 3 = q ^ 2 * q := by rw [pow_succ]
103
+ _ = (2 * c * q - 1) * q := by rw [hh]
104
+ _ = 2 * c * q ^ 2 - q := by noncomm_ring
105
+ _ = (4 * c ^ 2 - 1) * q - 2 * c := by rw [hh]; noncomm_ring
106
+ have h4 : q ^ 4 = (8 * c ^ 3 - 4 * c) * q - (4 * c ^ 2 - 1) := by
107
+ calc
108
+ q ^ 4 = q ^ 3 * q := by rw [pow_succ]
109
+ _ = ((4 * c ^ 2 - 1) * q - 2 * c) * q := by rw [h3]
110
+ _ = (4 * c ^ 2 - 1) * q ^ 2 - 2 * c * q := by noncomm_ring
111
+ _ = (8 * c ^ 3 - 4 * c) * q - (4 * c ^ 2 - 1) := by rw [hh]; noncomm_ring
112
+ have h5 : q ^ 5 = (16 * c ^ 4 - 12 * c ^ 2 + 1) * q - (8 * c ^ 3 - 4 * c) := by
113
+ calc
114
+ q ^ 5 = q ^ 4 * q := by rw [pow_succ]
115
+ _ = ((8 * c ^ 3 - 4 * c) * q - (4 * c ^ 2 - 1)) * q := by rw [h4]
116
+ _ = (8 * c ^ 3 - 4 * c) * q ^ 2 - (4 * c ^ 2 - 1) * q := by noncomm_ring
117
+ _ = _ := by rw [hh]; noncomm_ring
118
+ have hc3 : 8 * c ^ 3 - 4 * c = 1 := by
119
+ change (8 : ℍ) * (seedGoldenReal : ℍ) ^ 3 - 4 * (seedGoldenReal : ℍ) = 1
120
+ have h := congrArg (fun r : ℝ => (r : ℍ)) seedGoldenReal_cubic
121
+ simpa only [Quaternion.coe_sub,Quaternion.coe_mul,Quaternion.coe_pow,Quaternion.coe_one,
122
+ show ((8 : ℝ) : ℍ) = 8 from rfl, show ((4 : ℝ) : ℍ) = 4 from rfl] using h
123
+ have hc4 : 16 * c ^ 4 - 12 * c ^ 2 + 1 = 0 := by
124
+ change (16 : ℍ) * (seedGoldenReal : ℍ) ^ 4 - 12 * (seedGoldenReal : ℍ) ^ 2 + 1 = 0
125
+ have h := congrArg (fun r : ℝ => (r : ℍ)) seedGoldenReal_quartic
126
+ simpa only [Quaternion.coe_sub,Quaternion.coe_mul,Quaternion.coe_pow,Quaternion.coe_add,
127
+ Quaternion.coe_one,Quaternion.coe_zero, show ((16 : ℝ) : ℍ) = 16 from rfl,
128
+ show ((12 : ℝ) : ℍ) = 12 from rfl] using h
129
+ simpa [hc3,hc4] using h5
130
+
131
+ theorem seedXYinv_cube : (seedXQuaternion * star seedYQuaternion) ^ 3 = -1 := by
132
+ apply unitQuaternion_half_cube
133
+ · rw [map_mul,Quaternion.normSq_star,seedX_normSq,seedY_normSq,mul_one]
134
+ · rw [Quaternion.re_mul]
135
+ rw [Quaternion.imI_star]
136
+ norm_num [seedXQuaternion,seedYQuaternion]
137
+
138
+ theorem seed_unit_relations :
139
+ seedXUnit ^ 2 = seedYUnit ^ 5 ∧
140
+ seedXUnit ^ 2 = (seedXUnit * seedYUnit⁻¹) ^ 3 := by
141
+ constructor
142
+ · apply Subtype.val_injective
143
+ change seedXQuaternion ^ 2 = seedYQuaternion ^ 5
144
+ rw [seedX_square,seedY_fifth]
145
+ · apply Subtype.val_injective
146
+ change seedXQuaternion ^ 2 = (seedXQuaternion * star seedYQuaternion) ^ 3
147
+ rw [seedX_square,seedXYinv_cube]
148
+
149
+ def seedRelator : Bool → FreeGroup Bool
150
+ | false => FreeGroup.of false ^ 2 * (FreeGroup.of true ^ 5)⁻¹
151
+ | true => FreeGroup.of false ^ 2 * ((FreeGroup.of false * (FreeGroup.of true)⁻¹) ^ 3)⁻¹
152
+
153
+ theorem seedWord_relator (r : Bool) : FreeGroup.mk (seedWord r) = seedRelator r := by
154
+ cases r <;> decide
155
+
156
+ def seedLetterUnit : Bool → SeedSU2
157
+ | false => seedXUnit
158
+ | true => seedYUnit
159
+
160
+ theorem seedRelator_unit (r : Bool) : FreeGroup.lift seedLetterUnit (seedRelator r) = 1 := by
161
+ cases r
162
+ · simp only [seedRelator,map_mul,map_inv,map_pow,FreeGroup.lift_apply_of,seedLetterUnit]
163
+ rw [seed_unit_relations.1,mul_inv_cancel]
164
+ · simp only [seedRelator,map_mul,map_inv,map_pow,FreeGroup.lift_apply_of,seedLetterUnit]
165
+ rw [seed_unit_relations.2,mul_inv_cancel]
166
+
167
+ abbrev SeedPresentationGroup := PresentedGroup (Set.range seedRelator)
168
+
169
+ def seedMonodromy : SeedPresentationGroup →* SeedSU2 :=
170
+ PresentedGroup.toGroup (f := seedLetterUnit) (by
171
+ rintro _ ⟨r,rfl⟩
172
+ exact seedRelator_unit r)
173
+
174
+ theorem seedMonodromy_nontrivial : seedMonodromy (PresentedGroup.of false) ≠ 1 := by
175
+ intro h
176
+ have hh := congrArg (fun q : SeedSU2 => (q : ℍ).re) h
177
+ simp [seedMonodromy,seedLetterUnit,seedXUnit,seedXQuaternion] at hh
178
+
179
+ /-- The source exponent-sum boundary, with rows indexed by its two relators. -/
180
+ def seedExponentMatrix : Matrix (Fin 2) (Fin 2) ℤ := !![2,-5;-1,3]
181
+
182
+ theorem seedExponentMatrix_det : seedExponentMatrix.det = 1 := by
183
+ norm_num [seedExponentMatrix,Matrix.det_fin_two]
184
+
185
+ end EilenbergGanea
186
+
187
+
188
+
189
+ end
190
+
191
+ end OAI
lean/OAI/Topology/EilenbergGanea/SmallHolonomy.lean CHANGED
@@ -1,744 +1,744 @@
1
- import OAI.Topology.EilenbergGanea.WordEquations
2
- import OAI.GroupTheory.RightAngledArtin.ResidualFiniteness
3
- import Mathlib.Topology.Compactness.Compact
4
- import Mathlib.LinearAlgebra.Finsupp.LinearCombination
5
-
6
- namespace OAI
7
-
8
- noncomputable section
9
-
10
- open Classical Set Filter Topology MeasureTheory
11
- open scoped Quaternion ContDiff
12
-
13
- namespace EilenbergGanea
14
- open scoped Quaternion ContDiff
15
- /-- Squared chord length on the unit-quaternion sphere. -/
16
- theorem su2_distance_square (a : SU2) :
17
- ‖(a : ℍ) - 1‖ ^ 2 = 2 - 2 * (a : ℍ).re := by
18
- have hu := (quaternion_mem_unitary_iff _).mp a.property
19
- have hs : Quaternion.normSq ((a : ℍ) - 1) = Quaternion.normSq (a : ℍ) + 1 - 2 * (a : ℍ).re := by
20
- simp only [Quaternion.normSq_def', Quaternion.re_sub, Quaternion.imI_sub,
21
- Quaternion.imJ_sub, Quaternion.imK_sub, Quaternion.re_one,
22
- Quaternion.imI_one, Quaternion.imJ_one, Quaternion.imK_one]
23
- ring
24
- simpa only [Quaternion.normSq_eq_norm_mul_self, hu, one_mul, sq, one_add_one_eq_two] using hs
25
-
26
- def arcBlend (a : SU2) (t : ℝ) : ℍ :=
27
- (1 - Real.smoothTransition t) • (1 : ℍ) + Real.smoothTransition t • (a : ℍ)
28
-
29
- theorem arcBlend_norm_le (a : SU2) (t : ℝ) : ‖arcBlend a t‖ ≤ 1 := by
30
- have h0 := Real.smoothTransition.nonneg t
31
- have h1 := Real.smoothTransition.le_one t
32
- have hn := (quaternion_mem_unitary_iff _).mp a.property
33
- calc
34
- _ ≤ ‖(1 - Real.smoothTransition t) • (1 : ℍ)‖ +
35
- ‖Real.smoothTransition t • (a : ℍ)‖ := norm_add_le _ _
36
- _ = 1 := by rw [norm_smul, norm_smul, norm_one, hn, Real.norm_eq_abs,
37
- Real.norm_eq_abs, abs_of_nonneg (sub_nonneg.mpr h1), abs_of_nonneg h0]; ring
38
-
39
- theorem small_unit_re (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) :
40
- 0 < (a : ℍ).re ∧ (a : ℍ).re ≤ 1 := by
41
- have h := su2_distance_square a
42
- have hn := norm_nonneg ((a : ℍ) - 1)
43
- constructor <;> nlinarith [sq_nonneg ‖(a : ℍ) - 1‖]
44
-
45
- theorem arcBlend_re_le (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) (t : ℝ) :
46
- (a : ℍ).re ≤ (arcBlend a t).re := by
47
- have h := (small_unit_re a ha).2
48
- have h0 := Real.smoothTransition.nonneg t
49
- have h1 := Real.smoothTransition.le_one t
50
- simp only [arcBlend, Quaternion.re_add, Quaternion.re_smul, Quaternion.re_one, smul_eq_mul]
51
- nlinarith
52
-
53
- theorem arcBlend_ne_zero (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) (t : ℝ) :
54
- arcBlend a t ≠ 0 := by
55
- have h := (small_unit_re a ha).1.trans_le (arcBlend_re_le a ha t)
56
- intro he
57
- simp only [he, Quaternion.re_zero, lt_self_iff_false] at h
58
-
59
- /-- A globally smooth path that remains in the closed chord ball of its
60
- endpoint, avoiding any branch choice of a quaternion logarithm. -/
61
- def smallQuaternionArc (a : SU2) (t : ℝ) : SU2 := normalizeQuaternion (arcBlend a t)
62
-
63
- @[simp] theorem smallQuaternionArc_zero (a : SU2) : smallQuaternionArc a 0 = 1 := by
64
- simpa [smallQuaternionArc, arcBlend] using (normalizeQuaternion_unitary (1 : SU2))
65
-
66
- @[simp] theorem smallQuaternionArc_one (a : SU2) : smallQuaternionArc a 1 = a := by
67
- simp [smallQuaternionArc, arcBlend]
68
-
69
- theorem smallQuaternionArc_smooth (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) :
70
- ContDiff ℝ ∞ (fun t => (smallQuaternionArc a t : ℍ)) := by
71
- apply contDiff_iff_contDiffAt.mpr
72
- intro t
73
- exact (normalizeQuaternion_coe_contDiffAt (arcBlend_ne_zero a ha t)).comp t
74
- (((contDiff_const.sub Real.smoothTransition.contDiff).smul contDiff_const).add
75
- (Real.smoothTransition.contDiff.smul contDiff_const)).contDiffAt
76
-
77
- theorem smallQuaternionArc_distance (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) (t : ℝ) :
78
- ‖(smallQuaternionArc a t : ℍ) - 1‖ ≤ ‖(a : ℍ) - 1‖ := by
79
- have hp : 0 < ‖arcBlend a t‖ := norm_pos_iff.mpr (arcBlend_ne_zero a ha t)
80
- have hre : (a : ℍ).re ≤ (smallQuaternionArc a t : ℍ).re := by
81
- rw [smallQuaternionArc, normalizeQuaternion_coe_of_ne_zero (arcBlend_ne_zero a ha t)]
82
- simp only [Quaternion.re_smul, smul_eq_mul]
83
- rw [mul_comm, ← div_eq_mul_inv, le_div_iff₀ hp]
84
- exact (mul_le_of_le_one_right (small_unit_re a ha).1.le (arcBlend_norm_le a t)).trans
85
- (arcBlend_re_le a ha t)
86
- have h0 := su2_distance_square a
87
- have h1 := su2_distance_square (smallQuaternionArc a t)
88
- nlinarith [norm_nonneg ((a : ℍ)-1), norm_nonneg ((smallQuaternionArc a t : ℍ)-1)]
89
-
90
- end EilenbergGanea
91
-
92
- namespace EilenbergGanea
93
- open scoped Quaternion ContDiff
94
- open Set
95
- section SelectedEquations
96
- variable {E : Type*} {m d : ℕ}
97
-
98
- /-- The selected unknowns remain separate from coefficients, even when two
99
- letters have the same image in the group quotient. -/
100
- def selectedAlphabet (σ : Fin m ↪ E) (e : E) : E ⊕ Fin m := by
101
- classical
102
- exact if h : ∃ i, σ i = e then .inr h.choose else .inl e
103
-
104
- @[simp] theorem selectedAlphabet_selected (σ : Fin m ↪ E) (i : Fin m) :
105
- selectedAlphabet σ (σ i) = .inr i := by
106
- classical
107
- have h : ∃ j, σ j = σ i := ⟨i,rfl⟩
108
- simp only [selectedAlphabet, dite_eq_left h]
109
- exact congrArg Sum.inr (σ.injective h.choose_spec)
110
-
111
- theorem selectedAlphabet_other (σ : Fin m ↪ E) (e : E) (he : ∀ i, σ i ≠ e) :
112
- selectedAlphabet σ e = .inl e := by
113
- classical
114
- simp [selectedAlphabet, he]
115
-
116
- def selectedWord (σ : Fin m ↪ E) : FreeGroup E →* FreeGroup (E ⊕ Fin m) :=
117
- FreeGroup.map (selectedAlphabet σ)
118
-
119
- def selectedLabel (σ : Fin m ↪ E) (a : E → SU2) (x : Fin m → SU2) (e : E) : SU2 :=
120
- Sum.elim a x (selectedAlphabet σ e)
121
-
122
- @[simp] theorem selectedLabel_selected (σ : Fin m ↪ E) (a : E → SU2)
123
- (x : Fin m → SU2) (i : Fin m) : selectedLabel σ a x (σ i) = x i := by
124
- simp [selectedLabel]
125
-
126
- theorem selectedLabel_other (σ : Fin m ↪ E) (a : E → SU2) (x : Fin m → SU2)
127
- (e : E) (he : ∀ i, σ i ≠ e) : selectedLabel σ a x e = a e := by
128
- rw [selectedLabel, selectedAlphabet_other σ e he]
129
- rfl
130
-
131
- theorem selectedWord_eval (σ : Fin m ↪ E) (a : E → SU2) (x : Fin m → SU2)
132
- (w : FreeGroup E) :
133
- FreeGroup.lift (Sum.elim a x) (selectedWord σ w) =
134
- FreeGroup.lift (selectedLabel σ a x) w := by
135
- have he : (FreeGroup.lift (Sum.elim a x)).comp (selectedWord σ) =
136
- FreeGroup.lift (selectedLabel σ a x) := by
137
- apply FreeGroup.ext_hom
138
- intro e
139
- simp [selectedWord, selectedLabel]
140
- exact congrArg (fun f : FreeGroup E →* SU2 => f w) he
141
-
142
- theorem selectedWord_exponents [DecidableEq E] (σ : Fin m ↪ E) (w : FreeGroup E) (j : Fin m) :
143
- wordExponents (eraseCoefficients (selectedWord σ w)) j = wordExponents w (σ j) := by
144
- classical
145
- have he : (FreeGroup.lift (fun i : Fin m => Multiplicative.ofAdd (if j = i then (1 : ℤ) else 0))).comp
146
- (eraseCoefficients.comp (selectedWord σ)) =
147
- FreeGroup.lift (fun e : E => Multiplicative.ofAdd (if σ j = e then (1 : ℤ) else 0)) := by
148
- apply FreeGroup.ext_hom
149
- intro e
150
- by_cases h : ∃ i, σ i = e
151
- · obtain ⟨i,rfl⟩ := h
152
- simp [selectedWord, eraseCoefficients, σ.injective.eq_iff]
153
- · have h' : ∀ i, σ i ≠ e := by simpa only [not_exists] using h
154
- simp [selectedWord, eraseCoefficients, selectedAlphabet_other σ e h', h' j]
155
- exact congrArg (fun f : FreeGroup E →* Multiplicative ℤ => (f w).toAdd) he
156
-
157
- /-- Solve a finite, full-rank system while keeping every unselected label fixed.
158
- The distinguished sublevel condition is the actual isolated root condition,
159
- not a nonsingularity assumption on the roots. -/
160
- theorem selected_word_sublevel_solvable [DecidableEq E]
161
- (σ : Fin m ↪ E) (w : Fin m → FreeGroup E) (ρ : Fin d → FreeGroup E)
162
- (a : ℝ → E → SU2) (ha : ∀ e, ContDiff ℝ ∞ (fun t => (a t e : ℍ)))
163
- (ha0 : ∀ e, a 0 e = 1)
164
- (hB : Matrix.det (fun i j => wordExponents (w i) (σ j)) ≠ 0)
165
- (δ : ℝ) (hδ : 0 < δ)
166
- (hiso : ∀ t ∈ Icc (0 : ℝ) 1, ∀ x : Fin m → SU2,
167
- (∀ i, FreeGroup.lift (selectedLabel σ (a t) x) (w i) = 1) →
168
- ‖(fun i => (FreeGroup.lift (selectedLabel σ (a t) x) (ρ i) : ℍ)) - 1‖ ≠ δ) :
169
- ∃ b : E → SU2,
170
- (∀ e, (∀ i, σ i ≠ e) → b e = a 1 e) ∧
171
- (∀ i, FreeGroup.lift b (w i) = 1) ∧
172
- ‖(fun i => (FreeGroup.lift b (ρ i) : ℍ)) - 1‖ < δ := by
173
- have hb : (exponentMatrix (fun i => eraseCoefficients (selectedWord σ (w i)))).det ≠ 0 := by
174
- change (Matrix.det (fun i j => wordExponents (eraseCoefficients (selectedWord σ (w i))) j)) ≠ 0
175
- simpa only [selectedWord_exponents] using hB
176
- obtain ⟨x,hx,hρ⟩ := coefficient_word_sublevel_solvable
177
- (fun i => selectedWord σ (w i)) (fun i => selectedWord σ (ρ i)) a ha ha0 hb δ hδ
178
- (fun t ht x hx => by
179
- simp only [coefficientWordMap, selectedWord_eval]
180
- apply hiso t ht x
181
- intro i
182
- have hi := congrFun hx i
183
- simpa only [coefficientWordMap, selectedWord_eval, Pi.one_apply] using hi)
184
- refine ⟨selectedLabel σ (a 1) x, fun e he => selectedLabel_other σ _ x e he, ?_, ?_⟩
185
- · intro i
186
- have hi := congrFun hx i
187
- simpa only [coefficientWordMap, selectedWord_eval, Pi.one_apply] using hi
188
- · simpa only [coefficientWordMap, selectedWord_eval] using hρ
189
-
190
- end SelectedEquations
191
- end EilenbergGanea
192
-
193
- namespace EilenbergGanea
194
-
195
- variable {Γ S H : Type*} [Group Γ] [Group H]
196
-
197
- def labelLift (v : S → Γ) (a : Γ → S → H) :
198
- FreeGroup S →* ((Γ → H) ⋊[functionShift Γ H] Γ) :=
199
- FreeGroup.lift (fun s => ⟨fun g => a g s, v s⟩)
200
-
201
- def wordValue (v : S → Γ) : FreeGroup S →* Γ := FreeGroup.lift v
202
-
203
- def pathProduct (v : S → Γ) (a : Γ → S → H) (w : FreeGroup S) (g : Γ) : H :=
204
- (labelLift v a w).left g
205
-
206
- theorem labelLift_right (v : S → Γ) (a : Γ → S → H) (w : FreeGroup S) :
207
- (labelLift v a w).right = wordValue v w := by
208
- have he : (SemidirectProduct.rightHom : ((Γ → H) ⋊[functionShift Γ H] Γ) →* Γ).comp
209
- (labelLift v a) = wordValue v := by
210
- apply FreeGroup.ext_hom
211
- intro s
212
- simp [labelLift, wordValue]
213
- exact congrArg (fun f : FreeGroup S →* Γ => f w) he
214
-
215
- @[simp] theorem pathProduct_one (v : S → Γ) (a : Γ → S → H) (g : Γ) :
216
- pathProduct v a 1 g = 1 := by simp [pathProduct]
217
- @[simp] theorem pathProduct_of (v : S → Γ) (a : Γ → S → H) (s : S) (g : Γ) :
218
- pathProduct v a (FreeGroup.of s) g = a g s := by simp [pathProduct, labelLift]
219
- theorem pathProduct_mul (v : S → Γ) (a : Γ → S → H) (w z : FreeGroup S) (g : Γ) :
220
- pathProduct v a (w*z) g = pathProduct v a w g * pathProduct v a z (g * wordValue v w) := by
221
- simp only [pathProduct, map_mul, SemidirectProduct.mul_left, Pi.mul_apply, labelLift_right]
222
- rfl
223
- theorem pathProduct_inv (v : S → Γ) (a : Γ → S → H) (w : FreeGroup S) (g : Γ) :
224
- pathProduct v a w⁻¹ g = (pathProduct v a w (g * (wordValue v w)⁻¹))⁻¹ := by
225
- simp only [pathProduct, map_inv, SemidirectProduct.inv_left, labelLift_right]
226
- rfl
227
-
228
- theorem pathProduct_conjugate_loop (v : S → Γ) (a : Γ → S → H)
229
- (u r : FreeGroup S) (hr : wordValue v r = 1) (g : Γ) :
230
- pathProduct v a (u*r*u⁻¹) g = pathProduct v a u g *
231
- pathProduct v a r (g * wordValue v u) * (pathProduct v a u g)⁻¹ := by
232
- rw [pathProduct_mul, pathProduct_mul, pathProduct_inv, map_mul, hr, mul_one]
233
- simp only [mul_inv_cancel_right]
234
-
235
- theorem pathProduct_continuous [TopologicalSpace H] [IsTopologicalGroup H]
236
- (v : S → Γ) (w : FreeGroup S) (g : Γ) :
237
- Continuous (fun a : Γ → S → H => pathProduct v a w g) := by
238
- induction w using FreeGroup.induction_on generalizing g with
239
- | one => simpa using (continuous_const : Continuous (fun _ : Γ → S → H => (1 : H)))
240
- | of s =>
241
- simp only [pathProduct_of]
242
- exact continuous_apply_apply g s
243
- | inv_of s =>
244
- simp only [pathProduct_inv, pathProduct_of]
245
- exact (continuous_apply_apply (g * (wordValue v (FreeGroup.of s))⁻¹) s).inv
246
- | mul w z hw hz =>
247
- simp only [pathProduct_mul]
248
- exact (hw g).mul (hz (g * wordValue v w))
249
-
250
- /-- The set of vertices inspected by a word is finite, independently of the
251
- label values. No countability hypothesis on the alphabet is needed. -/
252
- theorem pathProduct_finite_locations (v : S → Γ) (w : FreeGroup S) (g : Γ) :
253
- ∃ P : Finset Γ, ∀ a b : Γ → S → H,
254
- (∀ p ∈ P, ∀ s, a p s = b p s) → pathProduct v a w g = pathProduct v b w g := by
255
- classical
256
- induction w using FreeGroup.induction_on generalizing g with
257
- | one => exact ⟨∅, fun _ _ _ => by simp⟩
258
- | of s => exact ⟨{g}, fun a b hab => by simpa using hab g (by simp) s⟩
259
- | inv_of s =>
260
- exact ⟨{g * (wordValue v (FreeGroup.of s))⁻¹}, fun a b hab => by
261
- rw [pathProduct_inv, pathProduct_inv, pathProduct_of, pathProduct_of, hab _ (by simp)]⟩
262
- | mul w z hw hz =>
263
- obtain ⟨P, hP⟩ := hw g
264
- obtain ⟨Q, hQ⟩ := hz (g * wordValue v w)
265
- refine ⟨P ∪ Q, fun a b hab => ?_⟩
266
- rw [pathProduct_mul, pathProduct_mul, hP a b (fun p hp => hab p (Finset.mem_union_left Q hp)),
267
- hQ a b (fun p hp => hab p (Finset.mem_union_right P hp))]
268
-
269
- /-- Evaluation commutes with pullback of a labeling along a group quotient,
270
- including when different alphabet letters have the same image. -/
271
- theorem pathProduct_pullback {D : Type*} [Group D] (q : Γ →* D)
272
- (v : S → Γ) (a : D → S → H) (w : FreeGroup S) (g : Γ) :
273
- pathProduct v (fun p s => a (q p) s) w g = pathProduct (fun s => q (v s)) a w (q g) := by
274
- have hv : ∀ w : FreeGroup S, wordValue (fun s => q (v s)) w = q (wordValue v w) := by
275
- have he : wordValue (fun s => q (v s)) = q.comp (wordValue v) := by
276
- apply FreeGroup.ext_hom
277
- intro s
278
- simp [wordValue]
279
- intro w
280
- exact congrArg (fun f : FreeGroup S →* D => f w) he
281
- induction w using FreeGroup.induction_on generalizing g with
282
- | one => simp
283
- | of s => simp
284
- | inv_of s => simp only [pathProduct_inv, pathProduct_of, hv, map_inv, map_mul]
285
- | mul w z hw hz => simp only [pathProduct_mul, hv, map_mul, hw, hz]
286
-
287
-
288
- /-- Once every final relator has trivial transport at every vertex, normal
289
- closure gives trivial transport on every null word, not just on a finite
290
- collection of test loops. -/
291
- theorem pathProduct_trivial_of_relators (v : S → Γ) (a : Γ → S → H)
292
- (R : Set (FreeGroup S)) (hR : R ⊆ (wordValue v).ker)
293
- (hp : (wordValue v).ker = Subgroup.normalClosure R)
294
- (ha : ∀ r ∈ R, ∀ g, pathProduct v a r g = 1)
295
- (w : FreeGroup S) (hw : wordValue v w = 1) (g : Γ) : pathProduct v a w g = 1 := by
296
- have hrel : R ⊆ (labelLift v a).ker := by
297
- intro r hr
298
- change labelLift v a r = 1
299
- apply SemidirectProduct.ext
300
- · funext g
301
- exact ha r hr g
302
- · rw [labelLift_right]
303
- exact hR hr
304
- have hle : Subgroup.normalClosure R ≤ (labelLift v a).ker :=
305
- Subgroup.normalClosure_le_normal hrel
306
- have he : labelLift v a w = 1 := hle (by rw [← hp]; exact hw)
307
- change (labelLift v a w).left g = 1
308
- rw [he]
309
- rfl
310
-
311
- def pathChain (v : S → Γ) (w : FreeGroup S) (g : Γ) : (Γ × S) →₀ ℤ :=
312
- (pathProduct v (fun p s => Multiplicative.ofAdd (Finsupp.single (p,s) 1)) w g).toAdd
313
-
314
- @[simp] theorem pathChain_one (v : S → Γ) (g : Γ) : pathChain v 1 g = 0 := by
315
- simp [pathChain]
316
- @[simp] theorem pathChain_of (v : S → Γ) (s : S) (g : Γ) :
317
- pathChain v (FreeGroup.of s) g = Finsupp.single (g,s) 1 := by simp [pathChain]
318
- theorem pathChain_mul (v : S → Γ) (w z : FreeGroup S) (g : Γ) :
319
- pathChain v (w*z) g = pathChain v w g + pathChain v z (g * wordValue v w) := by
320
- simp only [pathChain, pathProduct_mul, toAdd_mul]
321
- theorem pathChain_inv (v : S → Γ) (w : FreeGroup S) (g : Γ) :
322
- pathChain v w⁻¹ g = -pathChain v w (g * (wordValue v w)⁻¹) := by
323
- simp only [pathChain, pathProduct_inv, toAdd_inv]
324
- theorem pathChain_conjugate (v : S → Γ) (u r : FreeGroup S)
325
- (hr : wordValue v r = 1) (g : Γ) :
326
- pathChain v (u*r*u⁻¹) g = pathChain v r (g * wordValue v u) := by
327
- simp only [pathChain, pathProduct_conjugate_loop v _ u r hr g,
328
- toAdd_mul, toAdd_inv]
329
- abel
330
-
331
- variable {R : Type*}
332
- abbrev NormalFactor (S R : Type*) := FreeGroup S × R × Bool
333
-
334
- def normalFactorWord (r : R → FreeGroup S) (f : NormalFactor S R) : FreeGroup S :=
335
- f.1 * (if f.2.2 then r f.2.1 else (r f.2.1)⁻¹) * f.1⁻¹
336
-
337
- def normalFactorCount (v : S → Γ) (f : NormalFactor S R) (g : Γ) : (Γ × R) →₀ ℤ :=
338
- Finsupp.single (g * wordValue v f.1, f.2.1) (if f.2.2 then 1 else -1)
339
-
340
- def relatorChainMap (v : S → Γ) (r : R → FreeGroup S) :
341
- ((Γ × R) →₀ ℤ) →ₗ[ℤ] ((Γ × S) →₀ ℤ) :=
342
- Finsupp.linearCombination ℤ (fun i => pathChain v (r i.2) i.1)
343
-
344
- theorem normalFactor_value (v : S → Γ) (r : R → FreeGroup S)
345
- (hr : ∀ i, wordValue v (r i) = 1) (f : NormalFactor S R) :
346
- wordValue v (normalFactorWord r f) = 1 := by
347
- dsimp only [normalFactorWord]
348
- split_ifs <;> simp [hr]
349
-
350
- theorem pathChain_normalFactor (v : S → Γ) (r : R → FreeGroup S)
351
- (hr : ∀ i, wordValue v (r i) = 1) (f : NormalFactor S R) (g : Γ) :
352
- pathChain v (normalFactorWord r f) g = relatorChainMap v r (normalFactorCount v f g) := by
353
- simp only [normalFactorWord, normalFactorCount, relatorChainMap, Finsupp.linearCombination_single]
354
- split_ifs with h
355
- · rw [pathChain_conjugate v _ _ (hr _)]; simp only [one_smul]
356
- · rw [pathChain_conjugate v _ _ (by simp [hr]), pathChain_inv, hr]
357
- simp only [inv_one, mul_one, neg_one_smul]
358
-
359
- theorem pathChain_normalProduct (v : S → Γ) (r : R → FreeGroup S)
360
- (hr : ∀ i, wordValue v (r i) = 1) (l : List (NormalFactor S R)) (g : Γ) :
361
- pathChain v (l.map (normalFactorWord r)).prod g =
362
- relatorChainMap v r (l.map (fun f => normalFactorCount v f g)).sum := by
363
- induction l with
364
- | nil => simp
365
- | cons f l ih =>
366
- simp only [List.map_cons, List.prod_cons, List.sum_cons, map_add, pathChain_mul,
367
- normalFactor_value v r hr f, mul_one, pathChain_normalFactor v r hr f g, ih]
368
-
369
- /-- The coefficient identity is an equality in the full free abelian group of
370
- translated indexed relators. Injectivity is sufficient; no finiteness of the
371
- relator or generator types is assumed. -/
372
- theorem exact_translated_relator_counts (v : S → Γ) (r : R → FreeGroup S)
373
- (hr : ∀ i, wordValue v (r i) = 1) (hinj : Function.Injective (relatorChainMap v r))
374
- (z : FreeGroup S) (ρ : R) (hchain : pathChain v z 1 = pathChain v (r ρ) 1)
375
- (l : List (NormalFactor S R)) (he : z = (l.map (normalFactorWord r)).prod) :
376
- (l.map (fun f => normalFactorCount v f 1)).sum = Finsupp.single (1,ρ) 1 := by
377
- apply hinj
378
- rw [← pathChain_normalProduct v r hr, ← he, hchain]
379
- simp [relatorChainMap]
380
-
381
- end EilenbergGanea
382
-
383
- namespace EilenbergGanea
384
- variable {Γ S H : Type*} [Group Γ] [Group H]
385
-
386
-
387
- section CompactLabeling
388
- variable {T I : Type*}
389
-
390
- def mergeLabels (a : Γ → S → H) (b : Γ → T → H) : Γ → S ⊕ T → H :=
391
- fun g => Sum.elim (a g) (b g)
392
-
393
- omit [Group Γ] [Group H] in
394
- theorem mergeLabels_continuous [TopologicalSpace H] (a : Γ → S → H) :
395
- Continuous (fun b : Γ → T → H => mergeLabels a b) := by
396
- apply continuous_pi
397
- intro g
398
- apply continuous_pi
399
- intro s
400
- cases s with
401
- | inl s => exact continuous_const
402
- | inr t => exact continuous_apply_apply g t
403
-
404
- /-- Copy arbitrary prescribed labels to a finite quotient solely on the finite
405
- set of vertices currently being tested. This does not assert that the original
406
- labeling is periodic or descends to a single quotient. -/
407
- theorem copy_labels_on_finite_set {D : Type*} [Group D] (q : Γ →* D)
408
- (P : Finset Γ) (hq : Set.InjOn q (P : Set Γ)) (a : Γ → S → H)
409
- (Allowed : H → Prop) (h1 : Allowed 1) (ha : ∀ g s, Allowed (a g s)) :
410
- ∃ aF : D → S → H, (∀ d s, Allowed (aF d s)) ∧ ∀ p ∈ P, ∀ s, aF (q p) s = a p s := by
411
- classical
412
- let aF : D → S → H := fun d s => if hd : ∃ p ∈ P, q p = d then a hd.choose s else 1
413
- refine ⟨aF, ?_, ?_⟩
414
- · intro d s
415
- dsimp [aF]
416
- split_ifs
417
- · exact ha _ _
418
- · exact h1
419
- · intro p hp s
420
- have he : ∃ p' ∈ P, q p' = q p := ⟨p, hp, rfl⟩
421
- simp only [aF, dite_eq_left he]
422
- have heq : he.choose = p := hq he.choose_spec.1 hp he.choose_spec.2
423
- rw [heq]
424
-
425
- /-- Tychonoff compactness for all extra generators, with the original labels
426
- fixed. The finite-quotient premise is exactly the separate finite solvability
427
- obligation, not a periodicity assumption on the prescribed assignment. -/
428
- theorem compact_labeling_from_finite_quotients [Group.ResiduallyFinite Γ]
429
- [TopologicalSpace H] [IsTopologicalGroup H] [CompactSpace H]
430
- (v : S ⊕ T → Γ) (a : Γ → S → H) (w : I → FreeGroup (S ⊕ T)) (g : I → Γ)
431
- (K : I → Set H) (hK : ∀ i, IsClosed (K i))
432
- (Allowed : H → Prop) (h1 : Allowed 1) (ha : ∀ g s, Allowed (a g s))
433
- (hsolve : ∀ (N : FiniteIndexNormalSubgroup Γ) (J : Finset I)
434
- (aF : (Γ ⧸ N.toSubgroup) → S → H), (∀ d s, Allowed (aF d s)) →
435
- ∃ bF : (Γ ⧸ N.toSubgroup) → T → H, ∀ i ∈ J, ∀ d,
436
- pathProduct (fun s => QuotientGroup.mk' N.toSubgroup (v s))
437
- (mergeLabels aF bF) (w i) d ∈ K i) :
438
- ∃ b : Γ → T → H, ∀ i, pathProduct v (mergeLabels a b) (w i) (g i) ∈ K i := by
439
- classical
440
- let C : I → Set (Γ → T → H) := fun i =>
441
- {b | pathProduct v (mergeLabels a b) (w i) (g i) ∈ K i}
442
- have hc : ∀ i, IsClosed (C i) := fun i =>
443
- (hK i).preimage ((pathProduct_continuous v (w i) (g i)).comp (mergeLabels_continuous a))
444
- have hf : ∀ J : Finset I, (⋂ i ∈ J, C i).Nonempty := by
445
- intro J
446
- choose P hP using (fun i : I => pathProduct_finite_locations (H := H) v (w i) (g i))
447
- let V := J.biUnion P
448
- obtain ⟨N, hN⟩ := finite_set_quotient_injective V
449
- let q := QuotientGroup.mk' N.toSubgroup
450
- obtain ⟨aF, haF, heF⟩ := copy_labels_on_finite_set q V hN a Allowed h1 ha
451
- obtain ⟨bF, hbF⟩ := hsolve N J aF haF
452
- refine ⟨fun p t => bF (q p) t, ?_⟩
453
- simp only [Set.mem_iInter]
454
- intro i hi
455
- change pathProduct v (mergeLabels a (fun p t => bF (q p) t)) (w i) (g i) ∈ K i
456
- have he : pathProduct v (mergeLabels a (fun p t => bF (q p) t)) (w i) (g i) =
457
- pathProduct v (fun p s => mergeLabels aF bF (q p) s) (w i) (g i) := by
458
- apply hP i
459
- intro p hp s
460
- cases s with
461
- | inl s => exact (heF p (Finset.mem_biUnion.mpr ⟨i, hi, hp⟩) s).symm
462
- | inr t => rfl
463
- rw [he, pathProduct_pullback]
464
- exact hbF i hi (q (g i))
465
- obtain ⟨b, hb⟩ := CompactSpace.iInter_nonempty hc hf
466
- exact ⟨b, fun i => Set.mem_iInter.mp hb i⟩
467
- end CompactLabeling
468
- end EilenbergGanea
469
-
470
- open scoped Quaternion
471
- namespace EilenbergGanea
472
-
473
- theorem su2_norm (a : SU2) : ‖(a : ℍ)‖ = 1 := by
474
- have h : star (a : ℍ) * (a : ℍ) = 1 := a.property.1
475
- have hn := congrArg norm h
476
- simp only [norm_mul, norm_star, norm_one] at hn
477
- nlinarith [norm_nonneg (a : ℍ)]
478
-
479
- /-- The two elementary estimates needed for the presentation argument, with
480
- constants independent of the Cayley graph or any finite quotient. -/
481
- theorem unit_product_linearization (l : List ℍ) (h : ℝ) (hh : 0 ≤ h)
482
- (hu : ∀ a ∈ l, ‖a‖ = 1) (hb : ∀ a ∈ l, ‖a - 1‖ ≤ h) :
483
- ‖l.prod - 1‖ ≤ l.length * h ∧
484
- ‖l.prod - 1 - (l.map (fun a => a - 1)).sum‖ ≤ (l.length : ℝ)^2 * h^2 := by
485
- induction l with
486
- | nil => simp
487
- | cons a l ih =>
488
- obtain ⟨hp, he⟩ := ih (fun b hm => hu b (by simp [hm])) (fun b hm => hb b (by simp [hm]))
489
- have hna := hu a (by simp)
490
- have hba := hb a (by simp)
491
- have hid : a * l.prod - 1 = a * (l.prod - 1) + (a - 1) := by noncomm_ring
492
- have hie : a * l.prod - 1 - ((a - 1) + (l.map (fun b => b - 1)).sum) =
493
- (a - 1) * (l.prod - 1) + (l.prod - 1 - (l.map (fun b => b - 1)).sum) := by noncomm_ring
494
- constructor
495
- · simp only [List.prod_cons, List.length_cons, Nat.cast_add, Nat.cast_one]
496
- rw [hid]
497
- calc
498
- _ ≤ ‖a * (l.prod - 1)‖ + ‖a - 1‖ := norm_add_le _ _
499
- _ = ‖l.prod - 1‖ + ‖a - 1‖ := by rw [norm_mul, hna, one_mul]
500
- _ ≤ (l.length + 1) * h := by nlinarith
501
- · simp only [List.prod_cons, List.map_cons, List.sum_cons, List.length_cons, Nat.cast_add, Nat.cast_one]
502
- rw [hie]
503
- have hn : 0 ≤ (l.length : ℝ) := Nat.cast_nonneg _
504
- calc
505
- _ ≤ ‖(a - 1) * (l.prod - 1)‖ + ‖l.prod - 1 - (l.map (fun b => b - 1)).sum‖ := norm_add_le _ _
506
- _ = ‖a - 1‖ * ‖l.prod - 1‖ + ‖l.prod - 1 - (l.map (fun b => b - 1)).sum‖ := by rw [norm_mul]
507
- _ ≤ h * (l.length * h) + (l.length : ℝ)^2 * h^2 :=
508
- add_le_add (mul_le_mul hba hp (norm_nonneg _) hh) he
509
- _ ≤ (l.length + 1)^2 * h^2 := by nlinarith [sq_nonneg h]
510
-
511
- theorem quaternion_commutator_bound (a b : ℍ) :
512
- ‖a * b - b * a‖ ≤ 2 * ‖a - 1‖ * ‖b - 1‖ := by
513
- have he : a * b - b * a = (a - 1) * (b - 1) - (b - 1) * (a - 1) := by noncomm_ring
514
- rw [he]
515
- calc
516
- _ ≤ ‖(a - 1) * (b - 1)‖ + ‖(b - 1) * (a - 1)‖ := norm_sub_le _ _
517
- _ = _ := by rw [norm_mul, norm_mul]; ring
518
-
519
- theorem su2_conjugation_error (a b : SU2) :
520
- ‖((a * b * a⁻¹ : SU2) : ℍ) - (b : ℍ)‖ ≤ 2 * ‖(a : ℍ) - 1‖ * ‖(b : ℍ) - 1‖ := by
521
- have he : ((a * b * a⁻¹ : SU2) : ℍ) - (b : ℍ) =
522
- ((a : ℍ) * (b : ℍ) - (b : ℍ) * (a : ℍ)) * ((a⁻¹ : SU2) : ℍ) := by
523
- change (a : ℍ) * (b : ℍ) * star (a : ℍ) - (b : ℍ) = _
524
- change _ = ((a : ℍ) * (b : ℍ) - (b : ℍ) * (a : ℍ)) * star (a : ℍ)
525
- rw [sub_mul, mul_assoc (b : ℍ), a.property.2, mul_one]
526
- rw [he, norm_mul, su2_norm, mul_one]
527
- exact quaternion_commutator_bound _ _
528
-
529
- theorem su2_inverse_distance (b : SU2) : ‖((b⁻¹ : SU2) : ℍ) - 1‖ = ‖(b : ℍ) - 1‖ := by
530
- change ‖star (b : ℍ) - 1‖ = _
531
- calc
532
- _ = ‖star ((b : ℍ) - 1)‖ := by rw [star_sub, star_one]
533
- _ = _ := norm_star _
534
-
535
- theorem su2_inverse_linearization (b : SU2) :
536
- ‖((b⁻¹ : SU2) : ℍ) - 1 + ((b : ℍ) - 1)‖ ≤ ‖(b : ℍ) - 1‖^2 := by
537
- have he : ((b⁻¹ : SU2) : ℍ) - 1 + ((b : ℍ) - 1) =
538
- -((((b⁻¹ : SU2) : ℍ) - 1) * ((b : ℍ) - 1)) := by
539
- have hb : ((b⁻¹ : SU2) : ℍ) * (b : ℍ) = 1 := b.property.1
540
- noncomm_ring [hb]
541
- rw [he, norm_neg, norm_mul, su2_inverse_distance, pow_two]
542
-
543
- /-- Replacing each displacement by its linear model introduces only the sum
544
- of the errors. Combined with exact signed counts, this avoids any choice of
545
- an ordering of the relator indices (which can be uncountable). -/
546
- theorem unit_product_with_linear_models {I : Type*} (l : List I)
547
- (f : I → SU2) (v : I → ℍ) (h D : ℝ) (hh : 0 ≤ h)
548
- (hb : ∀ i ∈ l, ‖(f i : ℍ) - 1‖ ≤ h)
549
- (he : ∀ i ∈ l, ‖(f i : ℍ) - 1 - v i‖ ≤ D) :
550
- ‖((l.map (fun i => (f i : ℍ))).prod - 1) - (l.map v).sum‖ ≤
551
- (l.length : ℝ)^2 * h^2 + l.length * D := by
552
- have hp := (unit_product_linearization (l.map (fun i => (f i : ℍ))) h hh
553
- (by intro a ha; obtain ⟨i, _, rfl⟩ := List.mem_map.mp ha; exact su2_norm _)
554
- (by intro a ha; obtain ⟨i, hi, rfl⟩ := List.mem_map.mp ha; exact hb i hi)).2
555
- simp only [List.length_map, List.map_map, Function.comp_def] at hp
556
- have hs : ∀ l : List I, (∀ i ∈ l, ‖(f i : ℍ) - 1 - v i‖ ≤ D) →
557
- ‖(l.map (fun i => (f i : ℍ) - 1)).sum - (l.map v).sum‖ ≤ l.length * D := by
558
- intro l he
559
- induction l with
560
- | nil => simp
561
- | cons i l ih =>
562
- have hi := he i (by simp)
563
- have hrest := ih (fun j hj => he j (by simp [hj]))
564
- simp only [List.map_cons, List.sum_cons, List.length_cons, Nat.cast_add, Nat.cast_one]
565
- have heq : (f i : ℍ) - 1 + (l.map (fun j => (f j : ℍ) - 1)).sum -
566
- (v i + (l.map v).sum) = ((f i : ℍ) - 1 - v i) +
567
- ((l.map (fun j => (f j : ℍ) - 1)).sum - (l.map v).sum) := by abel
568
- rw [heq]
569
- exact (norm_add_le _ _).trans (by linarith)
570
-
571
- calc
572
- _ ≤ ‖((l.map (fun i => (f i : ℍ))).prod - 1) - (l.map (fun i => (f i : ℍ) - 1)).sum‖ +
573
- ‖(l.map (fun i => (f i : ℍ) - 1)).sum - (l.map v).sum‖ := norm_sub_le_norm_sub_add_norm_sub _ _ _
574
- _ ≤ _ := add_le_add hp (hs l he)
575
- end EilenbergGanea
576
-
577
- namespace EilenbergGanea
578
- open scoped Quaternion
579
-
580
- theorem su2_conjugation_distance (a b : SU2) :
581
- ‖((a * b * a⁻¹ : SU2) : ℍ) - 1‖ = ‖(b : ℍ) - 1‖ := by
582
- have he : ((a * b * a⁻¹ : SU2) : ℍ) - 1 =
583
- (a : ℍ) * ((b : ℍ) - 1) * star (a : ℍ) := by
584
- change (a : ℍ) * (b : ℍ) * star (a : ℍ) - 1 = _
585
- rw [mul_sub, sub_mul, mul_one, a.property.2]
586
- rw [he, norm_mul, norm_mul, norm_star, su2_norm, one_mul, mul_one]
587
-
588
- def signedUnit (b : SU2) (ε : Bool) : SU2 := if ε then b else b⁻¹
589
- def signedDisplacement (b : SU2) (ε : Bool) : ℍ := if ε then (b : ℍ) - 1 else -((b : ℍ) - 1)
590
-
591
- theorem signedUnit_distance (b : SU2) (ε : Bool) :
592
- ‖(signedUnit b ε : ℍ) - 1‖ = ‖(b : ℍ) - 1‖ := by
593
- cases ε <;> simp [signedUnit, su2_inverse_distance]
594
-
595
- theorem signedUnit_error (b : SU2) (ε : Bool) :
596
- ‖(signedUnit b ε : ℍ) - 1 - signedDisplacement b ε‖ ≤ ‖(b : ℍ) - 1‖^2 := by
597
- cases ε with
598
- | false =>
599
- change ‖((b⁻¹ : SU2) : ℍ) - 1 - (-((b : ℍ) - 1))‖ ≤ _
600
- simpa only [sub_neg_eq_add] using su2_inverse_linearization b
601
- | true => simp [signedUnit, signedDisplacement]
602
-
603
- theorem conjugated_signedUnit_error (a b : SU2) (ε : Bool) (A h : ℝ)
604
- (hA : 0 ≤ A) (hh : 0 ≤ h) (ha : ‖(a : ℍ) - 1‖ ≤ A) (hb : ‖(b : ℍ) - 1‖ ≤ h) :
605
- ‖((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - 1 - signedDisplacement b ε‖ ≤
606
- 2 * A * h + h^2 := by
607
- have he : ((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - 1 - signedDisplacement b ε =
608
- (((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - (signedUnit b ε : ℍ)) +
609
- ((signedUnit b ε : ℍ) - 1 - signedDisplacement b ε) := by abel
610
- rw [he]
611
- have hsq : ‖(b : ℍ) - 1‖^2 ≤ h^2 := by nlinarith [norm_nonneg ((b : ℍ) - 1)]
612
- calc
613
- _ ≤ ‖((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - (signedUnit b ε : ℍ)‖ +
614
- ‖(signedUnit b ε : ℍ) - 1 - signedDisplacement b ε‖ := norm_add_le _ _
615
- _ ≤ 2 * ‖(a : ℍ) - 1‖ * ‖(b : ℍ) - 1‖ + ‖(b : ℍ) - 1‖^2 := by
616
- simpa only [signedUnit_distance] using add_le_add (su2_conjugation_error a (signedUnit b ε)) (signedUnit_error b ε)
617
- _ ≤ _ := add_le_add (mul_le_mul (mul_le_mul_of_nonneg_left ha (by positivity)) hb
618
- (norm_nonneg _) (mul_nonneg (by positivity) hA)) hsq
619
-
620
- abbrev RelatorFactor (I : Type*) := SU2 × I × Bool
621
-
622
- def relatorFactorValue {I : Type*} (x : I → SU2) (r : RelatorFactor I) : SU2 :=
623
- r.1 * signedUnit (x r.2.1) r.2.2 * r.1⁻¹
624
-
625
- def relatorSignedCounts {I : Type*} (l : List (RelatorFactor I)) : I →₀ ℤ :=
626
- (l.map (fun r => Finsupp.single r.2.1 (if r.2.2 then 1 else -1))).sum
627
-
628
- theorem relator_linear_models {I : Type*} (l : List (RelatorFactor I)) (x : I → SU2) :
629
- (l.map (fun r => signedDisplacement (x r.2.1) r.2.2)).sum =
630
- Finsupp.linearCombination ℤ (fun i => (x i : ℍ) - 1) (relatorSignedCounts l) := by
631
- induction l with
632
- | nil => simp [relatorSignedCounts]
633
- | cons r l ih =>
634
- simp only [List.map_cons, List.sum_cons, relatorSignedCounts, map_add, Finsupp.linearCombination_single]
635
- rw [← show Finsupp.linearCombination ℤ (fun i => (x i : ℍ) - 1)
636
- ((l.map (fun r => Finsupp.single r.2.1 (if r.2.2 then 1 else -1))).sum) =
637
- (l.map (fun r => signedDisplacement (x r.2.1) r.2.2)).sum from ih.symm]
638
- congr 2
639
- cases r.2.2 <;> simp [signedDisplacement]
640
-
641
- /-- Exact translated counts cancel the full linear term; the remaining bound
642
- is quadratic. The index set is arbitrary, not necessarily countable. -/
643
- theorem relator_product_quadratic {I : Type*} (l : List (RelatorFactor I)) (x : I → SU2)
644
- (i₀ : I) (hc : relatorSignedCounts l = Finsupp.single i₀ 1)
645
- (h ε K : ℝ) (hh : 0 ≤ h) (hε : 0 ≤ ε) (hK : 0 ≤ K)
646
- (hb : ∀ r ∈ l, ‖(x r.2.1 : ℍ) - 1‖ ≤ h)
647
- (ha : ∀ r ∈ l, ‖(r.1 : ℍ) - 1‖ ≤ K * (ε + h)) :
648
- ‖(l.map (fun r => (relatorFactorValue x r : ℍ))).prod - (x i₀ : ℍ)‖ ≤
649
- ((l.length : ℝ)^2 + l.length + 2 * l.length * K) * (ε + h) * h := by
650
- have hp := unit_product_with_linear_models l (relatorFactorValue x)
651
- (fun r => signedDisplacement (x r.2.1) r.2.2) h
652
- (2 * (K * (ε + h)) * h + h^2) hh
653
- (fun r hr => by rw [relatorFactorValue, su2_conjugation_distance, signedUnit_distance]; exact hb r hr)
654
- (fun r hr => conjugated_signedUnit_error r.1 (x r.2.1) r.2.2 _ h
655
- (mul_nonneg hK (add_nonneg hε hh)) hh (ha r hr) (hb r hr))
656
- rw [relator_linear_models, hc, Finsupp.linearCombination_single, one_smul] at hp
657
- have he : (l.map (fun r => (relatorFactorValue x r : ℍ))).prod - 1 - ((x i₀ : ℍ) - 1) =
658
- (l.map (fun r => (relatorFactorValue x r : ℍ))).prod - (x i₀ : ℍ) := by abel
659
- rw [he] at hp
660
- apply hp.trans
661
- have hlen : 0 ≤ (l.length : ℝ) := Nat.cast_nonneg _
662
- have hnh : 0 ≤ ((l.length : ℝ)^2 + l.length) * ε * h :=
663
- mul_nonneg (mul_nonneg (add_nonneg (sq_nonneg _) hlen) hε) hh
664
- nlinarith
665
- end EilenbergGanea
666
-
667
- namespace EilenbergGanea
668
-
669
- /-- A uniform size for an arbitrary family, normalized to zero for an empty
670
- index set. This is a real supremum, not an attained maximum. -/
671
- def familySize {I : Type*} (f : I → ℝ) : ℝ := sSup (Set.range f ∪ {0})
672
-
673
- theorem familySize_nonneg {I : Type*} (f : I → ℝ) (hf : BddAbove (Set.range f)) :
674
- 0 ≤ familySize f := by
675
- apply le_csSup (hf.union bddAbove_singleton)
676
- exact Or.inr (Set.mem_singleton _)
677
-
678
- theorem le_familySize {I : Type*} (f : I → ℝ) (hf : BddAbove (Set.range f)) (i : I) :
679
- f i ≤ familySize f := le_csSup (hf.union bddAbove_singleton) (Or.inl (Set.mem_range_self i))
680
-
681
- theorem familySize_le {I : Type*} (f : I → ℝ) {c : ℝ} (hc : 0 ≤ c) (hf : ∀ i, f i ≤ c) :
682
- familySize f ≤ c := by
683
- apply csSup_le (Set.union_nonempty.mpr (Or.inr (Set.singleton_nonempty 0)))
684
- rintro x (⟨i, rfl⟩ | rfl)
685
- · exact hf i
686
- · exact hc
687
-
688
- /-- The source no-threshold-crossing argument does not assume attainment of
689
- its supremum. -/
690
- theorem familySize_ne_threshold {I : Type*} (f : I → ℝ)
691
- (hf : BddAbove (Set.range f)) (C δ η ε : ℝ)
692
- (hδ : 0 < δ) (hC : 0 ≤ C) (_hη : 0 ≤ η) (hε : 0 ≤ ε) (hεη : ε ≤ η)
693
- (hc₁ : C * (δ + η) < 1/2) (hc₂ : C * η < δ/2)
694
- (hbound : ∀ i, f i ≤ C * ε + C * (familySize f + ε) * familySize f) :
695
- familySize f ≠ δ := by
696
- intro he
697
- have hs : familySize f ≤ C * ε + C * (familySize f + ε) * familySize f :=
698
- familySize_le f (by positivity [familySize_nonneg f hf]) hbound
699
- rw [he] at hs
700
- have hce : C * ε ≤ C * η := mul_le_mul_of_nonneg_left hεη hC
701
- have hfactor : C * (δ + ε) ≤ C * (δ + η) := mul_le_mul_of_nonneg_left (by linarith) hC
702
- nlinarith [mul_lt_mul_of_pos_right hc₁ hδ, mul_le_mul_of_nonneg_right hfactor hδ.le]
703
-
704
- /-- Uniform contraction of all residual errors. This handles even an
705
- uncountable family and does not replace the supremum by a maximum. -/
706
- theorem familySize_contraction {I : Type*} (f : I → ℝ)
707
- (hf : ∀ i, 0 ≤ f i) (δ C η : ℝ) (hδ : 0 ≤ δ) (hC : 0 ≤ C) (hη : 0 ≤ η)
708
- (hb : ∀ i, f i ≤ δ) (hc : C * (δ + η) < 1)
709
- (he : ∀ i, f i ≤ C * (familySize f + η) * familySize f) : ∀ i, f i = 0 := by
710
- have hbounded : BddAbove (Set.range f) := ⟨δ, by rintro _ ⟨i, rfl⟩; exact hb i⟩
711
- have h0 := familySize_nonneg f hbounded
712
- have hmax := familySize_le f hδ hb
713
- have hs := familySize_le f (c := C * (familySize f + η) * familySize f) (by positivity) he
714
- have hmul : C * (familySize f + η) ≤ C * (δ + η) :=
715
- mul_le_mul_of_nonneg_left (by linarith) hC
716
- have heq : familySize f = 0 := by
717
- by_contra hn
718
- have hp : 0 < familySize f := lt_of_le_of_ne h0 (Ne.symm hn)
719
- have ht := mul_lt_mul_of_pos_right (lt_of_le_of_lt hmul hc) hp
720
- nlinarith
721
- intro i
722
- exact le_antisymm (by simpa only [heq] using le_familySize f hbounded i) (hf i)
723
-
724
- theorem small_thresholds_exist (C : ℝ) (hC : 1 ≤ C) :
725
- ∃ δ η : ℝ, 0 < δ ∧ δ < 1 ∧ 0 < η ∧ η < 1 ∧
726
- C * (δ + η) < 1/2 ∧ C * η < δ/2 := by
727
- have hc : 0 < C := by linarith
728
- let δ := 1 / (8*C)
729
- let η := δ / (8*C)
730
- have hd : 0 < δ := by dsimp [δ]; positivity
731
- have hd1 : δ < 1 := by dsimp [δ]; apply (div_lt_iff₀ (by positivity)).mpr; linarith
732
- have he : 0 < η := by dsimp [η]; positivity
733
- have heδ : η < δ := by dsimp [η]; apply (div_lt_iff₀ (by positivity)).mpr; nlinarith
734
- have hcd : C * δ = 1/8 := by dsimp [δ]; field_simp
735
- have hce : C * η = δ/8 := by dsimp [η]; field_simp
736
- refine ⟨δ, η, hd, hd1, he, heδ.trans hd1, ?_, ?_⟩
737
- · rw [mul_add, hcd, hce]; linarith
738
- · rw [hce]; linarith
739
- end EilenbergGanea
740
-
741
-
742
- end
743
-
744
- end OAI
 
1
+ import OAI.Topology.EilenbergGanea.WordEquations
2
+ import OAI.GroupTheory.RightAngledArtin.ResidualFiniteness
3
+ import Mathlib.Topology.Compactness.Compact
4
+ import Mathlib.LinearAlgebra.Finsupp.LinearCombination
5
+
6
+ namespace OAI
7
+
8
+ noncomputable section
9
+
10
+ open Classical Set Filter Topology MeasureTheory
11
+ open scoped Quaternion ContDiff
12
+
13
+ namespace EilenbergGanea
14
+ open scoped Quaternion ContDiff
15
+ /-- Squared chord length on the unit-quaternion sphere. -/
16
+ theorem su2_distance_square (a : SU2) :
17
+ ‖(a : ℍ) - 1‖ ^ 2 = 2 - 2 * (a : ℍ).re := by
18
+ have hu := (quaternion_mem_unitary_iff _).mp a.property
19
+ have hs : Quaternion.normSq ((a : ℍ) - 1) = Quaternion.normSq (a : ℍ) + 1 - 2 * (a : ℍ).re := by
20
+ simp only [Quaternion.normSq_def', Quaternion.re_sub, Quaternion.imI_sub,
21
+ Quaternion.imJ_sub, Quaternion.imK_sub, Quaternion.re_one,
22
+ Quaternion.imI_one, Quaternion.imJ_one, Quaternion.imK_one]
23
+ ring
24
+ simpa only [Quaternion.normSq_eq_norm_mul_self, hu, one_mul, sq, one_add_one_eq_two] using hs
25
+
26
+ def arcBlend (a : SU2) (t : ℝ) : ℍ :=
27
+ (1 - Real.smoothTransition t) • (1 : ℍ) + Real.smoothTransition t • (a : ℍ)
28
+
29
+ theorem arcBlend_norm_le (a : SU2) (t : ℝ) : ‖arcBlend a t‖ ≤ 1 := by
30
+ have h0 := Real.smoothTransition.nonneg t
31
+ have h1 := Real.smoothTransition.le_one t
32
+ have hn := (quaternion_mem_unitary_iff _).mp a.property
33
+ calc
34
+ _ ≤ ‖(1 - Real.smoothTransition t) • (1 : ℍ)‖ +
35
+ ‖Real.smoothTransition t • (a : ℍ)‖ := norm_add_le _ _
36
+ _ = 1 := by rw [norm_smul, norm_smul, norm_one, hn, Real.norm_eq_abs,
37
+ Real.norm_eq_abs, abs_of_nonneg (sub_nonneg.mpr h1), abs_of_nonneg h0]; ring
38
+
39
+ theorem small_unit_re (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) :
40
+ 0 < (a : ℍ).re ∧ (a : ℍ).re ≤ 1 := by
41
+ have h := su2_distance_square a
42
+ have hn := norm_nonneg ((a : ℍ) - 1)
43
+ constructor <;> nlinarith [sq_nonneg ‖(a : ℍ) - 1‖]
44
+
45
+ theorem arcBlend_re_le (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) (t : ℝ) :
46
+ (a : ℍ).re ≤ (arcBlend a t).re := by
47
+ have h := (small_unit_re a ha).2
48
+ have h0 := Real.smoothTransition.nonneg t
49
+ have h1 := Real.smoothTransition.le_one t
50
+ simp only [arcBlend, Quaternion.re_add, Quaternion.re_smul, Quaternion.re_one, smul_eq_mul]
51
+ nlinarith
52
+
53
+ theorem arcBlend_ne_zero (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) (t : ℝ) :
54
+ arcBlend a t ≠ 0 := by
55
+ have h := (small_unit_re a ha).1.trans_le (arcBlend_re_le a ha t)
56
+ intro he
57
+ simp only [he, Quaternion.re_zero, lt_self_iff_false] at h
58
+
59
+ /-- A globally smooth path that remains in the closed chord ball of its
60
+ endpoint, avoiding any branch choice of a quaternion logarithm. -/
61
+ def smallQuaternionArc (a : SU2) (t : ℝ) : SU2 := normalizeQuaternion (arcBlend a t)
62
+
63
+ @[simp] theorem smallQuaternionArc_zero (a : SU2) : smallQuaternionArc a 0 = 1 := by
64
+ simpa [smallQuaternionArc, arcBlend] using (normalizeQuaternion_unitary (1 : SU2))
65
+
66
+ @[simp] theorem smallQuaternionArc_one (a : SU2) : smallQuaternionArc a 1 = a := by
67
+ simp [smallQuaternionArc, arcBlend]
68
+
69
+ theorem smallQuaternionArc_smooth (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) :
70
+ ContDiff ℝ ∞ (fun t => (smallQuaternionArc a t : ℍ)) := by
71
+ apply contDiff_iff_contDiffAt.mpr
72
+ intro t
73
+ exact (normalizeQuaternion_coe_contDiffAt (arcBlend_ne_zero a ha t)).comp t
74
+ (((contDiff_const.sub Real.smoothTransition.contDiff).smul contDiff_const).add
75
+ (Real.smoothTransition.contDiff.smul contDiff_const)).contDiffAt
76
+
77
+ theorem smallQuaternionArc_distance (a : SU2) (ha : ‖(a : ℍ) - 1‖ < 1) (t : ℝ) :
78
+ ‖(smallQuaternionArc a t : ℍ) - 1‖ ≤ ‖(a : ℍ) - 1‖ := by
79
+ have hp : 0 < ‖arcBlend a t‖ := norm_pos_iff.mpr (arcBlend_ne_zero a ha t)
80
+ have hre : (a : ℍ).re ≤ (smallQuaternionArc a t : ℍ).re := by
81
+ rw [smallQuaternionArc, normalizeQuaternion_coe_of_ne_zero (arcBlend_ne_zero a ha t)]
82
+ simp only [Quaternion.re_smul, smul_eq_mul]
83
+ rw [mul_comm, ← div_eq_mul_inv, le_div_iff₀ hp]
84
+ exact (mul_le_of_le_one_right (small_unit_re a ha).1.le (arcBlend_norm_le a t)).trans
85
+ (arcBlend_re_le a ha t)
86
+ have h0 := su2_distance_square a
87
+ have h1 := su2_distance_square (smallQuaternionArc a t)
88
+ nlinarith [norm_nonneg ((a : ℍ)-1), norm_nonneg ((smallQuaternionArc a t : ℍ)-1)]
89
+
90
+ end EilenbergGanea
91
+
92
+ namespace EilenbergGanea
93
+ open scoped Quaternion ContDiff
94
+ open Set
95
+ section SelectedEquations
96
+ variable {E : Type*} {m d : ℕ}
97
+
98
+ /-- The selected unknowns remain separate from coefficients, even when two
99
+ letters have the same image in the group quotient. -/
100
+ def selectedAlphabet (σ : Fin m ↪ E) (e : E) : E ⊕ Fin m := by
101
+ classical
102
+ exact if h : ∃ i, σ i = e then .inr h.choose else .inl e
103
+
104
+ @[simp] theorem selectedAlphabet_selected (σ : Fin m ↪ E) (i : Fin m) :
105
+ selectedAlphabet σ (σ i) = .inr i := by
106
+ classical
107
+ have h : ∃ j, σ j = σ i := ⟨i,rfl⟩
108
+ simp only [selectedAlphabet, dite_eq_left h]
109
+ exact congrArg Sum.inr (σ.injective h.choose_spec)
110
+
111
+ theorem selectedAlphabet_other (σ : Fin m ↪ E) (e : E) (he : ∀ i, σ i ≠ e) :
112
+ selectedAlphabet σ e = .inl e := by
113
+ classical
114
+ simp [selectedAlphabet, he]
115
+
116
+ def selectedWord (σ : Fin m ↪ E) : FreeGroup E →* FreeGroup (E ⊕ Fin m) :=
117
+ FreeGroup.map (selectedAlphabet σ)
118
+
119
+ def selectedLabel (σ : Fin m ↪ E) (a : E → SU2) (x : Fin m → SU2) (e : E) : SU2 :=
120
+ Sum.elim a x (selectedAlphabet σ e)
121
+
122
+ @[simp] theorem selectedLabel_selected (σ : Fin m ↪ E) (a : E → SU2)
123
+ (x : Fin m → SU2) (i : Fin m) : selectedLabel σ a x (σ i) = x i := by
124
+ simp [selectedLabel]
125
+
126
+ theorem selectedLabel_other (σ : Fin m ↪ E) (a : E → SU2) (x : Fin m → SU2)
127
+ (e : E) (he : ∀ i, σ i ≠ e) : selectedLabel σ a x e = a e := by
128
+ rw [selectedLabel, selectedAlphabet_other σ e he]
129
+ rfl
130
+
131
+ theorem selectedWord_eval (σ : Fin m ↪ E) (a : E → SU2) (x : Fin m → SU2)
132
+ (w : FreeGroup E) :
133
+ FreeGroup.lift (Sum.elim a x) (selectedWord σ w) =
134
+ FreeGroup.lift (selectedLabel σ a x) w := by
135
+ have he : (FreeGroup.lift (Sum.elim a x)).comp (selectedWord σ) =
136
+ FreeGroup.lift (selectedLabel σ a x) := by
137
+ apply FreeGroup.ext_hom
138
+ intro e
139
+ simp [selectedWord, selectedLabel]
140
+ exact congrArg (fun f : FreeGroup E →* SU2 => f w) he
141
+
142
+ theorem selectedWord_exponents [DecidableEq E] (σ : Fin m ↪ E) (w : FreeGroup E) (j : Fin m) :
143
+ wordExponents (eraseCoefficients (selectedWord σ w)) j = wordExponents w (σ j) := by
144
+ classical
145
+ have he : (FreeGroup.lift (fun i : Fin m => Multiplicative.ofAdd (if j = i then (1 : ℤ) else 0))).comp
146
+ (eraseCoefficients.comp (selectedWord σ)) =
147
+ FreeGroup.lift (fun e : E => Multiplicative.ofAdd (if σ j = e then (1 : ℤ) else 0)) := by
148
+ apply FreeGroup.ext_hom
149
+ intro e
150
+ by_cases h : ∃ i, σ i = e
151
+ · obtain ⟨i,rfl⟩ := h
152
+ simp [selectedWord, eraseCoefficients, σ.injective.eq_iff]
153
+ · have h' : ∀ i, σ i ≠ e := by simpa only [not_exists] using h
154
+ simp [selectedWord, eraseCoefficients, selectedAlphabet_other σ e h', h' j]
155
+ exact congrArg (fun f : FreeGroup E →* Multiplicative ℤ => (f w).toAdd) he
156
+
157
+ /-- Solve a finite, full-rank system while keeping every unselected label fixed.
158
+ The distinguished sublevel condition is the actual isolated root condition,
159
+ not a nonsingularity assumption on the roots. -/
160
+ theorem selected_word_sublevel_solvable [DecidableEq E]
161
+ (σ : Fin m ↪ E) (w : Fin m → FreeGroup E) (ρ : Fin d → FreeGroup E)
162
+ (a : ℝ → E → SU2) (ha : ∀ e, ContDiff ℝ ∞ (fun t => (a t e : ℍ)))
163
+ (ha0 : ∀ e, a 0 e = 1)
164
+ (hB : Matrix.det (fun i j => wordExponents (w i) (σ j)) ≠ 0)
165
+ (δ : ℝ) (hδ : 0 < δ)
166
+ (hiso : ∀ t ∈ Icc (0 : ℝ) 1, ∀ x : Fin m → SU2,
167
+ (∀ i, FreeGroup.lift (selectedLabel σ (a t) x) (w i) = 1) →
168
+ ‖(fun i => (FreeGroup.lift (selectedLabel σ (a t) x) (ρ i) : ℍ)) - 1‖ ≠ δ) :
169
+ ∃ b : E → SU2,
170
+ (∀ e, (∀ i, σ i ≠ e) → b e = a 1 e) ∧
171
+ (∀ i, FreeGroup.lift b (w i) = 1) ∧
172
+ ‖(fun i => (FreeGroup.lift b (ρ i) : ℍ)) - 1‖ < δ := by
173
+ have hb : (exponentMatrix (fun i => eraseCoefficients (selectedWord σ (w i)))).det ≠ 0 := by
174
+ change (Matrix.det (fun i j => wordExponents (eraseCoefficients (selectedWord σ (w i))) j)) ≠ 0
175
+ simpa only [selectedWord_exponents] using hB
176
+ obtain ⟨x,hx,hρ⟩ := coefficient_word_sublevel_solvable
177
+ (fun i => selectedWord σ (w i)) (fun i => selectedWord σ (ρ i)) a ha ha0 hb δ hδ
178
+ (fun t ht x hx => by
179
+ simp only [coefficientWordMap, selectedWord_eval]
180
+ apply hiso t ht x
181
+ intro i
182
+ have hi := congrFun hx i
183
+ simpa only [coefficientWordMap, selectedWord_eval, Pi.one_apply] using hi)
184
+ refine ⟨selectedLabel σ (a 1) x, fun e he => selectedLabel_other σ _ x e he, ?_, ?_⟩
185
+ · intro i
186
+ have hi := congrFun hx i
187
+ simpa only [coefficientWordMap, selectedWord_eval, Pi.one_apply] using hi
188
+ · simpa only [coefficientWordMap, selectedWord_eval] using hρ
189
+
190
+ end SelectedEquations
191
+ end EilenbergGanea
192
+
193
+ namespace EilenbergGanea
194
+
195
+ variable {Γ S H : Type*} [Group Γ] [Group H]
196
+
197
+ def labelLift (v : S → Γ) (a : Γ → S → H) :
198
+ FreeGroup S →* ((Γ → H) ⋊[functionShift Γ H] Γ) :=
199
+ FreeGroup.lift (fun s => ⟨fun g => a g s, v s⟩)
200
+
201
+ def wordValue (v : S → Γ) : FreeGroup S →* Γ := FreeGroup.lift v
202
+
203
+ def pathProduct (v : S → Γ) (a : Γ → S → H) (w : FreeGroup S) (g : Γ) : H :=
204
+ (labelLift v a w).left g
205
+
206
+ theorem labelLift_right (v : S → Γ) (a : Γ → S → H) (w : FreeGroup S) :
207
+ (labelLift v a w).right = wordValue v w := by
208
+ have he : (SemidirectProduct.rightHom : ((Γ → H) ⋊[functionShift Γ H] Γ) →* Γ).comp
209
+ (labelLift v a) = wordValue v := by
210
+ apply FreeGroup.ext_hom
211
+ intro s
212
+ simp [labelLift, wordValue]
213
+ exact congrArg (fun f : FreeGroup S →* Γ => f w) he
214
+
215
+ @[simp] theorem pathProduct_one (v : S → Γ) (a : Γ → S → H) (g : Γ) :
216
+ pathProduct v a 1 g = 1 := by simp [pathProduct]
217
+ @[simp] theorem pathProduct_of (v : S → Γ) (a : Γ → S → H) (s : S) (g : Γ) :
218
+ pathProduct v a (FreeGroup.of s) g = a g s := by simp [pathProduct, labelLift]
219
+ theorem pathProduct_mul (v : S → Γ) (a : Γ → S → H) (w z : FreeGroup S) (g : Γ) :
220
+ pathProduct v a (w*z) g = pathProduct v a w g * pathProduct v a z (g * wordValue v w) := by
221
+ simp only [pathProduct, map_mul, SemidirectProduct.mul_left, Pi.mul_apply, labelLift_right]
222
+ rfl
223
+ theorem pathProduct_inv (v : S → Γ) (a : Γ → S → H) (w : FreeGroup S) (g : Γ) :
224
+ pathProduct v a w⁻¹ g = (pathProduct v a w (g * (wordValue v w)⁻¹))⁻¹ := by
225
+ simp only [pathProduct, map_inv, SemidirectProduct.inv_left, labelLift_right]
226
+ rfl
227
+
228
+ theorem pathProduct_conjugate_loop (v : S → Γ) (a : Γ → S → H)
229
+ (u r : FreeGroup S) (hr : wordValue v r = 1) (g : Γ) :
230
+ pathProduct v a (u*r*u⁻¹) g = pathProduct v a u g *
231
+ pathProduct v a r (g * wordValue v u) * (pathProduct v a u g)⁻¹ := by
232
+ rw [pathProduct_mul, pathProduct_mul, pathProduct_inv, map_mul, hr, mul_one]
233
+ simp only [mul_inv_cancel_right]
234
+
235
+ theorem pathProduct_continuous [TopologicalSpace H] [IsTopologicalGroup H]
236
+ (v : S → Γ) (w : FreeGroup S) (g : Γ) :
237
+ Continuous (fun a : Γ → S → H => pathProduct v a w g) := by
238
+ induction w using FreeGroup.induction_on generalizing g with
239
+ | one => simpa using (continuous_const : Continuous (fun _ : Γ → S → H => (1 : H)))
240
+ | of s =>
241
+ simp only [pathProduct_of]
242
+ exact continuous_apply_apply g s
243
+ | inv_of s =>
244
+ simp only [pathProduct_inv, pathProduct_of]
245
+ exact (continuous_apply_apply (g * (wordValue v (FreeGroup.of s))⁻¹) s).inv
246
+ | mul w z hw hz =>
247
+ simp only [pathProduct_mul]
248
+ exact (hw g).mul (hz (g * wordValue v w))
249
+
250
+ /-- The set of vertices inspected by a word is finite, independently of the
251
+ label values. No countability hypothesis on the alphabet is needed. -/
252
+ theorem pathProduct_finite_locations (v : S → Γ) (w : FreeGroup S) (g : Γ) :
253
+ ∃ P : Finset Γ, ∀ a b : Γ → S → H,
254
+ (∀ p ∈ P, ∀ s, a p s = b p s) → pathProduct v a w g = pathProduct v b w g := by
255
+ classical
256
+ induction w using FreeGroup.induction_on generalizing g with
257
+ | one => exact ⟨∅, fun _ _ _ => by simp⟩
258
+ | of s => exact ⟨{g}, fun a b hab => by simpa using hab g (by simp) s⟩
259
+ | inv_of s =>
260
+ exact ⟨{g * (wordValue v (FreeGroup.of s))⁻¹}, fun a b hab => by
261
+ rw [pathProduct_inv, pathProduct_inv, pathProduct_of, pathProduct_of, hab _ (by simp)]⟩
262
+ | mul w z hw hz =>
263
+ obtain ⟨P, hP⟩ := hw g
264
+ obtain ⟨Q, hQ⟩ := hz (g * wordValue v w)
265
+ refine ⟨P �� Q, fun a b hab => ?_⟩
266
+ rw [pathProduct_mul, pathProduct_mul, hP a b (fun p hp => hab p (Finset.mem_union_left Q hp)),
267
+ hQ a b (fun p hp => hab p (Finset.mem_union_right P hp))]
268
+
269
+ /-- Evaluation commutes with pullback of a labeling along a group quotient,
270
+ including when different alphabet letters have the same image. -/
271
+ theorem pathProduct_pullback {D : Type*} [Group D] (q : Γ →* D)
272
+ (v : S → Γ) (a : D → S → H) (w : FreeGroup S) (g : Γ) :
273
+ pathProduct v (fun p s => a (q p) s) w g = pathProduct (fun s => q (v s)) a w (q g) := by
274
+ have hv : ∀ w : FreeGroup S, wordValue (fun s => q (v s)) w = q (wordValue v w) := by
275
+ have he : wordValue (fun s => q (v s)) = q.comp (wordValue v) := by
276
+ apply FreeGroup.ext_hom
277
+ intro s
278
+ simp [wordValue]
279
+ intro w
280
+ exact congrArg (fun f : FreeGroup S →* D => f w) he
281
+ induction w using FreeGroup.induction_on generalizing g with
282
+ | one => simp
283
+ | of s => simp
284
+ | inv_of s => simp only [pathProduct_inv, pathProduct_of, hv, map_inv, map_mul]
285
+ | mul w z hw hz => simp only [pathProduct_mul, hv, map_mul, hw, hz]
286
+
287
+
288
+ /-- Once every final relator has trivial transport at every vertex, normal
289
+ closure gives trivial transport on every null word, not just on a finite
290
+ collection of test loops. -/
291
+ theorem pathProduct_trivial_of_relators (v : S → Γ) (a : Γ → S → H)
292
+ (R : Set (FreeGroup S)) (hR : R ⊆ (wordValue v).ker)
293
+ (hp : (wordValue v).ker = Subgroup.normalClosure R)
294
+ (ha : ∀ r ∈ R, ∀ g, pathProduct v a r g = 1)
295
+ (w : FreeGroup S) (hw : wordValue v w = 1) (g : Γ) : pathProduct v a w g = 1 := by
296
+ have hrel : R ⊆ (labelLift v a).ker := by
297
+ intro r hr
298
+ change labelLift v a r = 1
299
+ apply SemidirectProduct.ext
300
+ · funext g
301
+ exact ha r hr g
302
+ · rw [labelLift_right]
303
+ exact hR hr
304
+ have hle : Subgroup.normalClosure R ≤ (labelLift v a).ker :=
305
+ Subgroup.normalClosure_le_normal hrel
306
+ have he : labelLift v a w = 1 := hle (by rw [← hp]; exact hw)
307
+ change (labelLift v a w).left g = 1
308
+ rw [he]
309
+ rfl
310
+
311
+ def pathChain (v : S → Γ) (w : FreeGroup S) (g : Γ) : (Γ × S) →₀ ℤ :=
312
+ (pathProduct v (fun p s => Multiplicative.ofAdd (Finsupp.single (p,s) 1)) w g).toAdd
313
+
314
+ @[simp] theorem pathChain_one (v : S → Γ) (g : Γ) : pathChain v 1 g = 0 := by
315
+ simp [pathChain]
316
+ @[simp] theorem pathChain_of (v : S → Γ) (s : S) (g : Γ) :
317
+ pathChain v (FreeGroup.of s) g = Finsupp.single (g,s) 1 := by simp [pathChain]
318
+ theorem pathChain_mul (v : S → Γ) (w z : FreeGroup S) (g : Γ) :
319
+ pathChain v (w*z) g = pathChain v w g + pathChain v z (g * wordValue v w) := by
320
+ simp only [pathChain, pathProduct_mul, toAdd_mul]
321
+ theorem pathChain_inv (v : S → Γ) (w : FreeGroup S) (g : Γ) :
322
+ pathChain v w⁻¹ g = -pathChain v w (g * (wordValue v w)⁻¹) := by
323
+ simp only [pathChain, pathProduct_inv, toAdd_inv]
324
+ theorem pathChain_conjugate (v : S → Γ) (u r : FreeGroup S)
325
+ (hr : wordValue v r = 1) (g : Γ) :
326
+ pathChain v (u*r*u⁻¹) g = pathChain v r (g * wordValue v u) := by
327
+ simp only [pathChain, pathProduct_conjugate_loop v _ u r hr g,
328
+ toAdd_mul, toAdd_inv]
329
+ abel
330
+
331
+ variable {R : Type*}
332
+ abbrev NormalFactor (S R : Type*) := FreeGroup S × R × Bool
333
+
334
+ def normalFactorWord (r : R → FreeGroup S) (f : NormalFactor S R) : FreeGroup S :=
335
+ f.1 * (if f.2.2 then r f.2.1 else (r f.2.1)⁻¹) * f.1⁻¹
336
+
337
+ def normalFactorCount (v : S → Γ) (f : NormalFactor S R) (g : Γ) : (Γ × R) →₀ ℤ :=
338
+ Finsupp.single (g * wordValue v f.1, f.2.1) (if f.2.2 then 1 else -1)
339
+
340
+ def relatorChainMap (v : S → Γ) (r : R → FreeGroup S) :
341
+ ((Γ × R) →₀ ℤ) →ₗ[ℤ] ((Γ × S) →₀ ℤ) :=
342
+ Finsupp.linearCombination ℤ (fun i => pathChain v (r i.2) i.1)
343
+
344
+ theorem normalFactor_value (v : S → Γ) (r : R → FreeGroup S)
345
+ (hr : ∀ i, wordValue v (r i) = 1) (f : NormalFactor S R) :
346
+ wordValue v (normalFactorWord r f) = 1 := by
347
+ dsimp only [normalFactorWord]
348
+ split_ifs <;> simp [hr]
349
+
350
+ theorem pathChain_normalFactor (v : S → Γ) (r : R → FreeGroup S)
351
+ (hr : ∀ i, wordValue v (r i) = 1) (f : NormalFactor S R) (g : Γ) :
352
+ pathChain v (normalFactorWord r f) g = relatorChainMap v r (normalFactorCount v f g) := by
353
+ simp only [normalFactorWord, normalFactorCount, relatorChainMap, Finsupp.linearCombination_single]
354
+ split_ifs with h
355
+ · rw [pathChain_conjugate v _ _ (hr _)]; simp only [one_smul]
356
+ · rw [pathChain_conjugate v _ _ (by simp [hr]), pathChain_inv, hr]
357
+ simp only [inv_one, mul_one, neg_one_smul]
358
+
359
+ theorem pathChain_normalProduct (v : S → Γ) (r : R → FreeGroup S)
360
+ (hr : ∀ i, wordValue v (r i) = 1) (l : List (NormalFactor S R)) (g : Γ) :
361
+ pathChain v (l.map (normalFactorWord r)).prod g =
362
+ relatorChainMap v r (l.map (fun f => normalFactorCount v f g)).sum := by
363
+ induction l with
364
+ | nil => simp
365
+ | cons f l ih =>
366
+ simp only [List.map_cons, List.prod_cons, List.sum_cons, map_add, pathChain_mul,
367
+ normalFactor_value v r hr f, mul_one, pathChain_normalFactor v r hr f g, ih]
368
+
369
+ /-- The coefficient identity is an equality in the full free abelian group of
370
+ translated indexed relators. Injectivity is sufficient; no finiteness of the
371
+ relator or generator types is assumed. -/
372
+ theorem exact_translated_relator_counts (v : S → Γ) (r : R → FreeGroup S)
373
+ (hr : ∀ i, wordValue v (r i) = 1) (hinj : Function.Injective (relatorChainMap v r))
374
+ (z : FreeGroup S) (ρ : R) (hchain : pathChain v z 1 = pathChain v (r ρ) 1)
375
+ (l : List (NormalFactor S R)) (he : z = (l.map (normalFactorWord r)).prod) :
376
+ (l.map (fun f => normalFactorCount v f 1)).sum = Finsupp.single (1,ρ) 1 := by
377
+ apply hinj
378
+ rw [← pathChain_normalProduct v r hr, ← he, hchain]
379
+ simp [relatorChainMap]
380
+
381
+ end EilenbergGanea
382
+
383
+ namespace EilenbergGanea
384
+ variable {Γ S H : Type*} [Group Γ] [Group H]
385
+
386
+
387
+ section CompactLabeling
388
+ variable {T I : Type*}
389
+
390
+ def mergeLabels (a : Γ → S → H) (b : Γ → T → H) : Γ → S ⊕ T → H :=
391
+ fun g => Sum.elim (a g) (b g)
392
+
393
+ omit [Group Γ] [Group H] in
394
+ theorem mergeLabels_continuous [TopologicalSpace H] (a : Γ → S → H) :
395
+ Continuous (fun b : Γ → T → H => mergeLabels a b) := by
396
+ apply continuous_pi
397
+ intro g
398
+ apply continuous_pi
399
+ intro s
400
+ cases s with
401
+ | inl s => exact continuous_const
402
+ | inr t => exact continuous_apply_apply g t
403
+
404
+ /-- Copy arbitrary prescribed labels to a finite quotient solely on the finite
405
+ set of vertices currently being tested. This does not assert that the original
406
+ labeling is periodic or descends to a single quotient. -/
407
+ theorem copy_labels_on_finite_set {D : Type*} [Group D] (q : Γ →* D)
408
+ (P : Finset Γ) (hq : Set.InjOn q (P : Set Γ)) (a : Γ → S → H)
409
+ (Allowed : H → Prop) (h1 : Allowed 1) (ha : ∀ g s, Allowed (a g s)) :
410
+ ∃ aF : D → S → H, (∀ d s, Allowed (aF d s)) ∧ ∀ p ∈ P, ∀ s, aF (q p) s = a p s := by
411
+ classical
412
+ let aF : D → S → H := fun d s => if hd : ∃ p ∈ P, q p = d then a hd.choose s else 1
413
+ refine ⟨aF, ?_, ?_⟩
414
+ · intro d s
415
+ dsimp [aF]
416
+ split_ifs
417
+ · exact ha _ _
418
+ · exact h1
419
+ · intro p hp s
420
+ have he : ∃ p' ∈ P, q p' = q p := ⟨p, hp, rfl⟩
421
+ simp only [aF, dite_eq_left he]
422
+ have heq : he.choose = p := hq he.choose_spec.1 hp he.choose_spec.2
423
+ rw [heq]
424
+
425
+ /-- Tychonoff compactness for all extra generators, with the original labels
426
+ fixed. The finite-quotient premise is exactly the separate finite solvability
427
+ obligation, not a periodicity assumption on the prescribed assignment. -/
428
+ theorem compact_labeling_from_finite_quotients [Group.ResiduallyFinite Γ]
429
+ [TopologicalSpace H] [IsTopologicalGroup H] [CompactSpace H]
430
+ (v : S ⊕ T → Γ) (a : Γ → S → H) (w : I → FreeGroup (S ⊕ T)) (g : I → Γ)
431
+ (K : I → Set H) (hK : ∀ i, IsClosed (K i))
432
+ (Allowed : H → Prop) (h1 : Allowed 1) (ha : ∀ g s, Allowed (a g s))
433
+ (hsolve : ∀ (N : FiniteIndexNormalSubgroup Γ) (J : Finset I)
434
+ (aF : (Γ ⧸ N.toSubgroup) → S → H), (∀ d s, Allowed (aF d s)) →
435
+ ∃ bF : (Γ ⧸ N.toSubgroup) → T → H, ∀ i ∈ J, ∀ d,
436
+ pathProduct (fun s => QuotientGroup.mk' N.toSubgroup (v s))
437
+ (mergeLabels aF bF) (w i) d ∈ K i) :
438
+ ∃ b : Γ → T → H, ∀ i, pathProduct v (mergeLabels a b) (w i) (g i) ∈ K i := by
439
+ classical
440
+ let C : I → Set (Γ → T → H) := fun i =>
441
+ {b | pathProduct v (mergeLabels a b) (w i) (g i) ∈ K i}
442
+ have hc : ∀ i, IsClosed (C i) := fun i =>
443
+ (hK i).preimage ((pathProduct_continuous v (w i) (g i)).comp (mergeLabels_continuous a))
444
+ have hf : ∀ J : Finset I, (⋂ i ∈ J, C i).Nonempty := by
445
+ intro J
446
+ choose P hP using (fun i : I => pathProduct_finite_locations (H := H) v (w i) (g i))
447
+ let V := J.biUnion P
448
+ obtain ⟨N, hN⟩ := finite_set_quotient_injective V
449
+ let q := QuotientGroup.mk' N.toSubgroup
450
+ obtain ⟨aF, haF, heF⟩ := copy_labels_on_finite_set q V hN a Allowed h1 ha
451
+ obtain ⟨bF, hbF⟩ := hsolve N J aF haF
452
+ refine ⟨fun p t => bF (q p) t, ?_⟩
453
+ simp only [Set.mem_iInter]
454
+ intro i hi
455
+ change pathProduct v (mergeLabels a (fun p t => bF (q p) t)) (w i) (g i) ∈ K i
456
+ have he : pathProduct v (mergeLabels a (fun p t => bF (q p) t)) (w i) (g i) =
457
+ pathProduct v (fun p s => mergeLabels aF bF (q p) s) (w i) (g i) := by
458
+ apply hP i
459
+ intro p hp s
460
+ cases s with
461
+ | inl s => exact (heF p (Finset.mem_biUnion.mpr ⟨i, hi, hp⟩) s).symm
462
+ | inr t => rfl
463
+ rw [he, pathProduct_pullback]
464
+ exact hbF i hi (q (g i))
465
+ obtain ⟨b, hb⟩ := CompactSpace.iInter_nonempty hc hf
466
+ exact ⟨b, fun i => Set.mem_iInter.mp hb i⟩
467
+ end CompactLabeling
468
+ end EilenbergGanea
469
+
470
+ open scoped Quaternion
471
+ namespace EilenbergGanea
472
+
473
+ theorem su2_norm (a : SU2) : ‖(a : ℍ)‖ = 1 := by
474
+ have h : star (a : ℍ) * (a : ℍ) = 1 := a.property.1
475
+ have hn := congrArg norm h
476
+ simp only [norm_mul, norm_star, norm_one] at hn
477
+ nlinarith [norm_nonneg (a : ℍ)]
478
+
479
+ /-- The two elementary estimates needed for the presentation argument, with
480
+ constants independent of the Cayley graph or any finite quotient. -/
481
+ theorem unit_product_linearization (l : List ℍ) (h : ℝ) (hh : 0 ≤ h)
482
+ (hu : ∀ a ∈ l, ‖a‖ = 1) (hb : ∀ a ∈ l, ‖a - 1‖ ≤ h) :
483
+ ‖l.prod - 1‖ ≤ l.length * h ∧
484
+ ‖l.prod - 1 - (l.map (fun a => a - 1)).sum‖ ≤ (l.length : ℝ)^2 * h^2 := by
485
+ induction l with
486
+ | nil => simp
487
+ | cons a l ih =>
488
+ obtain ⟨hp, he⟩ := ih (fun b hm => hu b (by simp [hm])) (fun b hm => hb b (by simp [hm]))
489
+ have hna := hu a (by simp)
490
+ have hba := hb a (by simp)
491
+ have hid : a * l.prod - 1 = a * (l.prod - 1) + (a - 1) := by noncomm_ring
492
+ have hie : a * l.prod - 1 - ((a - 1) + (l.map (fun b => b - 1)).sum) =
493
+ (a - 1) * (l.prod - 1) + (l.prod - 1 - (l.map (fun b => b - 1)).sum) := by noncomm_ring
494
+ constructor
495
+ · simp only [List.prod_cons, List.length_cons, Nat.cast_add, Nat.cast_one]
496
+ rw [hid]
497
+ calc
498
+ _ ≤ ‖a * (l.prod - 1)‖ + ‖a - 1‖ := norm_add_le _ _
499
+ _ = ‖l.prod - 1‖ + ‖a - 1‖ := by rw [norm_mul, hna, one_mul]
500
+ _ ≤ (l.length + 1) * h := by nlinarith
501
+ · simp only [List.prod_cons, List.map_cons, List.sum_cons, List.length_cons, Nat.cast_add, Nat.cast_one]
502
+ rw [hie]
503
+ have hn : 0 ≤ (l.length : ℝ) := Nat.cast_nonneg _
504
+ calc
505
+ _ ≤ ‖(a - 1) * (l.prod - 1)‖ + ‖l.prod - 1 - (l.map (fun b => b - 1)).sum‖ := norm_add_le _ _
506
+ _ = ‖a - 1‖ * ‖l.prod - 1‖ + ‖l.prod - 1 - (l.map (fun b => b - 1)).sum‖ := by rw [norm_mul]
507
+ _ ≤ h * (l.length * h) + (l.length : ℝ)^2 * h^2 :=
508
+ add_le_add (mul_le_mul hba hp (norm_nonneg _) hh) he
509
+ _ ≤ (l.length + 1)^2 * h^2 := by nlinarith [sq_nonneg h]
510
+
511
+ theorem quaternion_commutator_bound (a b : ℍ) :
512
+ ‖a * b - b * a‖ ≤ 2 * ‖a - 1‖ * ‖b - 1‖ := by
513
+ have he : a * b - b * a = (a - 1) * (b - 1) - (b - 1) * (a - 1) := by noncomm_ring
514
+ rw [he]
515
+ calc
516
+ _ ≤ ‖(a - 1) * (b - 1)‖ + ‖(b - 1) * (a - 1)‖ := norm_sub_le _ _
517
+ _ = _ := by rw [norm_mul, norm_mul]; ring
518
+
519
+ theorem su2_conjugation_error (a b : SU2) :
520
+ ‖((a * b * a⁻¹ : SU2) : ℍ) - (b : ℍ)‖ ≤ 2 * ‖(a : ℍ) - 1‖ * ‖(b : ℍ) - 1‖ := by
521
+ have he : ((a * b * a⁻¹ : SU2) : ℍ) - (b : ℍ) =
522
+ ((a : ℍ) * (b : ℍ) - (b : ℍ) * (a : ℍ)) * ((a⁻¹ : SU2) : ℍ) := by
523
+ change (a : ℍ) * (b : ℍ) * star (a : ℍ) - (b : ℍ) = _
524
+ change _ = ((a : ℍ) * (b : ℍ) - (b : ℍ) * (a : ℍ)) * star (a : ℍ)
525
+ rw [sub_mul, mul_assoc (b : ℍ), a.property.2, mul_one]
526
+ rw [he, norm_mul, su2_norm, mul_one]
527
+ exact quaternion_commutator_bound _ _
528
+
529
+ theorem su2_inverse_distance (b : SU2) : ‖((b⁻¹ : SU2) : ℍ) - 1‖ = ‖(b : ℍ) - 1‖ := by
530
+ change ‖star (b : ℍ) - 1‖ = _
531
+ calc
532
+ _ = ‖star ((b : ℍ) - 1)‖ := by rw [star_sub, star_one]
533
+ _ = _ := norm_star _
534
+
535
+ theorem su2_inverse_linearization (b : SU2) :
536
+ ‖((b⁻¹ : SU2) : ℍ) - 1 + ((b : ℍ) - 1)‖ ≤ ‖(b : ℍ) - 1‖^2 := by
537
+ have he : ((b⁻¹ : SU2) : ℍ) - 1 + ((b : ℍ) - 1) =
538
+ -((((b⁻¹ : SU2) : ℍ) - 1) * ((b : ℍ) - 1)) := by
539
+ have hb : ((b⁻¹ : SU2) : ℍ) * (b : ℍ) = 1 := b.property.1
540
+ noncomm_ring [hb]
541
+ rw [he, norm_neg, norm_mul, su2_inverse_distance, pow_two]
542
+
543
+ /-- Replacing each displacement by its linear model introduces only the sum
544
+ of the errors. Combined with exact signed counts, this avoids any choice of
545
+ an ordering of the relator indices (which can be uncountable). -/
546
+ theorem unit_product_with_linear_models {I : Type*} (l : List I)
547
+ (f : I → SU2) (v : I → ℍ) (h D : ℝ) (hh : 0 ≤ h)
548
+ (hb : ∀ i ∈ l, ‖(f i : ℍ) - 1‖ ≤ h)
549
+ (he : ∀ i ∈ l, ‖(f i : ℍ) - 1 - v i‖ ≤ D) :
550
+ ‖((l.map (fun i => (f i : ℍ))).prod - 1) - (l.map v).sum‖ ≤
551
+ (l.length : ℝ)^2 * h^2 + l.length * D := by
552
+ have hp := (unit_product_linearization (l.map (fun i => (f i : ℍ))) h hh
553
+ (by intro a ha; obtain ⟨i, _, rfl⟩ := List.mem_map.mp ha; exact su2_norm _)
554
+ (by intro a ha; obtain ⟨i, hi, rfl⟩ := List.mem_map.mp ha; exact hb i hi)).2
555
+ simp only [List.length_map, List.map_map, Function.comp_def] at hp
556
+ have hs : ∀ l : List I, (∀ i ∈ l, ‖(f i : ℍ) - 1 - v i‖ ≤ D) →
557
+ ‖(l.map (fun i => (f i : ℍ) - 1)).sum - (l.map v).sum‖ ≤ l.length * D := by
558
+ intro l he
559
+ induction l with
560
+ | nil => simp
561
+ | cons i l ih =>
562
+ have hi := he i (by simp)
563
+ have hrest := ih (fun j hj => he j (by simp [hj]))
564
+ simp only [List.map_cons, List.sum_cons, List.length_cons, Nat.cast_add, Nat.cast_one]
565
+ have heq : (f i : ℍ) - 1 + (l.map (fun j => (f j : ℍ) - 1)).sum -
566
+ (v i + (l.map v).sum) = ((f i : ℍ) - 1 - v i) +
567
+ ((l.map (fun j => (f j : ℍ) - 1)).sum - (l.map v).sum) := by abel
568
+ rw [heq]
569
+ exact (norm_add_le _ _).trans (by linarith)
570
+
571
+ calc
572
+ _ ≤ ‖((l.map (fun i => (f i : ℍ))).prod - 1) - (l.map (fun i => (f i : ℍ) - 1)).sum‖ +
573
+ ‖(l.map (fun i => (f i : ℍ) - 1)).sum - (l.map v).sum‖ := norm_sub_le_norm_sub_add_norm_sub _ _ _
574
+ _ ≤ _ := add_le_add hp (hs l he)
575
+ end EilenbergGanea
576
+
577
+ namespace EilenbergGanea
578
+ open scoped Quaternion
579
+
580
+ theorem su2_conjugation_distance (a b : SU2) :
581
+ ‖((a * b * a⁻¹ : SU2) : ℍ) - 1‖ = ‖(b : ℍ) - 1‖ := by
582
+ have he : ((a * b * a⁻¹ : SU2) : ℍ) - 1 =
583
+ (a : ℍ) * ((b : ℍ) - 1) * star (a : ℍ) := by
584
+ change (a : ℍ) * (b : ℍ) * star (a : ℍ) - 1 = _
585
+ rw [mul_sub, sub_mul, mul_one, a.property.2]
586
+ rw [he, norm_mul, norm_mul, norm_star, su2_norm, one_mul, mul_one]
587
+
588
+ def signedUnit (b : SU2) (ε : Bool) : SU2 := if ε then b else b⁻¹
589
+ def signedDisplacement (b : SU2) (ε : Bool) : ℍ := if ε then (b : ℍ) - 1 else -((b : ℍ) - 1)
590
+
591
+ theorem signedUnit_distance (b : SU2) (ε : Bool) :
592
+ ‖(signedUnit b ε : ℍ) - 1‖ = ‖(b : ℍ) - 1‖ := by
593
+ cases ε <;> simp [signedUnit, su2_inverse_distance]
594
+
595
+ theorem signedUnit_error (b : SU2) (ε : Bool) :
596
+ ‖(signedUnit b ε : ℍ) - 1 - signedDisplacement b ε‖ ≤ ‖(b : ℍ) - 1‖^2 := by
597
+ cases ε with
598
+ | false =>
599
+ change ‖((b⁻¹ : SU2) : ℍ) - 1 - (-((b : ℍ) - 1))‖ ≤ _
600
+ simpa only [sub_neg_eq_add] using su2_inverse_linearization b
601
+ | true => simp [signedUnit, signedDisplacement]
602
+
603
+ theorem conjugated_signedUnit_error (a b : SU2) (ε : Bool) (A h : ℝ)
604
+ (hA : 0 ≤ A) (hh : 0 ≤ h) (ha : ‖(a : ℍ) - 1‖ ≤ A) (hb : ‖(b : ℍ) - 1‖ ≤ h) :
605
+ ‖((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - 1 - signedDisplacement b ε‖ ≤
606
+ 2 * A * h + h^2 := by
607
+ have he : ((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - 1 - signedDisplacement b ε =
608
+ (((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - (signedUnit b ε : ℍ)) +
609
+ ((signedUnit b ε : ℍ) - 1 - signedDisplacement b ε) := by abel
610
+ rw [he]
611
+ have hsq : ‖(b : ℍ) - 1‖^2 ≤ h^2 := by nlinarith [norm_nonneg ((b : ℍ) - 1)]
612
+ calc
613
+ _ ≤ ‖((a * signedUnit b ε * a⁻¹ : SU2) : ℍ) - (signedUnit b ε : ℍ)‖ +
614
+ ‖(signedUnit b ε : ℍ) - 1 - signedDisplacement b ε‖ := norm_add_le _ _
615
+ _ ≤ 2 * ‖(a : ℍ) - 1‖ * ‖(b : ℍ) - 1‖ + ‖(b : ℍ) - 1‖^2 := by
616
+ simpa only [signedUnit_distance] using add_le_add (su2_conjugation_error a (signedUnit b ε)) (signedUnit_error b ε)
617
+ _ ≤ _ := add_le_add (mul_le_mul (mul_le_mul_of_nonneg_left ha (by positivity)) hb
618
+ (norm_nonneg _) (mul_nonneg (by positivity) hA)) hsq
619
+
620
+ abbrev RelatorFactor (I : Type*) := SU2 × I × Bool
621
+
622
+ def relatorFactorValue {I : Type*} (x : I → SU2) (r : RelatorFactor I) : SU2 :=
623
+ r.1 * signedUnit (x r.2.1) r.2.2 * r.1⁻¹
624
+
625
+ def relatorSignedCounts {I : Type*} (l : List (RelatorFactor I)) : I →₀ ℤ :=
626
+ (l.map (fun r => Finsupp.single r.2.1 (if r.2.2 then 1 else -1))).sum
627
+
628
+ theorem relator_linear_models {I : Type*} (l : List (RelatorFactor I)) (x : I → SU2) :
629
+ (l.map (fun r => signedDisplacement (x r.2.1) r.2.2)).sum =
630
+ Finsupp.linearCombination ℤ (fun i => (x i : ℍ) - 1) (relatorSignedCounts l) := by
631
+ induction l with
632
+ | nil => simp [relatorSignedCounts]
633
+ | cons r l ih =>
634
+ simp only [List.map_cons, List.sum_cons, relatorSignedCounts, map_add, Finsupp.linearCombination_single]
635
+ rw [← show Finsupp.linearCombination ℤ (fun i => (x i : ℍ) - 1)
636
+ ((l.map (fun r => Finsupp.single r.2.1 (if r.2.2 then 1 else -1))).sum) =
637
+ (l.map (fun r => signedDisplacement (x r.2.1) r.2.2)).sum from ih.symm]
638
+ congr 2
639
+ cases r.2.2 <;> simp [signedDisplacement]
640
+
641
+ /-- Exact translated counts cancel the full linear term; the remaining bound
642
+ is quadratic. The index set is arbitrary, not necessarily countable. -/
643
+ theorem relator_product_quadratic {I : Type*} (l : List (RelatorFactor I)) (x : I → SU2)
644
+ (i₀ : I) (hc : relatorSignedCounts l = Finsupp.single i₀ 1)
645
+ (h ε K : ℝ) (hh : 0 ≤ h) (hε : 0 ≤ ε) (hK : 0 ≤ K)
646
+ (hb : ∀ r ∈ l, ‖(x r.2.1 : ℍ) - 1‖ ≤ h)
647
+ (ha : ∀ r ∈ l, ‖(r.1 : ℍ) - 1‖ ≤ K * (ε + h)) :
648
+ ‖(l.map (fun r => (relatorFactorValue x r : ℍ))).prod - (x i₀ : ℍ)‖ ≤
649
+ ((l.length : ℝ)^2 + l.length + 2 * l.length * K) * (ε + h) * h := by
650
+ have hp := unit_product_with_linear_models l (relatorFactorValue x)
651
+ (fun r => signedDisplacement (x r.2.1) r.2.2) h
652
+ (2 * (K * (ε + h)) * h + h^2) hh
653
+ (fun r hr => by rw [relatorFactorValue, su2_conjugation_distance, signedUnit_distance]; exact hb r hr)
654
+ (fun r hr => conjugated_signedUnit_error r.1 (x r.2.1) r.2.2 _ h
655
+ (mul_nonneg hK (add_nonneg hε hh)) hh (ha r hr) (hb r hr))
656
+ rw [relator_linear_models, hc, Finsupp.linearCombination_single, one_smul] at hp
657
+ have he : (l.map (fun r => (relatorFactorValue x r : ℍ))).prod - 1 - ((x i₀ : ℍ) - 1) =
658
+ (l.map (fun r => (relatorFactorValue x r : ℍ))).prod - (x i₀ : ℍ) := by abel
659
+ rw [he] at hp
660
+ apply hp.trans
661
+ have hlen : 0 ≤ (l.length : ℝ) := Nat.cast_nonneg _
662
+ have hnh : 0 ≤ ((l.length : ℝ)^2 + l.length) * ε * h :=
663
+ mul_nonneg (mul_nonneg (add_nonneg (sq_nonneg _) hlen) hε) hh
664
+ nlinarith
665
+ end EilenbergGanea
666
+
667
+ namespace EilenbergGanea
668
+
669
+ /-- A uniform size for an arbitrary family, normalized to zero for an empty
670
+ index set. This is a real supremum, not an attained maximum. -/
671
+ def familySize {I : Type*} (f : I → ℝ) : ℝ := sSup (Set.range f ∪ {0})
672
+
673
+ theorem familySize_nonneg {I : Type*} (f : I → ℝ) (hf : BddAbove (Set.range f)) :
674
+ 0 ≤ familySize f := by
675
+ apply le_csSup (hf.union bddAbove_singleton)
676
+ exact Or.inr (Set.mem_singleton _)
677
+
678
+ theorem le_familySize {I : Type*} (f : I → ℝ) (hf : BddAbove (Set.range f)) (i : I) :
679
+ f i ≤ familySize f := le_csSup (hf.union bddAbove_singleton) (Or.inl (Set.mem_range_self i))
680
+
681
+ theorem familySize_le {I : Type*} (f : I → ℝ) {c : ℝ} (hc : 0 ≤ c) (hf : ∀ i, f i ≤ c) :
682
+ familySize f ≤ c := by
683
+ apply csSup_le (Set.union_nonempty.mpr (Or.inr (Set.singleton_nonempty 0)))
684
+ rintro x (⟨i, rfl⟩ | rfl)
685
+ · exact hf i
686
+ · exact hc
687
+
688
+ /-- The source no-threshold-crossing argument does not assume attainment of
689
+ its supremum. -/
690
+ theorem familySize_ne_threshold {I : Type*} (f : I → ℝ)
691
+ (hf : BddAbove (Set.range f)) (C δ η ε : ℝ)
692
+ (hδ : 0 < δ) (hC : 0 ≤ C) (_hη : 0 ≤ η) (hε : 0 ≤ ε) (hεη : ε ≤ η)
693
+ (hc₁ : C * (δ + η) < 1/2) (hc₂ : C * η < δ/2)
694
+ (hbound : ∀ i, f i ≤ C * ε + C * (familySize f + ε) * familySize f) :
695
+ familySize f ≠ δ := by
696
+ intro he
697
+ have hs : familySize f ≤ C * ε + C * (familySize f + ε) * familySize f :=
698
+ familySize_le f (by positivity [familySize_nonneg f hf]) hbound
699
+ rw [he] at hs
700
+ have hce : C * ε ≤ C * η := mul_le_mul_of_nonneg_left hεη hC
701
+ have hfactor : C * (δ + ε) ≤ C * (δ + η) := mul_le_mul_of_nonneg_left (by linarith) hC
702
+ nlinarith [mul_lt_mul_of_pos_right hc₁ hδ, mul_le_mul_of_nonneg_right hfactor hδ.le]
703
+
704
+ /-- Uniform contraction of all residual errors. This handles even an
705
+ uncountable family and does not replace the supremum by a maximum. -/
706
+ theorem familySize_contraction {I : Type*} (f : I → ℝ)
707
+ (hf : ∀ i, 0 ≤ f i) (δ C η : ℝ) (hδ : 0 ≤ δ) (hC : 0 ≤ C) (hη : 0 ≤ η)
708
+ (hb : ∀ i, f i ≤ δ) (hc : C * (δ + η) < 1)
709
+ (he : ∀ i, f i ≤ C * (familySize f + η) * familySize f) : ∀ i, f i = 0 := by
710
+ have hbounded : BddAbove (Set.range f) := ⟨δ, by rintro _ ⟨i, rfl⟩; exact hb i⟩
711
+ have h0 := familySize_nonneg f hbounded
712
+ have hmax := familySize_le f hδ hb
713
+ have hs := familySize_le f (c := C * (familySize f + η) * familySize f) (by positivity) he
714
+ have hmul : C * (familySize f + η) ≤ C * (δ + η) :=
715
+ mul_le_mul_of_nonneg_left (by linarith) hC
716
+ have heq : familySize f = 0 := by
717
+ by_contra hn
718
+ have hp : 0 < familySize f := lt_of_le_of_ne h0 (Ne.symm hn)
719
+ have ht := mul_lt_mul_of_pos_right (lt_of_le_of_lt hmul hc) hp
720
+ nlinarith
721
+ intro i
722
+ exact le_antisymm (by simpa only [heq] using le_familySize f hbounded i) (hf i)
723
+
724
+ theorem small_thresholds_exist (C : ℝ) (hC : 1 ≤ C) :
725
+ ∃ δ η : ℝ, 0 < δ ∧ δ < 1 ∧ 0 < η ∧ η < 1 ∧
726
+ C * (δ + η) < 1/2 ∧ C * η < δ/2 := by
727
+ have hc : 0 < C := by linarith
728
+ let δ := 1 / (8*C)
729
+ let η := δ / (8*C)
730
+ have hd : 0 < δ := by dsimp [δ]; positivity
731
+ have hd1 : δ < 1 := by dsimp [δ]; apply (div_lt_iff₀ (by positivity)).mpr; linarith
732
+ have he : 0 < η := by dsimp [η]; positivity
733
+ have heδ : η < δ := by dsimp [η]; apply (div_lt_iff₀ (by positivity)).mpr; nlinarith
734
+ have hcd : C * δ = 1/8 := by dsimp [δ]; field_simp
735
+ have hce : C * η = δ/8 := by dsimp [η]; field_simp
736
+ refine ⟨δ, η, hd, hd1, he, heδ.trans hd1, ?_, ?_⟩
737
+ · rw [mul_add, hcd, hce]; linarith
738
+ · rw [hce]; linarith
739
+ end EilenbergGanea
740
+
741
+
742
+ end
743
+
744
+ end OAI
lean/OAI/Topology/EilenbergGanea/UnitaryWords.lean CHANGED
@@ -1,890 +1,890 @@
1
- import OAI.Topology.EilenbergGanea.Regularization
2
- import Mathlib.Analysis.Quaternion
3
- import Mathlib.Analysis.Complex.Circle
4
- import Mathlib.Analysis.Complex.Polynomial.Basic
5
- import Mathlib.Analysis.Calculus.Deriv.ZPow
6
- import Mathlib.GroupTheory.FreeGroup.Basic
7
- import Mathlib.Analysis.SpecialFunctions.SmoothTransition
8
-
9
- namespace OAI
10
-
11
- noncomputable section
12
-
13
- open Set Filter Topology
14
- open scoped Quaternion ContDiff
15
-
16
- open scoped Quaternion
17
- namespace EilenbergGanea
18
- abbrev SU2 := unitary ℍ
19
-
20
- theorem quaternion_mem_unitary_iff (q : ℍ) : q ∈ unitary ℍ ↔ ‖q‖ = 1 := by
21
- rw [Unitary.mem_iff, Quaternion.star_mul_self, Quaternion.self_mul_star, and_self]
22
- constructor
23
- · intro h
24
- have he : Quaternion.normSq q = 1 := Quaternion.coe_inj.mp h
25
- rw [Quaternion.normSq_eq_norm_mul_self] at he
26
- nlinarith [norm_nonneg q]
27
- · intro h
28
- simp [Quaternion.normSq_eq_norm_mul_self, h]
29
-
30
- instance su2_compactSpace : CompactSpace SU2 := by
31
- apply isCompact_iff_compactSpace.mp
32
- have hs : (unitary ℍ : Set ℍ) = Metric.sphere 0 1 := by
33
- ext q
34
- simp [quaternion_mem_unitary_iff]
35
- rw [hs]
36
- exact isCompact_sphere 0 1
37
-
38
- def circleQuaternion : Circle →* SU2 where
39
- toFun z := ⟨Quaternion.ofComplex z, by
40
- rw [Unitary.mem_iff, Quaternion.star_mul_self, Quaternion.self_mul_star, and_self]
41
- have hz := Circle.normSq_coe z
42
- have he : Quaternion.normSq (Quaternion.ofComplex z) = 1 := by
43
- simpa [Quaternion.normSq_def', Complex.normSq_apply, sq] using hz
44
- rw [he]; rfl⟩
45
- map_one' := Subtype.ext (map_one Quaternion.ofComplex)
46
- map_mul' z w := Subtype.ext (map_mul Quaternion.ofComplex (z : ℂ) (w : ℂ))
47
-
48
- @[simp] theorem circleQuaternion_coe (z : Circle) :
49
- ((circleQuaternion z : SU2) : ℍ) = (z : ℂ) := rfl
50
-
51
- theorem circleQuaternion_injective : Function.Injective circleQuaternion := by
52
- intro z w h
53
- apply Subtype.ext
54
- apply Complex.ext
55
- · exact congrArg (fun q : ℍ => q.re) (congrArg Subtype.val h)
56
- · exact congrArg (fun q : ℍ => q.imI) (congrArg Subtype.val h)
57
-
58
- theorem circleQuaternion_continuous : Continuous circleQuaternion := by
59
- apply Continuous.subtype_mk
60
- exact Quaternion.ofComplex.toLinearMap.continuous_of_finiteDimensional.comp continuous_subtype_val
61
-
62
- def wordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m)) (x : Fin m → SU2) : Fin m → SU2 :=
63
- fun i => FreeGroup.lift x (w i)
64
-
65
- def exponentMatrix {m : ℕ} (w : Fin m → FreeGroup (Fin m)) : Matrix (Fin m) (Fin m) ℤ :=
66
- fun i j => Multiplicative.toAdd
67
- (FreeGroup.lift (fun k => Multiplicative.ofAdd (if j = k then (1 : ℤ) else 0)) (w i))
68
-
69
- open Set Filter Topology
70
- open scoped ContDiff
71
-
72
- /-- Radial normalization is only used on nonzero quaternions. The harmless
73
- value at zero makes it a total function without changing that domain. -/
74
- def normalizeQuaternion (q : ℍ) : SU2 := by
75
- classical
76
- exact if h : q = 0 then 1 else
77
- ⟨‖q‖⁻¹ • q, (quaternion_mem_unitary_iff _).mpr (by
78
- simp only [norm_smul, Real.norm_eq_abs, abs_inv, abs_norm]
79
- exact inv_mul_cancel₀ (norm_ne_zero_iff.mpr h))⟩
80
-
81
- theorem normalizeQuaternion_coe_of_ne_zero {q : ℍ} (hq : q ≠ 0) :
82
- (normalizeQuaternion q : ℍ) = ‖q‖⁻¹ • q := by simp [normalizeQuaternion, hq]
83
-
84
- theorem normalizeQuaternion_coe_contDiffAt {q : ℍ} (hq : q ≠ 0) :
85
- ContDiffAt ℝ ∞ (fun z => (normalizeQuaternion z : ℍ)) q := by
86
- have h : ContDiffAt ℝ ∞ (fun z : ℍ => ‖z‖⁻¹ • z) q :=
87
- ((contDiffAt_norm ℝ hq).inv (norm_ne_zero_iff.mpr hq)).smul contDiffAt_id
88
- apply h.congr_of_eventuallyEq
89
- filter_upwards [eventually_ne_nhds hq] with z hz
90
- exact normalizeQuaternion_coe_of_ne_zero hz
91
-
92
- theorem normalizeQuaternion_continuousAt {q : ℍ} (hq : q ≠ 0) :
93
- ContinuousAt normalizeQuaternion q := by
94
- exact tendsto_subtype_rng.mpr (normalizeQuaternion_coe_contDiffAt hq).continuousAt
95
-
96
- @[simp] theorem normalizeQuaternion_unitary (q : SU2) : normalizeQuaternion (q : ℍ) = q := by
97
- have hqnorm : ‖(q : ℍ)‖ = 1 := (quaternion_mem_unitary_iff _).mp q.property
98
- have hq : (q : ℍ) ≠ 0 := by intro he; simp [he] at hqnorm
99
- apply Subtype.ext
100
- simp [normalizeQuaternion_coe_of_ne_zero hq, hqnorm]
101
-
102
- /-- Smoothness of coefficient-free word evaluation follows directly by
103
- induction, using quaternion conjugation for unitary inverses. -/
104
- theorem freeGroup_lift_coe_contDiffAt {D ι : Type*}
105
- [NormedAddCommGroup D] [NormedSpace ℝ D] (w : FreeGroup ι)
106
- (a : D) (x : D → ι → SU2)
107
- (hx : ∀ i, ContDiffAt ℝ ∞ (fun z => (x z i : ℍ)) a) :
108
- ContDiffAt ℝ ∞ (fun z => ((FreeGroup.lift (x z) w : SU2) : ℍ)) a := by
109
- induction w using FreeGroup.induction_on with
110
- | one => simpa using (contDiffAt_const : ContDiffAt ℝ ∞ (fun _ : D => (1 : ℍ)) a)
111
- | of i => simpa using hx i
112
- | inv_of i hi =>
113
- simp only [map_inv]
114
- change ContDiffAt ℝ ∞ (fun z => star ((FreeGroup.lift (x z) (FreeGroup.of i) : SU2) : ℍ)) a
115
- let L : ℍ →ₗ[ℝ] ℍ :=
116
- { toFun := star
117
- map_add' := star_add
118
- map_smul' := Quaternion.star_smul }
119
- exact L.toContinuousLinearMap.contDiff.contDiffAt.comp a hi
120
- | mul v w hv hw => simpa only [map_mul, Submonoid.coe_mul] using hv.mul hw
121
-
122
- def radialWordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m))
123
- (x : Fin m → ℍ) : Fin m → ℍ :=
124
- fun i => ‖x i‖ • ((wordMap w (fun j => normalizeQuaternion (x j)) i : SU2) : ℍ)
125
-
126
- @[simp] theorem radialWordMap_norm {m : ℕ} (w : Fin m → FreeGroup (Fin m))
127
- (x : Fin m → ℍ) (i : Fin m) : ‖radialWordMap w x i‖ = ‖x i‖ := by
128
- have h : ‖((wordMap w (fun j => normalizeQuaternion (x j)) i : SU2) : ℍ)‖ = 1 :=
129
- (quaternion_mem_unitary_iff _).mp (wordMap w (fun j => normalizeQuaternion (x j)) i).property
130
- simp [radialWordMap, norm_smul, h]
131
-
132
- theorem radialWordMap_contDiffAt {m : ℕ} (w : Fin m → FreeGroup (Fin m))
133
- (x : Fin m → ℍ) (hx : ∀ i, x i ≠ 0) : ContDiffAt ℝ ∞ (radialWordMap w) x := by
134
- apply contDiffAt_pi.mpr
135
- intro i
136
- exact ((contDiffAt_apply ℝ ℍ i x).norm ℝ (hx i)).smul
137
- (freeGroup_lift_coe_contDiffAt (w i) x (fun z j => normalizeQuaternion (z j))
138
- (fun j => (normalizeQuaternion_coe_contDiffAt (hx j)).comp (f := fun z : Fin m → ℍ => z j) x (contDiffAt_apply ℝ ℍ j x)))
139
-
140
- theorem radialWordMap_eq_one_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))
141
- (x : Fin m → ℍ) : radialWordMap w x = 1 ↔
142
- (∀ i, ‖x i‖ = 1) ∧ wordMap w (fun j => normalizeQuaternion (x j)) = 1 := by
143
- constructor
144
- · intro h
145
- have hn (i : Fin m) : ‖x i‖ = 1 := by
146
- have he := congrArg (fun y : Fin m → ℍ => ‖y i‖) h
147
- simpa only [radialWordMap_norm, Pi.one_apply, norm_one] using he
148
- refine ⟨hn, ?_⟩
149
- funext i
150
- apply Subtype.ext
151
- have he := congrFun h i
152
- simpa [radialWordMap, hn] using he
153
- · rintro ⟨hn, hw⟩
154
- funext i
155
- simp [radialWordMap, hn, hw]
156
-
157
-
158
- /-- A conjugation-invariant smooth cutoff, zero near coordinate hyperplanes
159
- and one near the unit quaternion locus. -/
160
- def radialCutoff {m : ℕ} (x : Fin m → ℍ) : ℝ :=
161
- ∏ i, Real.smoothTransition (4 * ‖x i‖ ^ 2 - 1)
162
-
163
- def smoothRadialWordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m))
164
- (x : Fin m → ℍ) : Fin m → ℍ := radialCutoff x • radialWordMap w x
165
-
166
- theorem radialCutoff_contDiff {m : ℕ} : ContDiff ℝ ∞ (@radialCutoff m) := by
167
- apply contDiff_prod
168
- intro i _
169
- have hn : ContDiff ℝ ∞ (fun x : Fin m → ℍ => ‖x i‖ ^ 2) :=
170
- (contDiff_apply ℝ ℍ i).norm_sq ℝ
171
- exact Real.smoothTransition.contDiff.comp ((contDiff_const.mul hn).sub contDiff_const)
172
-
173
- theorem radialCutoff_nonneg {m : ℕ} (x : Fin m → ℍ) : 0 ≤ radialCutoff x :=
174
- Finset.prod_nonneg (fun _ _ => Real.smoothTransition.nonneg _)
175
-
176
- theorem radialCutoff_le_one {m : ℕ} (x : Fin m → ℍ) : radialCutoff x ≤ 1 :=
177
- Finset.prod_le_one₀ (fun _ _ => Real.smoothTransition.nonneg _)
178
- (fun _ _ => Real.smoothTransition.le_one _)
179
-
180
- theorem radialCutoff_eq_one {m : ℕ} (x : Fin m → ℍ) (hx : ∀ i, 1 ≤ ‖x i‖) :
181
- radialCutoff x = 1 := by
182
- apply Finset.prod_eq_one
183
- intro i _
184
- apply Real.smoothTransition.one_of_one_le
185
- nlinarith [hx i]
186
-
187
- theorem radialCutoff_eventually_zero {m : ℕ} (x : Fin m → ℍ) (i : Fin m)
188
- (hi : x i = 0) : radialCutoff =ᶠ[𝓝 x] (fun _ => 0) := by
189
- have h : ∀ᶠ y in 𝓝 x, ‖y i‖ < (1 / 2 : ℝ) :=
190
- ((continuous_apply i).norm.continuousAt.eventually_lt_const (by simp [hi]))
191
- filter_upwards [h] with y hy
192
- apply Finset.prod_eq_zero (Finset.mem_univ i)
193
- apply Real.smoothTransition.zero_of_nonpos
194
- nlinarith [norm_nonneg (y i)]
195
-
196
- theorem radialCutoff_eventually_one {m : ℕ} (x : Fin m → ℍ)
197
- (hx : ∀ i, ‖x i‖ = 1) : radialCutoff =ᶠ[𝓝 x] (fun _ => 1) := by
198
- have h (i : Fin m) : ∀ᶠ y in 𝓝 x, (3 / 4 : ℝ) < ‖y i‖ :=
199
- ((continuous_apply i).norm.continuousAt.eventually_const_lt (by change (3 / 4 : ℝ) < ‖x i‖; rw [hx i]; norm_num))
200
- filter_upwards [Filter.eventually_all.mpr h] with y hy
201
- apply Finset.prod_eq_one
202
- intro i _
203
- apply Real.smoothTransition.one_of_one_le
204
- nlinarith [hy i]
205
-
206
- theorem smoothRadialWordMap_contDiff {m : ℕ} (w : Fin m → FreeGroup (Fin m)) :
207
- ContDiff ℝ ∞ (smoothRadialWordMap w) := by
208
- rw [contDiff_iff_contDiffAt]
209
- intro x
210
- by_cases hx : ∀ i, x i ≠ 0
211
- · exact radialCutoff_contDiff.contDiffAt.smul (radialWordMap_contDiffAt w x hx)
212
- · push Not at hx
213
- obtain ⟨i, hi⟩ := hx
214
- apply (contDiffAt_const : ContDiffAt ℝ ∞ (fun _ : Fin m → ℍ => (0 : Fin m → ℍ)) x).congr_of_eventuallyEq
215
- filter_upwards [radialCutoff_eventually_zero x i hi] with y hy
216
- simp [smoothRadialWordMap, hy]
217
-
218
- theorem smoothRadialWordMap_eq_one_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))
219
- (x : Fin m → ℍ) : smoothRadialWordMap w x = 1 ↔ radialWordMap w x = 1 := by
220
- constructor
221
- · intro h
222
- have hn (i : Fin m) : radialCutoff x * ‖x i‖ = 1 := by
223
- have he := congrArg (fun y : Fin m → ℍ => ‖y i‖) h
224
- simpa only [smoothRadialWordMap, Pi.smul_apply, norm_smul, Real.norm_eq_abs,
225
- abs_of_nonneg (radialCutoff_nonneg x), radialWordMap_norm, Pi.one_apply, norm_one] using he
226
- have hlarge (i : Fin m) : 1 ≤ ‖x i‖ := by
227
- have hle := mul_le_mul_of_nonneg_right (radialCutoff_le_one x) (norm_nonneg (x i))
228
- rw [hn i, one_mul] at hle
229
- exact hle
230
- simpa only [smoothRadialWordMap, radialCutoff_eq_one x hlarge, one_smul] using h
231
- · intro h
232
- have hn := (radialWordMap_eq_one_iff w x).mp h
233
- simp only [smoothRadialWordMap, radialCutoff_eq_one x (fun i => (hn.1 i).ge), one_smul, h]
234
-
235
- theorem smoothRadialWordMap_eventuallyEq {m : ℕ} (w : Fin m → FreeGroup (Fin m))
236
- (x : Fin m → ℍ) (hx : ∀ i, ‖x i‖ = 1) :
237
- smoothRadialWordMap w =ᶠ[𝓝 x] radialWordMap w := by
238
- filter_upwards [radialCutoff_eventually_one x hx] with y hy
239
- simp [smoothRadialWordMap, hy]
240
-
241
- end EilenbergGanea
242
-
243
- namespace EilenbergGanea
244
- open Set Filter Topology
245
- variable {n : Type*} [Fintype n] [DecidableEq n]
246
-
247
- def splitComplex : (n → ℂ) ≃ₗ[ℝ] ((n → ℝ) × (n → ℝ)) where
248
- toFun z := (fun i => (z i).re, fun i => (z i).im)
249
- invFun p i := (p.1 i : ℂ) + (p.2 i : ℂ) * Complex.I
250
- left_inv z := by funext i; exact Complex.re_add_im (z i)
251
- right_inv p := by ext i <;> simp
252
- map_add' a b := by ext i <;> simp
253
- map_smul' a b := by ext i <;> simp
254
-
255
- def radialAngularLinear (B : Matrix n n ℝ) : (n → ℂ) →L[ℝ] (n → ℂ) :=
256
- ((splitComplex (n := n)).symm.toLinearMap.comp
257
- (((LinearMap.id : (n → ℝ) →ₗ[ℝ] (n → ℝ)).prodMap B.toLin').comp
258
- (splitComplex (n := n)).toLinearMap)).toContinuousLinearMap
259
-
260
- @[simp] theorem radialAngularLinear_apply (B : Matrix n n ℝ) (z : n → ℂ) (i : n) :
261
- radialAngularLinear B z i = ((z i).re : ℂ) + (∑ j, B i j * (z j).im : ℝ) * Complex.I := rfl
262
-
263
- theorem radialAngularLinear_det (B : Matrix n n ℝ) :
264
- (radialAngularLinear B).toLinearMap.det = B.det := by
265
- change LinearMap.det ((splitComplex (n := n)).symm.toLinearMap ∘ₗ
266
- ((LinearMap.id : (n → ℝ) →ₗ[ℝ] (n → ℝ)).prodMap B.toLin') ∘ₗ
267
- (splitComplex (n := n)).toLinearMap) = _
268
- have he := LinearMap.det_conj
269
- ((LinearMap.id : (n → ℝ) →ₗ[ℝ] (n → ℝ)).prodMap B.toLin')
270
- (splitComplex (n := n)).symm
271
- rw [LinearEquiv.symm_symm] at he
272
- rw [he, LinearMap.det_prodMap, LinearMap.det_id, one_mul, LinearMap.det_toLin']
273
-
274
- def complexPolarChart (x z : n → ℂ) : n → ℂ := fun i => x i * Complex.exp (z i)
275
-
276
- def complexRadialTorus (B : Matrix n n ℤ) (z : n → ℂ) : n → ℂ :=
277
- fun i => ‖z i‖ • ∏ j, (‖z j‖⁻¹ • z j) ^ B i j
278
-
279
- theorem normalize_complex_mul_exp (x z : ℂ) (hx : ‖x‖ = 1) :
280
- ‖x * Complex.exp z‖⁻¹ • (x * Complex.exp z) =
281
- x * Complex.exp ((z.im : ℂ) * Complex.I) := by
282
- rw [norm_mul, hx, one_mul, Complex.norm_exp, Complex.real_smul, Complex.ofReal_inv]
283
- have he : Complex.exp z = (Real.exp z.re : ℂ) *
284
- Complex.exp ((z.im : ℂ) * Complex.I) := by
285
- rw [Complex.ofReal_exp, ← Complex.exp_add, Complex.re_add_im]
286
- rw [he]
287
- have hn : (Real.exp z.re : ℂ) ≠ 0 := by exact_mod_cast Real.exp_ne_zero z.re
288
- field_simp
289
-
290
- theorem complexRadialTorus_chart (B : Matrix n n ℤ) (x : n → ℂ)
291
- (hx : ∀ i, ‖x i‖ = 1) (hroot : ∀ i, ∏ j, x j ^ B i j = 1) :
292
- complexRadialTorus B ∘ complexPolarChart x =
293
- fun z => fun i => Complex.exp (radialAngularLinear (B.map (Int.castRingHom ℝ)) z i) := by
294
- funext z i
295
- have hn (j : n) := normalize_complex_mul_exp (x j) (z j) (hx j)
296
- simp only [Function.comp_apply, complexRadialTorus, complexPolarChart]
297
- simp only [hn]
298
- simp only [mul_zpow, Finset.prod_mul_distrib,
299
- hroot, one_mul, norm_mul, hx, one_mul, Complex.norm_exp, radialAngularLinear_apply,
300
- ← Complex.exp_int_mul]
301
- rw [Complex.real_smul, Complex.ofReal_exp, ← Complex.exp_sum, ← Complex.exp_add]
302
- congr 1
303
- simp only [Matrix.map_apply, Int.coe_castRingHom, Complex.ofReal_sum,
304
- Complex.ofReal_mul, Complex.ofReal_intCast]
305
- rw [Finset.sum_mul]
306
- congr 1
307
- apply Finset.sum_congr rfl
308
- intro j _
309
- ring
310
-
311
-
312
- /-- The real derivative of multiplication by a unit complex tuple has determinant one. -/
313
- def complexDiagonal (x : n → ℂ) : (n → ℂ) →L[ℝ] (n → ℂ) :=
314
- ((Matrix.diagonal x).toLin').toContinuousLinearMap.restrictScalars ℝ
315
-
316
- @[simp] theorem complexDiagonal_apply (x z : n → ℂ) (i : n) :
317
- complexDiagonal x z i = x i * z i := by simp [complexDiagonal, Matrix.toLin'_apply, Matrix.mulVec, Matrix.diagonal_apply, dotProduct]
318
-
319
- theorem complexDiagonal_det (x : n → ℂ) (hx : ∀ i, ‖x i‖ = 1) :
320
- (complexDiagonal x).toLinearMap.det = 1 := by
321
- change (((Matrix.diagonal x).toLin').restrictScalars ℝ).det = _
322
- rw [LinearMap.det_restrictScalars, Algebra.norm_complex_apply, LinearMap.det_toLin',
323
- Matrix.det_diagonal]
324
- rw [Complex.normSq_eq_norm_sq, norm_prod]
325
- simp [hx]
326
-
327
- theorem complexPolarChart_hasFDerivAt (x : n → ℂ) :
328
- HasFDerivAt (complexPolarChart x) (complexDiagonal x) 0 := by
329
- apply hasFDerivAt_pi'.mpr
330
- intro i
331
- have h := ((ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ).hasFDerivAt
332
- (x := 0)).cexp.const_mul (x i)
333
- change HasFDerivAt (fun z : n → ℂ => x i * Complex.exp (z i)) _ (0 : n → ℂ)
334
- have he : (ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ).comp (complexDiagonal x) =
335
- x i • (ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ) := by
336
- ext z
337
- simp
338
- rw [he]
339
- simpa using h
340
-
341
- theorem exp_radialAngularLinear_hasFDerivAt (B : Matrix n n ℝ) :
342
- HasFDerivAt (fun z i => Complex.exp (radialAngularLinear B z i))
343
- (radialAngularLinear B) 0 := by
344
- apply hasFDerivAt_pi'.mpr
345
- intro i
346
- simpa using (((ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ).comp
347
- (radialAngularLinear B)).hasFDerivAt (x := 0)).cexp
348
-
349
- theorem complexRadialTorus_differentiableAt (B : Matrix n n ℤ) (x : n → ℂ)
350
- (hx : ∀ i, x i ≠ 0) : DifferentiableAt ℝ (complexRadialTorus B) x := by
351
- apply differentiableAt_pi.mpr
352
- intro i
353
- have hn (j : n) : DifferentiableAt ℝ (fun z : n → ℂ => ‖z j‖) x :=
354
- (differentiableAt_apply j x).norm ℝ (hx j)
355
- apply (hn i).smul
356
- have hp (j : n) : DifferentiableAt ℝ (fun z : n → ℂ => (‖z j‖⁻¹ • z j) ^ B i j) x := by
357
- have hne : ‖x j‖⁻¹ • x j ≠ 0 :=
358
- smul_ne_zero (inv_ne_zero (norm_ne_zero_iff.mpr (hx j))) (hx j)
359
- have hz : DifferentiableAt ℝ (fun z : ℂ => z ^ B i j) (‖x j‖⁻¹ • x j) :=
360
- ((differentiableAt_zpow (𝕜 := ℂ) (m := B i j)).mpr (Or.inl hne)).restrictScalars ℝ
361
- exact hz.comp x (((hn j).inv (norm_ne_zero_iff.mpr (hx j))).smul
362
- (differentiableAt_apply j x))
363
- exact (HasFDerivAt.finsetProd (fun j _ => (hp j).hasFDerivAt)).differentiableAt
364
-
365
- /-- At every torus root, the radial extension has exactly determinant det B.
366
- The extra radial coordinates contribute the identity, not an additional sign. -/
367
- theorem complexRadialTorus_det (B : Matrix n n ℤ) (x : n → ℂ)
368
- (hx : ∀ i, ‖x i‖ = 1) (hroot : ∀ i, ∏ j, x j ^ B i j = 1) :
369
- (fderiv ℝ (complexRadialTorus B) x).det = (B.det : ℝ) := by
370
- have hne (i : n) : x i ≠ 0 := by intro h; simpa [h] using hx i
371
- have hd := (complexRadialTorus_differentiableAt B x hne).hasFDerivAt
372
- have hchart : complexPolarChart x 0 = x := by ext i; simp [complexPolarChart]
373
- have hc := (show HasFDerivAt (complexRadialTorus B) (fderiv ℝ (complexRadialTorus B) x)
374
- (complexPolarChart x 0) by rw [hchart]; exact hd).comp 0 (complexPolarChart_hasFDerivAt x)
375
- have he : (fderiv ℝ (complexRadialTorus B) x).comp (complexDiagonal x) =
376
- radialAngularLinear (B.map (Int.castRingHom ℝ)) := by
377
- apply hc.unique
378
- rw [complexRadialTorus_chart B x hx hroot]
379
- exact exp_radialAngularLinear_hasFDerivAt _
380
- have hdet := congrArg (fun L : (n → ℂ) →L[ℝ] (n → ℂ) => L.det) he
381
- change ((fderiv ℝ (complexRadialTorus B) x).toLinearMap.comp
382
- (complexDiagonal x).toLinearMap).det = (radialAngularLinear (B.map (Int.castRingHom ℝ))).toLinearMap.det at hdet
383
- rw [LinearMap.det_comp, complexDiagonal_det x hx,
384
- mul_one, radialAngularLinear_det] at hdet
385
- exact hdet.trans ((Int.castRingHom ℝ).map_det B).symm
386
-
387
- end EilenbergGanea
388
- namespace EilenbergGanea
389
- section CommutativeWords
390
- variable {n A : Type*} [Fintype n] [DecidableEq n] [CommGroup A]
391
- def wordExponents {ι : Type*} [DecidableEq ι] (w : FreeGroup ι) (j : ι) : ℤ :=
392
- Multiplicative.toAdd
393
- (FreeGroup.lift (fun k => Multiplicative.ofAdd (if j = k then (1 : ℤ) else 0)) w)
394
-
395
- @[simp] theorem wordExponents_one {ι : Type*} [DecidableEq ι] (j : ι) : wordExponents (1 : FreeGroup ι) j = 0 := by
396
- simp [wordExponents]
397
-
398
- @[simp] theorem wordExponents_of {ι : Type*} [DecidableEq ι] (j k : ι) :
399
- wordExponents (FreeGroup.of k) j = if j = k then 1 else 0 := by
400
- simp [wordExponents]
401
-
402
- @[simp] theorem wordExponents_inv {ι : Type*} [DecidableEq ι] (w : FreeGroup ι) (j : ι) :
403
- wordExponents w⁻¹ j = -wordExponents w j := by
404
- simp [wordExponents]
405
-
406
- @[simp] theorem wordExponents_mul {ι : Type*} [DecidableEq ι] (w v : FreeGroup ι) (j : ι) :
407
- wordExponents (w * v) j = wordExponents w j + wordExponents v j := by
408
- simp [wordExponents]
409
-
410
- theorem freeGroup_lift_commutative (x : n → A) (w : FreeGroup n) :
411
- FreeGroup.lift x w = ∏ j, x j ^ wordExponents w j := by
412
- induction w using FreeGroup.induction_on with
413
- | one => simp
414
- | of i => simp
415
- | inv_of i hi => simp [hi, Finset.prod_inv_distrib]
416
- | mul a b ha hb => simp [ha, hb, zpow_add, Finset.prod_mul_distrib]
417
-
418
- end CommutativeWords
419
- end EilenbergGanea
420
- namespace EilenbergGanea
421
- open Set Filter Topology
422
- open scoped Quaternion ContDiff
423
-
424
- def quaternionCoordinates : ℍ ≃ₗ[ℝ] ℂ × ℂ where
425
- toFun q := (⟨q.re, q.imI⟩, ⟨q.imJ, q.imK⟩)
426
- invFun z := ⟨z.1.re, z.1.im, z.2.re, z.2.im⟩
427
- left_inv q := by cases q; rfl
428
- right_inv z := by rcases z with ⟨⟨a,b⟩,⟨c,d⟩⟩; rfl
429
- map_add' q r := by ext <;> rfl
430
- map_smul' r q := by apply Prod.ext <;> apply Complex.ext <;> simp
431
-
432
- @[simp] theorem quaternionCoordinates_apply (q : ℍ) :
433
- quaternionCoordinates q = (⟨q.re, q.imI⟩, ⟨q.imJ, q.imK⟩) := rfl
434
-
435
- @[simp] theorem quaternionCoordinates_ofComplex (z : ℂ) :
436
- quaternionCoordinates (Quaternion.ofComplex z) = (z, 0) := by
437
- ext <;> rfl
438
-
439
- @[simp] theorem norm_quaternion_ofComplex (z : ℂ) : ‖Quaternion.ofComplex z‖ = ‖z‖ := by
440
- have h : ‖Quaternion.ofComplex z‖ ^ 2 = ‖z‖ ^ 2 := by
441
- rw [sq, ← Quaternion.normSq_eq_norm_mul_self, ← Complex.normSq_eq_norm_sq]
442
- simp [Quaternion.normSq_def', Complex.normSq_apply, sq]
443
- nlinarith [norm_nonneg (Quaternion.ofComplex z), norm_nonneg z]
444
-
445
- def quaternionTupleCoordinates {m : ℕ} :
446
- (Fin m → ℍ) ≃L[ℝ] ((Fin m → ℂ) × (Fin m → ℂ)) :=
447
- (show (Fin m → ℍ) ≃ₗ[ℝ] ((Fin m → ℂ) × (Fin m → ℂ)) from
448
- { toFun := fun q => (fun i => (quaternionCoordinates (q i)).1,
449
- fun i => (quaternionCoordinates (q i)).2)
450
- invFun := fun z i => quaternionCoordinates.symm (z.1 i, z.2 i)
451
- left_inv := by intro q; funext i; exact quaternionCoordinates.symm_apply_apply _
452
- right_inv := by intro z; ext i <;> simp
453
- map_add' := by intro q r; ext i <;> rfl
454
- map_smul' := by intro r q; ext i <;> simp [quaternionCoordinates] }).toContinuousLinearEquiv
455
-
456
- @[simp] theorem quaternionTupleCoordinates_fixed {m : ℕ} (z : Fin m → ℂ) :
457
- quaternionTupleCoordinates (fun i => Quaternion.ofComplex (z i)) = (z, 0) := by
458
- apply Prod.ext
459
- · funext i; exact congrArg Prod.fst (quaternionCoordinates_ofComplex (z i))
460
- · funext i; exact congrArg Prod.snd (quaternionCoordinates_ofComplex (z i))
461
-
462
- @[simp] theorem quaternionTupleCoordinates_symm_fixed {m : ℕ} (z : Fin m → ℂ) :
463
- quaternionTupleCoordinates.symm (z, 0) = fun i => Quaternion.ofComplex (z i) := by
464
- exact quaternionTupleCoordinates.injective (by rw [ContinuousLinearEquiv.apply_symm_apply, quaternionTupleCoordinates_fixed])
465
-
466
- /-- Circle normalization chosen compatibly with quaternion normalization. -/
467
- def normalizeCircle (z : ℂ) : Circle := by
468
- classical
469
- exact if hz : z = 0 then 1 else ⟨‖z‖⁻¹ • z, by apply mem_sphere_zero_iff_norm.mpr; simp [hz]⟩
470
-
471
- theorem normalizeCircle_coe_of_ne_zero {z : ℂ} (hz : z ≠ 0) :
472
- (normalizeCircle z : ℂ) = ‖z‖⁻¹ • z := by simp [normalizeCircle, hz]
473
-
474
- theorem normalizeQuaternion_ofComplex (z : ℂ) :
475
- normalizeQuaternion (Quaternion.ofComplex z) = circleQuaternion (normalizeCircle z) := by
476
- by_cases hz : z = 0
477
- · subst z
478
- simp [normalizeQuaternion, normalizeCircle]
479
- · have hq : Quaternion.ofComplex z ≠ 0 := by
480
- intro h
481
- have hh := congrArg quaternionCoordinates h
482
- apply hz
483
- have hz0 := congrArg Prod.fst hh
484
- change (quaternionCoordinates (Quaternion.ofComplex z)).1 = (quaternionCoordinates (Quaternion.ofComplex 0)).1 at hz0
485
- simpa only [quaternionCoordinates_ofComplex] using hz0
486
- apply Subtype.ext
487
- rw [normalizeQuaternion_coe_of_ne_zero hq, circleQuaternion_coe,
488
- normalizeCircle_coe_of_ne_zero hz, norm_quaternion_ofComplex]
489
- exact (map_smul Quaternion.ofComplex (‖z‖⁻¹) z).symm
490
-
491
- theorem wordMap_circleQuaternion {m : ℕ} (w : Fin m → FreeGroup (Fin m)) (x : Fin m → Circle) :
492
- wordMap w (fun j => circleQuaternion (x j)) =
493
- fun i => circleQuaternion (∏ j, x j ^ exponentMatrix w i j) := by
494
- funext i
495
- have he : FreeGroup.lift (fun j => circleQuaternion (x j)) =
496
- circleQuaternion.comp (FreeGroup.lift x) := by
497
- apply FreeGroup.ext_hom
498
- intro j
499
- simp
500
- change FreeGroup.lift (fun j => circleQuaternion (x j)) (w i) = _
501
- rw [he, MonoidHom.comp_apply, freeGroup_lift_commutative]
502
- rfl
503
-
504
- theorem radialWordMap_fixed {m : ℕ} (w : Fin m → FreeGroup (Fin m)) (z : Fin m → ℂ)
505
- (hz : ∀ i, z i ≠ 0) :
506
- radialWordMap w (fun i => Quaternion.ofComplex (z i)) =
507
- fun i => Quaternion.ofComplex (complexRadialTorus (exponentMatrix w) z i) := by
508
- funext i
509
- simp only [radialWordMap, normalizeQuaternion_ofComplex, wordMap_circleQuaternion,
510
- circleQuaternion_coe, complexRadialTorus, norm_quaternion_ofComplex]
511
- rw [map_smul]
512
- congr 1
513
- apply congrArg Quaternion.ofComplex
514
- change Circle.coeHom (∏ j, normalizeCircle (z j) ^ exponentMatrix w i j) = _
515
- rw [map_prod]
516
- apply Finset.prod_congr rfl
517
- intro j _
518
- change (normalizeCircle (z j) : ℂ) ^ exponentMatrix w i j = _
519
- rw [normalizeCircle_coe_of_ne_zero (hz j)]
520
-
521
- theorem quaternionCoordinates_conjComplex (c : ℂ) (q : ℍ) :
522
- quaternionCoordinates (Quaternion.ofComplex c * q * star (Quaternion.ofComplex c)) =
523
- ((Complex.normSq c : ℂ) * (quaternionCoordinates q).1,
524
- c ^ 2 * (quaternionCoordinates q).2) := by
525
- apply Prod.ext <;> apply Complex.ext <;>
526
- simp [quaternionCoordinates_apply, Complex.normSq_apply, pow_two] <;> ring
527
-
528
- @[simp] theorem quaternionCoordinates_conjCircle (c : Circle) (q : ℍ) :
529
- quaternionCoordinates (Quaternion.ofComplex c * q * star (Quaternion.ofComplex c)) =
530
- ((quaternionCoordinates q).1, (c : ℂ) ^ 2 * (quaternionCoordinates q).2) := by
531
- simpa using quaternionCoordinates_conjComplex (c : ℂ) q
532
-
533
- /-- Ambient conjugation, compatible with the group operation on unit quaternions. -/
534
- def quaternionConjugate (a : SU2) (q : ℍ) : ℍ := (a : ℍ) * q * star (a : ℍ)
535
-
536
- @[simp] theorem quaternionConjugate_norm (a : SU2) (q : ℍ) :
537
- ‖quaternionConjugate a q‖ = ‖q‖ := by
538
- have ha := (quaternion_mem_unitary_iff _).mp a.property
539
- simp [quaternionConjugate, ha]
540
-
541
- @[simp] theorem quaternionConjugate_zero (a : SU2) : quaternionConjugate a 0 = 0 := by
542
- simp [quaternionConjugate]
543
-
544
- @[simp] theorem quaternionConjugate_one (a : SU2) : quaternionConjugate a 1 = 1 := by
545
- simp [quaternionConjugate]
546
-
547
- theorem quaternionConjugate_smul (a : SU2) (r : ℝ) (q : ℍ) :
548
- quaternionConjugate a (r • q) = r • quaternionConjugate a q := by
549
- simp only [quaternionConjugate, mul_smul_comm, smul_mul_assoc]
550
-
551
- @[simp] theorem quaternionConjugate_coe (a q : SU2) :
552
- quaternionConjugate a (q : ℍ) = ((a * q * a⁻¹ : SU2) : ℍ) := rfl
553
-
554
- theorem normalizeQuaternion_conjugate (a : SU2) (q : ℍ) :
555
- normalizeQuaternion (quaternionConjugate a q) = a * normalizeQuaternion q * a⁻¹ := by
556
- by_cases hq : q = 0
557
- · subst q; simp [normalizeQuaternion]
558
- · have hn : quaternionConjugate a q ≠ 0 := by
559
- intro hz
560
- have he := quaternionConjugate_norm a q
561
- rw [hz, norm_zero, eq_comm, norm_eq_zero] at he
562
- exact hq he
563
- apply Subtype.ext
564
- rw [normalizeQuaternion_coe_of_ne_zero hn, ← quaternionConjugate_coe,
565
- normalizeQuaternion_coe_of_ne_zero hq, quaternionConjugate_smul, quaternionConjugate_norm]
566
-
567
- theorem wordMap_conjugation {m : ℕ} (w : Fin m → FreeGroup (Fin m))
568
- (a : SU2) (x : Fin m → SU2) :
569
- wordMap w (fun i => a * x i * a⁻¹) = fun i => a * wordMap w x i * a⁻¹ := by
570
- have he : FreeGroup.lift (fun i => a * x i * a⁻¹) =
571
- (MulAut.conj a).toMonoidHom.comp (FreeGroup.lift x) := by
572
- apply FreeGroup.ext_hom
573
- intro i
574
- simp
575
- funext i
576
- change FreeGroup.lift (fun i => a * x i * a⁻¹) (w i) = _
577
- rw [he]
578
- rfl
579
-
580
- theorem radialWordMap_conjugation {m : ℕ} (w : Fin m → FreeGroup (Fin m))
581
- (a : SU2) (x : Fin m → ℍ) :
582
- radialWordMap w (fun i => quaternionConjugate a (x i)) =
583
- fun i => quaternionConjugate a (radialWordMap w x i) := by
584
- funext i
585
- simp only [radialWordMap, quaternionConjugate_norm, normalizeQuaternion_conjugate,
586
- wordMap_conjugation, quaternionConjugate_smul, quaternionConjugate_coe]
587
-
588
- theorem smoothRadialWordMap_conjugation {m : ℕ} (w : Fin m → FreeGroup (Fin m))
589
- (a : SU2) (x : Fin m → ℍ) :
590
- smoothRadialWordMap w (fun i => quaternionConjugate a (x i)) =
591
- fun i => quaternionConjugate a (smoothRadialWordMap w x i) := by
592
- funext i
593
- simp only [smoothRadialWordMap, radialCutoff, quaternionConjugate_norm,
594
- Pi.smul_apply, radialWordMap_conjugation, quaternionConjugate_smul]
595
-
596
- end EilenbergGanea
597
-
598
-
599
- namespace EilenbergGanea
600
-
601
- theorem complex_root_of_unity_norm {p : ℕ} (hp : p ≠ 0) (z : rootsOfUnity p ℂ) :
602
- ‖((z : ℂˣ) : ℂ)‖ = 1 := by
603
- have h := congrArg norm ((mem_rootsOfUnity' p (z : ℂˣ)).mp z.property)
604
- simpa only [norm_pow, norm_one, pow_eq_one_iff_of_nonneg (norm_nonneg _) hp] using h
605
-
606
- theorem rootsOfUnity_isPGroup {p : ℕ} [Fact p.Prime] : IsPGroup p (rootsOfUnity p ℂ) := by
607
- let : NeZero p := ⟨(Fact.out : p.Prime).ne_zero⟩
608
- rw [isPGroup_iff_card_dvd_pow, Complex.card_rootsOfUnity]
609
- exact ⟨1, by simp⟩
610
-
611
- theorem rootsOfUnity_exists_nonreal {p : ℕ} (hp : 2 < p) :
612
- ∃ z : rootsOfUnity p ℂ, (((z : ℂˣ) : ℂ)).im ≠ 0 := by
613
- have hp0 : p ≠ 0 := by omega
614
- let ζ := Complex.exp (2 * Real.pi * Complex.I / p)
615
- have hζ : IsPrimitiveRoot ζ p := Complex.isPrimitiveRoot_exp p hp0
616
- let u : ℂˣ := Units.mk0 ζ (Complex.exp_ne_zero _)
617
- let z : rootsOfUnity p ℂ := ⟨u, (mem_rootsOfUnity' p u).mpr hζ.pow_eq_one⟩
618
- refine ⟨z, ?_⟩
619
- intro him
620
- change ζ.im = 0 at him
621
- have hn : ‖ζ‖ = 1 := complex_root_of_unity_norm hp0 z
622
- have hs : ζ.re ^ 2 = 1 := by
623
- have hh := Complex.normSq_eq_norm_sq ζ
624
- simp only [Complex.normSq_apply, him, mul_zero, add_zero, hn, one_pow] at hh
625
- nlinarith
626
- have hpow : ζ ^ 2 = 1 := by
627
- apply Complex.ext <;> simp [pow_two, him]
628
- nlinarith
629
- have hd := hζ.dvd_of_pow_eq_one 2 hpow
630
- have ht := Nat.le_of_dvd (by decide : 0 < 2) hd
631
- omega
632
-
633
- theorem circle_exists_square_root (z : ℂ) (hz : ‖z‖ = 1) :
634
- ∃ c : Circle, (c : ℂ) ^ 2 = z := by
635
- obtain ⟨c, hc⟩ := IsAlgClosed.exists_pow_nat_eq z (by decide : 0 < 2)
636
- have hn : ‖c‖ = 1 := by
637
- have hh := congrArg norm hc
638
- rw [norm_pow, hz] at hh
639
- nlinarith [norm_nonneg c]
640
- exact ⟨⟨c, mem_sphere_zero_iff_norm.mpr hn⟩, hc⟩
641
-
642
- end EilenbergGanea
643
-
644
- namespace EilenbergGanea
645
- open Set Filter Topology
646
- open scoped Quaternion ContDiff
647
-
648
- def splitWordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m))
649
- (q : (Fin m → ℂ) × (Fin m → ℂ)) : (Fin m → ℂ) × (Fin m → ℂ) :=
650
- quaternionTupleCoordinates (smoothRadialWordMap w (quaternionTupleCoordinates.symm q)) - (1, 0)
651
-
652
- theorem splitWordMap_contDiff {m : ℕ} (w : Fin m → FreeGroup (Fin m)) :
653
- ContDiff ℝ ∞ (splitWordMap w) :=
654
- (quaternionTupleCoordinates.contDiff.comp ((smoothRadialWordMap_contDiff w).comp
655
- quaternionTupleCoordinates.symm.contDiff)).sub contDiff_const
656
-
657
- theorem quaternionTupleCoordinates_conjCircle {m : ℕ} (c : Circle) (q : Fin m → ℍ) :
658
- quaternionTupleCoordinates (fun i => quaternionConjugate (circleQuaternion c) (q i)) =
659
- ((quaternionTupleCoordinates q).1, (c : ℂ) ^ 2 • (quaternionTupleCoordinates q).2) := by
660
- apply Prod.ext
661
- · funext i
662
- change (quaternionCoordinates (Quaternion.ofComplex c * q i * star (Quaternion.ofComplex c))).1 = _
663
- have hh := congrArg Prod.fst (quaternionCoordinates_conjCircle c (q i))
664
- exact hh
665
- · funext i
666
- change (quaternionCoordinates (Quaternion.ofComplex c * q i * star (Quaternion.ofComplex c))).2 = _
667
- have hh := congrArg Prod.snd (quaternionCoordinates_conjCircle c (q i))
668
- exact hh
669
-
670
- theorem splitWordMap_rotation {m : ℕ} (w : Fin m → FreeGroup (Fin m))
671
- (z : ℂ) (hz : ‖z‖ = 1) (q : (Fin m → ℂ) × (Fin m → ℂ)) :
672
- splitWordMap w (q.1, z • q.2) = ((splitWordMap w q).1, z • (splitWordMap w q).2) := by
673
- obtain ⟨c, hc⟩ := circle_exists_square_root z hz
674
- let x := quaternionTupleCoordinates.symm q
675
- have hx : quaternionTupleCoordinates x = q := quaternionTupleCoordinates.apply_symm_apply q
676
- have heq : (q.1, z • q.2) = quaternionTupleCoordinates
677
- (fun i => quaternionConjugate (circleQuaternion c) (x i)) := by
678
- rw [quaternionTupleCoordinates_conjCircle, hc, hx]
679
- have hh := congrArg (fun v : Fin m → ℍ => quaternionTupleCoordinates v)
680
- (smoothRadialWordMap_conjugation w (circleQuaternion c) x)
681
- rw [quaternionTupleCoordinates_conjCircle, hc] at hh
682
- have heq' : quaternionTupleCoordinates.symm (q.1, z • q.2) =
683
- fun i => quaternionConjugate (circleQuaternion c) (x i) := by
684
- rw [heq, ContinuousLinearEquiv.symm_apply_apply]
685
- unfold splitWordMap
686
- rw [heq', hh]
687
- change (_, z • _) - (1, 0) = ((quaternionTupleCoordinates (smoothRadialWordMap w x) - (1, 0)).1,
688
- z • (quaternionTupleCoordinates (smoothRadialWordMap w x) - (1, 0)).2)
689
- simp
690
-
691
- theorem splitWordMap_fixed_eventually {m : ℕ} (w : Fin m → FreeGroup (Fin m))
692
- (x : Fin m → ℂ) (hx : ∀ i, ‖x i‖ = 1) :
693
- (fun z => (splitWordMap w (z, 0)).1) =ᶠ[𝓝 x]
694
- (fun z => complexRadialTorus (exponentMatrix w) z - 1) := by
695
- have hne (i : Fin m) : x i ≠ 0 := by intro h; simpa [h] using hx i
696
- have hz : ∀ᶠ z in 𝓝 x, ∀ i, z i ≠ 0 := Filter.eventually_all.mpr
697
- (fun i => (continuous_apply i).continuousAt.eventually_ne (hne i))
698
- have hcont : Continuous (fun z : Fin m → ℂ => fun i => Quaternion.ofComplex (z i)) :=
699
- continuous_pi (fun i => Quaternion.ofComplex.toLinearMap.continuous_of_finiteDimensional.comp
700
- (continuous_apply i))
701
- have he := (smoothRadialWordMap_eventuallyEq w (fun i => Quaternion.ofComplex (x i))
702
- (fun i => (norm_quaternion_ofComplex _).trans (hx i))).comp_tendsto hcont.continuousAt
703
- filter_upwards [hz, he] with z hz he
704
- change smoothRadialWordMap w (fun i => Quaternion.ofComplex (z i)) =
705
- radialWordMap w (fun i => Quaternion.ofComplex (z i)) at he
706
- simp only [splitWordMap, quaternionTupleCoordinates_symm_fixed]
707
- rw [he, radialWordMap_fixed w z hz, quaternionTupleCoordinates_fixed]
708
- rfl
709
-
710
- theorem splitWordMap_fixed_det {m : ℕ} (w : Fin m → FreeGroup (Fin m))
711
- (x : Fin m → ℂ) (hx : ∀ i, ‖x i‖ = 1)
712
- (hr : ∀ i, ∏ j, x j ^ exponentMatrix w i j = 1) :
713
- (fderiv ℝ (fun z => (splitWordMap w (z, 0)).1) x).det =
714
- ((exponentMatrix w).det : ℝ) := by
715
- rw [(splitWordMap_fixed_eventually w x hx).fderiv_eq (𝕜 := ℝ)]
716
- have hne (i : Fin m) : x i ≠ 0 := by intro h; simpa [h] using hx i
717
- rw [((complexRadialTorus_differentiableAt (exponentMatrix w) x hne).hasFDerivAt.sub_const 1).fderiv]
718
- exact complexRadialTorus_det (exponentMatrix w) x hx hr
719
-
720
- end EilenbergGanea
721
-
722
- namespace EilenbergGanea
723
- open Set Filter Topology
724
- open scoped Quaternion
725
-
726
- theorem splitWordMap_zero_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))
727
- (q : (Fin m → ℂ) × (Fin m → ℂ)) :
728
- splitWordMap w q = 0 ↔
729
- smoothRadialWordMap w (quaternionTupleCoordinates.symm q) = 1 := by
730
- unfold splitWordMap
731
- rw [sub_eq_zero]
732
- have he : quaternionTupleCoordinates (1 : Fin m → ℍ) = (1, 0) := by
733
- change quaternionTupleCoordinates (fun i : Fin m => Quaternion.ofComplex (1 : ℂ)) = _
734
- exact quaternionTupleCoordinates_fixed 1
735
- rw [← he]
736
- exact quaternionTupleCoordinates.injective.eq_iff
737
-
738
- theorem splitWordMap_fixed_zero_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))
739
- (z : Fin m → ℂ) : splitWordMap w (z, 0) = 0 ↔
740
- (∀ i, ‖z i‖ = 1) ∧ (∀ i, ∏ j, z j ^ exponentMatrix w i j = 1) := by
741
- rw [splitWordMap_zero_iff, quaternionTupleCoordinates_symm_fixed,
742
- smoothRadialWordMap_eq_one_iff]
743
- constructor
744
- · intro h
745
- have hn : ∀ i, ‖z i‖ = 1 := fun i => (norm_quaternion_ofComplex (z i)).symm.trans
746
- (((radialWordMap_eq_one_iff w _).mp h).1 i)
747
- have hz (i : Fin m) : z i ≠ 0 := by intro h; simpa [h] using hn i
748
- rw [radialWordMap_fixed w z hz] at h
749
- refine ⟨hn, fun i => ?_⟩
750
- have hh := congrArg (fun v : Fin m → ℍ => (quaternionCoordinates (v i)).1) h
751
- change (quaternionCoordinates (Quaternion.ofComplex _)).1 = (1 : ℂ) at hh
752
- simpa only [quaternionCoordinates_ofComplex, complexRadialTorus, hn, inv_one, one_smul] using hh
753
- · rintro ⟨hn, hr⟩
754
- have hz (i : Fin m) : z i ≠ 0 := by intro h; simpa [h] using hn i
755
- rw [radialWordMap_fixed w z hz]
756
- funext i
757
- simp [complexRadialTorus, hn, hr]
758
-
759
- @[simp] theorem splitWordMap_fixed_one {m : ℕ} (w : Fin m → FreeGroup (Fin m)) :
760
- splitWordMap w (1, 0) = 0 := by
761
- rw [splitWordMap_fixed_zero_iff]
762
- simp
763
-
764
- end EilenbergGanea
765
-
766
- namespace EilenbergGanea
767
- open Set
768
- section Torus
769
- variable {n : Type*} [Fintype n] [DecidableEq n]
770
- variable {A : Type*} [CommGroup A]
771
- theorem zpow_finite_sum {ι : Type*} (a : A) (s : Finset ι) (e : ι → ℤ) :
772
- a ^ (∑ i ∈ s, e i) = ∏ i ∈ s, a ^ e i := by
773
- classical
774
- induction s using Finset.induction with
775
- | empty => simp
776
- | @insert i s hi ih => simp [hi, ih, zpow_add]
777
-
778
- def torusMap (B : Matrix n n ℤ) (x : n → A) : n → A :=
779
- fun i => ∏ j, x j ^ B i j
780
-
781
- omit [DecidableEq n] in
782
- theorem torusMap_comp (B C : Matrix n n ℤ) (x : n → A) :
783
- torusMap B (torusMap C x) = torusMap (B * C) x := by
784
- funext i
785
- simp only [torusMap, Matrix.mul_apply, ← Finset.prod_zpow, zpow_finite_sum, ← zpow_mul]
786
- rw [Finset.prod_comm]
787
- congr 1
788
- funext j
789
- congr 1
790
- funext k
791
- rw [Int.mul_comm]
792
-
793
- theorem torusMap_det_one (B : Matrix n n ℤ) (x : n → A) :
794
- torusMap (B.det • (1 : Matrix n n ℤ)) x = fun i => x i ^ B.det := by
795
- funext i
796
- simp [torusMap, Matrix.one_apply]
797
-
798
- theorem torusMap_kernel_pow_det (B : Matrix n n ℤ) (x : n → A)
799
- (hx : torusMap B x = 1) (i : n) : x i ^ B.det = 1 := by
800
- have he := congrArg (fun y => torusMap B.adjugate y i) hx
801
- rw [torusMap_comp, Matrix.adjugate_mul, torusMap_det_one] at he
802
- simpa [torusMap] using he
803
-
804
- theorem circle_finite_pow_roots {d : ℤ} (hd : d ≠ 0) :
805
- {z : Circle | z ^ d = 1}.Finite := by
806
- have hr := Polynomial.finite_setOfPred_isRoot
807
- (Polynomial.X_pow_sub_C_ne_zero (Nat.pos_of_ne_zero (Int.natAbs_ne_zero.mpr hd)) (1 : ℂ))
808
- apply Set.Finite.of_injOn (f := fun z : Circle => (z : ℂ)) _
809
- Subtype.val_injective.injOn hr
810
- intro z hz
811
- have hp : z ^ d.natAbs = 1 := pow_natAbs_eq_one.mpr hz
812
- have he : (z : ℂ) ^ d.natAbs = 1 := by
813
- simpa using congrArg (fun t : Circle => (t : ℂ)) hp
814
- simpa [Polynomial.IsRoot.def] using sub_eq_zero.mpr he
815
-
816
- theorem torusMap_finite_kernel (B : Matrix n n ℤ) (hB : B.det ≠ 0) :
817
- {x : n → Circle | torusMap B x = 1}.Finite := by
818
- apply Set.Finite.subset (Set.Finite.pi (fun _ : n => circle_finite_pow_roots hB))
819
- intro x hx i _
820
- exact torusMap_kernel_pow_det B x hx i
821
-
822
- end Torus
823
- end EilenbergGanea
824
-
825
- namespace EilenbergGanea
826
- open Set Filter Topology
827
-
828
- theorem splitWordMap_fixed_finite {m : ℕ} (w : Fin m → FreeGroup (Fin m))
829
- (hB : (exponentMatrix w).det ≠ 0) :
830
- {z : Fin m → ℂ | splitWordMap w (z, 0) = 0}.Finite := by
831
- classical
832
- let e : (Fin m → Circle) → (Fin m → ℂ) := fun x i => (x i : ℂ)
833
- have hf := (torusMap_finite_kernel (exponentMatrix w) hB).image e
834
- apply hf.subset
835
- intro z hz
836
- obtain ⟨hn, hr⟩ := (splitWordMap_fixed_zero_iff w z).mp hz
837
- let x : Fin m → Circle := fun i => ⟨z i, mem_sphere_zero_iff_norm.mpr (hn i)⟩
838
- refine ⟨x, ?_, rfl⟩
839
- funext i
840
- apply Subtype.ext
841
- change Circle.coeHom (∏ j, x j ^ exponentMatrix w i j) = (1 : ℂ)
842
- rw [map_prod]
843
- simp only [map_zpow]
844
- exact hr i
845
-
846
- end EilenbergGanea
847
-
848
- namespace EilenbergGanea
849
- open Set Filter Topology
850
- open scoped ContDiff
851
-
852
- /-- The signed-root noncancellation for the actual ambient quaternion word
853
- map, with no regularity assumed of the original word map. -/
854
- theorem word_exists_regularization_nonzero_count {m : ℕ}
855
- (w : Fin m → FreeGroup (Fin m)) (hB : (exponentMatrix w).det ≠ 0)
856
- (K : Set ((Fin m → ℂ) × (Fin m → ℂ))) (hK : IsCompact K)
857
- (hKi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q ∈ K, (q.1, z • q.2) ∈ K)
858
- (h1 : (1, 0) ∈ K)
859
- (L : Set ((Fin m → ℂ) × (Fin m → ℂ))) (hL : IsCompact L) (hKL : K ⊆ L)
860
- (ε : ℝ) (hε : 0 < ε) :
861
- ∃ g : ((Fin m → ℂ) × (Fin m → ℂ)) → ((Fin m → ℂ) × (Fin m → ℂ)),
862
- ContDiff ℝ ∞ g ∧ (∀ q ∈ L, ‖g q - splitWordMap w q‖ < ε) ∧
863
- ∃ s : Finset ((Fin m → ℂ) × (Fin m → ℂ)),
864
- (∀ q, q ∈ s ↔ q ∈ K ∧ g q = 0) ∧
865
- (∀ q ∈ s, (fderiv ℝ g q).det ≠ 0) ∧
866
- (∑ q ∈ s, (if 0 < (fderiv ℝ g q).det then 1 else -1 : ℝ)) ≠ 0 := by
867
- classical
868
- let S := (splitWordMap_fixed_finite w hB).toFinset
869
- have hS (z) : z ∈ S ↔ splitWordMap w (z, 0) = 0 := (splitWordMap_fixed_finite w hB).mem_toFinset
870
- obtain ⟨p, hpbound, hp⟩ := Nat.exists_infinite_primes (S.card + 3)
871
- let : Fact p.Prime := ⟨hp⟩
872
- let : NeZero p := ⟨hp.ne_zero⟩
873
- let : Fintype (rootsOfUnity p ℂ) := Fintype.ofFinite _
874
- obtain ⟨a₀, ha₀⟩ := rootsOfUnity_exists_nonreal (p := p) (by omega)
875
- let χ : rootsOfUnity p ℂ →* ℂˣ := (rootsOfUnity p ℂ).subtype
876
- apply exists_regularization_nonzero_count (rootsOfUnity_isPGroup (p := p)) χ
877
- Subtype.val_injective a₀ ha₀ (splitWordMap w) (splitWordMap_contDiff w)
878
- (fun a q => splitWordMap_rotation w (χ a : ℂ) (complex_root_of_unity_norm hp.ne_zero a) q)
879
- K hK (fun a q hq => hKi (χ a : ℂ) (complex_root_of_unity_norm hp.ne_zero a) q hq)
880
- L hL hKL S (fun z _ hz => (hS z).mpr hz) ⟨1, h1, splitWordMap_fixed_one w⟩ (by omega)
881
- ((exponentMatrix w).det : ℝ) (by exact_mod_cast hB) _ ε hε
882
- intro z hz
883
- obtain ⟨hn, hr⟩ := (splitWordMap_fixed_zero_iff w z).mp ((hS z).mp hz)
884
- exact splitWordMap_fixed_det w z hn hr
885
-
886
- end EilenbergGanea
887
-
888
- end
889
-
890
- end OAI
 
1
+ import OAI.Topology.EilenbergGanea.Regularization
2
+ import Mathlib.Analysis.Quaternion
3
+ import Mathlib.Analysis.Complex.Circle
4
+ import Mathlib.Analysis.Complex.Polynomial.Basic
5
+ import Mathlib.Analysis.Calculus.Deriv.ZPow
6
+ import Mathlib.GroupTheory.FreeGroup.Basic
7
+ import Mathlib.Analysis.SpecialFunctions.SmoothTransition
8
+
9
+ namespace OAI
10
+
11
+ noncomputable section
12
+
13
+ open Set Filter Topology
14
+ open scoped Quaternion ContDiff
15
+
16
+ open scoped Quaternion
17
+ namespace EilenbergGanea
18
+ abbrev SU2 := unitary ℍ
19
+
20
+ theorem quaternion_mem_unitary_iff (q : ℍ) : q ∈ unitary ℍ ↔ ‖q‖ = 1 := by
21
+ rw [Unitary.mem_iff, Quaternion.star_mul_self, Quaternion.self_mul_star, and_self]
22
+ constructor
23
+ · intro h
24
+ have he : Quaternion.normSq q = 1 := Quaternion.coe_inj.mp h
25
+ rw [Quaternion.normSq_eq_norm_mul_self] at he
26
+ nlinarith [norm_nonneg q]
27
+ · intro h
28
+ simp [Quaternion.normSq_eq_norm_mul_self, h]
29
+
30
+ instance su2_compactSpace : CompactSpace SU2 := by
31
+ apply isCompact_iff_compactSpace.mp
32
+ have hs : (unitary ℍ : Set ℍ) = Metric.sphere 0 1 := by
33
+ ext q
34
+ simp [quaternion_mem_unitary_iff]
35
+ rw [hs]
36
+ exact isCompact_sphere 0 1
37
+
38
+ def circleQuaternion : Circle →* SU2 where
39
+ toFun z := ⟨Quaternion.ofComplex z, by
40
+ rw [Unitary.mem_iff, Quaternion.star_mul_self, Quaternion.self_mul_star, and_self]
41
+ have hz := Circle.normSq_coe z
42
+ have he : Quaternion.normSq (Quaternion.ofComplex z) = 1 := by
43
+ simpa [Quaternion.normSq_def', Complex.normSq_apply, sq] using hz
44
+ rw [he]; rfl⟩
45
+ map_one' := Subtype.ext (map_one Quaternion.ofComplex)
46
+ map_mul' z w := Subtype.ext (map_mul Quaternion.ofComplex (z : ℂ) (w : ℂ))
47
+
48
+ @[simp] theorem circleQuaternion_coe (z : Circle) :
49
+ ((circleQuaternion z : SU2) : ℍ) = (z : ℂ) := rfl
50
+
51
+ theorem circleQuaternion_injective : Function.Injective circleQuaternion := by
52
+ intro z w h
53
+ apply Subtype.ext
54
+ apply Complex.ext
55
+ · exact congrArg (fun q : ℍ => q.re) (congrArg Subtype.val h)
56
+ · exact congrArg (fun q : ℍ => q.imI) (congrArg Subtype.val h)
57
+
58
+ theorem circleQuaternion_continuous : Continuous circleQuaternion := by
59
+ apply Continuous.subtype_mk
60
+ exact Quaternion.ofComplex.toLinearMap.continuous_of_finiteDimensional.comp continuous_subtype_val
61
+
62
+ def wordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m)) (x : Fin m → SU2) : Fin m → SU2 :=
63
+ fun i => FreeGroup.lift x (w i)
64
+
65
+ def exponentMatrix {m : ℕ} (w : Fin m → FreeGroup (Fin m)) : Matrix (Fin m) (Fin m) ℤ :=
66
+ fun i j => Multiplicative.toAdd
67
+ (FreeGroup.lift (fun k => Multiplicative.ofAdd (if j = k then (1 : ℤ) else 0)) (w i))
68
+
69
+ open Set Filter Topology
70
+ open scoped ContDiff
71
+
72
+ /-- Radial normalization is only used on nonzero quaternions. The harmless
73
+ value at zero makes it a total function without changing that domain. -/
74
+ def normalizeQuaternion (q : ℍ) : SU2 := by
75
+ classical
76
+ exact if h : q = 0 then 1 else
77
+ ⟨‖q‖⁻¹ • q, (quaternion_mem_unitary_iff _).mpr (by
78
+ simp only [norm_smul, Real.norm_eq_abs, abs_inv, abs_norm]
79
+ exact inv_mul_cancel₀ (norm_ne_zero_iff.mpr h))⟩
80
+
81
+ theorem normalizeQuaternion_coe_of_ne_zero {q : ℍ} (hq : q ≠ 0) :
82
+ (normalizeQuaternion q : ℍ) = ‖q‖⁻¹ • q := by simp [normalizeQuaternion, hq]
83
+
84
+ theorem normalizeQuaternion_coe_contDiffAt {q : ℍ} (hq : q ≠ 0) :
85
+ ContDiffAt ℝ ∞ (fun z => (normalizeQuaternion z : ℍ)) q := by
86
+ have h : ContDiffAt ℝ ∞ (fun z : ℍ => ‖z‖⁻¹ • z) q :=
87
+ ((contDiffAt_norm ℝ hq).inv (norm_ne_zero_iff.mpr hq)).smul contDiffAt_id
88
+ apply h.congr_of_eventuallyEq
89
+ filter_upwards [eventually_ne_nhds hq] with z hz
90
+ exact normalizeQuaternion_coe_of_ne_zero hz
91
+
92
+ theorem normalizeQuaternion_continuousAt {q : ℍ} (hq : q ≠ 0) :
93
+ ContinuousAt normalizeQuaternion q := by
94
+ exact tendsto_subtype_rng.mpr (normalizeQuaternion_coe_contDiffAt hq).continuousAt
95
+
96
+ @[simp] theorem normalizeQuaternion_unitary (q : SU2) : normalizeQuaternion (q : ℍ) = q := by
97
+ have hqnorm : ‖(q : ℍ)‖ = 1 := (quaternion_mem_unitary_iff _).mp q.property
98
+ have hq : (q : ℍ) ≠ 0 := by intro he; simp [he] at hqnorm
99
+ apply Subtype.ext
100
+ simp [normalizeQuaternion_coe_of_ne_zero hq, hqnorm]
101
+
102
+ /-- Smoothness of coefficient-free word evaluation follows directly by
103
+ induction, using quaternion conjugation for unitary inverses. -/
104
+ theorem freeGroup_lift_coe_contDiffAt {D ι : Type*}
105
+ [NormedAddCommGroup D] [NormedSpace ℝ D] (w : FreeGroup ι)
106
+ (a : D) (x : D → ι → SU2)
107
+ (hx : ∀ i, ContDiffAt ℝ ∞ (fun z => (x z i : ℍ)) a) :
108
+ ContDiffAt ℝ ∞ (fun z => ((FreeGroup.lift (x z) w : SU2) : ℍ)) a := by
109
+ induction w using FreeGroup.induction_on with
110
+ | one => simpa using (contDiffAt_const : ContDiffAt ℝ ∞ (fun _ : D => (1 : ℍ)) a)
111
+ | of i => simpa using hx i
112
+ | inv_of i hi =>
113
+ simp only [map_inv]
114
+ change ContDiffAt ℝ ∞ (fun z => star ((FreeGroup.lift (x z) (FreeGroup.of i) : SU2) : ℍ)) a
115
+ let L : ℍ →ₗ[ℝ] ℍ :=
116
+ { toFun := star
117
+ map_add' := star_add
118
+ map_smul' := Quaternion.star_smul }
119
+ exact L.toContinuousLinearMap.contDiff.contDiffAt.comp a hi
120
+ | mul v w hv hw => simpa only [map_mul, Submonoid.coe_mul] using hv.mul hw
121
+
122
+ def radialWordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m))
123
+ (x : Fin m → ℍ) : Fin m → ℍ :=
124
+ fun i => ‖x i‖ • ((wordMap w (fun j => normalizeQuaternion (x j)) i : SU2) : ℍ)
125
+
126
+ @[simp] theorem radialWordMap_norm {m : ℕ} (w : Fin m → FreeGroup (Fin m))
127
+ (x : Fin m → ℍ) (i : Fin m) : ‖radialWordMap w x i‖ = ‖x i‖ := by
128
+ have h : ‖((wordMap w (fun j => normalizeQuaternion (x j)) i : SU2) : ℍ)‖ = 1 :=
129
+ (quaternion_mem_unitary_iff _).mp (wordMap w (fun j => normalizeQuaternion (x j)) i).property
130
+ simp [radialWordMap, norm_smul, h]
131
+
132
+ theorem radialWordMap_contDiffAt {m : ℕ} (w : Fin m → FreeGroup (Fin m))
133
+ (x : Fin m → ℍ) (hx : ∀ i, x i ≠ 0) : ContDiffAt ℝ ∞ (radialWordMap w) x := by
134
+ apply contDiffAt_pi.mpr
135
+ intro i
136
+ exact ((contDiffAt_apply ℝ ℍ i x).norm ℝ (hx i)).smul
137
+ (freeGroup_lift_coe_contDiffAt (w i) x (fun z j => normalizeQuaternion (z j))
138
+ (fun j => (normalizeQuaternion_coe_contDiffAt (hx j)).comp (f := fun z : Fin m → ℍ => z j) x (contDiffAt_apply ℝ ℍ j x)))
139
+
140
+ theorem radialWordMap_eq_one_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))
141
+ (x : Fin m → ℍ) : radialWordMap w x = 1 ↔
142
+ (∀ i, ‖x i‖ = 1) ∧ wordMap w (fun j => normalizeQuaternion (x j)) = 1 := by
143
+ constructor
144
+ · intro h
145
+ have hn (i : Fin m) : ‖x i‖ = 1 := by
146
+ have he := congrArg (fun y : Fin m → ℍ => ‖y i‖) h
147
+ simpa only [radialWordMap_norm, Pi.one_apply, norm_one] using he
148
+ refine ⟨hn, ?_⟩
149
+ funext i
150
+ apply Subtype.ext
151
+ have he := congrFun h i
152
+ simpa [radialWordMap, hn] using he
153
+ · rintro ⟨hn, hw⟩
154
+ funext i
155
+ simp [radialWordMap, hn, hw]
156
+
157
+
158
+ /-- A conjugation-invariant smooth cutoff, zero near coordinate hyperplanes
159
+ and one near the unit quaternion locus. -/
160
+ def radialCutoff {m : ℕ} (x : Fin m → ℍ) : ℝ :=
161
+ ∏ i, Real.smoothTransition (4 * ‖x i‖ ^ 2 - 1)
162
+
163
+ def smoothRadialWordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m))
164
+ (x : Fin m → ℍ) : Fin m → ℍ := radialCutoff x • radialWordMap w x
165
+
166
+ theorem radialCutoff_contDiff {m : ℕ} : ContDiff ℝ ∞ (@radialCutoff m) := by
167
+ apply contDiff_prod
168
+ intro i _
169
+ have hn : ContDiff ℝ ∞ (fun x : Fin m → ℍ => ‖x i‖ ^ 2) :=
170
+ (contDiff_apply ℝ ℍ i).norm_sq ℝ
171
+ exact Real.smoothTransition.contDiff.comp ((contDiff_const.mul hn).sub contDiff_const)
172
+
173
+ theorem radialCutoff_nonneg {m : ℕ} (x : Fin m → ℍ) : 0 ≤ radialCutoff x :=
174
+ Finset.prod_nonneg (fun _ _ => Real.smoothTransition.nonneg _)
175
+
176
+ theorem radialCutoff_le_one {m : ℕ} (x : Fin m → ℍ) : radialCutoff x ≤ 1 :=
177
+ Finset.prod_le_one₀ (fun _ _ => Real.smoothTransition.nonneg _)
178
+ (fun _ _ => Real.smoothTransition.le_one _)
179
+
180
+ theorem radialCutoff_eq_one {m : ℕ} (x : Fin m → ℍ) (hx : ∀ i, 1 ≤ ‖x i‖) :
181
+ radialCutoff x = 1 := by
182
+ apply Finset.prod_eq_one
183
+ intro i _
184
+ apply Real.smoothTransition.one_of_one_le
185
+ nlinarith [hx i]
186
+
187
+ theorem radialCutoff_eventually_zero {m : ℕ} (x : Fin m → ℍ) (i : Fin m)
188
+ (hi : x i = 0) : radialCutoff =ᶠ[𝓝 x] (fun _ => 0) := by
189
+ have h : ∀ᶠ y in 𝓝 x, ‖y i‖ < (1 / 2 : ℝ) :=
190
+ ((continuous_apply i).norm.continuousAt.eventually_lt_const (by simp [hi]))
191
+ filter_upwards [h] with y hy
192
+ apply Finset.prod_eq_zero (Finset.mem_univ i)
193
+ apply Real.smoothTransition.zero_of_nonpos
194
+ nlinarith [norm_nonneg (y i)]
195
+
196
+ theorem radialCutoff_eventually_one {m : ℕ} (x : Fin m → ℍ)
197
+ (hx : ∀ i, ‖x i‖ = 1) : radialCutoff =ᶠ[𝓝 x] (fun _ => 1) := by
198
+ have h (i : Fin m) : ∀ᶠ y in 𝓝 x, (3 / 4 : ℝ) < ‖y i‖ :=
199
+ ((continuous_apply i).norm.continuousAt.eventually_const_lt (by change (3 / 4 : ℝ) < ‖x i‖; rw [hx i]; norm_num))
200
+ filter_upwards [Filter.eventually_all.mpr h] with y hy
201
+ apply Finset.prod_eq_one
202
+ intro i _
203
+ apply Real.smoothTransition.one_of_one_le
204
+ nlinarith [hy i]
205
+
206
+ theorem smoothRadialWordMap_contDiff {m : ℕ} (w : Fin m → FreeGroup (Fin m)) :
207
+ ContDiff ℝ ∞ (smoothRadialWordMap w) := by
208
+ rw [contDiff_iff_contDiffAt]
209
+ intro x
210
+ by_cases hx : ∀ i, x i ≠ 0
211
+ · exact radialCutoff_contDiff.contDiffAt.smul (radialWordMap_contDiffAt w x hx)
212
+ · push Not at hx
213
+ obtain ⟨i, hi⟩ := hx
214
+ apply (contDiffAt_const : ContDiffAt ℝ ∞ (fun _ : Fin m → ℍ => (0 : Fin m → ℍ)) x).congr_of_eventuallyEq
215
+ filter_upwards [radialCutoff_eventually_zero x i hi] with y hy
216
+ simp [smoothRadialWordMap, hy]
217
+
218
+ theorem smoothRadialWordMap_eq_one_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))
219
+ (x : Fin m → ℍ) : smoothRadialWordMap w x = 1 ↔ radialWordMap w x = 1 := by
220
+ constructor
221
+ · intro h
222
+ have hn (i : Fin m) : radialCutoff x * ‖x i‖ = 1 := by
223
+ have he := congrArg (fun y : Fin m → ℍ => ‖y i‖) h
224
+ simpa only [smoothRadialWordMap, Pi.smul_apply, norm_smul, Real.norm_eq_abs,
225
+ abs_of_nonneg (radialCutoff_nonneg x), radialWordMap_norm, Pi.one_apply, norm_one] using he
226
+ have hlarge (i : Fin m) : 1 ≤ ‖x i‖ := by
227
+ have hle := mul_le_mul_of_nonneg_right (radialCutoff_le_one x) (norm_nonneg (x i))
228
+ rw [hn i, one_mul] at hle
229
+ exact hle
230
+ simpa only [smoothRadialWordMap, radialCutoff_eq_one x hlarge, one_smul] using h
231
+ · intro h
232
+ have hn := (radialWordMap_eq_one_iff w x).mp h
233
+ simp only [smoothRadialWordMap, radialCutoff_eq_one x (fun i => (hn.1 i).ge), one_smul, h]
234
+
235
+ theorem smoothRadialWordMap_eventuallyEq {m : ℕ} (w : Fin m → FreeGroup (Fin m))
236
+ (x : Fin m → ℍ) (hx : ∀ i, ‖x i‖ = 1) :
237
+ smoothRadialWordMap w =ᶠ[𝓝 x] radialWordMap w := by
238
+ filter_upwards [radialCutoff_eventually_one x hx] with y hy
239
+ simp [smoothRadialWordMap, hy]
240
+
241
+ end EilenbergGanea
242
+
243
+ namespace EilenbergGanea
244
+ open Set Filter Topology
245
+ variable {n : Type*} [Fintype n] [DecidableEq n]
246
+
247
+ def splitComplex : (n → ℂ) ≃ₗ[ℝ] ((n → ℝ) × (n → ℝ)) where
248
+ toFun z := (fun i => (z i).re, fun i => (z i).im)
249
+ invFun p i := (p.1 i : ℂ) + (p.2 i : ℂ) * Complex.I
250
+ left_inv z := by funext i; exact Complex.re_add_im (z i)
251
+ right_inv p := by ext i <;> simp
252
+ map_add' a b := by ext i <;> simp
253
+ map_smul' a b := by ext i <;> simp
254
+
255
+ def radialAngularLinear (B : Matrix n n ℝ) : (n → ℂ) →L[ℝ] (n → ℂ) :=
256
+ ((splitComplex (n := n)).symm.toLinearMap.comp
257
+ (((LinearMap.id : (n → ℝ) →ₗ[ℝ] (n → ℝ)).prodMap B.toLin').comp
258
+ (splitComplex (n := n)).toLinearMap)).toContinuousLinearMap
259
+
260
+ @[simp] theorem radialAngularLinear_apply (B : Matrix n n ℝ) (z : n → ℂ) (i : n) :
261
+ radialAngularLinear B z i = ((z i).re : ℂ) + (∑ j, B i j * (z j).im : ℝ) * Complex.I := rfl
262
+
263
+ theorem radialAngularLinear_det (B : Matrix n n ℝ) :
264
+ (radialAngularLinear B).toLinearMap.det = B.det := by
265
+ change LinearMap.det ((splitComplex (n := n)).symm.toLinearMap ∘ₗ
266
+ ((LinearMap.id : (n → ℝ) →ₗ[ℝ] (n → ℝ)).prodMap B.toLin') ∘ₗ
267
+ (splitComplex (n := n)).toLinearMap) = _
268
+ have he := LinearMap.det_conj
269
+ ((LinearMap.id : (n → ℝ) →ₗ[ℝ] (n → ℝ)).prodMap B.toLin')
270
+ (splitComplex (n := n)).symm
271
+ rw [LinearEquiv.symm_symm] at he
272
+ rw [he, LinearMap.det_prodMap, LinearMap.det_id, one_mul, LinearMap.det_toLin']
273
+
274
+ def complexPolarChart (x z : n → ℂ) : n → ℂ := fun i => x i * Complex.exp (z i)
275
+
276
+ def complexRadialTorus (B : Matrix n n ℤ) (z : n → ℂ) : n → ℂ :=
277
+ fun i => ‖z i‖ • ∏ j, (‖z j‖⁻¹ • z j) ^ B i j
278
+
279
+ theorem normalize_complex_mul_exp (x z : ℂ) (hx : ‖x‖ = 1) :
280
+ ‖x * Complex.exp z‖⁻¹ • (x * Complex.exp z) =
281
+ x * Complex.exp ((z.im : ℂ) * Complex.I) := by
282
+ rw [norm_mul, hx, one_mul, Complex.norm_exp, Complex.real_smul, Complex.ofReal_inv]
283
+ have he : Complex.exp z = (Real.exp z.re : ℂ) *
284
+ Complex.exp ((z.im : ℂ) * Complex.I) := by
285
+ rw [Complex.ofReal_exp, ← Complex.exp_add, Complex.re_add_im]
286
+ rw [he]
287
+ have hn : (Real.exp z.re : ℂ) ≠ 0 := by exact_mod_cast Real.exp_ne_zero z.re
288
+ field_simp
289
+
290
+ theorem complexRadialTorus_chart (B : Matrix n n ℤ) (x : n → ℂ)
291
+ (hx : ∀ i, ‖x i‖ = 1) (hroot : ∀ i, ∏ j, x j ^ B i j = 1) :
292
+ complexRadialTorus B ∘ complexPolarChart x =
293
+ fun z => fun i => Complex.exp (radialAngularLinear (B.map (Int.castRingHom ℝ)) z i) := by
294
+ funext z i
295
+ have hn (j : n) := normalize_complex_mul_exp (x j) (z j) (hx j)
296
+ simp only [Function.comp_apply, complexRadialTorus, complexPolarChart]
297
+ simp only [hn]
298
+ simp only [mul_zpow, Finset.prod_mul_distrib,
299
+ hroot, one_mul, norm_mul, hx, one_mul, Complex.norm_exp, radialAngularLinear_apply,
300
+ ← Complex.exp_int_mul]
301
+ rw [Complex.real_smul, Complex.ofReal_exp, ← Complex.exp_sum, ← Complex.exp_add]
302
+ congr 1
303
+ simp only [Matrix.map_apply, Int.coe_castRingHom, Complex.ofReal_sum,
304
+ Complex.ofReal_mul, Complex.ofReal_intCast]
305
+ rw [Finset.sum_mul]
306
+ congr 1
307
+ apply Finset.sum_congr rfl
308
+ intro j _
309
+ ring
310
+
311
+
312
+ /-- The real derivative of multiplication by a unit complex tuple has determinant one. -/
313
+ def complexDiagonal (x : n → ℂ) : (n → ℂ) →L[ℝ] (n → ℂ) :=
314
+ ((Matrix.diagonal x).toLin').toContinuousLinearMap.restrictScalars ℝ
315
+
316
+ @[simp] theorem complexDiagonal_apply (x z : n → ℂ) (i : n) :
317
+ complexDiagonal x z i = x i * z i := by simp [complexDiagonal, Matrix.toLin'_apply, Matrix.mulVec, Matrix.diagonal_apply, dotProduct]
318
+
319
+ theorem complexDiagonal_det (x : n → ℂ) (hx : ∀ i, ‖x i‖ = 1) :
320
+ (complexDiagonal x).toLinearMap.det = 1 := by
321
+ change (((Matrix.diagonal x).toLin').restrictScalars ℝ).det = _
322
+ rw [LinearMap.det_restrictScalars, Algebra.norm_complex_apply, LinearMap.det_toLin',
323
+ Matrix.det_diagonal]
324
+ rw [Complex.normSq_eq_norm_sq, norm_prod]
325
+ simp [hx]
326
+
327
+ theorem complexPolarChart_hasFDerivAt (x : n → ℂ) :
328
+ HasFDerivAt (complexPolarChart x) (complexDiagonal x) 0 := by
329
+ apply hasFDerivAt_pi'.mpr
330
+ intro i
331
+ have h := ((ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ).hasFDerivAt
332
+ (x := 0)).cexp.const_mul (x i)
333
+ change HasFDerivAt (fun z : n → ℂ => x i * Complex.exp (z i)) _ (0 : n → ℂ)
334
+ have he : (ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ).comp (complexDiagonal x) =
335
+ x i • (ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ) := by
336
+ ext z
337
+ simp
338
+ rw [he]
339
+ simpa using h
340
+
341
+ theorem exp_radialAngularLinear_hasFDerivAt (B : Matrix n n ℝ) :
342
+ HasFDerivAt (fun z i => Complex.exp (radialAngularLinear B z i))
343
+ (radialAngularLinear B) 0 := by
344
+ apply hasFDerivAt_pi'.mpr
345
+ intro i
346
+ simpa using (((ContinuousLinearMap.proj i : (n → ℂ) →L[ℝ] ℂ).comp
347
+ (radialAngularLinear B)).hasFDerivAt (x := 0)).cexp
348
+
349
+ theorem complexRadialTorus_differentiableAt (B : Matrix n n ℤ) (x : n → ℂ)
350
+ (hx : ∀ i, x i ≠ 0) : DifferentiableAt ℝ (complexRadialTorus B) x := by
351
+ apply differentiableAt_pi.mpr
352
+ intro i
353
+ have hn (j : n) : DifferentiableAt ℝ (fun z : n → ℂ => ‖z j‖) x :=
354
+ (differentiableAt_apply j x).norm ℝ (hx j)
355
+ apply (hn i).smul
356
+ have hp (j : n) : DifferentiableAt ℝ (fun z : n → ℂ => (‖z j‖⁻¹ • z j) ^ B i j) x := by
357
+ have hne : ‖x j‖⁻¹ • x j ≠ 0 :=
358
+ smul_ne_zero (inv_ne_zero (norm_ne_zero_iff.mpr (hx j))) (hx j)
359
+ have hz : DifferentiableAt ℝ (fun z : ℂ => z ^ B i j) (‖x j‖⁻¹ • x j) :=
360
+ ((differentiableAt_zpow (𝕜 := ℂ) (m := B i j)).mpr (Or.inl hne)).restrictScalars ℝ
361
+ exact hz.comp x (((hn j).inv (norm_ne_zero_iff.mpr (hx j))).smul
362
+ (differentiableAt_apply j x))
363
+ exact (HasFDerivAt.finsetProd (fun j _ => (hp j).hasFDerivAt)).differentiableAt
364
+
365
+ /-- At every torus root, the radial extension has exactly determinant det B.
366
+ The extra radial coordinates contribute the identity, not an additional sign. -/
367
+ theorem complexRadialTorus_det (B : Matrix n n ℤ) (x : n → ℂ)
368
+ (hx : ∀ i, ‖x i‖ = 1) (hroot : ∀ i, ∏ j, x j ^ B i j = 1) :
369
+ (fderiv ℝ (complexRadialTorus B) x).det = (B.det : ℝ) := by
370
+ have hne (i : n) : x i ≠ 0 := by intro h; simpa [h] using hx i
371
+ have hd := (complexRadialTorus_differentiableAt B x hne).hasFDerivAt
372
+ have hchart : complexPolarChart x 0 = x := by ext i; simp [complexPolarChart]
373
+ have hc := (show HasFDerivAt (complexRadialTorus B) (fderiv ℝ (complexRadialTorus B) x)
374
+ (complexPolarChart x 0) by rw [hchart]; exact hd).comp 0 (complexPolarChart_hasFDerivAt x)
375
+ have he : (fderiv ℝ (complexRadialTorus B) x).comp (complexDiagonal x) =
376
+ radialAngularLinear (B.map (Int.castRingHom ℝ)) := by
377
+ apply hc.unique
378
+ rw [complexRadialTorus_chart B x hx hroot]
379
+ exact exp_radialAngularLinear_hasFDerivAt _
380
+ have hdet := congrArg (fun L : (n → ℂ) →L[ℝ] (n → ℂ) => L.det) he
381
+ change ((fderiv ℝ (complexRadialTorus B) x).toLinearMap.comp
382
+ (complexDiagonal x).toLinearMap).det = (radialAngularLinear (B.map (Int.castRingHom ℝ))).toLinearMap.det at hdet
383
+ rw [LinearMap.det_comp, complexDiagonal_det x hx,
384
+ mul_one, radialAngularLinear_det] at hdet
385
+ exact hdet.trans ((Int.castRingHom ℝ).map_det B).symm
386
+
387
+ end EilenbergGanea
388
+ namespace EilenbergGanea
389
+ section CommutativeWords
390
+ variable {n A : Type*} [Fintype n] [DecidableEq n] [CommGroup A]
391
+ def wordExponents {ι : Type*} [DecidableEq ι] (w : FreeGroup ι) (j : ι) : ℤ :=
392
+ Multiplicative.toAdd
393
+ (FreeGroup.lift (fun k => Multiplicative.ofAdd (if j = k then (1 : ℤ) else 0)) w)
394
+
395
+ @[simp] theorem wordExponents_one {ι : Type*} [DecidableEq ι] (j : ι) : wordExponents (1 : FreeGroup ι) j = 0 := by
396
+ simp [wordExponents]
397
+
398
+ @[simp] theorem wordExponents_of {ι : Type*} [DecidableEq ι] (j k : ι) :
399
+ wordExponents (FreeGroup.of k) j = if j = k then 1 else 0 := by
400
+ simp [wordExponents]
401
+
402
+ @[simp] theorem wordExponents_inv {ι : Type*} [DecidableEq ι] (w : FreeGroup ι) (j : ι) :
403
+ wordExponents w⁻¹ j = -wordExponents w j := by
404
+ simp [wordExponents]
405
+
406
+ @[simp] theorem wordExponents_mul {ι : Type*} [DecidableEq ι] (w v : FreeGroup ι) (j : ι) :
407
+ wordExponents (w * v) j = wordExponents w j + wordExponents v j := by
408
+ simp [wordExponents]
409
+
410
+ theorem freeGroup_lift_commutative (x : n → A) (w : FreeGroup n) :
411
+ FreeGroup.lift x w = ∏ j, x j ^ wordExponents w j := by
412
+ induction w using FreeGroup.induction_on with
413
+ | one => simp
414
+ | of i => simp
415
+ | inv_of i hi => simp [hi, Finset.prod_inv_distrib]
416
+ | mul a b ha hb => simp [ha, hb, zpow_add, Finset.prod_mul_distrib]
417
+
418
+ end CommutativeWords
419
+ end EilenbergGanea
420
+ namespace EilenbergGanea
421
+ open Set Filter Topology
422
+ open scoped Quaternion ContDiff
423
+
424
+ def quaternionCoordinates : ℍ ≃ₗ[ℝ] ℂ × ℂ where
425
+ toFun q := (⟨q.re, q.imI⟩, ⟨q.imJ, q.imK⟩)
426
+ invFun z := ⟨z.1.re, z.1.im, z.2.re, z.2.im⟩
427
+ left_inv q := by cases q; rfl
428
+ right_inv z := by rcases z with ⟨⟨a,b⟩,⟨c,d⟩⟩; rfl
429
+ map_add' q r := by ext <;> rfl
430
+ map_smul' r q := by apply Prod.ext <;> apply Complex.ext <;> simp
431
+
432
+ @[simp] theorem quaternionCoordinates_apply (q : ℍ) :
433
+ quaternionCoordinates q = (⟨q.re, q.imI⟩, ⟨q.imJ, q.imK⟩) := rfl
434
+
435
+ @[simp] theorem quaternionCoordinates_ofComplex (z : ℂ) :
436
+ quaternionCoordinates (Quaternion.ofComplex z) = (z, 0) := by
437
+ ext <;> rfl
438
+
439
+ @[simp] theorem norm_quaternion_ofComplex (z : ℂ) : ‖Quaternion.ofComplex z‖ = ‖z‖ := by
440
+ have h : ‖Quaternion.ofComplex z‖ ^ 2 = ‖z‖ ^ 2 := by
441
+ rw [sq, ← Quaternion.normSq_eq_norm_mul_self, ← Complex.normSq_eq_norm_sq]
442
+ simp [Quaternion.normSq_def', Complex.normSq_apply, sq]
443
+ nlinarith [norm_nonneg (Quaternion.ofComplex z), norm_nonneg z]
444
+
445
+ def quaternionTupleCoordinates {m : ℕ} :
446
+ (Fin m → ℍ) ≃L[ℝ] ((Fin m → ℂ) × (Fin m → ℂ)) :=
447
+ (show (Fin m → ℍ) ≃ₗ[ℝ] ((Fin m → ℂ) × (Fin m → ℂ)) from
448
+ { toFun := fun q => (fun i => (quaternionCoordinates (q i)).1,
449
+ fun i => (quaternionCoordinates (q i)).2)
450
+ invFun := fun z i => quaternionCoordinates.symm (z.1 i, z.2 i)
451
+ left_inv := by intro q; funext i; exact quaternionCoordinates.symm_apply_apply _
452
+ right_inv := by intro z; ext i <;> simp
453
+ map_add' := by intro q r; ext i <;> rfl
454
+ map_smul' := by intro r q; ext i <;> simp [quaternionCoordinates] }).toContinuousLinearEquiv
455
+
456
+ @[simp] theorem quaternionTupleCoordinates_fixed {m : ℕ} (z : Fin m → ℂ) :
457
+ quaternionTupleCoordinates (fun i => Quaternion.ofComplex (z i)) = (z, 0) := by
458
+ apply Prod.ext
459
+ · funext i; exact congrArg Prod.fst (quaternionCoordinates_ofComplex (z i))
460
+ · funext i; exact congrArg Prod.snd (quaternionCoordinates_ofComplex (z i))
461
+
462
+ @[simp] theorem quaternionTupleCoordinates_symm_fixed {m : ℕ} (z : Fin m → ℂ) :
463
+ quaternionTupleCoordinates.symm (z, 0) = fun i => Quaternion.ofComplex (z i) := by
464
+ exact quaternionTupleCoordinates.injective (by rw [ContinuousLinearEquiv.apply_symm_apply, quaternionTupleCoordinates_fixed])
465
+
466
+ /-- Circle normalization chosen compatibly with quaternion normalization. -/
467
+ def normalizeCircle (z : ℂ) : Circle := by
468
+ classical
469
+ exact if hz : z = 0 then 1 else ⟨‖z‖⁻¹ • z, by apply mem_sphere_zero_iff_norm.mpr; simp [hz]⟩
470
+
471
+ theorem normalizeCircle_coe_of_ne_zero {z : ℂ} (hz : z ≠ 0) :
472
+ (normalizeCircle z : ℂ) = ‖z‖⁻¹ • z := by simp [normalizeCircle, hz]
473
+
474
+ theorem normalizeQuaternion_ofComplex (z : ℂ) :
475
+ normalizeQuaternion (Quaternion.ofComplex z) = circleQuaternion (normalizeCircle z) := by
476
+ by_cases hz : z = 0
477
+ · subst z
478
+ simp [normalizeQuaternion, normalizeCircle]
479
+ · have hq : Quaternion.ofComplex z ≠ 0 := by
480
+ intro h
481
+ have hh := congrArg quaternionCoordinates h
482
+ apply hz
483
+ have hz0 := congrArg Prod.fst hh
484
+ change (quaternionCoordinates (Quaternion.ofComplex z)).1 = (quaternionCoordinates (Quaternion.ofComplex 0)).1 at hz0
485
+ simpa only [quaternionCoordinates_ofComplex] using hz0
486
+ apply Subtype.ext
487
+ rw [normalizeQuaternion_coe_of_ne_zero hq, circleQuaternion_coe,
488
+ normalizeCircle_coe_of_ne_zero hz, norm_quaternion_ofComplex]
489
+ exact (map_smul Quaternion.ofComplex (‖z‖⁻¹) z).symm
490
+
491
+ theorem wordMap_circleQuaternion {m : ℕ} (w : Fin m → FreeGroup (Fin m)) (x : Fin m → Circle) :
492
+ wordMap w (fun j => circleQuaternion (x j)) =
493
+ fun i => circleQuaternion (∏ j, x j ^ exponentMatrix w i j) := by
494
+ funext i
495
+ have he : FreeGroup.lift (fun j => circleQuaternion (x j)) =
496
+ circleQuaternion.comp (FreeGroup.lift x) := by
497
+ apply FreeGroup.ext_hom
498
+ intro j
499
+ simp
500
+ change FreeGroup.lift (fun j => circleQuaternion (x j)) (w i) = _
501
+ rw [he, MonoidHom.comp_apply, freeGroup_lift_commutative]
502
+ rfl
503
+
504
+ theorem radialWordMap_fixed {m : ℕ} (w : Fin m → FreeGroup (Fin m)) (z : Fin m → ℂ)
505
+ (hz : ∀ i, z i ≠ 0) :
506
+ radialWordMap w (fun i => Quaternion.ofComplex (z i)) =
507
+ fun i => Quaternion.ofComplex (complexRadialTorus (exponentMatrix w) z i) := by
508
+ funext i
509
+ simp only [radialWordMap, normalizeQuaternion_ofComplex, wordMap_circleQuaternion,
510
+ circleQuaternion_coe, complexRadialTorus, norm_quaternion_ofComplex]
511
+ rw [map_smul]
512
+ congr 1
513
+ apply congrArg Quaternion.ofComplex
514
+ change Circle.coeHom (∏ j, normalizeCircle (z j) ^ exponentMatrix w i j) = _
515
+ rw [map_prod]
516
+ apply Finset.prod_congr rfl
517
+ intro j _
518
+ change (normalizeCircle (z j) : ℂ) ^ exponentMatrix w i j = _
519
+ rw [normalizeCircle_coe_of_ne_zero (hz j)]
520
+
521
+ theorem quaternionCoordinates_conjComplex (c : ℂ) (q : ℍ) :
522
+ quaternionCoordinates (Quaternion.ofComplex c * q * star (Quaternion.ofComplex c)) =
523
+ ((Complex.normSq c : ℂ) * (quaternionCoordinates q).1,
524
+ c ^ 2 * (quaternionCoordinates q).2) := by
525
+ apply Prod.ext <;> apply Complex.ext <;>
526
+ simp [quaternionCoordinates_apply, Complex.normSq_apply, pow_two] <;> ring
527
+
528
+ @[simp] theorem quaternionCoordinates_conjCircle (c : Circle) (q : ℍ) :
529
+ quaternionCoordinates (Quaternion.ofComplex c * q * star (Quaternion.ofComplex c)) =
530
+ ((quaternionCoordinates q).1, (c : ℂ) ^ 2 * (quaternionCoordinates q).2) := by
531
+ simpa using quaternionCoordinates_conjComplex (c : ℂ) q
532
+
533
+ /-- Ambient conjugation, compatible with the group operation on unit quaternions. -/
534
+ def quaternionConjugate (a : SU2) (q : ℍ) : ℍ := (a : ℍ) * q * star (a : ℍ)
535
+
536
+ @[simp] theorem quaternionConjugate_norm (a : SU2) (q : ℍ) :
537
+ ‖quaternionConjugate a q‖ = ‖q‖ := by
538
+ have ha := (quaternion_mem_unitary_iff _).mp a.property
539
+ simp [quaternionConjugate, ha]
540
+
541
+ @[simp] theorem quaternionConjugate_zero (a : SU2) : quaternionConjugate a 0 = 0 := by
542
+ simp [quaternionConjugate]
543
+
544
+ @[simp] theorem quaternionConjugate_one (a : SU2) : quaternionConjugate a 1 = 1 := by
545
+ simp [quaternionConjugate]
546
+
547
+ theorem quaternionConjugate_smul (a : SU2) (r : ℝ) (q : ℍ) :
548
+ quaternionConjugate a (r • q) = r • quaternionConjugate a q := by
549
+ simp only [quaternionConjugate, mul_smul_comm, smul_mul_assoc]
550
+
551
+ @[simp] theorem quaternionConjugate_coe (a q : SU2) :
552
+ quaternionConjugate a (q : ℍ) = ((a * q * a⁻¹ : SU2) : ℍ) := rfl
553
+
554
+ theorem normalizeQuaternion_conjugate (a : SU2) (q : ℍ) :
555
+ normalizeQuaternion (quaternionConjugate a q) = a * normalizeQuaternion q * a⁻¹ := by
556
+ by_cases hq : q = 0
557
+ · subst q; simp [normalizeQuaternion]
558
+ · have hn : quaternionConjugate a q ≠ 0 := by
559
+ intro hz
560
+ have he := quaternionConjugate_norm a q
561
+ rw [hz, norm_zero, eq_comm, norm_eq_zero] at he
562
+ exact hq he
563
+ apply Subtype.ext
564
+ rw [normalizeQuaternion_coe_of_ne_zero hn, ← quaternionConjugate_coe,
565
+ normalizeQuaternion_coe_of_ne_zero hq, quaternionConjugate_smul, quaternionConjugate_norm]
566
+
567
+ theorem wordMap_conjugation {m : ℕ} (w : Fin m → FreeGroup (Fin m))
568
+ (a : SU2) (x : Fin m → SU2) :
569
+ wordMap w (fun i => a * x i * a⁻¹) = fun i => a * wordMap w x i * a⁻¹ := by
570
+ have he : FreeGroup.lift (fun i => a * x i * a⁻¹) =
571
+ (MulAut.conj a).toMonoidHom.comp (FreeGroup.lift x) := by
572
+ apply FreeGroup.ext_hom
573
+ intro i
574
+ simp
575
+ funext i
576
+ change FreeGroup.lift (fun i => a * x i * a⁻¹) (w i) = _
577
+ rw [he]
578
+ rfl
579
+
580
+ theorem radialWordMap_conjugation {m : ℕ} (w : Fin m → FreeGroup (Fin m))
581
+ (a : SU2) (x : Fin m → ℍ) :
582
+ radialWordMap w (fun i => quaternionConjugate a (x i)) =
583
+ fun i => quaternionConjugate a (radialWordMap w x i) := by
584
+ funext i
585
+ simp only [radialWordMap, quaternionConjugate_norm, normalizeQuaternion_conjugate,
586
+ wordMap_conjugation, quaternionConjugate_smul, quaternionConjugate_coe]
587
+
588
+ theorem smoothRadialWordMap_conjugation {m : ℕ} (w : Fin m → FreeGroup (Fin m))
589
+ (a : SU2) (x : Fin m → ℍ) :
590
+ smoothRadialWordMap w (fun i => quaternionConjugate a (x i)) =
591
+ fun i => quaternionConjugate a (smoothRadialWordMap w x i) := by
592
+ funext i
593
+ simp only [smoothRadialWordMap, radialCutoff, quaternionConjugate_norm,
594
+ Pi.smul_apply, radialWordMap_conjugation, quaternionConjugate_smul]
595
+
596
+ end EilenbergGanea
597
+
598
+
599
+ namespace EilenbergGanea
600
+
601
+ theorem complex_root_of_unity_norm {p : ℕ} (hp : p ≠ 0) (z : rootsOfUnity p ℂ) :
602
+ ‖((z : ℂˣ) : ℂ)‖ = 1 := by
603
+ have h := congrArg norm ((mem_rootsOfUnity' p (z : ℂˣ)).mp z.property)
604
+ simpa only [norm_pow, norm_one, pow_eq_one_iff_of_nonneg (norm_nonneg _) hp] using h
605
+
606
+ theorem rootsOfUnity_isPGroup {p : ℕ} [Fact p.Prime] : IsPGroup p (rootsOfUnity p ℂ) := by
607
+ let : NeZero p := ⟨(Fact.out : p.Prime).ne_zero⟩
608
+ rw [isPGroup_iff_card_dvd_pow, Complex.card_rootsOfUnity]
609
+ exact ⟨1, by simp⟩
610
+
611
+ theorem rootsOfUnity_exists_nonreal {p : ℕ} (hp : 2 < p) :
612
+ ∃ z : rootsOfUnity p ℂ, (((z : ℂˣ) : ℂ)).im ≠ 0 := by
613
+ have hp0 : p ≠ 0 := by omega
614
+ let ζ := Complex.exp (2 * Real.pi * Complex.I / p)
615
+ have hζ : IsPrimitiveRoot ζ p := Complex.isPrimitiveRoot_exp p hp0
616
+ let u : ℂˣ := Units.mk0 ζ (Complex.exp_ne_zero _)
617
+ let z : rootsOfUnity p ℂ := ⟨u, (mem_rootsOfUnity' p u).mpr hζ.pow_eq_one⟩
618
+ refine ⟨z, ?_⟩
619
+ intro him
620
+ change ζ.im = 0 at him
621
+ have hn : ‖ζ‖ = 1 := complex_root_of_unity_norm hp0 z
622
+ have hs : ζ.re ^ 2 = 1 := by
623
+ have hh := Complex.normSq_eq_norm_sq ζ
624
+ simp only [Complex.normSq_apply, him, mul_zero, add_zero, hn, one_pow] at hh
625
+ nlinarith
626
+ have hpow : ζ ^ 2 = 1 := by
627
+ apply Complex.ext <;> simp [pow_two, him]
628
+ nlinarith
629
+ have hd := hζ.dvd_of_pow_eq_one 2 hpow
630
+ have ht := Nat.le_of_dvd (by decide : 0 < 2) hd
631
+ omega
632
+
633
+ theorem circle_exists_square_root (z : ℂ) (hz : ‖z‖ = 1) :
634
+ ∃ c : Circle, (c : ℂ) ^ 2 = z := by
635
+ obtain ⟨c, hc⟩ := IsAlgClosed.exists_pow_nat_eq z (by decide : 0 < 2)
636
+ have hn : ‖c‖ = 1 := by
637
+ have hh := congrArg norm hc
638
+ rw [norm_pow, hz] at hh
639
+ nlinarith [norm_nonneg c]
640
+ exact ⟨⟨c, mem_sphere_zero_iff_norm.mpr hn⟩, hc⟩
641
+
642
+ end EilenbergGanea
643
+
644
+ namespace EilenbergGanea
645
+ open Set Filter Topology
646
+ open scoped Quaternion ContDiff
647
+
648
+ def splitWordMap {m : ℕ} (w : Fin m → FreeGroup (Fin m))
649
+ (q : (Fin m → ℂ) × (Fin m → ℂ)) : (Fin m → ℂ) × (Fin m → ℂ) :=
650
+ quaternionTupleCoordinates (smoothRadialWordMap w (quaternionTupleCoordinates.symm q)) - (1, 0)
651
+
652
+ theorem splitWordMap_contDiff {m : ℕ} (w : Fin m → FreeGroup (Fin m)) :
653
+ ContDiff ℝ ∞ (splitWordMap w) :=
654
+ (quaternionTupleCoordinates.contDiff.comp ((smoothRadialWordMap_contDiff w).comp
655
+ quaternionTupleCoordinates.symm.contDiff)).sub contDiff_const
656
+
657
+ theorem quaternionTupleCoordinates_conjCircle {m : ℕ} (c : Circle) (q : Fin m → ℍ) :
658
+ quaternionTupleCoordinates (fun i => quaternionConjugate (circleQuaternion c) (q i)) =
659
+ ((quaternionTupleCoordinates q).1, (c : ℂ) ^ 2 • (quaternionTupleCoordinates q).2) := by
660
+ apply Prod.ext
661
+ · funext i
662
+ change (quaternionCoordinates (Quaternion.ofComplex c * q i * star (Quaternion.ofComplex c))).1 = _
663
+ have hh := congrArg Prod.fst (quaternionCoordinates_conjCircle c (q i))
664
+ exact hh
665
+ · funext i
666
+ change (quaternionCoordinates (Quaternion.ofComplex c * q i * star (Quaternion.ofComplex c))).2 = _
667
+ have hh := congrArg Prod.snd (quaternionCoordinates_conjCircle c (q i))
668
+ exact hh
669
+
670
+ theorem splitWordMap_rotation {m : ℕ} (w : Fin m → FreeGroup (Fin m))
671
+ (z : ℂ) (hz : ‖z‖ = 1) (q : (Fin m → ℂ) × (Fin m → ℂ)) :
672
+ splitWordMap w (q.1, z • q.2) = ((splitWordMap w q).1, z • (splitWordMap w q).2) := by
673
+ obtain ⟨c, hc⟩ := circle_exists_square_root z hz
674
+ let x := quaternionTupleCoordinates.symm q
675
+ have hx : quaternionTupleCoordinates x = q := quaternionTupleCoordinates.apply_symm_apply q
676
+ have heq : (q.1, z • q.2) = quaternionTupleCoordinates
677
+ (fun i => quaternionConjugate (circleQuaternion c) (x i)) := by
678
+ rw [quaternionTupleCoordinates_conjCircle, hc, hx]
679
+ have hh := congrArg (fun v : Fin m → ℍ => quaternionTupleCoordinates v)
680
+ (smoothRadialWordMap_conjugation w (circleQuaternion c) x)
681
+ rw [quaternionTupleCoordinates_conjCircle, hc] at hh
682
+ have heq' : quaternionTupleCoordinates.symm (q.1, z • q.2) =
683
+ fun i => quaternionConjugate (circleQuaternion c) (x i) := by
684
+ rw [heq, ContinuousLinearEquiv.symm_apply_apply]
685
+ unfold splitWordMap
686
+ rw [heq', hh]
687
+ change (_, z • _) - (1, 0) = ((quaternionTupleCoordinates (smoothRadialWordMap w x) - (1, 0)).1,
688
+ z • (quaternionTupleCoordinates (smoothRadialWordMap w x) - (1, 0)).2)
689
+ simp
690
+
691
+ theorem splitWordMap_fixed_eventually {m : ℕ} (w : Fin m → FreeGroup (Fin m))
692
+ (x : Fin m → ℂ) (hx : ∀ i, ‖x i‖ = 1) :
693
+ (fun z => (splitWordMap w (z, 0)).1) =ᶠ[𝓝 x]
694
+ (fun z => complexRadialTorus (exponentMatrix w) z - 1) := by
695
+ have hne (i : Fin m) : x i ≠ 0 := by intro h; simpa [h] using hx i
696
+ have hz : ∀ᶠ z in 𝓝 x, ∀ i, z i ≠ 0 := Filter.eventually_all.mpr
697
+ (fun i => (continuous_apply i).continuousAt.eventually_ne (hne i))
698
+ have hcont : Continuous (fun z : Fin m → ℂ => fun i => Quaternion.ofComplex (z i)) :=
699
+ continuous_pi (fun i => Quaternion.ofComplex.toLinearMap.continuous_of_finiteDimensional.comp
700
+ (continuous_apply i))
701
+ have he := (smoothRadialWordMap_eventuallyEq w (fun i => Quaternion.ofComplex (x i))
702
+ (fun i => (norm_quaternion_ofComplex _).trans (hx i))).comp_tendsto hcont.continuousAt
703
+ filter_upwards [hz, he] with z hz he
704
+ change smoothRadialWordMap w (fun i => Quaternion.ofComplex (z i)) =
705
+ radialWordMap w (fun i => Quaternion.ofComplex (z i)) at he
706
+ simp only [splitWordMap, quaternionTupleCoordinates_symm_fixed]
707
+ rw [he, radialWordMap_fixed w z hz, quaternionTupleCoordinates_fixed]
708
+ rfl
709
+
710
+ theorem splitWordMap_fixed_det {m : ℕ} (w : Fin m → FreeGroup (Fin m))
711
+ (x : Fin m → ℂ) (hx : ∀ i, ‖x i‖ = 1)
712
+ (hr : ∀ i, ∏ j, x j ^ exponentMatrix w i j = 1) :
713
+ (fderiv ℝ (fun z => (splitWordMap w (z, 0)).1) x).det =
714
+ ((exponentMatrix w).det : ℝ) := by
715
+ rw [(splitWordMap_fixed_eventually w x hx).fderiv_eq (𝕜 := ℝ)]
716
+ have hne (i : Fin m) : x i ≠ 0 := by intro h; simpa [h] using hx i
717
+ rw [((complexRadialTorus_differentiableAt (exponentMatrix w) x hne).hasFDerivAt.sub_const 1).fderiv]
718
+ exact complexRadialTorus_det (exponentMatrix w) x hx hr
719
+
720
+ end EilenbergGanea
721
+
722
+ namespace EilenbergGanea
723
+ open Set Filter Topology
724
+ open scoped Quaternion
725
+
726
+ theorem splitWordMap_zero_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))
727
+ (q : (Fin m → ℂ) × (Fin m → ℂ)) :
728
+ splitWordMap w q = 0 ↔
729
+ smoothRadialWordMap w (quaternionTupleCoordinates.symm q) = 1 := by
730
+ unfold splitWordMap
731
+ rw [sub_eq_zero]
732
+ have he : quaternionTupleCoordinates (1 : Fin m → ℍ) = (1, 0) := by
733
+ change quaternionTupleCoordinates (fun i : Fin m => Quaternion.ofComplex (1 : ℂ)) = _
734
+ exact quaternionTupleCoordinates_fixed 1
735
+ rw [← he]
736
+ exact quaternionTupleCoordinates.injective.eq_iff
737
+
738
+ theorem splitWordMap_fixed_zero_iff {m : ℕ} (w : Fin m → FreeGroup (Fin m))
739
+ (z : Fin m → ℂ) : splitWordMap w (z, 0) = 0 ↔
740
+ (∀ i, ‖z i‖ = 1) ∧ (∀ i, ∏ j, z j ^ exponentMatrix w i j = 1) := by
741
+ rw [splitWordMap_zero_iff, quaternionTupleCoordinates_symm_fixed,
742
+ smoothRadialWordMap_eq_one_iff]
743
+ constructor
744
+ · intro h
745
+ have hn : ∀ i, ‖z i‖ = 1 := fun i => (norm_quaternion_ofComplex (z i)).symm.trans
746
+ (((radialWordMap_eq_one_iff w _).mp h).1 i)
747
+ have hz (i : Fin m) : z i ≠ 0 := by intro h; simpa [h] using hn i
748
+ rw [radialWordMap_fixed w z hz] at h
749
+ refine ⟨hn, fun i => ?_⟩
750
+ have hh := congrArg (fun v : Fin m → ℍ => (quaternionCoordinates (v i)).1) h
751
+ change (quaternionCoordinates (Quaternion.ofComplex _)).1 = (1 : ℂ) at hh
752
+ simpa only [quaternionCoordinates_ofComplex, complexRadialTorus, hn, inv_one, one_smul] using hh
753
+ · rintro ⟨hn, hr⟩
754
+ have hz (i : Fin m) : z i ≠ 0 := by intro h; simpa [h] using hn i
755
+ rw [radialWordMap_fixed w z hz]
756
+ funext i
757
+ simp [complexRadialTorus, hn, hr]
758
+
759
+ @[simp] theorem splitWordMap_fixed_one {m : ℕ} (w : Fin m → FreeGroup (Fin m)) :
760
+ splitWordMap w (1, 0) = 0 := by
761
+ rw [splitWordMap_fixed_zero_iff]
762
+ simp
763
+
764
+ end EilenbergGanea
765
+
766
+ namespace EilenbergGanea
767
+ open Set
768
+ section Torus
769
+ variable {n : Type*} [Fintype n] [DecidableEq n]
770
+ variable {A : Type*} [CommGroup A]
771
+ theorem zpow_finite_sum {ι : Type*} (a : A) (s : Finset ι) (e : ι → ℤ) :
772
+ a ^ (∑ i ∈ s, e i) = ∏ i ∈ s, a ^ e i := by
773
+ classical
774
+ induction s using Finset.induction with
775
+ | empty => simp
776
+ | @insert i s hi ih => simp [hi, ih, zpow_add]
777
+
778
+ def torusMap (B : Matrix n n ℤ) (x : n → A) : n → A :=
779
+ fun i => ∏ j, x j ^ B i j
780
+
781
+ omit [DecidableEq n] in
782
+ theorem torusMap_comp (B C : Matrix n n ℤ) (x : n → A) :
783
+ torusMap B (torusMap C x) = torusMap (B * C) x := by
784
+ funext i
785
+ simp only [torusMap, Matrix.mul_apply, ← Finset.prod_zpow, zpow_finite_sum, ← zpow_mul]
786
+ rw [Finset.prod_comm]
787
+ congr 1
788
+ funext j
789
+ congr 1
790
+ funext k
791
+ rw [Int.mul_comm]
792
+
793
+ theorem torusMap_det_one (B : Matrix n n ℤ) (x : n → A) :
794
+ torusMap (B.det • (1 : Matrix n n ℤ)) x = fun i => x i ^ B.det := by
795
+ funext i
796
+ simp [torusMap, Matrix.one_apply]
797
+
798
+ theorem torusMap_kernel_pow_det (B : Matrix n n ℤ) (x : n → A)
799
+ (hx : torusMap B x = 1) (i : n) : x i ^ B.det = 1 := by
800
+ have he := congrArg (fun y => torusMap B.adjugate y i) hx
801
+ rw [torusMap_comp, Matrix.adjugate_mul, torusMap_det_one] at he
802
+ simpa [torusMap] using he
803
+
804
+ theorem circle_finite_pow_roots {d : ℤ} (hd : d ≠ 0) :
805
+ {z : Circle | z ^ d = 1}.Finite := by
806
+ have hr := Polynomial.finite_setOfPred_isRoot
807
+ (Polynomial.X_pow_sub_C_ne_zero (Nat.pos_of_ne_zero (Int.natAbs_ne_zero.mpr hd)) (1 : ℂ))
808
+ apply Set.Finite.of_injOn (f := fun z : Circle => (z : ℂ)) _
809
+ Subtype.val_injective.injOn hr
810
+ intro z hz
811
+ have hp : z ^ d.natAbs = 1 := pow_natAbs_eq_one.mpr hz
812
+ have he : (z : ℂ) ^ d.natAbs = 1 := by
813
+ simpa using congrArg (fun t : Circle => (t : ℂ)) hp
814
+ simpa [Polynomial.IsRoot.def] using sub_eq_zero.mpr he
815
+
816
+ theorem torusMap_finite_kernel (B : Matrix n n ℤ) (hB : B.det ≠ 0) :
817
+ {x : n → Circle | torusMap B x = 1}.Finite := by
818
+ apply Set.Finite.subset (Set.Finite.pi (fun _ : n => circle_finite_pow_roots hB))
819
+ intro x hx i _
820
+ exact torusMap_kernel_pow_det B x hx i
821
+
822
+ end Torus
823
+ end EilenbergGanea
824
+
825
+ namespace EilenbergGanea
826
+ open Set Filter Topology
827
+
828
+ theorem splitWordMap_fixed_finite {m : ℕ} (w : Fin m → FreeGroup (Fin m))
829
+ (hB : (exponentMatrix w).det ≠ 0) :
830
+ {z : Fin m → ℂ | splitWordMap w (z, 0) = 0}.Finite := by
831
+ classical
832
+ let e : (Fin m → Circle) → (Fin m → ℂ) := fun x i => (x i : ℂ)
833
+ have hf := (torusMap_finite_kernel (exponentMatrix w) hB).image e
834
+ apply hf.subset
835
+ intro z hz
836
+ obtain ⟨hn, hr⟩ := (splitWordMap_fixed_zero_iff w z).mp hz
837
+ let x : Fin m → Circle := fun i => ⟨z i, mem_sphere_zero_iff_norm.mpr (hn i)⟩
838
+ refine ⟨x, ?_, rfl⟩
839
+ funext i
840
+ apply Subtype.ext
841
+ change Circle.coeHom (∏ j, x j ^ exponentMatrix w i j) = (1 : ℂ)
842
+ rw [map_prod]
843
+ simp only [map_zpow]
844
+ exact hr i
845
+
846
+ end EilenbergGanea
847
+
848
+ namespace EilenbergGanea
849
+ open Set Filter Topology
850
+ open scoped ContDiff
851
+
852
+ /-- The signed-root noncancellation for the actual ambient quaternion word
853
+ map, with no regularity assumed of the original word map. -/
854
+ theorem word_exists_regularization_nonzero_count {m : ℕ}
855
+ (w : Fin m → FreeGroup (Fin m)) (hB : (exponentMatrix w).det ≠ 0)
856
+ (K : Set ((Fin m → ℂ) × (Fin m → ℂ))) (hK : IsCompact K)
857
+ (hKi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q ∈ K, (q.1, z • q.2) ∈ K)
858
+ (h1 : (1, 0) ∈ K)
859
+ (L : Set ((Fin m → ℂ) × (Fin m → ℂ))) (hL : IsCompact L) (hKL : K ⊆ L)
860
+ (ε : ℝ) (hε : 0 < ε) :
861
+ ∃ g : ((Fin m → ℂ) × (Fin m → ℂ)) → ((Fin m → ℂ) × (Fin m → ℂ)),
862
+ ContDiff ℝ ∞ g ∧ (∀ q ∈ L, ‖g q - splitWordMap w q‖ < ε) ∧
863
+ ∃ s : Finset ((Fin m → ℂ) × (Fin m → ℂ)),
864
+ (∀ q, q ∈ s ↔ q ∈ K ∧ g q = 0) ∧
865
+ (∀ q ∈ s, (fderiv ℝ g q).det ≠ 0) ∧
866
+ (∑ q ∈ s, (if 0 < (fderiv ℝ g q).det then 1 else -1 : ℝ)) ≠ 0 := by
867
+ classical
868
+ let S := (splitWordMap_fixed_finite w hB).toFinset
869
+ have hS (z) : z ∈ S ↔ splitWordMap w (z, 0) = 0 := (splitWordMap_fixed_finite w hB).mem_toFinset
870
+ obtain ⟨p, hpbound, hp⟩ := Nat.exists_infinite_primes (S.card + 3)
871
+ let : Fact p.Prime := ⟨hp⟩
872
+ let : NeZero p := ⟨hp.ne_zero⟩
873
+ let : Fintype (rootsOfUnity p ℂ) := Fintype.ofFinite _
874
+ obtain ⟨a₀, ha₀⟩ := rootsOfUnity_exists_nonreal (p := p) (by omega)
875
+ let χ : rootsOfUnity p ℂ →* ℂˣ := (rootsOfUnity p ℂ).subtype
876
+ apply exists_regularization_nonzero_count (rootsOfUnity_isPGroup (p := p)) χ
877
+ Subtype.val_injective a₀ ha₀ (splitWordMap w) (splitWordMap_contDiff w)
878
+ (fun a q => splitWordMap_rotation w (χ a : ℂ) (complex_root_of_unity_norm hp.ne_zero a) q)
879
+ K hK (fun a q hq => hKi (χ a : ℂ) (complex_root_of_unity_norm hp.ne_zero a) q hq)
880
+ L hL hKL S (fun z _ hz => (hS z).mpr hz) ⟨1, h1, splitWordMap_fixed_one w⟩ (by omega)
881
+ ((exponentMatrix w).det : ℝ) (by exact_mod_cast hB) _ ε hε
882
+ intro z hz
883
+ obtain ⟨hn, hr⟩ := (splitWordMap_fixed_zero_iff w z).mp ((hS z).mp hz)
884
+ exact splitWordMap_fixed_det w z hn hr
885
+
886
+ end EilenbergGanea
887
+
888
+ end
889
+
890
+ end OAI
lean/OAI/Topology/EilenbergGanea/WordEquations.lean CHANGED
@@ -1,388 +1,388 @@
1
- import OAI.Topology.EilenbergGanea.IntegralDegree
2
- import OAI.Topology.EilenbergGanea.UnitaryWords
3
-
4
- namespace OAI
5
-
6
- noncomputable section
7
-
8
- open Classical Set Filter Topology MeasureTheory
9
- open scoped Quaternion ContDiff
10
-
11
- namespace EilenbergGanea
12
- open Set Filter Topology
13
- open scoped ContDiff
14
-
15
- /-- A concrete sublevel version of localized degree. The only root isolation
16
- conditions are a uniform radial bound and exclusion of the threshold; no
17
- regularity of any root or of the sublevel boundary is assumed. -/
18
- theorem localized_word_root_sublevel {m : ℕ}
19
- (w : Fin m → FreeGroup (Fin m)) (hB : (exponentMatrix w).det ≠ 0)
20
- (F : ℝ × ((Fin m → ℂ) × (Fin m → ℂ)) → ((Fin m → ℂ) × (Fin m → ℂ)))
21
- (hF : ContDiff ℝ 2 F) (hF0 : ∀ q, F (0, q) = splitWordMap w q)
22
- (h : ℝ × ((Fin m → ℂ) × (Fin m → ℂ)) → ℝ) (hh : Continuous h)
23
- (δ R : ℝ) (hR : ‖((1 : Fin m → ℂ), (0 : Fin m → ℂ))‖ < R)
24
- (h1 : h (0, (1, 0)) < δ)
25
- (hi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q, h (0, (q.1, z • q.2)) = h (0, q))
26
- (hbound : ∀ q, q.1 ∈ Icc (0 : ℝ) 1 → F q = 0 → ‖q.2‖ < R)
27
- (hiso : ∀ q, q.1 ∈ Icc (0 : ℝ) 1 → F q = 0 → h q ≠ δ) :
28
- ∃ x, F (1, x) = 0 ∧ h (1, x) < δ := by
29
- let E := (Fin m → ℂ) × (Fin m → ℂ)
30
- let C : Set (ℝ × E) := {q | ‖q.2‖ < R ∧ h q < δ}
31
- have hC : IsOpen C := (isOpen_lt continuous_snd.norm continuous_const).inter
32
- (isOpen_lt hh continuous_const)
33
- have hcl : closure C ⊆ {q | ‖q.2‖ ≤ R ∧ h q ≤ δ} :=
34
- closure_minimal (fun _ hq => ⟨hq.1.le, hq.2.le⟩)
35
- ((isClosed_le continuous_snd.norm continuous_const).inter (isClosed_le hh continuous_const))
36
- have hslice (t : ℝ) : Bornology.IsBounded {x : E | (t, x) ∈ C} := by
37
- apply (Metric.isBounded_closedBall (x := (0 : E)) (r := R)).subset
38
- intro x hx
39
- exact Metric.mem_closedBall.mpr (by simpa only [dist_zero_right] using hx.1.le)
40
- have hBcompact : IsCompact {q : ℝ × E | q ∈ frontier C ∧ q.1 ∈ Icc (0 : ℝ) 1} := by
41
- apply (isCompact_Icc.prod (isCompact_closedBall (0 : E) R)).of_isClosed_subset
42
- (isClosed_frontier.inter (isClosed_Icc.preimage continuous_fst))
43
- intro q hq
44
- refine ⟨hq.2, ?_⟩
45
- exact Metric.mem_closedBall.mpr (by simpa only [dist_zero_right] using (hcl (frontier_subset_closure hq.1)).1)
46
- have hCb : Bornology.IsBounded {x : E | ∃ t ∈ Icc (0 : ℝ) 1, (t, x) ∈ C} := by
47
- apply (Metric.isBounded_closedBall (x := (0 : E)) (r := R)).subset
48
- rintro x ⟨t, _, hx⟩
49
- exact Metric.mem_closedBall.mpr (by simpa only [dist_zero_right] using hx.1.le)
50
- have hUi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q ∈ closure {x : E | (0, x) ∈ C},
51
- (q.1, z • q.2) ∈ closure {x : E | (0, x) ∈ C} := by
52
- intro z hz
53
- have hmaps : MapsTo (fun q : E => (q.1, z • q.2)) {x | (0, x) ∈ C} {x | (0, x) ∈ C} := by
54
- intro q hq
55
- refine ⟨?_, ?_⟩
56
- · have hn : ‖(q.1, z • q.2)‖ = ‖q‖ := by
57
- change max ‖q.1‖ ‖z • q.2‖ = max ‖q.1‖ ‖q.2‖
58
- rw [norm_smul, hz, one_mul]
59
- simpa only [hn] using hq.1
60
- · simpa only [hi z hz q] using hq.2
61
- have hr : Continuous (fun q : E => (q.1, z • q.2)) := by fun_prop
62
- exact hmaps.closure_of_continuousOn hr.continuousOn
63
- have hb : ∀ q ∈ frontier C, q.1 ∈ Icc (0 : ℝ) 1 → F q ≠ 0 := by
64
- intro q hq ht hf
65
- have hhδ : h q < δ := lt_of_le_of_ne (hcl (frontier_subset_closure hq)).2 (hiso q ht hf)
66
- have hqC : q ∈ C := ⟨hbound q ht hf, hhδ⟩
67
- exact hq.2 (by simpa only [hC.interior_eq] using hqC)
68
- obtain ⟨x, hx, he⟩ := localized_word_root_persists_moving w hB F hF hF0 C hC
69
- (hslice 0).isCompact_closure (hslice 1).isCompact_closure hBcompact hCb hUi ⟨hR, h1⟩ hb
70
- exact ⟨x, he, hx.2⟩
71
- end EilenbergGanea
72
- namespace EilenbergGanea
73
- open Set Filter Topology
74
- open scoped Quaternion ContDiff
75
-
76
- /-- Word evaluation with a fixed alphabet of coefficient letters and a finite
77
- alphabet of unknowns. Coefficients may vary smoothly with a real parameter. -/
78
- def coefficientWordMap {ι : Type*} {m d : ℕ}
79
- (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
80
- (q : ℝ × (Fin m → SU2)) : Fin d → SU2 :=
81
- fun i => FreeGroup.lift (Sum.elim (a q.1) q.2) (w i)
82
-
83
- def eraseCoefficients {ι : Type*} {m : ℕ} : FreeGroup (ι ⊕ Fin m) →* FreeGroup (Fin m) :=
84
- FreeGroup.lift (Sum.elim (fun _ => 1) FreeGroup.of)
85
-
86
- theorem coefficientWordMap_initial {ι : Type*} {m d : ℕ}
87
- (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
88
- (ha : ∀ i, a 0 i = 1) (x : Fin m → SU2) :
89
- coefficientWordMap w a (0, x) = fun i => FreeGroup.lift x (eraseCoefficients (w i)) := by
90
- have he : FreeGroup.lift (Sum.elim (a 0) x) = (FreeGroup.lift x).comp eraseCoefficients := by
91
- apply FreeGroup.ext_hom
92
- intro i
93
- cases i with
94
- | inl i => simp [eraseCoefficients, ha]
95
- | inr i => simp [eraseCoefficients]
96
- funext i
97
- exact congrArg (fun f : FreeGroup (ι ⊕ Fin m) →* SU2 => f (w i)) he
98
-
99
- /-- The same conjugation-invariant radial cutoff handles arbitrary coefficient
100
- words, and does not create roots on the coordinate hyperplanes. -/
101
- theorem radialCutoff_family_smooth {m : ℕ} {V : Type*}
102
- [NormedAddCommGroup V] [NormedSpace ℝ V]
103
- (f : ℝ × (Fin m → ℍ) → V)
104
- (hf : ∀ q, (∀ i, q.2 i ≠ 0) → ContDiffAt ℝ ∞ f q) :
105
- ContDiff ℝ ∞ (fun q => radialCutoff q.2 • f q) := by
106
- rw [contDiff_iff_contDiffAt]
107
- intro q
108
- by_cases hq : ∀ i, q.2 i ≠ 0
109
- · exact (radialCutoff_contDiff.comp contDiff_snd).contDiffAt.smul (hf q hq)
110
- · push Not at hq
111
- obtain ⟨i, hi⟩ := hq
112
- apply (contDiffAt_const : ContDiffAt ℝ ∞ (fun _ : ℝ × (Fin m → ℍ) => (0 : V)) q).congr_of_eventuallyEq
113
- have he : ∀ᶠ p in 𝓝 q, radialCutoff p.2 = 0 :=
114
- continuous_snd.continuousAt (radialCutoff_eventually_zero q.2 i hi)
115
- filter_upwards [he] with p hp
116
- simp only [hp, zero_smul]
117
-
118
- theorem coefficientWordMap_normalized_smoothAt {ι : Type*} {m d : ℕ}
119
- (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
120
- (ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ)))
121
- (q : ℝ × (Fin m → ℍ)) (hq : ∀ i, q.2 i ≠ 0) :
122
- ContDiffAt ℝ ∞ (fun p : ℝ × (Fin m → ℍ) =>
123
- fun i => (coefficientWordMap w a (p.1, fun j => normalizeQuaternion (p.2 j)) i : ℍ)) q := by
124
- apply contDiffAt_pi.mpr
125
- intro i
126
- refine freeGroup_lift_coe_contDiffAt (w i) q
127
- (fun parameter => Sum.elim (a parameter.1)
128
- (fun index => normalizeQuaternion (parameter.2 index))) ?_
129
- intro j
130
- cases j with
131
- | inl j => exact ((ha j).comp contDiff_fst).contDiffAt
132
- | inr j =>
133
- change ContDiffAt ℝ ∞ (fun p : ℝ × (Fin m → ℍ) => (normalizeQuaternion (p.2 j) : ℍ)) q
134
- exact (normalizeQuaternion_coe_contDiffAt (hq j)).comp (f := fun p : ℝ × (Fin m → ℍ) => p.2 j) q
135
- ((contDiff_apply ℝ ℍ j).comp contDiff_snd).contDiffAt
136
-
137
- def radialCoefficientWordMap {ι : Type*} {m : ℕ}
138
- (w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
139
- (q : ℝ × (Fin m → ℍ)) : Fin m → ℍ :=
140
- fun i => ‖q.2 i‖ • (coefficientWordMap w a (q.1, fun j => normalizeQuaternion (q.2 j)) i : ℍ)
141
-
142
- def smoothRadialCoefficientWordMap {ι : Type*} {m : ℕ}
143
- (w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
144
- (q : ℝ × (Fin m → ℍ)) : Fin m → ℍ :=
145
- radialCutoff q.2 • radialCoefficientWordMap w a q
146
-
147
- theorem smoothRadialCoefficientWordMap_smooth {ι : Type*} {m : ℕ}
148
- (w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
149
- (ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ))) :
150
- ContDiff ℝ ∞ (smoothRadialCoefficientWordMap w a) := by
151
- apply radialCutoff_family_smooth
152
- intro q hq
153
- apply contDiffAt_pi.mpr
154
- intro i
155
- exact (((contDiff_apply ℝ ℍ i).comp contDiff_snd).contDiffAt.norm ℝ (hq i)).smul
156
- ((contDiffAt_pi.mp (coefficientWordMap_normalized_smoothAt w a ha q hq)) i)
157
-
158
- @[simp] theorem radialCoefficientWordMap_norm {ι : Type*} {m : ℕ}
159
- (w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
160
- (q : ℝ × (Fin m → ℍ)) (i : Fin m) :
161
- ‖radialCoefficientWordMap w a q i‖ = ‖q.2 i‖ := by
162
- have h := (quaternion_mem_unitary_iff _).mp
163
- (coefficientWordMap w a (q.1, fun j => normalizeQuaternion (q.2 j)) i).property
164
- simp [radialCoefficientWordMap, norm_smul, h]
165
-
166
- theorem radialCoefficientWordMap_eq_one_iff {ι : Type*} {m : ℕ}
167
- (w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
168
- (q : ℝ × (Fin m → ℍ)) : radialCoefficientWordMap w a q = 1 ↔
169
- (∀ i, ‖q.2 i‖ = 1) ∧ coefficientWordMap w a
170
- (q.1, fun j => normalizeQuaternion (q.2 j)) = 1 := by
171
- constructor
172
- · intro h
173
- have hn (i : Fin m) : ‖q.2 i‖ = 1 := by
174
- have he := congrArg (fun y : Fin m → ℍ => ‖y i‖) h
175
- simpa only [radialCoefficientWordMap_norm, Pi.one_apply, norm_one] using he
176
- refine ⟨hn, ?_⟩
177
- funext i
178
- apply Subtype.ext
179
- have he := congrFun h i
180
- simpa [radialCoefficientWordMap, hn] using he
181
- · rintro ⟨hn, hw⟩
182
- funext i
183
- simp [radialCoefficientWordMap, hn, hw]
184
-
185
- theorem smoothRadialCoefficientWordMap_eq_one_iff {ι : Type*} {m : ℕ}
186
- (w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
187
- (q : ℝ × (Fin m → ℍ)) : smoothRadialCoefficientWordMap w a q = 1 ↔
188
- (∀ i, ‖q.2 i‖ = 1) ∧ coefficientWordMap w a
189
- (q.1, fun j => normalizeQuaternion (q.2 j)) = 1 := by
190
- rw [← radialCoefficientWordMap_eq_one_iff]
191
- constructor
192
- · intro h
193
- have hn (i : Fin m) : radialCutoff q.2 * ‖q.2 i‖ = 1 := by
194
- have he := congrArg (fun y : Fin m → ℍ => ‖y i‖) h
195
- simpa only [smoothRadialCoefficientWordMap, Pi.smul_apply, norm_smul, Real.norm_eq_abs,
196
- abs_of_nonneg (radialCutoff_nonneg q.2), radialCoefficientWordMap_norm, Pi.one_apply, norm_one] using he
197
- have hlarge (i : Fin m) : 1 ≤ ‖q.2 i‖ := by
198
- have hle := mul_le_mul_of_nonneg_right (radialCutoff_le_one q.2) (norm_nonneg (q.2 i))
199
- rw [hn i, one_mul] at hle
200
- exact hle
201
- simpa only [smoothRadialCoefficientWordMap, radialCutoff_eq_one q.2 hlarge, one_smul] using h
202
- · intro h
203
- have hn := (radialCoefficientWordMap_eq_one_iff w a q).mp h
204
- simp only [smoothRadialCoefficientWordMap, radialCutoff_eq_one q.2 (fun i => (hn.1 i).ge), one_smul, h]
205
-
206
- theorem smoothRadialCoefficientWordMap_initial {ι : Type*} {m : ℕ}
207
- (w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
208
- (ha : ∀ i, a 0 i = 1) (x : Fin m → ℍ) :
209
- smoothRadialCoefficientWordMap w a (0, x) =
210
- smoothRadialWordMap (fun i => eraseCoefficients (w i)) x := by
211
- unfold smoothRadialCoefficientWordMap smoothRadialWordMap
212
- congr 1
213
- funext i
214
- dsimp only [radialCoefficientWordMap, radialWordMap]
215
- rw [coefficientWordMap_initial w a ha]
216
- rfl
217
- end EilenbergGanea
218
-
219
- namespace EilenbergGanea
220
- open Set Filter Topology
221
- open scoped Quaternion ContDiff
222
-
223
- def cutoffCoefficientProducts {ι : Type*} {m d : ℕ}
224
- (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
225
- (q : ℝ × (Fin m → ℍ)) : Fin d → ℍ :=
226
- radialCutoff q.2 • fun i =>
227
- (coefficientWordMap w a (q.1, fun j => normalizeQuaternion (q.2 j)) i : ℍ)
228
-
229
- theorem cutoffCoefficientProducts_smooth {ι : Type*} {m d : ℕ}
230
- (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
231
- (ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ))) :
232
- ContDiff ℝ ∞ (cutoffCoefficientProducts w a) :=
233
- radialCutoff_family_smooth _ (coefficientWordMap_normalized_smoothAt w a ha)
234
-
235
- theorem cutoffCoefficientProducts_unitary {ι : Type*} {m d : ℕ}
236
- (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
237
- (t : ℝ) (x : Fin m → SU2) :
238
- cutoffCoefficientProducts w a (t, fun i => (x i : ℍ)) =
239
- fun i => (coefficientWordMap w a (t, x) i : ℍ) := by
240
- have hn (i : Fin m) : ‖(x i : ℍ)‖ = 1 := (quaternion_mem_unitary_iff _).mp (x i).property
241
- simp only [cutoffCoefficientProducts, radialCutoff_eq_one _ (fun i => (hn i).ge), one_smul,
242
- normalizeQuaternion_unitary]
243
- end EilenbergGanea
244
-
245
- namespace EilenbergGanea
246
- open Set Filter Topology
247
- open scoped Quaternion ContDiff
248
-
249
- theorem quaternionConjugate_sub (a : SU2) (q r : ℍ) :
250
- quaternionConjugate a (q - r) = quaternionConjugate a q - quaternionConjugate a r := by
251
- simp only [quaternionConjugate, mul_sub, sub_mul]
252
-
253
- theorem coefficientWordMap_initial_conjugate {ι : Type*} {m d : ℕ}
254
- (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
255
- (ha : ∀ i, a 0 i = 1) (b : SU2) (x : Fin m → SU2) :
256
- coefficientWordMap w a (0, fun i => b * x i * b⁻¹) =
257
- fun i => b * coefficientWordMap w a (0, x) i * b⁻¹ := by
258
- rw [coefficientWordMap_initial w a ha, coefficientWordMap_initial w a ha]
259
- have he : FreeGroup.lift (fun i => b * x i * b⁻¹) =
260
- (MulAut.conj b).toMonoidHom.comp (FreeGroup.lift x) := by
261
- apply FreeGroup.ext_hom
262
- intro i
263
- simp
264
- funext i
265
- rw [he]
266
- rfl
267
-
268
- theorem cutoffCoefficientProducts_initial_conjugate {ι : Type*} {m d : ℕ}
269
- (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
270
- (ha : ∀ i, a 0 i = 1) (b : SU2) (x : Fin m → ℍ) :
271
- cutoffCoefficientProducts w a (0, fun i => quaternionConjugate b (x i)) =
272
- fun i => quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i) := by
273
- funext i
274
- simp only [cutoffCoefficientProducts, radialCutoff, quaternionConjugate_norm,
275
- normalizeQuaternion_conjugate, coefficientWordMap_initial_conjugate w a ha,
276
- Pi.smul_apply, quaternionConjugate_smul, quaternionConjugate_coe]
277
-
278
- theorem cutoffCoefficientProducts_initial_size_invariant {ι : Type*} {m d : ℕ}
279
- (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
280
- (ha : ∀ i, a 0 i = 1) (b : SU2) (x : Fin m → ℍ) :
281
- ‖cutoffCoefficientProducts w a (0, fun i => quaternionConjugate b (x i)) - 1‖ =
282
- ‖cutoffCoefficientProducts w a (0, x) - 1‖ := by
283
- rw [cutoffCoefficientProducts_initial_conjugate w a ha]
284
- have hn (i : Fin d) : ‖quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i) - 1‖ =
285
- ‖cutoffCoefficientProducts w a (0, x) i - 1‖ := by
286
- calc
287
- _ = ‖quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i - 1)‖ := by rw [quaternionConjugate_sub, quaternionConjugate_one]
288
- _ = _ := quaternionConjugate_norm _ _
289
- have hnn (i : Fin d) : ‖quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i) - 1‖₊ =
290
- ‖cutoffCoefficientProducts w a (0, x) i - 1‖₊ := NNReal.eq (hn i)
291
- simp only [Pi.norm_def, Pi.sub_apply, Pi.one_apply, hnn]
292
-
293
- /-- Finite-word-system solvability with an actual distinguished-word sublevel
294
- isolator. Arbitrarily singular initial word roots are allowed. -/
295
- theorem coefficient_word_sublevel_solvable {ι : Type*} {m d : ℕ}
296
- (w : Fin m → FreeGroup (ι ⊕ Fin m)) (ρ : Fin d → FreeGroup (ι ⊕ Fin m))
297
- (a : ℝ → ι → SU2) (ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ)))
298
- (ha0 : ∀ i, a 0 i = 1)
299
- (hB : (exponentMatrix (fun i => eraseCoefficients (w i))).det ≠ 0)
300
- (δ : ℝ) (hδ : 0 < δ)
301
- (hiso : ∀ t ∈ Icc (0 : ℝ) 1, ∀ x : Fin m → SU2,
302
- coefficientWordMap w a (t, x) = 1 →
303
- ‖(fun i => (coefficientWordMap ρ a (t, x) i : ℍ)) - 1‖ ≠ δ) :
304
- ∃ x : Fin m → SU2, coefficientWordMap w a (1, x) = 1 ∧
305
- ‖(fun i => (coefficientWordMap ρ a (1, x) i : ℍ)) - 1‖ < δ := by
306
- let E := (Fin m → ℂ) × (Fin m → ℂ)
307
- let e : (Fin m → ℍ) ≃L[ℝ] E := quaternionTupleCoordinates
308
- let H : ℝ × E → ℝ × (Fin m → ℍ) := fun q => (q.1, e.symm q.2)
309
- have hH : ContDiff ℝ ∞ H := contDiff_fst.prodMk (e.symm.contDiff.comp contDiff_snd)
310
- let F : ℝ × E → E := fun q => e (smoothRadialCoefficientWordMap w a (H q)) - (1, 0)
311
- let h : ℝ × E → ℝ := fun q => ‖cutoffCoefficientProducts ρ a (H q) - 1‖
312
- have hF : ContDiff ℝ 2 F := contDiff_infty.mp
313
- ((e.contDiff.comp ((smoothRadialCoefficientWordMap_smooth w a ha).comp hH)).sub contDiff_const) 2
314
- have hF0 : ∀ q, F (0, q) = splitWordMap (fun i => eraseCoefficients (w i)) q := by
315
- intro q
316
- dsimp only [F, H]
317
- rw [smoothRadialCoefficientWordMap_initial w a ha0]
318
- rfl
319
- have hh : Continuous h := (((cutoffCoefficientProducts_smooth ρ a ha).comp hH).continuous.sub continuous_const).norm
320
- have he1 : e (1 : Fin m → ℍ) = (1, 0) := by
321
- change quaternionTupleCoordinates
322
- (fun _ : Fin m => Quaternion.ofComplex (1 : ℂ)) = _
323
- exact quaternionTupleCoordinates_fixed 1
324
- have hroot (q : ℝ × E) (hq : F q = 0) :
325
- (∀ i, ‖e.symm q.2 i‖ = 1) ∧
326
- coefficientWordMap w a (q.1, fun i => normalizeQuaternion (e.symm q.2 i)) = 1 := by
327
- apply (smoothRadialCoefficientWordMap_eq_one_iff w a (H q)).mp
328
- apply e.injective
329
- rw [he1]
330
- exact sub_eq_zero.mp hq
331
- have hnorm (q : ℝ × E) (hq : F q = 0) : ‖q.2‖ ≤ ‖e.toContinuousLinearMap‖ := by
332
- have hle : ‖e.symm q.2‖ ≤ 1 := (pi_norm_le_iff_of_nonneg (by positivity)).mpr
333
- (fun i => (hroot q hq).1 i |>.le)
334
- calc
335
- ‖q.2‖ = ‖e (e.symm q.2)‖ := by rw [e.apply_symm_apply]
336
- _ ≤ ‖e.toContinuousLinearMap‖ * ‖e.symm q.2‖ := e.toContinuousLinearMap.le_opNorm _
337
- _ ≤ ‖e.toContinuousLinearMap‖ := mul_le_of_le_one_right (norm_nonneg e.toContinuousLinearMap) hle
338
- have hunit (q : ℝ × E) (hq : F q = 0) :
339
- (fun i => ((normalizeQuaternion (e.symm q.2 i) : SU2) : ℍ)) = e.symm q.2 := by
340
- funext i
341
- have hn := (hroot q hq).1 i
342
- rw [normalizeQuaternion_coe_of_ne_zero (by intro hz; simp [hz] at hn), hn, inv_one, one_smul]
343
- have hsizeroot (q : ℝ × E) (hq : F q = 0) :
344
- h q = ‖(fun i => (coefficientWordMap ρ a
345
- (q.1, fun j => normalizeQuaternion (e.symm q.2 j)) i : ℍ)) - 1‖ := by
346
- dsimp only [h, H]
347
- conv_lhs => rw [← hunit q hq, cutoffCoefficientProducts_unitary]
348
- have hi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q : E, h (0, (q.1, z • q.2)) = h (0, q) := by
349
- intro z hz q
350
- obtain ⟨c, hc⟩ := circle_exists_square_root z hz
351
- have heq : e.symm (q.1, z • q.2) =
352
- fun i => quaternionConjugate (circleQuaternion c) (e.symm q i) := by
353
- apply e.injective
354
- rw [e.apply_symm_apply, quaternionTupleCoordinates_conjCircle, hc, e.apply_symm_apply]
355
- dsimp only [h, H]
356
- rw [heq]
357
- exact cutoffCoefficientProducts_initial_size_invariant ρ a ha0 _ _
358
- have h1 : h (0, (1, 0)) < δ := by
359
- have he : e.symm (1, 0) = 1 := by rw [← he1, e.symm_apply_apply]
360
- have hp : coefficientWordMap ρ a (0, (1 : Fin m → SU2)) = 1 := by
361
- rw [coefficientWordMap_initial ρ a ha0]
362
- have hl : FreeGroup.lift (1 : Fin m → SU2) = 1 := by
363
- apply FreeGroup.ext_hom
364
- intro i
365
- simp
366
- funext i
367
- rw [hl]
368
- rfl
369
- dsimp only [h, H]
370
- rw [he]
371
- have hco : (1 : Fin m → ℍ) = fun i => ((1 : Fin m → SU2) i : ℍ) := rfl
372
- rw [hco, cutoffCoefficientProducts_unitary, hp]
373
- change ‖(1 : Fin d → ℍ) - 1‖ < δ
374
- simpa only [sub_self, norm_zero] using hδ
375
- let R : ℝ := ‖e.toContinuousLinearMap‖ + ‖((1 : Fin m → ℂ), (0 : Fin m → ℂ))‖ + 1
376
- obtain ⟨q, hq, hhq⟩ := localized_word_root_sublevel
377
- (fun i => eraseCoefficients (w i)) hB F hF hF0 h hh δ R
378
- (by dsimp only [R]; have hn := norm_nonneg e.toContinuousLinearMap; linarith) h1 hi
379
- (fun q _ hq => by dsimp only [R]; have hn := hnorm q hq; have hp := norm_nonneg ((1 : Fin m → ℂ), (0 : Fin m → ℂ)); linarith)
380
- (fun q ht hq => by rw [hsizeroot q hq]; exact hiso q.1 ht _ (hroot q hq).2)
381
- refine ⟨fun i => normalizeQuaternion (e.symm q i), (hroot (1, q) hq).2, ?_⟩
382
- simpa only [hsizeroot (1, q) hq] using hhq
383
- end EilenbergGanea
384
-
385
-
386
- end
387
-
388
- end OAI
 
1
+ import OAI.Topology.EilenbergGanea.IntegralDegree
2
+ import OAI.Topology.EilenbergGanea.UnitaryWords
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+
8
+ open Classical Set Filter Topology MeasureTheory
9
+ open scoped Quaternion ContDiff
10
+
11
+ namespace EilenbergGanea
12
+ open Set Filter Topology
13
+ open scoped ContDiff
14
+
15
+ /-- A concrete sublevel version of localized degree. The only root isolation
16
+ conditions are a uniform radial bound and exclusion of the threshold; no
17
+ regularity of any root or of the sublevel boundary is assumed. -/
18
+ theorem localized_word_root_sublevel {m : ℕ}
19
+ (w : Fin m → FreeGroup (Fin m)) (hB : (exponentMatrix w).det ≠ 0)
20
+ (F : ℝ × ((Fin m → ℂ) × (Fin m → ℂ)) → ((Fin m → ℂ) × (Fin m → ℂ)))
21
+ (hF : ContDiff ℝ 2 F) (hF0 : ∀ q, F (0, q) = splitWordMap w q)
22
+ (h : ℝ × ((Fin m → ℂ) × (Fin m → ℂ)) → ℝ) (hh : Continuous h)
23
+ (δ R : ℝ) (hR : ‖((1 : Fin m → ℂ), (0 : Fin m → ℂ))‖ < R)
24
+ (h1 : h (0, (1, 0)) < δ)
25
+ (hi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q, h (0, (q.1, z • q.2)) = h (0, q))
26
+ (hbound : ∀ q, q.1 ∈ Icc (0 : ℝ) 1 → F q = 0 → ‖q.2‖ < R)
27
+ (hiso : ∀ q, q.1 ∈ Icc (0 : ℝ) 1 → F q = 0 → h q ≠ δ) :
28
+ ∃ x, F (1, x) = 0 ∧ h (1, x) < δ := by
29
+ let E := (Fin m → ℂ) × (Fin m → ℂ)
30
+ let C : Set (ℝ × E) := {q | ‖q.2‖ < R ∧ h q < δ}
31
+ have hC : IsOpen C := (isOpen_lt continuous_snd.norm continuous_const).inter
32
+ (isOpen_lt hh continuous_const)
33
+ have hcl : closure C ⊆ {q | ‖q.2‖ ≤ R ∧ h q ≤ δ} :=
34
+ closure_minimal (fun _ hq => ⟨hq.1.le, hq.2.le⟩)
35
+ ((isClosed_le continuous_snd.norm continuous_const).inter (isClosed_le hh continuous_const))
36
+ have hslice (t : ℝ) : Bornology.IsBounded {x : E | (t, x) ∈ C} := by
37
+ apply (Metric.isBounded_closedBall (x := (0 : E)) (r := R)).subset
38
+ intro x hx
39
+ exact Metric.mem_closedBall.mpr (by simpa only [dist_zero_right] using hx.1.le)
40
+ have hBcompact : IsCompact {q : ℝ × E | q ∈ frontier C ∧ q.1 ∈ Icc (0 : ℝ) 1} := by
41
+ apply (isCompact_Icc.prod (isCompact_closedBall (0 : E) R)).of_isClosed_subset
42
+ (isClosed_frontier.inter (isClosed_Icc.preimage continuous_fst))
43
+ intro q hq
44
+ refine ⟨hq.2, ?_⟩
45
+ exact Metric.mem_closedBall.mpr (by simpa only [dist_zero_right] using (hcl (frontier_subset_closure hq.1)).1)
46
+ have hCb : Bornology.IsBounded {x : E | ∃ t ∈ Icc (0 : ℝ) 1, (t, x) ∈ C} := by
47
+ apply (Metric.isBounded_closedBall (x := (0 : E)) (r := R)).subset
48
+ rintro x ⟨t, _, hx⟩
49
+ exact Metric.mem_closedBall.mpr (by simpa only [dist_zero_right] using hx.1.le)
50
+ have hUi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q ∈ closure {x : E | (0, x) ∈ C},
51
+ (q.1, z • q.2) ∈ closure {x : E | (0, x) ∈ C} := by
52
+ intro z hz
53
+ have hmaps : MapsTo (fun q : E => (q.1, z • q.2)) {x | (0, x) ∈ C} {x | (0, x) ∈ C} := by
54
+ intro q hq
55
+ refine ⟨?_, ?_⟩
56
+ · have hn : ‖(q.1, z • q.2)‖ = ‖q‖ := by
57
+ change max ‖q.1‖ ‖z • q.2‖ = max ‖q.1‖ ‖q.2‖
58
+ rw [norm_smul, hz, one_mul]
59
+ simpa only [hn] using hq.1
60
+ · simpa only [hi z hz q] using hq.2
61
+ have hr : Continuous (fun q : E => (q.1, z • q.2)) := by fun_prop
62
+ exact hmaps.closure_of_continuousOn hr.continuousOn
63
+ have hb : ∀ q ∈ frontier C, q.1 ∈ Icc (0 : ℝ) 1 → F q ≠ 0 := by
64
+ intro q hq ht hf
65
+ have hhδ : h q < δ := lt_of_le_of_ne (hcl (frontier_subset_closure hq)).2 (hiso q ht hf)
66
+ have hqC : q ∈ C := ⟨hbound q ht hf, hhδ⟩
67
+ exact hq.2 (by simpa only [hC.interior_eq] using hqC)
68
+ obtain ⟨x, hx, he⟩ := localized_word_root_persists_moving w hB F hF hF0 C hC
69
+ (hslice 0).isCompact_closure (hslice 1).isCompact_closure hBcompact hCb hUi ⟨hR, h1⟩ hb
70
+ exact ⟨x, he, hx.2⟩
71
+ end EilenbergGanea
72
+ namespace EilenbergGanea
73
+ open Set Filter Topology
74
+ open scoped Quaternion ContDiff
75
+
76
+ /-- Word evaluation with a fixed alphabet of coefficient letters and a finite
77
+ alphabet of unknowns. Coefficients may vary smoothly with a real parameter. -/
78
+ def coefficientWordMap {ι : Type*} {m d : ℕ}
79
+ (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
80
+ (q : ℝ × (Fin m → SU2)) : Fin d → SU2 :=
81
+ fun i => FreeGroup.lift (Sum.elim (a q.1) q.2) (w i)
82
+
83
+ def eraseCoefficients {ι : Type*} {m : ℕ} : FreeGroup (ι ⊕ Fin m) →* FreeGroup (Fin m) :=
84
+ FreeGroup.lift (Sum.elim (fun _ => 1) FreeGroup.of)
85
+
86
+ theorem coefficientWordMap_initial {ι : Type*} {m d : ℕ}
87
+ (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
88
+ (ha : ∀ i, a 0 i = 1) (x : Fin m → SU2) :
89
+ coefficientWordMap w a (0, x) = fun i => FreeGroup.lift x (eraseCoefficients (w i)) := by
90
+ have he : FreeGroup.lift (Sum.elim (a 0) x) = (FreeGroup.lift x).comp eraseCoefficients := by
91
+ apply FreeGroup.ext_hom
92
+ intro i
93
+ cases i with
94
+ | inl i => simp [eraseCoefficients, ha]
95
+ | inr i => simp [eraseCoefficients]
96
+ funext i
97
+ exact congrArg (fun f : FreeGroup (ι ⊕ Fin m) →* SU2 => f (w i)) he
98
+
99
+ /-- The same conjugation-invariant radial cutoff handles arbitrary coefficient
100
+ words, and does not create roots on the coordinate hyperplanes. -/
101
+ theorem radialCutoff_family_smooth {m : ℕ} {V : Type*}
102
+ [NormedAddCommGroup V] [NormedSpace ℝ V]
103
+ (f : ℝ × (Fin m → ℍ) → V)
104
+ (hf : ∀ q, (∀ i, q.2 i ≠ 0) → ContDiffAt ℝ ∞ f q) :
105
+ ContDiff ℝ ∞ (fun q => radialCutoff q.2 • f q) := by
106
+ rw [contDiff_iff_contDiffAt]
107
+ intro q
108
+ by_cases hq : ∀ i, q.2 i ≠ 0
109
+ · exact (radialCutoff_contDiff.comp contDiff_snd).contDiffAt.smul (hf q hq)
110
+ · push Not at hq
111
+ obtain ⟨i, hi⟩ := hq
112
+ apply (contDiffAt_const : ContDiffAt ℝ ∞ (fun _ : ℝ × (Fin m → ℍ) => (0 : V)) q).congr_of_eventuallyEq
113
+ have he : ∀ᶠ p in 𝓝 q, radialCutoff p.2 = 0 :=
114
+ continuous_snd.continuousAt (radialCutoff_eventually_zero q.2 i hi)
115
+ filter_upwards [he] with p hp
116
+ simp only [hp, zero_smul]
117
+
118
+ theorem coefficientWordMap_normalized_smoothAt {ι : Type*} {m d : ℕ}
119
+ (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
120
+ (ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ)))
121
+ (q : ℝ × (Fin m → ℍ)) (hq : ∀ i, q.2 i ≠ 0) :
122
+ ContDiffAt ℝ ∞ (fun p : ℝ × (Fin m → ℍ) =>
123
+ fun i => (coefficientWordMap w a (p.1, fun j => normalizeQuaternion (p.2 j)) i : ℍ)) q := by
124
+ apply contDiffAt_pi.mpr
125
+ intro i
126
+ refine freeGroup_lift_coe_contDiffAt (w i) q
127
+ (fun parameter => Sum.elim (a parameter.1)
128
+ (fun index => normalizeQuaternion (parameter.2 index))) ?_
129
+ intro j
130
+ cases j with
131
+ | inl j => exact ((ha j).comp contDiff_fst).contDiffAt
132
+ | inr j =>
133
+ change ContDiffAt ℝ ∞ (fun p : ℝ × (Fin m → ℍ) => (normalizeQuaternion (p.2 j) : ℍ)) q
134
+ exact (normalizeQuaternion_coe_contDiffAt (hq j)).comp (f := fun p : ℝ × (Fin m → ℍ) => p.2 j) q
135
+ ((contDiff_apply ℝ ℍ j).comp contDiff_snd).contDiffAt
136
+
137
+ def radialCoefficientWordMap {ι : Type*} {m : ℕ}
138
+ (w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
139
+ (q : ℝ × (Fin m → ℍ)) : Fin m → ℍ :=
140
+ fun i => ‖q.2 i‖ • (coefficientWordMap w a (q.1, fun j => normalizeQuaternion (q.2 j)) i : ℍ)
141
+
142
+ def smoothRadialCoefficientWordMap {ι : Type*} {m : ℕ}
143
+ (w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
144
+ (q : ℝ × (Fin m → ℍ)) : Fin m → ℍ :=
145
+ radialCutoff q.2 • radialCoefficientWordMap w a q
146
+
147
+ theorem smoothRadialCoefficientWordMap_smooth {ι : Type*} {m : ℕ}
148
+ (w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
149
+ (ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ))) :
150
+ ContDiff ℝ ∞ (smoothRadialCoefficientWordMap w a) := by
151
+ apply radialCutoff_family_smooth
152
+ intro q hq
153
+ apply contDiffAt_pi.mpr
154
+ intro i
155
+ exact (((contDiff_apply ℝ ℍ i).comp contDiff_snd).contDiffAt.norm ℝ (hq i)).smul
156
+ ((contDiffAt_pi.mp (coefficientWordMap_normalized_smoothAt w a ha q hq)) i)
157
+
158
+ @[simp] theorem radialCoefficientWordMap_norm {ι : Type*} {m : ℕ}
159
+ (w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
160
+ (q : ℝ × (Fin m → ℍ)) (i : Fin m) :
161
+ ‖radialCoefficientWordMap w a q i‖ = ‖q.2 i‖ := by
162
+ have h := (quaternion_mem_unitary_iff _).mp
163
+ (coefficientWordMap w a (q.1, fun j => normalizeQuaternion (q.2 j)) i).property
164
+ simp [radialCoefficientWordMap, norm_smul, h]
165
+
166
+ theorem radialCoefficientWordMap_eq_one_iff {ι : Type*} {m : ℕ}
167
+ (w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
168
+ (q : ℝ × (Fin m → ℍ)) : radialCoefficientWordMap w a q = 1 ↔
169
+ (∀ i, ‖q.2 i‖ = 1) ∧ coefficientWordMap w a
170
+ (q.1, fun j => normalizeQuaternion (q.2 j)) = 1 := by
171
+ constructor
172
+ · intro h
173
+ have hn (i : Fin m) : ‖q.2 i‖ = 1 := by
174
+ have he := congrArg (fun y : Fin m → ℍ => ‖y i‖) h
175
+ simpa only [radialCoefficientWordMap_norm, Pi.one_apply, norm_one] using he
176
+ refine ⟨hn, ?_⟩
177
+ funext i
178
+ apply Subtype.ext
179
+ have he := congrFun h i
180
+ simpa [radialCoefficientWordMap, hn] using he
181
+ · rintro ⟨hn, hw⟩
182
+ funext i
183
+ simp [radialCoefficientWordMap, hn, hw]
184
+
185
+ theorem smoothRadialCoefficientWordMap_eq_one_iff {ι : Type*} {m : ℕ}
186
+ (w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
187
+ (q : ℝ × (Fin m → ℍ)) : smoothRadialCoefficientWordMap w a q = 1 ↔
188
+ (∀ i, ‖q.2 i‖ = 1) ∧ coefficientWordMap w a
189
+ (q.1, fun j => normalizeQuaternion (q.2 j)) = 1 := by
190
+ rw [← radialCoefficientWordMap_eq_one_iff]
191
+ constructor
192
+ · intro h
193
+ have hn (i : Fin m) : radialCutoff q.2 * ‖q.2 i‖ = 1 := by
194
+ have he := congrArg (fun y : Fin m → ℍ => ‖y i‖) h
195
+ simpa only [smoothRadialCoefficientWordMap, Pi.smul_apply, norm_smul, Real.norm_eq_abs,
196
+ abs_of_nonneg (radialCutoff_nonneg q.2), radialCoefficientWordMap_norm, Pi.one_apply, norm_one] using he
197
+ have hlarge (i : Fin m) : 1 ≤ ‖q.2 i‖ := by
198
+ have hle := mul_le_mul_of_nonneg_right (radialCutoff_le_one q.2) (norm_nonneg (q.2 i))
199
+ rw [hn i, one_mul] at hle
200
+ exact hle
201
+ simpa only [smoothRadialCoefficientWordMap, radialCutoff_eq_one q.2 hlarge, one_smul] using h
202
+ · intro h
203
+ have hn := (radialCoefficientWordMap_eq_one_iff w a q).mp h
204
+ simp only [smoothRadialCoefficientWordMap, radialCutoff_eq_one q.2 (fun i => (hn.1 i).ge), one_smul, h]
205
+
206
+ theorem smoothRadialCoefficientWordMap_initial {ι : Type*} {m : ℕ}
207
+ (w : Fin m → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
208
+ (ha : ∀ i, a 0 i = 1) (x : Fin m → ℍ) :
209
+ smoothRadialCoefficientWordMap w a (0, x) =
210
+ smoothRadialWordMap (fun i => eraseCoefficients (w i)) x := by
211
+ unfold smoothRadialCoefficientWordMap smoothRadialWordMap
212
+ congr 1
213
+ funext i
214
+ dsimp only [radialCoefficientWordMap, radialWordMap]
215
+ rw [coefficientWordMap_initial w a ha]
216
+ rfl
217
+ end EilenbergGanea
218
+
219
+ namespace EilenbergGanea
220
+ open Set Filter Topology
221
+ open scoped Quaternion ContDiff
222
+
223
+ def cutoffCoefficientProducts {ι : Type*} {m d : ℕ}
224
+ (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
225
+ (q : ℝ × (Fin m → ℍ)) : Fin d → ℍ :=
226
+ radialCutoff q.2 • fun i =>
227
+ (coefficientWordMap w a (q.1, fun j => normalizeQuaternion (q.2 j)) i : ℍ)
228
+
229
+ theorem cutoffCoefficientProducts_smooth {ι : Type*} {m d : ℕ}
230
+ (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
231
+ (ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ))) :
232
+ ContDiff ℝ ∞ (cutoffCoefficientProducts w a) :=
233
+ radialCutoff_family_smooth _ (coefficientWordMap_normalized_smoothAt w a ha)
234
+
235
+ theorem cutoffCoefficientProducts_unitary {ι : Type*} {m d : ℕ}
236
+ (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
237
+ (t : ℝ) (x : Fin m → SU2) :
238
+ cutoffCoefficientProducts w a (t, fun i => (x i : ℍ)) =
239
+ fun i => (coefficientWordMap w a (t, x) i : ℍ) := by
240
+ have hn (i : Fin m) : ‖(x i : ℍ)‖ = 1 := (quaternion_mem_unitary_iff _).mp (x i).property
241
+ simp only [cutoffCoefficientProducts, radialCutoff_eq_one _ (fun i => (hn i).ge), one_smul,
242
+ normalizeQuaternion_unitary]
243
+ end EilenbergGanea
244
+
245
+ namespace EilenbergGanea
246
+ open Set Filter Topology
247
+ open scoped Quaternion ContDiff
248
+
249
+ theorem quaternionConjugate_sub (a : SU2) (q r : ℍ) :
250
+ quaternionConjugate a (q - r) = quaternionConjugate a q - quaternionConjugate a r := by
251
+ simp only [quaternionConjugate, mul_sub, sub_mul]
252
+
253
+ theorem coefficientWordMap_initial_conjugate {ι : Type*} {m d : ℕ}
254
+ (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
255
+ (ha : ∀ i, a 0 i = 1) (b : SU2) (x : Fin m → SU2) :
256
+ coefficientWordMap w a (0, fun i => b * x i * b⁻¹) =
257
+ fun i => b * coefficientWordMap w a (0, x) i * b⁻¹ := by
258
+ rw [coefficientWordMap_initial w a ha, coefficientWordMap_initial w a ha]
259
+ have he : FreeGroup.lift (fun i => b * x i * b⁻¹) =
260
+ (MulAut.conj b).toMonoidHom.comp (FreeGroup.lift x) := by
261
+ apply FreeGroup.ext_hom
262
+ intro i
263
+ simp
264
+ funext i
265
+ rw [he]
266
+ rfl
267
+
268
+ theorem cutoffCoefficientProducts_initial_conjugate {ι : Type*} {m d : ℕ}
269
+ (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
270
+ (ha : ∀ i, a 0 i = 1) (b : SU2) (x : Fin m → ℍ) :
271
+ cutoffCoefficientProducts w a (0, fun i => quaternionConjugate b (x i)) =
272
+ fun i => quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i) := by
273
+ funext i
274
+ simp only [cutoffCoefficientProducts, radialCutoff, quaternionConjugate_norm,
275
+ normalizeQuaternion_conjugate, coefficientWordMap_initial_conjugate w a ha,
276
+ Pi.smul_apply, quaternionConjugate_smul, quaternionConjugate_coe]
277
+
278
+ theorem cutoffCoefficientProducts_initial_size_invariant {ι : Type*} {m d : ℕ}
279
+ (w : Fin d → FreeGroup (ι ⊕ Fin m)) (a : ℝ → ι → SU2)
280
+ (ha : ∀ i, a 0 i = 1) (b : SU2) (x : Fin m → ℍ) :
281
+ ‖cutoffCoefficientProducts w a (0, fun i => quaternionConjugate b (x i)) - 1‖ =
282
+ ‖cutoffCoefficientProducts w a (0, x) - 1‖ := by
283
+ rw [cutoffCoefficientProducts_initial_conjugate w a ha]
284
+ have hn (i : Fin d) : ‖quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i) - 1‖ =
285
+ ‖cutoffCoefficientProducts w a (0, x) i - 1‖ := by
286
+ calc
287
+ _ = ‖quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i - 1)‖ := by rw [quaternionConjugate_sub, quaternionConjugate_one]
288
+ _ = _ := quaternionConjugate_norm _ _
289
+ have hnn (i : Fin d) : ‖quaternionConjugate b (cutoffCoefficientProducts w a (0, x) i) - 1‖₊ =
290
+ ‖cutoffCoefficientProducts w a (0, x) i - 1‖₊ := NNReal.eq (hn i)
291
+ simp only [Pi.norm_def, Pi.sub_apply, Pi.one_apply, hnn]
292
+
293
+ /-- Finite-word-system solvability with an actual distinguished-word sublevel
294
+ isolator. Arbitrarily singular initial word roots are allowed. -/
295
+ theorem coefficient_word_sublevel_solvable {ι : Type*} {m d : ℕ}
296
+ (w : Fin m → FreeGroup (ι ⊕ Fin m)) (ρ : Fin d → FreeGroup (ι ⊕ Fin m))
297
+ (a : ℝ → ι → SU2) (ha : ∀ i, ContDiff ℝ ∞ (fun t => (a t i : ℍ)))
298
+ (ha0 : ∀ i, a 0 i = 1)
299
+ (hB : (exponentMatrix (fun i => eraseCoefficients (w i))).det ≠ 0)
300
+ (δ : ℝ) (hδ : 0 < δ)
301
+ (hiso : ∀ t ∈ Icc (0 : ℝ) 1, ∀ x : Fin m → SU2,
302
+ coefficientWordMap w a (t, x) = 1 →
303
+ ‖(fun i => (coefficientWordMap ρ a (t, x) i : ℍ)) - 1‖ ≠ δ) :
304
+ ∃ x : Fin m → SU2, coefficientWordMap w a (1, x) = 1 ∧
305
+ ‖(fun i => (coefficientWordMap ρ a (1, x) i : ℍ)) - 1‖ < δ := by
306
+ let E := (Fin m → ℂ) × (Fin m → ℂ)
307
+ let e : (Fin m → ℍ) ≃L[ℝ] E := quaternionTupleCoordinates
308
+ let H : ℝ × E → ℝ × (Fin m → ℍ) := fun q => (q.1, e.symm q.2)
309
+ have hH : ContDiff ℝ ∞ H := contDiff_fst.prodMk (e.symm.contDiff.comp contDiff_snd)
310
+ let F : ℝ × E → E := fun q => e (smoothRadialCoefficientWordMap w a (H q)) - (1, 0)
311
+ let h : ℝ × E → ℝ := fun q => ‖cutoffCoefficientProducts ρ a (H q) - 1‖
312
+ have hF : ContDiff ℝ 2 F := contDiff_infty.mp
313
+ ((e.contDiff.comp ((smoothRadialCoefficientWordMap_smooth w a ha).comp hH)).sub contDiff_const) 2
314
+ have hF0 : ∀ q, F (0, q) = splitWordMap (fun i => eraseCoefficients (w i)) q := by
315
+ intro q
316
+ dsimp only [F, H]
317
+ rw [smoothRadialCoefficientWordMap_initial w a ha0]
318
+ rfl
319
+ have hh : Continuous h := (((cutoffCoefficientProducts_smooth ρ a ha).comp hH).continuous.sub continuous_const).norm
320
+ have he1 : e (1 : Fin m → ℍ) = (1, 0) := by
321
+ change quaternionTupleCoordinates
322
+ (fun _ : Fin m => Quaternion.ofComplex (1 : ℂ)) = _
323
+ exact quaternionTupleCoordinates_fixed 1
324
+ have hroot (q : ℝ × E) (hq : F q = 0) :
325
+ (∀ i, ‖e.symm q.2 i‖ = 1) ∧
326
+ coefficientWordMap w a (q.1, fun i => normalizeQuaternion (e.symm q.2 i)) = 1 := by
327
+ apply (smoothRadialCoefficientWordMap_eq_one_iff w a (H q)).mp
328
+ apply e.injective
329
+ rw [he1]
330
+ exact sub_eq_zero.mp hq
331
+ have hnorm (q : ℝ × E) (hq : F q = 0) : ‖q.2‖ ≤ ‖e.toContinuousLinearMap‖ := by
332
+ have hle : ‖e.symm q.2‖ ≤ 1 := (pi_norm_le_iff_of_nonneg (by positivity)).mpr
333
+ (fun i => (hroot q hq).1 i |>.le)
334
+ calc
335
+ ‖q.2‖ = ‖e (e.symm q.2)‖ := by rw [e.apply_symm_apply]
336
+ _ ≤ ‖e.toContinuousLinearMap‖ * ‖e.symm q.2‖ := e.toContinuousLinearMap.le_opNorm _
337
+ _ ≤ ‖e.toContinuousLinearMap‖ := mul_le_of_le_one_right (norm_nonneg e.toContinuousLinearMap) hle
338
+ have hunit (q : ℝ × E) (hq : F q = 0) :
339
+ (fun i => ((normalizeQuaternion (e.symm q.2 i) : SU2) : ℍ)) = e.symm q.2 := by
340
+ funext i
341
+ have hn := (hroot q hq).1 i
342
+ rw [normalizeQuaternion_coe_of_ne_zero (by intro hz; simp [hz] at hn), hn, inv_one, one_smul]
343
+ have hsizeroot (q : ℝ × E) (hq : F q = 0) :
344
+ h q = ‖(fun i => (coefficientWordMap ρ a
345
+ (q.1, fun j => normalizeQuaternion (e.symm q.2 j)) i : ℍ)) - 1‖ := by
346
+ dsimp only [h, H]
347
+ conv_lhs => rw [← hunit q hq, cutoffCoefficientProducts_unitary]
348
+ have hi : ∀ z : ℂ, ‖z‖ = 1 → ∀ q : E, h (0, (q.1, z • q.2)) = h (0, q) := by
349
+ intro z hz q
350
+ obtain ⟨c, hc⟩ := circle_exists_square_root z hz
351
+ have heq : e.symm (q.1, z • q.2) =
352
+ fun i => quaternionConjugate (circleQuaternion c) (e.symm q i) := by
353
+ apply e.injective
354
+ rw [e.apply_symm_apply, quaternionTupleCoordinates_conjCircle, hc, e.apply_symm_apply]
355
+ dsimp only [h, H]
356
+ rw [heq]
357
+ exact cutoffCoefficientProducts_initial_size_invariant ρ a ha0 _ _
358
+ have h1 : h (0, (1, 0)) < δ := by
359
+ have he : e.symm (1, 0) = 1 := by rw [← he1, e.symm_apply_apply]
360
+ have hp : coefficientWordMap ρ a (0, (1 : Fin m → SU2)) = 1 := by
361
+ rw [coefficientWordMap_initial ρ a ha0]
362
+ have hl : FreeGroup.lift (1 : Fin m → SU2) = 1 := by
363
+ apply FreeGroup.ext_hom
364
+ intro i
365
+ simp
366
+ funext i
367
+ rw [hl]
368
+ rfl
369
+ dsimp only [h, H]
370
+ rw [he]
371
+ have hco : (1 : Fin m → ℍ) = fun i => ((1 : Fin m → SU2) i : ℍ) := rfl
372
+ rw [hco, cutoffCoefficientProducts_unitary, hp]
373
+ change ‖(1 : Fin d → ℍ) - 1‖ < δ
374
+ simpa only [sub_self, norm_zero] using hδ
375
+ let R : ℝ := ‖e.toContinuousLinearMap‖ + ‖((1 : Fin m → ℂ), (0 : Fin m → ℂ))‖ + 1
376
+ obtain ⟨q, hq, hhq⟩ := localized_word_root_sublevel
377
+ (fun i => eraseCoefficients (w i)) hB F hF hF0 h hh δ R
378
+ (by dsimp only [R]; have hn := norm_nonneg e.toContinuousLinearMap; linarith) h1 hi
379
+ (fun q _ hq => by dsimp only [R]; have hn := hnorm q hq; have hp := norm_nonneg ((1 : Fin m → ℂ), (0 : Fin m → ℂ)); linarith)
380
+ (fun q ht hq => by rw [hsizeroot q hq]; exact hiso q.1 ht _ (hroot q hq).2)
381
+ refine ⟨fun i => normalizeQuaternion (e.symm q i), (hroot (1, q) hq).2, ?_⟩
382
+ simpa only [hsizeroot (1, q) hq] using hhq
383
+ end EilenbergGanea
384
+
385
+
386
+ end
387
+
388
+ end OAI
lean/OAI/Topology/HahnSeries/Pivots.lean CHANGED
@@ -1,852 +1,852 @@
1
- import OAI.LinearAlgebra.RankMatching.Basic
2
-
3
- namespace OAI
4
-
5
- noncomputable section
6
- open scoped BigOperators nonZeroDivisors
7
- open LinearMap Submodule
8
- open CategoryTheory CategoryTheory.Limits HomologicalComplex
9
-
10
- namespace HahnWilson.PivotTopology
11
- open HahnSeries
12
- open scoped BigOperators Topology
13
- variable {k : Type*} [Field k]
14
-
15
- def poleLattice (J : ℤ) : Submodule k (LaurentSeries k) where
16
- carrier := {f | ∀ i : ℤ, J < i → f.coeff (-i) = 0}
17
- zero_mem' := by simp
18
- add_mem' hf hg i hi := by simp [hf i hi, hg i hi]
19
- smul_mem' c f hf i hi := by simp [hf i hi]
20
-
21
- def monomial (j : ℤ) : LaurentSeries k := HahnSeries.single (-j) 1
22
-
23
- def PreservesPoles (a : LaurentSeries k →ₗ[k] LaurentSeries k) : Prop :=
24
- ∀ J, ∀ f ∈ poleLattice (k := k) J, a f ∈ poleLattice (k := k) J
25
-
26
- def matrixOf (a : LaurentSeries k →ₗ[k] LaurentSeries k) : Matrix ℤ ℤ k :=
27
- fun l j => (a (monomial j)).coeff (-l)
28
-
29
- def HasLeadingTerm (f : LaurentSeries k) (j : ℤ) : Prop :=
30
- f ∈ poleLattice (k := k) j ∧ f.coeff (-j) = 1
31
-
32
- def HasLeadingPosition (f : LaurentSeries k) (j : ℤ) : Prop :=
33
- f ∈ poleLattice (k := k) j ∧ f.coeff (-j) ≠ 0
34
-
35
- def crossing (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) : Set (ℤ × ℤ) :=
36
- {p | RankMatching.Matched (matrixOf a) p.1 p.2 ∧ p.1 ≤ J ∧ J < p.2}
37
-
38
- def crossingQuotient (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :=
39
- ↥(LinearMap.range a ⊓ poleLattice (k := k) J) ⧸
40
- Submodule.comap (LinearMap.range a ⊓ poleLattice (k := k) J).subtype
41
- ((poleLattice (k := k) J).map a)
42
-
43
- instance crossingQuotient_addCommGroup (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :
44
- AddCommGroup (crossingQuotient a J) := by
45
- unfold crossingQuotient
46
- infer_instance
47
-
48
- instance crossingQuotient_module (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :
49
- Module k (crossingQuotient a J) := by
50
- unfold crossingQuotient
51
- infer_instance
52
-
53
- @[simp] lemma mem_poleLattice (J : ℤ) (f : LaurentSeries k) :
54
- f ∈ poleLattice J ↔ ∀ i : ℤ, J < i → f.coeff (-i) = 0 := Iff.rfl
55
-
56
- lemma poleLattice_mono {I J : ℤ} (h : I ≤ J) :
57
- poleLattice (k := k) I ≤ poleLattice J := by
58
- intro f hf i hi
59
- exact hf i (lt_of_le_of_lt h hi)
60
-
61
- @[simp] lemma coeff_monomial (j i : ℤ) :
62
- (monomial (k := k) j).coeff (-i) = if i = j then 1 else 0 := by
63
- simp [monomial, HahnSeries.coeff_single]
64
-
65
- lemma monomial_mem {j J : ℤ} (h : j ≤ J) : monomial (k := k) j ∈ poleLattice J := by
66
- intro i hi
67
- simp [show i ≠ j by omega]
68
-
69
- lemma exists_poleLattice (f : LaurentSeries k) : ∃ J, f ∈ poleLattice J := by
70
- refine ⟨-f.order, ?_⟩
71
- intro i hi
72
- exact HahnSeries.coeff_eq_zero_of_lt_order (by omega)
73
-
74
- lemma matrixOf_triangular (a : LaurentSeries k →ₗ[k] LaurentSeries k)
75
- (ha : PreservesPoles a) : RankMatching.Triangular (matrixOf a) := by
76
- intro l j h
77
- exact ha j (monomial j) (monomial_mem le_rfl) l h
78
-
79
- def truncate (f : LaurentSeries k) (L J : ℤ) : LaurentSeries k :=
80
- ∑ c ∈ Finset.Icc L J, f.coeff (-c) • monomial c
81
-
82
- lemma coeff_truncate (f : LaurentSeries k) (L J i : ℤ) :
83
- (truncate f L J).coeff (-i) = if L ≤ i ∧ i ≤ J then f.coeff (-i) else 0 := by
84
- classical
85
- simp [truncate, HahnSeries.coeff_sum, HahnSeries.coeff_smul, smul_eq_mul,
86
- mul_ite]
87
-
88
- lemma truncate_mem (f : LaurentSeries k) (L J : ℤ) : truncate f L J ∈ poleLattice J := by
89
- intro i hi
90
- rw [coeff_truncate, ite_eq_right (by omega)]
91
-
92
- lemma sub_truncate_mem {f : LaurentSeries k} {L J : ℤ} (hf : f ∈ poleLattice J) :
93
- f - truncate f L J ∈ poleLattice (L - 1) := by
94
- intro i hi
95
- rw [HahnSeries.coeff_sub, coeff_truncate]
96
- by_cases hij : i ≤ J
97
- · rw [ite_eq_left (by omega), sub_self]
98
- · rw [ite_eq_right (by omega), sub_zero, hf i (by omega)]
99
-
100
- def poleProjection (L : ℤ) : LaurentSeries k →ₗ[k] (ℤ → k) where
101
- toFun f i := if L ≤ i then f.coeff (-i) else 0
102
- map_add' f g := by ext i; by_cases hi : L ≤ i <;> simp [hi]
103
- map_smul' c f := by ext i; by_cases hi : L ≤ i <;> simp [hi]
104
-
105
- lemma poleProjection_eq_zero {L : ℤ} {f : LaurentSeries k} :
106
- poleProjection L f = 0 ↔ f ∈ poleLattice (L - 1) := by
107
- constructor
108
- · intro h i hi
109
- have := congrFun h i
110
- simpa [poleProjection, show L ≤ i by omega] using this
111
- · intro h
112
- ext i
113
- by_cases hi : L ≤ i
114
- · simp [poleProjection, hi, h i (by omega)]
115
- · simp [poleProjection, hi]
116
-
117
- @[simp] lemma poleProjection_monomial_image
118
- (a : LaurentSeries k →ₗ[k] LaurentSeries k) (L j : ℤ) :
119
- poleProjection L (a (monomial j)) = RankMatching.column (matrixOf a) L j := rfl
120
-
121
- lemma poleProjection_truncate_image (a : LaurentSeries k →ₗ[k] LaurentSeries k)
122
- (ha : PreservesPoles a) {f : LaurentSeries k} {L J : ℤ}
123
- (hf : f ∈ poleLattice J) :
124
- poleProjection L (a (truncate f L J)) = poleProjection L (a f) := by
125
- have h := (poleProjection_eq_zero).mpr (ha (L - 1) _ (sub_truncate_mem hf))
126
- rw [map_sub, map_sub, sub_eq_zero] at h
127
- exact h.symm
128
-
129
- lemma columnSpace_eq_projectedImage (a : LaurentSeries k →ₗ[k] LaurentSeries k)
130
- (ha : PreservesPoles a) (L J : ℤ) :
131
- RankMatching.columnSpace (matrixOf a) L J =
132
- ((poleLattice J).map a).map (poleProjection L) := by
133
- classical
134
- apply le_antisymm
135
- · apply Submodule.span_le.mpr
136
- rintro _ ⟨c, hc, rfl⟩
137
- exact ⟨a (monomial c), ⟨monomial c, monomial_mem hc, rfl⟩, rfl⟩
138
- · rintro y ⟨z, ⟨f,hf,rfl⟩,rfl⟩
139
- rw [← poleProjection_truncate_image a ha hf]
140
- simp only [truncate, map_sum, map_smul]
141
- exact Submodule.sum_mem _ fun c hc =>
142
- Submodule.smul_mem _ _ (Submodule.subset_span
143
- ⟨c, (Finset.mem_Icc.mp hc).2, rfl⟩)
144
-
145
- lemma increment_zero_iff_finite_solution
146
- (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (L j : ℤ) :
147
- RankMatching.increment (matrixOf a) L j = 0 ↔
148
- ∃ f, HasLeadingTerm f j ∧ a f ∈ poleLattice (L - 1) := by
149
- rw [RankMatching.increment_eq_zero_iff, columnSpace_eq_projectedImage a ha]
150
- constructor
151
- · rintro ⟨z, ⟨g,hg,rfl⟩,heq⟩
152
- refine ⟨monomial j - g, ⟨?_, ?_⟩, ?_⟩
153
- · intro i hi
154
- simp only [HahnSeries.coeff_sub, coeff_monomial,
155
- ite_eq_right (show i ≠ j by omega), hg i (by omega), sub_self]
156
- · simp [HahnSeries.coeff_sub, hg j (by omega)]
157
- · apply poleProjection_eq_zero.mp
158
- rw [map_sub, map_sub, poleProjection_monomial_image, ← heq, sub_self]
159
- · rintro ⟨f, ⟨hf,hfj⟩,haf⟩
160
- have hg : monomial j - f ∈ poleLattice (j - 1) := by
161
- intro i hi
162
- by_cases hij : i = j
163
- · subst i; simp [HahnSeries.coeff_sub, hfj]
164
- · simp [HahnSeries.coeff_sub, coeff_monomial, hij, hf i (by omega)]
165
- refine ⟨a (monomial j - f), ⟨monomial j - f, hg, rfl⟩, ?_⟩
166
- rw [map_sub, map_sub, poleProjection_monomial_image,
167
- poleProjection_eq_zero.mpr haf, sub_zero]
168
-
169
- open WithZero
170
-
171
- lemma mem_poleLattice_iff_valuation (J : ℤ) (f : LaurentSeries k) :
172
- f ∈ poleLattice J ↔ Valued.v f ≤ WithZero.exp J := by
173
- rw [show J = -(-J) by omega, LaurentSeries.valuation_le_iff_coeff_lt_eq_zero]
174
- constructor
175
- · intro hf n hn
176
- simpa using hf (-n) (by omega)
177
- · intro hf i hi
178
- exact hf (-i) (by omega)
179
-
180
- lemma poleLattice_eq_ball (J : ℤ) :
181
- (poleLattice (k := k) J : Set (LaurentSeries k)) =
182
- {f | (Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict f ≤
183
- (Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict (monomial J)} := by
184
- ext f
185
- change f ∈ poleLattice J ↔ (Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict f ≤
186
- (Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict (monomial J)
187
- rw [Valuation.restrict_le_iff, mem_poleLattice_iff_valuation]
188
- simp [monomial, LaurentSeries.valuation_single_zpow]
189
-
190
- lemma isClosed_poleLattice (J : ℤ) : IsClosed (poleLattice (k := k) J : Set (LaurentSeries k)) := by
191
- rw [poleLattice_eq_ball]
192
- exact Valued.isClosed_closedBall _ _
193
-
194
- lemma isOpen_poleLattice (J : ℤ) : IsOpen (poleLattice (k := k) J : Set (LaurentSeries k)) := by
195
- rw [poleLattice_eq_ball]
196
- apply Valued.isOpen_closedBall
197
- rw [ne_eq, Valuation.restrict_eq_zero_iff]
198
- simp [monomial, LaurentSeries.valuation_single_zpow]
199
-
200
- lemma poleLattice_nhds_basis :
201
- (𝓝 (0 : LaurentSeries k)).HasBasis (fun _ : ℤ => True)
202
- (fun J => (poleLattice (k := k) J : Set (LaurentSeries k))) := by
203
- let v : Valuation (LaurentSeries k) ℤᵐ⁰ := Valued.v
204
- apply (Valued.hasBasis_nhds_zero (LaurentSeries k) ℤᵐ⁰).to_hasBasis
205
- · intro γ _
206
- let r : ℤᵐ⁰ := MonoidWithZeroHom.ValueGroup₀.embedding γ.val
207
- have hr : r ≠ 0 := (Units.map
208
- (MonoidWithZeroHom.ValueGroup₀.embedding (f := .ofClass v)).toMonoidHom γ).ne_zero
209
- refine ⟨WithZero.log r - 1, trivial, ?_⟩
210
- intro f hf
211
- rw [Set.mem_ofPred_eq, Valuation.restrict_lt_iff_lt_embedding]
212
- apply (mem_poleLattice_iff_valuation _ f).mp hf |>.trans_lt
213
- change WithZero.exp (WithZero.log r - 1) < r
214
- calc
215
- _ < WithZero.exp (WithZero.log r) := WithZero.exp_lt_exp.mpr (by omega)
216
- _ = r := WithZero.exp_log hr
217
- · intro J _
218
- have hn : v.restrict (monomial J) ≠ 0 := by
219
- rw [ne_eq, Valuation.restrict_eq_zero_iff]
220
- simp [v, monomial, LaurentSeries.valuation_single_zpow]
221
- refine ⟨Units.mk0 _ hn, trivial, ?_⟩
222
- intro f hf
223
- rw [poleLattice_eq_ball]
224
- change v.restrict f < v.restrict (monomial J) at hf
225
- exact hf.le
226
-
227
- lemma continuous_of_preservesPoles (a : LaurentSeries k →ₗ[k] LaurentSeries k)
228
- (ha : PreservesPoles a) : Continuous a := by
229
- apply continuous_of_continuousAt_zero a
230
- simp only [ContinuousAt, map_zero]
231
- rw [poleLattice_nhds_basis.tendsto_iff poleLattice_nhds_basis]
232
- exact fun J _ => ⟨J, trivial, ha J⟩
233
-
234
- lemma continuous_of_bounded_coefficients [UniformSpace k] [DiscreteTopology k]
235
- {X : Type*} [TopologicalSpace X] (g : X → LaurentSeries k) (J : ℤ)
236
- (hg : ∀ x, g x ∈ poleLattice J)
237
- (hcoeff : ∀ n : ℤ, Continuous (fun x => (g x).coeff n)) : Continuous g := by
238
- rw [continuous_iff_continuousAt]
239
- intro x
240
- apply tendsto_sub_nhds_zero_iff.mp
241
- rw [poleLattice_nhds_basis.tendsto_right_iff]
242
- intro M _
243
- have hev : ∀ᶠ y in 𝓝 x, ∀ i ∈ Finset.Ioc M J,
244
- (g y).coeff (-i) = (g x).coeff (-i) := by
245
- rw [Filter.eventually_all_finset]
246
- intro i _
247
- exact (hcoeff (-i)).continuousAt.eventually
248
- ((isOpen_discrete {(g x).coeff (-i)}).mem_nhds rfl)
249
- filter_upwards [hev] with y hy
250
- intro i hi
251
- rw [HahnSeries.coeff_sub, sub_eq_zero]
252
- by_cases hij : i ≤ J
253
- · exact hy i (Finset.mem_Ioc.mpr ⟨hi,hij⟩)
254
- · rw [hg y i (by omega), hg x i (by omega)]
255
-
256
- def stageSeries (J : ℤ) (c : ℤ → k) : LaurentSeries k :=
257
- HahnSeries.ofSuppBddBelow (fun n => if -J ≤ n then c n else 0)
258
- ⟨-J, by
259
- intro n hn
260
- by_contra h
261
- exact hn (ite_eq_right h)⟩
262
-
263
- @[simp] lemma coeff_stageSeries (J : ℤ) (c : ℤ → k) (n : ℤ) :
264
- (stageSeries J c).coeff n = if -J ≤ n then c n else 0 := rfl
265
-
266
- lemma stageSeries_mem (J : ℤ) (c : ℤ → k) : stageSeries J c ∈ poleLattice J := by
267
- intro i hi
268
- rw [coeff_stageSeries, ite_eq_right (by omega)]
269
-
270
- lemma range_stageSeries (J : ℤ) :
271
- Set.range (stageSeries (k := k) J) = (poleLattice (k := k) J : Set (LaurentSeries k)) := by
272
- ext f
273
- constructor
274
- · rintro ⟨c,rfl⟩
275
- exact stageSeries_mem J c
276
- · intro hf
277
- refine ⟨f.coeff, ?_⟩
278
- apply HahnSeries.ext
279
- funext n
280
- rw [coeff_stageSeries]
281
- split_ifs with hn
282
- · rfl
283
- · symm
284
- simpa using hf (-n) (by omega)
285
-
286
- lemma continuous_stageSeries [UniformSpace k] [DiscreteTopology k] (J : ℤ) :
287
- Continuous (stageSeries (k := k) J) := by
288
- apply continuous_of_bounded_coefficients _ J (stageSeries_mem J)
289
- intro n
290
- simp only [coeff_stageSeries]
291
- split_ifs
292
- · exact continuous_apply n
293
- · exact continuous_const
294
-
295
- lemma isCompact_poleLattice [Finite k] (J : ℤ) :
296
- IsCompact (poleLattice (k := k) J : Set (LaurentSeries k)) := by
297
- let : UniformSpace k := ⊥
298
- rw [← range_stageSeries, ← Set.image_univ]
299
- exact isCompact_univ.image (continuous_stageSeries J)
300
-
301
- lemma isCompact_leadingTerm [Finite k] (j : ℤ) :
302
- IsCompact {f : LaurentSeries k | HasLeadingTerm f j} := by
303
- let : UniformSpace k := ⊥
304
- exact (isCompact_poleLattice j).inter_right
305
- (isClosed_eq (LaurentSeries.uniformContinuous_coeff (-j)).continuous continuous_const)
306
-
307
- lemma isClosed_leadingTerm (j : ℤ) :
308
- IsClosed {f : LaurentSeries k | HasLeadingTerm f j} := by
309
- let : UniformSpace k := ⊥
310
- exact (isClosed_poleLattice j).inter
311
- (isClosed_eq (LaurentSeries.uniformContinuous_coeff (-j)).continuous continuous_const)
312
-
313
- lemma unmatched_iff_increments_zero (A : Matrix ℤ ℤ k)
314
- (hA : RankMatching.Triangular A) (j : ℤ) :
315
- (∀ l, ¬ RankMatching.Matched A l j) ↔ ∀ L, RankMatching.increment A L j = 0 := by
316
- constructor
317
- · intro h L
318
- by_cases hLj : L ≤ j
319
- · have hw : ∀ l, RankMatching.weight A l j = 0 := fun l =>
320
- (RankMatching.weight_zero_or_one A hA l j).resolve_right (h l)
321
- have hs := RankMatching.sum_interval_difference
322
- (fun l => (RankMatching.increment A l j : ℤ)) L j (by omega)
323
- simp_rw [← RankMatching.weight_eq_increment_sub A hA, hw] at hs
324
- rw [RankMatching.increment_zero A hA (show j < j + 1 by omega)] at hs
325
- simpa using hs.symm
326
- · exact RankMatching.increment_zero A hA (by omega)
327
- · intro h l hm
328
- have hi := (RankMatching.matched_iff_increments A hA l j).mp hm
329
- rw [h l] at hi
330
- exact Nat.zero_ne_one hi.1
331
-
332
- theorem unmatched_iff_kernel [Finite k]
333
- (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (j : ℤ) :
334
- (∀ l, ¬ RankMatching.Matched (matrixOf a) l j) ↔
335
- ∃ f, a f = 0 ∧ HasLeadingTerm f j := by
336
- rw [unmatched_iff_increments_zero _ (matrixOf_triangular a ha)]
337
- constructor
338
- · intro h
339
- let S : ℤ → Set (LaurentSeries k) := fun L =>
340
- {f | HasLeadingTerm f j ∧ a f ∈ poleLattice (L - 1)}
341
- have hc : ∀ L, IsClosed (S L) := fun L =>
342
- (isClosed_leadingTerm j).inter
343
- ((isClosed_poleLattice (L - 1)).preimage (continuous_of_preservesPoles a ha))
344
- have hk : ∀ L, IsCompact (S L) := fun L =>
345
- (isCompact_leadingTerm j).of_isClosed_subset (hc L) (fun _ h => h.1)
346
- have hn : ∀ L, (S L).Nonempty := fun L =>
347
- (increment_zero_iff_finite_solution a ha L j).mp (h L)
348
- have hd : Directed (fun s t : Set (LaurentSeries k) => s ⊇ t) S := by
349
- intro L M
350
- refine ⟨min L M, ?_, ?_⟩
351
- · intro f hf
352
- exact ⟨hf.1, poleLattice_mono (by omega) hf.2⟩
353
- · intro f hf
354
- exact ⟨hf.1, poleLattice_mono (by omega) hf.2⟩
355
- obtain ⟨f,hf⟩ := IsCompact.nonempty_iInter_of_directed_nonempty_isCompact_isClosed S hd hn hk hc
356
- have hf' : ∀ L, f ∈ S L := Set.mem_iInter.mp hf
357
- refine ⟨f, ?_, (hf' j).1⟩
358
- apply HahnSeries.ext
359
- funext n
360
- simpa using (hf' (-n)).2 (-n) (by omega)
361
- · rintro ⟨f,haf,hfj⟩ L
362
- apply (increment_zero_iff_finite_solution a ha L j).mpr
363
- exact ⟨f,hfj,haf ▸ (poleLattice (L - 1)).zero_mem⟩
364
-
365
- lemma rowRank_step (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A) (l J : ℤ) :
366
- RankMatching.blockRank A l J = RankMatching.blockRank A (l + 1) J +
367
- RankMatching.increment (RankMatching.reflected A) (-J) (-l) := by
368
- have h := RankMatching.blockRank_step (RankMatching.reflected A)
369
- (RankMatching.triangular_reflected A hA) (-J) (-l)
370
- simpa only [RankMatching.blockRank_reflected, neg_neg, neg_sub,
371
- Int.reduceNeg, sub_neg_eq_add, add_comm] using h
372
-
373
- lemma matchedRow_iff_unequal_ranks (A : Matrix ℤ ℤ k)
374
- (hA : RankMatching.Triangular A) (l : ℤ) :
375
- (∃ j, RankMatching.Matched A l j) ↔
376
- ∃ J, RankMatching.blockRank A l J ≠ RankMatching.blockRank A (l + 1) J := by
377
- have hn : (∀ j, ¬ RankMatching.Matched A l j) ↔
378
- ∀ J, RankMatching.blockRank A l J = RankMatching.blockRank A (l + 1) J := by
379
- have hh := unmatched_iff_increments_zero (RankMatching.reflected A)
380
- (RankMatching.triangular_reflected A hA) (-l)
381
- constructor
382
- · intro h J
383
- have hh' : ∀ r, ¬ RankMatching.Matched (RankMatching.reflected A) r (-l) := by
384
- intro r hr
385
- apply h (-r)
386
- simpa only [RankMatching.Matched, RankMatching.weight_reflected, neg_neg] using hr
387
- rw [rowRank_step A hA l J, hh.mp hh' (-J), add_zero]
388
- · intro h j hm
389
- have hh' : ∀ r, RankMatching.increment (RankMatching.reflected A) r (-l) = 0 := by
390
- intro r
391
- have hs := rowRank_step A hA l (-r)
392
- rw [neg_neg, h (-r)] at hs
393
- omega
394
- apply hh.mpr hh' (-j)
395
- simpa only [RankMatching.Matched, RankMatching.weight_reflected, neg_neg] using hm
396
- simpa only [not_forall, not_not] using not_congr hn
397
-
398
- lemma exists_rowCut_kernel_of_unequal_ranks (A : Matrix ℤ ℤ k)
399
- (hA : RankMatching.Triangular A) (l J : ℤ)
400
- (hr : RankMatching.blockRank A l J ≠ RankMatching.blockRank A (l + 1) J) :
401
- ∃ v ∈ RankMatching.columnSpace A l J,
402
- RankMatching.rowCut (l + 1) v = 0 ∧ v l ≠ 0 := by
403
- let F : RankMatching.columnSpace A l J →ₗ[k] RankMatching.columnSpace A (l + 1) J :=
404
- (RankMatching.rowCut (l + 1)).restrict
405
- (fun _ hv => RankMatching.rowCut_columnSpace A (by omega) J hv)
406
- have hs : Function.Surjective F := by
407
- intro v
408
- have hm : (v : ℤ → k) ∈ (RankMatching.columnSpace A l J).map
409
- (RankMatching.rowCut (l + 1)) := by
410
- rw [RankMatching.rowCut_map_columnSpace A (by omega)]
411
- exact v.property
412
- obtain ⟨w,hw,he⟩ := Submodule.mem_map.mp hm
413
- exact ⟨⟨w,hw⟩, Subtype.ext he⟩
414
- have hni : ¬ Function.Injective F := by
415
- intro hi
416
- apply hr
417
- have he := (LinearEquiv.ofBijective F ⟨hi,hs⟩).finrank_eq
418
- simpa only [RankMatching.blockRank_eq_finrank A hA] using he
419
- have hk : F.ker ≠ ⊥ := fun h => hni (LinearMap.ker_eq_bot.mp h)
420
- obtain ⟨v,hv,hvz⟩ := F.ker.ne_bot_iff.mp hk
421
- have hcut : RankMatching.rowCut (l + 1) (v : ℤ → k) = 0 :=
422
- congrArg Subtype.val (show F v = 0 from hv)
423
- refine ⟨v, v.property, hcut, ?_⟩
424
- intro hvl
425
- apply hvz
426
- apply Subtype.ext
427
- funext r
428
- rcases lt_trichotomy r l with hlt | heq | hgt
429
- · exact RankMatching.columnSpace_supported A l J v.property hlt
430
- · simpa [heq] using hvl
431
- · have he := congrFun hcut r
432
- simpa [RankMatching.rowCut, hgt] using he
433
-
434
- theorem matched_row_iff_image
435
- (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (l : ℤ) :
436
- (∃ j, RankMatching.Matched (matrixOf a) l j) ↔
437
- ∃ f, HasLeadingPosition (a f) l := by
438
- rw [matchedRow_iff_unequal_ranks _ (matrixOf_triangular a ha)]
439
- constructor
440
- · rintro ⟨J,hJ⟩
441
- obtain ⟨v,hv,hcut,hvl⟩ := exists_rowCut_kernel_of_unequal_ranks
442
- (matrixOf a) (matrixOf_triangular a ha) l J hJ
443
- rw [columnSpace_eq_projectedImage a ha] at hv
444
- obtain ⟨z,⟨f,hf,rfl⟩,rfl⟩ := hv
445
- refine ⟨f, ?_, ?_⟩
446
- · intro i hi
447
- have he := congrFun hcut i
448
- simpa [RankMatching.rowCut, poleProjection, hi,
449
- show l ≤ i by omega] using he
450
- · simpa [poleProjection] using hvl
451
- · rintro ⟨f,hf,hfl⟩
452
- obtain ⟨J,hJ⟩ := exists_poleLattice f
453
- refine ⟨J, ?_⟩
454
- intro heq
455
- have hv : poleProjection l (a f) ∈ RankMatching.columnSpace (matrixOf a) l J := by
456
- rw [columnSpace_eq_projectedImage a ha]
457
- exact ⟨a f,⟨f,hJ,rfl⟩,rfl⟩
458
- have hcut : RankMatching.rowCut (l + 1) (poleProjection l (a f)) = 0 := by
459
- ext i
460
- by_cases hi : l + 1 ≤ i
461
- · simp [RankMatching.rowCut, poleProjection, show l ≤ i by omega,
462
- hf i (by omega)]
463
- · simp [RankMatching.rowCut, show ¬ l < i by omega]
464
- have hi := RankMatching.rowCut_injOn_of_equal_ranks
465
- (matrixOf a) (matrixOf_triangular a ha) l J heq
466
- have he : poleProjection l (a f) = 0 := hi hv (Submodule.zero_mem _) (by simpa using hcut)
467
- apply hfl
468
- simpa [poleProjection] using congrFun he l
469
-
470
- def stageImage (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :
471
- Submodule k (LaurentSeries k) := (poleLattice J).map a
472
-
473
- lemma stageImage_mono (a : LaurentSeries k →ₗ[k] LaurentSeries k) : Monotone (stageImage a) := by
474
- intro I J h
475
- exact Submodule.map_mono (poleLattice_mono h)
476
-
477
- lemma stageImage_le_poleLattice (a : LaurentSeries k →ₗ[k] LaurentSeries k)
478
- (ha : PreservesPoles a) (J : ℤ) : stageImage a J ≤ poleLattice J := by
479
- rintro z ⟨f,hf,rfl⟩
480
- exact ha J f hf
481
-
482
- lemma stageImage_step (a : LaurentSeries k →ₗ[k] LaurentSeries k) (j : ℤ) :
483
- stageImage a j = stageImage a (j - 1) ⊔ Submodule.span k {a (monomial j)} := by
484
- apply le_antisymm
485
- · rintro z ⟨f,hf,rfl⟩
486
- have ht : f - f.coeff (-j) • monomial j ∈ poleLattice (j - 1) := by
487
- intro i hi
488
- by_cases hij : i = j
489
- · subst i; simp [HahnSeries.coeff_sub, HahnSeries.coeff_smul]
490
- · simp [HahnSeries.coeff_sub, HahnSeries.coeff_smul, coeff_monomial, hij,
491
- hf i (by omega)]
492
- apply Submodule.mem_sup.mpr
493
- refine ⟨a (f - f.coeff (-j) • monomial j), ⟨_,ht,rfl⟩,
494
- f.coeff (-j) • a (monomial j),
495
- Submodule.smul_mem _ _ (Submodule.subset_span (Set.mem_singleton _)), ?_⟩
496
- simp
497
- · apply sup_le (stageImage_mono a (by omega))
498
- rw [Submodule.span_singleton_le_iff_mem]
499
- exact ⟨monomial j, monomial_mem le_rfl, rfl⟩
500
-
501
- lemma monomial_image_mem_iff_unmatched [Finite k]
502
- (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (j : ℤ) :
503
- a (monomial j) ∈ stageImage a (j - 1) ↔
504
- ∀ l, ¬ RankMatching.Matched (matrixOf a) l j := by
505
- rw [unmatched_iff_kernel a ha]
506
- constructor
507
- · rintro ⟨g,hg,he⟩
508
- refine ⟨monomial j - g, by simp [he], ?_, ?_⟩
509
- · intro i hi
510
- simp [HahnSeries.coeff_sub, coeff_monomial, show i ≠ j by omega, hg i (by omega)]
511
- · simp [HahnSeries.coeff_sub, hg j (by omega)]
512
- · rintro ⟨f,haf,hf,hfj⟩
513
- refine ⟨monomial j - f, ?_, by simp [haf]⟩
514
- intro i hi
515
- by_cases hij : i = j
516
- · subst i; simp [HahnSeries.coeff_sub, hfj]
517
- · simp [HahnSeries.coeff_sub, coeff_monomial, hij, hf i (by omega)]
518
-
519
- def imageModulo (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :
520
- Submodule k (LaurentSeries k ⧸ stageImage a J) :=
521
- (stageImage a N).map (stageImage a J).mkQ
522
-
523
- lemma imageModulo_mono (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :
524
- Monotone (imageModulo a J) := fun _ _ h => Submodule.map_mono (stageImage_mono a h)
525
-
526
- lemma imageModulo_zero (a : LaurentSeries k →ₗ[k] LaurentSeries k) {J N : ℤ} (h : N ≤ J) :
527
- imageModulo a J N = ⊥ := by
528
- apply le_antisymm _ bot_le
529
- rw [imageModulo, Submodule.map_le_iff_le_comap, Submodule.comap_bot, Submodule.ker_mkQ]
530
- exact stageImage_mono a h
531
-
532
- lemma imageModulo_step (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J n : ℤ) :
533
- imageModulo a J n = imageModulo a J (n - 1) ⊔
534
- Submodule.span k {(stageImage a J).mkQ (a (monomial n))} := by
535
- rw [imageModulo, stageImage_step a n, Submodule.map_sup, Submodule.map_span, Set.image_singleton]
536
- rfl
537
-
538
- lemma imageModulo_finite (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :
539
- FiniteDimensional k (imageModulo a J N) := by
540
- by_cases h : J ≤ N
541
- · induction N, h using Int.leInduction with
542
- | base => rw [imageModulo_zero a le_rfl]; infer_instance
543
- | succ n hn ih =>
544
- rw [imageModulo_step, add_sub_cancel_right]
545
- let := ih
546
- infer_instance
547
- · rw [imageModulo_zero a (by omega)]
548
- infer_instance
549
-
550
- lemma mem_imageModulo (a : LaurentSeries k →ₗ[k] LaurentSeries k) {J N : ℤ}
551
- (h : J ≤ N) (f : LaurentSeries k) :
552
- (stageImage a J).mkQ f ∈ imageModulo a J N ↔ f ∈ stageImage a N := by
553
- change f ∈ ((stageImage a N).map (stageImage a J).mkQ).comap (stageImage a J).mkQ ↔ _
554
- rw [Submodule.comap_map_eq, Submodule.ker_mkQ, sup_eq_left.mpr (stageImage_mono a h)]
555
-
556
- open scoped Classical
557
-
558
- lemma imageModulo_finrank_step [Finite k]
559
- (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) {J n : ℤ}
560
- (h : J < n) :
561
- Module.finrank k (imageModulo a J n) = Module.finrank k (imageModulo a J (n - 1)) +
562
- if ∃ l, RankMatching.Matched (matrixOf a) l n then 1 else 0 := by
563
- classical
564
- let := imageModulo_finite a J (n - 1)
565
- rw [imageModulo_step, RankMatching.finrank_sup_singleton,
566
- mem_imageModulo a (by omega), monomial_image_mem_iff_unmatched a ha]
567
- by_cases hm : ∃ l, RankMatching.Matched (matrixOf a) l n
568
- · have hn : ¬ (∀ l, ¬ RankMatching.Matched (matrixOf a) l n) :=
569
- fun hh => hh hm.choose hm.choose_spec
570
- simp [hm, hn]
571
- · simp [show ∀ l, ¬ RankMatching.Matched (matrixOf a) l n from fun l hl => hm ⟨l,hl⟩]
572
-
573
- lemma imageModulo_finrank [Finite k]
574
- (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (J N : ℤ) :
575
- Module.finrank k (imageModulo a J N) =
576
- ∑ j ∈ Finset.Ioc J N, if ∃ l, RankMatching.Matched (matrixOf a) l j then 1 else 0 := by
577
- classical
578
- by_cases h : J ≤ N
579
- · induction N, h using Int.leInduction with
580
- | base => rw [imageModulo_zero a (J := J) (N := J) le_rfl, finrank_bot]; simp
581
- | succ n hn ih =>
582
- have he : Finset.Ioc J (n + 1) = insert (n + 1) (Finset.Ioc J n) := by
583
- ext i
584
- simp only [Finset.mem_Ioc, Finset.mem_insert]
585
- omega
586
- rw [imageModulo_finrank_step a ha (by omega), add_sub_cancel_right, ih,
587
- he, Finset.sum_insert (by simp)]
588
- omega
589
- · rw [imageModulo_zero a (by omega), finrank_bot, Finset.Ioc_eq_empty_of_le (by omega),
590
- Finset.sum_empty]
591
-
592
- lemma matched_le (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A) {l j : ℤ}
593
- (h : RankMatching.Matched A l j) : l ≤ j := by
594
- by_contra hn
595
- have hz := RankMatching.increment_zero A hA (lt_of_not_ge hn)
596
- have ho := ((RankMatching.matched_iff_increments A hA l j).mp h).1
597
- omega
598
-
599
- def columnMatches (A : Matrix ℤ ℤ k) (J N : ℤ) : Set (ℤ × ℤ) :=
600
- {p | RankMatching.Matched A p.1 p.2 ∧ J < p.2 ∧ p.2 ≤ N}
601
-
602
- def crossingStageMatches (A : Matrix ℤ ℤ k) (J N : ℤ) : Set (ℤ × ℤ) :=
603
- {p | RankMatching.Matched A p.1 p.2 ∧ p.1 ≤ J ∧ J < p.2 ∧ p.2 ≤ N}
604
-
605
- lemma columnMatches_snd_inj (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)
606
- (J N : ℤ) : Set.InjOn Prod.snd (columnMatches A J N) := by
607
- rintro ⟨l,j⟩ hp ⟨l',j'⟩ hq he
608
- change j = j' at he
609
- subst j'
610
- exact Prod.ext (RankMatching.column_unique A hA hp.1 hq.1) rfl
611
-
612
- lemma columnMatches_finite (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)
613
- (J N : ℤ) : (columnMatches A J N).Finite := by
614
- exact Set.Finite.of_injOn (fun _ hp => hp.2) (columnMatches_snd_inj A hA J N)
615
- (Set.finite_Ioc J N)
616
-
617
- lemma columnMatches_ncard (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)
618
- (J N : ℤ) : (columnMatches A J N).ncard =
619
- ∑ j ∈ Finset.Ioc J N, if ∃ l, RankMatching.Matched A l j then 1 else 0 := by
620
- classical
621
- have he : Prod.snd '' columnMatches A J N =
622
- ↑((Finset.Ioc J N).filter (fun j => ∃ l, RankMatching.Matched A l j)) := by
623
- ext j
624
- simp only [Set.mem_image, columnMatches, Set.mem_ofPred_eq, Finset.mem_coe,
625
- Finset.mem_filter, Finset.mem_Ioc]
626
- constructor
627
- · rintro ⟨⟨l,j'⟩,⟨hm,hJ,hN⟩,rfl⟩
628
- exact ⟨⟨hJ,hN⟩,l,hm⟩
629
- · rintro ⟨⟨hJ,hN⟩,l,hm⟩
630
- exact ⟨(l,j),⟨hm,hJ,hN⟩,rfl⟩
631
- rw [← (columnMatches_snd_inj A hA J N).ncard_image, he,
632
- Set.ncard_coe_finset, Finset.sum_boole]
633
- rfl
634
-
635
- lemma columnMatches_partition (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)
636
- (J N : ℤ) :
637
- (columnMatches A J N).ncard = (crossingStageMatches A J N).ncard +
638
- RankMatching.blockRank A (J + 1) N := by
639
- classical
640
- let high := ((Finset.Icc (J + 1) N ×ˢ Finset.Icc (J + 1) N).filter
641
- (fun p : ℤ × ℤ => RankMatching.Matched A p.1 p.2))
642
- have he : columnMatches A J N = crossingStageMatches A J N ∪ (high : Set (ℤ × ℤ)) := by
643
- ext p
644
- simp only [columnMatches, crossingStageMatches, Set.mem_ofPred_eq, Set.mem_union,
645
- high, Finset.mem_coe, Finset.mem_filter, Finset.mem_product, Finset.mem_Icc]
646
- constructor
647
- · rintro ⟨hm,hJ,hN⟩
648
- by_cases hl : p.1 ≤ J
649
- · exact Or.inl ⟨hm,hl,hJ,hN⟩
650
- · have hh := matched_le A hA hm
651
- exact Or.inr ⟨⟨⟨by omega,by omega⟩,⟨by omega,hN⟩⟩,hm⟩
652
- · rintro (⟨hm,hl,hJ,hN⟩ | ⟨⟨hl,hj⟩,hm⟩)
653
- · exact ⟨hm,hJ,hN⟩
654
- · exact ⟨hm,by omega,hj.2⟩
655
- have hd : Disjoint (crossingStageMatches A J N) (high : Set (ℤ × ℤ)) := by
656
- apply Set.disjoint_left.mpr
657
- intro p hp hq
658
- simp only [high, Finset.mem_coe, Finset.mem_filter, Finset.mem_product,
659
- Finset.mem_Icc] at hq
660
- have hh := hp.2.1
661
- omega
662
- have hf : (crossingStageMatches A J N).Finite :=
663
- (columnMatches_finite A hA J N).subset (fun _ h => ⟨h.1,h.2.2⟩)
664
- rw [he, Set.ncard_union_eq hd hf high.finite_toSet, Set.ncard_coe_finset,
665
- RankMatching.rank_eq_count A hA]
666
- rfl
667
-
668
- lemma imageModulo_finrank_partition [Finite k]
669
- (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (J N : ℤ) :
670
- Module.finrank k (imageModulo a J N) =
671
- (crossingStageMatches (matrixOf a) J N).ncard + RankMatching.blockRank (matrixOf a) (J + 1) N := by
672
- rw [imageModulo_finrank a ha, ← columnMatches_ncard _ (matrixOf_triangular a ha),
673
- columnMatches_partition _ (matrixOf_triangular a ha)]
674
-
675
- lemma stageImage_le_ker_projection (a : LaurentSeries k →ₗ[k] LaurentSeries k)
676
- (ha : PreservesPoles a) (J : ℤ) : stageImage a J ≤ (poleProjection (J + 1)).ker := by
677
- intro f hf
678
- change poleProjection (J + 1) f = 0
679
- apply poleProjection_eq_zero.mpr
680
- simpa using stageImage_le_poleLattice a ha J hf
681
-
682
- def quotientProjection (a : LaurentSeries k →ₗ[k] LaurentSeries k)
683
- (ha : PreservesPoles a) (J : ℤ) :
684
- (LaurentSeries k ⧸ stageImage a J) →ₗ[k] (ℤ → k) :=
685
- (stageImage a J).liftQ (poleProjection (J + 1)) (stageImage_le_ker_projection a ha J)
686
-
687
- @[simp] lemma quotientProjection_mkQ (a : LaurentSeries k →ₗ[k] LaurentSeries k)
688
- (ha : PreservesPoles a) (J : ℤ) (f : LaurentSeries k) :
689
- quotientProjection a ha J ((stageImage a J).mkQ f) = poleProjection (J + 1) f := rfl
690
-
691
- def crossingStage (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :
692
- Submodule k (LaurentSeries k ⧸ stageImage a J) :=
693
- (stageImage a N ⊓ poleLattice J).map (stageImage a J).mkQ
694
-
695
- lemma crossingStage_mono (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :
696
- Monotone (crossingStage a J) := fun _ _ h =>
697
- Submodule.map_mono (inf_le_inf_right _ (stageImage_mono a h))
698
-
699
- lemma crossingStage_finite (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :
700
- FiniteDimensional k (crossingStage a J N) := by
701
- let := imageModulo_finite a J N
702
- exact Submodule.finiteDimensional_of_le (show crossingStage a J N ≤ imageModulo a J N
703
- from Submodule.map_mono inf_le_left)
704
-
705
- lemma crossingStage_eq_inf (a : LaurentSeries k →ₗ[k] LaurentSeries k)
706
- (ha : PreservesPoles a) (J N : ℤ) :
707
- crossingStage a J N = imageModulo a J N ⊓ (quotientProjection a ha J).ker := by
708
- ext z
709
- constructor
710
- · rintro ⟨f,⟨hf,hJ⟩,rfl⟩
711
- exact ⟨⟨f,hf,rfl⟩, poleProjection_eq_zero.mpr (by simpa using hJ)⟩
712
- · rintro ⟨⟨f,hf,rfl⟩,hz⟩
713
- refine ⟨f,⟨hf,?_⟩,rfl⟩
714
- have he : poleProjection (J + 1) f = 0 := hz
715
- simpa using poleProjection_eq_zero.mp he
716
-
717
- lemma quotientProjection_stage_range (a : LaurentSeries k →ₗ[k] LaurentSeries k)
718
- (ha : PreservesPoles a) (J N : ℤ) :
719
- ((quotientProjection a ha J).domRestrict (imageModulo a J N)).range =
720
- RankMatching.columnSpace (matrixOf a) (J + 1) N := by
721
- rw [LinearMap.range_domRestrict, columnSpace_eq_projectedImage a ha]
722
- ext v
723
- constructor
724
- · rintro ⟨z,⟨f,hf,rfl⟩,rfl⟩
725
- exact ⟨f,hf,rfl⟩
726
- · rintro ⟨f,hf,rfl⟩
727
- exact ⟨(stageImage a J).mkQ f, ⟨f,hf,rfl⟩,rfl⟩
728
-
729
- lemma crossingStage_finrank [Finite k]
730
- (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (J N : ℤ) :
731
- Module.finrank k (crossingStage a J N) = (crossingStageMatches (matrixOf a) J N).ncard := by
732
- let := imageModulo_finite a J N
733
- let f := (quotientProjection a ha J).domRestrict (imageModulo a J N)
734
- have hr := LinearMap.finrank_range_add_finrank_ker f
735
- have hk : Module.finrank k f.ker = Module.finrank k (crossingStage a J N) := by
736
- rw [← Submodule.finrank_map_subtype_eq (imageModulo a J N) f.ker,
737
- show f.ker = ((quotientProjection a ha J).ker).comap (imageModulo a J N).subtype
738
- from LinearMap.ker_domRestrict _ _,
739
- Submodule.map_comap_subtype, ← crossingStage_eq_inf a ha]
740
- have hi : Module.finrank k f.range = RankMatching.blockRank (matrixOf a) (J + 1) N := by
741
- rw [quotientProjection_stage_range, ← RankMatching.blockRank_eq_finrank _ (matrixOf_triangular a ha)]
742
- rw [hk,hi,imageModulo_finrank_partition a ha] at hr
743
- omega
744
-
745
- def crossingSpace (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :
746
- Submodule k (LaurentSeries k ⧸ stageImage a J) :=
747
- (a.range ⊓ poleLattice J).map (stageImage a J).mkQ
748
-
749
- lemma crossingStage_le_space (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :
750
- crossingStage a J N ≤ crossingSpace a J := by
751
- apply Submodule.map_mono
752
- apply inf_le_inf_right
753
- rintro f ⟨g,hg,rfl⟩
754
- exact ⟨g,rfl⟩
755
-
756
- lemma crossingSpace_stabilizes [Finite k]
757
- (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)
758
- (J : ℤ) (hc : (crossing a J).Finite) :
759
- ∃ N : ℤ, J ≤ N ∧ crossingSpace a J = crossingStage a J N ∧
760
- crossingStageMatches (matrixOf a) J N = crossing a J := by
761
- obtain ⟨b,hb⟩ := (hc.image Prod.snd).bddAbove
762
- let N := max J b
763
- have he (M : ℤ) (hM : N ≤ M) :
764
- crossingStageMatches (matrixOf a) J M = crossing a J := by
765
- ext p
766
- constructor
767
- · intro hp
768
- exact ⟨hp.1,hp.2.1,hp.2.2.1⟩
769
- · intro hp
770
- exact ⟨hp.1,hp.2.1,hp.2.2,le_trans (hb ⟨p,hp,rfl⟩) (le_trans (le_max_right J b) hM)⟩
771
- refine ⟨N, le_max_left _ _, ?_, he N le_rfl⟩
772
- apply le_antisymm _ (crossingStage_le_space a J N)
773
- rintro z ⟨f,⟨⟨x,hx⟩,hf⟩,rfl⟩
774
- obtain ⟨M,hM⟩ := exists_poleLattice x
775
- have heq : crossingStage a J N = crossingStage a J (max N M) := by
776
- let := crossingStage_finite a J (max N M)
777
- apply Submodule.eq_of_le_of_finrank_eq (crossingStage_mono a J (le_max_left _ _))
778
- rw [crossingStage_finrank a ha, crossingStage_finrank a ha,
779
- he N le_rfl, he (max N M) (le_max_left _ _)]
780
- rw [heq]
781
- exact ⟨f,⟨⟨x,poleLattice_mono (le_max_right N M) hM,hx⟩,hf⟩,rfl⟩
782
-
783
- def crossingQuotientEquiv (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :
784
- crossingQuotient a J ≃ₗ[k] crossingSpace a J := by
785
- let I := a.range ⊓ poleLattice (k := k) J
786
- let f := (stageImage a J).mkQ.domRestrict I
787
- have hk : f.ker = (stageImage a J).comap I.subtype := by
788
- rw [LinearMap.ker_domRestrict, Submodule.ker_mkQ]
789
- exact (Submodule.quotEquivOfEq _ _ hk.symm).trans
790
- (f.quotKerEquivRange.trans (LinearEquiv.ofEq _ _ (LinearMap.range_domRestrict _ _)))
791
-
792
- theorem crossing_dimension [Finite k]
793
- (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)
794
- (hc : ∀ J, (crossing a J).Finite) (J : ℤ) :
795
- FiniteDimensional k (crossingQuotient a J) ∧
796
- Module.finrank k (crossingQuotient a J) = (crossing a J).ncard := by
797
- obtain ⟨N,hN,he,hcN⟩ := crossingSpace_stabilizes a ha J (hc J)
798
- have : FiniteDimensional k (crossingSpace a J) := by
799
- rw [he]
800
- exact crossingStage_finite a J N
801
- refine ⟨(crossingQuotientEquiv a J).symm.finiteDimensional, ?_⟩
802
- rw [(crossingQuotientEquiv a J).finrank_eq, he, crossingStage_finrank a ha, hcN]
803
-
804
- lemma range_inf_stabilizes [Finite k]
805
- (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)
806
- (J : ℤ) (hc : (crossing a J).Finite) :
807
- ∃ N : ℤ, a.range ⊓ poleLattice J = stageImage a N ⊓ poleLattice J := by
808
- obtain ⟨N,hN,he,_⟩ := crossingSpace_stabilizes a ha J hc
809
- refine ⟨N,le_antisymm ?_ ?_⟩
810
- · intro f hf
811
- have hq : (stageImage a J).mkQ f ∈ crossingStage a J N := by
812
- rw [← he]
813
- exact ⟨f,hf,rfl⟩
814
- have hi : (stageImage a J).mkQ f ∈ imageModulo a J N :=
815
- (Submodule.map_mono (show stageImage a N ⊓ poleLattice J ≤ stageImage a N
816
- from inf_le_left)) hq
817
- exact ⟨(mem_imageModulo a hN f).mp hi,hf.2⟩
818
- · rintro f ⟨⟨x,hx,rfl⟩,hf⟩
819
- exact ⟨⟨x,rfl⟩,hf⟩
820
-
821
- lemma isCompact_range_inter_poleLattice [Finite k]
822
- (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)
823
- (J : ℤ) (hc : (crossing a J).Finite) :
824
- IsCompact ((Set.range a) ∩ (poleLattice (k := k) J : Set (LaurentSeries k))) := by
825
- obtain ⟨N,he⟩ := range_inf_stabilizes a ha J hc
826
- change IsCompact (↑(a.range ⊓ poleLattice J) : Set (LaurentSeries k))
827
- rw [he]
828
- change IsCompact ((a '' (poleLattice (k := k) N : Set (LaurentSeries k))) ∩
829
- (poleLattice (k := k) J : Set (LaurentSeries k)))
830
- exact ((isCompact_poleLattice N).image (continuous_of_preservesPoles a ha)).inter_right
831
- (isClosed_poleLattice J)
832
-
833
- theorem closed_image [Finite k]
834
- (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)
835
- (hc : ∀ J, (crossing a J).Finite) :
836
- IsClosed (Set.range a) := by
837
- rw [← isOpen_compl_iff, isOpen_iff_forall_mem_open]
838
- intro f hf
839
- obtain ⟨J,hJ⟩ := exists_poleLattice f
840
- refine ⟨(poleLattice (k := k) J : Set (LaurentSeries k)) ∩
841
- ((Set.range a) ∩ (poleLattice (k := k) J : Set (LaurentSeries k)))ᶜ, ?_, ?_, ?_⟩
842
- · intro g hg hga
843
- exact hg.2 ⟨hga,hg.1⟩
844
- · exact (isOpen_poleLattice J).inter
845
- (isCompact_range_inter_poleLattice a ha J (hc J)).isClosed.isOpen_compl
846
- · exact ⟨hJ,fun h => hf h.1⟩
847
-
848
- end HahnWilson.PivotTopology
849
-
850
- end
851
-
852
- end OAI
 
1
+ import OAI.LinearAlgebra.RankMatching.Basic
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ open scoped BigOperators nonZeroDivisors
7
+ open LinearMap Submodule
8
+ open CategoryTheory CategoryTheory.Limits HomologicalComplex
9
+
10
+ namespace HahnWilson.PivotTopology
11
+ open HahnSeries
12
+ open scoped BigOperators Topology
13
+ variable {k : Type*} [Field k]
14
+
15
+ def poleLattice (J : ℤ) : Submodule k (LaurentSeries k) where
16
+ carrier := {f | ∀ i : ℤ, J < i → f.coeff (-i) = 0}
17
+ zero_mem' := by simp
18
+ add_mem' hf hg i hi := by simp [hf i hi, hg i hi]
19
+ smul_mem' c f hf i hi := by simp [hf i hi]
20
+
21
+ def monomial (j : ℤ) : LaurentSeries k := HahnSeries.single (-j) 1
22
+
23
+ def PreservesPoles (a : LaurentSeries k →ₗ[k] LaurentSeries k) : Prop :=
24
+ ∀ J, ∀ f ∈ poleLattice (k := k) J, a f ∈ poleLattice (k := k) J
25
+
26
+ def matrixOf (a : LaurentSeries k →ₗ[k] LaurentSeries k) : Matrix ℤ ℤ k :=
27
+ fun l j => (a (monomial j)).coeff (-l)
28
+
29
+ def HasLeadingTerm (f : LaurentSeries k) (j : ℤ) : Prop :=
30
+ f ∈ poleLattice (k := k) j ∧ f.coeff (-j) = 1
31
+
32
+ def HasLeadingPosition (f : LaurentSeries k) (j : ℤ) : Prop :=
33
+ f ∈ poleLattice (k := k) j ∧ f.coeff (-j) ≠ 0
34
+
35
+ def crossing (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) : Set (ℤ × ℤ) :=
36
+ {p | RankMatching.Matched (matrixOf a) p.1 p.2 ∧ p.1 ≤ J ∧ J < p.2}
37
+
38
+ def crossingQuotient (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :=
39
+ ↥(LinearMap.range a ⊓ poleLattice (k := k) J) ⧸
40
+ Submodule.comap (LinearMap.range a ⊓ poleLattice (k := k) J).subtype
41
+ ((poleLattice (k := k) J).map a)
42
+
43
+ instance crossingQuotient_addCommGroup (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :
44
+ AddCommGroup (crossingQuotient a J) := by
45
+ unfold crossingQuotient
46
+ infer_instance
47
+
48
+ instance crossingQuotient_module (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :
49
+ Module k (crossingQuotient a J) := by
50
+ unfold crossingQuotient
51
+ infer_instance
52
+
53
+ @[simp] lemma mem_poleLattice (J : ℤ) (f : LaurentSeries k) :
54
+ f ∈ poleLattice J ↔ ∀ i : ℤ, J < i → f.coeff (-i) = 0 := Iff.rfl
55
+
56
+ lemma poleLattice_mono {I J : ℤ} (h : I ≤ J) :
57
+ poleLattice (k := k) I ≤ poleLattice J := by
58
+ intro f hf i hi
59
+ exact hf i (lt_of_le_of_lt h hi)
60
+
61
+ @[simp] lemma coeff_monomial (j i : ℤ) :
62
+ (monomial (k := k) j).coeff (-i) = if i = j then 1 else 0 := by
63
+ simp [monomial, HahnSeries.coeff_single]
64
+
65
+ lemma monomial_mem {j J : ℤ} (h : j ≤ J) : monomial (k := k) j ∈ poleLattice J := by
66
+ intro i hi
67
+ simp [show i ≠ j by omega]
68
+
69
+ lemma exists_poleLattice (f : LaurentSeries k) : ∃ J, f ∈ poleLattice J := by
70
+ refine ⟨-f.order, ?_⟩
71
+ intro i hi
72
+ exact HahnSeries.coeff_eq_zero_of_lt_order (by omega)
73
+
74
+ lemma matrixOf_triangular (a : LaurentSeries k →ₗ[k] LaurentSeries k)
75
+ (ha : PreservesPoles a) : RankMatching.Triangular (matrixOf a) := by
76
+ intro l j h
77
+ exact ha j (monomial j) (monomial_mem le_rfl) l h
78
+
79
+ def truncate (f : LaurentSeries k) (L J : ℤ) : LaurentSeries k :=
80
+ ∑ c ∈ Finset.Icc L J, f.coeff (-c) • monomial c
81
+
82
+ lemma coeff_truncate (f : LaurentSeries k) (L J i : ℤ) :
83
+ (truncate f L J).coeff (-i) = if L ≤ i ∧ i ≤ J then f.coeff (-i) else 0 := by
84
+ classical
85
+ simp [truncate, HahnSeries.coeff_sum, HahnSeries.coeff_smul, smul_eq_mul,
86
+ mul_ite]
87
+
88
+ lemma truncate_mem (f : LaurentSeries k) (L J : ℤ) : truncate f L J ∈ poleLattice J := by
89
+ intro i hi
90
+ rw [coeff_truncate, ite_eq_right (by omega)]
91
+
92
+ lemma sub_truncate_mem {f : LaurentSeries k} {L J : ℤ} (hf : f ∈ poleLattice J) :
93
+ f - truncate f L J ∈ poleLattice (L - 1) := by
94
+ intro i hi
95
+ rw [HahnSeries.coeff_sub, coeff_truncate]
96
+ by_cases hij : i ≤ J
97
+ · rw [ite_eq_left (by omega), sub_self]
98
+ · rw [ite_eq_right (by omega), sub_zero, hf i (by omega)]
99
+
100
+ def poleProjection (L : ℤ) : LaurentSeries k →ₗ[k] (ℤ → k) where
101
+ toFun f i := if L ≤ i then f.coeff (-i) else 0
102
+ map_add' f g := by ext i; by_cases hi : L ≤ i <;> simp [hi]
103
+ map_smul' c f := by ext i; by_cases hi : L ≤ i <;> simp [hi]
104
+
105
+ lemma poleProjection_eq_zero {L : ℤ} {f : LaurentSeries k} :
106
+ poleProjection L f = 0 ↔ f ∈ poleLattice (L - 1) := by
107
+ constructor
108
+ · intro h i hi
109
+ have := congrFun h i
110
+ simpa [poleProjection, show L ≤ i by omega] using this
111
+ · intro h
112
+ ext i
113
+ by_cases hi : L ≤ i
114
+ · simp [poleProjection, hi, h i (by omega)]
115
+ · simp [poleProjection, hi]
116
+
117
+ @[simp] lemma poleProjection_monomial_image
118
+ (a : LaurentSeries k →ₗ[k] LaurentSeries k) (L j : ℤ) :
119
+ poleProjection L (a (monomial j)) = RankMatching.column (matrixOf a) L j := rfl
120
+
121
+ lemma poleProjection_truncate_image (a : LaurentSeries k →ₗ[k] LaurentSeries k)
122
+ (ha : PreservesPoles a) {f : LaurentSeries k} {L J : ℤ}
123
+ (hf : f ∈ poleLattice J) :
124
+ poleProjection L (a (truncate f L J)) = poleProjection L (a f) := by
125
+ have h := (poleProjection_eq_zero).mpr (ha (L - 1) _ (sub_truncate_mem hf))
126
+ rw [map_sub, map_sub, sub_eq_zero] at h
127
+ exact h.symm
128
+
129
+ lemma columnSpace_eq_projectedImage (a : LaurentSeries k →ₗ[k] LaurentSeries k)
130
+ (ha : PreservesPoles a) (L J : ℤ) :
131
+ RankMatching.columnSpace (matrixOf a) L J =
132
+ ((poleLattice J).map a).map (poleProjection L) := by
133
+ classical
134
+ apply le_antisymm
135
+ · apply Submodule.span_le.mpr
136
+ rintro _ ⟨c, hc, rfl⟩
137
+ exact ⟨a (monomial c), ⟨monomial c, monomial_mem hc, rfl⟩, rfl⟩
138
+ · rintro y ⟨z, ⟨f,hf,rfl⟩,rfl⟩
139
+ rw [← poleProjection_truncate_image a ha hf]
140
+ simp only [truncate, map_sum, map_smul]
141
+ exact Submodule.sum_mem _ fun c hc =>
142
+ Submodule.smul_mem _ _ (Submodule.subset_span
143
+ ⟨c, (Finset.mem_Icc.mp hc).2, rfl⟩)
144
+
145
+ lemma increment_zero_iff_finite_solution
146
+ (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (L j : ℤ) :
147
+ RankMatching.increment (matrixOf a) L j = 0 ↔
148
+ ∃ f, HasLeadingTerm f j ∧ a f ∈ poleLattice (L - 1) := by
149
+ rw [RankMatching.increment_eq_zero_iff, columnSpace_eq_projectedImage a ha]
150
+ constructor
151
+ · rintro ⟨z, ⟨g,hg,rfl⟩,heq⟩
152
+ refine ⟨monomial j - g, ⟨?_, ?_⟩, ?_⟩
153
+ · intro i hi
154
+ simp only [HahnSeries.coeff_sub, coeff_monomial,
155
+ ite_eq_right (show i ≠ j by omega), hg i (by omega), sub_self]
156
+ · simp [HahnSeries.coeff_sub, hg j (by omega)]
157
+ · apply poleProjection_eq_zero.mp
158
+ rw [map_sub, map_sub, poleProjection_monomial_image, ← heq, sub_self]
159
+ · rintro ⟨f, ⟨hf,hfj⟩,haf⟩
160
+ have hg : monomial j - f ∈ poleLattice (j - 1) := by
161
+ intro i hi
162
+ by_cases hij : i = j
163
+ · subst i; simp [HahnSeries.coeff_sub, hfj]
164
+ · simp [HahnSeries.coeff_sub, coeff_monomial, hij, hf i (by omega)]
165
+ refine ⟨a (monomial j - f), ⟨monomial j - f, hg, rfl⟩, ?_⟩
166
+ rw [map_sub, map_sub, poleProjection_monomial_image,
167
+ poleProjection_eq_zero.mpr haf, sub_zero]
168
+
169
+ open WithZero
170
+
171
+ lemma mem_poleLattice_iff_valuation (J : ℤ) (f : LaurentSeries k) :
172
+ f ∈ poleLattice J ↔ Valued.v f ≤ WithZero.exp J := by
173
+ rw [show J = -(-J) by omega, LaurentSeries.valuation_le_iff_coeff_lt_eq_zero]
174
+ constructor
175
+ · intro hf n hn
176
+ simpa using hf (-n) (by omega)
177
+ · intro hf i hi
178
+ exact hf (-i) (by omega)
179
+
180
+ lemma poleLattice_eq_ball (J : ℤ) :
181
+ (poleLattice (k := k) J : Set (LaurentSeries k)) =
182
+ {f | (Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict f ≤
183
+ (Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict (monomial J)} := by
184
+ ext f
185
+ change f ∈ poleLattice J ↔ (Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict f ≤
186
+ (Valued.v : Valuation (LaurentSeries k) ℤᵐ⁰).restrict (monomial J)
187
+ rw [Valuation.restrict_le_iff, mem_poleLattice_iff_valuation]
188
+ simp [monomial, LaurentSeries.valuation_single_zpow]
189
+
190
+ lemma isClosed_poleLattice (J : ℤ) : IsClosed (poleLattice (k := k) J : Set (LaurentSeries k)) := by
191
+ rw [poleLattice_eq_ball]
192
+ exact Valued.isClosed_closedBall _ _
193
+
194
+ lemma isOpen_poleLattice (J : ℤ) : IsOpen (poleLattice (k := k) J : Set (LaurentSeries k)) := by
195
+ rw [poleLattice_eq_ball]
196
+ apply Valued.isOpen_closedBall
197
+ rw [ne_eq, Valuation.restrict_eq_zero_iff]
198
+ simp [monomial, LaurentSeries.valuation_single_zpow]
199
+
200
+ lemma poleLattice_nhds_basis :
201
+ (𝓝 (0 : LaurentSeries k)).HasBasis (fun _ : ℤ => True)
202
+ (fun J => (poleLattice (k := k) J : Set (LaurentSeries k))) := by
203
+ let v : Valuation (LaurentSeries k) ℤᵐ⁰ := Valued.v
204
+ apply (Valued.hasBasis_nhds_zero (LaurentSeries k) ℤᵐ⁰).to_hasBasis
205
+ · intro γ _
206
+ let r : ℤᵐ⁰ := MonoidWithZeroHom.ValueGroup₀.embedding γ.val
207
+ have hr : r ≠ 0 := (Units.map
208
+ (MonoidWithZeroHom.ValueGroup₀.embedding (f := .ofClass v)).toMonoidHom γ).ne_zero
209
+ refine ⟨WithZero.log r - 1, trivial, ?_⟩
210
+ intro f hf
211
+ rw [Set.mem_ofPred_eq, Valuation.restrict_lt_iff_lt_embedding]
212
+ apply (mem_poleLattice_iff_valuation _ f).mp hf |>.trans_lt
213
+ change WithZero.exp (WithZero.log r - 1) < r
214
+ calc
215
+ _ < WithZero.exp (WithZero.log r) := WithZero.exp_lt_exp.mpr (by omega)
216
+ _ = r := WithZero.exp_log hr
217
+ · intro J _
218
+ have hn : v.restrict (monomial J) ≠ 0 := by
219
+ rw [ne_eq, Valuation.restrict_eq_zero_iff]
220
+ simp [v, monomial, LaurentSeries.valuation_single_zpow]
221
+ refine ⟨Units.mk0 _ hn, trivial, ?_⟩
222
+ intro f hf
223
+ rw [poleLattice_eq_ball]
224
+ change v.restrict f < v.restrict (monomial J) at hf
225
+ exact hf.le
226
+
227
+ lemma continuous_of_preservesPoles (a : LaurentSeries k →ₗ[k] LaurentSeries k)
228
+ (ha : PreservesPoles a) : Continuous a := by
229
+ apply continuous_of_continuousAt_zero a
230
+ simp only [ContinuousAt, map_zero]
231
+ rw [poleLattice_nhds_basis.tendsto_iff poleLattice_nhds_basis]
232
+ exact fun J _ => ⟨J, trivial, ha J⟩
233
+
234
+ lemma continuous_of_bounded_coefficients [UniformSpace k] [DiscreteTopology k]
235
+ {X : Type*} [TopologicalSpace X] (g : X → LaurentSeries k) (J : ℤ)
236
+ (hg : ∀ x, g x ∈ poleLattice J)
237
+ (hcoeff : ∀ n : ℤ, Continuous (fun x => (g x).coeff n)) : Continuous g := by
238
+ rw [continuous_iff_continuousAt]
239
+ intro x
240
+ apply tendsto_sub_nhds_zero_iff.mp
241
+ rw [poleLattice_nhds_basis.tendsto_right_iff]
242
+ intro M _
243
+ have hev : ∀ᶠ y in 𝓝 x, ∀ i ∈ Finset.Ioc M J,
244
+ (g y).coeff (-i) = (g x).coeff (-i) := by
245
+ rw [Filter.eventually_all_finset]
246
+ intro i _
247
+ exact (hcoeff (-i)).continuousAt.eventually
248
+ ((isOpen_discrete {(g x).coeff (-i)}).mem_nhds rfl)
249
+ filter_upwards [hev] with y hy
250
+ intro i hi
251
+ rw [HahnSeries.coeff_sub, sub_eq_zero]
252
+ by_cases hij : i ≤ J
253
+ · exact hy i (Finset.mem_Ioc.mpr ⟨hi,hij⟩)
254
+ · rw [hg y i (by omega), hg x i (by omega)]
255
+
256
+ def stageSeries (J : ℤ) (c : ℤ → k) : LaurentSeries k :=
257
+ HahnSeries.ofSuppBddBelow (fun n => if -J ≤ n then c n else 0)
258
+ ⟨-J, by
259
+ intro n hn
260
+ by_contra h
261
+ exact hn (ite_eq_right h)⟩
262
+
263
+ @[simp] lemma coeff_stageSeries (J : ℤ) (c : ℤ → k) (n : ℤ) :
264
+ (stageSeries J c).coeff n = if -J ≤ n then c n else 0 := rfl
265
+
266
+ lemma stageSeries_mem (J : ℤ) (c : ℤ → k) : stageSeries J c ∈ poleLattice J := by
267
+ intro i hi
268
+ rw [coeff_stageSeries, ite_eq_right (by omega)]
269
+
270
+ lemma range_stageSeries (J : ℤ) :
271
+ Set.range (stageSeries (k := k) J) = (poleLattice (k := k) J : Set (LaurentSeries k)) := by
272
+ ext f
273
+ constructor
274
+ · rintro ⟨c,rfl⟩
275
+ exact stageSeries_mem J c
276
+ · intro hf
277
+ refine ⟨f.coeff, ?_⟩
278
+ apply HahnSeries.ext
279
+ funext n
280
+ rw [coeff_stageSeries]
281
+ split_ifs with hn
282
+ · rfl
283
+ · symm
284
+ simpa using hf (-n) (by omega)
285
+
286
+ lemma continuous_stageSeries [UniformSpace k] [DiscreteTopology k] (J : ℤ) :
287
+ Continuous (stageSeries (k := k) J) := by
288
+ apply continuous_of_bounded_coefficients _ J (stageSeries_mem J)
289
+ intro n
290
+ simp only [coeff_stageSeries]
291
+ split_ifs
292
+ · exact continuous_apply n
293
+ · exact continuous_const
294
+
295
+ lemma isCompact_poleLattice [Finite k] (J : ℤ) :
296
+ IsCompact (poleLattice (k := k) J : Set (LaurentSeries k)) := by
297
+ let : UniformSpace k := ⊥
298
+ rw [← range_stageSeries, ← Set.image_univ]
299
+ exact isCompact_univ.image (continuous_stageSeries J)
300
+
301
+ lemma isCompact_leadingTerm [Finite k] (j : ℤ) :
302
+ IsCompact {f : LaurentSeries k | HasLeadingTerm f j} := by
303
+ let : UniformSpace k := ⊥
304
+ exact (isCompact_poleLattice j).inter_right
305
+ (isClosed_eq (LaurentSeries.uniformContinuous_coeff (-j)).continuous continuous_const)
306
+
307
+ lemma isClosed_leadingTerm (j : ℤ) :
308
+ IsClosed {f : LaurentSeries k | HasLeadingTerm f j} := by
309
+ let : UniformSpace k := ⊥
310
+ exact (isClosed_poleLattice j).inter
311
+ (isClosed_eq (LaurentSeries.uniformContinuous_coeff (-j)).continuous continuous_const)
312
+
313
+ lemma unmatched_iff_increments_zero (A : Matrix ℤ ℤ k)
314
+ (hA : RankMatching.Triangular A) (j : ℤ) :
315
+ (∀ l, ¬ RankMatching.Matched A l j) ↔ ∀ L, RankMatching.increment A L j = 0 := by
316
+ constructor
317
+ · intro h L
318
+ by_cases hLj : L ≤ j
319
+ · have hw : ∀ l, RankMatching.weight A l j = 0 := fun l =>
320
+ (RankMatching.weight_zero_or_one A hA l j).resolve_right (h l)
321
+ have hs := RankMatching.sum_interval_difference
322
+ (fun l => (RankMatching.increment A l j : ℤ)) L j (by omega)
323
+ simp_rw [← RankMatching.weight_eq_increment_sub A hA, hw] at hs
324
+ rw [RankMatching.increment_zero A hA (show j < j + 1 by omega)] at hs
325
+ simpa using hs.symm
326
+ · exact RankMatching.increment_zero A hA (by omega)
327
+ · intro h l hm
328
+ have hi := (RankMatching.matched_iff_increments A hA l j).mp hm
329
+ rw [h l] at hi
330
+ exact Nat.zero_ne_one hi.1
331
+
332
+ theorem unmatched_iff_kernel [Finite k]
333
+ (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (j : ℤ) :
334
+ (∀ l, ¬ RankMatching.Matched (matrixOf a) l j) ↔
335
+ ∃ f, a f = 0 ∧ HasLeadingTerm f j := by
336
+ rw [unmatched_iff_increments_zero _ (matrixOf_triangular a ha)]
337
+ constructor
338
+ · intro h
339
+ let S : ℤ → Set (LaurentSeries k) := fun L =>
340
+ {f | HasLeadingTerm f j ∧ a f ∈ poleLattice (L - 1)}
341
+ have hc : ∀ L, IsClosed (S L) := fun L =>
342
+ (isClosed_leadingTerm j).inter
343
+ ((isClosed_poleLattice (L - 1)).preimage (continuous_of_preservesPoles a ha))
344
+ have hk : ∀ L, IsCompact (S L) := fun L =>
345
+ (isCompact_leadingTerm j).of_isClosed_subset (hc L) (fun _ h => h.1)
346
+ have hn : ∀ L, (S L).Nonempty := fun L =>
347
+ (increment_zero_iff_finite_solution a ha L j).mp (h L)
348
+ have hd : Directed (fun s t : Set (LaurentSeries k) => s ⊇ t) S := by
349
+ intro L M
350
+ refine ⟨min L M, ?_, ?_⟩
351
+ · intro f hf
352
+ exact ⟨hf.1, poleLattice_mono (by omega) hf.2⟩
353
+ · intro f hf
354
+ exact ⟨hf.1, poleLattice_mono (by omega) hf.2⟩
355
+ obtain ⟨f,hf⟩ := IsCompact.nonempty_iInter_of_directed_nonempty_isCompact_isClosed S hd hn hk hc
356
+ have hf' : ∀ L, f ∈ S L := Set.mem_iInter.mp hf
357
+ refine ⟨f, ?_, (hf' j).1⟩
358
+ apply HahnSeries.ext
359
+ funext n
360
+ simpa using (hf' (-n)).2 (-n) (by omega)
361
+ · rintro ⟨f,haf,hfj⟩ L
362
+ apply (increment_zero_iff_finite_solution a ha L j).mpr
363
+ exact ⟨f,hfj,haf ▸ (poleLattice (L - 1)).zero_mem⟩
364
+
365
+ lemma rowRank_step (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A) (l J : ℤ) :
366
+ RankMatching.blockRank A l J = RankMatching.blockRank A (l + 1) J +
367
+ RankMatching.increment (RankMatching.reflected A) (-J) (-l) := by
368
+ have h := RankMatching.blockRank_step (RankMatching.reflected A)
369
+ (RankMatching.triangular_reflected A hA) (-J) (-l)
370
+ simpa only [RankMatching.blockRank_reflected, neg_neg, neg_sub,
371
+ Int.reduceNeg, sub_neg_eq_add, add_comm] using h
372
+
373
+ lemma matchedRow_iff_unequal_ranks (A : Matrix ℤ ℤ k)
374
+ (hA : RankMatching.Triangular A) (l : ℤ) :
375
+ (∃ j, RankMatching.Matched A l j) ↔
376
+ ∃ J, RankMatching.blockRank A l J ≠ RankMatching.blockRank A (l + 1) J := by
377
+ have hn : (∀ j, ¬ RankMatching.Matched A l j) ↔
378
+ ∀ J, RankMatching.blockRank A l J = RankMatching.blockRank A (l + 1) J := by
379
+ have hh := unmatched_iff_increments_zero (RankMatching.reflected A)
380
+ (RankMatching.triangular_reflected A hA) (-l)
381
+ constructor
382
+ · intro h J
383
+ have hh' : ∀ r, ¬ RankMatching.Matched (RankMatching.reflected A) r (-l) := by
384
+ intro r hr
385
+ apply h (-r)
386
+ simpa only [RankMatching.Matched, RankMatching.weight_reflected, neg_neg] using hr
387
+ rw [rowRank_step A hA l J, hh.mp hh' (-J), add_zero]
388
+ · intro h j hm
389
+ have hh' : ∀ r, RankMatching.increment (RankMatching.reflected A) r (-l) = 0 := by
390
+ intro r
391
+ have hs := rowRank_step A hA l (-r)
392
+ rw [neg_neg, h (-r)] at hs
393
+ omega
394
+ apply hh.mpr hh' (-j)
395
+ simpa only [RankMatching.Matched, RankMatching.weight_reflected, neg_neg] using hm
396
+ simpa only [not_forall, not_not] using not_congr hn
397
+
398
+ lemma exists_rowCut_kernel_of_unequal_ranks (A : Matrix ℤ ℤ k)
399
+ (hA : RankMatching.Triangular A) (l J : ℤ)
400
+ (hr : RankMatching.blockRank A l J ≠ RankMatching.blockRank A (l + 1) J) :
401
+ ∃ v ∈ RankMatching.columnSpace A l J,
402
+ RankMatching.rowCut (l + 1) v = 0 ∧ v l ≠ 0 := by
403
+ let F : RankMatching.columnSpace A l J →ₗ[k] RankMatching.columnSpace A (l + 1) J :=
404
+ (RankMatching.rowCut (l + 1)).restrict
405
+ (fun _ hv => RankMatching.rowCut_columnSpace A (by omega) J hv)
406
+ have hs : Function.Surjective F := by
407
+ intro v
408
+ have hm : (v : ℤ → k) ∈ (RankMatching.columnSpace A l J).map
409
+ (RankMatching.rowCut (l + 1)) := by
410
+ rw [RankMatching.rowCut_map_columnSpace A (by omega)]
411
+ exact v.property
412
+ obtain ⟨w,hw,he⟩ := Submodule.mem_map.mp hm
413
+ exact ⟨⟨w,hw⟩, Subtype.ext he⟩
414
+ have hni : ¬ Function.Injective F := by
415
+ intro hi
416
+ apply hr
417
+ have he := (LinearEquiv.ofBijective F ⟨hi,hs⟩).finrank_eq
418
+ simpa only [RankMatching.blockRank_eq_finrank A hA] using he
419
+ have hk : F.ker ≠ ⊥ := fun h => hni (LinearMap.ker_eq_bot.mp h)
420
+ obtain ⟨v,hv,hvz⟩ := F.ker.ne_bot_iff.mp hk
421
+ have hcut : RankMatching.rowCut (l + 1) (v : ℤ → k) = 0 :=
422
+ congrArg Subtype.val (show F v = 0 from hv)
423
+ refine ⟨v, v.property, hcut, ?_⟩
424
+ intro hvl
425
+ apply hvz
426
+ apply Subtype.ext
427
+ funext r
428
+ rcases lt_trichotomy r l with hlt | heq | hgt
429
+ · exact RankMatching.columnSpace_supported A l J v.property hlt
430
+ · simpa [heq] using hvl
431
+ · have he := congrFun hcut r
432
+ simpa [RankMatching.rowCut, hgt] using he
433
+
434
+ theorem matched_row_iff_image
435
+ (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (l : ℤ) :
436
+ (∃ j, RankMatching.Matched (matrixOf a) l j) ↔
437
+ ∃ f, HasLeadingPosition (a f) l := by
438
+ rw [matchedRow_iff_unequal_ranks _ (matrixOf_triangular a ha)]
439
+ constructor
440
+ · rintro ⟨J,hJ⟩
441
+ obtain ⟨v,hv,hcut,hvl⟩ := exists_rowCut_kernel_of_unequal_ranks
442
+ (matrixOf a) (matrixOf_triangular a ha) l J hJ
443
+ rw [columnSpace_eq_projectedImage a ha] at hv
444
+ obtain ⟨z,⟨f,hf,rfl⟩,rfl⟩ := hv
445
+ refine ⟨f, ?_, ?_⟩
446
+ · intro i hi
447
+ have he := congrFun hcut i
448
+ simpa [RankMatching.rowCut, poleProjection, hi,
449
+ show l ≤ i by omega] using he
450
+ · simpa [poleProjection] using hvl
451
+ · rintro ⟨f,hf,hfl⟩
452
+ obtain ⟨J,hJ⟩ := exists_poleLattice f
453
+ refine ⟨J, ?_⟩
454
+ intro heq
455
+ have hv : poleProjection l (a f) ∈ RankMatching.columnSpace (matrixOf a) l J := by
456
+ rw [columnSpace_eq_projectedImage a ha]
457
+ exact ⟨a f,⟨f,hJ,rfl⟩,rfl⟩
458
+ have hcut : RankMatching.rowCut (l + 1) (poleProjection l (a f)) = 0 := by
459
+ ext i
460
+ by_cases hi : l + 1 ≤ i
461
+ · simp [RankMatching.rowCut, poleProjection, show l ≤ i by omega,
462
+ hf i (by omega)]
463
+ · simp [RankMatching.rowCut, show ¬ l < i by omega]
464
+ have hi := RankMatching.rowCut_injOn_of_equal_ranks
465
+ (matrixOf a) (matrixOf_triangular a ha) l J heq
466
+ have he : poleProjection l (a f) = 0 := hi hv (Submodule.zero_mem _) (by simpa using hcut)
467
+ apply hfl
468
+ simpa [poleProjection] using congrFun he l
469
+
470
+ def stageImage (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :
471
+ Submodule k (LaurentSeries k) := (poleLattice J).map a
472
+
473
+ lemma stageImage_mono (a : LaurentSeries k →ₗ[k] LaurentSeries k) : Monotone (stageImage a) := by
474
+ intro I J h
475
+ exact Submodule.map_mono (poleLattice_mono h)
476
+
477
+ lemma stageImage_le_poleLattice (a : LaurentSeries k →ₗ[k] LaurentSeries k)
478
+ (ha : PreservesPoles a) (J : ℤ) : stageImage a J ≤ poleLattice J := by
479
+ rintro z ⟨f,hf,rfl⟩
480
+ exact ha J f hf
481
+
482
+ lemma stageImage_step (a : LaurentSeries k →ₗ[k] LaurentSeries k) (j : ℤ) :
483
+ stageImage a j = stageImage a (j - 1) ⊔ Submodule.span k {a (monomial j)} := by
484
+ apply le_antisymm
485
+ · rintro z ⟨f,hf,rfl⟩
486
+ have ht : f - f.coeff (-j) • monomial j ∈ poleLattice (j - 1) := by
487
+ intro i hi
488
+ by_cases hij : i = j
489
+ · subst i; simp [HahnSeries.coeff_sub, HahnSeries.coeff_smul]
490
+ · simp [HahnSeries.coeff_sub, HahnSeries.coeff_smul, coeff_monomial, hij,
491
+ hf i (by omega)]
492
+ apply Submodule.mem_sup.mpr
493
+ refine ⟨a (f - f.coeff (-j) • monomial j), ⟨_,ht,rfl⟩,
494
+ f.coeff (-j) • a (monomial j),
495
+ Submodule.smul_mem _ _ (Submodule.subset_span (Set.mem_singleton _)), ?_⟩
496
+ simp
497
+ · apply sup_le (stageImage_mono a (by omega))
498
+ rw [Submodule.span_singleton_le_iff_mem]
499
+ exact ⟨monomial j, monomial_mem le_rfl, rfl⟩
500
+
501
+ lemma monomial_image_mem_iff_unmatched [Finite k]
502
+ (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (j : ℤ) :
503
+ a (monomial j) ∈ stageImage a (j - 1) ↔
504
+ ∀ l, ¬ RankMatching.Matched (matrixOf a) l j := by
505
+ rw [unmatched_iff_kernel a ha]
506
+ constructor
507
+ · rintro ⟨g,hg,he⟩
508
+ refine ⟨monomial j - g, by simp [he], ?_, ?_⟩
509
+ · intro i hi
510
+ simp [HahnSeries.coeff_sub, coeff_monomial, show i ≠ j by omega, hg i (by omega)]
511
+ · simp [HahnSeries.coeff_sub, hg j (by omega)]
512
+ · rintro ⟨f,haf,hf,hfj⟩
513
+ refine ⟨monomial j - f, ?_, by simp [haf]⟩
514
+ intro i hi
515
+ by_cases hij : i = j
516
+ · subst i; simp [HahnSeries.coeff_sub, hfj]
517
+ · simp [HahnSeries.coeff_sub, coeff_monomial, hij, hf i (by omega)]
518
+
519
+ def imageModulo (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :
520
+ Submodule k (LaurentSeries k ⧸ stageImage a J) :=
521
+ (stageImage a N).map (stageImage a J).mkQ
522
+
523
+ lemma imageModulo_mono (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :
524
+ Monotone (imageModulo a J) := fun _ _ h => Submodule.map_mono (stageImage_mono a h)
525
+
526
+ lemma imageModulo_zero (a : LaurentSeries k →ₗ[k] LaurentSeries k) {J N : ℤ} (h : N ≤ J) :
527
+ imageModulo a J N = ⊥ := by
528
+ apply le_antisymm _ bot_le
529
+ rw [imageModulo, Submodule.map_le_iff_le_comap, Submodule.comap_bot, Submodule.ker_mkQ]
530
+ exact stageImage_mono a h
531
+
532
+ lemma imageModulo_step (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J n : ℤ) :
533
+ imageModulo a J n = imageModulo a J (n - 1) ⊔
534
+ Submodule.span k {(stageImage a J).mkQ (a (monomial n))} := by
535
+ rw [imageModulo, stageImage_step a n, Submodule.map_sup, Submodule.map_span, Set.image_singleton]
536
+ rfl
537
+
538
+ lemma imageModulo_finite (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :
539
+ FiniteDimensional k (imageModulo a J N) := by
540
+ by_cases h : J ≤ N
541
+ · induction N, h using Int.leInduction with
542
+ | base => rw [imageModulo_zero a le_rfl]; infer_instance
543
+ | succ n hn ih =>
544
+ rw [imageModulo_step, add_sub_cancel_right]
545
+ let := ih
546
+ infer_instance
547
+ · rw [imageModulo_zero a (by omega)]
548
+ infer_instance
549
+
550
+ lemma mem_imageModulo (a : LaurentSeries k →ₗ[k] LaurentSeries k) {J N : ℤ}
551
+ (h : J ≤ N) (f : LaurentSeries k) :
552
+ (stageImage a J).mkQ f ∈ imageModulo a J N ↔ f ∈ stageImage a N := by
553
+ change f ∈ ((stageImage a N).map (stageImage a J).mkQ).comap (stageImage a J).mkQ ↔ _
554
+ rw [Submodule.comap_map_eq, Submodule.ker_mkQ, sup_eq_left.mpr (stageImage_mono a h)]
555
+
556
+ open scoped Classical
557
+
558
+ lemma imageModulo_finrank_step [Finite k]
559
+ (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) {J n : ℤ}
560
+ (h : J < n) :
561
+ Module.finrank k (imageModulo a J n) = Module.finrank k (imageModulo a J (n - 1)) +
562
+ if ∃ l, RankMatching.Matched (matrixOf a) l n then 1 else 0 := by
563
+ classical
564
+ let := imageModulo_finite a J (n - 1)
565
+ rw [imageModulo_step, RankMatching.finrank_sup_singleton,
566
+ mem_imageModulo a (by omega), monomial_image_mem_iff_unmatched a ha]
567
+ by_cases hm : ∃ l, RankMatching.Matched (matrixOf a) l n
568
+ · have hn : ¬ (∀ l, ¬ RankMatching.Matched (matrixOf a) l n) :=
569
+ fun hh => hh hm.choose hm.choose_spec
570
+ simp [hm, hn]
571
+ · simp [show ∀ l, ¬ RankMatching.Matched (matrixOf a) l n from fun l hl => hm ⟨l,hl⟩]
572
+
573
+ lemma imageModulo_finrank [Finite k]
574
+ (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (J N : ℤ) :
575
+ Module.finrank k (imageModulo a J N) =
576
+ ∑ j ∈ Finset.Ioc J N, if ∃ l, RankMatching.Matched (matrixOf a) l j then 1 else 0 := by
577
+ classical
578
+ by_cases h : J ≤ N
579
+ · induction N, h using Int.leInduction with
580
+ | base => rw [imageModulo_zero a (J := J) (N := J) le_rfl, finrank_bot]; simp
581
+ | succ n hn ih =>
582
+ have he : Finset.Ioc J (n + 1) = insert (n + 1) (Finset.Ioc J n) := by
583
+ ext i
584
+ simp only [Finset.mem_Ioc, Finset.mem_insert]
585
+ omega
586
+ rw [imageModulo_finrank_step a ha (by omega), add_sub_cancel_right, ih,
587
+ he, Finset.sum_insert (by simp)]
588
+ omega
589
+ · rw [imageModulo_zero a (by omega), finrank_bot, Finset.Ioc_eq_empty_of_le (by omega),
590
+ Finset.sum_empty]
591
+
592
+ lemma matched_le (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A) {l j : ℤ}
593
+ (h : RankMatching.Matched A l j) : l ≤ j := by
594
+ by_contra hn
595
+ have hz := RankMatching.increment_zero A hA (lt_of_not_ge hn)
596
+ have ho := ((RankMatching.matched_iff_increments A hA l j).mp h).1
597
+ omega
598
+
599
+ def columnMatches (A : Matrix ℤ ℤ k) (J N : ℤ) : Set (ℤ × ℤ) :=
600
+ {p | RankMatching.Matched A p.1 p.2 ∧ J < p.2 ∧ p.2 ≤ N}
601
+
602
+ def crossingStageMatches (A : Matrix ℤ ℤ k) (J N : ℤ) : Set (ℤ × ℤ) :=
603
+ {p | RankMatching.Matched A p.1 p.2 ∧ p.1 ≤ J ∧ J < p.2 ∧ p.2 ≤ N}
604
+
605
+ lemma columnMatches_snd_inj (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)
606
+ (J N : ℤ) : Set.InjOn Prod.snd (columnMatches A J N) := by
607
+ rintro ⟨l,j⟩ hp ⟨l',j'⟩ hq he
608
+ change j = j' at he
609
+ subst j'
610
+ exact Prod.ext (RankMatching.column_unique A hA hp.1 hq.1) rfl
611
+
612
+ lemma columnMatches_finite (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)
613
+ (J N : ℤ) : (columnMatches A J N).Finite := by
614
+ exact Set.Finite.of_injOn (fun _ hp => hp.2) (columnMatches_snd_inj A hA J N)
615
+ (Set.finite_Ioc J N)
616
+
617
+ lemma columnMatches_ncard (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)
618
+ (J N : ℤ) : (columnMatches A J N).ncard =
619
+ ∑ j ∈ Finset.Ioc J N, if ∃ l, RankMatching.Matched A l j then 1 else 0 := by
620
+ classical
621
+ have he : Prod.snd '' columnMatches A J N =
622
+ ↑((Finset.Ioc J N).filter (fun j => ∃ l, RankMatching.Matched A l j)) := by
623
+ ext j
624
+ simp only [Set.mem_image, columnMatches, Set.mem_ofPred_eq, Finset.mem_coe,
625
+ Finset.mem_filter, Finset.mem_Ioc]
626
+ constructor
627
+ · rintro ⟨⟨l,j'⟩,⟨hm,hJ,hN⟩,rfl⟩
628
+ exact ⟨⟨hJ,hN⟩,l,hm⟩
629
+ · rintro ⟨⟨hJ,hN⟩,l,hm⟩
630
+ exact ⟨(l,j),⟨hm,hJ,hN⟩,rfl⟩
631
+ rw [← (columnMatches_snd_inj A hA J N).ncard_image, he,
632
+ Set.ncard_coe_finset, Finset.sum_boole]
633
+ rfl
634
+
635
+ lemma columnMatches_partition (A : Matrix ℤ ℤ k) (hA : RankMatching.Triangular A)
636
+ (J N : ℤ) :
637
+ (columnMatches A J N).ncard = (crossingStageMatches A J N).ncard +
638
+ RankMatching.blockRank A (J + 1) N := by
639
+ classical
640
+ let high := ((Finset.Icc (J + 1) N ×ˢ Finset.Icc (J + 1) N).filter
641
+ (fun p : ℤ × ℤ => RankMatching.Matched A p.1 p.2))
642
+ have he : columnMatches A J N = crossingStageMatches A J N ∪ (high : Set (ℤ × ℤ)) := by
643
+ ext p
644
+ simp only [columnMatches, crossingStageMatches, Set.mem_ofPred_eq, Set.mem_union,
645
+ high, Finset.mem_coe, Finset.mem_filter, Finset.mem_product, Finset.mem_Icc]
646
+ constructor
647
+ · rintro ⟨hm,hJ,hN⟩
648
+ by_cases hl : p.1 ≤ J
649
+ · exact Or.inl ⟨hm,hl,hJ,hN⟩
650
+ · have hh := matched_le A hA hm
651
+ exact Or.inr ⟨⟨⟨by omega,by omega⟩,⟨by omega,hN⟩⟩,hm⟩
652
+ · rintro (⟨hm,hl,hJ,hN⟩ | ⟨⟨hl,hj⟩,hm⟩)
653
+ · exact ⟨hm,hJ,hN⟩
654
+ · exact ⟨hm,by omega,hj.2⟩
655
+ have hd : Disjoint (crossingStageMatches A J N) (high : Set (ℤ × ℤ)) := by
656
+ apply Set.disjoint_left.mpr
657
+ intro p hp hq
658
+ simp only [high, Finset.mem_coe, Finset.mem_filter, Finset.mem_product,
659
+ Finset.mem_Icc] at hq
660
+ have hh := hp.2.1
661
+ omega
662
+ have hf : (crossingStageMatches A J N).Finite :=
663
+ (columnMatches_finite A hA J N).subset (fun _ h => ⟨h.1,h.2.2⟩)
664
+ rw [he, Set.ncard_union_eq hd hf high.finite_toSet, Set.ncard_coe_finset,
665
+ RankMatching.rank_eq_count A hA]
666
+ rfl
667
+
668
+ lemma imageModulo_finrank_partition [Finite k]
669
+ (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (J N : ℤ) :
670
+ Module.finrank k (imageModulo a J N) =
671
+ (crossingStageMatches (matrixOf a) J N).ncard + RankMatching.blockRank (matrixOf a) (J + 1) N := by
672
+ rw [imageModulo_finrank a ha, ← columnMatches_ncard _ (matrixOf_triangular a ha),
673
+ columnMatches_partition _ (matrixOf_triangular a ha)]
674
+
675
+ lemma stageImage_le_ker_projection (a : LaurentSeries k →ₗ[k] LaurentSeries k)
676
+ (ha : PreservesPoles a) (J : ℤ) : stageImage a J ≤ (poleProjection (J + 1)).ker := by
677
+ intro f hf
678
+ change poleProjection (J + 1) f = 0
679
+ apply poleProjection_eq_zero.mpr
680
+ simpa using stageImage_le_poleLattice a ha J hf
681
+
682
+ def quotientProjection (a : LaurentSeries k →ₗ[k] LaurentSeries k)
683
+ (ha : PreservesPoles a) (J : ℤ) :
684
+ (LaurentSeries k ⧸ stageImage a J) →ₗ[k] (ℤ → k) :=
685
+ (stageImage a J).liftQ (poleProjection (J + 1)) (stageImage_le_ker_projection a ha J)
686
+
687
+ @[simp] lemma quotientProjection_mkQ (a : LaurentSeries k →ₗ[k] LaurentSeries k)
688
+ (ha : PreservesPoles a) (J : ℤ) (f : LaurentSeries k) :
689
+ quotientProjection a ha J ((stageImage a J).mkQ f) = poleProjection (J + 1) f := rfl
690
+
691
+ def crossingStage (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :
692
+ Submodule k (LaurentSeries k ⧸ stageImage a J) :=
693
+ (stageImage a N ⊓ poleLattice J).map (stageImage a J).mkQ
694
+
695
+ lemma crossingStage_mono (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :
696
+ Monotone (crossingStage a J) := fun _ _ h =>
697
+ Submodule.map_mono (inf_le_inf_right _ (stageImage_mono a h))
698
+
699
+ lemma crossingStage_finite (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :
700
+ FiniteDimensional k (crossingStage a J N) := by
701
+ let := imageModulo_finite a J N
702
+ exact Submodule.finiteDimensional_of_le (show crossingStage a J N ≤ imageModulo a J N
703
+ from Submodule.map_mono inf_le_left)
704
+
705
+ lemma crossingStage_eq_inf (a : LaurentSeries k →ₗ[k] LaurentSeries k)
706
+ (ha : PreservesPoles a) (J N : ℤ) :
707
+ crossingStage a J N = imageModulo a J N ⊓ (quotientProjection a ha J).ker := by
708
+ ext z
709
+ constructor
710
+ · rintro ⟨f,⟨hf,hJ⟩,rfl⟩
711
+ exact ⟨⟨f,hf,rfl⟩, poleProjection_eq_zero.mpr (by simpa using hJ)⟩
712
+ · rintro ���⟨f,hf,rfl⟩,hz⟩
713
+ refine ⟨f,⟨hf,?_⟩,rfl⟩
714
+ have he : poleProjection (J + 1) f = 0 := hz
715
+ simpa using poleProjection_eq_zero.mp he
716
+
717
+ lemma quotientProjection_stage_range (a : LaurentSeries k →ₗ[k] LaurentSeries k)
718
+ (ha : PreservesPoles a) (J N : ℤ) :
719
+ ((quotientProjection a ha J).domRestrict (imageModulo a J N)).range =
720
+ RankMatching.columnSpace (matrixOf a) (J + 1) N := by
721
+ rw [LinearMap.range_domRestrict, columnSpace_eq_projectedImage a ha]
722
+ ext v
723
+ constructor
724
+ · rintro ⟨z,⟨f,hf,rfl⟩,rfl⟩
725
+ exact ⟨f,hf,rfl⟩
726
+ · rintro ⟨f,hf,rfl⟩
727
+ exact ⟨(stageImage a J).mkQ f, ⟨f,hf,rfl⟩,rfl⟩
728
+
729
+ lemma crossingStage_finrank [Finite k]
730
+ (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a) (J N : ℤ) :
731
+ Module.finrank k (crossingStage a J N) = (crossingStageMatches (matrixOf a) J N).ncard := by
732
+ let := imageModulo_finite a J N
733
+ let f := (quotientProjection a ha J).domRestrict (imageModulo a J N)
734
+ have hr := LinearMap.finrank_range_add_finrank_ker f
735
+ have hk : Module.finrank k f.ker = Module.finrank k (crossingStage a J N) := by
736
+ rw [← Submodule.finrank_map_subtype_eq (imageModulo a J N) f.ker,
737
+ show f.ker = ((quotientProjection a ha J).ker).comap (imageModulo a J N).subtype
738
+ from LinearMap.ker_domRestrict _ _,
739
+ Submodule.map_comap_subtype, ← crossingStage_eq_inf a ha]
740
+ have hi : Module.finrank k f.range = RankMatching.blockRank (matrixOf a) (J + 1) N := by
741
+ rw [quotientProjection_stage_range, ← RankMatching.blockRank_eq_finrank _ (matrixOf_triangular a ha)]
742
+ rw [hk,hi,imageModulo_finrank_partition a ha] at hr
743
+ omega
744
+
745
+ def crossingSpace (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :
746
+ Submodule k (LaurentSeries k ⧸ stageImage a J) :=
747
+ (a.range ⊓ poleLattice J).map (stageImage a J).mkQ
748
+
749
+ lemma crossingStage_le_space (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J N : ℤ) :
750
+ crossingStage a J N ≤ crossingSpace a J := by
751
+ apply Submodule.map_mono
752
+ apply inf_le_inf_right
753
+ rintro f ⟨g,hg,rfl⟩
754
+ exact ⟨g,rfl⟩
755
+
756
+ lemma crossingSpace_stabilizes [Finite k]
757
+ (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)
758
+ (J : ℤ) (hc : (crossing a J).Finite) :
759
+ ∃ N : ℤ, J ≤ N ∧ crossingSpace a J = crossingStage a J N ∧
760
+ crossingStageMatches (matrixOf a) J N = crossing a J := by
761
+ obtain ⟨b,hb⟩ := (hc.image Prod.snd).bddAbove
762
+ let N := max J b
763
+ have he (M : ℤ) (hM : N ≤ M) :
764
+ crossingStageMatches (matrixOf a) J M = crossing a J := by
765
+ ext p
766
+ constructor
767
+ · intro hp
768
+ exact ⟨hp.1,hp.2.1,hp.2.2.1⟩
769
+ · intro hp
770
+ exact ⟨hp.1,hp.2.1,hp.2.2,le_trans (hb ⟨p,hp,rfl⟩) (le_trans (le_max_right J b) hM)⟩
771
+ refine ⟨N, le_max_left _ _, ?_, he N le_rfl⟩
772
+ apply le_antisymm _ (crossingStage_le_space a J N)
773
+ rintro z ⟨f,⟨⟨x,hx⟩,hf⟩,rfl⟩
774
+ obtain ⟨M,hM⟩ := exists_poleLattice x
775
+ have heq : crossingStage a J N = crossingStage a J (max N M) := by
776
+ let := crossingStage_finite a J (max N M)
777
+ apply Submodule.eq_of_le_of_finrank_eq (crossingStage_mono a J (le_max_left _ _))
778
+ rw [crossingStage_finrank a ha, crossingStage_finrank a ha,
779
+ he N le_rfl, he (max N M) (le_max_left _ _)]
780
+ rw [heq]
781
+ exact ⟨f,⟨⟨x,poleLattice_mono (le_max_right N M) hM,hx⟩,hf⟩,rfl⟩
782
+
783
+ def crossingQuotientEquiv (a : LaurentSeries k →ₗ[k] LaurentSeries k) (J : ℤ) :
784
+ crossingQuotient a J ≃ₗ[k] crossingSpace a J := by
785
+ let I := a.range ⊓ poleLattice (k := k) J
786
+ let f := (stageImage a J).mkQ.domRestrict I
787
+ have hk : f.ker = (stageImage a J).comap I.subtype := by
788
+ rw [LinearMap.ker_domRestrict, Submodule.ker_mkQ]
789
+ exact (Submodule.quotEquivOfEq _ _ hk.symm).trans
790
+ (f.quotKerEquivRange.trans (LinearEquiv.ofEq _ _ (LinearMap.range_domRestrict _ _)))
791
+
792
+ theorem crossing_dimension [Finite k]
793
+ (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)
794
+ (hc : ∀ J, (crossing a J).Finite) (J : ℤ) :
795
+ FiniteDimensional k (crossingQuotient a J) ∧
796
+ Module.finrank k (crossingQuotient a J) = (crossing a J).ncard := by
797
+ obtain ⟨N,hN,he,hcN⟩ := crossingSpace_stabilizes a ha J (hc J)
798
+ have : FiniteDimensional k (crossingSpace a J) := by
799
+ rw [he]
800
+ exact crossingStage_finite a J N
801
+ refine ⟨(crossingQuotientEquiv a J).symm.finiteDimensional, ?_⟩
802
+ rw [(crossingQuotientEquiv a J).finrank_eq, he, crossingStage_finrank a ha, hcN]
803
+
804
+ lemma range_inf_stabilizes [Finite k]
805
+ (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)
806
+ (J : ℤ) (hc : (crossing a J).Finite) :
807
+ ∃ N : ℤ, a.range ⊓ poleLattice J = stageImage a N ⊓ poleLattice J := by
808
+ obtain ⟨N,hN,he,_⟩ := crossingSpace_stabilizes a ha J hc
809
+ refine ⟨N,le_antisymm ?_ ?_⟩
810
+ · intro f hf
811
+ have hq : (stageImage a J).mkQ f ∈ crossingStage a J N := by
812
+ rw [← he]
813
+ exact ⟨f,hf,rfl⟩
814
+ have hi : (stageImage a J).mkQ f ∈ imageModulo a J N :=
815
+ (Submodule.map_mono (show stageImage a N ⊓ poleLattice J ≤ stageImage a N
816
+ from inf_le_left)) hq
817
+ exact ⟨(mem_imageModulo a hN f).mp hi,hf.2⟩
818
+ · rintro f ⟨⟨x,hx,rfl⟩,hf⟩
819
+ exact ⟨⟨x,rfl⟩,hf⟩
820
+
821
+ lemma isCompact_range_inter_poleLattice [Finite k]
822
+ (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)
823
+ (J : ℤ) (hc : (crossing a J).Finite) :
824
+ IsCompact ((Set.range a) ∩ (poleLattice (k := k) J : Set (LaurentSeries k))) := by
825
+ obtain ⟨N,he⟩ := range_inf_stabilizes a ha J hc
826
+ change IsCompact (↑(a.range ⊓ poleLattice J) : Set (LaurentSeries k))
827
+ rw [he]
828
+ change IsCompact ((a '' (poleLattice (k := k) N : Set (LaurentSeries k))) ∩
829
+ (poleLattice (k := k) J : Set (LaurentSeries k)))
830
+ exact ((isCompact_poleLattice N).image (continuous_of_preservesPoles a ha)).inter_right
831
+ (isClosed_poleLattice J)
832
+
833
+ theorem closed_image [Finite k]
834
+ (a : LaurentSeries k →ₗ[k] LaurentSeries k) (ha : PreservesPoles a)
835
+ (hc : ∀ J, (crossing a J).Finite) :
836
+ IsClosed (Set.range a) := by
837
+ rw [← isOpen_compl_iff, isOpen_iff_forall_mem_open]
838
+ intro f hf
839
+ obtain ⟨J,hJ⟩ := exists_poleLattice f
840
+ refine ⟨(poleLattice (k := k) J : Set (LaurentSeries k)) ∩
841
+ ((Set.range a) ∩ (poleLattice (k := k) J : Set (LaurentSeries k)))ᶜ, ?_, ?_, ?_⟩
842
+ · intro g hg hga
843
+ exact hg.2 ⟨hga,hg.1⟩
844
+ · exact (isOpen_poleLattice J).inter
845
+ (isCompact_range_inter_poleLattice a ha J (hc J)).isClosed.isOpen_compl
846
+ · exact ⟨hJ,fun h => hf h.1⟩
847
+
848
+ end HahnWilson.PivotTopology
849
+
850
+ end
851
+
852
+ end OAI
lean/OAI/Topology/Homotopy/BasedMaps.lean CHANGED
@@ -1,71 +1,71 @@
1
- import Mathlib
2
-
3
- namespace OAI
4
-
5
- /-! Maps of based generalized loops and homotopy groups. -/
6
-
7
- noncomputable section
8
- universe u v w
9
-
10
-
11
- namespace NearbyLagrangian.BasedHomotopy
12
- open scoped Topology Topology.Homotopy
13
- variable {N X Y Z : Type*} [TopologicalSpace X] [TopologicalSpace Y] [TopologicalSpace Z]
14
- variable {x : X} {y : Y} {z : Z}
15
-
16
- def loopMap (e : C(X,Y)) (he : e x = y) (f : GenLoop N X x) : GenLoop N Y y :=
17
- ⟨e.comp f.1,fun t ht => (congrArg e (GenLoop.boundary f t ht)).trans he⟩
18
-
19
- lemma loopMap_homotopic (e : C(X,Y)) (he : e x = y) {f g : GenLoop N X x}
20
- (h : GenLoop.Homotopic f g) : GenLoop.Homotopic (loopMap e he f) (loopMap e he g) := by
21
- obtain ⟨H⟩ := h
22
- exact ⟨H.compContinuousMap e⟩
23
-
24
- @[simp] theorem loopMap_const (e : C(X,Y)) (he : e x = y) :
25
- loopMap (N:=N) e he GenLoop.const = GenLoop.const := by ext t; exact he
26
-
27
- @[simp] theorem loopMap_id (f : GenLoop N X x) : loopMap (ContinuousMap.id X) rfl f = f := by
28
- ext t; rfl
29
-
30
- @[simp] theorem loopMap_comp (e : C(X,Y)) (he : e x = y) (d : C(Y,Z)) (hd : d y = z)
31
- (f : GenLoop N X x) : loopMap d hd (loopMap e he f) =
32
- loopMap (d.comp e) ((congrArg d he).trans hd) f := by
33
- ext t; rfl
34
-
35
- lemma loopMap_transAt [DecidableEq N] (e : C(X,Y)) (he : e x = y)
36
- (i : N) (f g : GenLoop N X x) : loopMap e he (GenLoop.transAt i f g) =
37
- GenLoop.transAt i (loopMap e he f) (loopMap e he g) := by
38
- ext t
39
- simp only [loopMap,GenLoop.mk_apply,ContinuousMap.comp_apply,GenLoop.transAt,GenLoop.coe_copy,GenLoop.coe_coe]
40
- split_ifs <;> rfl
41
-
42
- def groupMap [DecidableEq N] [Nonempty N] (e : C(X,Y)) (he : e x = y) :
43
- HomotopyGroup N X x →* HomotopyGroup N Y y where
44
- toFun := Quotient.map (loopMap e he) (fun _ _ h => loopMap_homotopic e he h)
45
- map_one' := by
46
- rw [HomotopyGroup.one_def,HomotopyGroup.one_def]
47
- change Quotient.mk'' (loopMap e he GenLoop.const) = Quotient.mk'' GenLoop.const
48
- rw [loopMap_const]
49
- map_mul' a b := Quotient.inductionOn₂ a b fun f g => by
50
- simp only [HomotopyGroup.mul_spec (i:=Classical.arbitrary N)]
51
- change (⟦loopMap e he (GenLoop.transAt (Classical.arbitrary N) g f)⟧ : HomotopyGroup N Y y) =
52
- ((· * ·) : HomotopyGroup N Y y → HomotopyGroup N Y y → HomotopyGroup N Y y)
53
- ⟦loopMap e he f⟧ ⟦loopMap e he g⟧
54
- rw [HomotopyGroup.mul_spec (i:=Classical.arbitrary N),loopMap_transAt]
55
-
56
- @[simp] theorem groupMap_id [DecidableEq N] [Nonempty N] (a : HomotopyGroup N X x) :
57
- groupMap (ContinuousMap.id X) rfl a = a := by
58
- induction a using Quotient.inductionOn with
59
- | h f => change Quotient.mk'' (loopMap _ _ f) = _; rw [loopMap_id]; rfl
60
-
61
- @[simp] theorem groupMap_comp [DecidableEq N] [Nonempty N]
62
- (e : C(X,Y)) (he : e x = y) (d : C(Y,Z)) (hd : d y = z) (a : HomotopyGroup N X x) :
63
- groupMap d hd (groupMap e he a) = groupMap (d.comp e) ((congrArg d he).trans hd) a := by
64
- induction a using Quotient.inductionOn with
65
- | h f => change Quotient.mk'' (loopMap _ _ (loopMap _ _ f)) = _; rw [loopMap_comp]; rfl
66
-
67
- end NearbyLagrangian.BasedHomotopy
68
-
69
- end
70
-
71
- end OAI
 
1
+ import Mathlib
2
+
3
+ namespace OAI
4
+
5
+ /-! Maps of based generalized loops and homotopy groups. -/
6
+
7
+ noncomputable section
8
+ universe u v w
9
+
10
+
11
+ namespace NearbyLagrangian.BasedHomotopy
12
+ open scoped Topology Topology.Homotopy
13
+ variable {N X Y Z : Type*} [TopologicalSpace X] [TopologicalSpace Y] [TopologicalSpace Z]
14
+ variable {x : X} {y : Y} {z : Z}
15
+
16
+ def loopMap (e : C(X,Y)) (he : e x = y) (f : GenLoop N X x) : GenLoop N Y y :=
17
+ ⟨e.comp f.1,fun t ht => (congrArg e (GenLoop.boundary f t ht)).trans he⟩
18
+
19
+ lemma loopMap_homotopic (e : C(X,Y)) (he : e x = y) {f g : GenLoop N X x}
20
+ (h : GenLoop.Homotopic f g) : GenLoop.Homotopic (loopMap e he f) (loopMap e he g) := by
21
+ obtain ⟨H⟩ := h
22
+ exact ⟨H.compContinuousMap e⟩
23
+
24
+ @[simp] theorem loopMap_const (e : C(X,Y)) (he : e x = y) :
25
+ loopMap (N:=N) e he GenLoop.const = GenLoop.const := by ext t; exact he
26
+
27
+ @[simp] theorem loopMap_id (f : GenLoop N X x) : loopMap (ContinuousMap.id X) rfl f = f := by
28
+ ext t; rfl
29
+
30
+ @[simp] theorem loopMap_comp (e : C(X,Y)) (he : e x = y) (d : C(Y,Z)) (hd : d y = z)
31
+ (f : GenLoop N X x) : loopMap d hd (loopMap e he f) =
32
+ loopMap (d.comp e) ((congrArg d he).trans hd) f := by
33
+ ext t; rfl
34
+
35
+ lemma loopMap_transAt [DecidableEq N] (e : C(X,Y)) (he : e x = y)
36
+ (i : N) (f g : GenLoop N X x) : loopMap e he (GenLoop.transAt i f g) =
37
+ GenLoop.transAt i (loopMap e he f) (loopMap e he g) := by
38
+ ext t
39
+ simp only [loopMap,GenLoop.mk_apply,ContinuousMap.comp_apply,GenLoop.transAt,GenLoop.coe_copy,GenLoop.coe_coe]
40
+ split_ifs <;> rfl
41
+
42
+ def groupMap [DecidableEq N] [Nonempty N] (e : C(X,Y)) (he : e x = y) :
43
+ HomotopyGroup N X x →* HomotopyGroup N Y y where
44
+ toFun := Quotient.map (loopMap e he) (fun _ _ h => loopMap_homotopic e he h)
45
+ map_one' := by
46
+ rw [HomotopyGroup.one_def,HomotopyGroup.one_def]
47
+ change Quotient.mk'' (loopMap e he GenLoop.const) = Quotient.mk'' GenLoop.const
48
+ rw [loopMap_const]
49
+ map_mul' a b := Quotient.inductionOn₂ a b fun f g => by
50
+ simp only [HomotopyGroup.mul_spec (i:=Classical.arbitrary N)]
51
+ change (⟦loopMap e he (GenLoop.transAt (Classical.arbitrary N) g f)⟧ : HomotopyGroup N Y y) =
52
+ ((· * ·) : HomotopyGroup N Y y → HomotopyGroup N Y y → HomotopyGroup N Y y)
53
+ ⟦loopMap e he f⟧ ⟦loopMap e he g⟧
54
+ rw [HomotopyGroup.mul_spec (i:=Classical.arbitrary N),loopMap_transAt]
55
+
56
+ @[simp] theorem groupMap_id [DecidableEq N] [Nonempty N] (a : HomotopyGroup N X x) :
57
+ groupMap (ContinuousMap.id X) rfl a = a := by
58
+ induction a using Quotient.inductionOn with
59
+ | h f => change Quotient.mk'' (loopMap _ _ f) = _; rw [loopMap_id]; rfl
60
+
61
+ @[simp] theorem groupMap_comp [DecidableEq N] [Nonempty N]
62
+ (e : C(X,Y)) (he : e x = y) (d : C(Y,Z)) (hd : d y = z) (a : HomotopyGroup N X x) :
63
+ groupMap d hd (groupMap e he a) = groupMap (d.comp e) ((congrArg d he).trans hd) a := by
64
+ induction a using Quotient.inductionOn with
65
+ | h f => change Quotient.mk'' (loopMap _ _ (loopMap _ _ f)) = _; rw [loopMap_comp]; rfl
66
+
67
+ end NearbyLagrangian.BasedHomotopy
68
+
69
+ end
70
+
71
+ end OAI
lean/OAI/Topology/Homotopy/ConeHomotopy.lean CHANGED
@@ -1,234 +1,234 @@
1
- import Mathlib
2
- import OAI.Topology.Homotopy.FiberCone
3
-
4
- namespace OAI
5
-
6
- /-! Right suspension homotopies and suspension of maps and homotopies. -/
7
-
8
- noncomputable section
9
- universe u v w
10
- open Set ContinuousMap
11
- open scoped Topology unitInterval
12
-
13
- namespace NearbyLagrangian.FiberCone
14
- variable {B A X : Type*} [TopologicalSpace B] [TopologicalSpace A] [TopologicalSpace X]
15
- variable (f : C(A,X)) (p : C(X,B)) (q : C(A,B)) (hf : ∀ a, p (f a) = q a)
16
-
17
- def sweepBase : C(unitInterval × X,Susp p) := meridian p
18
-
19
- def sweepRay : C(unitInterval × (unitInterval × A),Susp p) where
20
- toFun z := meridian p (max z.2.1 z.1,f z.2.2)
21
- continuous_toFun := (meridian p).continuous.comp
22
- (((continuous_fst.comp continuous_snd).max continuous_fst).prodMk
23
- (f.continuous.comp (continuous_snd.comp continuous_snd)))
24
-
25
- def sweepApex : C(unitInterval × B,Susp p) := (north p).comp ⟨Prod.snd,continuous_snd⟩
26
-
27
- lemma sweepRay_bottom (s : unitInterval) (a : A) :
28
- sweepRay f p (s,(0,a)) = sweepBase p (s,f a) := by
29
- change meridian p (max 0 s,f a) = meridian p (s,f a)
30
- rw [max_eq_right (show (0:unitInterval) ≤ s from bot_le)]
31
-
32
- include hf in
33
- lemma sweepRay_top (s : unitInterval) (a : A) :
34
- sweepRay f p (s,(1,a)) = sweepApex p (s,q a) := by
35
- change meridian p (max 1 s,f a) = north p (q a)
36
- rw [max_eq_left (show s ≤ (1:unitInterval) from le_top),ray_one,hf]
37
-
38
- def sweep : C(unitInterval × Space f q,Susp p) :=
39
- cylinderLift f q (sweepBase p) (sweepRay f p) (sweepApex p)
40
- (sweepRay_bottom f p) (sweepRay_top f p q hf)
41
-
42
- @[simp] lemma sweep_base (s : unitInterval) (x : X) :
43
- sweep f p q hf (s,base f q x) = meridian p (s,x) := rfl
44
- @[simp] lemma sweep_ray (s : unitInterval) (ta : unitInterval × A) :
45
- sweep f p q hf (s,ray f q ta) = meridian p (max ta.1 s,f ta.2) := rfl
46
- @[simp] lemma sweep_apex (s : unitInterval) (b : B) :
47
- sweep f p q hf (s,apex f q b) = north p b := rfl
48
-
49
- lemma sweep_zero (z : Space f q) :
50
- sweep f p q hf (0,z) = suspMap f p q hf (collapse f p q hf z) := by
51
- induction z using induction with
52
- | hbase x => rw [sweep_base,ray_zero,collapse_base,suspMap_south]
53
- | hray ta =>
54
- rw [sweep_ray,max_eq_left (show (0:unitInterval) ≤ ta.1 from bot_le),
55
- collapse_ray,suspMap_meridian]
56
- | hapex b => rw [sweep_apex,collapse_apex,suspMap_north]
57
-
58
- lemma sweep_one (z : Space f q) :
59
- sweep f p q hf (1,z) = north p (projection f p q hf z) := by
60
- induction z using induction with
61
- | hbase x => rw [sweep_base,ray_one,projection_base]
62
- | hray ta =>
63
- rw [sweep_ray,max_eq_right (show ta.1 ≤ (1:unitInterval) from le_top),
64
- ray_one,hf,projection_ray]
65
- | hapex b => rfl
66
-
67
- lemma sweep_over (s : unitInterval) (z : Space f q) :
68
- suspProjection p (sweep f p q hf (s,z)) = projection f p q hf z := by
69
- induction z using induction with
70
- | hbase x => rfl
71
- | hray ta => exact hf ta.2
72
- | hapex b => rfl
73
-
74
- namespace Contraction
75
- variable {f p q hf} (H : Contraction f p q hf)
76
-
77
- def rightRay : C(unitInterval × (unitInterval × X),Susp p) where
78
- toFun z := sweep f p q hf (horizontal (z.1,z.2.1),
79
- H.hom (vertical (z.1,z.2.1),base f q z.2.2))
80
- continuous_toFun := (sweep f p q hf).continuous.comp
81
- ((horizontal.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk
82
- (H.hom.continuous.comp
83
- ((vertical.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk
84
- ((base f q).continuous.comp (continuous_snd.comp continuous_snd)))))
85
-
86
- lemma rightRay_bottom (s : unitInterval) (x : X) : H.rightRay (s,(0,x)) = south p (p x) := by
87
- change sweep f p q hf (horizontal (s,0),H.hom (vertical (s,0),base f q x)) = _
88
- rw [horizontal_bottom,vertical_bottom,H.at_zero,sweep_base,ray_zero]
89
-
90
- lemma rightRay_top (s : unitInterval) (x : X) : H.rightRay (s,(1,x)) = north p (p x) := by
91
- change sweep f p q hf (horizontal (s,1),H.hom (vertical (s,1),base f q x)) = _
92
- rcases square_top s with hx | hy
93
- · rw [hx,sweep_one,H.staysOver,projection_base]
94
- · rw [hy,H.at_one,projection_base,sweep_apex]
95
-
96
- def rightDeformation : C(unitInterval × Susp p,Susp p) :=
97
- cylinderLift p p ((south p).comp ⟨Prod.snd,continuous_snd⟩) H.rightRay
98
- ((north p).comp ⟨Prod.snd,continuous_snd⟩) H.rightRay_bottom H.rightRay_top
99
-
100
- @[simp] lemma rightDeformation_south (s : unitInterval) (b : B) :
101
- H.rightDeformation (s,south p b) = south p b := rfl
102
- @[simp] lemma rightDeformation_meridian (s : unitInterval) (tx : unitInterval × X) :
103
- H.rightDeformation (s,meridian p tx) = H.rightRay (s,tx) := rfl
104
- @[simp] lemma rightDeformation_north (s : unitInterval) (b : B) :
105
- H.rightDeformation (s,north p b) = north p b := rfl
106
-
107
- lemma rightDeformation_zero (z : Susp p) : H.rightDeformation (0,z) = z := by
108
- induction z using induction with
109
- | hbase b => rfl
110
- | hray tx =>
111
- rw [rightDeformation_meridian]
112
- change sweep f p q hf (horizontal (0,tx.1),
113
- H.hom (vertical (0,tx.1),base f q tx.2)) = _
114
- rw [horizontal_left,vertical_left,H.at_zero,sweep_base]
115
- | hapex b => rfl
116
-
117
- lemma rightDeformation_one (z : Susp p) :
118
- H.rightDeformation (1,z) = suspMap f p q hf (H.inverse z) := by
119
- induction z using induction with
120
- | hbase b => rw [rightDeformation_south,inverse_south,suspMap_south]
121
- | hray tx =>
122
- rw [rightDeformation_meridian,inverse_meridian]
123
- change sweep f p q hf (horizontal (1,tx.1),
124
- H.hom (vertical (1,tx.1),base f q tx.2)) = _
125
- rw [horizontal_right,vertical_right,sweep_zero]
126
- | hapex b => rw [rightDeformation_north,inverse_north,suspMap_north]
127
-
128
- lemma rightDeformation_over (s : unitInterval) (z : Susp p) :
129
- suspProjection p (H.rightDeformation (s,z)) = suspProjection p z := by
130
- induction z using induction with
131
- | hbase b => rfl
132
- | hray tx =>
133
- rw [rightDeformation_meridian]
134
- change suspProjection p (sweep f p q hf (horizontal (s,tx.1),
135
- H.hom (vertical (s,tx.1),base f q tx.2))) = _
136
- rw [sweep_over,H.staysOver,projection_base]
137
- rfl
138
- | hapex b => rfl
139
-
140
- def rightHomotopy : ((suspMap f p q hf).comp H.inverse).Homotopy (ContinuousMap.id (Susp p)) :=
141
- ContinuousMap.Homotopy.symm
142
- { toContinuousMap := H.rightDeformation
143
- map_zero_left := H.rightDeformation_zero
144
- map_one_left := H.rightDeformation_one }
145
-
146
- lemma rightHomotopy_over (s : unitInterval) (z : Susp p) :
147
- suspProjection p (H.rightHomotopy (s,z)) = suspProjection p z :=
148
- H.rightDeformation_over (unitInterval.symm s) z
149
-
150
- end Contraction
151
- end NearbyLagrangian.FiberCone
152
-
153
- end
154
-
155
- noncomputable section
156
- universe u v w
157
- open Set ContinuousMap
158
- open scoped Topology unitInterval
159
-
160
- namespace NearbyLagrangian.FiberCone
161
- variable {B A X Y : Type*} [TopologicalSpace B] [TopologicalSpace A]
162
- [TopologicalSpace X] [TopologicalSpace Y]
163
-
164
- @[simp] lemma suspMap_id (q : C(A,B)) :
165
- suspMap (ContinuousMap.id A) q q (fun _ => rfl) = ContinuousMap.id (Susp q) := by
166
- ext z
167
- induction z using induction with
168
- | hbase _ => rfl
169
- | hray _ => rfl
170
- | hapex _ => rfl
171
-
172
- lemma suspMap_comp (f : C(A,X)) (g : C(X,Y)) (p : C(X,B)) (q : C(A,B)) (r : C(Y,B))
173
- (hf : ∀ a, p (f a) = q a) (hg : ∀ x, r (g x) = p x) :
174
- (suspMap g r p hg).comp (suspMap f p q hf) =
175
- suspMap (g.comp f) r q (fun a => (hg (f a)).trans (hf a)) := by
176
- ext z
177
- induction z using induction with
178
- | hbase _ => rfl
179
- | hray _ => rfl
180
- | hapex _ => rfl
181
-
182
- variable {p : C(X,B)} {q : C(A,B)} {f g : C(A,X)}
183
- (hf : ∀ a, p (f a) = q a) (hg : ∀ a, p (g a) = q a)
184
- (H : f.Homotopy g) (hH : ∀ s a, p (H (s,a)) = q a)
185
-
186
- def suspHomotopyRay : C(unitInterval × (unitInterval × A),Susp p) :=
187
- (meridian p).comp ⟨fun z => (z.2.1,H (z.1,z.2.2)),
188
- (continuous_fst.comp continuous_snd).prodMk
189
- (H.continuous.comp (continuous_fst.prodMk (continuous_snd.comp continuous_snd)))⟩
190
-
191
- include hH in
192
- lemma suspHomotopyRay_bottom (s : unitInterval) (a : A) :
193
- suspHomotopyRay H (s,(0,a)) = south p (q a) := by
194
- change meridian p (0,H (s,a)) = _
195
- rw [ray_zero,hH]
196
-
197
- include hH in
198
- lemma suspHomotopyRay_top (s : unitInterval) (a : A) :
199
- suspHomotopyRay H (s,(1,a)) = north p (q a) := by
200
- change meridian p (1,H (s,a)) = _
201
- rw [ray_one,hH]
202
-
203
- def suspHomotopy : (suspMap f p q hf).Homotopy (suspMap g p q hg) where
204
- toContinuousMap := cylinderLift q q
205
- ((south p).comp ⟨Prod.snd,continuous_snd⟩) (suspHomotopyRay H)
206
- ((north p).comp ⟨Prod.snd,continuous_snd⟩)
207
- (suspHomotopyRay_bottom H hH) (suspHomotopyRay_top H hH)
208
- map_zero_left z := by
209
- induction z using induction with
210
- | hbase _ => rfl
211
- | hray ta =>
212
- change meridian p (ta.1,H (0,ta.2)) = meridian p (ta.1,f ta.2)
213
- rw [HomotopyLike.map_zero_left H]
214
- | hapex _ => rfl
215
- map_one_left z := by
216
- induction z using induction with
217
- | hbase _ => rfl
218
- | hray ta =>
219
- change meridian p (ta.1,H (1,ta.2)) = meridian p (ta.1,g ta.2)
220
- rw [HomotopyLike.map_one_left H]
221
- | hapex _ => rfl
222
-
223
- lemma suspHomotopy_over (s : unitInterval) (z : Susp q) :
224
- suspProjection p (suspHomotopy hf hg H hH (s,z)) = suspProjection q z := by
225
- induction z using induction with
226
- | hbase _ => rfl
227
- | hray ta => exact hH s ta.2
228
- | hapex _ => rfl
229
-
230
- end NearbyLagrangian.FiberCone
231
-
232
- end
233
-
234
- end OAI
 
1
+ import Mathlib
2
+ import OAI.Topology.Homotopy.FiberCone
3
+
4
+ namespace OAI
5
+
6
+ /-! Right suspension homotopies and suspension of maps and homotopies. -/
7
+
8
+ noncomputable section
9
+ universe u v w
10
+ open Set ContinuousMap
11
+ open scoped Topology unitInterval
12
+
13
+ namespace NearbyLagrangian.FiberCone
14
+ variable {B A X : Type*} [TopologicalSpace B] [TopologicalSpace A] [TopologicalSpace X]
15
+ variable (f : C(A,X)) (p : C(X,B)) (q : C(A,B)) (hf : ∀ a, p (f a) = q a)
16
+
17
+ def sweepBase : C(unitInterval × X,Susp p) := meridian p
18
+
19
+ def sweepRay : C(unitInterval × (unitInterval × A),Susp p) where
20
+ toFun z := meridian p (max z.2.1 z.1,f z.2.2)
21
+ continuous_toFun := (meridian p).continuous.comp
22
+ (((continuous_fst.comp continuous_snd).max continuous_fst).prodMk
23
+ (f.continuous.comp (continuous_snd.comp continuous_snd)))
24
+
25
+ def sweepApex : C(unitInterval × B,Susp p) := (north p).comp ⟨Prod.snd,continuous_snd⟩
26
+
27
+ lemma sweepRay_bottom (s : unitInterval) (a : A) :
28
+ sweepRay f p (s,(0,a)) = sweepBase p (s,f a) := by
29
+ change meridian p (max 0 s,f a) = meridian p (s,f a)
30
+ rw [max_eq_right (show (0:unitInterval) ≤ s from bot_le)]
31
+
32
+ include hf in
33
+ lemma sweepRay_top (s : unitInterval) (a : A) :
34
+ sweepRay f p (s,(1,a)) = sweepApex p (s,q a) := by
35
+ change meridian p (max 1 s,f a) = north p (q a)
36
+ rw [max_eq_left (show s ≤ (1:unitInterval) from le_top),ray_one,hf]
37
+
38
+ def sweep : C(unitInterval × Space f q,Susp p) :=
39
+ cylinderLift f q (sweepBase p) (sweepRay f p) (sweepApex p)
40
+ (sweepRay_bottom f p) (sweepRay_top f p q hf)
41
+
42
+ @[simp] lemma sweep_base (s : unitInterval) (x : X) :
43
+ sweep f p q hf (s,base f q x) = meridian p (s,x) := rfl
44
+ @[simp] lemma sweep_ray (s : unitInterval) (ta : unitInterval × A) :
45
+ sweep f p q hf (s,ray f q ta) = meridian p (max ta.1 s,f ta.2) := rfl
46
+ @[simp] lemma sweep_apex (s : unitInterval) (b : B) :
47
+ sweep f p q hf (s,apex f q b) = north p b := rfl
48
+
49
+ lemma sweep_zero (z : Space f q) :
50
+ sweep f p q hf (0,z) = suspMap f p q hf (collapse f p q hf z) := by
51
+ induction z using induction with
52
+ | hbase x => rw [sweep_base,ray_zero,collapse_base,suspMap_south]
53
+ | hray ta =>
54
+ rw [sweep_ray,max_eq_left (show (0:unitInterval) ≤ ta.1 from bot_le),
55
+ collapse_ray,suspMap_meridian]
56
+ | hapex b => rw [sweep_apex,collapse_apex,suspMap_north]
57
+
58
+ lemma sweep_one (z : Space f q) :
59
+ sweep f p q hf (1,z) = north p (projection f p q hf z) := by
60
+ induction z using induction with
61
+ | hbase x => rw [sweep_base,ray_one,projection_base]
62
+ | hray ta =>
63
+ rw [sweep_ray,max_eq_right (show ta.1 ≤ (1:unitInterval) from le_top),
64
+ ray_one,hf,projection_ray]
65
+ | hapex b => rfl
66
+
67
+ lemma sweep_over (s : unitInterval) (z : Space f q) :
68
+ suspProjection p (sweep f p q hf (s,z)) = projection f p q hf z := by
69
+ induction z using induction with
70
+ | hbase x => rfl
71
+ | hray ta => exact hf ta.2
72
+ | hapex b => rfl
73
+
74
+ namespace Contraction
75
+ variable {f p q hf} (H : Contraction f p q hf)
76
+
77
+ def rightRay : C(unitInterval × (unitInterval × X),Susp p) where
78
+ toFun z := sweep f p q hf (horizontal (z.1,z.2.1),
79
+ H.hom (vertical (z.1,z.2.1),base f q z.2.2))
80
+ continuous_toFun := (sweep f p q hf).continuous.comp
81
+ ((horizontal.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk
82
+ (H.hom.continuous.comp
83
+ ((vertical.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk
84
+ ((base f q).continuous.comp (continuous_snd.comp continuous_snd)))))
85
+
86
+ lemma rightRay_bottom (s : unitInterval) (x : X) : H.rightRay (s,(0,x)) = south p (p x) := by
87
+ change sweep f p q hf (horizontal (s,0),H.hom (vertical (s,0),base f q x)) = _
88
+ rw [horizontal_bottom,vertical_bottom,H.at_zero,sweep_base,ray_zero]
89
+
90
+ lemma rightRay_top (s : unitInterval) (x : X) : H.rightRay (s,(1,x)) = north p (p x) := by
91
+ change sweep f p q hf (horizontal (s,1),H.hom (vertical (s,1),base f q x)) = _
92
+ rcases square_top s with hx | hy
93
+ · rw [hx,sweep_one,H.staysOver,projection_base]
94
+ · rw [hy,H.at_one,projection_base,sweep_apex]
95
+
96
+ def rightDeformation : C(unitInterval × Susp p,Susp p) :=
97
+ cylinderLift p p ((south p).comp ⟨Prod.snd,continuous_snd⟩) H.rightRay
98
+ ((north p).comp ⟨Prod.snd,continuous_snd⟩) H.rightRay_bottom H.rightRay_top
99
+
100
+ @[simp] lemma rightDeformation_south (s : unitInterval) (b : B) :
101
+ H.rightDeformation (s,south p b) = south p b := rfl
102
+ @[simp] lemma rightDeformation_meridian (s : unitInterval) (tx : unitInterval × X) :
103
+ H.rightDeformation (s,meridian p tx) = H.rightRay (s,tx) := rfl
104
+ @[simp] lemma rightDeformation_north (s : unitInterval) (b : B) :
105
+ H.rightDeformation (s,north p b) = north p b := rfl
106
+
107
+ lemma rightDeformation_zero (z : Susp p) : H.rightDeformation (0,z) = z := by
108
+ induction z using induction with
109
+ | hbase b => rfl
110
+ | hray tx =>
111
+ rw [rightDeformation_meridian]
112
+ change sweep f p q hf (horizontal (0,tx.1),
113
+ H.hom (vertical (0,tx.1),base f q tx.2)) = _
114
+ rw [horizontal_left,vertical_left,H.at_zero,sweep_base]
115
+ | hapex b => rfl
116
+
117
+ lemma rightDeformation_one (z : Susp p) :
118
+ H.rightDeformation (1,z) = suspMap f p q hf (H.inverse z) := by
119
+ induction z using induction with
120
+ | hbase b => rw [rightDeformation_south,inverse_south,suspMap_south]
121
+ | hray tx =>
122
+ rw [rightDeformation_meridian,inverse_meridian]
123
+ change sweep f p q hf (horizontal (1,tx.1),
124
+ H.hom (vertical (1,tx.1),base f q tx.2)) = _
125
+ rw [horizontal_right,vertical_right,sweep_zero]
126
+ | hapex b => rw [rightDeformation_north,inverse_north,suspMap_north]
127
+
128
+ lemma rightDeformation_over (s : unitInterval) (z : Susp p) :
129
+ suspProjection p (H.rightDeformation (s,z)) = suspProjection p z := by
130
+ induction z using induction with
131
+ | hbase b => rfl
132
+ | hray tx =>
133
+ rw [rightDeformation_meridian]
134
+ change suspProjection p (sweep f p q hf (horizontal (s,tx.1),
135
+ H.hom (vertical (s,tx.1),base f q tx.2))) = _
136
+ rw [sweep_over,H.staysOver,projection_base]
137
+ rfl
138
+ | hapex b => rfl
139
+
140
+ def rightHomotopy : ((suspMap f p q hf).comp H.inverse).Homotopy (ContinuousMap.id (Susp p)) :=
141
+ ContinuousMap.Homotopy.symm
142
+ { toContinuousMap := H.rightDeformation
143
+ map_zero_left := H.rightDeformation_zero
144
+ map_one_left := H.rightDeformation_one }
145
+
146
+ lemma rightHomotopy_over (s : unitInterval) (z : Susp p) :
147
+ suspProjection p (H.rightHomotopy (s,z)) = suspProjection p z :=
148
+ H.rightDeformation_over (unitInterval.symm s) z
149
+
150
+ end Contraction
151
+ end NearbyLagrangian.FiberCone
152
+
153
+ end
154
+
155
+ noncomputable section
156
+ universe u v w
157
+ open Set ContinuousMap
158
+ open scoped Topology unitInterval
159
+
160
+ namespace NearbyLagrangian.FiberCone
161
+ variable {B A X Y : Type*} [TopologicalSpace B] [TopologicalSpace A]
162
+ [TopologicalSpace X] [TopologicalSpace Y]
163
+
164
+ @[simp] lemma suspMap_id (q : C(A,B)) :
165
+ suspMap (ContinuousMap.id A) q q (fun _ => rfl) = ContinuousMap.id (Susp q) := by
166
+ ext z
167
+ induction z using induction with
168
+ | hbase _ => rfl
169
+ | hray _ => rfl
170
+ | hapex _ => rfl
171
+
172
+ lemma suspMap_comp (f : C(A,X)) (g : C(X,Y)) (p : C(X,B)) (q : C(A,B)) (r : C(Y,B))
173
+ (hf : ∀ a, p (f a) = q a) (hg : ∀ x, r (g x) = p x) :
174
+ (suspMap g r p hg).comp (suspMap f p q hf) =
175
+ suspMap (g.comp f) r q (fun a => (hg (f a)).trans (hf a)) := by
176
+ ext z
177
+ induction z using induction with
178
+ | hbase _ => rfl
179
+ | hray _ => rfl
180
+ | hapex _ => rfl
181
+
182
+ variable {p : C(X,B)} {q : C(A,B)} {f g : C(A,X)}
183
+ (hf : ∀ a, p (f a) = q a) (hg : ∀ a, p (g a) = q a)
184
+ (H : f.Homotopy g) (hH : ∀ s a, p (H (s,a)) = q a)
185
+
186
+ def suspHomotopyRay : C(unitInterval × (unitInterval × A),Susp p) :=
187
+ (meridian p).comp ⟨fun z => (z.2.1,H (z.1,z.2.2)),
188
+ (continuous_fst.comp continuous_snd).prodMk
189
+ (H.continuous.comp (continuous_fst.prodMk (continuous_snd.comp continuous_snd)))⟩
190
+
191
+ include hH in
192
+ lemma suspHomotopyRay_bottom (s : unitInterval) (a : A) :
193
+ suspHomotopyRay H (s,(0,a)) = south p (q a) := by
194
+ change meridian p (0,H (s,a)) = _
195
+ rw [ray_zero,hH]
196
+
197
+ include hH in
198
+ lemma suspHomotopyRay_top (s : unitInterval) (a : A) :
199
+ suspHomotopyRay H (s,(1,a)) = north p (q a) := by
200
+ change meridian p (1,H (s,a)) = _
201
+ rw [ray_one,hH]
202
+
203
+ def suspHomotopy : (suspMap f p q hf).Homotopy (suspMap g p q hg) where
204
+ toContinuousMap := cylinderLift q q
205
+ ((south p).comp ⟨Prod.snd,continuous_snd⟩) (suspHomotopyRay H)
206
+ ((north p).comp ⟨Prod.snd,continuous_snd⟩)
207
+ (suspHomotopyRay_bottom H hH) (suspHomotopyRay_top H hH)
208
+ map_zero_left z := by
209
+ induction z using induction with
210
+ | hbase _ => rfl
211
+ | hray ta =>
212
+ change meridian p (ta.1,H (0,ta.2)) = meridian p (ta.1,f ta.2)
213
+ rw [HomotopyLike.map_zero_left H]
214
+ | hapex _ => rfl
215
+ map_one_left z := by
216
+ induction z using induction with
217
+ | hbase _ => rfl
218
+ | hray ta =>
219
+ change meridian p (ta.1,H (1,ta.2)) = meridian p (ta.1,g ta.2)
220
+ rw [HomotopyLike.map_one_left H]
221
+ | hapex _ => rfl
222
+
223
+ lemma suspHomotopy_over (s : unitInterval) (z : Susp q) :
224
+ suspProjection p (suspHomotopy hf hg H hH (s,z)) = suspProjection q z := by
225
+ induction z using induction with
226
+ | hbase _ => rfl
227
+ | hray ta => exact hH s ta.2
228
+ | hapex _ => rfl
229
+
230
+ end NearbyLagrangian.FiberCone
231
+
232
+ end
233
+
234
+ end OAI
lean/OAI/Topology/Homotopy/CubicalNullity.lean CHANGED
@@ -1,263 +1,263 @@
1
- import Mathlib
2
-
3
- namespace OAI
4
-
5
- /-! Cubical free nullity and change of basepoint. -/
6
-
7
- noncomputable section
8
- universe u v w
9
- open Set ContinuousMap
10
- open scoped Topology Topology.Homotopy
11
-
12
- namespace NearbyLagrangian.CubicalFreeNullity
13
- variable {N : Type*} [Fintype N] [Nonempty N]
14
-
15
- def radius (t : N → unitInterval) : ℝ := ‖fun i => 2*(t i:ℝ)-1‖
16
- omit [Nonempty N] in
17
- lemma radius_nonneg (t : N → unitInterval) : 0 ≤ radius t := norm_nonneg _
18
- omit [Nonempty N] in
19
- lemma radius_le_one (t : N → unitInterval) : radius t ≤ 1 := by
20
- apply (pi_norm_le_iff_of_nonneg (by norm_num : (0:ℝ) ≤ 1)).mpr
21
- intro i
22
- rw [Real.norm_eq_abs,abs_le]
23
- have hi₀ := (t i).property.1
24
- have hi₁ := (t i).property.2
25
- constructor <;> linarith
26
- omit [Nonempty N] in
27
- lemma continuous_radius : Continuous (radius (N:=N)) :=
28
- (continuous_pi fun i => (continuous_const.mul
29
- (continuous_subtype_val.comp (continuous_apply i))).sub continuous_const).norm
30
- omit [Nonempty N] in
31
- lemma radius_boundary {t : N → unitInterval} (ht : t ∈ Cube.boundary N) : radius t = 1 := by
32
- apply le_antisymm (radius_le_one t)
33
- obtain ⟨i,hi⟩ := ht
34
- have hh := norm_le_pi_norm (fun i => 2*(t i:ℝ)-1) i
35
- rcases hi with hi | hi
36
- · simpa [radius,hi] using hh
37
- · norm_num [hi] at hh
38
- exact hh
39
-
40
- def collarTime (s : unitInterval) (t : N → unitInterval) : unitInterval :=
41
- ⟨min (s:ℝ) (2*(1-radius t)),
42
- le_min s.property.1 (by have := radius_le_one t; linarith),
43
- (min_le_left _ _).trans s.property.2⟩
44
- omit [Nonempty N] in
45
- lemma continuous_collarTime : Continuous (fun a : unitInterval × (N → unitInterval) => collarTime a.1 a.2) :=
46
- ((continuous_subtype_val.comp continuous_fst).min
47
- (continuous_const.mul (continuous_const.sub (continuous_radius.comp continuous_snd)))).subtype_mk _
48
- omit [Nonempty N] in
49
- @[simp] lemma collarTime_zero (t : N → unitInterval) : collarTime 0 t = 0 := by
50
- apply Subtype.ext
51
- change min 0 (2*(1-radius t)) = 0
52
- apply min_eq_left
53
- have := radius_le_one t
54
- linarith
55
- omit [Nonempty N] in
56
- lemma collarTime_boundary (s : unitInterval) {t : N → unitInterval} (ht : t ∈ Cube.boundary N) :
57
- collarTime s t = 0 := by
58
- apply Subtype.ext
59
- change min (s:ℝ) (2*(1-radius t)) = 0
60
- rw [radius_boundary ht]
61
- simp only [sub_self,mul_zero,min_eq_right s.property.1]
62
-
63
- lemma denominator_pos (s : unitInterval) : 0 < 1-(s:ℝ)/2 := by
64
- have := s.property.2
65
- linarith
66
-
67
- def expand (s : unitInterval) (t : N → unitInterval) : N → unitInterval :=
68
- fun i => projIcc 0 1 (zero_le_one' ℝ) (((t i:ℝ)-(s:ℝ)/4)/(1-(s:ℝ)/2))
69
- omit [Fintype N] [Nonempty N] in
70
- lemma continuous_expand : Continuous (fun a : unitInterval × (N → unitInterval) => expand a.1 a.2) := by
71
- apply continuous_pi
72
- intro i
73
- apply continuous_projIcc.comp
74
- exact ((continuous_subtype_val.comp ((continuous_apply i).comp continuous_snd)).sub
75
- ((continuous_subtype_val.comp continuous_fst).div_const 4)).div
76
- (continuous_const.sub ((continuous_subtype_val.comp continuous_fst).div_const 2))
77
- (fun a => ne_of_gt (denominator_pos a.1))
78
- omit [Fintype N] [Nonempty N] in
79
- @[simp] lemma expand_zero (t : N → unitInterval) : expand 0 t = t := by
80
- funext i
81
- change projIcc 0 1 _ (((t i:ℝ)-(0:ℝ)/4)/(1-(0:ℝ)/2)) = t i
82
- simp only [zero_div,sub_zero,div_one,projIcc_val]
83
-
84
- lemma expand_mem_boundary {s : unitInterval} {t : N → unitInterval}
85
- (ht : 1-(s:ℝ)/2 ≤ radius t) : expand s t ∈ Cube.boundary N := by
86
- obtain ⟨⟨i,hi⟩,_⟩ := IsGreatest.pi_norm (fun i => 2*(t i:ℝ)-1)
87
- have habs : 1-(s:ℝ)/2 ≤ |2*(t i:ℝ)-1| := by
88
- change ‖2*(t i:ℝ)-1‖ = radius t at hi
89
- rw [Real.norm_eq_abs] at hi
90
- exact ht.trans_eq hi.symm
91
- rcases (le_abs.mp habs) with h | h
92
- · refine ⟨i,Or.inr ?_⟩
93
- apply projIcc_of_right_le
94
- apply (le_div_iff₀ (denominator_pos s)).mpr
95
- linarith
96
- · refine ⟨i,Or.inl ?_⟩
97
- apply projIcc_of_le_left
98
- apply div_nonpos_of_nonpos_of_nonneg _ (denominator_pos s).le
99
- linarith
100
-
101
- lemma expand_boundary (s : unitInterval) {t : N → unitInterval} (ht : t ∈ Cube.boundary N) :
102
- expand s t ∈ Cube.boundary N := by
103
- apply expand_mem_boundary
104
- rw [radius_boundary ht]
105
- have := s.property.1
106
- linarith
107
-
108
- variable {X : Type*} [TopologicalSpace X]
109
-
110
- theorem null_of_moving_base {x y : X} (f : GenLoop N X x)
111
- (H : f.1.Homotopy (ContinuousMap.const _ y))
112
- (p : C(unitInterval,X))
113
- (hp : ∀ s t, t ∈ Cube.boundary N → H (s,t) = p s) :
114
- GenLoop.Homotopic f GenLoop.const := by
115
- let z : N → unitInterval := fun _ => 0
116
- have hz : z ∈ Cube.boundary N := ⟨Classical.choice inferInstance,Or.inl rfl⟩
117
- have hp0 : p 0 = x := by
118
- rw [← hp 0 z hz,H.apply_zero]
119
- exact GenLoop.boundary f z hz
120
- have hp1 : p 1 = y := by rw [← hp 1 z hz,H.apply_one]; rfl
121
- let a : C(N → unitInterval,X) := p.comp ⟨fun t => collarTime 1 t,
122
- continuous_collarTime.comp (continuous_const.prodMk continuous_id)⟩
123
- have ha (t : N → unitInterval) : H (collarTime 1 t,expand 1 t) = a t := by
124
- change H (collarTime 1 t,expand 1 t) = p (collarTime 1 t)
125
- by_cases ht : collarTime 1 t = 1
126
- · rw [ht,H.apply_one,hp1]; rfl
127
- · apply hp
128
- apply expand_mem_boundary
129
- have hk : (collarTime 1 t:ℝ) < 1 := lt_of_le_of_ne (collarTime 1 t).property.2
130
- (fun h => ht (Subtype.ext h))
131
- change min 1 (2*(1-radius t)) < 1 at hk
132
- have hr : 2*(1-radius t) < 1 := by simpa only [min_lt_iff,lt_self_iff_false,false_or] using hk
133
- change 1-(1:ℝ)/2 ≤ radius t
134
- linarith
135
- let H₁ : f.1.HomotopyRel a (Cube.boundary N) := {
136
- toFun := fun q => H (collarTime q.1 q.2,expand q.1 q.2)
137
- continuous_toFun := H.continuous.comp (continuous_collarTime.prodMk continuous_expand)
138
- map_zero_left := by intro t; simp only [collarTime_zero,expand_zero,H.apply_zero]
139
- map_one_left := ha
140
- prop' := by
141
- intro s t ht
142
- change H (collarTime s t,expand s t) = f t
143
- rw [collarTime_boundary s ht,hp 0 _ (expand_boundary s ht),hp0,GenLoop.boundary f t ht] }
144
- let H₂ : a.HomotopyRel (ContinuousMap.const _ x) (Cube.boundary N) := {
145
- toFun := fun q => p ⟨(1-(q.1:ℝ))*(collarTime 1 q.2:ℝ),
146
- mul_nonneg (by linarith [q.1.property.2]) (collarTime _ _).property.1,
147
- (mul_le_of_le_one_left (collarTime _ _).property.1
148
- (by linarith [q.1.property.1])).trans (collarTime _ _).property.2⟩
149
- continuous_toFun := p.continuous.comp (Continuous.subtype_mk
150
- ((continuous_const.sub (continuous_subtype_val.comp continuous_fst)).mul
151
- (continuous_subtype_val.comp (continuous_collarTime.comp (continuous_const.prodMk continuous_snd)))) _)
152
- map_zero_left := by
153
- intro t
154
- change p _ = p (collarTime 1 t)
155
- congr 1
156
- apply Subtype.ext
157
- change (1-(0:ℝ))*(collarTime 1 t:ℝ) = (collarTime 1 t:ℝ)
158
- ring
159
- map_one_left := by
160
- intro t
161
- change p _ = x
162
- convert hp0 using 1
163
- congr 1
164
- apply Subtype.ext
165
- change (1-(1:ℝ))*(collarTime 1 t:ℝ) = 0
166
- ring
167
- prop' := by
168
- intro s t ht
169
- change p _ = p (collarTime 1 t)
170
- rw [collarTime_boundary 1 ht]
171
- congr 1
172
- apply Subtype.ext
173
- change (1-(s:ℝ))*(0:ℝ) = 0
174
- ring }
175
- exact ⟨H₁.trans H₂⟩
176
-
177
- end NearbyLagrangian.CubicalFreeNullity
178
-
179
- end
180
-
181
- noncomputable section
182
- universe u v w
183
- open scoped Classical Topology Topology.Homotopy
184
-
185
- namespace NearbyLagrangian.CubicalFreeNullity
186
- variable {N : Type*} [Fintype N] [Nonempty N]
187
- variable {X : Type*} [TopologicalSpace X] {x y : X}
188
-
189
- def outerTime (s : unitInterval) (t : N → unitInterval) : unitInterval :=
190
- ⟨max 0 ((s:ℝ)-2*(1-radius t)),le_max_left _ _,by
191
- apply max_le zero_le_one
192
- have := radius_le_one t
193
- linarith [s.property.2]⟩
194
- omit [Nonempty N] in
195
- lemma continuous_outerTime : Continuous (fun a : unitInterval × (N → unitInterval) => outerTime a.1 a.2) :=
196
- ((continuous_const.max ((continuous_subtype_val.comp continuous_fst).sub
197
- (continuous_const.mul (continuous_const.sub (continuous_radius.comp continuous_snd)))))).subtype_mk _
198
-
199
- omit [Nonempty N] in
200
- lemma outerTime_eq_zero {s : unitInterval} {t : N → unitInterval}
201
- (h : radius t ≤ 1-(s:ℝ)/2) : outerTime s t = 0 := by
202
- apply Subtype.ext
203
- change max 0 ((s:ℝ)-2*(1-radius t)) = 0
204
- apply max_eq_left
205
- linarith
206
-
207
- omit [Nonempty N] in
208
- lemma outerTime_boundary (s : unitInterval) {t : N → unitInterval}
209
- (h : t ∈ Cube.boundary N) : outerTime s t = s := by
210
- apply Subtype.ext
211
- change max 0 ((s:ℝ)-2*(1-radius t)) = s
212
- rw [radius_boundary h]
213
- simp only [sub_self,mul_zero,sub_zero,max_eq_right s.property.1]
214
-
215
- def rebaseValue (f : GenLoop N X x) (p : Path x y) (s : unitInterval)
216
- (t : N → unitInterval) : X :=
217
- if radius t ≤ 1-(s:ℝ)/2 then f (expand s t) else p (outerTime s t)
218
-
219
- lemma continuous_rebaseValue (f : GenLoop N X x) (p : Path x y) :
220
- Continuous (fun q : unitInterval × (N → unitInterval) => rebaseValue f p q.1 q.2) := by
221
- apply (f.1.continuous.comp continuous_expand).if_le
222
- (p.continuous.comp continuous_outerTime) (continuous_radius.comp continuous_snd)
223
- (continuous_const.sub ((continuous_subtype_val.comp continuous_fst).div_const 2))
224
- intro q h
225
- change f (expand q.1 q.2) = p (outerTime q.1 q.2)
226
- change radius q.2 = 1-(q.1:ℝ)/2 at h
227
- rw [GenLoop.boundary f _ (expand_mem_boundary h.ge),outerTime_eq_zero h.le,p.source]
228
-
229
- omit [Nonempty N] in
230
- @[simp] lemma rebaseValue_zero (f : GenLoop N X x) (p : Path x y)
231
- (t : N → unitInterval) : rebaseValue f p 0 t = f t := by
232
- rw [rebaseValue,ite_eq_left (by simpa using radius_le_one t),expand_zero]
233
-
234
- omit [Nonempty N] in
235
- lemma rebaseValue_boundary (f : GenLoop N X x) (p : Path x y)
236
- (s : unitInterval) {t : N → unitInterval} (ht : t ∈ Cube.boundary N) :
237
- rebaseValue f p s t = p s := by
238
- rw [rebaseValue]
239
- split_ifs with h
240
- · have hs : s = 0 := by
241
- apply Subtype.ext
242
- change (s:ℝ) = 0
243
- rw [radius_boundary ht] at h
244
- linarith [s.property.1]
245
- rw [hs,expand_zero,GenLoop.boundary f t ht,p.source]
246
- · rw [outerTime_boundary s ht]
247
-
248
- def rebase (f : GenLoop N X x) (p : Path x y) : GenLoop N X y :=
249
- ⟨⟨fun t => rebaseValue f p 1 t,
250
- (continuous_rebaseValue f p).comp (continuous_const.prodMk continuous_id)⟩,
251
- fun _t ht => (rebaseValue_boundary f p 1 ht).trans p.target⟩
252
-
253
- def rebaseHomotopy (f : GenLoop N X x) (p : Path x y) : f.1.Homotopy (rebase f p).1 where
254
- toFun q := rebaseValue f p q.1 q.2
255
- continuous_toFun := continuous_rebaseValue f p
256
- map_zero_left := rebaseValue_zero f p
257
- map_one_left _ := rfl
258
-
259
- end NearbyLagrangian.CubicalFreeNullity
260
-
261
- end
262
-
263
- end OAI
 
1
+ import Mathlib
2
+
3
+ namespace OAI
4
+
5
+ /-! Cubical free nullity and change of basepoint. -/
6
+
7
+ noncomputable section
8
+ universe u v w
9
+ open Set ContinuousMap
10
+ open scoped Topology Topology.Homotopy
11
+
12
+ namespace NearbyLagrangian.CubicalFreeNullity
13
+ variable {N : Type*} [Fintype N] [Nonempty N]
14
+
15
+ def radius (t : N → unitInterval) : ℝ := ‖fun i => 2*(t i:ℝ)-1‖
16
+ omit [Nonempty N] in
17
+ lemma radius_nonneg (t : N → unitInterval) : 0 ≤ radius t := norm_nonneg _
18
+ omit [Nonempty N] in
19
+ lemma radius_le_one (t : N → unitInterval) : radius t ≤ 1 := by
20
+ apply (pi_norm_le_iff_of_nonneg (by norm_num : (0:ℝ) ≤ 1)).mpr
21
+ intro i
22
+ rw [Real.norm_eq_abs,abs_le]
23
+ have hi₀ := (t i).property.1
24
+ have hi₁ := (t i).property.2
25
+ constructor <;> linarith
26
+ omit [Nonempty N] in
27
+ lemma continuous_radius : Continuous (radius (N:=N)) :=
28
+ (continuous_pi fun i => (continuous_const.mul
29
+ (continuous_subtype_val.comp (continuous_apply i))).sub continuous_const).norm
30
+ omit [Nonempty N] in
31
+ lemma radius_boundary {t : N → unitInterval} (ht : t ∈ Cube.boundary N) : radius t = 1 := by
32
+ apply le_antisymm (radius_le_one t)
33
+ obtain ⟨i,hi⟩ := ht
34
+ have hh := norm_le_pi_norm (fun i => 2*(t i:ℝ)-1) i
35
+ rcases hi with hi | hi
36
+ · simpa [radius,hi] using hh
37
+ · norm_num [hi] at hh
38
+ exact hh
39
+
40
+ def collarTime (s : unitInterval) (t : N → unitInterval) : unitInterval :=
41
+ ⟨min (s:ℝ) (2*(1-radius t)),
42
+ le_min s.property.1 (by have := radius_le_one t; linarith),
43
+ (min_le_left _ _).trans s.property.2⟩
44
+ omit [Nonempty N] in
45
+ lemma continuous_collarTime : Continuous (fun a : unitInterval × (N → unitInterval) => collarTime a.1 a.2) :=
46
+ ((continuous_subtype_val.comp continuous_fst).min
47
+ (continuous_const.mul (continuous_const.sub (continuous_radius.comp continuous_snd)))).subtype_mk _
48
+ omit [Nonempty N] in
49
+ @[simp] lemma collarTime_zero (t : N → unitInterval) : collarTime 0 t = 0 := by
50
+ apply Subtype.ext
51
+ change min 0 (2*(1-radius t)) = 0
52
+ apply min_eq_left
53
+ have := radius_le_one t
54
+ linarith
55
+ omit [Nonempty N] in
56
+ lemma collarTime_boundary (s : unitInterval) {t : N → unitInterval} (ht : t ∈ Cube.boundary N) :
57
+ collarTime s t = 0 := by
58
+ apply Subtype.ext
59
+ change min (s:ℝ) (2*(1-radius t)) = 0
60
+ rw [radius_boundary ht]
61
+ simp only [sub_self,mul_zero,min_eq_right s.property.1]
62
+
63
+ lemma denominator_pos (s : unitInterval) : 0 < 1-(s:ℝ)/2 := by
64
+ have := s.property.2
65
+ linarith
66
+
67
+ def expand (s : unitInterval) (t : N → unitInterval) : N → unitInterval :=
68
+ fun i => projIcc 0 1 (zero_le_one' ℝ) (((t i:ℝ)-(s:ℝ)/4)/(1-(s:ℝ)/2))
69
+ omit [Fintype N] [Nonempty N] in
70
+ lemma continuous_expand : Continuous (fun a : unitInterval × (N → unitInterval) => expand a.1 a.2) := by
71
+ apply continuous_pi
72
+ intro i
73
+ apply continuous_projIcc.comp
74
+ exact ((continuous_subtype_val.comp ((continuous_apply i).comp continuous_snd)).sub
75
+ ((continuous_subtype_val.comp continuous_fst).div_const 4)).div
76
+ (continuous_const.sub ((continuous_subtype_val.comp continuous_fst).div_const 2))
77
+ (fun a => ne_of_gt (denominator_pos a.1))
78
+ omit [Fintype N] [Nonempty N] in
79
+ @[simp] lemma expand_zero (t : N → unitInterval) : expand 0 t = t := by
80
+ funext i
81
+ change projIcc 0 1 _ (((t i:ℝ)-(0:ℝ)/4)/(1-(0:ℝ)/2)) = t i
82
+ simp only [zero_div,sub_zero,div_one,projIcc_val]
83
+
84
+ lemma expand_mem_boundary {s : unitInterval} {t : N → unitInterval}
85
+ (ht : 1-(s:ℝ)/2 ≤ radius t) : expand s t ∈ Cube.boundary N := by
86
+ obtain ⟨⟨i,hi⟩,_⟩ := IsGreatest.pi_norm (fun i => 2*(t i:ℝ)-1)
87
+ have habs : 1-(s:ℝ)/2 ≤ |2*(t i:ℝ)-1| := by
88
+ change ‖2*(t i:ℝ)-1‖ = radius t at hi
89
+ rw [Real.norm_eq_abs] at hi
90
+ exact ht.trans_eq hi.symm
91
+ rcases (le_abs.mp habs) with h | h
92
+ · refine ⟨i,Or.inr ?_⟩
93
+ apply projIcc_of_right_le
94
+ apply (le_div_iff₀ (denominator_pos s)).mpr
95
+ linarith
96
+ · refine ⟨i,Or.inl ?_⟩
97
+ apply projIcc_of_le_left
98
+ apply div_nonpos_of_nonpos_of_nonneg _ (denominator_pos s).le
99
+ linarith
100
+
101
+ lemma expand_boundary (s : unitInterval) {t : N → unitInterval} (ht : t ∈ Cube.boundary N) :
102
+ expand s t ∈ Cube.boundary N := by
103
+ apply expand_mem_boundary
104
+ rw [radius_boundary ht]
105
+ have := s.property.1
106
+ linarith
107
+
108
+ variable {X : Type*} [TopologicalSpace X]
109
+
110
+ theorem null_of_moving_base {x y : X} (f : GenLoop N X x)
111
+ (H : f.1.Homotopy (ContinuousMap.const _ y))
112
+ (p : C(unitInterval,X))
113
+ (hp : ∀ s t, t ∈ Cube.boundary N → H (s,t) = p s) :
114
+ GenLoop.Homotopic f GenLoop.const := by
115
+ let z : N → unitInterval := fun _ => 0
116
+ have hz : z ∈ Cube.boundary N := ⟨Classical.choice inferInstance,Or.inl rfl⟩
117
+ have hp0 : p 0 = x := by
118
+ rw [← hp 0 z hz,H.apply_zero]
119
+ exact GenLoop.boundary f z hz
120
+ have hp1 : p 1 = y := by rw [← hp 1 z hz,H.apply_one]; rfl
121
+ let a : C(N → unitInterval,X) := p.comp ⟨fun t => collarTime 1 t,
122
+ continuous_collarTime.comp (continuous_const.prodMk continuous_id)⟩
123
+ have ha (t : N → unitInterval) : H (collarTime 1 t,expand 1 t) = a t := by
124
+ change H (collarTime 1 t,expand 1 t) = p (collarTime 1 t)
125
+ by_cases ht : collarTime 1 t = 1
126
+ · rw [ht,H.apply_one,hp1]; rfl
127
+ · apply hp
128
+ apply expand_mem_boundary
129
+ have hk : (collarTime 1 t:ℝ) < 1 := lt_of_le_of_ne (collarTime 1 t).property.2
130
+ (fun h => ht (Subtype.ext h))
131
+ change min 1 (2*(1-radius t)) < 1 at hk
132
+ have hr : 2*(1-radius t) < 1 := by simpa only [min_lt_iff,lt_self_iff_false,false_or] using hk
133
+ change 1-(1:ℝ)/2 ≤ radius t
134
+ linarith
135
+ let H₁ : f.1.HomotopyRel a (Cube.boundary N) := {
136
+ toFun := fun q => H (collarTime q.1 q.2,expand q.1 q.2)
137
+ continuous_toFun := H.continuous.comp (continuous_collarTime.prodMk continuous_expand)
138
+ map_zero_left := by intro t; simp only [collarTime_zero,expand_zero,H.apply_zero]
139
+ map_one_left := ha
140
+ prop' := by
141
+ intro s t ht
142
+ change H (collarTime s t,expand s t) = f t
143
+ rw [collarTime_boundary s ht,hp 0 _ (expand_boundary s ht),hp0,GenLoop.boundary f t ht] }
144
+ let H₂ : a.HomotopyRel (ContinuousMap.const _ x) (Cube.boundary N) := {
145
+ toFun := fun q => p ⟨(1-(q.1:ℝ))*(collarTime 1 q.2:ℝ),
146
+ mul_nonneg (by linarith [q.1.property.2]) (collarTime _ _).property.1,
147
+ (mul_le_of_le_one_left (collarTime _ _).property.1
148
+ (by linarith [q.1.property.1])).trans (collarTime _ _).property.2⟩
149
+ continuous_toFun := p.continuous.comp (Continuous.subtype_mk
150
+ ((continuous_const.sub (continuous_subtype_val.comp continuous_fst)).mul
151
+ (continuous_subtype_val.comp (continuous_collarTime.comp (continuous_const.prodMk continuous_snd)))) _)
152
+ map_zero_left := by
153
+ intro t
154
+ change p _ = p (collarTime 1 t)
155
+ congr 1
156
+ apply Subtype.ext
157
+ change (1-(0:ℝ))*(collarTime 1 t:ℝ) = (collarTime 1 t:ℝ)
158
+ ring
159
+ map_one_left := by
160
+ intro t
161
+ change p _ = x
162
+ convert hp0 using 1
163
+ congr 1
164
+ apply Subtype.ext
165
+ change (1-(1:ℝ))*(collarTime 1 t:ℝ) = 0
166
+ ring
167
+ prop' := by
168
+ intro s t ht
169
+ change p _ = p (collarTime 1 t)
170
+ rw [collarTime_boundary 1 ht]
171
+ congr 1
172
+ apply Subtype.ext
173
+ change (1-(s:ℝ))*(0:ℝ) = 0
174
+ ring }
175
+ exact ⟨H₁.trans H₂⟩
176
+
177
+ end NearbyLagrangian.CubicalFreeNullity
178
+
179
+ end
180
+
181
+ noncomputable section
182
+ universe u v w
183
+ open scoped Classical Topology Topology.Homotopy
184
+
185
+ namespace NearbyLagrangian.CubicalFreeNullity
186
+ variable {N : Type*} [Fintype N] [Nonempty N]
187
+ variable {X : Type*} [TopologicalSpace X] {x y : X}
188
+
189
+ def outerTime (s : unitInterval) (t : N → unitInterval) : unitInterval :=
190
+ ⟨max 0 ((s:ℝ)-2*(1-radius t)),le_max_left _ _,by
191
+ apply max_le zero_le_one
192
+ have := radius_le_one t
193
+ linarith [s.property.2]⟩
194
+ omit [Nonempty N] in
195
+ lemma continuous_outerTime : Continuous (fun a : unitInterval × (N → unitInterval) => outerTime a.1 a.2) :=
196
+ ((continuous_const.max ((continuous_subtype_val.comp continuous_fst).sub
197
+ (continuous_const.mul (continuous_const.sub (continuous_radius.comp continuous_snd)))))).subtype_mk _
198
+
199
+ omit [Nonempty N] in
200
+ lemma outerTime_eq_zero {s : unitInterval} {t : N → unitInterval}
201
+ (h : radius t ≤ 1-(s:ℝ)/2) : outerTime s t = 0 := by
202
+ apply Subtype.ext
203
+ change max 0 ((s:ℝ)-2*(1-radius t)) = 0
204
+ apply max_eq_left
205
+ linarith
206
+
207
+ omit [Nonempty N] in
208
+ lemma outerTime_boundary (s : unitInterval) {t : N → unitInterval}
209
+ (h : t ∈ Cube.boundary N) : outerTime s t = s := by
210
+ apply Subtype.ext
211
+ change max 0 ((s:ℝ)-2*(1-radius t)) = s
212
+ rw [radius_boundary h]
213
+ simp only [sub_self,mul_zero,sub_zero,max_eq_right s.property.1]
214
+
215
+ def rebaseValue (f : GenLoop N X x) (p : Path x y) (s : unitInterval)
216
+ (t : N → unitInterval) : X :=
217
+ if radius t ≤ 1-(s:ℝ)/2 then f (expand s t) else p (outerTime s t)
218
+
219
+ lemma continuous_rebaseValue (f : GenLoop N X x) (p : Path x y) :
220
+ Continuous (fun q : unitInterval × (N → unitInterval) => rebaseValue f p q.1 q.2) := by
221
+ apply (f.1.continuous.comp continuous_expand).if_le
222
+ (p.continuous.comp continuous_outerTime) (continuous_radius.comp continuous_snd)
223
+ (continuous_const.sub ((continuous_subtype_val.comp continuous_fst).div_const 2))
224
+ intro q h
225
+ change f (expand q.1 q.2) = p (outerTime q.1 q.2)
226
+ change radius q.2 = 1-(q.1:ℝ)/2 at h
227
+ rw [GenLoop.boundary f _ (expand_mem_boundary h.ge),outerTime_eq_zero h.le,p.source]
228
+
229
+ omit [Nonempty N] in
230
+ @[simp] lemma rebaseValue_zero (f : GenLoop N X x) (p : Path x y)
231
+ (t : N → unitInterval) : rebaseValue f p 0 t = f t := by
232
+ rw [rebaseValue,ite_eq_left (by simpa using radius_le_one t),expand_zero]
233
+
234
+ omit [Nonempty N] in
235
+ lemma rebaseValue_boundary (f : GenLoop N X x) (p : Path x y)
236
+ (s : unitInterval) {t : N → unitInterval} (ht : t ∈ Cube.boundary N) :
237
+ rebaseValue f p s t = p s := by
238
+ rw [rebaseValue]
239
+ split_ifs with h
240
+ · have hs : s = 0 := by
241
+ apply Subtype.ext
242
+ change (s:ℝ) = 0
243
+ rw [radius_boundary ht] at h
244
+ linarith [s.property.1]
245
+ rw [hs,expand_zero,GenLoop.boundary f t ht,p.source]
246
+ · rw [outerTime_boundary s ht]
247
+
248
+ def rebase (f : GenLoop N X x) (p : Path x y) : GenLoop N X y :=
249
+ ⟨⟨fun t => rebaseValue f p 1 t,
250
+ (continuous_rebaseValue f p).comp (continuous_const.prodMk continuous_id)⟩,
251
+ fun _t ht => (rebaseValue_boundary f p 1 ht).trans p.target⟩
252
+
253
+ def rebaseHomotopy (f : GenLoop N X x) (p : Path x y) : f.1.Homotopy (rebase f p).1 where
254
+ toFun q := rebaseValue f p q.1 q.2
255
+ continuous_toFun := continuous_rebaseValue f p
256
+ map_zero_left := rebaseValue_zero f p
257
+ map_one_left _ := rfl
258
+
259
+ end NearbyLagrangian.CubicalFreeNullity
260
+
261
+ end
262
+
263
+ end OAI
lean/OAI/Topology/Homotopy/CubicalSpheres.lean CHANGED
@@ -1,341 +1,341 @@
1
- import Mathlib
2
- import OAI.Topology.Homotopy.CubicalNullity
3
- import OAI.Topology.Homotopy.OpenCollapse
4
-
5
- namespace OAI
6
-
7
- /-! Cubical and spherical representatives of homotopy classes. -/
8
-
9
- noncomputable section
10
- universe u v w
11
- open Set ContinuousMap Topology
12
- open scoped OnePoint Topology Topology.Homotopy
13
-
14
- namespace NearbyLagrangian.CubicalSphere
15
- variable (N : Type*) [Fintype N] [Nonempty N]
16
-
17
- def interiorCube : Set (N → unitInterval) := {t | ∀ i, 0 < (t i:ℝ) ∧ (t i:ℝ) < 1}
18
- omit [Fintype N] [Nonempty N] in
19
- lemma interiorCube_eq : interiorCube N = (Cube.boundary N)ᶜ := by
20
- ext t
21
- simp only [interiorCube,mem_ofPred_eq,Set.mem_compl_iff,Cube.boundary,not_exists,not_or]
22
- constructor
23
- · intro ht i
24
- constructor
25
- · intro h; have := (ht i).1; simp [h] at this
26
- · intro h; have := (ht i).2; simp [h] at this
27
- · intro ht i
28
- constructor
29
- · exact lt_of_le_of_ne (t i).property.1 (fun h => (ht i).1 (Subtype.ext h.symm))
30
- · exact lt_of_le_of_ne (t i).property.2 (fun h => (ht i).2 (Subtype.ext h))
31
-
32
- omit [Nonempty N] in
33
- lemma isOpen_interiorCube : IsOpen (interiorCube N) := by
34
- have he : interiorCube N = ⋂ i, {t : N → unitInterval | 0 < (t i:ℝ) ∧ (t i:ℝ) < 1} := by
35
- ext t; simp [interiorCube]
36
- rw [he]
37
- apply isOpen_iInter_of_finite
38
- intro i
39
- exact isOpen_Ioo.preimage (continuous_subtype_val.comp (continuous_apply i))
40
-
41
- omit [Fintype N] in
42
- lemma complement_nonempty : (interiorCube N)ᶜ.Nonempty := by
43
- refine ⟨fun _ => 0,?_⟩
44
- rw [interiorCube_eq,compl_compl]
45
- exact ⟨Classical.choice inferInstance,Or.inl rfl⟩
46
-
47
- def interiorHomeomorph : interiorCube N ≃ₜ (N → Ioo (0:ℝ) 1) where
48
- toFun t i := ⟨t.1 i,(t.property i)⟩
49
- invFun t := ⟨fun i => ⟨(t i:ℝ),(t i).property.1.le,(t i).property.2.le⟩,
50
- fun i => (t i).property⟩
51
- left_inv _ := rfl
52
- right_inv _ := rfl
53
- continuous_toFun := by
54
- apply continuous_pi
55
- intro i
56
- exact (continuous_subtype_val.comp ((continuous_apply i).comp continuous_subtype_val)).subtype_mk _
57
- continuous_invFun := by
58
- apply Continuous.subtype_mk
59
- apply continuous_pi
60
- intro i
61
- exact (continuous_subtype_val.comp (continuous_apply i)).subtype_mk _
62
-
63
- def intervalHomeomorph : Ioo (0:ℝ) 1 ≃ₜ Ioo (-1:ℝ) 1 where
64
- toFun x := ⟨2*(x:ℝ)-1,by have h := x.property; constructor <;> linarith [h.1,h.2]⟩
65
- invFun y := ⟨((y:ℝ)+1)/2,by have h := y.property; constructor <;> linarith [h.1,h.2]⟩
66
- left_inv x := Subtype.ext (by dsimp; ring)
67
- right_inv y := Subtype.ext (by dsimp; ring)
68
- continuous_toFun := by
69
- apply Continuous.subtype_mk
70
- exact (continuous_const.mul continuous_subtype_val).sub continuous_const
71
- continuous_invFun := by
72
- apply Continuous.subtype_mk
73
- exact (continuous_subtype_val.add continuous_const).div_const 2
74
-
75
- def interiorEuclidean : interiorCube N ≃ₜ (N → ℝ) :=
76
- (interiorHomeomorph N).trans (Homeomorph.piCongrRight fun _ =>
77
- intervalHomeomorph.trans (orderIsoIooNegOneOne ℝ).toHomeomorph.symm)
78
-
79
- def compactificationSphere (n : ℕ) : OnePoint (interiorCube (Fin (n+1))) ≃ₜ
80
- Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1 :=
81
- (interiorEuclidean (Fin (n+1))).onePointCongr.trans
82
- (onePointEquivSphereOfFinrankEq (by simp))
83
-
84
- def spherePoint (n : ℕ) : Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1 :=
85
- compactificationSphere n ∞
86
-
87
- def sphereQuotient (n : ℕ) : C((Fin (n+1) → unitInterval),
88
- Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1) :=
89
- ⟨fun t => compactificationSphere n (OpenCollapse.collapse (interiorCube _) t),
90
- (compactificationSphere n).continuous.comp
91
- (OpenCollapse.continuous_collapse (isOpen_interiorCube _))⟩
92
-
93
- lemma sphereQuotient_boundary (n : ℕ) {t : Fin (n+1) → unitInterval}
94
- (ht : t ∈ Cube.boundary _) : sphereQuotient n t = spherePoint n := by
95
- change compactificationSphere n _ = compactificationSphere n ∞
96
- rw [OpenCollapse.collapse_of_notMem]
97
- simpa only [interiorCube_eq,mem_compl_iff,not_not] using ht
98
-
99
- lemma sphereQuotient_surjective (n : ℕ) : Function.Surjective (sphereQuotient n) :=
100
- (compactificationSphere n).surjective.comp
101
- (OpenCollapse.collapse_surjective (complement_nonempty _))
102
-
103
- variable {X : Type*} [TopologicalSpace X] {x : X}
104
-
105
- def sphereMap {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :
106
- C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X) :=
107
- (OpenCollapse.descend (isOpen_interiorCube _) (complement_nonempty _) f.1 x
108
- (fun t ht => GenLoop.boundary f t (by simpa only [interiorCube_eq,mem_compl_iff,not_not] using ht))).comp
109
- ⟨(compactificationSphere n).symm,(compactificationSphere n).symm.continuous⟩
110
-
111
- @[simp] lemma sphereMap_quotient {n : ℕ} (f : GenLoop (Fin (n+1)) X x)
112
- (t : Fin (n+1) → unitInterval) : sphereMap f (sphereQuotient n t) = f t := by
113
- simp only [sphereMap,ContinuousMap.comp_apply,ContinuousMap.coe_mk,sphereQuotient,
114
- Homeomorph.symm_apply_apply,OpenCollapse.descend_collapse]
115
- rfl
116
-
117
- @[simp] lemma sphereMap_point {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :
118
- sphereMap f (spherePoint n) = x := by
119
- simp only [sphereMap,ContinuousMap.comp_apply,ContinuousMap.coe_mk,spherePoint,
120
- Homeomorph.symm_apply_apply]
121
- rfl
122
-
123
- theorem sphereMap_null_implies_cube_null {n : ℕ} (f : GenLoop (Fin (n+1)) X x)
124
- (hf : (sphereMap f).Nullhomotopic) : GenLoop.Homotopic f GenLoop.const := by
125
- obtain ⟨y,⟨H⟩⟩ := hf
126
- let H' : f.1.Homotopy (ContinuousMap.const _ y) := {
127
- toFun := fun q => H (q.1,sphereQuotient n q.2)
128
- continuous_toFun := H.continuous.comp (continuous_fst.prodMk ((sphereQuotient n).continuous.comp continuous_snd))
129
- map_zero_left := fun t => (H.apply_zero _).trans (sphereMap_quotient f t)
130
- map_one_left := fun t => H.apply_one _ }
131
- let p : C(unitInterval,X) :=
132
- ⟨fun s => H (s,spherePoint n),H.continuous.comp (continuous_id.prodMk continuous_const)⟩
133
- apply CubicalFreeNullity.null_of_moving_base f H' p
134
- intro s t ht
135
- change H (s,sphereQuotient n t) = H (s,spherePoint n)
136
- rw [sphereQuotient_boundary n ht]
137
-
138
- theorem sphereMap_null_implies_class_one {n : ℕ} (f : GenLoop (Fin (n+1)) X x)
139
- (hf : (sphereMap f).Nullhomotopic) :
140
- (⟦f⟧ : HomotopyGroup.Pi (n+1) X x) = (1 : HomotopyGroup.Pi (n+1) X x) := by
141
- rw [HomotopyGroup.one_def]
142
- exact Quotient.sound (sphereMap_null_implies_cube_null f hf)
143
-
144
- end NearbyLagrangian.CubicalSphere
145
-
146
- end
147
-
148
- noncomputable section
149
- universe u v w
150
- open Set ContinuousMap Topology
151
- open scoped OnePoint Topology Topology.Homotopy
152
-
153
- namespace NearbyLagrangian.CubicalSphere
154
- variable {X : Type*} [TopologicalSpace X] {x : X}
155
-
156
- def sphereHomotopy {n : ℕ} {f g : GenLoop (Fin (n+1)) X x}
157
- (H : f.1.HomotopyRel g.1 (Cube.boundary _)) : (sphereMap f).Homotopy (sphereMap g) where
158
- toFun := fun q => ((compactificationSphere n).symm q.2).elim x
159
- (fun t => H (q.1,t))
160
- continuous_toFun := by
161
- let F : C(unitInterval × (Fin (n+1) → unitInterval),X) := ⟨H,H.continuous⟩
162
- have hF : ∀ s t, t ∉ interiorCube (Fin (n+1)) → F (s,t) = x := by
163
- intro s t ht
164
- have ht' : t ∈ Cube.boundary _ := by
165
- simpa only [interiorCube_eq,mem_compl_iff,not_not] using ht
166
- exact (H.eq_fst s ht').trans (GenLoop.boundary f t ht')
167
- exact (OpenCollapse.continuous_descend_param (isOpen_interiorCube _) (complement_nonempty _)
168
- F (const _ x) hF).comp (continuous_fst.prodMk
169
- ((compactificationSphere n).symm.continuous.comp continuous_snd))
170
- map_zero_left := by
171
- intro u
172
- change ((compactificationSphere n).symm u).elim x (fun t => H (0,t)) =
173
- ((compactificationSphere n).symm u).elim x (fun t => f t)
174
- generalize (compactificationSphere n).symm u = z
175
- induction z using OnePoint.rec with
176
- | infty => rfl
177
- | coe t => exact H.apply_zero t
178
- map_one_left := by
179
- intro u
180
- change ((compactificationSphere n).symm u).elim x (fun t => H (1,t)) =
181
- ((compactificationSphere n).symm u).elim x (fun t => g t)
182
- generalize (compactificationSphere n).symm u = z
183
- induction z using OnePoint.rec with
184
- | infty => rfl
185
- | coe t => exact H.apply_one t
186
-
187
- @[simp] theorem sphereMap_const (n : ℕ) : sphereMap (GenLoop.const : GenLoop (Fin (n+1)) X x) =
188
- ContinuousMap.const _ x := by
189
- ext u
190
- obtain ⟨t,rfl⟩ := sphereQuotient_surjective n u
191
- exact sphereMap_quotient GenLoop.const t
192
-
193
- theorem sphereMap_null_iff_cube_null {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :
194
- (sphereMap f).Nullhomotopic ↔ GenLoop.Homotopic f GenLoop.const := by
195
- constructor
196
- · exact sphereMap_null_implies_cube_null f
197
- · rintro ⟨H⟩
198
- refine ⟨x,?_⟩
199
- rw [← sphereMap_const]
200
- exact ⟨sphereHomotopy H⟩
201
-
202
- theorem sphereMap_null_iff_class_one {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :
203
- (sphereMap f).Nullhomotopic ↔
204
- (⟦f⟧ : HomotopyGroup.Pi (n+1) X x) = (1 : HomotopyGroup.Pi (n+1) X x) := by
205
- rw [sphereMap_null_iff_cube_null,HomotopyGroup.one_def,Quotient.eq]
206
- rfl
207
-
208
- end NearbyLagrangian.CubicalSphere
209
-
210
- end
211
-
212
- noncomputable section
213
- universe u v w
214
-
215
-
216
- namespace NearbyLagrangian.SphereConnectivity
217
- open scoped Topology Topology.Homotopy
218
-
219
- def genLoopMap {N A B : Type*} [TopologicalSpace A] [TopologicalSpace B]
220
- (e : C(A,B)) {x : A} (f : GenLoop N A x) : GenLoop N B (e x) :=
221
- ⟨e.comp f.1,fun t ht => congrArg e (GenLoop.boundary f t ht)⟩
222
- lemma genLoopMap_homotopic {N A B : Type*} [TopologicalSpace A] [TopologicalSpace B]
223
- (e : C(A,B)) {x : A} {f g : GenLoop N A x} (h : GenLoop.Homotopic f g) :
224
- GenLoop.Homotopic (genLoopMap e f) (genLoopMap e g) := by
225
- obtain ⟨H⟩ := h
226
- exact ⟨H.compContinuousMap e⟩
227
- def homotopyGroupMap {n : ℕ} {A B : Type*} [TopologicalSpace A] [TopologicalSpace B]
228
- (e : C(A,B)) (x : A) : HomotopyGroup.Pi n A x → HomotopyGroup.Pi n B (e x) :=
229
- Quotient.map (genLoopMap e) (fun _ _ h => genLoopMap_homotopic e h)
230
- end NearbyLagrangian.SphereConnectivity
231
-
232
- end
233
-
234
- noncomputable section
235
- universe u v w
236
-
237
-
238
- namespace NearbyLagrangian.CubicalSphere
239
- open Set ContinuousMap SphereConnectivity
240
- open scoped Topology Topology.Homotopy
241
- variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] {x : X}
242
-
243
- def sphereLoop {n : ℕ}
244
- (a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :
245
- GenLoop (Fin (n+1)) X (a (spherePoint n)) :=
246
- ⟨a.comp (sphereQuotient n),fun _t ht => congrArg a (sphereQuotient_boundary n ht)⟩
247
-
248
- @[simp] theorem sphereMap_sphereLoop {n : ℕ}
249
- (a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :
250
- sphereMap (sphereLoop a) = a := by
251
- ext u
252
- obtain ⟨t,rfl⟩ := sphereQuotient_surjective n u
253
- rw [sphereMap_quotient]
254
- rfl
255
-
256
- @[simp] theorem sphereMap_natural {n : ℕ} (e : C(X,Y))
257
- (f : GenLoop (Fin (n+1)) X x) :
258
- sphereMap (genLoopMap e f) = e.comp (sphereMap f) := by
259
- ext u
260
- obtain ⟨t,rfl⟩ := sphereQuotient_surjective n u
261
- rw [sphereMap_quotient,ContinuousMap.comp_apply,sphereMap_quotient]
262
- rfl
263
-
264
- theorem null_iff_class_one {n : ℕ}
265
- (a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :
266
- a.Nullhomotopic ↔
267
- (⟦sphereLoop a⟧ : HomotopyGroup.Pi (n+1) X (a (spherePoint n))) =
268
- (1 : HomotopyGroup.Pi (n+1) X (a (spherePoint n))) := by
269
- simpa only [sphereMap_sphereLoop] using sphereMap_null_iff_class_one (sphereLoop a)
270
-
271
- theorem comp_null_iff_mapped_class_one {n : ℕ} (e : C(X,Y))
272
- (a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :
273
- (e.comp a).Nullhomotopic ↔
274
- homotopyGroupMap (n:=n+1) e (a (spherePoint n)) ⟦sphereLoop a⟧ =
275
- (1 : HomotopyGroup.Pi (n+1) Y (e (a (spherePoint n)))) := by
276
- change (e.comp a).Nullhomotopic ↔
277
- (⟦genLoopMap e (sphereLoop a)⟧ : HomotopyGroup.Pi (n+1) Y (e (a (spherePoint n)))) = _
278
- simpa only [sphereMap_natural,sphereMap_sphereLoop] using
279
- sphereMap_null_iff_class_one (genLoopMap e (sphereLoop a))
280
-
281
- end NearbyLagrangian.CubicalSphere
282
-
283
- end
284
-
285
- noncomputable section
286
- universe u v w
287
- open scoped Classical Topology Topology.Homotopy
288
-
289
- namespace NearbyLagrangian.CubicalSphere
290
- open Set ContinuousMap
291
- open scoped OnePoint
292
- variable {X : Type*} [TopologicalSpace X] {x y : X}
293
-
294
- def sphereMovingHomotopy {n : ℕ} {f : GenLoop (Fin (n+1)) X x}
295
- {g : GenLoop (Fin (n+1)) X y} (H : f.1.Homotopy g.1)
296
- (p : Path x y) (hp : ∀ s t, t ∈ Cube.boundary (Fin (n+1)) → H (s,t) = p s) :
297
- (sphereMap f).Homotopy (sphereMap g) where
298
- toFun q := ((compactificationSphere n).symm q.2).elim (p q.1) (fun t => H (q.1,t))
299
- continuous_toFun := by
300
- let F : C(unitInterval × (Fin (n+1) → unitInterval),X) := ⟨H,H.continuous⟩
301
- have hF (s : unitInterval) (t : Fin (n+1) → unitInterval)
302
- (ht : t ∉ interiorCube (Fin (n+1))) : F (s,t) = p s := by
303
- apply hp
304
- simpa only [interiorCube_eq,mem_compl_iff,not_not] using ht
305
- exact (OpenCollapse.continuous_descend_param (isOpen_interiorCube _) (complement_nonempty _)
306
- F p.toContinuousMap hF).comp (continuous_fst.prodMk
307
- ((compactificationSphere n).symm.continuous.comp continuous_snd))
308
- map_zero_left := by
309
- intro u
310
- change ((compactificationSphere n).symm u).elim (p 0) (fun t => H (0,t)) =
311
- ((compactificationSphere n).symm u).elim x (fun t => f t)
312
- rw [p.source]
313
- generalize (compactificationSphere n).symm u = z
314
- induction z using OnePoint.rec with
315
- | infty => rfl
316
- | coe t => exact H.apply_zero t
317
- map_one_left := by
318
- intro u
319
- change ((compactificationSphere n).symm u).elim (p 1) (fun t => H (1,t)) =
320
- ((compactificationSphere n).symm u).elim y (fun t => g t)
321
- rw [p.target]
322
- generalize (compactificationSphere n).symm u = z
323
- induction z using OnePoint.rec with
324
- | infty => rfl
325
- | coe t => exact H.apply_one t
326
-
327
- theorem exists_based_representative [PathConnectedSpace X] {n : ℕ}
328
- (a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) (x : X) :
329
- ∃ f : GenLoop (Fin (n+1)) X x, a.Homotopic (sphereMap f) := by
330
- obtain ⟨p⟩ := PathConnectedSpace.joined (a (spherePoint n)) x
331
- refine ⟨CubicalFreeNullity.rebase (sphereLoop a) p,?_⟩
332
- have h := sphereMovingHomotopy (CubicalFreeNullity.rebaseHomotopy (sphereLoop a) p) p
333
- (fun s _t ht => CubicalFreeNullity.rebaseValue_boundary (sphereLoop a) p s ht)
334
- simpa only [sphereMap_sphereLoop] using (show (sphereMap (sphereLoop a)).Homotopic
335
- (sphereMap (CubicalFreeNullity.rebase (sphereLoop a) p)) from ⟨h⟩)
336
-
337
- end NearbyLagrangian.CubicalSphere
338
-
339
- end
340
-
341
- end OAI
 
1
+ import Mathlib
2
+ import OAI.Topology.Homotopy.CubicalNullity
3
+ import OAI.Topology.Homotopy.OpenCollapse
4
+
5
+ namespace OAI
6
+
7
+ /-! Cubical and spherical representatives of homotopy classes. -/
8
+
9
+ noncomputable section
10
+ universe u v w
11
+ open Set ContinuousMap Topology
12
+ open scoped OnePoint Topology Topology.Homotopy
13
+
14
+ namespace NearbyLagrangian.CubicalSphere
15
+ variable (N : Type*) [Fintype N] [Nonempty N]
16
+
17
+ def interiorCube : Set (N → unitInterval) := {t | ∀ i, 0 < (t i:ℝ) ∧ (t i:ℝ) < 1}
18
+ omit [Fintype N] [Nonempty N] in
19
+ lemma interiorCube_eq : interiorCube N = (Cube.boundary N)ᶜ := by
20
+ ext t
21
+ simp only [interiorCube,mem_ofPred_eq,Set.mem_compl_iff,Cube.boundary,not_exists,not_or]
22
+ constructor
23
+ · intro ht i
24
+ constructor
25
+ · intro h; have := (ht i).1; simp [h] at this
26
+ · intro h; have := (ht i).2; simp [h] at this
27
+ · intro ht i
28
+ constructor
29
+ · exact lt_of_le_of_ne (t i).property.1 (fun h => (ht i).1 (Subtype.ext h.symm))
30
+ · exact lt_of_le_of_ne (t i).property.2 (fun h => (ht i).2 (Subtype.ext h))
31
+
32
+ omit [Nonempty N] in
33
+ lemma isOpen_interiorCube : IsOpen (interiorCube N) := by
34
+ have he : interiorCube N = ⋂ i, {t : N → unitInterval | 0 < (t i:ℝ) ∧ (t i:ℝ) < 1} := by
35
+ ext t; simp [interiorCube]
36
+ rw [he]
37
+ apply isOpen_iInter_of_finite
38
+ intro i
39
+ exact isOpen_Ioo.preimage (continuous_subtype_val.comp (continuous_apply i))
40
+
41
+ omit [Fintype N] in
42
+ lemma complement_nonempty : (interiorCube N)ᶜ.Nonempty := by
43
+ refine ⟨fun _ => 0,?_⟩
44
+ rw [interiorCube_eq,compl_compl]
45
+ exact ⟨Classical.choice inferInstance,Or.inl rfl⟩
46
+
47
+ def interiorHomeomorph : interiorCube N ≃ₜ (N → Ioo (0:ℝ) 1) where
48
+ toFun t i := ⟨t.1 i,(t.property i)⟩
49
+ invFun t := ⟨fun i => ⟨(t i:ℝ),(t i).property.1.le,(t i).property.2.le⟩,
50
+ fun i => (t i).property⟩
51
+ left_inv _ := rfl
52
+ right_inv _ := rfl
53
+ continuous_toFun := by
54
+ apply continuous_pi
55
+ intro i
56
+ exact (continuous_subtype_val.comp ((continuous_apply i).comp continuous_subtype_val)).subtype_mk _
57
+ continuous_invFun := by
58
+ apply Continuous.subtype_mk
59
+ apply continuous_pi
60
+ intro i
61
+ exact (continuous_subtype_val.comp (continuous_apply i)).subtype_mk _
62
+
63
+ def intervalHomeomorph : Ioo (0:ℝ) 1 ≃ₜ Ioo (-1:ℝ) 1 where
64
+ toFun x := ⟨2*(x:ℝ)-1,by have h := x.property; constructor <;> linarith [h.1,h.2]⟩
65
+ invFun y := ⟨((y:ℝ)+1)/2,by have h := y.property; constructor <;> linarith [h.1,h.2]⟩
66
+ left_inv x := Subtype.ext (by dsimp; ring)
67
+ right_inv y := Subtype.ext (by dsimp; ring)
68
+ continuous_toFun := by
69
+ apply Continuous.subtype_mk
70
+ exact (continuous_const.mul continuous_subtype_val).sub continuous_const
71
+ continuous_invFun := by
72
+ apply Continuous.subtype_mk
73
+ exact (continuous_subtype_val.add continuous_const).div_const 2
74
+
75
+ def interiorEuclidean : interiorCube N ≃ₜ (N → ℝ) :=
76
+ (interiorHomeomorph N).trans (Homeomorph.piCongrRight fun _ =>
77
+ intervalHomeomorph.trans (orderIsoIooNegOneOne ℝ).toHomeomorph.symm)
78
+
79
+ def compactificationSphere (n : ℕ) : OnePoint (interiorCube (Fin (n+1))) ≃ₜ
80
+ Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1 :=
81
+ (interiorEuclidean (Fin (n+1))).onePointCongr.trans
82
+ (onePointEquivSphereOfFinrankEq (by simp))
83
+
84
+ def spherePoint (n : ℕ) : Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1 :=
85
+ compactificationSphere n ∞
86
+
87
+ def sphereQuotient (n : ℕ) : C((Fin (n+1) → unitInterval),
88
+ Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1) :=
89
+ ⟨fun t => compactificationSphere n (OpenCollapse.collapse (interiorCube _) t),
90
+ (compactificationSphere n).continuous.comp
91
+ (OpenCollapse.continuous_collapse (isOpen_interiorCube _))⟩
92
+
93
+ lemma sphereQuotient_boundary (n : ℕ) {t : Fin (n+1) → unitInterval}
94
+ (ht : t ∈ Cube.boundary _) : sphereQuotient n t = spherePoint n := by
95
+ change compactificationSphere n _ = compactificationSphere n ∞
96
+ rw [OpenCollapse.collapse_of_notMem]
97
+ simpa only [interiorCube_eq,mem_compl_iff,not_not] using ht
98
+
99
+ lemma sphereQuotient_surjective (n : ℕ) : Function.Surjective (sphereQuotient n) :=
100
+ (compactificationSphere n).surjective.comp
101
+ (OpenCollapse.collapse_surjective (complement_nonempty _))
102
+
103
+ variable {X : Type*} [TopologicalSpace X] {x : X}
104
+
105
+ def sphereMap {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :
106
+ C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X) :=
107
+ (OpenCollapse.descend (isOpen_interiorCube _) (complement_nonempty _) f.1 x
108
+ (fun t ht => GenLoop.boundary f t (by simpa only [interiorCube_eq,mem_compl_iff,not_not] using ht))).comp
109
+ ⟨(compactificationSphere n).symm,(compactificationSphere n).symm.continuous⟩
110
+
111
+ @[simp] lemma sphereMap_quotient {n : ℕ} (f : GenLoop (Fin (n+1)) X x)
112
+ (t : Fin (n+1) → unitInterval) : sphereMap f (sphereQuotient n t) = f t := by
113
+ simp only [sphereMap,ContinuousMap.comp_apply,ContinuousMap.coe_mk,sphereQuotient,
114
+ Homeomorph.symm_apply_apply,OpenCollapse.descend_collapse]
115
+ rfl
116
+
117
+ @[simp] lemma sphereMap_point {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :
118
+ sphereMap f (spherePoint n) = x := by
119
+ simp only [sphereMap,ContinuousMap.comp_apply,ContinuousMap.coe_mk,spherePoint,
120
+ Homeomorph.symm_apply_apply]
121
+ rfl
122
+
123
+ theorem sphereMap_null_implies_cube_null {n : ℕ} (f : GenLoop (Fin (n+1)) X x)
124
+ (hf : (sphereMap f).Nullhomotopic) : GenLoop.Homotopic f GenLoop.const := by
125
+ obtain ⟨y,⟨H⟩⟩ := hf
126
+ let H' : f.1.Homotopy (ContinuousMap.const _ y) := {
127
+ toFun := fun q => H (q.1,sphereQuotient n q.2)
128
+ continuous_toFun := H.continuous.comp (continuous_fst.prodMk ((sphereQuotient n).continuous.comp continuous_snd))
129
+ map_zero_left := fun t => (H.apply_zero _).trans (sphereMap_quotient f t)
130
+ map_one_left := fun t => H.apply_one _ }
131
+ let p : C(unitInterval,X) :=
132
+ ⟨fun s => H (s,spherePoint n),H.continuous.comp (continuous_id.prodMk continuous_const)⟩
133
+ apply CubicalFreeNullity.null_of_moving_base f H' p
134
+ intro s t ht
135
+ change H (s,sphereQuotient n t) = H (s,spherePoint n)
136
+ rw [sphereQuotient_boundary n ht]
137
+
138
+ theorem sphereMap_null_implies_class_one {n : ℕ} (f : GenLoop (Fin (n+1)) X x)
139
+ (hf : (sphereMap f).Nullhomotopic) :
140
+ (⟦f⟧ : HomotopyGroup.Pi (n+1) X x) = (1 : HomotopyGroup.Pi (n+1) X x) := by
141
+ rw [HomotopyGroup.one_def]
142
+ exact Quotient.sound (sphereMap_null_implies_cube_null f hf)
143
+
144
+ end NearbyLagrangian.CubicalSphere
145
+
146
+ end
147
+
148
+ noncomputable section
149
+ universe u v w
150
+ open Set ContinuousMap Topology
151
+ open scoped OnePoint Topology Topology.Homotopy
152
+
153
+ namespace NearbyLagrangian.CubicalSphere
154
+ variable {X : Type*} [TopologicalSpace X] {x : X}
155
+
156
+ def sphereHomotopy {n : ℕ} {f g : GenLoop (Fin (n+1)) X x}
157
+ (H : f.1.HomotopyRel g.1 (Cube.boundary _)) : (sphereMap f).Homotopy (sphereMap g) where
158
+ toFun := fun q => ((compactificationSphere n).symm q.2).elim x
159
+ (fun t => H (q.1,t))
160
+ continuous_toFun := by
161
+ let F : C(unitInterval × (Fin (n+1) → unitInterval),X) := ⟨H,H.continuous⟩
162
+ have hF : ∀ s t, t ∉ interiorCube (Fin (n+1)) → F (s,t) = x := by
163
+ intro s t ht
164
+ have ht' : t ∈ Cube.boundary _ := by
165
+ simpa only [interiorCube_eq,mem_compl_iff,not_not] using ht
166
+ exact (H.eq_fst s ht').trans (GenLoop.boundary f t ht')
167
+ exact (OpenCollapse.continuous_descend_param (isOpen_interiorCube _) (complement_nonempty _)
168
+ F (const _ x) hF).comp (continuous_fst.prodMk
169
+ ((compactificationSphere n).symm.continuous.comp continuous_snd))
170
+ map_zero_left := by
171
+ intro u
172
+ change ((compactificationSphere n).symm u).elim x (fun t => H (0,t)) =
173
+ ((compactificationSphere n).symm u).elim x (fun t => f t)
174
+ generalize (compactificationSphere n).symm u = z
175
+ induction z using OnePoint.rec with
176
+ | infty => rfl
177
+ | coe t => exact H.apply_zero t
178
+ map_one_left := by
179
+ intro u
180
+ change ((compactificationSphere n).symm u).elim x (fun t => H (1,t)) =
181
+ ((compactificationSphere n).symm u).elim x (fun t => g t)
182
+ generalize (compactificationSphere n).symm u = z
183
+ induction z using OnePoint.rec with
184
+ | infty => rfl
185
+ | coe t => exact H.apply_one t
186
+
187
+ @[simp] theorem sphereMap_const (n : ℕ) : sphereMap (GenLoop.const : GenLoop (Fin (n+1)) X x) =
188
+ ContinuousMap.const _ x := by
189
+ ext u
190
+ obtain ⟨t,rfl⟩ := sphereQuotient_surjective n u
191
+ exact sphereMap_quotient GenLoop.const t
192
+
193
+ theorem sphereMap_null_iff_cube_null {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :
194
+ (sphereMap f).Nullhomotopic ↔ GenLoop.Homotopic f GenLoop.const := by
195
+ constructor
196
+ · exact sphereMap_null_implies_cube_null f
197
+ · rintro ⟨H⟩
198
+ refine ⟨x,?_⟩
199
+ rw [← sphereMap_const]
200
+ exact ⟨sphereHomotopy H⟩
201
+
202
+ theorem sphereMap_null_iff_class_one {n : ℕ} (f : GenLoop (Fin (n+1)) X x) :
203
+ (sphereMap f).Nullhomotopic ↔
204
+ (⟦f⟧ : HomotopyGroup.Pi (n+1) X x) = (1 : HomotopyGroup.Pi (n+1) X x) := by
205
+ rw [sphereMap_null_iff_cube_null,HomotopyGroup.one_def,Quotient.eq]
206
+ rfl
207
+
208
+ end NearbyLagrangian.CubicalSphere
209
+
210
+ end
211
+
212
+ noncomputable section
213
+ universe u v w
214
+
215
+
216
+ namespace NearbyLagrangian.SphereConnectivity
217
+ open scoped Topology Topology.Homotopy
218
+
219
+ def genLoopMap {N A B : Type*} [TopologicalSpace A] [TopologicalSpace B]
220
+ (e : C(A,B)) {x : A} (f : GenLoop N A x) : GenLoop N B (e x) :=
221
+ ⟨e.comp f.1,fun t ht => congrArg e (GenLoop.boundary f t ht)⟩
222
+ lemma genLoopMap_homotopic {N A B : Type*} [TopologicalSpace A] [TopologicalSpace B]
223
+ (e : C(A,B)) {x : A} {f g : GenLoop N A x} (h : GenLoop.Homotopic f g) :
224
+ GenLoop.Homotopic (genLoopMap e f) (genLoopMap e g) := by
225
+ obtain ⟨H⟩ := h
226
+ exact ⟨H.compContinuousMap e⟩
227
+ def homotopyGroupMap {n : ℕ} {A B : Type*} [TopologicalSpace A] [TopologicalSpace B]
228
+ (e : C(A,B)) (x : A) : HomotopyGroup.Pi n A x → HomotopyGroup.Pi n B (e x) :=
229
+ Quotient.map (genLoopMap e) (fun _ _ h => genLoopMap_homotopic e h)
230
+ end NearbyLagrangian.SphereConnectivity
231
+
232
+ end
233
+
234
+ noncomputable section
235
+ universe u v w
236
+
237
+
238
+ namespace NearbyLagrangian.CubicalSphere
239
+ open Set ContinuousMap SphereConnectivity
240
+ open scoped Topology Topology.Homotopy
241
+ variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] {x : X}
242
+
243
+ def sphereLoop {n : ℕ}
244
+ (a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :
245
+ GenLoop (Fin (n+1)) X (a (spherePoint n)) :=
246
+ ⟨a.comp (sphereQuotient n),fun _t ht => congrArg a (sphereQuotient_boundary n ht)⟩
247
+
248
+ @[simp] theorem sphereMap_sphereLoop {n : ℕ}
249
+ (a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :
250
+ sphereMap (sphereLoop a) = a := by
251
+ ext u
252
+ obtain ⟨t,rfl⟩ := sphereQuotient_surjective n u
253
+ rw [sphereMap_quotient]
254
+ rfl
255
+
256
+ @[simp] theorem sphereMap_natural {n : ℕ} (e : C(X,Y))
257
+ (f : GenLoop (Fin (n+1)) X x) :
258
+ sphereMap (genLoopMap e f) = e.comp (sphereMap f) := by
259
+ ext u
260
+ obtain ⟨t,rfl⟩ := sphereQuotient_surjective n u
261
+ rw [sphereMap_quotient,ContinuousMap.comp_apply,sphereMap_quotient]
262
+ rfl
263
+
264
+ theorem null_iff_class_one {n : ℕ}
265
+ (a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :
266
+ a.Nullhomotopic ↔
267
+ (⟦sphereLoop a⟧ : HomotopyGroup.Pi (n+1) X (a (spherePoint n))) =
268
+ (1 : HomotopyGroup.Pi (n+1) X (a (spherePoint n))) := by
269
+ simpa only [sphereMap_sphereLoop] using sphereMap_null_iff_class_one (sphereLoop a)
270
+
271
+ theorem comp_null_iff_mapped_class_one {n : ℕ} (e : C(X,Y))
272
+ (a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) :
273
+ (e.comp a).Nullhomotopic ↔
274
+ homotopyGroupMap (n:=n+1) e (a (spherePoint n)) ⟦sphereLoop a⟧ =
275
+ (1 : HomotopyGroup.Pi (n+1) Y (e (a (spherePoint n)))) := by
276
+ change (e.comp a).Nullhomotopic ↔
277
+ (⟦genLoopMap e (sphereLoop a)⟧ : HomotopyGroup.Pi (n+1) Y (e (a (spherePoint n)))) = _
278
+ simpa only [sphereMap_natural,sphereMap_sphereLoop] using
279
+ sphereMap_null_iff_class_one (genLoopMap e (sphereLoop a))
280
+
281
+ end NearbyLagrangian.CubicalSphere
282
+
283
+ end
284
+
285
+ noncomputable section
286
+ universe u v w
287
+ open scoped Classical Topology Topology.Homotopy
288
+
289
+ namespace NearbyLagrangian.CubicalSphere
290
+ open Set ContinuousMap
291
+ open scoped OnePoint
292
+ variable {X : Type*} [TopologicalSpace X] {x y : X}
293
+
294
+ def sphereMovingHomotopy {n : ℕ} {f : GenLoop (Fin (n+1)) X x}
295
+ {g : GenLoop (Fin (n+1)) X y} (H : f.1.Homotopy g.1)
296
+ (p : Path x y) (hp : ∀ s t, t ∈ Cube.boundary (Fin (n+1)) → H (s,t) = p s) :
297
+ (sphereMap f).Homotopy (sphereMap g) where
298
+ toFun q := ((compactificationSphere n).symm q.2).elim (p q.1) (fun t => H (q.1,t))
299
+ continuous_toFun := by
300
+ let F : C(unitInterval × (Fin (n+1) → unitInterval),X) := ⟨H,H.continuous⟩
301
+ have hF (s : unitInterval) (t : Fin (n+1) → unitInterval)
302
+ (ht : t ∉ interiorCube (Fin (n+1))) : F (s,t) = p s := by
303
+ apply hp
304
+ simpa only [interiorCube_eq,mem_compl_iff,not_not] using ht
305
+ exact (OpenCollapse.continuous_descend_param (isOpen_interiorCube _) (complement_nonempty _)
306
+ F p.toContinuousMap hF).comp (continuous_fst.prodMk
307
+ ((compactificationSphere n).symm.continuous.comp continuous_snd))
308
+ map_zero_left := by
309
+ intro u
310
+ change ((compactificationSphere n).symm u).elim (p 0) (fun t => H (0,t)) =
311
+ ((compactificationSphere n).symm u).elim x (fun t => f t)
312
+ rw [p.source]
313
+ generalize (compactificationSphere n).symm u = z
314
+ induction z using OnePoint.rec with
315
+ | infty => rfl
316
+ | coe t => exact H.apply_zero t
317
+ map_one_left := by
318
+ intro u
319
+ change ((compactificationSphere n).symm u).elim (p 1) (fun t => H (1,t)) =
320
+ ((compactificationSphere n).symm u).elim y (fun t => g t)
321
+ rw [p.target]
322
+ generalize (compactificationSphere n).symm u = z
323
+ induction z using OnePoint.rec with
324
+ | infty => rfl
325
+ | coe t => exact H.apply_one t
326
+
327
+ theorem exists_based_representative [PathConnectedSpace X] {n : ℕ}
328
+ (a : C(Metric.sphere (0 : EuclideanSpace ℝ (Fin (n+2))) 1,X)) (x : X) :
329
+ ∃ f : GenLoop (Fin (n+1)) X x, a.Homotopic (sphereMap f) := by
330
+ obtain ⟨p⟩ := PathConnectedSpace.joined (a (spherePoint n)) x
331
+ refine ⟨CubicalFreeNullity.rebase (sphereLoop a) p,?_⟩
332
+ have h := sphereMovingHomotopy (CubicalFreeNullity.rebaseHomotopy (sphereLoop a) p) p
333
+ (fun s _t ht => CubicalFreeNullity.rebaseValue_boundary (sphereLoop a) p s ht)
334
+ simpa only [sphereMap_sphereLoop] using (show (sphereMap (sphereLoop a)).Homotopic
335
+ (sphereMap (CubicalFreeNullity.rebase (sphereLoop a) p)) from ⟨h⟩)
336
+
337
+ end NearbyLagrangian.CubicalSphere
338
+
339
+ end
340
+
341
+ end OAI
lean/OAI/Topology/Homotopy/FiberCone.lean CHANGED
@@ -1,393 +1,393 @@
1
- import Mathlib
2
-
3
- namespace OAI
4
-
5
- /-! Fiberwise cones, contractions and left suspension homotopies. -/
6
-
7
- noncomputable section
8
- universe u v w
9
- open Set ContinuousMap
10
- open scoped Topology unitInterval
11
-
12
- namespace NearbyLagrangian.FiberCone
13
-
14
- variable {B A X Y : Type*} [TopologicalSpace B] [TopologicalSpace A]
15
- [TopologicalSpace X] [TopologicalSpace Y]
16
-
17
- abbrev Raw (B A X : Type*) := X ⊕ ((unitInterval × A) ⊕ B)
18
-
19
- inductive Seam (f : C(A,X)) (q : C(A,B)) : Raw B A X → Raw B A X → Prop
20
- | bottom (a : A) : Seam f q (.inr (.inl (0,a))) (.inl (f a))
21
- | top (a : A) : Seam f q (.inr (.inl (1,a))) (.inr (.inr (q a)))
22
-
23
- def Space (f : C(A,X)) (q : C(A,B)) := Quot (Seam f q)
24
- instance (f : C(A,X)) (q : C(A,B)) : TopologicalSpace (Space f q) :=
25
- inferInstanceAs (TopologicalSpace (Quot (Seam f q)))
26
-
27
- def base (f : C(A,X)) (q : C(A,B)) : C(X,Space f q) :=
28
- ⟨fun x => Quot.mk _ (.inl x),continuous_quot_mk.comp continuous_inl⟩
29
- def ray (f : C(A,X)) (q : C(A,B)) : C(unitInterval × A,Space f q) :=
30
- ⟨fun z => Quot.mk _ (.inr (.inl z)),
31
- continuous_quot_mk.comp (continuous_inr.comp continuous_inl)⟩
32
- def apex (f : C(A,X)) (q : C(A,B)) : C(B,Space f q) :=
33
- ⟨fun b => Quot.mk _ (.inr (.inr b)),
34
- continuous_quot_mk.comp (continuous_inr.comp continuous_inr)⟩
35
-
36
- @[simp] lemma ray_zero (f : C(A,X)) (q : C(A,B)) (a : A) :
37
- ray f q (0,a) = base f q (f a) := Quot.sound (Seam.bottom a)
38
- @[simp] lemma ray_one (f : C(A,X)) (q : C(A,B)) (a : A) :
39
- ray f q (1,a) = apex f q (q a) := Quot.sound (Seam.top a)
40
-
41
- def lift (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))
42
- (c : C(unitInterval × A,Y)) (v : C(B,Y))
43
- (h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) :
44
- C(Space f q,Y) where
45
- toFun := Quot.lift (Sum.elim i (Sum.elim c v)) (by
46
- intro a b h
47
- cases h with
48
- | bottom a => exact h₀ a
49
- | top a => exact h₁ a)
50
- continuous_toFun := continuous_quot_lift _
51
- (i.continuous.sumElim (c.continuous.sumElim v.continuous))
52
-
53
- @[simp] lemma lift_base (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))
54
- (c : C(unitInterval × A,Y)) (v : C(B,Y))
55
- (h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) (x : X) :
56
- lift f q i c v h₀ h₁ (base f q x) = i x := rfl
57
- @[simp] lemma lift_ray (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))
58
- (c : C(unitInterval × A,Y)) (v : C(B,Y))
59
- (h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) (z : unitInterval × A) :
60
- lift f q i c v h₀ h₁ (ray f q z) = c z := rfl
61
- @[simp] lemma lift_apex (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))
62
- (c : C(unitInterval × A,Y)) (v : C(B,Y))
63
- (h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) (b : B) :
64
- lift f q i c v h₀ h₁ (apex f q b) = v b := rfl
65
-
66
- @[elab_as_elim] theorem induction {f : C(A,X)} {q : C(A,B)}
67
- {P : Space f q → Prop} (hbase : ∀ x, P (base f q x))
68
- (hray : ∀ ta, P (ray f q ta)) (hapex : ∀ b, P (apex f q b)) (z : Space f q) : P z := by
69
- induction z using Quot.inductionOn with
70
- | h z =>
71
- rcases z with x | (ta | b)
72
- · exact hbase x
73
- · exact hray ta
74
- · exact hapex b
75
-
76
- def projection (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
77
- (hf : ∀ a, p (f a) = q a) : C(Space f q,B) :=
78
- lift f q p (q.comp ⟨Prod.snd,continuous_snd⟩) (ContinuousMap.id B)
79
- (fun a => (hf a).symm) (fun _ => rfl)
80
-
81
- @[simp] lemma projection_base (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
82
- (hf : ∀ a, p (f a) = q a) (x : X) : projection f p q hf (base f q x) = p x := rfl
83
- @[simp] lemma projection_ray (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
84
- (hf : ∀ a, p (f a) = q a) (ta : unitInterval × A) :
85
- projection f p q hf (ray f q ta) = q ta.2 := rfl
86
- @[simp] lemma projection_apex (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
87
- (hf : ∀ a, p (f a) = q a) (b : B) : projection f p q hf (apex f q b) = b := rfl
88
-
89
- abbrev Susp (q : C(A,B)) := Space q q
90
-
91
- def suspProjection (q : C(A,B)) : C(Susp q,B) :=
92
- projection q (ContinuousMap.id B) q (fun _ => rfl)
93
-
94
- abbrev south (q : C(A,B)) : C(B,Susp q) := base q q
95
- abbrev meridian (q : C(A,B)) : C(unitInterval × A,Susp q) := ray q q
96
- abbrev north (q : C(A,B)) : C(B,Susp q) := apex q q
97
-
98
- def suspMap (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
99
- (hf : ∀ a, p (f a) = q a) : C(Susp q,Susp p) :=
100
- lift q q (south p)
101
- ((meridian p).comp ⟨fun ta => (ta.1,f ta.2),continuous_fst.prodMk
102
- (f.continuous.comp continuous_snd)⟩) (north p)
103
- (fun a => by change meridian p (0,f a) = south p (q a); rw [ray_zero,hf])
104
- (fun a => by change meridian p (1,f a) = north p (q a); rw [ray_one,hf])
105
-
106
- @[simp] lemma suspMap_south (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
107
- (hf : ∀ a, p (f a) = q a) (b : B) : suspMap f p q hf (south q b) = south p b := rfl
108
- @[simp] lemma suspMap_meridian (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
109
- (hf : ∀ a, p (f a) = q a) (ta : unitInterval × A) :
110
- suspMap f p q hf (meridian q ta) = meridian p (ta.1,f ta.2) := rfl
111
- @[simp] lemma suspMap_north (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
112
- (hf : ∀ a, p (f a) = q a) (b : B) : suspMap f p q hf (north q b) = north p b := rfl
113
-
114
- lemma suspMap_over (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
115
- (hf : ∀ a, p (f a) = q a) (z : Susp q) :
116
- suspProjection p (suspMap f p q hf z) = suspProjection q z := by
117
- induction z using induction with
118
- | hbase b => rfl
119
- | hray ta => exact hf ta.2
120
- | hapex b => rfl
121
-
122
- def collapse (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
123
- (hf : ∀ a, p (f a) = q a) : C(Space f q,Susp q) :=
124
- lift f q ((south q).comp p) (meridian q) (north q)
125
- (fun a => by change meridian q (0,a) = south q (p (f a)); rw [ray_zero,hf])
126
- (fun a => ray_one q q a)
127
-
128
- @[simp] lemma collapse_base (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
129
- (hf : ∀ a, p (f a) = q a) (x : X) : collapse f p q hf (base f q x) = south q (p x) := rfl
130
- @[simp] lemma collapse_ray (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
131
- (hf : ∀ a, p (f a) = q a) (ta : unitInterval × A) : collapse f p q hf (ray f q ta) = meridian q ta := rfl
132
- @[simp] lemma collapse_apex (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
133
- (hf : ∀ a, p (f a) = q a) (b : B) : collapse f p q hf (apex f q b) = north q b := rfl
134
-
135
- lemma collapse_over (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
136
- (hf : ∀ a, p (f a) = q a) (z : Space f q) :
137
- suspProjection q (collapse f p q hf z) = projection f p q hf z := by
138
- induction z using induction with
139
- | hbase x => rfl
140
- | hray ta => rfl
141
- | hapex b => rfl
142
-
143
- end NearbyLagrangian.FiberCone
144
-
145
- end
146
-
147
- noncomputable section
148
- universe u v w
149
- open Set ContinuousMap
150
- open scoped Topology unitInterval
151
-
152
- namespace NearbyLagrangian.FiberCone
153
- variable {B A X : Type*} [TopologicalSpace B] [TopologicalSpace A] [TopologicalSpace X]
154
-
155
- structure Contraction (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
156
- (hf : ∀ a, p (f a) = q a) where
157
- hom : C(unitInterval × Space f q,Space f q)
158
- at_zero : ∀ z, hom (0,z) = z
159
- at_one : ∀ z, hom (1,z) = apex f q (projection f p q hf z)
160
- staysOver : ∀ t z, projection f p q hf (hom (t,z)) = projection f p q hf z
161
- fixed : ∀ t b, hom (t,apex f q b) = apex f q b
162
-
163
- namespace Contraction
164
- variable {f : C(A,X)} {p : C(X,B)} {q : C(A,B)} {hf : ∀ a, p (f a) = q a}
165
- variable (H : Contraction f p q hf)
166
-
167
- def inverseRay : C(unitInterval × X,Susp q) :=
168
- (collapse f p q hf).comp
169
- (H.hom.comp ⟨fun tx => (tx.1,base f q tx.2),
170
- continuous_fst.prodMk ((base f q).continuous.comp continuous_snd)⟩)
171
-
172
- @[simp] lemma inverseRay_zero (x : X) : H.inverseRay (0,x) = south q (p x) := by
173
- change collapse f p q hf (H.hom (0,base f q x)) = _
174
- rw [H.at_zero,collapse_base]
175
- @[simp] lemma inverseRay_one (x : X) : H.inverseRay (1,x) = north q (p x) := by
176
- change collapse f p q hf (H.hom (1,base f q x)) = _
177
- rw [H.at_one,projection_base,collapse_apex]
178
-
179
- def inverse : C(Susp p,Susp q) :=
180
- lift p p (south q) H.inverseRay (north q) H.inverseRay_zero H.inverseRay_one
181
-
182
- @[simp] lemma inverse_south (b : B) : H.inverse (south p b) = south q b := rfl
183
- @[simp] lemma inverse_meridian (tx : unitInterval × X) :
184
- H.inverse (meridian p tx) = collapse f p q hf (H.hom (tx.1,base f q tx.2)) := rfl
185
- @[simp] lemma inverse_north (b : B) : H.inverse (north p b) = north q b := rfl
186
-
187
- lemma inverse_over (z : Susp p) : suspProjection q (H.inverse z) = suspProjection p z := by
188
- induction z using induction with
189
- | hbase b => rfl
190
- | hray tx =>
191
- rw [inverse_meridian,collapse_over,H.staysOver,projection_base]
192
- rfl
193
- | hapex b => rfl
194
-
195
- end Contraction
196
-
197
- def squareDen (s : unitInterval) : ℝ := max (s:ℝ) (1-(s:ℝ))
198
- lemma squareDen_pos (s : unitInterval) : 0 < squareDen s := by
199
- have ha := le_max_left (s:ℝ) (1-(s:ℝ))
200
- have hb := le_max_right (s:ℝ) (1-(s:ℝ))
201
- dsimp [squareDen]
202
- linarith
203
- lemma continuous_squareDen : Continuous squareDen :=
204
- continuous_subtype_val.max (continuous_const.sub continuous_subtype_val)
205
-
206
- def horizontal : C(unitInterval × unitInterval,unitInterval) where
207
- toFun st := ⟨(1-(st.1:ℝ))*(st.2:ℝ) / squareDen st.1,by
208
- refine ⟨div_nonneg (mul_nonneg (sub_nonneg.mpr st.1.property.2) st.2.property.1)
209
- (squareDen_pos st.1).le,?_⟩
210
- apply (div_le_one (squareDen_pos st.1)).mpr
211
- have h := mul_le_mul_of_nonneg_left st.2.property.2 (sub_nonneg.mpr st.1.property.2)
212
- have h' : (1 - (st.1:ℝ)) * (st.2:ℝ) ≤ 1 - (st.1:ℝ) := by
213
- simpa only [mul_one] using h
214
- exact h'.trans (le_max_right _ _)⟩
215
- continuous_toFun := by
216
- apply Continuous.subtype_mk
217
- exact (((continuous_const.sub (continuous_subtype_val.comp continuous_fst)).mul
218
- (continuous_subtype_val.comp continuous_snd)).div
219
- (continuous_squareDen.comp continuous_fst) (fun _ => (squareDen_pos _).ne'))
220
-
221
- def vertical : C(unitInterval × unitInterval,unitInterval) where
222
- toFun st := ⟨(st.1:ℝ)*(st.2:ℝ) / squareDen st.1,by
223
- refine ⟨div_nonneg (mul_nonneg st.1.property.1 st.2.property.1) (squareDen_pos st.1).le,?_⟩
224
- apply (div_le_one (squareDen_pos st.1)).mpr
225
- have h := mul_le_mul_of_nonneg_left st.2.property.2 st.1.property.1
226
- have h' : (st.1:ℝ) * (st.2:ℝ) ≤ (st.1:ℝ) := by
227
- simpa only [mul_one] using h
228
- exact h'.trans (le_max_left _ _)⟩
229
- continuous_toFun := by
230
- apply Continuous.subtype_mk
231
- exact (((continuous_subtype_val.comp continuous_fst).mul
232
- (continuous_subtype_val.comp continuous_snd)).div
233
- (continuous_squareDen.comp continuous_fst) (fun _ => (squareDen_pos _).ne'))
234
-
235
- @[simp] lemma horizontal_left (t : unitInterval) : horizontal (0,t) = t := by
236
- apply Subtype.ext
237
- simp [horizontal,squareDen]
238
- @[simp] lemma horizontal_right (t : unitInterval) : horizontal (1,t) = 0 := by
239
- apply Subtype.ext
240
- simp [horizontal,squareDen]
241
- @[simp] lemma vertical_left (t : unitInterval) : vertical (0,t) = 0 := by
242
- apply Subtype.ext
243
- simp [vertical,squareDen]
244
- @[simp] lemma vertical_right (t : unitInterval) : vertical (1,t) = t := by
245
- apply Subtype.ext
246
- simp [vertical,squareDen]
247
- @[simp] lemma horizontal_bottom (s : unitInterval) : horizontal (s,0) = 0 := by
248
- apply Subtype.ext
249
- simp [horizontal]
250
- @[simp] lemma vertical_bottom (s : unitInterval) : vertical (s,0) = 0 := by
251
- apply Subtype.ext
252
- simp [vertical]
253
-
254
- lemma square_top (s : unitInterval) : horizontal (s,1) = 1 ∨ vertical (s,1) = 1 := by
255
- rcases le_total (s:ℝ) (1-(s:ℝ)) with hs | hs
256
- · left
257
- apply Subtype.ext
258
- have hn : 1-(s:ℝ) ≠ 0 := by
259
- have hd := squareDen_pos s
260
- rw [squareDen,max_eq_right hs] at hd
261
- exact hd.ne'
262
- simp [horizontal,squareDen,max_eq_right hs,hn]
263
- · right
264
- apply Subtype.ext
265
- have hn : (s:ℝ) ≠ 0 := by
266
- have hd := squareDen_pos s
267
- rw [squareDen,max_eq_left hs] at hd
268
- exact hd.ne'
269
- simp [vertical,squareDen,max_eq_left hs,hn]
270
-
271
- end NearbyLagrangian.FiberCone
272
-
273
- end
274
-
275
- noncomputable section
276
- universe u v w
277
- open Set ContinuousMap
278
- open scoped Topology unitInterval
279
-
280
- namespace NearbyLagrangian.FiberCone
281
- variable {B A X Y : Type*} [TopologicalSpace B] [TopologicalSpace A]
282
- [TopologicalSpace X] [TopologicalSpace Y]
283
-
284
- def cylinderLift (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))
285
- (c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))
286
- (h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))
287
- (h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) : C(unitInterval × Space f q,Y) :=
288
- (ContinuousMap.uncurry (lift f q
289
- (ContinuousMap.curry (i.comp ContinuousMap.prodSwap))
290
- (ContinuousMap.curry (c.comp ContinuousMap.prodSwap))
291
- (ContinuousMap.curry (v.comp ContinuousMap.prodSwap))
292
- (fun a => by ext s; exact h₀ s a)
293
- (fun a => by ext s; exact h₁ s a))).comp ContinuousMap.prodSwap
294
-
295
- @[simp] lemma cylinderLift_base (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))
296
- (c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))
297
- (h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))
298
- (h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) (s : unitInterval) (x : X) :
299
- cylinderLift f q i c v h₀ h₁ (s,base f q x) = i (s,x) := rfl
300
- @[simp] lemma cylinderLift_ray (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))
301
- (c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))
302
- (h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))
303
- (h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) (s : unitInterval) (ta : unitInterval × A) :
304
- cylinderLift f q i c v h₀ h₁ (s,ray f q ta) = c (s,ta) := rfl
305
- @[simp] lemma cylinderLift_apex (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))
306
- (c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))
307
- (h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))
308
- (h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) (s : unitInterval) (b : B) :
309
- cylinderLift f q i c v h₀ h₁ (s,apex f q b) = v (s,b) := rfl
310
-
311
- namespace Contraction
312
- variable {f : C(A,X)} {p : C(X,B)} {q : C(A,B)} {hf : ∀ a, p (f a) = q a}
313
- variable (H : Contraction f p q hf)
314
-
315
- def leftRay : C(unitInterval × (unitInterval × A),Susp q) where
316
- toFun z := collapse f p q hf (H.hom
317
- (vertical (z.1,z.2.1),ray f q (horizontal (z.1,z.2.1),z.2.2)))
318
- continuous_toFun := (collapse f p q hf).continuous.comp (H.hom.continuous.comp
319
- ((vertical.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk
320
- ((ray f q).continuous.comp
321
- ((horizontal.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk
322
- (continuous_snd.comp continuous_snd)))))
323
-
324
- lemma leftRay_bottom (s : unitInterval) (a : A) : H.leftRay (s,(0,a)) = south q (q a) := by
325
- change collapse f p q hf (H.hom (vertical (s,0),ray f q (horizontal (s,0),a))) = _
326
- rw [horizontal_bottom,vertical_bottom,H.at_zero,ray_zero,collapse_base,hf]
327
-
328
- lemma leftRay_top (s : unitInterval) (a : A) : H.leftRay (s,(1,a)) = north q (q a) := by
329
- change collapse f p q hf (H.hom (vertical (s,1),ray f q (horizontal (s,1),a))) = _
330
- rcases square_top s with hx | hy
331
- · rw [hx,ray_one,H.fixed,collapse_apex]
332
- · rw [hy,H.at_one,projection_ray,collapse_apex]
333
-
334
- def leftDeformation : C(unitInterval × Susp q,Susp q) :=
335
- cylinderLift q q ((south q).comp ⟨Prod.snd,continuous_snd⟩) H.leftRay
336
- ((north q).comp ⟨Prod.snd,continuous_snd⟩) H.leftRay_bottom H.leftRay_top
337
-
338
- @[simp] lemma leftDeformation_south (s : unitInterval) (b : B) :
339
- H.leftDeformation (s,south q b) = south q b := rfl
340
- @[simp] lemma leftDeformation_meridian (s : unitInterval) (ta : unitInterval × A) :
341
- H.leftDeformation (s,meridian q ta) = H.leftRay (s,ta) := rfl
342
- @[simp] lemma leftDeformation_north (s : unitInterval) (b : B) :
343
- H.leftDeformation (s,north q b) = north q b := rfl
344
-
345
- lemma leftDeformation_zero (z : Susp q) : H.leftDeformation (0,z) = z := by
346
- induction z using induction with
347
- | hbase b => rfl
348
- | hray ta =>
349
- rw [leftDeformation_meridian]
350
- change collapse f p q hf (H.hom
351
- (vertical (0,ta.1),ray f q (horizontal (0,ta.1),ta.2))) = _
352
- rw [horizontal_left,vertical_left,H.at_zero,collapse_ray]
353
- | hapex b => rfl
354
-
355
- lemma leftDeformation_one (z : Susp q) :
356
- H.leftDeformation (1,z) = H.inverse (suspMap f p q hf z) := by
357
- induction z using induction with
358
- | hbase b => rw [leftDeformation_south,suspMap_south,inverse_south]
359
- | hray ta =>
360
- rw [leftDeformation_meridian,suspMap_meridian,inverse_meridian]
361
- change collapse f p q hf (H.hom
362
- (vertical (1,ta.1),ray f q (horizontal (1,ta.1),ta.2))) = _
363
- rw [horizontal_right,vertical_right,ray_zero]
364
- | hapex b => rw [leftDeformation_north,suspMap_north,inverse_north]
365
-
366
- lemma leftDeformation_over (s : unitInterval) (z : Susp q) :
367
- suspProjection q (H.leftDeformation (s,z)) = suspProjection q z := by
368
- induction z using induction with
369
- | hbase b => rfl
370
- | hray ta =>
371
- rw [leftDeformation_meridian]
372
- change suspProjection q (collapse f p q hf (H.hom
373
- (vertical (s,ta.1),ray f q (horizontal (s,ta.1),ta.2)))) = _
374
- rw [collapse_over,H.staysOver,projection_ray]
375
- rfl
376
- | hapex b => rfl
377
-
378
- def leftHomotopy : (H.inverse.comp (suspMap f p q hf)).Homotopy (ContinuousMap.id (Susp q)) :=
379
- ContinuousMap.Homotopy.symm
380
- { toContinuousMap := H.leftDeformation
381
- map_zero_left := H.leftDeformation_zero
382
- map_one_left := H.leftDeformation_one }
383
-
384
- lemma leftHomotopy_over (s : unitInterval) (z : Susp q) :
385
- suspProjection q (H.leftHomotopy (s,z)) = suspProjection q z :=
386
- H.leftDeformation_over (unitInterval.symm s) z
387
-
388
- end Contraction
389
- end NearbyLagrangian.FiberCone
390
-
391
- end
392
-
393
- end OAI
 
1
+ import Mathlib
2
+
3
+ namespace OAI
4
+
5
+ /-! Fiberwise cones, contractions and left suspension homotopies. -/
6
+
7
+ noncomputable section
8
+ universe u v w
9
+ open Set ContinuousMap
10
+ open scoped Topology unitInterval
11
+
12
+ namespace NearbyLagrangian.FiberCone
13
+
14
+ variable {B A X Y : Type*} [TopologicalSpace B] [TopologicalSpace A]
15
+ [TopologicalSpace X] [TopologicalSpace Y]
16
+
17
+ abbrev Raw (B A X : Type*) := X ⊕ ((unitInterval × A) ⊕ B)
18
+
19
+ inductive Seam (f : C(A,X)) (q : C(A,B)) : Raw B A X → Raw B A X → Prop
20
+ | bottom (a : A) : Seam f q (.inr (.inl (0,a))) (.inl (f a))
21
+ | top (a : A) : Seam f q (.inr (.inl (1,a))) (.inr (.inr (q a)))
22
+
23
+ def Space (f : C(A,X)) (q : C(A,B)) := Quot (Seam f q)
24
+ instance (f : C(A,X)) (q : C(A,B)) : TopologicalSpace (Space f q) :=
25
+ inferInstanceAs (TopologicalSpace (Quot (Seam f q)))
26
+
27
+ def base (f : C(A,X)) (q : C(A,B)) : C(X,Space f q) :=
28
+ ⟨fun x => Quot.mk _ (.inl x),continuous_quot_mk.comp continuous_inl⟩
29
+ def ray (f : C(A,X)) (q : C(A,B)) : C(unitInterval × A,Space f q) :=
30
+ ⟨fun z => Quot.mk _ (.inr (.inl z)),
31
+ continuous_quot_mk.comp (continuous_inr.comp continuous_inl)⟩
32
+ def apex (f : C(A,X)) (q : C(A,B)) : C(B,Space f q) :=
33
+ ⟨fun b => Quot.mk _ (.inr (.inr b)),
34
+ continuous_quot_mk.comp (continuous_inr.comp continuous_inr)⟩
35
+
36
+ @[simp] lemma ray_zero (f : C(A,X)) (q : C(A,B)) (a : A) :
37
+ ray f q (0,a) = base f q (f a) := Quot.sound (Seam.bottom a)
38
+ @[simp] lemma ray_one (f : C(A,X)) (q : C(A,B)) (a : A) :
39
+ ray f q (1,a) = apex f q (q a) := Quot.sound (Seam.top a)
40
+
41
+ def lift (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))
42
+ (c : C(unitInterval × A,Y)) (v : C(B,Y))
43
+ (h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) :
44
+ C(Space f q,Y) where
45
+ toFun := Quot.lift (Sum.elim i (Sum.elim c v)) (by
46
+ intro a b h
47
+ cases h with
48
+ | bottom a => exact h₀ a
49
+ | top a => exact h₁ a)
50
+ continuous_toFun := continuous_quot_lift _
51
+ (i.continuous.sumElim (c.continuous.sumElim v.continuous))
52
+
53
+ @[simp] lemma lift_base (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))
54
+ (c : C(unitInterval × A,Y)) (v : C(B,Y))
55
+ (h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) (x : X) :
56
+ lift f q i c v h₀ h₁ (base f q x) = i x := rfl
57
+ @[simp] lemma lift_ray (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))
58
+ (c : C(unitInterval × A,Y)) (v : C(B,Y))
59
+ (h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) (z : unitInterval × A) :
60
+ lift f q i c v h₀ h₁ (ray f q z) = c z := rfl
61
+ @[simp] lemma lift_apex (f : C(A,X)) (q : C(A,B)) (i : C(X,Y))
62
+ (c : C(unitInterval × A,Y)) (v : C(B,Y))
63
+ (h₀ : ∀ a, c (0,a) = i (f a)) (h₁ : ∀ a, c (1,a) = v (q a)) (b : B) :
64
+ lift f q i c v h₀ h₁ (apex f q b) = v b := rfl
65
+
66
+ @[elab_as_elim] theorem induction {f : C(A,X)} {q : C(A,B)}
67
+ {P : Space f q → Prop} (hbase : ∀ x, P (base f q x))
68
+ (hray : ∀ ta, P (ray f q ta)) (hapex : ∀ b, P (apex f q b)) (z : Space f q) : P z := by
69
+ induction z using Quot.inductionOn with
70
+ | h z =>
71
+ rcases z with x | (ta | b)
72
+ · exact hbase x
73
+ · exact hray ta
74
+ · exact hapex b
75
+
76
+ def projection (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
77
+ (hf : ∀ a, p (f a) = q a) : C(Space f q,B) :=
78
+ lift f q p (q.comp ⟨Prod.snd,continuous_snd⟩) (ContinuousMap.id B)
79
+ (fun a => (hf a).symm) (fun _ => rfl)
80
+
81
+ @[simp] lemma projection_base (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
82
+ (hf : ∀ a, p (f a) = q a) (x : X) : projection f p q hf (base f q x) = p x := rfl
83
+ @[simp] lemma projection_ray (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
84
+ (hf : ∀ a, p (f a) = q a) (ta : unitInterval × A) :
85
+ projection f p q hf (ray f q ta) = q ta.2 := rfl
86
+ @[simp] lemma projection_apex (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
87
+ (hf : ∀ a, p (f a) = q a) (b : B) : projection f p q hf (apex f q b) = b := rfl
88
+
89
+ abbrev Susp (q : C(A,B)) := Space q q
90
+
91
+ def suspProjection (q : C(A,B)) : C(Susp q,B) :=
92
+ projection q (ContinuousMap.id B) q (fun _ => rfl)
93
+
94
+ abbrev south (q : C(A,B)) : C(B,Susp q) := base q q
95
+ abbrev meridian (q : C(A,B)) : C(unitInterval × A,Susp q) := ray q q
96
+ abbrev north (q : C(A,B)) : C(B,Susp q) := apex q q
97
+
98
+ def suspMap (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
99
+ (hf : ∀ a, p (f a) = q a) : C(Susp q,Susp p) :=
100
+ lift q q (south p)
101
+ ((meridian p).comp ⟨fun ta => (ta.1,f ta.2),continuous_fst.prodMk
102
+ (f.continuous.comp continuous_snd)⟩) (north p)
103
+ (fun a => by change meridian p (0,f a) = south p (q a); rw [ray_zero,hf])
104
+ (fun a => by change meridian p (1,f a) = north p (q a); rw [ray_one,hf])
105
+
106
+ @[simp] lemma suspMap_south (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
107
+ (hf : ∀ a, p (f a) = q a) (b : B) : suspMap f p q hf (south q b) = south p b := rfl
108
+ @[simp] lemma suspMap_meridian (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
109
+ (hf : ∀ a, p (f a) = q a) (ta : unitInterval × A) :
110
+ suspMap f p q hf (meridian q ta) = meridian p (ta.1,f ta.2) := rfl
111
+ @[simp] lemma suspMap_north (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
112
+ (hf : ∀ a, p (f a) = q a) (b : B) : suspMap f p q hf (north q b) = north p b := rfl
113
+
114
+ lemma suspMap_over (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
115
+ (hf : ∀ a, p (f a) = q a) (z : Susp q) :
116
+ suspProjection p (suspMap f p q hf z) = suspProjection q z := by
117
+ induction z using induction with
118
+ | hbase b => rfl
119
+ | hray ta => exact hf ta.2
120
+ | hapex b => rfl
121
+
122
+ def collapse (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
123
+ (hf : ∀ a, p (f a) = q a) : C(Space f q,Susp q) :=
124
+ lift f q ((south q).comp p) (meridian q) (north q)
125
+ (fun a => by change meridian q (0,a) = south q (p (f a)); rw [ray_zero,hf])
126
+ (fun a => ray_one q q a)
127
+
128
+ @[simp] lemma collapse_base (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
129
+ (hf : ∀ a, p (f a) = q a) (x : X) : collapse f p q hf (base f q x) = south q (p x) := rfl
130
+ @[simp] lemma collapse_ray (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
131
+ (hf : ∀ a, p (f a) = q a) (ta : unitInterval × A) : collapse f p q hf (ray f q ta) = meridian q ta := rfl
132
+ @[simp] lemma collapse_apex (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
133
+ (hf : ∀ a, p (f a) = q a) (b : B) : collapse f p q hf (apex f q b) = north q b := rfl
134
+
135
+ lemma collapse_over (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
136
+ (hf : ∀ a, p (f a) = q a) (z : Space f q) :
137
+ suspProjection q (collapse f p q hf z) = projection f p q hf z := by
138
+ induction z using induction with
139
+ | hbase x => rfl
140
+ | hray ta => rfl
141
+ | hapex b => rfl
142
+
143
+ end NearbyLagrangian.FiberCone
144
+
145
+ end
146
+
147
+ noncomputable section
148
+ universe u v w
149
+ open Set ContinuousMap
150
+ open scoped Topology unitInterval
151
+
152
+ namespace NearbyLagrangian.FiberCone
153
+ variable {B A X : Type*} [TopologicalSpace B] [TopologicalSpace A] [TopologicalSpace X]
154
+
155
+ structure Contraction (f : C(A,X)) (p : C(X,B)) (q : C(A,B))
156
+ (hf : ∀ a, p (f a) = q a) where
157
+ hom : C(unitInterval × Space f q,Space f q)
158
+ at_zero : ∀ z, hom (0,z) = z
159
+ at_one : ∀ z, hom (1,z) = apex f q (projection f p q hf z)
160
+ staysOver : ∀ t z, projection f p q hf (hom (t,z)) = projection f p q hf z
161
+ fixed : ∀ t b, hom (t,apex f q b) = apex f q b
162
+
163
+ namespace Contraction
164
+ variable {f : C(A,X)} {p : C(X,B)} {q : C(A,B)} {hf : ∀ a, p (f a) = q a}
165
+ variable (H : Contraction f p q hf)
166
+
167
+ def inverseRay : C(unitInterval × X,Susp q) :=
168
+ (collapse f p q hf).comp
169
+ (H.hom.comp ⟨fun tx => (tx.1,base f q tx.2),
170
+ continuous_fst.prodMk ((base f q).continuous.comp continuous_snd)⟩)
171
+
172
+ @[simp] lemma inverseRay_zero (x : X) : H.inverseRay (0,x) = south q (p x) := by
173
+ change collapse f p q hf (H.hom (0,base f q x)) = _
174
+ rw [H.at_zero,collapse_base]
175
+ @[simp] lemma inverseRay_one (x : X) : H.inverseRay (1,x) = north q (p x) := by
176
+ change collapse f p q hf (H.hom (1,base f q x)) = _
177
+ rw [H.at_one,projection_base,collapse_apex]
178
+
179
+ def inverse : C(Susp p,Susp q) :=
180
+ lift p p (south q) H.inverseRay (north q) H.inverseRay_zero H.inverseRay_one
181
+
182
+ @[simp] lemma inverse_south (b : B) : H.inverse (south p b) = south q b := rfl
183
+ @[simp] lemma inverse_meridian (tx : unitInterval × X) :
184
+ H.inverse (meridian p tx) = collapse f p q hf (H.hom (tx.1,base f q tx.2)) := rfl
185
+ @[simp] lemma inverse_north (b : B) : H.inverse (north p b) = north q b := rfl
186
+
187
+ lemma inverse_over (z : Susp p) : suspProjection q (H.inverse z) = suspProjection p z := by
188
+ induction z using induction with
189
+ | hbase b => rfl
190
+ | hray tx =>
191
+ rw [inverse_meridian,collapse_over,H.staysOver,projection_base]
192
+ rfl
193
+ | hapex b => rfl
194
+
195
+ end Contraction
196
+
197
+ def squareDen (s : unitInterval) : ℝ := max (s:ℝ) (1-(s:ℝ))
198
+ lemma squareDen_pos (s : unitInterval) : 0 < squareDen s := by
199
+ have ha := le_max_left (s:ℝ) (1-(s:ℝ))
200
+ have hb := le_max_right (s:ℝ) (1-(s:ℝ))
201
+ dsimp [squareDen]
202
+ linarith
203
+ lemma continuous_squareDen : Continuous squareDen :=
204
+ continuous_subtype_val.max (continuous_const.sub continuous_subtype_val)
205
+
206
+ def horizontal : C(unitInterval × unitInterval,unitInterval) where
207
+ toFun st := ⟨(1-(st.1:ℝ))*(st.2:ℝ) / squareDen st.1,by
208
+ refine ⟨div_nonneg (mul_nonneg (sub_nonneg.mpr st.1.property.2) st.2.property.1)
209
+ (squareDen_pos st.1).le,?_⟩
210
+ apply (div_le_one (squareDen_pos st.1)).mpr
211
+ have h := mul_le_mul_of_nonneg_left st.2.property.2 (sub_nonneg.mpr st.1.property.2)
212
+ have h' : (1 - (st.1:ℝ)) * (st.2:ℝ) ≤ 1 - (st.1:ℝ) := by
213
+ simpa only [mul_one] using h
214
+ exact h'.trans (le_max_right _ _)⟩
215
+ continuous_toFun := by
216
+ apply Continuous.subtype_mk
217
+ exact (((continuous_const.sub (continuous_subtype_val.comp continuous_fst)).mul
218
+ (continuous_subtype_val.comp continuous_snd)).div
219
+ (continuous_squareDen.comp continuous_fst) (fun _ => (squareDen_pos _).ne'))
220
+
221
+ def vertical : C(unitInterval × unitInterval,unitInterval) where
222
+ toFun st := ⟨(st.1:ℝ)*(st.2:ℝ) / squareDen st.1,by
223
+ refine ⟨div_nonneg (mul_nonneg st.1.property.1 st.2.property.1) (squareDen_pos st.1).le,?_⟩
224
+ apply (div_le_one (squareDen_pos st.1)).mpr
225
+ have h := mul_le_mul_of_nonneg_left st.2.property.2 st.1.property.1
226
+ have h' : (st.1:ℝ) * (st.2:ℝ) ≤ (st.1:ℝ) := by
227
+ simpa only [mul_one] using h
228
+ exact h'.trans (le_max_left _ _)⟩
229
+ continuous_toFun := by
230
+ apply Continuous.subtype_mk
231
+ exact (((continuous_subtype_val.comp continuous_fst).mul
232
+ (continuous_subtype_val.comp continuous_snd)).div
233
+ (continuous_squareDen.comp continuous_fst) (fun _ => (squareDen_pos _).ne'))
234
+
235
+ @[simp] lemma horizontal_left (t : unitInterval) : horizontal (0,t) = t := by
236
+ apply Subtype.ext
237
+ simp [horizontal,squareDen]
238
+ @[simp] lemma horizontal_right (t : unitInterval) : horizontal (1,t) = 0 := by
239
+ apply Subtype.ext
240
+ simp [horizontal,squareDen]
241
+ @[simp] lemma vertical_left (t : unitInterval) : vertical (0,t) = 0 := by
242
+ apply Subtype.ext
243
+ simp [vertical,squareDen]
244
+ @[simp] lemma vertical_right (t : unitInterval) : vertical (1,t) = t := by
245
+ apply Subtype.ext
246
+ simp [vertical,squareDen]
247
+ @[simp] lemma horizontal_bottom (s : unitInterval) : horizontal (s,0) = 0 := by
248
+ apply Subtype.ext
249
+ simp [horizontal]
250
+ @[simp] lemma vertical_bottom (s : unitInterval) : vertical (s,0) = 0 := by
251
+ apply Subtype.ext
252
+ simp [vertical]
253
+
254
+ lemma square_top (s : unitInterval) : horizontal (s,1) = 1 ∨ vertical (s,1) = 1 := by
255
+ rcases le_total (s:ℝ) (1-(s:ℝ)) with hs | hs
256
+ · left
257
+ apply Subtype.ext
258
+ have hn : 1-(s:ℝ) ≠ 0 := by
259
+ have hd := squareDen_pos s
260
+ rw [squareDen,max_eq_right hs] at hd
261
+ exact hd.ne'
262
+ simp [horizontal,squareDen,max_eq_right hs,hn]
263
+ · right
264
+ apply Subtype.ext
265
+ have hn : (s:ℝ) ≠ 0 := by
266
+ have hd := squareDen_pos s
267
+ rw [squareDen,max_eq_left hs] at hd
268
+ exact hd.ne'
269
+ simp [vertical,squareDen,max_eq_left hs,hn]
270
+
271
+ end NearbyLagrangian.FiberCone
272
+
273
+ end
274
+
275
+ noncomputable section
276
+ universe u v w
277
+ open Set ContinuousMap
278
+ open scoped Topology unitInterval
279
+
280
+ namespace NearbyLagrangian.FiberCone
281
+ variable {B A X Y : Type*} [TopologicalSpace B] [TopologicalSpace A]
282
+ [TopologicalSpace X] [TopologicalSpace Y]
283
+
284
+ def cylinderLift (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))
285
+ (c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))
286
+ (h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))
287
+ (h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) : C(unitInterval × Space f q,Y) :=
288
+ (ContinuousMap.uncurry (lift f q
289
+ (ContinuousMap.curry (i.comp ContinuousMap.prodSwap))
290
+ (ContinuousMap.curry (c.comp ContinuousMap.prodSwap))
291
+ (ContinuousMap.curry (v.comp ContinuousMap.prodSwap))
292
+ (fun a => by ext s; exact h₀ s a)
293
+ (fun a => by ext s; exact h₁ s a))).comp ContinuousMap.prodSwap
294
+
295
+ @[simp] lemma cylinderLift_base (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))
296
+ (c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))
297
+ (h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))
298
+ (h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) (s : unitInterval) (x : X) :
299
+ cylinderLift f q i c v h₀ h₁ (s,base f q x) = i (s,x) := rfl
300
+ @[simp] lemma cylinderLift_ray (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))
301
+ (c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))
302
+ (h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))
303
+ (h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) (s : unitInterval) (ta : unitInterval × A) :
304
+ cylinderLift f q i c v h₀ h₁ (s,ray f q ta) = c (s,ta) := rfl
305
+ @[simp] lemma cylinderLift_apex (f : C(A,X)) (q : C(A,B)) (i : C(unitInterval × X,Y))
306
+ (c : C(unitInterval × (unitInterval × A),Y)) (v : C(unitInterval × B,Y))
307
+ (h₀ : ∀ s a, c (s,(0,a)) = i (s,f a))
308
+ (h₁ : ∀ s a, c (s,(1,a)) = v (s,q a)) (s : unitInterval) (b : B) :
309
+ cylinderLift f q i c v h₀ h₁ (s,apex f q b) = v (s,b) := rfl
310
+
311
+ namespace Contraction
312
+ variable {f : C(A,X)} {p : C(X,B)} {q : C(A,B)} {hf : ∀ a, p (f a) = q a}
313
+ variable (H : Contraction f p q hf)
314
+
315
+ def leftRay : C(unitInterval × (unitInterval × A),Susp q) where
316
+ toFun z := collapse f p q hf (H.hom
317
+ (vertical (z.1,z.2.1),ray f q (horizontal (z.1,z.2.1),z.2.2)))
318
+ continuous_toFun := (collapse f p q hf).continuous.comp (H.hom.continuous.comp
319
+ ((vertical.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk
320
+ ((ray f q).continuous.comp
321
+ ((horizontal.continuous.comp (continuous_fst.prodMk (continuous_fst.comp continuous_snd))).prodMk
322
+ (continuous_snd.comp continuous_snd)))))
323
+
324
+ lemma leftRay_bottom (s : unitInterval) (a : A) : H.leftRay (s,(0,a)) = south q (q a) := by
325
+ change collapse f p q hf (H.hom (vertical (s,0),ray f q (horizontal (s,0),a))) = _
326
+ rw [horizontal_bottom,vertical_bottom,H.at_zero,ray_zero,collapse_base,hf]
327
+
328
+ lemma leftRay_top (s : unitInterval) (a : A) : H.leftRay (s,(1,a)) = north q (q a) := by
329
+ change collapse f p q hf (H.hom (vertical (s,1),ray f q (horizontal (s,1),a))) = _
330
+ rcases square_top s with hx | hy
331
+ · rw [hx,ray_one,H.fixed,collapse_apex]
332
+ · rw [hy,H.at_one,projection_ray,collapse_apex]
333
+
334
+ def leftDeformation : C(unitInterval × Susp q,Susp q) :=
335
+ cylinderLift q q ((south q).comp ⟨Prod.snd,continuous_snd⟩) H.leftRay
336
+ ((north q).comp ⟨Prod.snd,continuous_snd⟩) H.leftRay_bottom H.leftRay_top
337
+
338
+ @[simp] lemma leftDeformation_south (s : unitInterval) (b : B) :
339
+ H.leftDeformation (s,south q b) = south q b := rfl
340
+ @[simp] lemma leftDeformation_meridian (s : unitInterval) (ta : unitInterval × A) :
341
+ H.leftDeformation (s,meridian q ta) = H.leftRay (s,ta) := rfl
342
+ @[simp] lemma leftDeformation_north (s : unitInterval) (b : B) :
343
+ H.leftDeformation (s,north q b) = north q b := rfl
344
+
345
+ lemma leftDeformation_zero (z : Susp q) : H.leftDeformation (0,z) = z := by
346
+ induction z using induction with
347
+ | hbase b => rfl
348
+ | hray ta =>
349
+ rw [leftDeformation_meridian]
350
+ change collapse f p q hf (H.hom
351
+ (vertical (0,ta.1),ray f q (horizontal (0,ta.1),ta.2))) = _
352
+ rw [horizontal_left,vertical_left,H.at_zero,collapse_ray]
353
+ | hapex b => rfl
354
+
355
+ lemma leftDeformation_one (z : Susp q) :
356
+ H.leftDeformation (1,z) = H.inverse (suspMap f p q hf z) := by
357
+ induction z using induction with
358
+ | hbase b => rw [leftDeformation_south,suspMap_south,inverse_south]
359
+ | hray ta =>
360
+ rw [leftDeformation_meridian,suspMap_meridian,inverse_meridian]
361
+ change collapse f p q hf (H.hom
362
+ (vertical (1,ta.1),ray f q (horizontal (1,ta.1),ta.2))) = _
363
+ rw [horizontal_right,vertical_right,ray_zero]
364
+ | hapex b => rw [leftDeformation_north,suspMap_north,inverse_north]
365
+
366
+ lemma leftDeformation_over (s : unitInterval) (z : Susp q) :
367
+ suspProjection q (H.leftDeformation (s,z)) = suspProjection q z := by
368
+ induction z using induction with
369
+ | hbase b => rfl
370
+ | hray ta =>
371
+ rw [leftDeformation_meridian]
372
+ change suspProjection q (collapse f p q hf (H.hom
373
+ (vertical (s,ta.1),ray f q (horizontal (s,ta.1),ta.2)))) = _
374
+ rw [collapse_over,H.staysOver,projection_ray]
375
+ rfl
376
+ | hapex b => rfl
377
+
378
+ def leftHomotopy : (H.inverse.comp (suspMap f p q hf)).Homotopy (ContinuousMap.id (Susp q)) :=
379
+ ContinuousMap.Homotopy.symm
380
+ { toContinuousMap := H.leftDeformation
381
+ map_zero_left := H.leftDeformation_zero
382
+ map_one_left := H.leftDeformation_one }
383
+
384
+ lemma leftHomotopy_over (s : unitInterval) (z : Susp q) :
385
+ suspProjection q (H.leftHomotopy (s,z)) = suspProjection q z :=
386
+ H.leftDeformation_over (unitInterval.symm s) z
387
+
388
+ end Contraction
389
+ end NearbyLagrangian.FiberCone
390
+
391
+ end
392
+
393
+ end OAI
lean/OAI/Topology/Homotopy/FiberKernel.lean CHANGED
@@ -1,57 +1,57 @@
1
- import Mathlib
2
- import OAI.Topology.Homotopy.HomotopyFiber
3
- import OAI.Topology.Homotopy.LoopHomotopy
4
-
5
- namespace OAI
6
-
7
- /-! Nontrivial homotopy kernels from finite cardinality bounds. -/
8
-
9
- noncomputable section
10
- universe u v w
11
-
12
-
13
- namespace NearbyLagrangian.HomotopyFiber
14
- open ContinuousMap
15
- open scoped Topology Topology.Homotopy
16
- open BasedHomotopy
17
- variable {N X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
18
- variable [DecidableEq N] [Nonempty N]
19
-
20
- theorem nontrivial_kernel_of_large_fiber (e : C(X,Y)) (x : X)
21
- {K : Type*} [Fintype K]
22
- [Fintype (HomotopyGroup N (Path (e x) (e x)) (Path.refl (e x)))]
23
- (ι : K ↪ HomotopyGroup N (Fiber e (e x)) (base e x))
24
- (hcard : Fintype.card (HomotopyGroup N (Path (e x) (e x)) (Path.refl (e x))) < Fintype.card K) :
25
- ∃ a : HomotopyGroup N X x, a ≠ 1 ∧ groupMap e rfl a = 1 := by
26
- classical
27
- suffices h : ∃ k, groupMap (projection e (e x)) rfl (ι k) ≠ 1 by
28
- obtain ⟨k,hk⟩ := h
29
- exact ⟨groupMap (projection e (e x)) rfl (ι k),hk,
30
- (kernel_eq_projection_range e x _).mpr ⟨ι k,rfl⟩⟩
31
- by_contra! h
32
- choose q hq using fun k => (projection_kernel_eq_loop_range e x (ι k)).mp (h k)
33
- have hi : Function.Injective q := by
34
- intro k l hkl
35
- apply ι.injective
36
- have hk := hq k
37
- rw [hkl] at hk
38
- exact hk.symm.trans (hq l)
39
- exact (Nat.not_le_of_lt hcard) (Fintype.card_le_of_injective q hi)
40
-
41
- theorem nontrivial_pi9_kernel_of_source_sizes (e : C(X,Y)) (x : X)
42
- (sphereCalculation : π_ 10 Y (e x) ≃ (Fin 3 → ZMod 2))
43
- (whiteheadClasses : (ZMod 8 × (ZMod 2 × ZMod 2)) ↪
44
- π_ 9 (Fiber e (e x)) (base e x)) :
45
- ∃ a : π_ 9 X x, a ≠ 1 ∧ groupMap e rfl a = 1 := by
46
- let calculation := (pi9LoopEquivPi10 (e x)).trans sphereCalculation
47
- let : Fintype (π_ 9 (Path (e x) (e x)) (Path.refl (e x))) :=
48
- Fintype.ofEquiv (Fin 3 → ZMod 2) calculation.symm
49
- apply nontrivial_kernel_of_large_fiber e x whiteheadClasses
50
- rw [Fintype.card_congr calculation]
51
- norm_num
52
-
53
- end NearbyLagrangian.HomotopyFiber
54
-
55
- end
56
-
57
- end OAI
 
1
+ import Mathlib
2
+ import OAI.Topology.Homotopy.HomotopyFiber
3
+ import OAI.Topology.Homotopy.LoopHomotopy
4
+
5
+ namespace OAI
6
+
7
+ /-! Nontrivial homotopy kernels from finite cardinality bounds. -/
8
+
9
+ noncomputable section
10
+ universe u v w
11
+
12
+
13
+ namespace NearbyLagrangian.HomotopyFiber
14
+ open ContinuousMap
15
+ open scoped Topology Topology.Homotopy
16
+ open BasedHomotopy
17
+ variable {N X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
18
+ variable [DecidableEq N] [Nonempty N]
19
+
20
+ theorem nontrivial_kernel_of_large_fiber (e : C(X,Y)) (x : X)
21
+ {K : Type*} [Fintype K]
22
+ [Fintype (HomotopyGroup N (Path (e x) (e x)) (Path.refl (e x)))]
23
+ (ι : K ↪ HomotopyGroup N (Fiber e (e x)) (base e x))
24
+ (hcard : Fintype.card (HomotopyGroup N (Path (e x) (e x)) (Path.refl (e x))) < Fintype.card K) :
25
+ ∃ a : HomotopyGroup N X x, a ≠ 1 ∧ groupMap e rfl a = 1 := by
26
+ classical
27
+ suffices h : ∃ k, groupMap (projection e (e x)) rfl (ι k) ≠ 1 by
28
+ obtain ⟨k,hk⟩ := h
29
+ exact ⟨groupMap (projection e (e x)) rfl (ι k),hk,
30
+ (kernel_eq_projection_range e x _).mpr ⟨ι k,rfl⟩⟩
31
+ by_contra! h
32
+ choose q hq using fun k => (projection_kernel_eq_loop_range e x (ι k)).mp (h k)
33
+ have hi : Function.Injective q := by
34
+ intro k l hkl
35
+ apply ι.injective
36
+ have hk := hq k
37
+ rw [hkl] at hk
38
+ exact hk.symm.trans (hq l)
39
+ exact (Nat.not_le_of_lt hcard) (Fintype.card_le_of_injective q hi)
40
+
41
+ theorem nontrivial_pi9_kernel_of_source_sizes (e : C(X,Y)) (x : X)
42
+ (sphereCalculation : π_ 10 Y (e x) ≃ (Fin 3 → ZMod 2))
43
+ (whiteheadClasses : (ZMod 8 × (ZMod 2 × ZMod 2)) ↪
44
+ π_ 9 (Fiber e (e x)) (base e x)) :
45
+ ∃ a : π_ 9 X x, a ≠ 1 ∧ groupMap e rfl a = 1 := by
46
+ let calculation := (pi9LoopEquivPi10 (e x)).trans sphereCalculation
47
+ let : Fintype (π_ 9 (Path (e x) (e x)) (Path.refl (e x))) :=
48
+ Fintype.ofEquiv (Fin 3 → ZMod 2) calculation.symm
49
+ apply nontrivial_kernel_of_large_fiber e x whiteheadClasses
50
+ rw [Fintype.card_congr calculation]
51
+ norm_num
52
+
53
+ end NearbyLagrangian.HomotopyFiber
54
+
55
+ end
56
+
57
+ end OAI
lean/OAI/Topology/Homotopy/HomotopyFiber.lean CHANGED
@@ -1,319 +1,319 @@
1
- import Mathlib
2
- import OAI.Topology.Homotopy.BasedMaps
3
-
4
- namespace OAI
5
-
6
- /-! The path-space homotopy fiber and exactness at its projection. -/
7
-
8
- noncomputable section
9
- universe u v w
10
-
11
-
12
- namespace NearbyLagrangian.HomotopyFiber
13
- open ContinuousMap
14
- open scoped Topology Topology.Homotopy
15
- open BasedHomotopy
16
- variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
17
-
18
- def Fiber (e : C(X,Y)) (y : Y) :=
19
- {z : X × C(unitInterval,Y) // z.2 0 = e z.1 ∧ z.2 1 = y}
20
-
21
- instance (e : C(X,Y)) (y : Y) : TopologicalSpace (Fiber e y) := inferInstanceAs
22
- (TopologicalSpace {z : X × C(unitInterval,Y) // z.2 0 = e z.1 ∧ z.2 1 = y})
23
-
24
- def base (e : C(X,Y)) (x : X) : Fiber e (e x) :=
25
- ⟨(x,ContinuousMap.const _ (e x)),rfl,rfl⟩
26
-
27
- def projection (e : C(X,Y)) (y : Y) : C(Fiber e y,X) :=
28
- ⟨fun z => z.1.1,continuous_fst.comp continuous_subtype_val⟩
29
-
30
- @[simp] theorem projection_base (e : C(X,Y)) (x : X) :
31
- projection e (e x) (base e x) = x := rfl
32
-
33
- variable {N : Type*}
34
-
35
- def projectionNullhomotopy (e : C(X,Y)) (x : X)
36
- (f : GenLoop N (Fiber e (e x)) (base e x)) :
37
- (loopMap e rfl (loopMap (projection e (e x)) rfl f)).1.HomotopyRel (ContinuousMap.const _ (e x)) (Cube.boundary N) where
38
- toFun z := (f z.2).1.2 z.1
39
- continuous_toFun := by
40
- exact ((continuous_snd.comp (continuous_subtype_val.comp (f.1.continuous.comp continuous_snd))).eval continuous_fst)
41
- map_zero_left t := (f t).2.1
42
- map_one_left t := (f t).2.2
43
- prop' s t ht := by
44
- change (f t).1.2 s = e (f t).1.1
45
- rw [GenLoop.boundary f t ht]
46
- rfl
47
-
48
- def liftNullhomotopy (e : C(X,Y)) (x : X) (f : GenLoop N X x)
49
- (H : (loopMap e rfl f).1.HomotopyRel (ContinuousMap.const _ (e x)) (Cube.boundary N)) :
50
- GenLoop N (Fiber e (e x)) (base e x) :=
51
- ⟨⟨fun t => ⟨(f t,(H.toContinuousMap.comp ContinuousMap.prodSwap).curry t),
52
- H.map_zero_left t,H.map_one_left t⟩,by
53
- apply Continuous.subtype_mk
54
- exact f.1.continuous.prodMk (H.toContinuousMap.comp ContinuousMap.prodSwap).curry.continuous⟩,
55
- by
56
- intro t ht
57
- apply Subtype.ext
58
- apply Prod.ext (GenLoop.boundary f t ht)
59
- ext s
60
- exact (H.prop s t ht).trans (congrArg e (GenLoop.boundary f t ht))⟩
61
-
62
- @[simp] theorem projection_liftNullhomotopy (e : C(X,Y)) (x : X) (f : GenLoop N X x)
63
- (H : (loopMap e rfl f).1.HomotopyRel (ContinuousMap.const _ (e x)) (Cube.boundary N)) :
64
- loopMap (projection e (e x)) rfl (liftNullhomotopy e x f H) = f := by ext; rfl
65
-
66
- theorem kernel_eq_projection_range [DecidableEq N] [Nonempty N]
67
- (e : C(X,Y)) (x : X) (a : HomotopyGroup N X x) :
68
- groupMap e rfl a = 1 ↔
69
- ∃ b : HomotopyGroup N (Fiber e (e x)) (base e x),
70
- groupMap (projection e (e x)) rfl b = a := by
71
- induction a using Quotient.inductionOn with
72
- | h f =>
73
- constructor
74
- · intro h
75
- change (⟦loopMap e rfl f⟧ : HomotopyGroup N Y (e x)) = ⟦GenLoop.const⟧ at h
76
- obtain ⟨H⟩ := Quotient.exact h
77
- exact ⟨⟦liftNullhomotopy e x f H⟧,congrArg Quotient.mk'' (projection_liftNullhomotopy e x f H)⟩
78
- · rintro ⟨b,hb⟩
79
- rw [← hb]
80
- induction b using Quotient.inductionOn with
81
- | h g =>
82
- change (⟦loopMap e rfl (loopMap (projection e (e x)) rfl g)⟧ : HomotopyGroup N Y (e x)) = ⟦GenLoop.const⟧
83
- exact Quotient.sound ⟨projectionNullhomotopy e x g⟩
84
-
85
- end NearbyLagrangian.HomotopyFiber
86
-
87
- end
88
-
89
- noncomputable section
90
- universe u v w
91
-
92
-
93
- namespace NearbyLagrangian.HomotopyFiber
94
- open ContinuousMap Set
95
- open scoped Topology Topology.Homotopy
96
- open BasedHomotopy
97
-
98
- def frontTime (s r : unitInterval) : unitInterval := projIcc 0 1 zero_le_one ((s:ℝ)-2*r)
99
- def backTime (s r : unitInterval) : unitInterval := projIcc 0 1 zero_le_one ((2*(r:ℝ)-s)/(2-s))
100
-
101
- lemma continuous_frontTime : Continuous (fun z : unitInterval × unitInterval => frontTime z.1 z.2) := by
102
- unfold frontTime
103
- fun_prop
104
-
105
- lemma continuous_backTime : Continuous (fun z : unitInterval × unitInterval => backTime z.1 z.2) := by
106
- unfold backTime
107
- apply continuous_projIcc.comp
108
- apply Continuous.div
109
- · fun_prop
110
- · fun_prop
111
- · intro z
112
- have := z.1.property.2
113
- linarith
114
-
115
- @[simp] lemma frontTime_zero_right (s : unitInterval) : frontTime s 0 = s := by
116
- change projIcc 0 1 zero_le_one ((s:ℝ)-2*0) = s
117
- simp only [mul_zero,sub_zero]
118
- exact projIcc_val _ s
119
-
120
- @[simp] lemma backTime_one_right (s : unitInterval) : backTime s 1 = 1 := by
121
- unfold backTime
122
- have hs : (2:ℝ)-s ≠ 0 := by linarith [s.property.2]
123
- simp [hs]
124
-
125
- @[simp] lemma backTime_zero_left (r : unitInterval) : backTime 0 r = r := by
126
- change projIcc 0 1 zero_le_one ((2*(r:ℝ)-0)/(2-0)) = r
127
- have he : (2*(r:ℝ)-(0:ℝ))/(2-(0:ℝ)) = r := by ring
128
- rw [he]
129
- exact projIcc_val _ r
130
-
131
- lemma frontTime_seam {s r : unitInterval} (h : 2*(r:ℝ)=s) : frontTime s r = 0 := by
132
- unfold frontTime
133
- rw [h,sub_self]
134
- exact projIcc_left _
135
-
136
- lemma backTime_seam {s r : unitInterval} (h : 2*(r:ℝ)=s) : backTime s r = 0 := by
137
- unfold backTime
138
- rw [h,sub_self,zero_div]
139
- exact projIcc_left _
140
-
141
- variable {A X Y : Type*} [TopologicalSpace A] [TopologicalSpace X] [TopologicalSpace Y]
142
- variable (e : C(X,Y)) (x : X) (f : C(A,Fiber e (e x)))
143
- variable (H : ((projection e (e x)).comp f).Homotopy (ContinuousMap.const A x))
144
-
145
- def deformValue (z : (unitInterval × A) × unitInterval) : Y :=
146
- if 2*(z.2:ℝ) ≤ z.1.1 then e (H (frontTime z.1.1 z.2,z.1.2))
147
- else (f z.1.2).1.2 (backTime z.1.1 z.2)
148
-
149
- lemma continuous_deformValue : Continuous (deformValue e x f H) := by
150
- unfold deformValue
151
- apply continuous_if_le
152
- · fun_prop
153
- · fun_prop
154
- · apply Continuous.continuousOn
155
- apply e.continuous.comp
156
- apply H.continuous.comp
157
- exact (continuous_frontTime.comp ((continuous_fst.comp continuous_fst).prodMk continuous_snd)).prodMk
158
- (continuous_snd.comp continuous_fst)
159
- · apply Continuous.continuousOn
160
- exact (continuous_snd.comp (continuous_subtype_val.comp
161
- (f.continuous.comp (continuous_snd.comp continuous_fst)))).eval
162
- (continuous_backTime.comp ((continuous_fst.comp continuous_fst).prodMk continuous_snd))
163
- · intro z hz
164
- rw [frontTime_seam hz,backTime_seam hz,H.apply_zero]
165
- exact (f z.1.2).2.1.symm
166
-
167
- @[simp] lemma deformValue_start (s : unitInterval) (a : A) :
168
- deformValue e x f H ((s,a),0) = e (H (s,a)) := by
169
- change (if 2*(0:ℝ) ≤ s then e (H (frontTime s 0,a)) else (f a).1.2 (backTime s 0)) = e (H (s,a))
170
- simp only [mul_zero,ite_eq_left s.property.1,frontTime_zero_right]
171
-
172
- @[simp] lemma deformValue_end (s : unitInterval) (a : A) :
173
- deformValue e x f H ((s,a),1) = e x := by
174
- change (if 2*(1:ℝ) ≤ s then e (H (frontTime s 1,a)) else (f a).1.2 (backTime s 1)) = e x
175
- have hs : ¬ 2*(1:ℝ) ≤ (s:ℝ) := by linarith [s.property.2]
176
- rw [ite_eq_right hs,backTime_one_right]
177
- exact (f a).2.2
178
-
179
- @[simp] lemma deformValue_zero (a : A) (r : unitInterval) :
180
- deformValue e x f H ((0,a),r) = (f a).1.2 r := by
181
- unfold deformValue
182
- split_ifs with hr
183
- · have he : r = 0 := Subtype.ext (by dsimp at hr ⊢; linarith [r.property.1])
184
- rw [he,frontTime_zero_right,H.apply_zero]
185
- exact (f a).2.1.symm
186
- · rw [backTime_zero_left]
187
-
188
- def deformPath : C(unitInterval × A,C(unitInterval,Y)) :=
189
- (⟨deformValue e x f H,continuous_deformValue e x f H⟩ : C((unitInterval × A) × unitInterval,Y)).curry
190
-
191
- def deformFiber : C(unitInterval × A,Fiber e (e x)) where
192
- toFun 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⟩
193
- continuous_toFun := (H.continuous.prodMk (deformPath e x f H).continuous).subtype_mk _
194
-
195
- @[simp] lemma deformFiber_zero (a : A) : deformFiber e x f H (0,a) = f a := by
196
- apply Subtype.ext
197
- apply Prod.ext
198
- · exact H.apply_zero a
199
- · ext r
200
- exact deformValue_zero e x f H a r
201
-
202
- def loopInclusion : C(Path (e x) (e x),Fiber e (e x)) where
203
- toFun p := ⟨(x,p.toContinuousMap),p.source,p.target⟩
204
- continuous_toFun := (continuous_const.prodMk continuous_induced_dom).subtype_mk _
205
-
206
- @[simp] lemma loopInclusion_base : loopInclusion e x (Path.refl (e x)) = base e x := rfl
207
-
208
- def loopRepresentative : C(A,Path (e x) (e x)) where
209
- toFun a := {
210
- toContinuousMap := deformPath e x f H (1,a)
211
- source' := by
212
- change deformValue e x f H ((1,a),0) = e x
213
- rw [deformValue_start,H.apply_one,ContinuousMap.const_apply]
214
- target' := deformValue_end e x f H 1 a }
215
- continuous_toFun := by
216
- apply Path.continuous_uncurry_iff.mp
217
- exact (continuous_deformValue e x f H).comp ((continuous_const.prodMk continuous_fst).prodMk continuous_snd)
218
-
219
- def deformHomotopy : f.Homotopy ((loopInclusion e x).comp (loopRepresentative e x f H)) where
220
- toContinuousMap := deformFiber e x f H
221
- map_zero_left := deformFiber_zero e x f H
222
- map_one_left a := by
223
- apply Subtype.ext
224
- apply Prod.ext
225
- · exact H.apply_one a
226
- · rfl
227
-
228
- lemma deformValue_fixed (a : A) (ha : f a = base e x) (hH : ∀ s, H (s,a) = x)
229
- (s r : unitInterval) : deformValue e x f H ((s,a),r) = e x := by
230
- unfold deformValue
231
- split_ifs
232
- · rw [hH]
233
- · rw [ha]
234
- rfl
235
-
236
- lemma deformFiber_fixed (a : A) (ha : f a = base e x) (hH : ∀ s, H (s,a) = x)
237
- (s : unitInterval) : deformFiber e x f H (s,a) = base e x := by
238
- apply Subtype.ext
239
- apply Prod.ext (hH s)
240
- ext r
241
- exact deformValue_fixed e x f H a ha hH s r
242
-
243
- lemma loopRepresentative_fixed (a : A) (ha : f a = base e x) (hH : ∀ s, H (s,a) = x) :
244
- loopRepresentative e x f H a = Path.refl (e x) := by
245
- apply Path.ext
246
- funext r
247
- exact deformValue_fixed e x f H a ha hH 1 r
248
-
249
- end NearbyLagrangian.HomotopyFiber
250
-
251
- end
252
-
253
- noncomputable section
254
- universe u v w
255
-
256
-
257
- namespace NearbyLagrangian.HomotopyFiber
258
- open ContinuousMap
259
- open scoped Topology Topology.Homotopy
260
- open BasedHomotopy
261
- variable {N X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
262
- variable (e : C(X,Y)) (x : X)
263
-
264
- def boundaryRepresentative (f : GenLoop N (Fiber e (e x)) (base e x))
265
- (H : (loopMap (projection e (e x)) rfl f).1.HomotopyRel
266
- (ContinuousMap.const _ x) (Cube.boundary N)) :
267
- GenLoop N (Path (e x) (e x)) (Path.refl (e x)) :=
268
- ⟨loopRepresentative e x f.1 H.toHomotopy,by
269
- intro t ht
270
- apply loopRepresentative_fixed
271
- · exact GenLoop.boundary f t ht
272
- · intro s
273
- exact (H.prop s t ht).trans (congrArg (projection e (e x)) (GenLoop.boundary f t ht))⟩
274
-
275
- def boundaryRepresentativeHomotopy (f : GenLoop N (Fiber e (e x)) (base e x))
276
- (H : (loopMap (projection e (e x)) rfl f).1.HomotopyRel
277
- (ContinuousMap.const _ x) (Cube.boundary N)) :
278
- f.1.HomotopyRel (loopMap (loopInclusion e x) rfl (boundaryRepresentative e x f H)).1
279
- (Cube.boundary N) where
280
- toHomotopy := deformHomotopy e x f.1 H.toHomotopy
281
- prop' s t ht := by
282
- change deformFiber e x f.1 H.toHomotopy (s,t) = f t
283
- rw [GenLoop.boundary f t ht]
284
- apply deformFiber_fixed
285
- · exact GenLoop.boundary f t ht
286
- · intro r
287
- exact (H.prop r t ht).trans (congrArg (projection e (e x)) (GenLoop.boundary f t ht))
288
-
289
- @[simp] theorem projection_loopInclusion (g : GenLoop N (Path (e x) (e x)) (Path.refl (e x))) :
290
- loopMap (projection e (e x)) rfl (loopMap (loopInclusion e x) rfl g) = GenLoop.const := by
291
- ext t
292
- rfl
293
-
294
- theorem projection_kernel_eq_loop_range [DecidableEq N] [Nonempty N]
295
- (a : HomotopyGroup N (Fiber e (e x)) (base e x)) :
296
- groupMap (projection e (e x)) rfl a = 1 ↔
297
- ∃ b : HomotopyGroup N (Path (e x) (e x)) (Path.refl (e x)),
298
- groupMap (loopInclusion e x) rfl b = a := by
299
- induction a using Quotient.inductionOn with
300
- | h f =>
301
- constructor
302
- · intro h
303
- change (⟦loopMap (projection e (e x)) rfl f⟧ : HomotopyGroup N X x) = ⟦GenLoop.const⟧ at h
304
- obtain ⟨H⟩ := Quotient.exact h
305
- refine ⟨⟦boundaryRepresentative e x f H⟧, ?_⟩
306
- exact Quotient.sound ⟨(boundaryRepresentativeHomotopy e x f H).symm⟩
307
- · rintro ⟨b,hb⟩
308
- rw [← hb]
309
- induction b using Quotient.inductionOn with
310
- | h g =>
311
- change (⟦loopMap (projection e (e x)) rfl (loopMap (loopInclusion e x) rfl g)⟧ :
312
- HomotopyGroup N X x) = ⟦GenLoop.const⟧
313
- exact congrArg Quotient.mk'' (projection_loopInclusion e x g)
314
-
315
- end NearbyLagrangian.HomotopyFiber
316
-
317
- end
318
-
319
- end OAI
 
1
+ import Mathlib
2
+ import OAI.Topology.Homotopy.BasedMaps
3
+
4
+ namespace OAI
5
+
6
+ /-! The path-space homotopy fiber and exactness at its projection. -/
7
+
8
+ noncomputable section
9
+ universe u v w
10
+
11
+
12
+ namespace NearbyLagrangian.HomotopyFiber
13
+ open ContinuousMap
14
+ open scoped Topology Topology.Homotopy
15
+ open BasedHomotopy
16
+ variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
17
+
18
+ def Fiber (e : C(X,Y)) (y : Y) :=
19
+ {z : X × C(unitInterval,Y) // z.2 0 = e z.1 ∧ z.2 1 = y}
20
+
21
+ instance (e : C(X,Y)) (y : Y) : TopologicalSpace (Fiber e y) := inferInstanceAs
22
+ (TopologicalSpace {z : X × C(unitInterval,Y) // z.2 0 = e z.1 ∧ z.2 1 = y})
23
+
24
+ def base (e : C(X,Y)) (x : X) : Fiber e (e x) :=
25
+ ⟨(x,ContinuousMap.const _ (e x)),rfl,rfl⟩
26
+
27
+ def projection (e : C(X,Y)) (y : Y) : C(Fiber e y,X) :=
28
+ ⟨fun z => z.1.1,continuous_fst.comp continuous_subtype_val⟩
29
+
30
+ @[simp] theorem projection_base (e : C(X,Y)) (x : X) :
31
+ projection e (e x) (base e x) = x := rfl
32
+
33
+ variable {N : Type*}
34
+
35
+ def projectionNullhomotopy (e : C(X,Y)) (x : X)
36
+ (f : GenLoop N (Fiber e (e x)) (base e x)) :
37
+ (loopMap e rfl (loopMap (projection e (e x)) rfl f)).1.HomotopyRel (ContinuousMap.const _ (e x)) (Cube.boundary N) where
38
+ toFun z := (f z.2).1.2 z.1
39
+ continuous_toFun := by
40
+ exact ((continuous_snd.comp (continuous_subtype_val.comp (f.1.continuous.comp continuous_snd))).eval continuous_fst)
41
+ map_zero_left t := (f t).2.1
42
+ map_one_left t := (f t).2.2
43
+ prop' s t ht := by
44
+ change (f t).1.2 s = e (f t).1.1
45
+ rw [GenLoop.boundary f t ht]
46
+ rfl
47
+
48
+ def liftNullhomotopy (e : C(X,Y)) (x : X) (f : GenLoop N X x)
49
+ (H : (loopMap e rfl f).1.HomotopyRel (ContinuousMap.const _ (e x)) (Cube.boundary N)) :
50
+ GenLoop N (Fiber e (e x)) (base e x) :=
51
+ ⟨⟨fun t => ⟨(f t,(H.toContinuousMap.comp ContinuousMap.prodSwap).curry t),
52
+ H.map_zero_left t,H.map_one_left t⟩,by
53
+ apply Continuous.subtype_mk
54
+ exact f.1.continuous.prodMk (H.toContinuousMap.comp ContinuousMap.prodSwap).curry.continuous⟩,
55
+ by
56
+ intro t ht
57
+ apply Subtype.ext
58
+ apply Prod.ext (GenLoop.boundary f t ht)
59
+ ext s
60
+ exact (H.prop s t ht).trans (congrArg e (GenLoop.boundary f t ht))⟩
61
+
62
+ @[simp] theorem projection_liftNullhomotopy (e : C(X,Y)) (x : X) (f : GenLoop N X x)
63
+ (H : (loopMap e rfl f).1.HomotopyRel (ContinuousMap.const _ (e x)) (Cube.boundary N)) :
64
+ loopMap (projection e (e x)) rfl (liftNullhomotopy e x f H) = f := by ext; rfl
65
+
66
+ theorem kernel_eq_projection_range [DecidableEq N] [Nonempty N]
67
+ (e : C(X,Y)) (x : X) (a : HomotopyGroup N X x) :
68
+ groupMap e rfl a = 1 ↔
69
+ ∃ b : HomotopyGroup N (Fiber e (e x)) (base e x),
70
+ groupMap (projection e (e x)) rfl b = a := by
71
+ induction a using Quotient.inductionOn with
72
+ | h f =>
73
+ constructor
74
+ · intro h
75
+ change (⟦loopMap e rfl f⟧ : HomotopyGroup N Y (e x)) = ⟦GenLoop.const⟧ at h
76
+ obtain ⟨H⟩ := Quotient.exact h
77
+ exact ⟨⟦liftNullhomotopy e x f H⟧,congrArg Quotient.mk'' (projection_liftNullhomotopy e x f H)⟩
78
+ · rintro ⟨b,hb⟩
79
+ rw [← hb]
80
+ induction b using Quotient.inductionOn with
81
+ | h g =>
82
+ change (⟦loopMap e rfl (loopMap (projection e (e x)) rfl g)⟧ : HomotopyGroup N Y (e x)) = ⟦GenLoop.const⟧
83
+ exact Quotient.sound ⟨projectionNullhomotopy e x g⟩
84
+
85
+ end NearbyLagrangian.HomotopyFiber
86
+
87
+ end
88
+
89
+ noncomputable section
90
+ universe u v w
91
+
92
+
93
+ namespace NearbyLagrangian.HomotopyFiber
94
+ open ContinuousMap Set
95
+ open scoped Topology Topology.Homotopy
96
+ open BasedHomotopy
97
+
98
+ def frontTime (s r : unitInterval) : unitInterval := projIcc 0 1 zero_le_one ((s:ℝ)-2*r)
99
+ def backTime (s r : unitInterval) : unitInterval := projIcc 0 1 zero_le_one ((2*(r:ℝ)-s)/(2-s))
100
+
101
+ lemma continuous_frontTime : Continuous (fun z : unitInterval × unitInterval => frontTime z.1 z.2) := by
102
+ unfold frontTime
103
+ fun_prop
104
+
105
+ lemma continuous_backTime : Continuous (fun z : unitInterval × unitInterval => backTime z.1 z.2) := by
106
+ unfold backTime
107
+ apply continuous_projIcc.comp
108
+ apply Continuous.div
109
+ · fun_prop
110
+ · fun_prop
111
+ · intro z
112
+ have := z.1.property.2
113
+ linarith
114
+
115
+ @[simp] lemma frontTime_zero_right (s : unitInterval) : frontTime s 0 = s := by
116
+ change projIcc 0 1 zero_le_one ((s:ℝ)-2*0) = s
117
+ simp only [mul_zero,sub_zero]
118
+ exact projIcc_val _ s
119
+
120
+ @[simp] lemma backTime_one_right (s : unitInterval) : backTime s 1 = 1 := by
121
+ unfold backTime
122
+ have hs : (2:ℝ)-s ≠ 0 := by linarith [s.property.2]
123
+ simp [hs]
124
+
125
+ @[simp] lemma backTime_zero_left (r : unitInterval) : backTime 0 r = r := by
126
+ change projIcc 0 1 zero_le_one ((2*(r:ℝ)-0)/(2-0)) = r
127
+ have he : (2*(r:ℝ)-(0:ℝ))/(2-(0:ℝ)) = r := by ring
128
+ rw [he]
129
+ exact projIcc_val _ r
130
+
131
+ lemma frontTime_seam {s r : unitInterval} (h : 2*(r:ℝ)=s) : frontTime s r = 0 := by
132
+ unfold frontTime
133
+ rw [h,sub_self]
134
+ exact projIcc_left _
135
+
136
+ lemma backTime_seam {s r : unitInterval} (h : 2*(r:ℝ)=s) : backTime s r = 0 := by
137
+ unfold backTime
138
+ rw [h,sub_self,zero_div]
139
+ exact projIcc_left _
140
+
141
+ variable {A X Y : Type*} [TopologicalSpace A] [TopologicalSpace X] [TopologicalSpace Y]
142
+ variable (e : C(X,Y)) (x : X) (f : C(A,Fiber e (e x)))
143
+ variable (H : ((projection e (e x)).comp f).Homotopy (ContinuousMap.const A x))
144
+
145
+ def deformValue (z : (unitInterval × A) × unitInterval) : Y :=
146
+ if 2*(z.2:ℝ) ≤ z.1.1 then e (H (frontTime z.1.1 z.2,z.1.2))
147
+ else (f z.1.2).1.2 (backTime z.1.1 z.2)
148
+
149
+ lemma continuous_deformValue : Continuous (deformValue e x f H) := by
150
+ unfold deformValue
151
+ apply continuous_if_le
152
+ · fun_prop
153
+ · fun_prop
154
+ · apply Continuous.continuousOn
155
+ apply e.continuous.comp
156
+ apply H.continuous.comp
157
+ exact (continuous_frontTime.comp ((continuous_fst.comp continuous_fst).prodMk continuous_snd)).prodMk
158
+ (continuous_snd.comp continuous_fst)
159
+ · apply Continuous.continuousOn
160
+ exact (continuous_snd.comp (continuous_subtype_val.comp
161
+ (f.continuous.comp (continuous_snd.comp continuous_fst)))).eval
162
+ (continuous_backTime.comp ((continuous_fst.comp continuous_fst).prodMk continuous_snd))
163
+ · intro z hz
164
+ rw [frontTime_seam hz,backTime_seam hz,H.apply_zero]
165
+ exact (f z.1.2).2.1.symm
166
+
167
+ @[simp] lemma deformValue_start (s : unitInterval) (a : A) :
168
+ deformValue e x f H ((s,a),0) = e (H (s,a)) := by
169
+ change (if 2*(0:ℝ) ≤ s then e (H (frontTime s 0,a)) else (f a).1.2 (backTime s 0)) = e (H (s,a))
170
+ simp only [mul_zero,ite_eq_left s.property.1,frontTime_zero_right]
171
+
172
+ @[simp] lemma deformValue_end (s : unitInterval) (a : A) :
173
+ deformValue e x f H ((s,a),1) = e x := by
174
+ change (if 2*(1:ℝ) ≤ s then e (H (frontTime s 1,a)) else (f a).1.2 (backTime s 1)) = e x
175
+ have hs : ¬ 2*(1:ℝ) ≤ (s:ℝ) := by linarith [s.property.2]
176
+ rw [ite_eq_right hs,backTime_one_right]
177
+ exact (f a).2.2
178
+
179
+ @[simp] lemma deformValue_zero (a : A) (r : unitInterval) :
180
+ deformValue e x f H ((0,a),r) = (f a).1.2 r := by
181
+ unfold deformValue
182
+ split_ifs with hr
183
+ · have he : r = 0 := Subtype.ext (by dsimp at hr ⊢; linarith [r.property.1])
184
+ rw [he,frontTime_zero_right,H.apply_zero]
185
+ exact (f a).2.1.symm
186
+ · rw [backTime_zero_left]
187
+
188
+ def deformPath : C(unitInterval × A,C(unitInterval,Y)) :=
189
+ (⟨deformValue e x f H,continuous_deformValue e x f H⟩ : C((unitInterval × A) × unitInterval,Y)).curry
190
+
191
+ def deformFiber : C(unitInterval × A,Fiber e (e x)) where
192
+ toFun 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⟩
193
+ continuous_toFun := (H.continuous.prodMk (deformPath e x f H).continuous).subtype_mk _
194
+
195
+ @[simp] lemma deformFiber_zero (a : A) : deformFiber e x f H (0,a) = f a := by
196
+ apply Subtype.ext
197
+ apply Prod.ext
198
+ · exact H.apply_zero a
199
+ · ext r
200
+ exact deformValue_zero e x f H a r
201
+
202
+ def loopInclusion : C(Path (e x) (e x),Fiber e (e x)) where
203
+ toFun p := ⟨(x,p.toContinuousMap),p.source,p.target⟩
204
+ continuous_toFun := (continuous_const.prodMk continuous_induced_dom).subtype_mk _
205
+
206
+ @[simp] lemma loopInclusion_base : loopInclusion e x (Path.refl (e x)) = base e x := rfl
207
+
208
+ def loopRepresentative : C(A,Path (e x) (e x)) where
209
+ toFun a := {
210
+ toContinuousMap := deformPath e x f H (1,a)
211
+ source' := by
212
+ change deformValue e x f H ((1,a),0) = e x
213
+ rw [deformValue_start,H.apply_one,ContinuousMap.const_apply]
214
+ target' := deformValue_end e x f H 1 a }
215
+ continuous_toFun := by
216
+ apply Path.continuous_uncurry_iff.mp
217
+ exact (continuous_deformValue e x f H).comp ((continuous_const.prodMk continuous_fst).prodMk continuous_snd)
218
+
219
+ def deformHomotopy : f.Homotopy ((loopInclusion e x).comp (loopRepresentative e x f H)) where
220
+ toContinuousMap := deformFiber e x f H
221
+ map_zero_left := deformFiber_zero e x f H
222
+ map_one_left a := by
223
+ apply Subtype.ext
224
+ apply Prod.ext
225
+ · exact H.apply_one a
226
+ · rfl
227
+
228
+ lemma deformValue_fixed (a : A) (ha : f a = base e x) (hH : ∀ s, H (s,a) = x)
229
+ (s r : unitInterval) : deformValue e x f H ((s,a),r) = e x := by
230
+ unfold deformValue
231
+ split_ifs
232
+ · rw [hH]
233
+ · rw [ha]
234
+ rfl
235
+
236
+ lemma deformFiber_fixed (a : A) (ha : f a = base e x) (hH : ∀ s, H (s,a) = x)
237
+ (s : unitInterval) : deformFiber e x f H (s,a) = base e x := by
238
+ apply Subtype.ext
239
+ apply Prod.ext (hH s)
240
+ ext r
241
+ exact deformValue_fixed e x f H a ha hH s r
242
+
243
+ lemma loopRepresentative_fixed (a : A) (ha : f a = base e x) (hH : ∀ s, H (s,a) = x) :
244
+ loopRepresentative e x f H a = Path.refl (e x) := by
245
+ apply Path.ext
246
+ funext r
247
+ exact deformValue_fixed e x f H a ha hH 1 r
248
+
249
+ end NearbyLagrangian.HomotopyFiber
250
+
251
+ end
252
+
253
+ noncomputable section
254
+ universe u v w
255
+
256
+
257
+ namespace NearbyLagrangian.HomotopyFiber
258
+ open ContinuousMap
259
+ open scoped Topology Topology.Homotopy
260
+ open BasedHomotopy
261
+ variable {N X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
262
+ variable (e : C(X,Y)) (x : X)
263
+
264
+ def boundaryRepresentative (f : GenLoop N (Fiber e (e x)) (base e x))
265
+ (H : (loopMap (projection e (e x)) rfl f).1.HomotopyRel
266
+ (ContinuousMap.const _ x) (Cube.boundary N)) :
267
+ GenLoop N (Path (e x) (e x)) (Path.refl (e x)) :=
268
+ ⟨loopRepresentative e x f.1 H.toHomotopy,by
269
+ intro t ht
270
+ apply loopRepresentative_fixed
271
+ · exact GenLoop.boundary f t ht
272
+ · intro s
273
+ exact (H.prop s t ht).trans (congrArg (projection e (e x)) (GenLoop.boundary f t ht))⟩
274
+
275
+ def boundaryRepresentativeHomotopy (f : GenLoop N (Fiber e (e x)) (base e x))
276
+ (H : (loopMap (projection e (e x)) rfl f).1.HomotopyRel
277
+ (ContinuousMap.const _ x) (Cube.boundary N)) :
278
+ f.1.HomotopyRel (loopMap (loopInclusion e x) rfl (boundaryRepresentative e x f H)).1
279
+ (Cube.boundary N) where
280
+ toHomotopy := deformHomotopy e x f.1 H.toHomotopy
281
+ prop' s t ht := by
282
+ change deformFiber e x f.1 H.toHomotopy (s,t) = f t
283
+ rw [GenLoop.boundary f t ht]
284
+ apply deformFiber_fixed
285
+ · exact GenLoop.boundary f t ht
286
+ · intro r
287
+ exact (H.prop r t ht).trans (congrArg (projection e (e x)) (GenLoop.boundary f t ht))
288
+
289
+ @[simp] theorem projection_loopInclusion (g : GenLoop N (Path (e x) (e x)) (Path.refl (e x))) :
290
+ loopMap (projection e (e x)) rfl (loopMap (loopInclusion e x) rfl g) = GenLoop.const := by
291
+ ext t
292
+ rfl
293
+
294
+ theorem projection_kernel_eq_loop_range [DecidableEq N] [Nonempty N]
295
+ (a : HomotopyGroup N (Fiber e (e x)) (base e x)) :
296
+ groupMap (projection e (e x)) rfl a = 1 ↔
297
+ ∃ b : HomotopyGroup N (Path (e x) (e x)) (Path.refl (e x)),
298
+ groupMap (loopInclusion e x) rfl b = a := by
299
+ induction a using Quotient.inductionOn with
300
+ | h f =>
301
+ constructor
302
+ · intro h
303
+ change (⟦loopMap (projection e (e x)) rfl f⟧ : HomotopyGroup N X x) = ⟦GenLoop.const⟧ at h
304
+ obtain ⟨H⟩ := Quotient.exact h
305
+ refine ⟨⟦boundaryRepresentative e x f H⟧, ?_⟩
306
+ exact Quotient.sound ⟨(boundaryRepresentativeHomotopy e x f H).symm⟩
307
+ · rintro ⟨b,hb⟩
308
+ rw [← hb]
309
+ induction b using Quotient.inductionOn with
310
+ | h g =>
311
+ change (⟦loopMap (projection e (e x)) rfl (loopMap (loopInclusion e x) rfl g)⟧ :
312
+ HomotopyGroup N X x) = ⟦GenLoop.const⟧
313
+ exact congrArg Quotient.mk'' (projection_loopInclusion e x g)
314
+
315
+ end NearbyLagrangian.HomotopyFiber
316
+
317
+ end
318
+
319
+ end OAI
lean/OAI/Topology/Homotopy/LoopHomotopy.lean CHANGED
@@ -1,143 +1,143 @@
1
- import Mathlib
2
-
3
- namespace OAI
4
-
5
- /-! Loop-space homeomorphisms and the degree-shift equivalence. -/
6
-
7
- noncomputable section
8
- universe u v w
9
-
10
-
11
- namespace NearbyLagrangian.BasedHomotopy
12
- open ContinuousMap
13
- open scoped Topology Topology.Homotopy
14
- variable {N M X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
15
- variable {x : X} {y : Y}
16
-
17
- theorem genLoop_homotopic_iff_joined (f g : GenLoop N X x) :
18
- GenLoop.Homotopic f g ↔ Joined f g := by
19
- constructor
20
- · rintro ⟨H⟩
21
- refine ⟨{
22
- toFun := fun s => ⟨H.toContinuousMap.curry s,fun t ht =>
23
- (H.prop s t ht).trans (GenLoop.boundary f t ht)⟩
24
- continuous_toFun := H.toContinuousMap.curry.continuous.subtype_mk _
25
- source' := ?_
26
- target' := ?_ }⟩
27
- · ext t; exact H.apply_zero t
28
- · ext t; exact H.apply_one t
29
- · rintro ⟨P⟩
30
- refine ⟨{
31
- toFun := fun z => P z.1 z.2
32
- continuous_toFun := ?_
33
- map_zero_left := ?_
34
- map_one_left := ?_
35
- prop' := ?_ }⟩
36
- · exact (continuous_subtype_val.comp (P.continuous.comp continuous_fst)).eval continuous_snd
37
- · intro t; exact congrArg (fun z : GenLoop N X x => z t) P.source
38
- · intro t; exact congrArg (fun z : GenLoop N X x => z t) P.target
39
- · intro s t ht
40
- exact (GenLoop.boundary (P s) t ht).trans (GenLoop.boundary f t ht).symm
41
-
42
- def piEquivOfLoopHomeomorph (e : GenLoop N X x ≃ₜ GenLoop M Y y) :
43
- HomotopyGroup N X x ≃ HomotopyGroup M Y y :=
44
- Quotient.congr e.toEquiv fun f g => by
45
- change GenLoop.Homotopic f g ↔ GenLoop.Homotopic (e f) (e g)
46
- rw [genLoop_homotopic_iff_joined,genLoop_homotopic_iff_joined]
47
- constructor
48
- · intro h; exact h.map e.continuous_toFun
49
- · intro h
50
- have hh : Joined (e.symm (e f)) (e.symm (e g)) := h.map e.symm.continuous_toFun
51
- simpa only [Homeomorph.symm_apply_apply] using hh
52
-
53
- def piReindexEquiv (e : N ≃ M) (x : X) :
54
- HomotopyGroup N X x ≃ HomotopyGroup M X x :=
55
- piEquivOfLoopHomeomorph (GenLoop.congr x e)
56
-
57
- def flattenPathLoop (f : GenLoop N (Path y y) (Path.refl y)) :
58
- GenLoop (N ⊕ Unit) Y y :=
59
- ⟨⟨fun a => f (a ∘ Sum.inl) (a (Sum.inr ())),by
60
- apply Continuous.eval
61
- · exact f.1.continuous.comp (by fun_prop)
62
- · fun_prop⟩,by
63
- rintro a ⟨i | i,hi⟩ <;> change f (a ∘ Sum.inl) (a (Sum.inr ())) = y
64
- · have h : a ∘ Sum.inl ∈ Cube.boundary N := ⟨i,hi⟩
65
- rw [GenLoop.boundary f _ h]
66
- rfl
67
- · cases i
68
- rcases hi with hi | hi
69
- · rw [hi]; exact (f _).source
70
- · rw [hi]; exact (f _).target⟩
71
-
72
- def curryPathLoop (g : GenLoop (N ⊕ Unit) Y y) :
73
- GenLoop N (Path y y) (Path.refl y) :=
74
- ⟨⟨fun a => {
75
- toFun := fun r => g (Sum.elim a (fun _ => r))
76
- continuous_toFun := g.1.continuous.comp (by apply continuous_pi; intro i; cases i <;> dsimp only [Sum.elim] <;> fun_prop)
77
- source' := GenLoop.boundary g _ ⟨Sum.inr (),Or.inl rfl⟩
78
- target' := GenLoop.boundary g _ ⟨Sum.inr (),Or.inr rfl⟩ },by
79
- apply Path.continuous_uncurry_iff.mp
80
- exact g.1.continuous.comp (by apply continuous_pi; intro i; cases i <;> dsimp only [Sum.elim] <;> fun_prop)⟩,by
81
- rintro a ⟨i,hi⟩
82
- apply Path.ext
83
- funext r
84
- exact GenLoop.boundary g _ ⟨Sum.inl i,hi⟩⟩
85
-
86
- @[simp] lemma curry_flatten (f : GenLoop N (Path y y) (Path.refl y)) :
87
- curryPathLoop (flattenPathLoop f) = f := by
88
- apply Subtype.ext
89
- ext a r
90
- rfl
91
-
92
- @[simp] lemma flatten_curry (g : GenLoop (N ⊕ Unit) Y y) :
93
- flattenPathLoop (curryPathLoop g) = g := by
94
- apply Subtype.ext
95
- ext a
96
- change g (Sum.elim (a ∘ Sum.inl) (fun _ => a (Sum.inr ()))) = g a
97
- congr 1
98
- funext i
99
- cases i with
100
- | inl i => rfl
101
- | inr i => cases i; rfl
102
-
103
- lemma continuous_flattenPathLoop : Continuous (@flattenPathLoop N Y _ y) := by
104
- apply Continuous.subtype_mk
105
- apply ContinuousMap.continuous_of_continuous_uncurry
106
- change Continuous (fun z : GenLoop N (Path y y) (Path.refl y) × ((N ⊕ Unit) → unitInterval) =>
107
- z.1 (z.2 ∘ Sum.inl) (z.2 (Sum.inr ())))
108
- have h : Continuous (fun z : GenLoop N (Path y y) (Path.refl y) × ((N ⊕ Unit) → unitInterval) =>
109
- z.1 (z.2 ∘ Sum.inl)) :=
110
- (continuous_subtype_val.comp continuous_fst).eval
111
- (continuous_pi (fun i => (continuous_apply (Sum.inl i)).comp continuous_snd))
112
- exact h.eval ((continuous_apply (Sum.inr ())).comp continuous_snd)
113
-
114
- lemma continuous_curryPathLoop : Continuous (@curryPathLoop N Y _ y) := by
115
- apply Continuous.subtype_mk
116
- apply ContinuousMap.continuous_of_continuous_uncurry
117
- apply Path.continuous_uncurry_iff.mp
118
- exact (continuous_subtype_val.comp (continuous_fst.comp continuous_fst)).eval
119
- (by apply continuous_pi; intro i; cases i <;> dsimp only [Sum.elim] <;> fun_prop)
120
-
121
- def loopSpaceCubeHomeomorph :
122
- GenLoop N (Path y y) (Path.refl y) ≃ₜ GenLoop (N ⊕ Unit) Y y where
123
- toFun := flattenPathLoop
124
- invFun := curryPathLoop
125
- left_inv := curry_flatten
126
- right_inv := flatten_curry
127
- continuous_toFun := continuous_flattenPathLoop
128
- continuous_invFun := continuous_curryPathLoop
129
-
130
- def loopPiEquiv (y : Y) :
131
- HomotopyGroup N (Path y y) (Path.refl y) ≃ HomotopyGroup (N ⊕ Unit) Y y :=
132
- piEquivOfLoopHomeomorph loopSpaceCubeHomeomorph
133
-
134
- def pi9LoopEquivPi10 (y : Y) :
135
- π_ 9 (Path y y) (Path.refl y) ≃ π_ 10 Y y :=
136
- (loopPiEquiv y).trans (piReindexEquiv
137
- ((Equiv.sumCongr (Equiv.refl (Fin 9)) (Equiv.ofUnique Unit (Fin 1))).trans finSumFinEquiv) y)
138
-
139
- end NearbyLagrangian.BasedHomotopy
140
-
141
- end
142
-
143
- end OAI
 
1
+ import Mathlib
2
+
3
+ namespace OAI
4
+
5
+ /-! Loop-space homeomorphisms and the degree-shift equivalence. -/
6
+
7
+ noncomputable section
8
+ universe u v w
9
+
10
+
11
+ namespace NearbyLagrangian.BasedHomotopy
12
+ open ContinuousMap
13
+ open scoped Topology Topology.Homotopy
14
+ variable {N M X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
15
+ variable {x : X} {y : Y}
16
+
17
+ theorem genLoop_homotopic_iff_joined (f g : GenLoop N X x) :
18
+ GenLoop.Homotopic f g ↔ Joined f g := by
19
+ constructor
20
+ · rintro ⟨H⟩
21
+ refine ⟨{
22
+ toFun := fun s => ⟨H.toContinuousMap.curry s,fun t ht =>
23
+ (H.prop s t ht).trans (GenLoop.boundary f t ht)⟩
24
+ continuous_toFun := H.toContinuousMap.curry.continuous.subtype_mk _
25
+ source' := ?_
26
+ target' := ?_ }⟩
27
+ · ext t; exact H.apply_zero t
28
+ · ext t; exact H.apply_one t
29
+ · rintro ⟨P⟩
30
+ refine ⟨{
31
+ toFun := fun z => P z.1 z.2
32
+ continuous_toFun := ?_
33
+ map_zero_left := ?_
34
+ map_one_left := ?_
35
+ prop' := ?_ }⟩
36
+ · exact (continuous_subtype_val.comp (P.continuous.comp continuous_fst)).eval continuous_snd
37
+ · intro t; exact congrArg (fun z : GenLoop N X x => z t) P.source
38
+ · intro t; exact congrArg (fun z : GenLoop N X x => z t) P.target
39
+ · intro s t ht
40
+ exact (GenLoop.boundary (P s) t ht).trans (GenLoop.boundary f t ht).symm
41
+
42
+ def piEquivOfLoopHomeomorph (e : GenLoop N X x ≃ₜ GenLoop M Y y) :
43
+ HomotopyGroup N X x ≃ HomotopyGroup M Y y :=
44
+ Quotient.congr e.toEquiv fun f g => by
45
+ change GenLoop.Homotopic f g ↔ GenLoop.Homotopic (e f) (e g)
46
+ rw [genLoop_homotopic_iff_joined,genLoop_homotopic_iff_joined]
47
+ constructor
48
+ · intro h; exact h.map e.continuous_toFun
49
+ · intro h
50
+ have hh : Joined (e.symm (e f)) (e.symm (e g)) := h.map e.symm.continuous_toFun
51
+ simpa only [Homeomorph.symm_apply_apply] using hh
52
+
53
+ def piReindexEquiv (e : N ≃ M) (x : X) :
54
+ HomotopyGroup N X x ≃ HomotopyGroup M X x :=
55
+ piEquivOfLoopHomeomorph (GenLoop.congr x e)
56
+
57
+ def flattenPathLoop (f : GenLoop N (Path y y) (Path.refl y)) :
58
+ GenLoop (N ⊕ Unit) Y y :=
59
+ ⟨⟨fun a => f (a ∘ Sum.inl) (a (Sum.inr ())),by
60
+ apply Continuous.eval
61
+ · exact f.1.continuous.comp (by fun_prop)
62
+ · fun_prop⟩,by
63
+ rintro a ⟨i | i,hi⟩ <;> change f (a ∘ Sum.inl) (a (Sum.inr ())) = y
64
+ · have h : a ∘ Sum.inl ∈ Cube.boundary N := ⟨i,hi⟩
65
+ rw [GenLoop.boundary f _ h]
66
+ rfl
67
+ · cases i
68
+ rcases hi with hi | hi
69
+ · rw [hi]; exact (f _).source
70
+ · rw [hi]; exact (f _).target⟩
71
+
72
+ def curryPathLoop (g : GenLoop (N ⊕ Unit) Y y) :
73
+ GenLoop N (Path y y) (Path.refl y) :=
74
+ ⟨⟨fun a => {
75
+ toFun := fun r => g (Sum.elim a (fun _ => r))
76
+ continuous_toFun := g.1.continuous.comp (by apply continuous_pi; intro i; cases i <;> dsimp only [Sum.elim] <;> fun_prop)
77
+ source' := GenLoop.boundary g _ ⟨Sum.inr (),Or.inl rfl⟩
78
+ target' := GenLoop.boundary g _ ⟨Sum.inr (),Or.inr rfl⟩ },by
79
+ apply Path.continuous_uncurry_iff.mp
80
+ exact g.1.continuous.comp (by apply continuous_pi; intro i; cases i <;> dsimp only [Sum.elim] <;> fun_prop)⟩,by
81
+ rintro a ⟨i,hi⟩
82
+ apply Path.ext
83
+ funext r
84
+ exact GenLoop.boundary g _ ⟨Sum.inl i,hi⟩⟩
85
+
86
+ @[simp] lemma curry_flatten (f : GenLoop N (Path y y) (Path.refl y)) :
87
+ curryPathLoop (flattenPathLoop f) = f := by
88
+ apply Subtype.ext
89
+ ext a r
90
+ rfl
91
+
92
+ @[simp] lemma flatten_curry (g : GenLoop (N ⊕ Unit) Y y) :
93
+ flattenPathLoop (curryPathLoop g) = g := by
94
+ apply Subtype.ext
95
+ ext a
96
+ change g (Sum.elim (a ∘ Sum.inl) (fun _ => a (Sum.inr ()))) = g a
97
+ congr 1
98
+ funext i
99
+ cases i with
100
+ | inl i => rfl
101
+ | inr i => cases i; rfl
102
+
103
+ lemma continuous_flattenPathLoop : Continuous (@flattenPathLoop N Y _ y) := by
104
+ apply Continuous.subtype_mk
105
+ apply ContinuousMap.continuous_of_continuous_uncurry
106
+ change Continuous (fun z : GenLoop N (Path y y) (Path.refl y) × ((N ⊕ Unit) → unitInterval) =>
107
+ z.1 (z.2 ∘ Sum.inl) (z.2 (Sum.inr ())))
108
+ have h : Continuous (fun z : GenLoop N (Path y y) (Path.refl y) × ((N ⊕ Unit) → unitInterval) =>
109
+ z.1 (z.2 ∘ Sum.inl)) :=
110
+ (continuous_subtype_val.comp continuous_fst).eval
111
+ (continuous_pi (fun i => (continuous_apply (Sum.inl i)).comp continuous_snd))
112
+ exact h.eval ((continuous_apply (Sum.inr ())).comp continuous_snd)
113
+
114
+ lemma continuous_curryPathLoop : Continuous (@curryPathLoop N Y _ y) := by
115
+ apply Continuous.subtype_mk
116
+ apply ContinuousMap.continuous_of_continuous_uncurry
117
+ apply Path.continuous_uncurry_iff.mp
118
+ exact (continuous_subtype_val.comp (continuous_fst.comp continuous_fst)).eval
119
+ (by apply continuous_pi; intro i; cases i <;> dsimp only [Sum.elim] <;> fun_prop)
120
+
121
+ def loopSpaceCubeHomeomorph :
122
+ GenLoop N (Path y y) (Path.refl y) ≃ₜ GenLoop (N ⊕ Unit) Y y where
123
+ toFun := flattenPathLoop
124
+ invFun := curryPathLoop
125
+ left_inv := curry_flatten
126
+ right_inv := flatten_curry
127
+ continuous_toFun := continuous_flattenPathLoop
128
+ continuous_invFun := continuous_curryPathLoop
129
+
130
+ def loopPiEquiv (y : Y) :
131
+ HomotopyGroup N (Path y y) (Path.refl y) ≃ HomotopyGroup (N ⊕ Unit) Y y :=
132
+ piEquivOfLoopHomeomorph loopSpaceCubeHomeomorph
133
+
134
+ def pi9LoopEquivPi10 (y : Y) :
135
+ π_ 9 (Path y y) (Path.refl y) ≃ π_ 10 Y y :=
136
+ (loopPiEquiv y).trans (piReindexEquiv
137
+ ((Equiv.sumCongr (Equiv.refl (Fin 9)) (Equiv.ofUnique Unit (Fin 1))).trans finSumFinEquiv) y)
138
+
139
+ end NearbyLagrangian.BasedHomotopy
140
+
141
+ end
142
+
143
+ end OAI
lean/OAI/Topology/Homotopy/OpenCollapse.lean CHANGED
@@ -1,128 +1,128 @@
1
- import Mathlib
2
-
3
- namespace OAI
4
-
5
- /-! Continuous collapse to a one-point compactification and parameterized descent. -/
6
-
7
- noncomputable section
8
- universe u v w
9
- open Set ContinuousMap Topology
10
- open scoped Classical OnePoint Topology
11
-
12
- namespace NearbyLagrangian.OpenCollapse
13
- variable {Y : Type*}
14
-
15
- def collapse (U : Set Y) (y : Y) : OnePoint U :=
16
- if h : y ∈ U then (⟨y,h⟩ : U) else ∞
17
-
18
- @[simp] lemma collapse_of_mem {U : Set Y} {y : Y} (h : y ∈ U) :
19
- collapse U y = (⟨y,h⟩ : U) := by simp [collapse,h]
20
- @[simp] lemma collapse_of_notMem {U : Set Y} {y : Y} (h : y ∉ U) :
21
- collapse U y = ∞ := by simp [collapse,h]
22
- lemma collapse_eq_infty {U : Set Y} {y : Y} : collapse U y = ∞ ↔ y ∉ U := by
23
- by_cases h : y ∈ U <;> simp [h]
24
- lemma collapse_eq {U : Set Y} {y z : Y} :
25
- collapse U y = collapse U z ↔ y = z ∨ y ∉ U ∧ z ∉ U := by
26
- by_cases hy : y ∈ U
27
- · by_cases hz : z ∈ U
28
- · simp [collapse,hy,hz]
29
- · have hn : y ≠ z := by rintro rfl; contradiction
30
- simp [collapse,hy,hz,hn]
31
- · by_cases hz : z ∈ U
32
- · have hn : y ≠ z := by rintro rfl; contradiction
33
- simp [collapse,hy,hz,hn]
34
- · simp [collapse,hy,hz]
35
-
36
- variable [TopologicalSpace Y] [T2Space Y]
37
-
38
- lemma continuous_collapse {U : Set Y} (hU : IsOpen U) : Continuous (collapse U) := by
39
- rw [continuous_def]
40
- intro S hS
41
- by_cases hi : ∞ ∈ S
42
- · have hK := ((OnePoint.isOpen_iff_of_mem hi).mp hS).2
43
- have he : (collapse U ⁻¹' S)ᶜ = Subtype.val '' (((↑) : U → OnePoint U) ⁻¹' S)ᶜ := by
44
- ext y
45
- by_cases hy : y ∈ U
46
- · simp [hy,Set.mem_image,collapse]
47
- · simp [hy,collapse,hi]
48
- rw [← isClosed_compl_iff,he]
49
- exact (hK.image continuous_subtype_val).isClosed
50
- · have hV := (OnePoint.isOpen_iff_of_notMem hi).mp hS
51
- have he : collapse U ⁻¹' S = Subtype.val '' (((↑) : U → OnePoint U) ⁻¹' S) := by
52
- ext y
53
- by_cases hy : y ∈ U
54
- · simp [hy,Set.mem_image,collapse]
55
- · simp [hy,collapse,hi]
56
- rw [he]
57
- exact hU.isOpenMap_subtype_val _ hV
58
-
59
- omit [TopologicalSpace Y] [T2Space Y] in
60
- lemma collapse_surjective {U : Set Y} (hU : Uᶜ.Nonempty) : Function.Surjective (collapse U) := by
61
- intro z
62
- induction z using OnePoint.rec with
63
- | infty => obtain ⟨y,hy⟩ := hU; exact ⟨y,collapse_of_notMem hy⟩
64
- | coe y => exact ⟨y,collapse_of_mem y.property⟩
65
-
66
- variable [CompactSpace Y]
67
- lemma isQuotientMap_collapse {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty) :
68
- IsQuotientMap (collapse U) := by
69
- let : LocallyCompactSpace U := hU.locallyCompactSpace
70
- exact (continuous_collapse hU).isClosedMap.isQuotientMap (continuous_collapse hU)
71
- (collapse_surjective hUc)
72
-
73
- def descend {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty)
74
- {X : Type*} [TopologicalSpace X] (f : C(Y,X)) (x : X)
75
- (hf : ∀ y ∉ U, f y = x) : C(OnePoint U,X) where
76
- toFun := fun z => z.elim x (fun y => f y)
77
- continuous_toFun := (isQuotientMap_collapse hU hUc).continuous_iff.mpr (by
78
- have he : (fun z : OnePoint U => z.elim x (fun y => f y)) ∘ collapse U = f := by
79
- funext y
80
- by_cases hy : y ∈ U
81
- · simp [hy]
82
- · simp [hy,hf y hy]
83
- rw [he]
84
- exact f.continuous)
85
-
86
- @[simp] lemma descend_collapse {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty)
87
- {X : Type*} [TopologicalSpace X] (f : C(Y,X)) (x : X)
88
- (hf : ∀ y ∉ U, f y = x) (y : Y) : descend hU hUc f x hf (collapse U y) = f y := by
89
- by_cases hy : y ∈ U <;> simp [descend,hy,hf y]
90
-
91
- end NearbyLagrangian.OpenCollapse
92
-
93
- end
94
-
95
- noncomputable section
96
- universe u v w
97
- open Set ContinuousMap Topology
98
- open scoped Classical OnePoint Topology
99
-
100
- namespace NearbyLagrangian.OpenCollapse
101
- variable {Y P X : Type*} [TopologicalSpace Y] [T2Space Y] [CompactSpace Y]
102
- [TopologicalSpace P] [T2Space P] [CompactSpace P] [TopologicalSpace X]
103
-
104
- lemma continuous_descend_param {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty)
105
- (F : C(P × Y,X)) (g : C(P,X)) (hF : ∀ p y, y ∉ U → F (p,y) = g p) :
106
- Continuous (fun q : P × OnePoint U => q.2.elim (g q.1) (fun y => F (q.1,y))) := by
107
- let : LocallyCompactSpace U := hU.locallyCompactSpace
108
- let c : P × Y → P × OnePoint U := fun z => (z.1,collapse U z.2)
109
- have hc : Continuous c := continuous_fst.prodMk ((continuous_collapse hU).comp continuous_snd)
110
- have hs : Function.Surjective c := by
111
- rintro ⟨p,z⟩
112
- obtain ⟨y,hy⟩ := collapse_surjective hUc z
113
- exact ⟨(p,y),Prod.ext rfl hy⟩
114
- have hq := hc.isClosedMap.isQuotientMap hc hs
115
- apply hq.continuous_iff.mpr
116
- have he : (fun q : P × OnePoint U => q.2.elim (g q.1) (fun y => F (q.1,y))) ∘ c = F := by
117
- funext q
118
- rcases q with ⟨p,y⟩
119
- change (collapse U y).elim (g p) (fun y => F (p,y)) = F (p,y)
120
- by_cases hy : y ∈ U <;> simp [hy,hF p y]
121
- rw [he]
122
- exact F.continuous
123
-
124
- end NearbyLagrangian.OpenCollapse
125
-
126
- end
127
-
128
- end OAI
 
1
+ import Mathlib
2
+
3
+ namespace OAI
4
+
5
+ /-! Continuous collapse to a one-point compactification and parameterized descent. -/
6
+
7
+ noncomputable section
8
+ universe u v w
9
+ open Set ContinuousMap Topology
10
+ open scoped Classical OnePoint Topology
11
+
12
+ namespace NearbyLagrangian.OpenCollapse
13
+ variable {Y : Type*}
14
+
15
+ def collapse (U : Set Y) (y : Y) : OnePoint U :=
16
+ if h : y ∈ U then (⟨y,h⟩ : U) else ∞
17
+
18
+ @[simp] lemma collapse_of_mem {U : Set Y} {y : Y} (h : y ∈ U) :
19
+ collapse U y = (⟨y,h⟩ : U) := by simp [collapse,h]
20
+ @[simp] lemma collapse_of_notMem {U : Set Y} {y : Y} (h : y ∉ U) :
21
+ collapse U y = ∞ := by simp [collapse,h]
22
+ lemma collapse_eq_infty {U : Set Y} {y : Y} : collapse U y = ∞ ↔ y ∉ U := by
23
+ by_cases h : y ∈ U <;> simp [h]
24
+ lemma collapse_eq {U : Set Y} {y z : Y} :
25
+ collapse U y = collapse U z ↔ y = z ∨ y ∉ U ∧ z ∉ U := by
26
+ by_cases hy : y ∈ U
27
+ · by_cases hz : z ∈ U
28
+ · simp [collapse,hy,hz]
29
+ · have hn : y ≠ z := by rintro rfl; contradiction
30
+ simp [collapse,hy,hz,hn]
31
+ · by_cases hz : z ∈ U
32
+ · have hn : y ≠ z := by rintro rfl; contradiction
33
+ simp [collapse,hy,hz,hn]
34
+ · simp [collapse,hy,hz]
35
+
36
+ variable [TopologicalSpace Y] [T2Space Y]
37
+
38
+ lemma continuous_collapse {U : Set Y} (hU : IsOpen U) : Continuous (collapse U) := by
39
+ rw [continuous_def]
40
+ intro S hS
41
+ by_cases hi : ∞ ∈ S
42
+ · have hK := ((OnePoint.isOpen_iff_of_mem hi).mp hS).2
43
+ have he : (collapse U ⁻¹' S)ᶜ = Subtype.val '' (((↑) : U → OnePoint U) ⁻¹' S)ᶜ := by
44
+ ext y
45
+ by_cases hy : y ∈ U
46
+ · simp [hy,Set.mem_image,collapse]
47
+ · simp [hy,collapse,hi]
48
+ rw [← isClosed_compl_iff,he]
49
+ exact (hK.image continuous_subtype_val).isClosed
50
+ · have hV := (OnePoint.isOpen_iff_of_notMem hi).mp hS
51
+ have he : collapse U ⁻¹' S = Subtype.val '' (((↑) : U → OnePoint U) ⁻¹' S) := by
52
+ ext y
53
+ by_cases hy : y ∈ U
54
+ · simp [hy,Set.mem_image,collapse]
55
+ · simp [hy,collapse,hi]
56
+ rw [he]
57
+ exact hU.isOpenMap_subtype_val _ hV
58
+
59
+ omit [TopologicalSpace Y] [T2Space Y] in
60
+ lemma collapse_surjective {U : Set Y} (hU : Uᶜ.Nonempty) : Function.Surjective (collapse U) := by
61
+ intro z
62
+ induction z using OnePoint.rec with
63
+ | infty => obtain ⟨y,hy⟩ := hU; exact ⟨y,collapse_of_notMem hy⟩
64
+ | coe y => exact ⟨y,collapse_of_mem y.property⟩
65
+
66
+ variable [CompactSpace Y]
67
+ lemma isQuotientMap_collapse {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty) :
68
+ IsQuotientMap (collapse U) := by
69
+ let : LocallyCompactSpace U := hU.locallyCompactSpace
70
+ exact (continuous_collapse hU).isClosedMap.isQuotientMap (continuous_collapse hU)
71
+ (collapse_surjective hUc)
72
+
73
+ def descend {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty)
74
+ {X : Type*} [TopologicalSpace X] (f : C(Y,X)) (x : X)
75
+ (hf : ∀ y ∉ U, f y = x) : C(OnePoint U,X) where
76
+ toFun := fun z => z.elim x (fun y => f y)
77
+ continuous_toFun := (isQuotientMap_collapse hU hUc).continuous_iff.mpr (by
78
+ have he : (fun z : OnePoint U => z.elim x (fun y => f y)) ∘ collapse U = f := by
79
+ funext y
80
+ by_cases hy : y ∈ U
81
+ · simp [hy]
82
+ · simp [hy,hf y hy]
83
+ rw [he]
84
+ exact f.continuous)
85
+
86
+ @[simp] lemma descend_collapse {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty)
87
+ {X : Type*} [TopologicalSpace X] (f : C(Y,X)) (x : X)
88
+ (hf : ∀ y ∉ U, f y = x) (y : Y) : descend hU hUc f x hf (collapse U y) = f y := by
89
+ by_cases hy : y ∈ U <;> simp [descend,hy,hf y]
90
+
91
+ end NearbyLagrangian.OpenCollapse
92
+
93
+ end
94
+
95
+ noncomputable section
96
+ universe u v w
97
+ open Set ContinuousMap Topology
98
+ open scoped Classical OnePoint Topology
99
+
100
+ namespace NearbyLagrangian.OpenCollapse
101
+ variable {Y P X : Type*} [TopologicalSpace Y] [T2Space Y] [CompactSpace Y]
102
+ [TopologicalSpace P] [T2Space P] [CompactSpace P] [TopologicalSpace X]
103
+
104
+ lemma continuous_descend_param {U : Set Y} (hU : IsOpen U) (hUc : Uᶜ.Nonempty)
105
+ (F : C(P × Y,X)) (g : C(P,X)) (hF : ∀ p y, y ∉ U → F (p,y) = g p) :
106
+ Continuous (fun q : P × OnePoint U => q.2.elim (g q.1) (fun y => F (q.1,y))) := by
107
+ let : LocallyCompactSpace U := hU.locallyCompactSpace
108
+ let c : P × Y → P × OnePoint U := fun z => (z.1,collapse U z.2)
109
+ have hc : Continuous c := continuous_fst.prodMk ((continuous_collapse hU).comp continuous_snd)
110
+ have hs : Function.Surjective c := by
111
+ rintro ⟨p,z⟩
112
+ obtain ⟨y,hy⟩ := collapse_surjective hUc z
113
+ exact ⟨(p,y),Prod.ext rfl hy⟩
114
+ have hq := hc.isClosedMap.isQuotientMap hc hs
115
+ apply hq.continuous_iff.mpr
116
+ have he : (fun q : P × OnePoint U => q.2.elim (g q.1) (fun y => F (q.1,y))) ∘ c = F := by
117
+ funext q
118
+ rcases q with ⟨p,y⟩
119
+ change (collapse U y).elim (g p) (fun y => F (p,y)) = F (p,y)
120
+ by_cases hy : y ∈ U <;> simp [hy,hF p y]
121
+ rw [he]
122
+ exact F.continuous
123
+
124
+ end NearbyLagrangian.OpenCollapse
125
+
126
+ end
127
+
128
+ end OAI
lean/OAI/Topology/Homotopy/RayTelescope.lean CHANGED
@@ -1,383 +1,383 @@
1
- import Mathlib
2
-
3
- namespace OAI
4
-
5
- /-! Sequential ray telescopes, finite-stage representatives and path connectedness. -/
6
-
7
- noncomputable section
8
- universe u v w
9
- open Set ContinuousMap
10
- open scoped Topology
11
-
12
- namespace NearbyLagrangian.RayTelescope
13
- variable (X : ℕ → Type u) [∀ n, TopologicalSpace (X n)]
14
- variable (φ : ∀ m n, m ≤ n → C(X m,X n))
15
-
16
- abbrev Raw := Σ n, X n × {t : ℝ // (n:ℝ) ≤ t}
17
-
18
- inductive Glue : Raw X → Raw X → Prop
19
- | step (n m : ℕ) (h : n ≤ m) (x : X n) (t : ℝ) (ht : (m:ℝ) ≤ t) :
20
- Glue ⟨n,(x,⟨t,(by exact le_trans (by exact_mod_cast h) ht)⟩)⟩
21
- ⟨m,(φ n m h x,⟨t,ht⟩)⟩
22
-
23
- abbrev Space := Quot (Glue X φ)
24
-
25
- def rawHeight : C(Raw X,ℝ) :=
26
- ⟨fun a => a.2.2,continuous_sigma (fun _ => continuous_subtype_val.comp continuous_snd)⟩
27
-
28
- def height : C(Space X φ,ℝ) :=
29
- ⟨Quot.lift (rawHeight X) (by intro a b h; cases h; rfl),
30
- continuous_quot_lift _ (rawHeight X).continuous⟩
31
-
32
- @[simp] theorem height_quot (a : Raw X) : height X φ (Quot.mk _ a) = a.2.2 := rfl
33
-
34
- def bottomTime (n : ℕ) : {t : ℝ // (n:ℝ) ≤ t} := ⟨(n:ℝ),by exact le_rfl⟩
35
-
36
- def stage (n : ℕ) : C(X n,Space X φ) :=
37
- ⟨fun x => Quot.mk _ ⟨n,(x,bottomTime n)⟩,by
38
- exact continuous_quot_mk.comp (continuous_sigmaMk.comp
39
- (continuous_id.prodMk (continuous_const :
40
- Continuous (fun _ : X n => bottomTime n))))⟩
41
-
42
- @[simp] theorem height_stage (n : ℕ) (x : X n) : height X φ (stage X φ n x) = n := rfl
43
-
44
- variable [∀ n, Nonempty (X n)]
45
- variable [DirectedSystem X (fun {m n} h => (φ m n h : _ → _))]
46
-
47
- def rawCollapse (N : ℕ) : C(Raw X,X N) where
48
- toFun a := if h : a.1 ≤ N then φ a.1 N h a.2.1 else Classical.choice inferInstance
49
- continuous_toFun := continuous_sigma (fun n => by
50
- by_cases h : n ≤ N
51
- · simpa only [dite_eq_left h,Function.comp_def] using (φ n N h).continuous.comp continuous_fst
52
- · simpa only [dite_eq_right h] using
53
- (continuous_const : Continuous (fun _ : X n × {t : ℝ // (n:ℝ) ≤ t} => (Classical.choice inferInstance : X N))))
54
-
55
- omit [∀ n, Nonempty (X n)] in
56
- lemma stage_le_of_height_lt {N : ℕ} (a : Raw X) (h : rawHeight X a < (N:ℝ)+1) : a.1 ≤ N := by
57
- have h' : (a.1:ℝ) < (N:ℝ)+1 := lt_of_le_of_lt a.2.2.2 h
58
- have : a.1 < N+1 := by exact_mod_cast h'
59
- omega
60
-
61
- lemma collapse_compatible {N : ℕ} {a b : Raw X}
62
- (h : Quot.mk (Glue X φ) a = Quot.mk (Glue X φ) b)
63
- (ha : rawHeight X a < (N:ℝ)+1) : rawCollapse X φ N a = rawCollapse X φ N b := by
64
- have hrel := Quot.eqvGen_exact h
65
- have aux : ∀ a b, Relation.EqvGen (Glue X φ) a b →
66
- rawHeight X a = rawHeight X b ∧
67
- (rawHeight X a < (N:ℝ)+1 → rawCollapse X φ N a = rawCollapse X φ N b) := by
68
- intro a b h
69
- induction h with
70
- | rel a b hab =>
71
- cases hab with
72
- | step n m h x t ht =>
73
- refine ⟨rfl,fun hz => ?_⟩
74
- have hm : m ≤ N := stage_le_of_height_lt X ⟨m,(φ n m h x,⟨t,ht⟩)⟩ hz
75
- have hn := h.trans hm
76
- simp only [rawCollapse,ContinuousMap.coe_mk,dite_eq_left hn,dite_eq_left hm]
77
- exact (DirectedSystem.map_map (f:=fun {m n} h => (φ m n h : _ → _)) h hm x).symm
78
- | refl a => exact ⟨rfl,fun _ => rfl⟩
79
- | symm a b hab ih => exact ⟨ih.1.symm,fun hb => (ih.2 (ih.1.symm ▸ hb)).symm⟩
80
- | trans a b c hab hbc ihab ihbc =>
81
- exact ⟨ihab.1.trans ihbc.1,fun ha => (ihab.2 ha).trans (ihbc.2 (ihab.1 ▸ ha))⟩
82
- exact (aux a b hrel).2 ha
83
-
84
- abbrev Trunc (N : ℕ) := {z : Space X φ // height X φ z < (N:ℝ)+1}
85
-
86
- def representative (z : Space X φ) : Raw X := (Quot.mk_surjective z).choose
87
-
88
- omit [∀ n, Nonempty (X n)] [DirectedSystem X (fun {m n} h => (φ m n h : _ → _))] in
89
- @[simp] theorem representative_mk (z : Space X φ) :
90
- Quot.mk (Glue X φ) (representative X φ z) = z := (Quot.mk_surjective z).choose_spec
91
-
92
- def retract (N : ℕ) : C(Trunc X φ N,X N) where
93
- toFun z := rawCollapse X φ N (representative X φ z.1)
94
- continuous_toFun := by
95
- let s := {z : Space X φ | height X φ z < (N:ℝ)+1}
96
- have hs : IsOpen s := isOpen_lt (height X φ).continuous continuous_const
97
- have hq := (isQuotientMap_quot_mk (r:=Glue X φ)).restrictPreimage_isOpen hs
98
- apply hq.continuous_iff.mpr
99
- change Continuous (fun a : {a : Raw X // Quot.mk (Glue X φ) a ∈ s} =>
100
- rawCollapse X φ N (representative X φ (Quot.mk _ a.1)))
101
- have hf : (fun a : {a : Raw X // Quot.mk (Glue X φ) a ∈ s} =>
102
- rawCollapse X φ N (representative X φ (Quot.mk _ a.1))) =
103
- fun a => rawCollapse X φ N a.1 := by
104
- funext a
105
- apply collapse_compatible X φ
106
- · exact representative_mk X φ _
107
- · change height X φ (Quot.mk _ (representative X φ (Quot.mk _ a.1))) < _
108
- rw [representative_mk]
109
- exact a.2
110
- rw [hf]
111
- exact (rawCollapse X φ N).continuous.comp continuous_subtype_val
112
-
113
- @[simp] theorem retract_quot (N : ℕ) (a : Raw X)
114
- (ha : rawHeight X a < (N:ℝ)+1) :
115
- retract X φ N ⟨Quot.mk _ a,ha⟩ = rawCollapse X φ N a := by
116
- apply collapse_compatible X φ
117
- · exact representative_mk X φ _
118
- · change height X φ (Quot.mk _ (representative X φ (Quot.mk _ a))) < _
119
- rw [representative_mk]
120
- exact ha
121
-
122
- @[simp] theorem retract_stage (N n : ℕ) (h : n ≤ N) (x : X n)
123
- (hx : height X φ (stage X φ n x) < (N:ℝ)+1) :
124
- retract X φ N ⟨stage X φ n x,hx⟩ = φ n N h x := by
125
- calc
126
- retract X φ N ⟨stage X φ n x,hx⟩ = rawCollapse X φ N ⟨n,(x,bottomTime n)⟩ :=
127
- retract_quot X φ N ⟨n,(x,bottomTime n)⟩ hx
128
- _ = φ n N h x := by simp only [rawCollapse,ContinuousMap.coe_mk,dite_eq_left h]
129
-
130
- end NearbyLagrangian.RayTelescope
131
-
132
- end
133
-
134
- noncomputable section
135
- universe u v w
136
-
137
-
138
- namespace NearbyLagrangian.RayTelescope
139
- open Set ContinuousMap
140
- open scoped Topology
141
- variable (X : ℕ → Type u) [∀ n, TopologicalSpace (X n)]
142
- variable (φ : ∀ m n, m ≤ n → C(X m,X n))
143
-
144
- def raiseTime (N : ℕ) (s : unitInterval) (t : ℝ) : ℝ := t + s * (max t N-t)
145
-
146
- lemma le_raiseTime (N : ℕ) (s : unitInterval) (t : ℝ) : t ≤ raiseTime N s t := by
147
- unfold raiseTime
148
- exact le_add_of_nonneg_right (mul_nonneg s.2.1 (sub_nonneg.mpr (le_max_left _ _)))
149
-
150
- @[simp] theorem raiseTime_zero (N : ℕ) (t : ℝ) : raiseTime N 0 t = t := by simp [raiseTime]
151
- @[simp] theorem raiseTime_one (N : ℕ) (t : ℝ) : raiseTime N 1 t = max t N := by simp [raiseTime]
152
-
153
- def cylinderRaise (N n : ℕ) : C((X n × {t : ℝ // (n:ℝ) ≤ t}) × unitInterval,Space X φ) where
154
- toFun z := Quot.mk _ ⟨n,(z.1.1,⟨raiseTime N z.2 z.1.2,
155
- z.1.2.2.trans (le_raiseTime _ _ _)⟩)⟩
156
- continuous_toFun := by
157
- have ht : Continuous (fun z : (X n × {t : ℝ // (n:ℝ) ≤ t}) × unitInterval => raiseTime N z.2 z.1.2) := by
158
- unfold raiseTime
159
- fun_prop
160
- exact continuous_quot_mk.comp (continuous_sigmaMk.comp
161
- (continuous_fst.fst.prodMk (ht.subtype_mk _)))
162
-
163
- def rawRaise (N : ℕ) : C(Raw X,C(unitInterval,Space X φ)) :=
164
- ⟨fun a => (cylinderRaise X φ N a.1).curry a.2,
165
- continuous_sigma (fun _ => (cylinderRaise X φ N _).curry.continuous)⟩
166
-
167
- def raiseFamily (N : ℕ) : C(Space X φ,C(unitInterval,Space X φ)) :=
168
- ⟨Quot.lift (rawRaise X φ N) (by
169
- intro a b h
170
- ext s
171
- cases h with
172
- | step n m h x t ht =>
173
- exact Quot.sound (Glue.step n m h x (raiseTime N s t) (ht.trans (le_raiseTime _ _ _)))),
174
- continuous_quot_lift _ (rawRaise X φ N).continuous⟩
175
-
176
- @[simp] theorem raiseFamily_apply (N : ℕ) (a : Raw X) (s : unitInterval) :
177
- raiseFamily X φ N (Quot.mk _ a) s = Quot.mk _
178
- ⟨a.1,(a.2.1,⟨raiseTime N s a.2.2,a.2.2.2.trans (le_raiseTime _ _ _)⟩)⟩ := rfl
179
-
180
- def raised (N : ℕ) : C(Space X φ,Space X φ) :=
181
- ⟨fun z => raiseFamily X φ N z 1,(continuous_eval_const (1:unitInterval)).comp
182
- (raiseFamily X φ N).continuous⟩
183
-
184
- def raiseHomotopy (N : ℕ) : (ContinuousMap.id (Space X φ)).Homotopy (raised X φ N) where
185
- toFun z := raiseFamily X φ N z.2 z.1
186
- continuous_toFun := (raiseFamily X φ N).uncurry.continuous.comp continuous_swap
187
- map_zero_left z := by
188
- induction z using Quot.inductionOn with
189
- | h a =>
190
- change Quot.mk _ ⟨a.1,(a.2.1,⟨raiseTime N 0 a.2.2,_⟩)⟩ = Quot.mk _ a
191
- exact congrArg (fun t : {t : ℝ // (a.1:ℝ) ≤ t} => Quot.mk (Glue X φ) ⟨a.1,(a.2.1,t)⟩)
192
- (Subtype.ext (raiseTime_zero N a.2.2))
193
- map_one_left _ := rfl
194
-
195
- @[simp] theorem height_raised (N : ℕ) (z : Space X φ) :
196
- height X φ (raised X φ N z) = max (height X φ z) N := by
197
- induction z using Quot.inductionOn with
198
- | h a => change raiseTime N 1 a.2.2 = max (a.2.2:ℝ) N; exact raiseTime_one _ _
199
-
200
- variable [∀ n, Nonempty (X n)]
201
- variable [DirectedSystem X (fun {m n} h => (φ m n h : _ → _))]
202
-
203
- theorem raised_eq_stage_retract (N : ℕ) (z : Space X φ) (hz : height X φ z ≤ N) :
204
- raised X φ N z = stage X φ N
205
- (retract X φ N ⟨z,lt_of_le_of_lt hz (by linarith)⟩) := by
206
- induction z using Quot.inductionOn with
207
- | h a =>
208
- have hn : a.1 ≤ N := stage_le_of_height_lt X a (lt_of_le_of_lt hz (by linarith))
209
- have hr : retract X φ N ⟨Quot.mk _ a,lt_of_le_of_lt hz (by linarith)⟩ =
210
- rawCollapse X φ N a := retract_quot X φ N a _
211
- rw [hr]
212
- change Quot.mk (Glue X φ) ⟨a.1,(a.2.1,⟨raiseTime N 1 a.2.2,_⟩)⟩ =
213
- Quot.mk (Glue X φ) ⟨N,(rawCollapse X φ N a,⟨(N:ℝ),le_rfl⟩)⟩
214
- have hz' : (a.2.2:ℝ) ≤ N := hz
215
- simp only [raiseTime_one,max_eq_right hz',rawCollapse,ContinuousMap.coe_mk,dite_eq_left hn]
216
- exact Quot.sound (Glue.step a.1 N hn a.2.1 (N:ℝ) le_rfl)
217
-
218
- end NearbyLagrangian.RayTelescope
219
-
220
- end
221
-
222
- noncomputable section
223
- universe u v w
224
-
225
-
226
- namespace NearbyLagrangian.RayTelescope
227
- open Set ContinuousMap
228
- open scoped Topology
229
- variable (X : ℕ → Type u) [∀ n, TopologicalSpace (X n)]
230
- variable (φ : ∀ m n, m ≤ n → C(X m,X n))
231
- variable {A : Type v} [TopologicalSpace A]
232
-
233
- theorem exists_height_bound [CompactSpace A] (f : C(A,Space X φ)) :
234
- ∃ N : ℕ, ∀ a, height X φ (f a) ≤ N := by
235
- obtain ⟨r,hr⟩ := (isCompact_range ((height X φ).continuous.comp f.continuous)).bddAbove
236
- obtain ⟨N,hN⟩ := exists_nat_gt r
237
- exact ⟨N,fun a => le_of_lt ((hr ⟨a,rfl⟩).trans_lt hN)⟩
238
-
239
- variable [∀ n, Nonempty (X n)]
240
- variable [DirectedSystem X (fun {m n} h => (φ m n h : _ → _))]
241
-
242
- def finiteMap (N : ℕ) (f : C(A,Space X φ)) (hf : ∀ a, height X φ (f a) < (N:ℝ)+1) : C(A,X N) :=
243
- (retract X φ N).comp ⟨fun a => ⟨f a,hf a⟩,f.continuous.subtype_mk _⟩
244
-
245
- def finiteHomotopy (N : ℕ) (f : C(A,Space X φ)) (hf : ∀ a, height X φ (f a) ≤ N) :
246
- f.Homotopy ((stage X φ N).comp
247
- (finiteMap X φ N f (fun a => lt_of_le_of_lt (hf a) (by linarith)))) :=
248
- ((raiseHomotopy X φ N).compContinuousMap f).cast (by ext; rfl) (by
249
- ext a
250
- exact raised_eq_stage_retract X φ N (f a) (hf a))
251
-
252
- theorem exists_finite_representative [CompactSpace A] (f : C(A,Space X φ)) :
253
- ∃ N : ℕ, ∃ g : C(A,X N), f.Homotopic ((stage X φ N).comp g) := by
254
- obtain ⟨N,hN⟩ := exists_height_bound X φ f
255
- exact ⟨N,finiteMap X φ N f (fun a => lt_of_le_of_lt (hN a) (by linarith)),
256
- ⟨finiteHomotopy X φ N f hN⟩⟩
257
-
258
- @[simp] theorem finiteMap_stage (N m : ℕ) (h : m ≤ N) (f : C(A,X m))
259
- (hf : ∀ a, height X φ ((stage X φ m).comp f a) < (N:ℝ)+1) :
260
- finiteMap X φ N ((stage X φ m).comp f) hf = (φ m N h).comp f := by
261
- ext a
262
- exact retract_stage X φ N m h (f a) (hf a)
263
-
264
- theorem stage_stabilize_homotopic (m N : ℕ) (h : m ≤ N) :
265
- (stage X φ m).Homotopic ((stage X φ N).comp (φ m N h)) := by
266
- have hh : ∀ x : X m, height X φ (stage X φ m x) ≤ N := by
267
- intro x
268
- change (m:ℝ) ≤ N
269
- exact_mod_cast h
270
- have H := finiteHomotopy X φ N (stage X φ m) hh
271
- refine ⟨H.cast rfl ?_⟩
272
- apply congrArg ((stage X φ N).comp)
273
- ext x
274
- exact retract_stage X φ N m h x _
275
-
276
- def finiteStageHomotopy {m n N : ℕ} (hm : m ≤ N) (hn : n ≤ N)
277
- (f : C(A,X m)) (g : C(A,X n))
278
- (H : ((stage X φ m).comp f).Homotopy ((stage X φ n).comp g))
279
- (hH : ∀ z, height X φ (H z) < (N:ℝ)+1) :
280
- ((φ m N hm).comp f).Homotopy ((φ n N hn).comp g) where
281
- toFun z := retract X φ N ⟨H z,hH z⟩
282
- continuous_toFun := (retract X φ N).continuous.comp (H.continuous.subtype_mk _)
283
- map_zero_left a := by
284
- have ha : height X φ (stage X φ m (f a)) < (N:ℝ)+1 := by
285
- have := hH (0,a)
286
- simpa only [ContinuousMap.Homotopy.apply_zero,ContinuousMap.comp_apply] using this
287
- calc
288
- retract X φ N ⟨H (0,a),hH (0,a)⟩ = retract X φ N ⟨stage X φ m (f a),ha⟩ :=
289
- congrArg (retract X φ N) (Subtype.ext (H.map_zero_left a))
290
- _ = _ := retract_stage X φ N m hm (f a) ha
291
- map_one_left a := by
292
- have ha : height X φ (stage X φ n (g a)) < (N:ℝ)+1 := by
293
- have := hH (1,a)
294
- simpa only [ContinuousMap.Homotopy.apply_one,ContinuousMap.comp_apply] using this
295
- calc
296
- retract X φ N ⟨H (1,a),hH (1,a)⟩ = retract X φ N ⟨stage X φ n (g a),ha⟩ :=
297
- congrArg (retract X φ N) (Subtype.ext (H.map_one_left a))
298
- _ = _ := retract_stage X φ N n hn (g a) ha
299
-
300
- theorem stage_homotopic_iff [CompactSpace A] {m n : ℕ} (f : C(A,X m)) (g : C(A,X n)) :
301
- ((stage X φ m).comp f).Homotopic ((stage X φ n).comp g) ↔
302
- ∃ (N : ℕ) (hm : m ≤ N) (hn : n ≤ N), ((φ m N hm).comp f).Homotopic ((φ n N hn).comp g) := by
303
- constructor
304
- · rintro ⟨H⟩
305
- obtain ⟨K,hK⟩ := exists_height_bound X φ H.toContinuousMap
306
- let N := max K (max m n)
307
- have hm : m ≤ N := (le_max_left m n).trans (le_max_right _ _)
308
- have hn : n ≤ N := (le_max_right m n).trans (le_max_right _ _)
309
- have hKN : (K:ℝ) ≤ N := by exact_mod_cast (le_max_left K (max m n))
310
- refine ⟨N,hm,hn,⟨finiteStageHomotopy X φ hm hn f g H ?_⟩⟩
311
- intro z
312
- exact lt_of_le_of_lt ((hK z).trans hKN) (by linarith)
313
- · rintro ⟨N,hm,hn,h⟩
314
- exact (((stage_stabilize_homotopic X φ m N hm).comp (ContinuousMap.Homotopic.refl f)).trans
315
- ((ContinuousMap.Homotopic.refl (stage X φ N)).comp h)).trans
316
- (((stage_stabilize_homotopic X φ n N hn).comp (ContinuousMap.Homotopic.refl g)).symm)
317
-
318
- theorem stage_nullhomotopic_iff [CompactSpace A] {m : ℕ} (f : C(A,X m)) :
319
- ((stage X φ m).comp f).Nullhomotopic ↔
320
- ∃ (N : ℕ) (hm : m ≤ N), ((φ m N hm).comp f).Nullhomotopic := by
321
- constructor
322
- · rintro ⟨c,⟨H⟩⟩
323
- obtain ⟨K,hK⟩ := exists_height_bound X φ H.toContinuousMap
324
- obtain ⟨J,hJ⟩ := exists_nat_gt (height X φ c)
325
- let N := max K (max m J)
326
- have hm : m ≤ N := (le_max_left m J).trans (le_max_right _ _)
327
- have hKN : (K:ℝ) ≤ N := by exact_mod_cast (le_max_left K (max m J))
328
- have hJN : (J:ℝ) ≤ N := by exact_mod_cast ((le_max_right m J).trans (le_max_right K (max m J)))
329
- have hc : height X φ c < (N:ℝ)+1 := lt_of_lt_of_le hJ (by linarith)
330
- have hH : ∀ z, height X φ (H z) < (N:ℝ)+1 :=
331
- fun z => lt_of_le_of_lt ((hK z).trans hKN) (by linarith)
332
- refine ⟨N,hm,retract X φ N ⟨c,hc⟩,⟨{
333
- toFun := fun z => retract X φ N ⟨H z,hH z⟩
334
- continuous_toFun := (retract X φ N).continuous.comp (H.continuous.subtype_mk _)
335
- map_zero_left := ?_
336
- map_one_left := ?_ }⟩⟩
337
- · intro a
338
- have ha : height X φ (stage X φ m (f a)) < (N:ℝ)+1 := by
339
- simpa only [ContinuousMap.Homotopy.apply_zero,ContinuousMap.comp_apply] using hH (0,a)
340
- calc
341
- retract X φ N ⟨H (0,a),hH (0,a)⟩ = retract X φ N ⟨stage X φ m (f a),ha⟩ :=
342
- congrArg (retract X φ N) (Subtype.ext (H.map_zero_left a))
343
- _ = _ := retract_stage X φ N m hm (f a) ha
344
- · intro a
345
- exact congrArg (retract X φ N) (Subtype.ext (H.map_one_left a))
346
- · rintro ⟨N,hm,c,h⟩
347
- refine ⟨stage X φ N c,?_⟩
348
- exact ((stage_stabilize_homotopic X φ m N hm).comp (ContinuousMap.Homotopic.refl f)).trans
349
- ((ContinuousMap.Homotopic.refl (stage X φ N)).comp h)
350
-
351
- end NearbyLagrangian.RayTelescope
352
-
353
- end
354
-
355
- noncomputable section
356
- universe u v w
357
-
358
-
359
- namespace NearbyLagrangian.RayTelescope
360
- open ContinuousMap
361
- variable (X : ℕ → Type u) [∀ n, TopologicalSpace (X n)]
362
- variable (φ : ∀ m n, m ≤ n → C(X m,X n))
363
- variable [DirectedSystem X (fun {m n} h => (φ m n h : _ → _))]
364
- variable [∀ n, PathConnectedSpace (X n)]
365
-
366
- theorem joined_base (b : X 0) (z : Space X φ) : Joined z (stage X φ 0 b) := by
367
- obtain ⟨N,g,⟨H⟩⟩ := exists_finite_representative X φ (ContinuousMap.const Unit z)
368
- have h₁ : Joined z (stage X φ N (g ())) := ⟨H.evalAt ()⟩
369
- have h₂ : Joined (stage X φ N (g ())) (stage X φ N (φ 0 N (Nat.zero_le N) b)) :=
370
- (PathConnectedSpace.joined _ _).map (stage X φ N).continuous
371
- obtain ⟨K⟩ := stage_stabilize_homotopic X φ 0 N (Nat.zero_le N)
372
- exact (h₁.trans h₂).trans (Joined.symm ⟨K.evalAt b⟩)
373
-
374
- instance pathConnected : PathConnectedSpace (Space X φ) where
375
- nonempty := ⟨stage X φ 0 (Classical.choice inferInstance)⟩
376
- joined z w := (joined_base X φ (Classical.choice inferInstance) z).trans
377
- (joined_base X φ (Classical.choice inferInstance) w).symm
378
-
379
- end NearbyLagrangian.RayTelescope
380
-
381
- end
382
-
383
- end OAI
 
1
+ import Mathlib
2
+
3
+ namespace OAI
4
+
5
+ /-! Sequential ray telescopes, finite-stage representatives and path connectedness. -/
6
+
7
+ noncomputable section
8
+ universe u v w
9
+ open Set ContinuousMap
10
+ open scoped Topology
11
+
12
+ namespace NearbyLagrangian.RayTelescope
13
+ variable (X : ℕ → Type u) [∀ n, TopologicalSpace (X n)]
14
+ variable (φ : ∀ m n, m ≤ n → C(X m,X n))
15
+
16
+ abbrev Raw := Σ n, X n × {t : ℝ // (n:ℝ) ≤ t}
17
+
18
+ inductive Glue : Raw X → Raw X → Prop
19
+ | step (n m : ℕ) (h : n ≤ m) (x : X n) (t : ℝ) (ht : (m:ℝ) ≤ t) :
20
+ Glue ⟨n,(x,⟨t,(by exact le_trans (by exact_mod_cast h) ht)⟩)⟩
21
+ ⟨m,(φ n m h x,⟨t,ht⟩)⟩
22
+
23
+ abbrev Space := Quot (Glue X φ)
24
+
25
+ def rawHeight : C(Raw X,ℝ) :=
26
+ ⟨fun a => a.2.2,continuous_sigma (fun _ => continuous_subtype_val.comp continuous_snd)⟩
27
+
28
+ def height : C(Space X φ,ℝ) :=
29
+ ⟨Quot.lift (rawHeight X) (by intro a b h; cases h; rfl),
30
+ continuous_quot_lift _ (rawHeight X).continuous⟩
31
+
32
+ @[simp] theorem height_quot (a : Raw X) : height X φ (Quot.mk _ a) = a.2.2 := rfl
33
+
34
+ def bottomTime (n : ℕ) : {t : ℝ // (n:ℝ) ≤ t} := ⟨(n:ℝ),by exact le_rfl⟩
35
+
36
+ def stage (n : ℕ) : C(X n,Space X φ) :=
37
+ ⟨fun x => Quot.mk _ ⟨n,(x,bottomTime n)⟩,by
38
+ exact continuous_quot_mk.comp (continuous_sigmaMk.comp
39
+ (continuous_id.prodMk (continuous_const :
40
+ Continuous (fun _ : X n => bottomTime n))))⟩
41
+
42
+ @[simp] theorem height_stage (n : ℕ) (x : X n) : height X φ (stage X φ n x) = n := rfl
43
+
44
+ variable [∀ n, Nonempty (X n)]
45
+ variable [DirectedSystem X (fun {m n} h => (φ m n h : _ → _))]
46
+
47
+ def rawCollapse (N : ℕ) : C(Raw X,X N) where
48
+ toFun a := if h : a.1 ≤ N then φ a.1 N h a.2.1 else Classical.choice inferInstance
49
+ continuous_toFun := continuous_sigma (fun n => by
50
+ by_cases h : n ≤ N
51
+ · simpa only [dite_eq_left h,Function.comp_def] using (φ n N h).continuous.comp continuous_fst
52
+ · simpa only [dite_eq_right h] using
53
+ (continuous_const : Continuous (fun _ : X n × {t : ℝ // (n:ℝ) ≤ t} => (Classical.choice inferInstance : X N))))
54
+
55
+ omit [∀ n, Nonempty (X n)] in
56
+ lemma stage_le_of_height_lt {N : ℕ} (a : Raw X) (h : rawHeight X a < (N:ℝ)+1) : a.1 ≤ N := by
57
+ have h' : (a.1:ℝ) < (N:ℝ)+1 := lt_of_le_of_lt a.2.2.2 h
58
+ have : a.1 < N+1 := by exact_mod_cast h'
59
+ omega
60
+
61
+ lemma collapse_compatible {N : ℕ} {a b : Raw X}
62
+ (h : Quot.mk (Glue X φ) a = Quot.mk (Glue X φ) b)
63
+ (ha : rawHeight X a < (N:ℝ)+1) : rawCollapse X φ N a = rawCollapse X φ N b := by
64
+ have hrel := Quot.eqvGen_exact h
65
+ have aux : ∀ a b, Relation.EqvGen (Glue X φ) a b →
66
+ rawHeight X a = rawHeight X b ∧
67
+ (rawHeight X a < (N:ℝ)+1 → rawCollapse X φ N a = rawCollapse X φ N b) := by
68
+ intro a b h
69
+ induction h with
70
+ | rel a b hab =>
71
+ cases hab with
72
+ | step n m h x t ht =>
73
+ refine ⟨rfl,fun hz => ?_⟩
74
+ have hm : m ≤ N := stage_le_of_height_lt X ⟨m,(φ n m h x,⟨t,ht⟩)⟩ hz
75
+ have hn := h.trans hm
76
+ simp only [rawCollapse,ContinuousMap.coe_mk,dite_eq_left hn,dite_eq_left hm]
77
+ exact (DirectedSystem.map_map (f:=fun {m n} h => (φ m n h : _ → _)) h hm x).symm
78
+ | refl a => exact ⟨rfl,fun _ => rfl⟩
79
+ | symm a b hab ih => exact ⟨ih.1.symm,fun hb => (ih.2 (ih.1.symm ▸ hb)).symm⟩
80
+ | trans a b c hab hbc ihab ihbc =>
81
+ exact ⟨ihab.1.trans ihbc.1,fun ha => (ihab.2 ha).trans (ihbc.2 (ihab.1 ▸ ha))⟩
82
+ exact (aux a b hrel).2 ha
83
+
84
+ abbrev Trunc (N : ℕ) := {z : Space X φ // height X φ z < (N:ℝ)+1}
85
+
86
+ def representative (z : Space X φ) : Raw X := (Quot.mk_surjective z).choose
87
+
88
+ omit [∀ n, Nonempty (X n)] [DirectedSystem X (fun {m n} h => (φ m n h : _ → _))] in
89
+ @[simp] theorem representative_mk (z : Space X φ) :
90
+ Quot.mk (Glue X φ) (representative X φ z) = z := (Quot.mk_surjective z).choose_spec
91
+
92
+ def retract (N : ℕ) : C(Trunc X φ N,X N) where
93
+ toFun z := rawCollapse X φ N (representative X φ z.1)
94
+ continuous_toFun := by
95
+ let s := {z : Space X φ | height X φ z < (N:ℝ)+1}
96
+ have hs : IsOpen s := isOpen_lt (height X φ).continuous continuous_const
97
+ have hq := (isQuotientMap_quot_mk (r:=Glue X φ)).restrictPreimage_isOpen hs
98
+ apply hq.continuous_iff.mpr
99
+ change Continuous (fun a : {a : Raw X // Quot.mk (Glue X φ) a ∈ s} =>
100
+ rawCollapse X φ N (representative X φ (Quot.mk _ a.1)))
101
+ have hf : (fun a : {a : Raw X // Quot.mk (Glue X φ) a ∈ s} =>
102
+ rawCollapse X φ N (representative X φ (Quot.mk _ a.1))) =
103
+ fun a => rawCollapse X φ N a.1 := by
104
+ funext a
105
+ apply collapse_compatible X φ
106
+ · exact representative_mk X φ _
107
+ · change height X φ (Quot.mk _ (representative X φ (Quot.mk _ a.1))) < _
108
+ rw [representative_mk]
109
+ exact a.2
110
+ rw [hf]
111
+ exact (rawCollapse X φ N).continuous.comp continuous_subtype_val
112
+
113
+ @[simp] theorem retract_quot (N : ℕ) (a : Raw X)
114
+ (ha : rawHeight X a < (N:ℝ)+1) :
115
+ retract X φ N ⟨Quot.mk _ a,ha⟩ = rawCollapse X φ N a := by
116
+ apply collapse_compatible X φ
117
+ · exact representative_mk X φ _
118
+ · change height X φ (Quot.mk _ (representative X φ (Quot.mk _ a))) < _
119
+ rw [representative_mk]
120
+ exact ha
121
+
122
+ @[simp] theorem retract_stage (N n : ℕ) (h : n ≤ N) (x : X n)
123
+ (hx : height X φ (stage X φ n x) < (N:ℝ)+1) :
124
+ retract X φ N ⟨stage X φ n x,hx⟩ = φ n N h x := by
125
+ calc
126
+ retract X φ N ⟨stage X φ n x,hx⟩ = rawCollapse X φ N ⟨n,(x,bottomTime n)⟩ :=
127
+ retract_quot X φ N ⟨n,(x,bottomTime n)⟩ hx
128
+ _ = φ n N h x := by simp only [rawCollapse,ContinuousMap.coe_mk,dite_eq_left h]
129
+
130
+ end NearbyLagrangian.RayTelescope
131
+
132
+ end
133
+
134
+ noncomputable section
135
+ universe u v w
136
+
137
+
138
+ namespace NearbyLagrangian.RayTelescope
139
+ open Set ContinuousMap
140
+ open scoped Topology
141
+ variable (X : ℕ → Type u) [∀ n, TopologicalSpace (X n)]
142
+ variable (φ : ∀ m n, m ≤ n → C(X m,X n))
143
+
144
+ def raiseTime (N : ℕ) (s : unitInterval) (t : ℝ) : ℝ := t + s * (max t N-t)
145
+
146
+ lemma le_raiseTime (N : ℕ) (s : unitInterval) (t : ℝ) : t ≤ raiseTime N s t := by
147
+ unfold raiseTime
148
+ exact le_add_of_nonneg_right (mul_nonneg s.2.1 (sub_nonneg.mpr (le_max_left _ _)))
149
+
150
+ @[simp] theorem raiseTime_zero (N : ℕ) (t : ℝ) : raiseTime N 0 t = t := by simp [raiseTime]
151
+ @[simp] theorem raiseTime_one (N : ℕ) (t : ℝ) : raiseTime N 1 t = max t N := by simp [raiseTime]
152
+
153
+ def cylinderRaise (N n : ℕ) : C((X n × {t : ℝ // (n:ℝ) ≤ t}) × unitInterval,Space X φ) where
154
+ toFun z := Quot.mk _ ⟨n,(z.1.1,⟨raiseTime N z.2 z.1.2,
155
+ z.1.2.2.trans (le_raiseTime _ _ _)⟩)⟩
156
+ continuous_toFun := by
157
+ have ht : Continuous (fun z : (X n × {t : ℝ // (n:ℝ) ≤ t}) × unitInterval => raiseTime N z.2 z.1.2) := by
158
+ unfold raiseTime
159
+ fun_prop
160
+ exact continuous_quot_mk.comp (continuous_sigmaMk.comp
161
+ (continuous_fst.fst.prodMk (ht.subtype_mk _)))
162
+
163
+ def rawRaise (N : ℕ) : C(Raw X,C(unitInterval,Space X φ)) :=
164
+ ⟨fun a => (cylinderRaise X φ N a.1).curry a.2,
165
+ continuous_sigma (fun _ => (cylinderRaise X φ N _).curry.continuous)⟩
166
+
167
+ def raiseFamily (N : ℕ) : C(Space X φ,C(unitInterval,Space X φ)) :=
168
+ ⟨Quot.lift (rawRaise X φ N) (by
169
+ intro a b h
170
+ ext s
171
+ cases h with
172
+ | step n m h x t ht =>
173
+ exact Quot.sound (Glue.step n m h x (raiseTime N s t) (ht.trans (le_raiseTime _ _ _)))),
174
+ continuous_quot_lift _ (rawRaise X φ N).continuous⟩
175
+
176
+ @[simp] theorem raiseFamily_apply (N : ℕ) (a : Raw X) (s : unitInterval) :
177
+ raiseFamily X φ N (Quot.mk _ a) s = Quot.mk _
178
+ ⟨a.1,(a.2.1,⟨raiseTime N s a.2.2,a.2.2.2.trans (le_raiseTime _ _ _)⟩)⟩ := rfl
179
+
180
+ def raised (N : ℕ) : C(Space X φ,Space X φ) :=
181
+ ⟨fun z => raiseFamily X φ N z 1,(continuous_eval_const (1:unitInterval)).comp
182
+ (raiseFamily X φ N).continuous⟩
183
+
184
+ def raiseHomotopy (N : ℕ) : (ContinuousMap.id (Space X φ)).Homotopy (raised X φ N) where
185
+ toFun z := raiseFamily X φ N z.2 z.1
186
+ continuous_toFun := (raiseFamily X φ N).uncurry.continuous.comp continuous_swap
187
+ map_zero_left z := by
188
+ induction z using Quot.inductionOn with
189
+ | h a =>
190
+ change Quot.mk _ ⟨a.1,(a.2.1,⟨raiseTime N 0 a.2.2,_⟩)⟩ = Quot.mk _ a
191
+ exact congrArg (fun t : {t : ℝ // (a.1:ℝ) ≤ t} => Quot.mk (Glue X φ) ⟨a.1,(a.2.1,t)⟩)
192
+ (Subtype.ext (raiseTime_zero N a.2.2))
193
+ map_one_left _ := rfl
194
+
195
+ @[simp] theorem height_raised (N : ℕ) (z : Space X φ) :
196
+ height X φ (raised X φ N z) = max (height X φ z) N := by
197
+ induction z using Quot.inductionOn with
198
+ | h a => change raiseTime N 1 a.2.2 = max (a.2.2:ℝ) N; exact raiseTime_one _ _
199
+
200
+ variable [∀ n, Nonempty (X n)]
201
+ variable [DirectedSystem X (fun {m n} h => (φ m n h : _ → _))]
202
+
203
+ theorem raised_eq_stage_retract (N : ℕ) (z : Space X φ) (hz : height X φ z ≤ N) :
204
+ raised X φ N z = stage X φ N
205
+ (retract X φ N ⟨z,lt_of_le_of_lt hz (by linarith)⟩) := by
206
+ induction z using Quot.inductionOn with
207
+ | h a =>
208
+ have hn : a.1 ≤ N := stage_le_of_height_lt X a (lt_of_le_of_lt hz (by linarith))
209
+ have hr : retract X φ N ⟨Quot.mk _ a,lt_of_le_of_lt hz (by linarith)⟩ =
210
+ rawCollapse X φ N a := retract_quot X φ N a _
211
+ rw [hr]
212
+ change Quot.mk (Glue X φ) ⟨a.1,(a.2.1,⟨raiseTime N 1 a.2.2,_⟩)⟩ =
213
+ Quot.mk (Glue X φ) ⟨N,(rawCollapse X φ N a,⟨(N:ℝ),le_rfl⟩)⟩
214
+ have hz' : (a.2.2:ℝ) ≤ N := hz
215
+ simp only [raiseTime_one,max_eq_right hz',rawCollapse,ContinuousMap.coe_mk,dite_eq_left hn]
216
+ exact Quot.sound (Glue.step a.1 N hn a.2.1 (N:ℝ) le_rfl)
217
+
218
+ end NearbyLagrangian.RayTelescope
219
+
220
+ end
221
+
222
+ noncomputable section
223
+ universe u v w
224
+
225
+
226
+ namespace NearbyLagrangian.RayTelescope
227
+ open Set ContinuousMap
228
+ open scoped Topology
229
+ variable (X : ℕ → Type u) [∀ n, TopologicalSpace (X n)]
230
+ variable (φ : ∀ m n, m ≤ n → C(X m,X n))
231
+ variable {A : Type v} [TopologicalSpace A]
232
+
233
+ theorem exists_height_bound [CompactSpace A] (f : C(A,Space X φ)) :
234
+ ∃ N : ℕ, ∀ a, height X φ (f a) ≤ N := by
235
+ obtain ⟨r,hr⟩ := (isCompact_range ((height X φ).continuous.comp f.continuous)).bddAbove
236
+ obtain ⟨N,hN⟩ := exists_nat_gt r
237
+ exact ⟨N,fun a => le_of_lt ((hr ⟨a,rfl⟩).trans_lt hN)⟩
238
+
239
+ variable [∀ n, Nonempty (X n)]
240
+ variable [DirectedSystem X (fun {m n} h => (φ m n h : _ → _))]
241
+
242
+ def finiteMap (N : ℕ) (f : C(A,Space X φ)) (hf : ∀ a, height X φ (f a) < (N:ℝ)+1) : C(A,X N) :=
243
+ (retract X φ N).comp ⟨fun a => ⟨f a,hf a⟩,f.continuous.subtype_mk _⟩
244
+
245
+ def finiteHomotopy (N : ℕ) (f : C(A,Space X φ)) (hf : ∀ a, height X φ (f a) ≤ N) :
246
+ f.Homotopy ((stage X φ N).comp
247
+ (finiteMap X φ N f (fun a => lt_of_le_of_lt (hf a) (by linarith)))) :=
248
+ ((raiseHomotopy X φ N).compContinuousMap f).cast (by ext; rfl) (by
249
+ ext a
250
+ exact raised_eq_stage_retract X φ N (f a) (hf a))
251
+
252
+ theorem exists_finite_representative [CompactSpace A] (f : C(A,Space X φ)) :
253
+ ∃ N : ℕ, ∃ g : C(A,X N), f.Homotopic ((stage X φ N).comp g) := by
254
+ obtain ⟨N,hN⟩ := exists_height_bound X φ f
255
+ exact ⟨N,finiteMap X φ N f (fun a => lt_of_le_of_lt (hN a) (by linarith)),
256
+ ⟨finiteHomotopy X φ N f hN⟩⟩
257
+
258
+ @[simp] theorem finiteMap_stage (N m : ℕ) (h : m ≤ N) (f : C(A,X m))
259
+ (hf : ∀ a, height X φ ((stage X φ m).comp f a) < (N:ℝ)+1) :
260
+ finiteMap X φ N ((stage X φ m).comp f) hf = (φ m N h).comp f := by
261
+ ext a
262
+ exact retract_stage X φ N m h (f a) (hf a)
263
+
264
+ theorem stage_stabilize_homotopic (m N : ℕ) (h : m ≤ N) :
265
+ (stage X φ m).Homotopic ((stage X φ N).comp (φ m N h)) := by
266
+ have hh : ∀ x : X m, height X φ (stage X φ m x) ≤ N := by
267
+ intro x
268
+ change (m:ℝ) ≤ N
269
+ exact_mod_cast h
270
+ have H := finiteHomotopy X φ N (stage X φ m) hh
271
+ refine ⟨H.cast rfl ?_⟩
272
+ apply congrArg ((stage X φ N).comp)
273
+ ext x
274
+ exact retract_stage X φ N m h x _
275
+
276
+ def finiteStageHomotopy {m n N : ℕ} (hm : m ≤ N) (hn : n ≤ N)
277
+ (f : C(A,X m)) (g : C(A,X n))
278
+ (H : ((stage X φ m).comp f).Homotopy ((stage X φ n).comp g))
279
+ (hH : ∀ z, height X φ (H z) < (N:ℝ)+1) :
280
+ ((φ m N hm).comp f).Homotopy ((φ n N hn).comp g) where
281
+ toFun z := retract X φ N ⟨H z,hH z⟩
282
+ continuous_toFun := (retract X φ N).continuous.comp (H.continuous.subtype_mk _)
283
+ map_zero_left a := by
284
+ have ha : height X φ (stage X φ m (f a)) < (N:ℝ)+1 := by
285
+ have := hH (0,a)
286
+ simpa only [ContinuousMap.Homotopy.apply_zero,ContinuousMap.comp_apply] using this
287
+ calc
288
+ retract X φ N ⟨H (0,a),hH (0,a)⟩ = retract X φ N ⟨stage X φ m (f a),ha⟩ :=
289
+ congrArg (retract X φ N) (Subtype.ext (H.map_zero_left a))
290
+ _ = _ := retract_stage X φ N m hm (f a) ha
291
+ map_one_left a := by
292
+ have ha : height X φ (stage X φ n (g a)) < (N:ℝ)+1 := by
293
+ have := hH (1,a)
294
+ simpa only [ContinuousMap.Homotopy.apply_one,ContinuousMap.comp_apply] using this
295
+ calc
296
+ retract X φ N ⟨H (1,a),hH (1,a)⟩ = retract X φ N ⟨stage X φ n (g a),ha⟩ :=
297
+ congrArg (retract X φ N) (Subtype.ext (H.map_one_left a))
298
+ _ = _ := retract_stage X φ N n hn (g a) ha
299
+
300
+ theorem stage_homotopic_iff [CompactSpace A] {m n : ℕ} (f : C(A,X m)) (g : C(A,X n)) :
301
+ ((stage X φ m).comp f).Homotopic ((stage X φ n).comp g) ↔
302
+ ∃ (N : ℕ) (hm : m ≤ N) (hn : n ≤ N), ((φ m N hm).comp f).Homotopic ((φ n N hn).comp g) := by
303
+ constructor
304
+ · rintro ⟨H⟩
305
+ obtain ⟨K,hK⟩ := exists_height_bound X φ H.toContinuousMap
306
+ let N := max K (max m n)
307
+ have hm : m ≤ N := (le_max_left m n).trans (le_max_right _ _)
308
+ have hn : n ≤ N := (le_max_right m n).trans (le_max_right _ _)
309
+ have hKN : (K:ℝ) ≤ N := by exact_mod_cast (le_max_left K (max m n))
310
+ refine ⟨N,hm,hn,⟨finiteStageHomotopy X φ hm hn f g H ?_⟩⟩
311
+ intro z
312
+ exact lt_of_le_of_lt ((hK z).trans hKN) (by linarith)
313
+ · rintro ⟨N,hm,hn,h⟩
314
+ exact (((stage_stabilize_homotopic X φ m N hm).comp (ContinuousMap.Homotopic.refl f)).trans
315
+ ((ContinuousMap.Homotopic.refl (stage X φ N)).comp h)).trans
316
+ (((stage_stabilize_homotopic X φ n N hn).comp (ContinuousMap.Homotopic.refl g)).symm)
317
+
318
+ theorem stage_nullhomotopic_iff [CompactSpace A] {m : ℕ} (f : C(A,X m)) :
319
+ ((stage X φ m).comp f).Nullhomotopic ↔
320
+ ∃ (N : ℕ) (hm : m ≤ N), ((φ m N hm).comp f).Nullhomotopic := by
321
+ constructor
322
+ · rintro ⟨c,⟨H⟩⟩
323
+ obtain ⟨K,hK⟩ := exists_height_bound X φ H.toContinuousMap
324
+ obtain ⟨J,hJ⟩ := exists_nat_gt (height X φ c)
325
+ let N := max K (max m J)
326
+ have hm : m ≤ N := (le_max_left m J).trans (le_max_right _ _)
327
+ have hKN : (K:ℝ) ≤ N := by exact_mod_cast (le_max_left K (max m J))
328
+ have hJN : (J:ℝ) ≤ N := by exact_mod_cast ((le_max_right m J).trans (le_max_right K (max m J)))
329
+ have hc : height X φ c < (N:ℝ)+1 := lt_of_lt_of_le hJ (by linarith)
330
+ have hH : ∀ z, height X φ (H z) < (N:ℝ)+1 :=
331
+ fun z => lt_of_le_of_lt ((hK z).trans hKN) (by linarith)
332
+ refine ⟨N,hm,retract X φ N ⟨c,hc⟩,⟨{
333
+ toFun := fun z => retract X φ N ⟨H z,hH z⟩
334
+ continuous_toFun := (retract X φ N).continuous.comp (H.continuous.subtype_mk _)
335
+ map_zero_left := ?_
336
+ map_one_left := ?_ }⟩⟩
337
+ · intro a
338
+ have ha : height X φ (stage X φ m (f a)) < (N:ℝ)+1 := by
339
+ simpa only [ContinuousMap.Homotopy.apply_zero,ContinuousMap.comp_apply] using hH (0,a)
340
+ calc
341
+ retract X φ N ⟨H (0,a),hH (0,a)⟩ = retract X φ N ⟨stage X φ m (f a),ha⟩ :=
342
+ congrArg (retract X φ N) (Subtype.ext (H.map_zero_left a))
343
+ _ = _ := retract_stage X φ N m hm (f a) ha
344
+ · intro a
345
+ exact congrArg (retract X φ N) (Subtype.ext (H.map_one_left a))
346
+ · rintro ⟨N,hm,c,h⟩
347
+ refine ⟨stage X φ N c,?_⟩
348
+ exact ((stage_stabilize_homotopic X φ m N hm).comp (ContinuousMap.Homotopic.refl f)).trans
349
+ ((ContinuousMap.Homotopic.refl (stage X φ N)).comp h)
350
+
351
+ end NearbyLagrangian.RayTelescope
352
+
353
+ end
354
+
355
+ noncomputable section
356
+ universe u v w
357
+
358
+
359
+ namespace NearbyLagrangian.RayTelescope
360
+ open ContinuousMap
361
+ variable (X : ℕ → Type u) [∀ n, TopologicalSpace (X n)]
362
+ variable (φ : ∀ m n, m ≤ n → C(X m,X n))
363
+ variable [DirectedSystem X (fun {m n} h => (φ m n h : _ → _))]
364
+ variable [∀ n, PathConnectedSpace (X n)]
365
+
366
+ theorem joined_base (b : X 0) (z : Space X φ) : Joined z (stage X φ 0 b) := by
367
+ obtain ⟨N,g,⟨H⟩⟩ := exists_finite_representative X φ (ContinuousMap.const Unit z)
368
+ have h₁ : Joined z (stage X φ N (g ())) := ⟨H.evalAt ()⟩
369
+ have h₂ : Joined (stage X φ N (g ())) (stage X φ N (φ 0 N (Nat.zero_le N) b)) :=
370
+ (PathConnectedSpace.joined _ _).map (stage X φ N).continuous
371
+ obtain ⟨K⟩ := stage_stabilize_homotopic X φ 0 N (Nat.zero_le N)
372
+ exact (h₁.trans h₂).trans (Joined.symm ⟨K.evalAt b⟩)
373
+
374
+ instance pathConnected : PathConnectedSpace (Space X φ) where
375
+ nonempty := ⟨stage X φ 0 (Classical.choice inferInstance)⟩
376
+ joined z w := (joined_base X φ (Classical.choice inferInstance) z).trans
377
+ (joined_base X φ (Classical.choice inferInstance) w).symm
378
+
379
+ end NearbyLagrangian.RayTelescope
380
+
381
+ end
382
+
383
+ end OAI
lean/OAI/Topology/TorusCompression/Boundary.lean CHANGED
@@ -1,572 +1,572 @@
1
- import Mathlib
2
-
3
- namespace OAI
4
-
5
- /-! Boundary restoration, bundle rank bounds and elementary torus compression. -/
6
-
7
- noncomputable section
8
-
9
- namespace TorusCompression
10
-
11
- open Set Metric
12
- open scoped Classical
13
-
14
- abbrev Slot (t : ℕ) := Fin t → ℝ
15
- abbrev Slots (t n : ℕ) := Fin n → Slot t
16
-
17
- def cubeSet (t n : ℕ) : Set (Slots t n) := {x | ∀ j, ‖x j‖ ≤ 1}
18
- abbrev Cube (t n : ℕ) := {x : Slots t n // x ∈ cubeSet t n}
19
-
20
- def OnBoundary {t : ℕ} (v : Slot t) : Prop := ‖v‖ = 1
21
-
22
- lemma slot_unit_ball (t : ℕ) :
23
- {v : Slot t | ∀ i, v i ∈ Icc (-1 : ℝ) 1} = closedBall 0 1 := by
24
- ext v
25
- simp only [mem_ofPred_eq, mem_Icc, mem_closedBall, dist_zero_right]
26
- rw [pi_norm_le_iff_of_nonneg (by norm_num : (0 : ℝ) ≤ 1)]
27
- simp only [Real.norm_eq_abs, abs_le]
28
-
29
- lemma onBoundary_iff_frontier {t : ℕ} (v : Slot t) :
30
- OnBoundary v ↔ v ∈ frontier {w : Slot t | ∀ i, w i ∈ Icc (-1 : ℝ) 1} := by
31
- rw [slot_unit_ball, frontier_closedBall _ (by norm_num : (1 : ℝ) ≠ 0)]
32
- simp [OnBoundary]
33
-
34
- def support {t n : ℕ} (x : Slots t n) : Finset (Fin n) :=
35
- Finset.univ.filter (fun j => x j ≠ 0)
36
-
37
- def Sparse {t n : ℕ} (s : ℕ) : Set (Slots t n) := {x | (support x).card ≤ s}
38
-
39
- def sparseParameters (t n : ℕ) (s : ℝ) : Set (Slots t n) :=
40
- {z | (∀ j, ‖z j‖ ≤ 2) ∧ ((support z).card : ℝ) ≤ s}
41
-
42
- def boundarySlots {t n : ℕ} (x : Slots t n) : Finset (Fin n) :=
43
- Finset.univ.filter (fun j => OnBoundary (x j))
44
-
45
- @[simp] lemma mem_support {t n : ℕ} (x : Slots t n) (j : Fin n) :
46
- j ∈ support x ↔ x j ≠ 0 := by simp [support]
47
-
48
- @[simp] lemma mem_boundarySlots {t n : ℕ} (x : Slots t n) (j : Fin n) :
49
- j ∈ boundarySlots x ↔ OnBoundary (x j) := by simp [boundarySlots]
50
-
51
- @[simp] lemma support_zero (t n : ℕ) : support (0 : Slots t n) = ∅ := by
52
- ext j
53
- simp
54
-
55
- lemma sparse_nonempty (t n s : ℕ) : (Sparse (t := t) (n := n) s).Nonempty := by
56
- exact ⟨0, by simp [Sparse]⟩
57
-
58
- lemma sparse_eq_union (t n s : ℕ) :
59
- Sparse (t := t) (n := n) s =
60
- ⋃ A : {A : Finset (Fin n) // A.card ≤ s},
61
- {x : Slots t n | ∀ j, j ∉ A.val → x j = 0} := by
62
- ext x
63
- constructor
64
- · intro hx
65
- refine mem_iUnion.mpr ⟨⟨support x, hx⟩, ?_⟩
66
- intro j hj
67
- simpa using hj
68
- · intro hx
69
- obtain ⟨A, hA⟩ := mem_iUnion.mp hx
70
- exact (Finset.card_le_card (show support x ⊆ A.val from by
71
- intro j hj
72
- by_contra hjA
73
- exact (mem_support x j).mp hj (hA j hjA))).trans A.property
74
-
75
- lemma isClosed_sparse (t n s : ℕ) : IsClosed (Sparse (t := t) (n := n) s) := by
76
- rw [sparse_eq_union]
77
- apply isClosed_iUnion_of_finite
78
- intro A
79
- simp only [ofPred_forall]
80
- exact isClosed_iInter fun j => isClosed_iInter fun _ =>
81
- isClosed_eq (continuous_apply j)
82
- (continuous_const : Continuous (fun _ : Slots t n => (0 : Slot t)))
83
-
84
- lemma sparseParameters_eq_empty {t n : ℕ} {s : ℝ} (hs : s < 0) :
85
- sparseParameters t n s = ∅ := by
86
- apply Set.eq_empty_iff_forall_notMem.mpr
87
- intro x hx
88
- have hcard : (0 : ℝ) ≤ (support x).card := Nat.cast_nonneg _
89
- exact (not_le_of_gt hs) (hcard.trans hx.2)
90
-
91
- lemma sparseParameters_eq_inter {t n : ℕ} {s : ℝ} (hs : 0 ≤ s) :
92
- sparseParameters t n s = closedBall (0 : Slots t n) 2 ∩ Sparse ⌊s⌋₊ := by
93
- ext x
94
- simp only [sparseParameters, Sparse, mem_ofPred_eq, mem_inter_iff,
95
- mem_closedBall, dist_zero_right]
96
- rw [pi_norm_le_iff_of_nonneg (by norm_num : (0 : ℝ) ≤ 2)]
97
- exact and_congr Iff.rfl (Nat.le_floor_iff hs).symm
98
-
99
- lemma isCompact_sparseParameters (t n : ℕ) (s : ℝ) :
100
- IsCompact (sparseParameters t n s) := by
101
- by_cases hs : 0 ≤ s
102
- · rw [sparseParameters_eq_inter hs]
103
- exact (isCompact_closedBall (0 : Slots t n) 2).inter_right (isClosed_sparse t n ⌊s⌋₊)
104
- · rw [sparseParameters_eq_empty (lt_of_not_ge hs)]
105
- exact isCompact_empty
106
-
107
- lemma sparseParameters_eq_parameterCube {t n : ℕ} {s : ℝ} (hs : (n : ℝ) ≤ s) :
108
- sparseParameters t n s = {z : Slots t n | ∀ j, ‖z j‖ ≤ 2} := by
109
- ext z
110
- refine ⟨fun hz => hz.1, fun hz => ⟨hz, ?_⟩⟩
111
- have hcard : (support z).card ≤ n := by
112
- exact (Finset.card_le_card (Finset.filter_subset _ _)).trans_eq (Finset.card_fin n)
113
- exact (Nat.cast_le.mpr hcard).trans hs
114
-
115
- def restorationRadius {t n : ℕ} (s : ℕ) (x : Slots t n) : ℝ :=
116
- min (1 / 2) (infDist x (Sparse s) / 2)
117
-
118
- lemma continuous_restorationRadius (t n s : ℕ) :
119
- Continuous (restorationRadius (t := t) (n := n) s) := by
120
- unfold restorationRadius
121
- exact continuous_const.min ((continuous_infDist_pt (Sparse s)).div_const 2)
122
-
123
- lemma restorationRadius_pos {t n s : ℕ} {x : Slots t n} (hx : x ∉ Sparse s) :
124
- 0 < restorationRadius s x := by
125
- have h := (isClosed_sparse t n s).notMem_iff_infDist_pos (sparse_nonempty t n s) |>.mp hx
126
- exact lt_min (by norm_num) (by positivity)
127
-
128
- lemma restorationRadius_le_half {t n s : ℕ} (x : Slots t n) :
129
- restorationRadius s x ≤ 1 / 2 := min_le_left _ _
130
-
131
- lemma restorationRadius_lt_infDist {t n s : ℕ} {x : Slots t n}
132
- (hx : x ∉ Sparse s) : restorationRadius s x < infDist x (Sparse s) := by
133
- have h := (isClosed_sparse t n s).notMem_iff_infDist_pos (sparse_nonempty t n s) |>.mp hx
134
- exact (min_le_right _ _).trans_lt (by linarith)
135
-
136
- lemma many_large_slots {t n s : ℕ} {x : Slots t n} (hx : x ∉ Sparse s) :
137
- s < (Finset.univ.filter (fun j => restorationRadius s x ≤ ‖x j‖)).card := by
138
- let δ := restorationRadius s x
139
- have hδ : 0 < δ := restorationRadius_pos hx
140
- let A : Finset (Fin n) := Finset.univ.filter (fun j => δ ≤ ‖x j‖)
141
- let y : Slots t n := fun j => if j ∈ A then x j else 0
142
- by_contra h
143
- have hA : A.card ≤ s := Nat.le_of_not_lt h
144
- have hy : y ∈ Sparse s := by
145
- apply le_trans (Finset.card_le_card (show support y ⊆ A from ?_)) hA
146
- intro j hj
147
- by_contra hjA
148
- have hnonzero := (mem_support y j).mp hj
149
- exact hnonzero (by simp [y, hjA])
150
- have hdist : dist x y ≤ δ := by
151
- rw [dist_eq_norm, pi_norm_le_iff_of_nonneg hδ.le]
152
- intro j
153
- by_cases hj : j ∈ A
154
- · simp [y, hj, hδ.le]
155
- · have hj' : ‖x j‖ < δ := by simpa [A] using hj
156
- simpa [y, hj] using hj'.le
157
- have hlt := restorationRadius_lt_infDist hx
158
- exact not_lt_of_ge ((infDist_le_dist_of_mem hy).trans hdist) hlt
159
-
160
- def radial {t : ℕ} (δ : ℝ) (v : Slot t) : Slot t :=
161
- (max δ ‖v‖)⁻¹ • v
162
-
163
- lemma norm_radial_le_one {t : ℕ} {δ : ℝ} (hδ : 0 < δ) (v : Slot t) :
164
- ‖radial δ v‖ ≤ 1 := by
165
- have hden : 0 < max δ ‖v‖ := hδ.trans_le (le_max_left _ _)
166
- rw [radial, norm_smul, Real.norm_eq_abs, abs_inv,
167
- abs_of_pos hden, ← div_eq_inv_mul]
168
- exact (div_le_one hden).mpr (le_max_right _ _)
169
-
170
- lemma radial_boundary {t : ℕ} {δ : ℝ} (hδ : 0 < δ) {v : Slot t}
171
- (hv : δ ≤ ‖v‖) : OnBoundary (radial δ v) := by
172
- have hn : 0 < ‖v‖ := hδ.trans_le hv
173
- simp [OnBoundary, radial, max_eq_right hv, norm_smul, inv_mul_cancel₀ hn.ne']
174
-
175
- lemma radial_fixes_boundary {t : ℕ} {δ : ℝ} (hδ : δ ≤ 1) {v : Slot t}
176
- (hv : OnBoundary v) : radial δ v = v := by
177
- simp [radial, show ‖v‖ = 1 from hv, max_eq_right hδ]
178
-
179
- def cutoff {t : ℕ} (v : Slot t) : ℝ := max 0 (4 * ‖v‖ - 3)
180
-
181
- def blend {t : ℕ} (v w : Slot t) : Slot t :=
182
- (1 - cutoff v) • w + cutoff v • v
183
-
184
- lemma cutoff_range {t : ℕ} {v : Slot t} (hv : ‖v‖ ≤ 1) :
185
- 0 ≤ cutoff v ∧ cutoff v ≤ 1 := by
186
- refine ⟨le_max_left _ _, max_le (by norm_num) ?_⟩
187
- linarith
188
-
189
- lemma blend_sub {t : ℕ} (v w : Slot t) :
190
- blend v w - v = (1 - cutoff v) • (w - v) := by
191
- simp only [blend, smul_sub, sub_smul, one_smul]
192
- abel
193
-
194
- lemma norm_blend_sub_le {t : ℕ} {v w : Slot t} (hv : ‖v‖ ≤ 1) :
195
- ‖blend v w - v‖ ≤ ‖w - v‖ := by
196
- obtain ⟨h0, h1⟩ := cutoff_range hv
197
- rw [blend_sub, norm_smul, Real.norm_eq_abs, abs_of_nonneg (sub_nonneg.mpr h1)]
198
- exact mul_le_of_le_one_left (norm_nonneg _) (by linarith)
199
-
200
- lemma blend_nonzero {t : ℕ} {v w : Slot t} (hv : ‖v‖ ≤ 1)
201
- (hvw : ‖w - v‖ < 1 / 2) (hw : w ≠ 0) : blend v w ≠ 0 := by
202
- by_cases hχ : cutoff v = 0
203
- · simpa [blend, hχ] using hw
204
- · have hχpos : 0 < cutoff v := lt_of_le_of_ne (cutoff_range hv).1 (Ne.symm hχ)
205
- have hnorm : 3 / 4 < ‖v‖ := by
206
- have h := (lt_max_iff.mp hχpos).resolve_left (lt_irrefl 0)
207
- linarith
208
- intro hzero
209
- have h := (norm_blend_sub_le hv).trans_lt hvw
210
- rw [hzero, zero_sub, norm_neg] at h
211
- linarith
212
-
213
- lemma blend_fixes_boundary {t : ℕ} {v w : Slot t} (hv : OnBoundary v) :
214
- blend v w = v := by
215
- have hχ : cutoff v = 1 := by simp [cutoff, show ‖v‖ = 1 from hv]; norm_num
216
- simp [blend, hχ]
217
-
218
- lemma continuous_blend {t : ℕ} : Continuous (fun p : Slot t × Slot t => blend p.1 p.2) := by
219
- unfold blend cutoff
220
- fun_prop
221
-
222
- lemma continuous_blend_of {X : Type*} [TopologicalSpace X] {t : ℕ}
223
- {v w : X → Slot t} (hv : Continuous v) (hw : Continuous w) :
224
- Continuous (fun x => blend (v x) (w x)) := by
225
- have hc : Continuous (fun x => cutoff (v x)) :=
226
- continuous_const.max ((continuous_const.mul hv.norm).sub continuous_const)
227
- exact ((continuous_const.sub hc).smul hw).add (hc.smul hv)
228
-
229
- theorem boundary_restoration {X : Type*} [TopologicalSpace X]
230
- {t n s : ℕ} (f : X → Cube t n) (g : X → Slots t n)
231
- (hf : Continuous f) (hg : Continuous g)
232
- (havoid : ∀ x, g x ∉ Sparse s)
233
- (hclose : ∀ x, ‖g x - (f x).val‖ < 1 / 2) :
234
- ∃ G : X → Cube t n, Continuous G ∧
235
- (∀ x, s + 1 ≤ (boundarySlots (G x).val).card) ∧
236
- (∀ x j, OnBoundary ((f x).val j) → (G x).val j = (f x).val j) := by
237
- let g' : X → Slots t n := fun x j => blend ((f x).val j) (g x j)
238
- have hfj : ∀ j, Continuous (fun x => (f x).val j) := fun j =>
239
- (continuous_apply j).comp hf.subtype_val
240
- have hgj : ∀ j, Continuous (fun x => g x j) := fun j =>
241
- (continuous_apply j).comp hg
242
- have hg' : Continuous g' := by
243
- apply continuous_pi
244
- intro j
245
- exact continuous_blend_of (hfj j) (hgj j)
246
- have havoid' : ∀ x, g' x ∉ Sparse s := by
247
- intro x hx
248
- apply havoid x
249
- apply le_trans (Finset.card_le_card (show support (g x) ⊆ support (g' x) from ?_)) hx
250
- intro j hj
251
- apply (mem_support _ _).mpr
252
- apply blend_nonzero ((f x).property j) _ ((mem_support _ _).mp hj)
253
- exact (norm_le_pi_norm (g x - (f x).val) j).trans_lt (hclose x)
254
- let G : X → Cube t n := fun x =>
255
- ⟨fun j => radial (restorationRadius s (g' x)) (g' x j),
256
- fun j => norm_radial_le_one (restorationRadius_pos (havoid' x)) (g' x j)⟩
257
- refine ⟨G, ?_, ?_, ?_⟩
258
- · apply Continuous.subtype_mk
259
- apply continuous_pi
260
- intro j
261
- have hden : ∀ x, max (restorationRadius s (g' x)) ‖g' x j‖ ≠ 0 := by
262
- intro x
263
- exact ne_of_gt ((restorationRadius_pos (havoid' x)).trans_le (le_max_left _ _))
264
- exact (((continuous_restorationRadius t n s).comp hg').max
265
- (((continuous_apply j).comp hg').norm)).inv₀ hden |>.smul
266
- ((continuous_apply j).comp hg')
267
- · intro x
268
- apply (Nat.succ_le_of_lt (many_large_slots (havoid' x))).trans
269
- apply Finset.card_le_card
270
- intro j hj
271
- exact (mem_boundarySlots _ _).mpr
272
- (radial_boundary (restorationRadius_pos (havoid' x)) ((Finset.mem_filter.mp hj).2))
273
- · intro x j hj
274
- change radial (restorationRadius s (g' x)) (blend ((f x).val j) (g x j)) = _
275
- rw [blend_fixes_boundary hj]
276
- exact radial_fixes_boundary ((restorationRadius_le_half (g' x)).trans (by norm_num)) hj
277
-
278
- theorem boundary_restoration_of_sparseParameters {X : Type*} [TopologicalSpace X]
279
- {t n s : ℕ} (f : X → Cube t n) (g : X → Slots t n)
280
- (hf : Continuous f) (hg : Continuous g)
281
- (havoid : ∀ x, g x ∉ sparseParameters t n (s : ℝ))
282
- (hclose : ∀ x, ‖g x - (f x).val‖ < 1 / 2) :
283
- ∃ G : X → Cube t n, Continuous G ∧
284
- (∀ x, s + 1 ≤ (boundarySlots (G x).val).card) ∧
285
- (∀ x j, OnBoundary ((f x).val j) → (G x).val j = (f x).val j) := by
286
- apply boundary_restoration f g hf hg ?_ hclose
287
- intro x hx
288
- apply havoid x
289
- refine ⟨?_, ?_⟩
290
- · intro j
291
- have hj := (norm_le_pi_norm (g x - (f x).val) j).trans_lt (hclose x)
292
- have hfbound := (f x).property j
293
- have hadd := norm_le_norm_sub_add (g x j) ((f x).val j)
294
- dsimp only [Pi.sub_apply] at hj
295
- linarith
296
- · exact_mod_cast hx
297
-
298
- def torusLocus {Y : Type*} {t n : ℕ} (f : Y → Cube t n)
299
- (L : Set (Slot t)) (Z : Set (Slots t n)) : Set (Y × Z) :=
300
- {q | ∀ j, (f q.1).val j - q.2.val j ∈ L}
301
-
302
- abbrev TorusLocus {Y : Type*} {t n : ℕ} (f : Y → Cube t n)
303
- (L : Set (Slot t)) (Z : Set (Slots t n)) := ↥(torusLocus f L Z)
304
-
305
- def locusDifference {Y : Type*} {t n : ℕ} {f : Y → Cube t n}
306
- {L : Set (Slot t)} {Z : Set (Slots t n)} (q : TorusLocus f L Z) : Fin n → L :=
307
- fun j => ⟨(f q.val.1).val j - q.val.2.val j, q.property j⟩
308
-
309
- lemma isClosed_torusLocus {Y : Type*} [TopologicalSpace Y] {t n : ℕ}
310
- {f : Y → Cube t n} {L : Set (Slot t)} {Z : Set (Slots t n)}
311
- (hf : Continuous f) (hL : IsClosed L) : IsClosed (torusLocus f L Z) := by
312
- unfold torusLocus
313
- simp only [ofPred_forall]
314
- apply isClosed_iInter
315
- intro j
316
- apply hL.preimage
317
- have hc₁ : Continuous (fun q : Y × Z => (f q.1).val j) :=
318
- (continuous_apply j).comp (hf.subtype_val.comp continuous_fst)
319
- have hc₂ : Continuous (fun q : Y × Z => q.2.val j) :=
320
- (continuous_apply j).comp (continuous_subtype_val.comp continuous_snd)
321
- exact hc₁.sub hc₂
322
-
323
- lemma isCompact_sparse_torusLocus {Y : Type*} [TopologicalSpace Y] [CompactSpace Y]
324
- {t n : ℕ} {f : Y → Cube t n} {L : Set (Slot t)}
325
- (hf : Continuous f) (hL : IsClosed L) (s : ℝ) :
326
- IsCompact (torusLocus f L (sparseParameters t n s)) := by
327
- let : CompactSpace (sparseParameters t n s) :=
328
- isCompact_iff_compactSpace.mp (isCompact_sparseParameters t n s)
329
- exact (isClosed_torusLocus hf hL).isCompact
330
-
331
- lemma continuous_locusDifference {Y : Type*} [TopologicalSpace Y] {t n : ℕ}
332
- {f : Y → Cube t n} {L : Set (Slot t)} {Z : Set (Slots t n)}
333
- (hf : Continuous f) : Continuous (locusDifference (f := f) (L := L) (Z := Z)) := by
334
- apply continuous_pi
335
- intro j
336
- apply Continuous.subtype_mk
337
- have hc₁ : Continuous (fun q : TorusLocus f L Z => (f q.val.1).val j) :=
338
- (continuous_apply j).comp
339
- (hf.subtype_val.comp (continuous_fst.comp continuous_subtype_val))
340
- have hc₂ : Continuous (fun q : TorusLocus f L Z => q.val.2.val j) :=
341
- (continuous_apply j).comp (continuous_subtype_val.comp
342
- (continuous_snd.comp continuous_subtype_val))
343
- exact hc₁.sub hc₂
344
-
345
- def slotBundleFiber {Y : Type*} {t n r : ℕ} {f : Y → Cube t n}
346
- {L : Set (Slot t)} {Z : Set (Slots t n)}
347
- (H : L → Submodule ℂ (Fin r → ���)) (q : TorusLocus f L Z) :
348
- Submodule ℂ (Fin n → Fin r → ℂ) :=
349
- Submodule.pi univ (fun j => H (locusDifference q j))
350
-
351
- @[simp] lemma mem_slotBundleFiber {Y : Type*} {t n r : ℕ} {f : Y → Cube t n}
352
- {L : Set (Slot t)} {Z : Set (Slots t n)} (H : L → Submodule ℂ (Fin r → ℂ))
353
- (q : TorusLocus f L Z) (v : Fin n → Fin r → ℂ) :
354
- v ∈ slotBundleFiber H q ↔ ∀ j, v j ∈ H (locusDifference q j) := by
355
- simp [slotBundleFiber, Submodule.mem_pi]
356
-
357
- def EmbeddedTotal {B V : Type*} [AddCommGroup V] [Module ℂ V]
358
- (E : B → Submodule ℂ V) := {q : B × V // q.2 ∈ E q.1}
359
-
360
- instance {B V : Type*} [TopologicalSpace B] [TopologicalSpace V]
361
- [AddCommGroup V] [Module ℂ V] (E : B → Submodule ℂ V) :
362
- TopologicalSpace (EmbeddedTotal E) := inferInstanceAs (TopologicalSpace {q : B × V // q.2 ∈ E q.1})
363
-
364
- structure BundleMono {B V : Type*} [TopologicalSpace B] [TopologicalSpace V]
365
- [AddCommGroup V] [Module ℂ V] (E : B → Submodule ℂ V) (K : ℕ) where
366
- map : ∀ b, E b →ₗ[ℂ] (Fin K → ℂ)
367
- injective : ∀ b, Function.Injective (map b)
368
- continuous_total : Continuous (fun q : EmbeddedTotal E => map q.val.1 ⟨q.val.2, q.property⟩)
369
-
370
- def slotBundleFiberEquiv {Y : Type*} {t n r : ℕ} {f : Y → Cube t n}
371
- {L : Set (Slot t)} {Z : Set (Slots t n)}
372
- (H : L → Submodule ℂ (Fin r → ℂ)) (q : TorusLocus f L Z) :
373
- slotBundleFiber H q ≃ₗ[ℂ] ((j : Fin n) → H (locusDifference q j)) where
374
- toFun v j := ⟨v.val j, (mem_slotBundleFiber H q v.val).mp v.property j⟩
375
- invFun v := ⟨fun j => (v j).val,
376
- (mem_slotBundleFiber H q _).mpr (fun j => (v j).property)⟩
377
- left_inv _ := rfl
378
- right_inv _ := rfl
379
- map_add' _ _ := rfl
380
- map_smul' _ _ := rfl
381
-
382
- lemma finrank_slotBundleFiber {Y : Type*} {t n r p : ℕ} {f : Y → Cube t n}
383
- {L : Set (Slot t)} {Z : Set (Slots t n)}
384
- (H : L → Submodule ℂ (Fin r → ℂ)) (hH : ∀ l, Module.finrank ℂ (H l) = p)
385
- (q : TorusLocus f L Z) : Module.finrank ℂ (slotBundleFiber H q) = p * n := by
386
- rw [(slotBundleFiberEquiv H q).finrank_eq, Module.finrank_pi_fintype]
387
- simp [hH, Nat.mul_comm]
388
-
389
- lemma BundleMono.finrank_le {B V : Type*} [TopologicalSpace B] [TopologicalSpace V]
390
- [AddCommGroup V] [Module ℂ V] {E : B → Submodule ℂ V} {K : ℕ}
391
- (M : BundleMono E K) (b : B) : Module.finrank ℂ (E b) ≤ K := by
392
- have h := LinearMap.finrank_le_finrank_of_injective (M.injective b)
393
- simpa using h
394
-
395
- theorem rank_le_target_of_nonempty_locus {Y : Type*} [TopologicalSpace Y]
396
- {t n r p K : ℕ} {f : Y → Cube t n}
397
- {L : Set (Slot t)} {Z : Set (Slots t n)}
398
- (H : L → Submodule ℂ (Fin r → ℂ)) (hH : ∀ l, Module.finrank ℂ (H l) = p)
399
- (M : BundleMono (slotBundleFiber H (f := f) (Z := Z)) K)
400
- (hq : (torusLocus f L Z).Nonempty) : p * n ≤ K := by
401
- obtain ⟨q, hq⟩ := hq
402
- simpa [finrank_slotBundleFiber H hH] using M.finrank_le (⟨q, hq⟩ : TorusLocus f L Z)
403
-
404
- def slotIndex {u n : ℕ} (b : Fin u) (j : Fin n) : Fin (u * n) :=
405
- finProdFinEquiv (b, j)
406
-
407
- @[simp] lemma slotIndex_val {u n : ℕ} (b : Fin u) (j : Fin n) :
408
- (slotIndex b j).val = b.val * n + j.val := by
409
- simp [slotIndex, finProdFinEquiv, Nat.mul_comm, Nat.add_comm]
410
-
411
- def powerMap {X Y : Type*} (q : X → Y) (u : ℕ) (x : Fin u → X) : Fin u → Y :=
412
- fun b => q (x b)
413
-
414
- lemma continuous_powerMap {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
415
- {q : X → Y} (hq : Continuous q) (u : ℕ) : Continuous (powerMap q u) := by
416
- exact continuous_pi fun b => hq.comp (continuous_apply b)
417
-
418
- def concatenate {X : Type*} {t n : ℕ} (f : X → Cube t n) (u : ℕ)
419
- (x : Fin u → X) : Cube t (u * n) :=
420
- ⟨fun k => (f (x (finProdFinEquiv.symm k).1)).val (finProdFinEquiv.symm k).2,
421
- fun k => (f (x (finProdFinEquiv.symm k).1)).property (finProdFinEquiv.symm k).2⟩
422
-
423
- @[simp] lemma concatenate_slot {X : Type*} {t n : ℕ} (f : X → Cube t n)
424
- (u : ℕ) (x : Fin u → X) (b : Fin u) (j : Fin n) :
425
- (concatenate f u x).val (slotIndex b j) = (f (x b)).val j := by
426
- simp only [concatenate, slotIndex, Equiv.symm_apply_apply]
427
-
428
- lemma boundarySlots_concatenate_sum {X : Type*} {t n : ℕ}
429
- (f : X → Cube t n) (u : ℕ) (x : Fin u → X) :
430
- (boundarySlots (concatenate f u x).val).card =
431
- ∑ b : Fin u, (boundarySlots (f (x b)).val).card := by
432
- simp only [boundarySlots, Finset.card_filter]
433
- rw [← Equiv.sum_comp finProdFinEquiv, Fintype.sum_prod_type]
434
- apply Finset.sum_congr rfl
435
- intro b _
436
- apply Finset.sum_congr rfl
437
- intro j _
438
- rw [show finProdFinEquiv (b, j) = slotIndex b j from rfl, concatenate_slot]
439
-
440
- lemma continuous_concatenate {X : Type*} [TopologicalSpace X] {t n : ℕ}
441
- {f : X → Cube t n} (hf : Continuous f) (u : ℕ) : Continuous (concatenate f u) := by
442
- apply Continuous.subtype_mk
443
- apply continuous_pi
444
- intro k
445
- exact (continuous_apply (finProdFinEquiv.symm k).2).comp
446
- (hf.subtype_val.comp (continuous_apply (finProdFinEquiv.symm k).1))
447
-
448
- def IsCompression {X : Type*} [TopologicalSpace X] {t n : ℕ}
449
- (f : X → Cube t n) (a : ℝ) (u : ℕ) (G : (Fin u → X) → Cube t (u * n)) : Prop :=
450
- Continuous G ∧
451
- (∀ x, (a / 8) * (u : ℝ) * (n : ℝ) ≤ ((boundarySlots (G x).val).card : ℝ)) ∧
452
- (∀ x b j, OnBoundary ((f (x b)).val j) →
453
- (G x).val (slotIndex b j) = (f (x b)).val j)
454
-
455
- def ArbitrarilyCompresses {X : Type*} [TopologicalSpace X] {t n : ℕ}
456
- (f : X → Cube t n) (a : ℝ) : Prop :=
457
- ∀ U : ℕ, 1 ≤ U → ∃ u : ℕ, U ≤ u ∧
458
- ∃ G : (Fin u → X) → Cube t (u * n), IsCompression f a u G
459
-
460
- theorem compression_pullback {X P : Type*} [TopologicalSpace X] [TopologicalSpace P]
461
- {t n u : ℕ} {a : ℝ} {f : X → Cube t n} {fP : P → Cube t n}
462
- (q : X → P) (hq : Continuous q) (hfactor : f = fP ∘ q)
463
- {G : (Fin u → P) → Cube t (u * n)} (hG : IsCompression fP a u G) :
464
- IsCompression f a u (G ∘ powerMap q u) := by
465
- refine ⟨hG.1.comp (continuous_powerMap hq u), ?_, ?_⟩
466
- · intro x
467
- exact hG.2.1 (powerMap q u x)
468
- · intro x b j hx
469
- rw [hfactor] at hx ⊢
470
- exact hG.2.2 (powerMap q u x) b j hx
471
-
472
- theorem arbitrarily_compresses_pullback {X P : Type*}
473
- [TopologicalSpace X] [TopologicalSpace P]
474
- {t n : ℕ} {a : ℝ} {f : X → Cube t n} {fP : P → Cube t n}
475
- (q : X → P) (hq : Continuous q) (hfactor : f = fP ∘ q)
476
- (hP : ArbitrarilyCompresses fP a) : ArbitrarilyCompresses f a := by
477
- intro U hU
478
- obtain ⟨u, hUu, G, hG⟩ := hP U hU
479
- exact ⟨u, hUu, G ∘ powerMap q u, compression_pullback q hq hfactor hG⟩
480
-
481
- theorem arbitrarily_compresses_of_isEmpty {X : Type*} [TopologicalSpace X] [IsEmpty X]
482
- {t n : ℕ} (f : X → Cube t n) (a : ℝ) : ArbitrarilyCompresses f a := by
483
- intro U hU
484
- let G : (Fin U → X) → Cube t (U * n) := fun _ => ⟨0, by simp [cubeSet]⟩
485
- refine ⟨U, le_rfl, G, continuous_const, ?_, ?_⟩
486
- · intro x
487
- exact isEmptyElim (x ⟨0, by omega⟩)
488
- · intro x
489
- exact isEmptyElim (x ⟨0, by omega⟩)
490
-
491
- lemma repeated_compression {X : Type*} [TopologicalSpace X] {t n : ℕ}
492
- {f F : X → Cube t n} {a : ℝ} (hF : Continuous F)
493
- (hcount : ∀ x, (a / 8) * (n : ℝ) ≤ ((boundarySlots (F x).val).card : ℝ))
494
- (hfix : ∀ x j, OnBoundary ((f x).val j) → (F x).val j = (f x).val j)
495
- (u : ℕ) : IsCompression f a u (concatenate F u) := by
496
- refine ⟨continuous_concatenate hF u, ?_, ?_⟩
497
- · intro x
498
- rw [boundarySlots_concatenate_sum, Nat.cast_sum]
499
- calc
500
- a / 8 * (u : ℝ) * (n : ℝ) = ∑ _b : Fin u, (a / 8) * (n : ℝ) := by
501
- simp [Finset.sum_const, mul_comm, mul_left_comm]
502
- _ ≤ ∑ b : Fin u, ((boundarySlots (F (x b)).val).card : ℝ) :=
503
- Finset.sum_le_sum (fun b _ => hcount (x b))
504
- · intro x b j hj
505
- rw [concatenate_slot]
506
- exact hfix (x b) j hj
507
-
508
- theorem arbitrarily_compresses_of_empty_locus {X : Type*} [TopologicalSpace X]
509
- {t n : ℕ} {f : X → Cube t n} {L : Set (Slot t)} {a : ℝ}
510
- (hf : Continuous f) (ha : 0 ≤ a) (l : Slot t) (hlL : l ∈ L) (hl : ‖l‖ < 1 / 2)
511
- (hempty : torusLocus f L (sparseParameters t n (a * (n : ℝ))) = ∅) :
512
- ArbitrarilyCompresses f a := by
513
- let s := ⌊a * (n : ℝ)⌋₊
514
- let g : X → Slots t n := fun x j => (f x).val j - l
515
- have hg : Continuous g := hf.subtype_val.sub continuous_const
516
- have hclose : ∀ x, ‖g x - (f x).val‖ < 1 / 2 := by
517
- intro x
518
- have heq : g x - (f x).val = fun _ : Fin n => -l := by
519
- funext j
520
- dsimp [g]
521
- abel
522
- rw [heq]
523
- have hbound : ‖(fun _ : Fin n => -l)‖ ≤ ‖l‖ := by
524
- rw [pi_norm_le_iff_of_nonneg (norm_nonneg l)]
525
- intro j
526
- simp
527
- exact hbound.trans_lt hl
528
- have havoid : ∀ x, g x ∉ sparseParameters t n (s : ℝ) := by
529
- intro x hx
530
- have hz : g x ∈ sparseParameters t n (a * (n : ℝ)) :=
531
- ⟨hx.1, hx.2.trans (Nat.floor_le (mul_nonneg ha (Nat.cast_nonneg n)))⟩
532
- have hq : (x, ⟨g x, hz⟩) ∈ torusLocus f L (sparseParameters t n (a * (n : ℝ))) := by
533
- intro j
534
- change (f x).val j - ((f x).val j - l) ∈ L
535
- simpa only [sub_sub_cancel] using hlL
536
- rw [hempty] at hq
537
- exact hq
538
- obtain ⟨F, hF, hcount, hfix⟩ :=
539
- boundary_restoration_of_sparseParameters f g hf hg havoid hclose
540
- have hreal : (a / 8) * (n : ℝ) ≤ ((s + 1 : ℕ) : ℝ) := by
541
- have h0 : 0 ≤ a * (n : ℝ) := mul_nonneg ha (Nat.cast_nonneg n)
542
- have hfloor := Nat.lt_floor_add_one (a * (n : ℝ))
543
- dsimp [s]
544
- push_cast
545
- linarith
546
- intro U _hU
547
- refine ⟨U, le_rfl, concatenate F U, repeated_compression hF ?_ hfix U⟩
548
- intro x
549
- exact hreal.trans (Nat.cast_le.mpr (hcount x))
550
-
551
- lemma floor_batch_lower_bound {a : ℝ} {b : ℕ} (hab : 16 ≤ a * (b : ℝ)) :
552
- 3 * a * (b : ℝ) / 16 ≤ (⌊a * (b : ℝ) / 4⌋₊ : ℝ) := by
553
- have hfloor := Nat.lt_floor_add_one (a * (b : ℝ) / 4)
554
- linarith
555
-
556
- theorem padding_boundary_fraction {a : ℝ} {b B j : ℕ}
557
- (ha : 0 ≤ a) (hab : 16 ≤ a * (b : ℝ)) (hj : 2 * B ≤ j) :
558
- (a / 8) * ((b * (B + j) : ℕ) : ℝ) ≤
559
- ((j * ⌊a * (b : ℝ) / 4⌋₊ : ℕ) : ℝ) := by
560
- have hfloor := floor_batch_lower_bound hab
561
- have hBj : 2 * (B : ℝ) ≤ (j : ℝ) := by exact_mod_cast hj
562
- have hcount := mul_le_mul_of_nonneg_left hfloor (Nat.cast_nonneg j : 0 ≤ (j : ℝ))
563
- have hscale := mul_le_mul_of_nonneg_left hBj
564
- (mul_nonneg ha (Nat.cast_nonneg b : 0 ≤ (b : ℝ)))
565
- push_cast
566
- nlinarith
567
-
568
- end TorusCompression
569
-
570
- end
571
-
572
- end OAI
 
1
+ import Mathlib
2
+
3
+ namespace OAI
4
+
5
+ /-! Boundary restoration, bundle rank bounds and elementary torus compression. -/
6
+
7
+ noncomputable section
8
+
9
+ namespace TorusCompression
10
+
11
+ open Set Metric
12
+ open scoped Classical
13
+
14
+ abbrev Slot (t : ℕ) := Fin t → ℝ
15
+ abbrev Slots (t n : ℕ) := Fin n → Slot t
16
+
17
+ def cubeSet (t n : ℕ) : Set (Slots t n) := {x | ∀ j, ‖x j‖ ≤ 1}
18
+ abbrev Cube (t n : ℕ) := {x : Slots t n // x ∈ cubeSet t n}
19
+
20
+ def OnBoundary {t : ℕ} (v : Slot t) : Prop := ‖v‖ = 1
21
+
22
+ lemma slot_unit_ball (t : ℕ) :
23
+ {v : Slot t | ∀ i, v i ∈ Icc (-1 : ℝ) 1} = closedBall 0 1 := by
24
+ ext v
25
+ simp only [mem_ofPred_eq, mem_Icc, mem_closedBall, dist_zero_right]
26
+ rw [pi_norm_le_iff_of_nonneg (by norm_num : (0 : ℝ) ≤ 1)]
27
+ simp only [Real.norm_eq_abs, abs_le]
28
+
29
+ lemma onBoundary_iff_frontier {t : ℕ} (v : Slot t) :
30
+ OnBoundary v ↔ v ∈ frontier {w : Slot t | ∀ i, w i ∈ Icc (-1 : ℝ) 1} := by
31
+ rw [slot_unit_ball, frontier_closedBall _ (by norm_num : (1 : ℝ) ≠ 0)]
32
+ simp [OnBoundary]
33
+
34
+ def support {t n : ℕ} (x : Slots t n) : Finset (Fin n) :=
35
+ Finset.univ.filter (fun j => x j ≠ 0)
36
+
37
+ def Sparse {t n : ℕ} (s : ℕ) : Set (Slots t n) := {x | (support x).card ≤ s}
38
+
39
+ def sparseParameters (t n : ℕ) (s : ℝ) : Set (Slots t n) :=
40
+ {z | (∀ j, ‖z j‖ ≤ 2) ∧ ((support z).card : ℝ) ≤ s}
41
+
42
+ def boundarySlots {t n : ℕ} (x : Slots t n) : Finset (Fin n) :=
43
+ Finset.univ.filter (fun j => OnBoundary (x j))
44
+
45
+ @[simp] lemma mem_support {t n : ℕ} (x : Slots t n) (j : Fin n) :
46
+ j ∈ support x ↔ x j ≠ 0 := by simp [support]
47
+
48
+ @[simp] lemma mem_boundarySlots {t n : ℕ} (x : Slots t n) (j : Fin n) :
49
+ j ∈ boundarySlots x ↔ OnBoundary (x j) := by simp [boundarySlots]
50
+
51
+ @[simp] lemma support_zero (t n : ℕ) : support (0 : Slots t n) = ∅ := by
52
+ ext j
53
+ simp
54
+
55
+ lemma sparse_nonempty (t n s : ℕ) : (Sparse (t := t) (n := n) s).Nonempty := by
56
+ exact ⟨0, by simp [Sparse]⟩
57
+
58
+ lemma sparse_eq_union (t n s : ℕ) :
59
+ Sparse (t := t) (n := n) s =
60
+ ⋃ A : {A : Finset (Fin n) // A.card ≤ s},
61
+ {x : Slots t n | ∀ j, j ∉ A.val → x j = 0} := by
62
+ ext x
63
+ constructor
64
+ · intro hx
65
+ refine mem_iUnion.mpr ⟨⟨support x, hx⟩, ?_⟩
66
+ intro j hj
67
+ simpa using hj
68
+ · intro hx
69
+ obtain ⟨A, hA⟩ := mem_iUnion.mp hx
70
+ exact (Finset.card_le_card (show support x ⊆ A.val from by
71
+ intro j hj
72
+ by_contra hjA
73
+ exact (mem_support x j).mp hj (hA j hjA))).trans A.property
74
+
75
+ lemma isClosed_sparse (t n s : ℕ) : IsClosed (Sparse (t := t) (n := n) s) := by
76
+ rw [sparse_eq_union]
77
+ apply isClosed_iUnion_of_finite
78
+ intro A
79
+ simp only [ofPred_forall]
80
+ exact isClosed_iInter fun j => isClosed_iInter fun _ =>
81
+ isClosed_eq (continuous_apply j)
82
+ (continuous_const : Continuous (fun _ : Slots t n => (0 : Slot t)))
83
+
84
+ lemma sparseParameters_eq_empty {t n : ℕ} {s : ℝ} (hs : s < 0) :
85
+ sparseParameters t n s = ∅ := by
86
+ apply Set.eq_empty_iff_forall_notMem.mpr
87
+ intro x hx
88
+ have hcard : (0 : ℝ) ≤ (support x).card := Nat.cast_nonneg _
89
+ exact (not_le_of_gt hs) (hcard.trans hx.2)
90
+
91
+ lemma sparseParameters_eq_inter {t n : ℕ} {s : ℝ} (hs : 0 ≤ s) :
92
+ sparseParameters t n s = closedBall (0 : Slots t n) 2 ∩ Sparse ⌊s⌋₊ := by
93
+ ext x
94
+ simp only [sparseParameters, Sparse, mem_ofPred_eq, mem_inter_iff,
95
+ mem_closedBall, dist_zero_right]
96
+ rw [pi_norm_le_iff_of_nonneg (by norm_num : (0 : ℝ) ≤ 2)]
97
+ exact and_congr Iff.rfl (Nat.le_floor_iff hs).symm
98
+
99
+ lemma isCompact_sparseParameters (t n : ℕ) (s : ℝ) :
100
+ IsCompact (sparseParameters t n s) := by
101
+ by_cases hs : 0 ≤ s
102
+ · rw [sparseParameters_eq_inter hs]
103
+ exact (isCompact_closedBall (0 : Slots t n) 2).inter_right (isClosed_sparse t n ⌊s⌋₊)
104
+ · rw [sparseParameters_eq_empty (lt_of_not_ge hs)]
105
+ exact isCompact_empty
106
+
107
+ lemma sparseParameters_eq_parameterCube {t n : ℕ} {s : ℝ} (hs : (n : ℝ) ≤ s) :
108
+ sparseParameters t n s = {z : Slots t n | ∀ j, ‖z j‖ ≤ 2} := by
109
+ ext z
110
+ refine ⟨fun hz => hz.1, fun hz => ⟨hz, ?_⟩⟩
111
+ have hcard : (support z).card ≤ n := by
112
+ exact (Finset.card_le_card (Finset.filter_subset _ _)).trans_eq (Finset.card_fin n)
113
+ exact (Nat.cast_le.mpr hcard).trans hs
114
+
115
+ def restorationRadius {t n : ℕ} (s : ℕ) (x : Slots t n) : ℝ :=
116
+ min (1 / 2) (infDist x (Sparse s) / 2)
117
+
118
+ lemma continuous_restorationRadius (t n s : ℕ) :
119
+ Continuous (restorationRadius (t := t) (n := n) s) := by
120
+ unfold restorationRadius
121
+ exact continuous_const.min ((continuous_infDist_pt (Sparse s)).div_const 2)
122
+
123
+ lemma restorationRadius_pos {t n s : ℕ} {x : Slots t n} (hx : x ∉ Sparse s) :
124
+ 0 < restorationRadius s x := by
125
+ have h := (isClosed_sparse t n s).notMem_iff_infDist_pos (sparse_nonempty t n s) |>.mp hx
126
+ exact lt_min (by norm_num) (by positivity)
127
+
128
+ lemma restorationRadius_le_half {t n s : ℕ} (x : Slots t n) :
129
+ restorationRadius s x ≤ 1 / 2 := min_le_left _ _
130
+
131
+ lemma restorationRadius_lt_infDist {t n s : ℕ} {x : Slots t n}
132
+ (hx : x ∉ Sparse s) : restorationRadius s x < infDist x (Sparse s) := by
133
+ have h := (isClosed_sparse t n s).notMem_iff_infDist_pos (sparse_nonempty t n s) |>.mp hx
134
+ exact (min_le_right _ _).trans_lt (by linarith)
135
+
136
+ lemma many_large_slots {t n s : ℕ} {x : Slots t n} (hx : x ∉ Sparse s) :
137
+ s < (Finset.univ.filter (fun j => restorationRadius s x ≤ ‖x j‖)).card := by
138
+ let δ := restorationRadius s x
139
+ have hδ : 0 < δ := restorationRadius_pos hx
140
+ let A : Finset (Fin n) := Finset.univ.filter (fun j => δ ≤ ‖x j‖)
141
+ let y : Slots t n := fun j => if j ∈ A then x j else 0
142
+ by_contra h
143
+ have hA : A.card ≤ s := Nat.le_of_not_lt h
144
+ have hy : y ∈ Sparse s := by
145
+ apply le_trans (Finset.card_le_card (show support y ⊆ A from ?_)) hA
146
+ intro j hj
147
+ by_contra hjA
148
+ have hnonzero := (mem_support y j).mp hj
149
+ exact hnonzero (by simp [y, hjA])
150
+ have hdist : dist x y ≤ δ := by
151
+ rw [dist_eq_norm, pi_norm_le_iff_of_nonneg hδ.le]
152
+ intro j
153
+ by_cases hj : j ∈ A
154
+ · simp [y, hj, hδ.le]
155
+ · have hj' : ‖x j‖ < δ := by simpa [A] using hj
156
+ simpa [y, hj] using hj'.le
157
+ have hlt := restorationRadius_lt_infDist hx
158
+ exact not_lt_of_ge ((infDist_le_dist_of_mem hy).trans hdist) hlt
159
+
160
+ def radial {t : ℕ} (δ : ℝ) (v : Slot t) : Slot t :=
161
+ (max δ ‖v‖)⁻¹ • v
162
+
163
+ lemma norm_radial_le_one {t : ℕ} {δ : ℝ} (hδ : 0 < δ) (v : Slot t) :
164
+ ‖radial δ v‖ ≤ 1 := by
165
+ have hden : 0 < max δ ‖v‖ := hδ.trans_le (le_max_left _ _)
166
+ rw [radial, norm_smul, Real.norm_eq_abs, abs_inv,
167
+ abs_of_pos hden, ← div_eq_inv_mul]
168
+ exact (div_le_one hden).mpr (le_max_right _ _)
169
+
170
+ lemma radial_boundary {t : ℕ} {δ : ℝ} (hδ : 0 < δ) {v : Slot t}
171
+ (hv : δ ≤ ‖v‖) : OnBoundary (radial δ v) := by
172
+ have hn : 0 < ‖v‖ := hδ.trans_le hv
173
+ simp [OnBoundary, radial, max_eq_right hv, norm_smul, inv_mul_cancel₀ hn.ne']
174
+
175
+ lemma radial_fixes_boundary {t : ℕ} {δ : ℝ} (hδ : δ ≤ 1) {v : Slot t}
176
+ (hv : OnBoundary v) : radial δ v = v := by
177
+ simp [radial, show ‖v‖ = 1 from hv, max_eq_right hδ]
178
+
179
+ def cutoff {t : ℕ} (v : Slot t) : ℝ := max 0 (4 * ‖v‖ - 3)
180
+
181
+ def blend {t : ℕ} (v w : Slot t) : Slot t :=
182
+ (1 - cutoff v) • w + cutoff v • v
183
+
184
+ lemma cutoff_range {t : ℕ} {v : Slot t} (hv : ‖v‖ ≤ 1) :
185
+ 0 ≤ cutoff v ∧ cutoff v ≤ 1 := by
186
+ refine ⟨le_max_left _ _, max_le (by norm_num) ?_⟩
187
+ linarith
188
+
189
+ lemma blend_sub {t : ℕ} (v w : Slot t) :
190
+ blend v w - v = (1 - cutoff v) • (w - v) := by
191
+ simp only [blend, smul_sub, sub_smul, one_smul]
192
+ abel
193
+
194
+ lemma norm_blend_sub_le {t : ℕ} {v w : Slot t} (hv : ‖v‖ ≤ 1) :
195
+ ‖blend v w - v‖ ≤ ‖w - v‖ := by
196
+ obtain ⟨h0, h1⟩ := cutoff_range hv
197
+ rw [blend_sub, norm_smul, Real.norm_eq_abs, abs_of_nonneg (sub_nonneg.mpr h1)]
198
+ exact mul_le_of_le_one_left (norm_nonneg _) (by linarith)
199
+
200
+ lemma blend_nonzero {t : ℕ} {v w : Slot t} (hv : ‖v‖ ≤ 1)
201
+ (hvw : ‖w - v‖ < 1 / 2) (hw : w ≠ 0) : blend v w ≠ 0 := by
202
+ by_cases hχ : cutoff v = 0
203
+ · simpa [blend, hχ] using hw
204
+ · have hχpos : 0 < cutoff v := lt_of_le_of_ne (cutoff_range hv).1 (Ne.symm hχ)
205
+ have hnorm : 3 / 4 < ‖v‖ := by
206
+ have h := (lt_max_iff.mp hχpos).resolve_left (lt_irrefl 0)
207
+ linarith
208
+ intro hzero
209
+ have h := (norm_blend_sub_le hv).trans_lt hvw
210
+ rw [hzero, zero_sub, norm_neg] at h
211
+ linarith
212
+
213
+ lemma blend_fixes_boundary {t : ℕ} {v w : Slot t} (hv : OnBoundary v) :
214
+ blend v w = v := by
215
+ have hχ : cutoff v = 1 := by simp [cutoff, show ‖v‖ = 1 from hv]; norm_num
216
+ simp [blend, hχ]
217
+
218
+ lemma continuous_blend {t : ℕ} : Continuous (fun p : Slot t × Slot t => blend p.1 p.2) := by
219
+ unfold blend cutoff
220
+ fun_prop
221
+
222
+ lemma continuous_blend_of {X : Type*} [TopologicalSpace X] {t : ℕ}
223
+ {v w : X → Slot t} (hv : Continuous v) (hw : Continuous w) :
224
+ Continuous (fun x => blend (v x) (w x)) := by
225
+ have hc : Continuous (fun x => cutoff (v x)) :=
226
+ continuous_const.max ((continuous_const.mul hv.norm).sub continuous_const)
227
+ exact ((continuous_const.sub hc).smul hw).add (hc.smul hv)
228
+
229
+ theorem boundary_restoration {X : Type*} [TopologicalSpace X]
230
+ {t n s : ℕ} (f : X → Cube t n) (g : X → Slots t n)
231
+ (hf : Continuous f) (hg : Continuous g)
232
+ (havoid : ∀ x, g x ∉ Sparse s)
233
+ (hclose : ∀ x, ‖g x - (f x).val‖ < 1 / 2) :
234
+ ∃ G : X → Cube t n, Continuous G ∧
235
+ (∀ x, s + 1 ≤ (boundarySlots (G x).val).card) ∧
236
+ (∀ x j, OnBoundary ((f x).val j) → (G x).val j = (f x).val j) := by
237
+ let g' : X → Slots t n := fun x j => blend ((f x).val j) (g x j)
238
+ have hfj : ∀ j, Continuous (fun x => (f x).val j) := fun j =>
239
+ (continuous_apply j).comp hf.subtype_val
240
+ have hgj : ∀ j, Continuous (fun x => g x j) := fun j =>
241
+ (continuous_apply j).comp hg
242
+ have hg' : Continuous g' := by
243
+ apply continuous_pi
244
+ intro j
245
+ exact continuous_blend_of (hfj j) (hgj j)
246
+ have havoid' : ∀ x, g' x ∉ Sparse s := by
247
+ intro x hx
248
+ apply havoid x
249
+ apply le_trans (Finset.card_le_card (show support (g x) ⊆ support (g' x) from ?_)) hx
250
+ intro j hj
251
+ apply (mem_support _ _).mpr
252
+ apply blend_nonzero ((f x).property j) _ ((mem_support _ _).mp hj)
253
+ exact (norm_le_pi_norm (g x - (f x).val) j).trans_lt (hclose x)
254
+ let G : X → Cube t n := fun x =>
255
+ ⟨fun j => radial (restorationRadius s (g' x)) (g' x j),
256
+ fun j => norm_radial_le_one (restorationRadius_pos (havoid' x)) (g' x j)⟩
257
+ refine ⟨G, ?_, ?_, ?_⟩
258
+ · apply Continuous.subtype_mk
259
+ apply continuous_pi
260
+ intro j
261
+ have hden : ∀ x, max (restorationRadius s (g' x)) ‖g' x j‖ ≠ 0 := by
262
+ intro x
263
+ exact ne_of_gt ((restorationRadius_pos (havoid' x)).trans_le (le_max_left _ _))
264
+ exact (((continuous_restorationRadius t n s).comp hg').max
265
+ (((continuous_apply j).comp hg').norm)).inv₀ hden |>.smul
266
+ ((continuous_apply j).comp hg')
267
+ · intro x
268
+ apply (Nat.succ_le_of_lt (many_large_slots (havoid' x))).trans
269
+ apply Finset.card_le_card
270
+ intro j hj
271
+ exact (mem_boundarySlots _ _).mpr
272
+ (radial_boundary (restorationRadius_pos (havoid' x)) ((Finset.mem_filter.mp hj).2))
273
+ · intro x j hj
274
+ change radial (restorationRadius s (g' x)) (blend ((f x).val j) (g x j)) = _
275
+ rw [blend_fixes_boundary hj]
276
+ exact radial_fixes_boundary ((restorationRadius_le_half (g' x)).trans (by norm_num)) hj
277
+
278
+ theorem boundary_restoration_of_sparseParameters {X : Type*} [TopologicalSpace X]
279
+ {t n s : ℕ} (f : X → Cube t n) (g : X → Slots t n)
280
+ (hf : Continuous f) (hg : Continuous g)
281
+ (havoid : ∀ x, g x ∉ sparseParameters t n (s : ℝ))
282
+ (hclose : ∀ x, ‖g x - (f x).val‖ < 1 / 2) :
283
+ ∃ G : X → Cube t n, Continuous G ∧
284
+ (∀ x, s + 1 ≤ (boundarySlots (G x).val).card) ∧
285
+ (∀ x j, OnBoundary ((f x).val j) → (G x).val j = (f x).val j) := by
286
+ apply boundary_restoration f g hf hg ?_ hclose
287
+ intro x hx
288
+ apply havoid x
289
+ refine ⟨?_, ?_⟩
290
+ · intro j
291
+ have hj := (norm_le_pi_norm (g x - (f x).val) j).trans_lt (hclose x)
292
+ have hfbound := (f x).property j
293
+ have hadd := norm_le_norm_sub_add (g x j) ((f x).val j)
294
+ dsimp only [Pi.sub_apply] at hj
295
+ linarith
296
+ · exact_mod_cast hx
297
+
298
+ def torusLocus {Y : Type*} {t n : ℕ} (f : Y → Cube t n)
299
+ (L : Set (Slot t)) (Z : Set (Slots t n)) : Set (Y × Z) :=
300
+ {q | ∀ j, (f q.1).val j - q.2.val j ∈ L}
301
+
302
+ abbrev TorusLocus {Y : Type*} {t n : ℕ} (f : Y → Cube t n)
303
+ (L : Set (Slot t)) (Z : Set (Slots t n)) := ↥(torusLocus f L Z)
304
+
305
+ def locusDifference {Y : Type*} {t n : ℕ} {f : Y → Cube t n}
306
+ {L : Set (Slot t)} {Z : Set (Slots t n)} (q : TorusLocus f L Z) : Fin n → L :=
307
+ fun j => ⟨(f q.val.1).val j - q.val.2.val j, q.property j⟩
308
+
309
+ lemma isClosed_torusLocus {Y : Type*} [TopologicalSpace Y] {t n : ℕ}
310
+ {f : Y → Cube t n} {L : Set (Slot t)} {Z : Set (Slots t n)}
311
+ (hf : Continuous f) (hL : IsClosed L) : IsClosed (torusLocus f L Z) := by
312
+ unfold torusLocus
313
+ simp only [ofPred_forall]
314
+ apply isClosed_iInter
315
+ intro j
316
+ apply hL.preimage
317
+ have hc₁ : Continuous (fun q : Y × Z => (f q.1).val j) :=
318
+ (continuous_apply j).comp (hf.subtype_val.comp continuous_fst)
319
+ have hc₂ : Continuous (fun q : Y × Z => q.2.val j) :=
320
+ (continuous_apply j).comp (continuous_subtype_val.comp continuous_snd)
321
+ exact hc₁.sub hc₂
322
+
323
+ lemma isCompact_sparse_torusLocus {Y : Type*} [TopologicalSpace Y] [CompactSpace Y]
324
+ {t n : ℕ} {f : Y → Cube t n} {L : Set (Slot t)}
325
+ (hf : Continuous f) (hL : IsClosed L) (s : ℝ) :
326
+ IsCompact (torusLocus f L (sparseParameters t n s)) := by
327
+ let : CompactSpace (sparseParameters t n s) :=
328
+ isCompact_iff_compactSpace.mp (isCompact_sparseParameters t n s)
329
+ exact (isClosed_torusLocus hf hL).isCompact
330
+
331
+ lemma continuous_locusDifference {Y : Type*} [TopologicalSpace Y] {t n : ℕ}
332
+ {f : Y → Cube t n} {L : Set (Slot t)} {Z : Set (Slots t n)}
333
+ (hf : Continuous f) : Continuous (locusDifference (f := f) (L := L) (Z := Z)) := by
334
+ apply continuous_pi
335
+ intro j
336
+ apply Continuous.subtype_mk
337
+ have hc₁ : Continuous (fun q : TorusLocus f L Z => (f q.val.1).val j) :=
338
+ (continuous_apply j).comp
339
+ (hf.subtype_val.comp (continuous_fst.comp continuous_subtype_val))
340
+ have hc₂ : Continuous (fun q : TorusLocus f L Z => q.val.2.val j) :=
341
+ (continuous_apply j).comp (continuous_subtype_val.comp
342
+ (continuous_snd.comp continuous_subtype_val))
343
+ exact hc₁.sub hc₂
344
+
345
+ def slotBundleFiber {Y : Type*} {t n r : ℕ} {f : Y → Cube t n}
346
+ {L : Set (Slot t)} {Z : Set (Slots t n)}
347
+ (H : L → Submodule ℂ (Fin r → ℂ)) (q : TorusLocus f L Z) :
348
+ Submodule ℂ (Fin n → Fin r → ℂ) :=
349
+ Submodule.pi univ (fun j => H (locusDifference q j))
350
+
351
+ @[simp] lemma mem_slotBundleFiber {Y : Type*} {t n r : ℕ} {f : Y → Cube t n}
352
+ {L : Set (Slot t)} {Z : Set (Slots t n)} (H : L → Submodule ℂ (Fin r → ℂ))
353
+ (q : TorusLocus f L Z) (v : Fin n → Fin r → ℂ) :
354
+ v ∈ slotBundleFiber H q ↔ ∀ j, v j ∈ H (locusDifference q j) := by
355
+ simp [slotBundleFiber, Submodule.mem_pi]
356
+
357
+ def EmbeddedTotal {B V : Type*} [AddCommGroup V] [Module ℂ V]
358
+ (E : B → Submodule ℂ V) := {q : B × V // q.2 ∈ E q.1}
359
+
360
+ instance {B V : Type*} [TopologicalSpace B] [TopologicalSpace V]
361
+ [AddCommGroup V] [Module ℂ V] (E : B → Submodule ℂ V) :
362
+ TopologicalSpace (EmbeddedTotal E) := inferInstanceAs (TopologicalSpace {q : B × V // q.2 ∈ E q.1})
363
+
364
+ structure BundleMono {B V : Type*} [TopologicalSpace B] [TopologicalSpace V]
365
+ [AddCommGroup V] [Module ℂ V] (E : B → Submodule ℂ V) (K : ℕ) where
366
+ map : ∀ b, E b →ₗ[ℂ] (Fin K → ℂ)
367
+ injective : ∀ b, Function.Injective (map b)
368
+ continuous_total : Continuous (fun q : EmbeddedTotal E => map q.val.1 ⟨q.val.2, q.property⟩)
369
+
370
+ def slotBundleFiberEquiv {Y : Type*} {t n r : ℕ} {f : Y → Cube t n}
371
+ {L : Set (Slot t)} {Z : Set (Slots t n)}
372
+ (H : L → Submodule ℂ (Fin r → ℂ)) (q : TorusLocus f L Z) :
373
+ slotBundleFiber H q ≃ₗ[ℂ] ((j : Fin n) → H (locusDifference q j)) where
374
+ toFun v j := ⟨v.val j, (mem_slotBundleFiber H q v.val).mp v.property j⟩
375
+ invFun v := ⟨fun j => (v j).val,
376
+ (mem_slotBundleFiber H q _).mpr (fun j => (v j).property)⟩
377
+ left_inv _ := rfl
378
+ right_inv _ := rfl
379
+ map_add' _ _ := rfl
380
+ map_smul' _ _ := rfl
381
+
382
+ lemma finrank_slotBundleFiber {Y : Type*} {t n r p : ℕ} {f : Y → Cube t n}
383
+ {L : Set (Slot t)} {Z : Set (Slots t n)}
384
+ (H : L → Submodule ℂ (Fin r → ℂ)) (hH : ∀ l, Module.finrank ℂ (H l) = p)
385
+ (q : TorusLocus f L Z) : Module.finrank ℂ (slotBundleFiber H q) = p * n := by
386
+ rw [(slotBundleFiberEquiv H q).finrank_eq, Module.finrank_pi_fintype]
387
+ simp [hH, Nat.mul_comm]
388
+
389
+ lemma BundleMono.finrank_le {B V : Type*} [TopologicalSpace B] [TopologicalSpace V]
390
+ [AddCommGroup V] [Module ℂ V] {E : B → Submodule ℂ V} {K : ℕ}
391
+ (M : BundleMono E K) (b : B) : Module.finrank ℂ (E b) ≤ K := by
392
+ have h := LinearMap.finrank_le_finrank_of_injective (M.injective b)
393
+ simpa using h
394
+
395
+ theorem rank_le_target_of_nonempty_locus {Y : Type*} [TopologicalSpace Y]
396
+ {t n r p K : ℕ} {f : Y → Cube t n}
397
+ {L : Set (Slot t)} {Z : Set (Slots t n)}
398
+ (H : L → Submodule ℂ (Fin r → ℂ)) (hH : ∀ l, Module.finrank ℂ (H l) = p)
399
+ (M : BundleMono (slotBundleFiber H (f := f) (Z := Z)) K)
400
+ (hq : (torusLocus f L Z).Nonempty) : p * n ≤ K := by
401
+ obtain ⟨q, hq⟩ := hq
402
+ simpa [finrank_slotBundleFiber H hH] using M.finrank_le (⟨q, hq⟩ : TorusLocus f L Z)
403
+
404
+ def slotIndex {u n : ℕ} (b : Fin u) (j : Fin n) : Fin (u * n) :=
405
+ finProdFinEquiv (b, j)
406
+
407
+ @[simp] lemma slotIndex_val {u n : ℕ} (b : Fin u) (j : Fin n) :
408
+ (slotIndex b j).val = b.val * n + j.val := by
409
+ simp [slotIndex, finProdFinEquiv, Nat.mul_comm, Nat.add_comm]
410
+
411
+ def powerMap {X Y : Type*} (q : X → Y) (u : ℕ) (x : Fin u → X) : Fin u → Y :=
412
+ fun b => q (x b)
413
+
414
+ lemma continuous_powerMap {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
415
+ {q : X → Y} (hq : Continuous q) (u : ℕ) : Continuous (powerMap q u) := by
416
+ exact continuous_pi fun b => hq.comp (continuous_apply b)
417
+
418
+ def concatenate {X : Type*} {t n : ℕ} (f : X → Cube t n) (u : ℕ)
419
+ (x : Fin u → X) : Cube t (u * n) :=
420
+ ⟨fun k => (f (x (finProdFinEquiv.symm k).1)).val (finProdFinEquiv.symm k).2,
421
+ fun k => (f (x (finProdFinEquiv.symm k).1)).property (finProdFinEquiv.symm k).2⟩
422
+
423
+ @[simp] lemma concatenate_slot {X : Type*} {t n : ℕ} (f : X → Cube t n)
424
+ (u : ℕ) (x : Fin u → X) (b : Fin u) (j : Fin n) :
425
+ (concatenate f u x).val (slotIndex b j) = (f (x b)).val j := by
426
+ simp only [concatenate, slotIndex, Equiv.symm_apply_apply]
427
+
428
+ lemma boundarySlots_concatenate_sum {X : Type*} {t n : ℕ}
429
+ (f : X → Cube t n) (u : ℕ) (x : Fin u → X) :
430
+ (boundarySlots (concatenate f u x).val).card =
431
+ ∑ b : Fin u, (boundarySlots (f (x b)).val).card := by
432
+ simp only [boundarySlots, Finset.card_filter]
433
+ rw [← Equiv.sum_comp finProdFinEquiv, Fintype.sum_prod_type]
434
+ apply Finset.sum_congr rfl
435
+ intro b _
436
+ apply Finset.sum_congr rfl
437
+ intro j _
438
+ rw [show finProdFinEquiv (b, j) = slotIndex b j from rfl, concatenate_slot]
439
+
440
+ lemma continuous_concatenate {X : Type*} [TopologicalSpace X] {t n : ℕ}
441
+ {f : X → Cube t n} (hf : Continuous f) (u : ℕ) : Continuous (concatenate f u) := by
442
+ apply Continuous.subtype_mk
443
+ apply continuous_pi
444
+ intro k
445
+ exact (continuous_apply (finProdFinEquiv.symm k).2).comp
446
+ (hf.subtype_val.comp (continuous_apply (finProdFinEquiv.symm k).1))
447
+
448
+ def IsCompression {X : Type*} [TopologicalSpace X] {t n : ℕ}
449
+ (f : X → Cube t n) (a : ℝ) (u : ℕ) (G : (Fin u → X) → Cube t (u * n)) : Prop :=
450
+ Continuous G ∧
451
+ (∀ x, (a / 8) * (u : ℝ) * (n : ℝ) ≤ ((boundarySlots (G x).val).card : ℝ)) ∧
452
+ (∀ x b j, OnBoundary ((f (x b)).val j) →
453
+ (G x).val (slotIndex b j) = (f (x b)).val j)
454
+
455
+ def ArbitrarilyCompresses {X : Type*} [TopologicalSpace X] {t n : ℕ}
456
+ (f : X → Cube t n) (a : ℝ) : Prop :=
457
+ ∀ U : ℕ, 1 ≤ U → ∃ u : ℕ, U ≤ u ∧
458
+ ∃ G : (Fin u → X) → Cube t (u * n), IsCompression f a u G
459
+
460
+ theorem compression_pullback {X P : Type*} [TopologicalSpace X] [TopologicalSpace P]
461
+ {t n u : ℕ} {a : ℝ} {f : X → Cube t n} {fP : P → Cube t n}
462
+ (q : X → P) (hq : Continuous q) (hfactor : f = fP ∘ q)
463
+ {G : (Fin u → P) → Cube t (u * n)} (hG : IsCompression fP a u G) :
464
+ IsCompression f a u (G ∘ powerMap q u) := by
465
+ refine ⟨hG.1.comp (continuous_powerMap hq u), ?_, ?_⟩
466
+ · intro x
467
+ exact hG.2.1 (powerMap q u x)
468
+ · intro x b j hx
469
+ rw [hfactor] at hx ⊢
470
+ exact hG.2.2 (powerMap q u x) b j hx
471
+
472
+ theorem arbitrarily_compresses_pullback {X P : Type*}
473
+ [TopologicalSpace X] [TopologicalSpace P]
474
+ {t n : ℕ} {a : ℝ} {f : X → Cube t n} {fP : P → Cube t n}
475
+ (q : X → P) (hq : Continuous q) (hfactor : f = fP ∘ q)
476
+ (hP : ArbitrarilyCompresses fP a) : ArbitrarilyCompresses f a := by
477
+ intro U hU
478
+ obtain ⟨u, hUu, G, hG⟩ := hP U hU
479
+ exact ⟨u, hUu, G ∘ powerMap q u, compression_pullback q hq hfactor hG⟩
480
+
481
+ theorem arbitrarily_compresses_of_isEmpty {X : Type*} [TopologicalSpace X] [IsEmpty X]
482
+ {t n : ℕ} (f : X → Cube t n) (a : ℝ) : ArbitrarilyCompresses f a := by
483
+ intro U hU
484
+ let G : (Fin U → X) → Cube t (U * n) := fun _ => ⟨0, by simp [cubeSet]⟩
485
+ refine ⟨U, le_rfl, G, continuous_const, ?_, ?_⟩
486
+ · intro x
487
+ exact isEmptyElim (x ⟨0, by omega⟩)
488
+ · intro x
489
+ exact isEmptyElim (x ⟨0, by omega⟩)
490
+
491
+ lemma repeated_compression {X : Type*} [TopologicalSpace X] {t n : ℕ}
492
+ {f F : X → Cube t n} {a : ℝ} (hF : Continuous F)
493
+ (hcount : ∀ x, (a / 8) * (n : ℝ) ≤ ((boundarySlots (F x).val).card : ℝ))
494
+ (hfix : ∀ x j, OnBoundary ((f x).val j) → (F x).val j = (f x).val j)
495
+ (u : ℕ) : IsCompression f a u (concatenate F u) := by
496
+ refine ⟨continuous_concatenate hF u, ?_, ?_⟩
497
+ · intro x
498
+ rw [boundarySlots_concatenate_sum, Nat.cast_sum]
499
+ calc
500
+ a / 8 * (u : ℝ) * (n : ℝ) = ∑ _b : Fin u, (a / 8) * (n : ℝ) := by
501
+ simp [Finset.sum_const, mul_comm, mul_left_comm]
502
+ _ ≤ ∑ b : Fin u, ((boundarySlots (F (x b)).val).card : ℝ) :=
503
+ Finset.sum_le_sum (fun b _ => hcount (x b))
504
+ · intro x b j hj
505
+ rw [concatenate_slot]
506
+ exact hfix (x b) j hj
507
+
508
+ theorem arbitrarily_compresses_of_empty_locus {X : Type*} [TopologicalSpace X]
509
+ {t n : ℕ} {f : X → Cube t n} {L : Set (Slot t)} {a : ℝ}
510
+ (hf : Continuous f) (ha : 0 ≤ a) (l : Slot t) (hlL : l ∈ L) (hl : ‖l‖ < 1 / 2)
511
+ (hempty : torusLocus f L (sparseParameters t n (a * (n : ℝ))) = ∅) :
512
+ ArbitrarilyCompresses f a := by
513
+ let s := ⌊a * (n : ℝ)⌋₊
514
+ let g : X → Slots t n := fun x j => (f x).val j - l
515
+ have hg : Continuous g := hf.subtype_val.sub continuous_const
516
+ have hclose : ∀ x, ‖g x - (f x).val‖ < 1 / 2 := by
517
+ intro x
518
+ have heq : g x - (f x).val = fun _ : Fin n => -l := by
519
+ funext j
520
+ dsimp [g]
521
+ abel
522
+ rw [heq]
523
+ have hbound : ‖(fun _ : Fin n => -l)‖ ≤ ‖l‖ := by
524
+ rw [pi_norm_le_iff_of_nonneg (norm_nonneg l)]
525
+ intro j
526
+ simp
527
+ exact hbound.trans_lt hl
528
+ have havoid : ∀ x, g x ∉ sparseParameters t n (s : ℝ) := by
529
+ intro x hx
530
+ have hz : g x ∈ sparseParameters t n (a * (n : ℝ)) :=
531
+ ⟨hx.1, hx.2.trans (Nat.floor_le (mul_nonneg ha (Nat.cast_nonneg n)))⟩
532
+ have hq : (x, ⟨g x, hz⟩) ∈ torusLocus f L (sparseParameters t n (a * (n : ℝ))) := by
533
+ intro j
534
+ change (f x).val j - ((f x).val j - l) ∈ L
535
+ simpa only [sub_sub_cancel] using hlL
536
+ rw [hempty] at hq
537
+ exact hq
538
+ obtain ⟨F, hF, hcount, hfix⟩ :=
539
+ boundary_restoration_of_sparseParameters f g hf hg havoid hclose
540
+ have hreal : (a / 8) * (n : ℝ) ≤ ((s + 1 : ℕ) : ℝ) := by
541
+ have h0 : 0 ≤ a * (n : ℝ) := mul_nonneg ha (Nat.cast_nonneg n)
542
+ have hfloor := Nat.lt_floor_add_one (a * (n : ℝ))
543
+ dsimp [s]
544
+ push_cast
545
+ linarith
546
+ intro U _hU
547
+ refine ⟨U, le_rfl, concatenate F U, repeated_compression hF ?_ hfix U⟩
548
+ intro x
549
+ exact hreal.trans (Nat.cast_le.mpr (hcount x))
550
+
551
+ lemma floor_batch_lower_bound {a : ℝ} {b : ℕ} (hab : 16 ≤ a * (b : ℝ)) :
552
+ 3 * a * (b : ℝ) / 16 ≤ (⌊a * (b : ℝ) / 4⌋₊ : ℝ) := by
553
+ have hfloor := Nat.lt_floor_add_one (a * (b : ℝ) / 4)
554
+ linarith
555
+
556
+ theorem padding_boundary_fraction {a : ℝ} {b B j : ℕ}
557
+ (ha : 0 ≤ a) (hab : 16 ≤ a * (b : ℝ)) (hj : 2 * B ≤ j) :
558
+ (a / 8) * ((b * (B + j) : ℕ) : ℝ) ≤
559
+ ((j * ⌊a * (b : ℝ) / 4⌋₊ : ℕ) : ℝ) := by
560
+ have hfloor := floor_batch_lower_bound hab
561
+ have hBj : 2 * (B : ℝ) ≤ (j : ℝ) := by exact_mod_cast hj
562
+ have hcount := mul_le_mul_of_nonneg_left hfloor (Nat.cast_nonneg j : 0 ≤ (j : ℝ))
563
+ have hscale := mul_le_mul_of_nonneg_left hBj
564
+ (mul_nonneg ha (Nat.cast_nonneg b : 0 ≤ (b : ℝ)))
565
+ push_cast
566
+ nlinarith
567
+
568
+ end TorusCompression
569
+
570
+ end
571
+
572
+ end OAI
lean/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # Lean formalizations
2
-
3
- This directory contains Lean formalizations of some results in this repository.
4
- They are organized in a single large library, so we recommend compiling only small portions at a time.
5
-
6
- See the [Comparator README](ComparatorChallenges/README.md) for more information about how to verify the results.
7
-
8
- ## Technical note: mmap
9
-
10
- Compiling the entire library may fail if Linux's `vm.max_map_count` is too low.
11
- One workaround is to build Lean with the CMake option `-DMMAP=OFF`; it may also be necessary to set the environment variable `GLIBC_TUNABLES` to `glibc.malloc.mmap_max=0:glibc.malloc.arena_max=1` when running Lean or Lake.
 
1
+ # Lean formalizations
2
+
3
+ This directory contains Lean formalizations of some results in this repository.
4
+ They are organized in a single large library, so we recommend compiling only small portions at a time.
5
+
6
+ See the [Comparator README](ComparatorChallenges/README.md) for more information about how to verify the results.
7
+
8
+ ## Technical note: mmap
9
+
10
+ Compiling the entire library may fail if Linux's `vm.max_map_count` is too low.
11
+ One workaround is to build Lean with the CMake option `-DMMAP=OFF`; it may also be necessary to set the environment variable `GLIBC_TUNABLES` to `glibc.malloc.mmap_max=0:glibc.malloc.arena_max=1` when running Lean or Lake.
lean/docs/027.md CHANGED
@@ -1,17 +1,17 @@
1
- # Potential integral density on curve character varieties
2
-
3
- The following describes the scope of the Lean formalization related to the following accompanying paper(s):
4
-
5
- - [Integral points on character varieties of curves](../../preprints/Integral-points-on-character-varieties-of-curves-September-25-2026/paper.pdf)
6
-
7
- ## Scope
8
-
9
- The integral-density question asks whether integral points become Zariski dense in every component of a curve character variety after one finite extension of the number field. The linked formalization proves a supporting compatibility result for its marked-surface construction. Given a proper diagram with finitely many vertices, a chosen seam with maximal adjacent facet rank and a positive-genus parent, puncture data, an existing solution over a field, and a chosen boundary occurrence, the produced marked values satisfy every seam equation.
10
-
11
- This is conditional compatibility of the produced solution. Potential integral density, including the prescribed-boundary and all-component conclusions, remains outside the selected statement.
12
-
13
- ## Comparator links
14
-
15
- | Result | Comparator statement |
16
- | --- | --- |
17
- | Compatibility of the produced marked solution with every seam equation | [CharacterVarietiesAllSeamsSupport.lean](../ComparatorChallenges/CharacterVarietiesAllSeamsSupport.lean) |
 
1
+ # Potential integral density on curve character varieties
2
+
3
+ The following describes the scope of the Lean formalization related to the following accompanying paper(s):
4
+
5
+ - [Integral points on character varieties of curves](../../preprints/Integral-points-on-character-varieties-of-curves-September-25-2026/paper.pdf)
6
+
7
+ ## Scope
8
+
9
+ The integral-density question asks whether integral points become Zariski dense in every component of a curve character variety after one finite extension of the number field. The linked formalization proves a supporting compatibility result for its marked-surface construction. Given a proper diagram with finitely many vertices, a chosen seam with maximal adjacent facet rank and a positive-genus parent, puncture data, an existing solution over a field, and a chosen boundary occurrence, the produced marked values satisfy every seam equation.
10
+
11
+ This is conditional compatibility of the produced solution. Potential integral density, including the prescribed-boundary and all-component conclusions, remains outside the selected statement.
12
+
13
+ ## Comparator links
14
+
15
+ | Result | Comparator statement |
16
+ | --- | --- |
17
+ | Compatibility of the produced marked solution with every seam equation | [CharacterVarietiesAllSeamsSupport.lean](../ComparatorChallenges/CharacterVarietiesAllSeamsSupport.lean) |
lean/docs/049.md CHANGED
@@ -3,9 +3,12 @@
3
  The following describes the scope of the Lean formalization related to the following accompanying paper(s):
4
 
5
  - [An explicit noncoordinate polynomial with affine three-space zero fibre](../../preprints/An-explicit-noncoordinate-polynomial-with-affine-three-space-zero-fibre-September-24-2026/paper.pdf)
 
6
 
7
  ## Scope
8
 
 
 
9
  The Abhyankar–Sathaye conjecture predicts that a polynomial defining an affine-space quotient must be an ambient coordinate. For every $n\ge4$, the formalized counterexample gives $F\in\mathbb C[x_1,\ldots,x_n]$ with quotient $\mathbb C[x_1,\ldots,x_n]/(F)\cong\mathbb C[y_1,\ldots,y_{n-1}]$, although $F$ is not a coordinate.
10
 
11
  A companion gives $n-1$ commuting, locally nilpotent derivations, linearly independent over the polynomial ring, whose common kernel is generated by the construction's explicit polynomial and contains no ambient coordinate. The extra $n-4$ derivations are ordinary partial derivatives in the added variables. The three-variable case is not covered.
@@ -16,3 +19,4 @@ A companion gives $n-1$ commuting, locally nilpotent derivations, linearly indep
16
  | --- | --- |
17
  | Noncoordinate polynomial in every dimension at least four | [AbhyankarSathaye.lean](../ComparatorChallenges/AbhyankarSathaye.lean) |
18
  | Commuting locally nilpotent derivations | [CommutingDerivations.lean](../ComparatorChallenges/CommutingDerivations.lean) |
 
 
3
  The following describes the scope of the Lean formalization related to the following accompanying paper(s):
4
 
5
  - [An explicit noncoordinate polynomial with affine three-space zero fibre](../../preprints/An-explicit-noncoordinate-polynomial-with-affine-three-space-zero-fibre-September-24-2026/paper.pdf)
6
+ - [A stable coordinate that is not a coordinate in four variables](../../preprints/A-stable-coordinate-that-is-not-a-coordinate-in-four-variables-October-5-2026/stable-coordinate-four-variables.pdf)
7
 
8
  ## Scope
9
 
10
+ The stable coordinate conjecture predicts that a polynomial that becomes a coordinate after adjoining variables was already a coordinate. The formalization gives an explicit degree-five polynomial in four complex variables that becomes a coordinate after adjoining one variable but is not a coordinate in four variables. Every fiber is isomorphic to affine three-space, yet no fiber can be carried to a coordinate hyperplane by an ambient polynomial automorphism.
11
+
12
  The Abhyankar–Sathaye conjecture predicts that a polynomial defining an affine-space quotient must be an ambient coordinate. For every $n\ge4$, the formalized counterexample gives $F\in\mathbb C[x_1,\ldots,x_n]$ with quotient $\mathbb C[x_1,\ldots,x_n]/(F)\cong\mathbb C[y_1,\ldots,y_{n-1}]$, although $F$ is not a coordinate.
13
 
14
  A companion gives $n-1$ commuting, locally nilpotent derivations, linearly independent over the polynomial ring, whose common kernel is generated by the construction's explicit polynomial and contains no ambient coordinate. The extra $n-4$ derivations are ordinary partial derivatives in the added variables. The three-variable case is not covered.
 
19
  | --- | --- |
20
  | Noncoordinate polynomial in every dimension at least four | [AbhyankarSathaye.lean](../ComparatorChallenges/AbhyankarSathaye.lean) |
21
  | Commuting locally nilpotent derivations | [CommutingDerivations.lean](../ComparatorChallenges/CommutingDerivations.lean) |
22
+ | Degree-five stable noncoordinate with nonrectifiable affine-space fibers | [StableCoordinateFour.lean](../ComparatorChallenges/StableCoordinateFour.lean) |