feat: add classes ContinuousENorm and ENormed(Add)(Comm)Monoid#21422
feat: add classes ContinuousENorm and ENormed(Add)(Comm)Monoid#21422
ContinuousENorm and ENormed(Add)(Comm)Monoid#21422Conversation
PR summary 11b1b0885cImport changes exceeding 2%
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.Analysis.Normed.Group.Basic | 1141 | 1193 | +52 (+4.56%) |
Import changes for all files
| Files | Import difference |
|---|---|
7 filesMathlib.Analysis.Asymptotics.AsymptoticEquivalent Mathlib.Analysis.Asymptotics.Lemmas Mathlib.Analysis.Asymptotics.SuperpolynomialDecay Mathlib.Analysis.Asymptotics.Theta Mathlib.Analysis.Complex.Asymptotics Mathlib.Analysis.Complex.UpperHalfPlane.FunctionsBoundedAtInfty Mathlib.Order.Filter.ZeroAndBoundedAtFilter |
2 |
35 filesMathlib.Analysis.CStarAlgebra.Classes Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.NonUnital Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Restrict Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unitary Mathlib.Analysis.CStarAlgebra.ContinuousMap Mathlib.Analysis.CStarAlgebra.Unitization Mathlib.Analysis.Complex.Basic Mathlib.Analysis.Complex.Convex Mathlib.Analysis.Complex.IntegerCompl Mathlib.Analysis.Complex.IsIntegral Mathlib.Analysis.Complex.OperatorNorm Mathlib.Analysis.Complex.ReImTopology Mathlib.Analysis.Complex.UpperHalfPlane.Basic Mathlib.Analysis.Complex.UpperHalfPlane.Topology Mathlib.Analysis.InnerProductSpace.Defs Mathlib.Analysis.LocallyConvex.ContinuousOfBounded Mathlib.Analysis.Normed.Group.InfiniteSum Mathlib.Analysis.Normed.Group.Tannery Mathlib.Analysis.Normed.Group.ZeroAtInfty Mathlib.Analysis.NormedSpace.Extend Mathlib.Analysis.RCLike.Basic Mathlib.Dynamics.BirkhoffSum.NormedSpace Mathlib.LinearAlgebra.QuadraticForm.Real Mathlib.NumberTheory.ModularForms.EisensteinSeries.Defs Mathlib.NumberTheory.ModularForms.Identities Mathlib.NumberTheory.ModularForms.SlashActions Mathlib.NumberTheory.ModularForms.SlashInvariantForms Mathlib.NumberTheory.Modular Mathlib.Topology.ContinuousMap.Bounded.Star Mathlib.Topology.ContinuousMap.Compact Mathlib.Topology.ContinuousMap.CompactlySupported Mathlib.Topology.ContinuousMap.ContinuousMapZero Mathlib.Topology.ContinuousMap.StarOrdered Mathlib.Topology.ContinuousMap.ZeroAtInfty Mathlib.Topology.MetricSpace.Ultra.ContinuousMaps |
5 |
Mathlib.Analysis.BoxIntegral.Partition.Additive |
6 |
23 filesMathlib.Analysis.Calculus.FormalMultilinearSeries Mathlib.Analysis.LocallyConvex.WeakDual Mathlib.Analysis.LocallyConvex.WithSeminorms Mathlib.Analysis.Normed.Affine.ContinuousAffineMap Mathlib.Analysis.Normed.Algebra.Unitization Mathlib.Analysis.Normed.Module.Completion Mathlib.Analysis.Normed.Ring.WithAbs Mathlib.Analysis.NormedSpace.Multilinear.Basic Mathlib.Analysis.NormedSpace.Multilinear.Curry Mathlib.Analysis.NormedSpace.OperatorNorm.Asymptotics Mathlib.Analysis.NormedSpace.OperatorNorm.Basic Mathlib.Analysis.NormedSpace.OperatorNorm.Bilinear Mathlib.Analysis.NormedSpace.OperatorNorm.Completeness Mathlib.Analysis.NormedSpace.OperatorNorm.Mul Mathlib.Analysis.NormedSpace.OperatorNorm.NNNorm Mathlib.Analysis.NormedSpace.OperatorNorm.NormedSpace Mathlib.Analysis.NormedSpace.OperatorNorm.Prod Mathlib.Analysis.NormedSpace.PiTensorProduct.InjectiveSeminorm Mathlib.Analysis.NormedSpace.PiTensorProduct.ProjectiveSeminorm Mathlib.Topology.Category.DeltaGenerated Mathlib.Topology.Compactness.DeltaGeneratedSpace Mathlib.Topology.ContinuousMap.Bounded.Basic Mathlib.Topology.ContinuousMap.BoundedCompactlySupported |
7 |
5 filesMathlib.Analysis.Normed.Algebra.Ultra Mathlib.Analysis.Normed.Field.Ultra Mathlib.Data.Real.IsNonarchimedean Mathlib.Topology.Algebra.Valued.LocallyCompact Mathlib.Topology.Algebra.Valued.NormedValued |
9 |
Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unital Mathlib.Topology.ContinuousMap.Polynomial |
13 |
16 filesMathlib.Analysis.CStarAlgebra.Basic Mathlib.Analysis.Normed.Group.Ultra Mathlib.Analysis.Normed.Ring.Ultra Mathlib.LinearAlgebra.Matrix.Gershgorin Mathlib.NumberTheory.DirichletCharacter.Bounds Mathlib.NumberTheory.Harmonic.Int Mathlib.NumberTheory.LegendreSymbol.GaussEisensteinLemmas Mathlib.NumberTheory.NumberField.Discriminant.Defs Mathlib.NumberTheory.Padics.PadicIntegers Mathlib.NumberTheory.Padics.PadicNumbers Mathlib.NumberTheory.Padics.RingHoms Mathlib.NumberTheory.SumTwoSquares Mathlib.NumberTheory.Zsqrtd.QuadraticReciprocity Mathlib.RingTheory.WittVector.Compare Mathlib.Topology.Algebra.Module.FiniteDimension Mathlib.Topology.Algebra.Polynomial |
16 |
Mathlib.Topology.Algebra.Module.Alternating.Topology Mathlib.Topology.Algebra.Module.Multilinear.Topology |
20 |
42 filesMathlib.Analysis.Convex.EGauge Mathlib.Analysis.LocallyConvex.BalancedCoreHull Mathlib.Analysis.LocallyConvex.Basic Mathlib.Analysis.LocallyConvex.Bounded Mathlib.Analysis.LocallyConvex.StrongTopology Mathlib.Analysis.Normed.Affine.AddTorsor Mathlib.Analysis.Normed.Affine.Isometry Mathlib.Analysis.Normed.Affine.MazurUlam Mathlib.Analysis.Normed.Field.Lemmas Mathlib.Analysis.Normed.Field.UnitBall Mathlib.Analysis.Normed.Group.BallSphere Mathlib.Analysis.Normed.Group.Completion Mathlib.Analysis.Normed.Group.HomCompletion Mathlib.Analysis.Normed.Group.Hom Mathlib.Analysis.Normed.Group.Lemmas Mathlib.Analysis.Normed.Group.NullSubmodule Mathlib.Analysis.Normed.Group.SemiNormedGrp.Completion Mathlib.Analysis.Normed.Group.SemiNormedGrp Mathlib.Analysis.Normed.Group.Uniform Mathlib.Analysis.Normed.Module.Basic Mathlib.Analysis.Normed.Module.Ray Mathlib.Analysis.Normed.Module.Span Mathlib.Analysis.Normed.MulAction Mathlib.Analysis.Normed.Operator.Compact Mathlib.Analysis.Normed.Operator.ContinuousLinearMap Mathlib.Analysis.Normed.Operator.LinearIsometry Mathlib.Analysis.Normed.Order.Basic Mathlib.Analysis.Normed.Order.Lattice Mathlib.Analysis.NormedSpace.BallAction Mathlib.Analysis.NormedSpace.ConformalLinearMap Mathlib.Analysis.NormedSpace.ENormedSpace Mathlib.Analysis.NormedSpace.Extr Mathlib.Analysis.NormedSpace.Int Mathlib.Analysis.NormedSpace.Real Mathlib.Analysis.NormedSpace.SphereNormEquiv Mathlib.Analysis.Seminorm Mathlib.Topology.Algebra.Module.Multilinear.Bounded Mathlib.Topology.Algebra.Module.StrongTopology Mathlib.Topology.Algebra.Module.UniformConvergence Mathlib.Topology.Bornology.BoundedOperation Mathlib.Topology.Germ Mathlib.Topology.UniformSpace.Dini |
23 |
Mathlib.Analysis.Polynomial.CauchyBound |
34 |
Mathlib.Topology.Algebra.InfiniteSum.Field |
43 |
5 filesMathlib.Analysis.Asymptotics.Defs Mathlib.Analysis.LocallyConvex.Polar Mathlib.Analysis.Normed.Field.Basic Mathlib.Analysis.Normed.Group.AddTorsor Mathlib.Topology.MetricSpace.CauSeqFilter |
45 |
12 filesMathlib.Analysis.Normed.Group.Basic Mathlib.Analysis.Normed.Group.Bounded Mathlib.Analysis.Normed.Group.CocompactMap Mathlib.Analysis.Normed.Group.Constructions Mathlib.Analysis.Normed.Group.Int Mathlib.Analysis.Normed.Group.Rat Mathlib.Analysis.Normed.Group.Submodule Mathlib.Analysis.Normed.Order.Hom.Basic Mathlib.Analysis.Normed.Order.Hom.Ultra Mathlib.Analysis.NormedSpace.IndicatorFunction Mathlib.Analysis.NormedSpace.MStructure Mathlib.InformationTheory.Hamming |
52 |
Declarations diff
+ ContinuousENorm
+ ENormedAddCommMonoid
+ ENormedAddMonoid
+ ENormedCommMonoid
+ ENormedMonoid
+ instance [SeminormedAddGroup E] : ContinuousENorm E
+ instance [SeminormedGroup E] : ContinuousENorm E
You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for script/declarations_diff.sh contains some details about this script.
No changes to technical debt.
You can run this locally as
./scripts/technical-debt-metrics.sh pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
bdc326e to
196c3fc
Compare
|
The diagnostics output on the simp lemma is not helpful: putting set_option diagnostics true in
example (I : Ideal (MvPolynomial σ k)) : vanishingIdeal (zeroLocus I) = sorry := by simpat the end of The instance searches do not traverse anything related to ENorm. (In fact, reverting the ENorm change does not change anything in the output.) |
|
Yes, please also add the multiplicative versions of these classes, so that we can keep using |
ContinuousENorm and ENormedAdd(Comm)MonoidContinuousENorm and ENormed(Add)(Comm)Monoid
3c688b6 to
3763173
Compare
|
Added (and force-pushed, sorry). |
|
Can you add a doc of the form "We don't have |
|
Upon reflection, the definition of And indeed: the only instances for But changing that is of course not part of this PR, so the previous description is still useful to have. |
|
Other than that, LGTM, but I'll let someone else merge/delegate it, since I'm a coauthor. |
|
Added a comment. The simpNF linter still fails, and I'm still at a loss why. |
|
@JovanGerb diagnosed the hang and found a fix 🎉 I hope that with it included, the linting step will finally pass. |
|
This PR/issue depends on: |
|
@fpvandoorn I copied the instances from your Carleson file; this causes issues (including what looks like a diamond to me); you can see the build failing. I haven't looked into it deeply so far. |
|
One step further: now line 993 errors. The relevant snippet is (line 993 is the to_additive). The error message is I wonder: |
| import Mathlib.Algebra.Group.Subgroup.Ker | ||
| import Mathlib.Analysis.Normed.Group.Seminorm | ||
| import Mathlib.Topology.Instances.ENNReal.Defs | ||
| import Mathlib.Topology.Instances.ENNReal.Lemmas |
There was a problem hiding this comment.
This import increase is in tension with the aim to reduce the imports of this file, see https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Turn.20.60Complex.2Eabs.60.20into.20.60Norm.60
cc @YaelDillies
I guess you need this to know that one of the coercions is continuous?
There was a problem hiding this comment.
I am interested to know why you need this new import, yes
|
Closing in favour of #21670 (which passes CI now). |
…ansported This would have helped me in #21422.
This will allow generalising results from normed spaces/normed groups to
ENNRealalso.From the Carleson project.
A future PR will generalise lemmas in mathlib to use these new classes.
IsArtinianRing.isMaximal_of_isPrime#21449 for fixing the simpNF linter time-out