Skip to content

[Merged by Bors] - chore: use mixin ordered algebraic typeclasses (part 2)#20595

Closed
astrainfinita wants to merge 197 commits intomasterfrom
FR_ordered_mixin_lemmas2
Closed

[Merged by Bors] - chore: use mixin ordered algebraic typeclasses (part 2)#20595
astrainfinita wants to merge 197 commits intomasterfrom
FR_ordered_mixin_lemmas2

Conversation

@astrainfinita
Copy link
Copy Markdown
Collaborator

@astrainfinita astrainfinita commented Jan 9, 2025

commit 7561e65e55f1dbba1058c43ca1701038ceed98dc
Author: negiizhao <[email protected]>
Date:   Wed Jun 5 04:26:04 2024 +0800

    fix

commit 777db8a7d19ed4d66815f9575206992ca578cb5e
Merge: cc6eede 52b851a
Author: negiizhao <[email protected]>
Date:   Wed Jun 5 04:25:36 2024 +0800

    Merge branch 'master' into FR_canonically

commit cc6eede
Author: negiizhao <[email protected]>
Date:   Thu Dec 28 15:01:00 2023 +0800

    fix

commit ae1dfda
Merge: c1931cf 1a749e0
Author: negiizhao <[email protected]>
Date:   Thu Dec 28 14:10:05 2023 +0800

    Merge branch 'FR_covariance_instance' into FR_canonically

commit c1931cf
Merge: 9e0f667 6cab3d6
Author: negiizhao <[email protected]>
Date:   Thu Dec 28 14:09:53 2023 +0800

    Merge branch 'master' into FR_canonically

commit 1a749e0
Author: negiizhao <[email protected]>
Date:   Tue Dec 26 04:24:52 2023 +0800

    revert some instance changes

commit a6e645f
Author: negiizhao <[email protected]>
Date:   Mon Dec 25 11:01:06 2023 +0800

    fix

commit 6af13a5
Author: negiizhao <[email protected]>
Date:   Mon Dec 25 10:06:19 2023 +0800

    Revert "fix"

    This reverts commit 7ebd135.

commit 63a181b
Author: negiizhao <[email protected]>
Date:   Mon Dec 25 09:49:50 2023 +0800

    hack

commit 7ebd135
Author: negiizhao <[email protected]>
Date:   Sun Dec 24 14:25:47 2023 +0800

    fix

commit 20d2809
Author: negiizhao <[email protected]>
Date:   Sun Dec 24 14:13:08 2023 +0800

    chore: remove redundant instances

commit 9e0f667
Author: negiizhao <[email protected]>
Date:   Sun Dec 24 12:45:15 2023 +0800

    fix

commit bf51f25
Merge: bd9e5b4 e9fb5b3
Author: negiizhao <[email protected]>
Date:   Sun Dec 24 12:00:56 2023 +0800

    Merge branch 'master' into FR_canonically

commit bd9e5b4
Author: negiizhao <[email protected]>
Date:   Tue Oct 24 01:49:05 2023 +0800

    nolint again

commit 6414331
Author: negiizhao <[email protected]>
Date:   Tue Oct 24 00:36:00 2023 +0800

    reduce diffs

commit 6d1f059
Author: negiizhao <[email protected]>
Date:   Mon Oct 23 19:41:50 2023 +0800

    Revert "remove nolint"

    This reverts commit d60fc68.

commit d60fc68
Author: negiizhao <[email protected]>
Date:   Mon Oct 23 10:24:07 2023 +0800

    remove nolint

commit 86f6ec7
Author: negiizhao <[email protected]>
Date:   Mon Oct 23 10:23:24 2023 +0800

    fix

commit a3d8af1
Merge: 58e2ba8 801dc0d
Author: negiizhao <[email protected]>
Date:   Mon Oct 23 09:53:43 2023 +0800

    Merge branch 'master' into FR_canonically

commit 58e2ba8
Author: negiizhao <[email protected]>
Date:   Mon Oct 23 09:52:49 2023 +0800

    reduce diffs

commit be2b4bb
Author: negiizhao <[email protected]>
Date:   Mon Oct 23 08:58:03 2023 +0800

    `[Mul α] [LE α]` -> `[Monoid α] [PartialOrder α]`

commit 0777b07
Author: negiizhao <[email protected]>
Date:   Mon Oct 23 02:46:01 2023 +0800

    rerun bench please

commit 6415bc9
Author: negiizhao <[email protected]>
Date:   Sun Oct 22 18:30:20 2023 +0800

    fix

commit 14cdac7
Author: negiizhao <[email protected]>
Date:   Sun Oct 22 14:11:31 2023 +0800

    nolint

commit 5bc0815
Author: Mario Carneiro <[email protected]>
Date:   Sat Oct 21 17:30:57 2023 -0400

    chore: bump lean toolchain

commit 86c8440
Author: negiizhao <[email protected]>
Date:   Sat Oct 21 23:50:53 2023 +0800

    fix

commit f14bdc9
Author: negiizhao <[email protected]>
Date:   Sat Oct 21 23:07:59 2023 +0800

    fix

commit 5feb528
Author: negiizhao <[email protected]>
Date:   Sat Oct 21 22:41:09 2023 +0800

    fix

commit 958c4a5
Author: negiizhao <[email protected]>
Date:   Sat Oct 21 22:07:26 2023 +0800

    fix

commit fae1c85
Author: negiizhao <[email protected]>
Date:   Fri Oct 20 21:07:44 2023 +0800

    fix

commit e6309d6
Author: negiizhao <[email protected]>
Date:   Fri Oct 20 20:07:09 2023 +0800

    fix merge

commit a619670
Author: negiizhao <[email protected]>
Date:   Fri Oct 20 20:06:29 2023 +0800

    oops

commit 9c3d72d
Author: negiizhao <[email protected]>
Date:   Fri Oct 20 20:04:15 2023 +0800

    fix merge

commit 8a76d2e
Author: negiizhao <[email protected]>
Date:   Fri Oct 20 20:01:16 2023 +0800

    fix merge

commit 7793f03
Author: negiizhao <[email protected]>
Date:   Fri Oct 20 19:59:08 2023 +0800

    fix

commit 659f503
Author: negiizhao <[email protected]>
Date:   Fri Oct 20 18:59:49 2023 +0800

    fix merge

commit a259cc5
Author: negiizhao <[email protected]>
Date:   Fri Oct 20 18:54:10 2023 +0800

    fix

commit d6eb31f
Author: negiizhao <[email protected]>
Date:   Fri Oct 20 18:18:02 2023 +0800

    fix

commit 2650679
Author: negiizhao <[email protected]>
Date:   Fri Oct 20 16:31:11 2023 +0800

    fix

commit 5bfb9ec
Merge: c5279c0 08a8af0
Author: negiizhao <[email protected]>
Date:   Fri Oct 20 16:19:14 2023 +0800

    Merge branch 'master' into FR_canonically

commit c5279c0
Author: negiizhao <[email protected]>
Date:   Mon Aug 7 02:47:06 2023 +0800

    lint

commit 19a377f
Author: negiizhao <[email protected]>
Date:   Thu Aug 3 16:57:10 2023 +0800

    lint

commit 048b120
Author: negiizhao <[email protected]>
Date:   Thu Aug 3 15:43:32 2023 +0800

    fix counterexamples

commit 94663ee
Author: negiizhao <[email protected]>
Date:   Thu Aug 3 14:22:22 2023 +0800

    lint style

commit 426dd03
Author: negiizhao <[email protected]>
Date:   Thu Aug 3 14:00:46 2023 +0800

    refactor: make `CanonicallyOrdered...` mixin

    I think this is the proposed refactor.

    However it seems that all things get slower... :(

    Need more love to speed it up.
@leanprover-bot
Copy link
Copy Markdown
Collaborator

Here are the benchmark results for commit ec6b1cc.
There were significant changes against commit 0cc1f97:

  Benchmark                                               Metric         Change
  =============================================================================
- ~Mathlib.Algebra.Order.CauSeq.Basic                     instructions    16.6%
- ~Mathlib.Algebra.Order.Floor                            instructions    50.8%
- ~Mathlib.Algebra.Order.ToIntervalMod                    instructions    54.2%
- ~Mathlib.Analysis.Convex.Deriv                          instructions    20.8%
- ~Mathlib.Analysis.Convex.Jensen                         instructions    20.4%
- ~Mathlib.Analysis.Convex.Mul                            instructions    21.0%
- ~Mathlib.Analysis.Convex.Side                           instructions    12.5%
+ ~Mathlib.Analysis.MeanInequalitiesPow                   instructions   -20.5%
- ~Mathlib.Combinatorics.SimpleGraph.Regularity.Uniform   instructions    25.1%
+ ~Mathlib.LinearAlgebra.Orientation                      instructions   -15.5%
+ ~Mathlib.Topology.Algebra.Field                         instructions   -29.7%
- ~Mathlib.Topology.Instances.AddCircle                   instructions    20.0%

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2025

File Instructions %
build -51.504⬝10⁹ (-0.03%)
Mathlib.Algebra.Order.Floor +61.414⬝10⁹ (+50.76%)
Mathlib.Algebra.Order.ToIntervalMod +43.385⬝10⁹ (+54.22%)
Mathlib.Analysis.Convex.Mul +15.497⬝10⁹ (+20.98%)
Mathlib.Algebra.Order.CauSeq.Basic +14.452⬝10⁹ (+16.63%)
Mathlib.Analysis.Convex.Deriv +13.142⬝10⁹ (+20.80%)
3 files, Instructions +11.0⬝10⁹
File Instructions %
Mathlib.Analysis.Convex.Side +11.495⬝10⁹ (+12.54%)
Mathlib.Combinatorics.SimpleGraph.Regularity.Uniform +11.356⬝10⁹ (+25.06%)
Mathlib.Analysis.Convex.Jensen +11.54⬝10⁹ (+20.38%)
File Instructions %
Mathlib.Topology.Instances.AddCircle +10.983⬝10⁹ (+20.01%)
Mathlib.GroupTheory.ArchimedeanDensely +9.631⬝10⁹ (+15.43%)
2 files, Instructions +8.0⬝10⁹
File Instructions %
Mathlib.Algebra.Order.Archimedean.Basic +8.484⬝10⁹ (+14.35%)
Mathlib.Analysis.Convex.Between +8.387⬝10⁹ (+8.63%)
3 files, Instructions +7.0⬝10⁹
File Instructions %
Mathlib.Algebra.Order.CauSeq.Completion +7.993⬝10⁹ (+31.04%)
Mathlib.LinearAlgebra.Ray +7.851⬝10⁹ (+11.06%)
Mathlib.Analysis.Convex.Combination +7.729⬝10⁹ (+6.15%)
3 files, Instructions +5.0⬝10⁹
File Instructions %
Mathlib.Order.Filter.AtTopBot.Archimedean +5.396⬝10⁹ (+28.05%)
Mathlib.Topology.Algebra.Order.Field +5.240⬝10⁹ (+14.85%)
Mathlib.Topology.Algebra.Order.Floor +5.149⬝10⁹ (+30.22%)
4 files, Instructions +4.0⬝10⁹
File Instructions %
Mathlib.Data.Int.Log +4.843⬝10⁹ (+15.40%)
Mathlib.Analysis.PSeries +4.160⬝10⁹ (+6.36%)
Mathlib.Analysis.Convex.Topology +4.137⬝10⁹ (+9.92%)
Mathlib.Data.Rat.Floor +4.62⬝10⁹ (+22.30%)
7 files, Instructions +3.0⬝10⁹
File Instructions %
Mathlib.Analysis.MeanInequalities +3.993⬝10⁹ (+4.80%)
Mathlib.Algebra.ContinuedFractions.Computation.Approximations +3.873⬝10⁹ (+11.37%)
Mathlib.MeasureTheory.Integral.SetToL1 +3.661⬝10⁹ (+1.20%)
Mathlib.Tactic.NormNum.Ineq +3.653⬝10⁹ (+18.30%)
Mathlib.LinearAlgebra.RootSystem.RootPositive +3.306⬝10⁹ (+8.04%)
Mathlib.Algebra.AddConstMap.Basic +3.300⬝10⁹ (+8.48%)
Mathlib.Algebra.Order.CauSeq.BigOperators +3.285⬝10⁹ (+8.77%)
10 files, Instructions +2.0⬝10⁹
File Instructions %
Mathlib.Analysis.Normed.Order.Lattice +2.732⬝10⁹ (+18.36%)
Mathlib.MeasureTheory.Function.SimpleFuncDenseLp +2.732⬝10⁹ (+2.26%)
Mathlib.NumberTheory.Padics.PadicNumbers +2.595⬝10⁹ (+4.24%)
Mathlib.Algebra.Order.CompleteField +2.513⬝10⁹ (+9.83%)
Mathlib.Topology.Semicontinuous +2.452⬝10⁹ (+5.44%)
Mathlib.Topology.Algebra.Order.Group +2.298⬝10⁹ (+13.83%)
Mathlib.GroupTheory.Archimedean +2.244⬝10⁹ (+24.22%)
Mathlib.Algebra.Order.Nonneg.Ring +2.98⬝10⁹ (+7.93%)
Mathlib.Analysis.Asymptotics.SuperpolynomialDecay +2.36⬝10⁹ (+8.27%)
Mathlib.LinearAlgebra.RootSystem.Finite.Lemmas +2.32⬝10⁹ (+1.06%)
24 files, Instructions +1.0⬝10⁹
File Instructions %
Mathlib.Algebra.Order.Ring.InjSurj +1.971⬝10⁹ (+8.20%)
Mathlib.RingTheory.Polynomial.Cyclotomic.Eval +1.923⬝10⁹ (+5.13%)
Mathlib.Analysis.Convex.BetweenList +1.872⬝10⁹ (+5.29%)
Mathlib.Algebra.Order.Chebyshev +1.871⬝10⁹ (+11.82%)
Mathlib.NumberTheory.Padics.Hensel +1.835⬝10⁹ (+2.30%)
Mathlib.Topology.Algebra.Order.Archimedean +1.818⬝10⁹ (+27.77%)
Mathlib.Analysis.Polynomial.Basic +1.797⬝10⁹ (+8.86%)
Mathlib.Combinatorics.SimpleGraph.Regularity.Bound +1.751⬝10⁹ (+4.34%)
Mathlib.Algebra.Field.Periodic +1.673⬝10⁹ (+12.25%)
Mathlib.Algebra.ContinuedFractions.Computation.TerminatesIffRat +1.660⬝10⁹ (+16.56%)
Mathlib.Analysis.Convex.SimplicialComplex.Basic +1.464⬝10⁹ (+11.39%)
Mathlib.MeasureTheory.Function.LpOrder +1.428⬝10⁹ (+13.02%)
Mathlib.Algebra.Order.Round +1.389⬝10⁹ (+4.54%)
Mathlib.Topology.ContinuousMap.Bounded.Normed +1.381⬝10⁹ (+2.02%)
Mathlib.Topology.UnitInterval +1.329⬝10⁹ (+4.32%)
Mathlib.Algebra.Order.Monoid.Basic +1.312⬝10⁹ (+22.77%)
Mathlib.Analysis.Convex.Cone.Basic +1.311⬝10⁹ (+3.45%)
Mathlib.Analysis.Convex.Caratheodory +1.245⬝10⁹ (+8.82%)
Mathlib.Data.Real.Pointwise +1.211⬝10⁹ (+9.61%)
Mathlib.Analysis.Convex.Extreme +1.197⬝10⁹ (+8.24%)
Mathlib.NumberTheory.ClassNumber.Finite +1.195⬝10⁹ (+1.71%)
Mathlib.Analysis.Convex.Radon +1.177⬝10⁹ (+6.40%)
Mathlib.Probability.Martingale.Basic +1.162⬝10⁹ (+3.22%)
Mathlib.Data.Complex.Norm +1.141⬝10⁹ (+5.49%)
61 files, Instructions -2.0⬝10⁹
File Instructions %
Mathlib.Geometry.Manifold.VectorField.LieBracket -1.8⬝10⁹ (-1.04%)
Mathlib.Analysis.Calculus.FDeriv.Symmetric -1.37⬝10⁹ (-0.81%)
Mathlib.Analysis.InnerProductSpace.l2Space -1.38⬝10⁹ (-1.12%)
Mathlib.Analysis.Normed.Order.UpperLower -1.55⬝10⁹ (-5.78%)
Mathlib.MeasureTheory.Integral.BochnerL1 -1.66⬝10⁹ (-1.13%)
Mathlib.Analysis.Convex.Quasiconvex -1.69⬝10⁹ (-6.14%)
Mathlib.Analysis.Analytic.IsolatedZeros -1.120⬝10⁹ (-1.38%)
Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Basic -1.124⬝10⁹ (-0.62%)
Mathlib.Analysis.Convex.Strict -1.145⬝10⁹ (-2.93%)
Mathlib.Analysis.Calculus.VectorField -1.159⬝10⁹ (-1.23%)
Mathlib.Geometry.Manifold.MFDeriv.SpecificFunctions -1.218⬝10⁹ (-1.05%)
Mathlib.MeasureTheory.Integral.Prod -1.238⬝10⁹ (-2.96%)
Mathlib.Algebra.Order.BigOperators.Ring.Finset -1.244⬝10⁹ (-3.08%)
Mathlib.Geometry.Manifold.ContMDiff.NormedSpace -1.254⬝10⁹ (-0.71%)
Mathlib.Analysis.InnerProductSpace.PiL2 -1.254⬝10⁹ (-0.57%)
Mathlib.MeasureTheory.Integral.Average -1.272⬝10⁹ (-1.98%)
Mathlib.Geometry.Euclidean.Angle.Oriented.RightAngle -1.273⬝10⁹ (-2.04%)
Mathlib.NumberTheory.LSeries.HurwitzZetaEven -1.276⬝10⁹ (-1.75%)
Mathlib.Analysis.SpecialFunctions.BinaryEntropy -1.289⬝10⁹ (-2.63%)
Mathlib.Analysis.InnerProductSpace.Orientation -1.301⬝10⁹ (-2.55%)
Mathlib.Topology.MetricSpace.HausdorffDimension -1.323⬝10⁹ (-4.18%)
Mathlib.Analysis.LocallyConvex.WeakOperatorTopology -1.350⬝10⁹ (-2.30%)
Mathlib.Analysis.BoxIntegral.Basic -1.380⬝10⁹ (-1.64%)
Mathlib.Algebra.QuadraticDiscriminant -1.382⬝10⁹ (-5.19%)
Mathlib.Analysis.Calculus.ContDiff.Bounds -1.386⬝10⁹ (-0.84%)
Mathlib.MeasureTheory.Covering.Differentiation -1.391⬝10⁹ (-2.45%)
Mathlib.NumberTheory.NumberField.CanonicalEmbedding.ConvexBody -1.397⬝10⁹ (-1.13%)
Mathlib.Analysis.Normed.Module.FiniteDimension -1.422⬝10⁹ (-1.29%)
Mathlib.MeasureTheory.Measure.MeasureSpace -1.431⬝10⁹ (-2.18%)
Mathlib.Geometry.Euclidean.Angle.Oriented.Basic -1.432⬝10⁹ (-1.27%)
Mathlib.Analysis.Fourier.FourierTransform -1.433⬝10⁹ (-1.61%)
Mathlib.Analysis.CStarAlgebra.Module.Constructions -1.434⬝10⁹ (-2.15%)
Mathlib.Analysis.Calculus.FDeriv.Measurable -1.438⬝10⁹ (-1.38%)
Mathlib.MeasureTheory.Measure.Hausdorff -1.445⬝10⁹ (-1.82%)
Mathlib.MeasureTheory.Function.Jacobian -1.445⬝10⁹ (-1.27%)
Mathlib.Analysis.Analytic.Basic -1.446⬝10⁹ (-0.48%)
Mathlib.Geometry.Manifold.MFDeriv.NormedSpace -1.449⬝10⁹ (-0.64%)
Mathlib.Analysis.CStarAlgebra.CStarMatrix -1.452⬝10⁹ (-0.98%)
Mathlib.NumberTheory.NumberField.Units.DirichletTheorem -1.457⬝10⁹ (-1.50%)
Mathlib.NumberTheory.NumberField.Embeddings -1.468⬝10⁹ (-1.31%)
Mathlib.Analysis.Calculus.LineDeriv.Basic -1.474⬝10⁹ (-2.35%)
Mathlib.Analysis.Convex.Segment -1.485⬝10⁹ (-2.07%)
Mathlib.Analysis.Normed.Group.AddCircle -1.518⬝10⁹ (-5.40%)
Mathlib.MeasureTheory.Measure.Lebesgue.EqHaar -1.544⬝10⁹ (-1.36%)
Mathlib.NumberTheory.LSeries.ZMod -1.552⬝10⁹ (-2.84%)
Mathlib.Analysis.Calculus.FDeriv.Equiv -1.599⬝10⁹ (-1.84%)
Mathlib.Analysis.CStarAlgebra.Module.Defs -1.602⬝10⁹ (-2.13%)
Mathlib.Analysis.InnerProductSpace.Adjoint -1.643⬝10⁹ (-0.65%)
Mathlib.Algebra.Star.CHSH -1.662⬝10⁹ (-7.01%)
Mathlib.MeasureTheory.Measure.LevyProkhorovMetric -1.703⬝10⁹ (-3.63%)
Mathlib.Analysis.Fourier.AddCircleMulti -1.734⬝10⁹ (-3.24%)
Mathlib.NumberTheory.Cyclotomic.Rat -1.766⬝10⁹ (-1.49%)
Mathlib.NumberTheory.Cyclotomic.PrimitiveRoots -1.803⬝10⁹ (-2.38%)
Mathlib.Analysis.Calculus.Implicit -1.808⬝10⁹ (-1.33%)
Mathlib.NumberTheory.NumberField.Discriminant.Basic -1.828⬝10⁹ (-1.29%)
Mathlib.LinearAlgebra.AffineSpace.Ordered -1.864⬝10⁹ (-3.83%)
Mathlib.Analysis.InnerProductSpace.Projection -1.886⬝10⁹ (-0.93%)
Mathlib.Algebra.Homology.HomotopyCategory.Triangulated -1.891⬝10⁹ (-1.42%)
Mathlib.NumberTheory.NumberField.CanonicalEmbedding.Basic -1.955⬝10⁹ (-0.79%)
Mathlib.Analysis.FunctionalSpaces.SobolevInequality -1.971⬝10⁹ (-1.48%)
Mathlib.Analysis.Calculus.Deriv.Mul -1.983⬝10⁹ (-1.13%)
18 files, Instructions -3.0⬝10⁹
File Instructions %
Mathlib.Topology.ContinuousMap.StarOrdered -2.35⬝10⁹ (-9.95%)
Mathlib.NumberTheory.ModularForms.SlashActions -2.94⬝10⁹ (-8.56%)
Mathlib.Analysis.Convex.Join -2.172⬝10⁹ (-6.47%)
Mathlib.Analysis.Convex.StoneSeparation -2.176⬝10⁹ (-10.14%)
Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Instances -2.204⬝10⁹ (-0.91%)
Mathlib.NumberTheory.Modular -2.224⬝10⁹ (-2.61%)
Mathlib.NumberTheory.FLT.Three -2.255⬝10⁹ (-1.74%)
Mathlib.RingTheory.LaurentSeries -2.262⬝10⁹ (-0.93%)
Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Order -2.389⬝10⁹ (-1.31%)
Mathlib.MeasureTheory.Integral.SetIntegral -2.415⬝10⁹ (-1.74%)
Mathlib.Analysis.Convex.Birkhoff -2.475⬝10⁹ (-6.57%)
Mathlib.MeasureTheory.Measure.Haar.Unique -2.488⬝10⁹ (-2.65%)
Mathlib.Analysis.Fourier.AddCircle -2.560⬝10⁹ (-3.38%)
Mathlib.Analysis.Convex.Cone.Pointed -2.565⬝10⁹ (-11.84%)
Mathlib.MeasureTheory.Function.ConditionalExpectation.CondexpL1 -2.593⬝10⁹ (-2.99%)
Mathlib.Analysis.Fourier.FourierTransformDeriv -2.601⬝10⁹ (-0.70%)
Mathlib.Analysis.Normed.Algebra.Spectrum -2.710⬝10⁹ (-1.81%)
Mathlib.Tactic.Ring.Compare -2.892⬝10⁹ (-10.61%)
11 files, Instructions -4.0⬝10⁹
File Instructions %
Mathlib.MeasureTheory.Function.ConditionalExpectation.CondexpL2 -3.50⬝10⁹ (-2.79%)
Mathlib.Analysis.Calculus.ContDiff.FaaDiBruno -3.65⬝10⁹ (-1.24%)
Mathlib.Algebra.Module.CharacterModule -3.121⬝10⁹ (-5.12%)
Mathlib.Algebra.DualQuaternion -3.127⬝10⁹ (-4.59%)
Mathlib.Algebra.Module.ZLattice.Covolume -3.163⬝10⁹ (-4.10%)
Mathlib.Analysis.Distribution.SchwartzSpace -3.314⬝10⁹ (-1.29%)
Mathlib.Combinatorics.Additive.SmallTripling -3.350⬝10⁹ (-4.61%)
Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Isometric -3.637⬝10⁹ (-1.83%)
Mathlib.Algebra.ContinuedFractions.Computation.CorrectnessTerminating -3.638⬝10⁹ (-11.33%)
Mathlib.LinearAlgebra.Matrix.SchurComplement -3.781⬝10⁹ (-3.19%)
Mathlib.Analysis.Calculus.FDeriv.Analytic -3.813⬝10⁹ (-1.28%)
4 files, Instructions -5.0⬝10⁹
File Instructions %
Mathlib.Analysis.Calculus.ContDiff.FTaylorSeries -4.14⬝10⁹ (-1.30%)
Mathlib.Data.NNRat.Floor -4.113⬝10⁹ (-27.27%)
Mathlib.Analysis.Calculus.ContDiff.Operations -4.417⬝10⁹ (-2.10%)
Mathlib.Algebra.Quaternion -4.943⬝10⁹ (-2.42%)
6 files, Instructions -6.0⬝10⁹
File Instructions %
Mathlib.MeasureTheory.Group.FundamentalDomain -5.65⬝10⁹ (-3.61%)
Mathlib.Analysis.Calculus.ContDiff.Basic -5.165⬝10⁹ (-1.63%)
Mathlib.Analysis.Calculus.ContDiff.Defs -5.408⬝10⁹ (-2.35%)
Mathlib.LinearAlgebra.SesquilinearForm -5.615⬝10⁹ (-3.82%)
Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unital -5.715⬝10⁹ (-3.70%)
Mathlib.Analysis.Convex.Basic -5.836⬝10⁹ (-9.31%)
File Instructions %
Mathlib.Analysis.Calculus.FDeriv.Mul -6.69⬝10⁹ (-1.35%)
3 files, Instructions -8.0⬝10⁹
File Instructions %
Mathlib.Algebra.Module.ZLattice.Basic -7.10⬝10⁹ (-4.30%)
Mathlib.Analysis.Convolution -7.299⬝10⁹ (-1.82%)
Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.NonUnital -7.621⬝10⁹ (-2.68%)
File Instructions %
Mathlib.Analysis.Convex.Function -8.876⬝10⁹ (-7.49%)
2 files, Instructions -10.0⬝10⁹
File Instructions %
Mathlib.Analysis.Convex.Slope -9.170⬝10⁹ (-10.48%)
Mathlib.Analysis.Convex.Visible -9.414⬝10⁹ (-11.07%)
File Instructions %
Mathlib.Topology.Algebra.Field -11.228⬝10⁹ (-29.66%)
Mathlib.Analysis.MeanInequalitiesPow -12.27⬝10⁹ (-20.50%)
Mathlib.LinearAlgebra.Orientation -13.314⬝10⁹ (-15.54%)
CI run

@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Apr 5, 2025
@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Apr 5, 2025

Coming here from PR triage: I'm aware this PR is mainly waiting for maintainer review - but for the record, let me also point out that there is a merge conflict. Thanks for this PR; I hope your entire series can land in mathlib soon.

@github-actions github-actions bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Apr 6, 2025
@leanprover-community-bot-assistant
Copy link
Copy Markdown
Collaborator

This pull request has conflicts, please merge master and resolve them.

@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Apr 8, 2025
@github-actions github-actions bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Apr 9, 2025
@kbuzzard
Copy link
Copy Markdown
Member

kbuzzard commented Apr 9, 2025

Thanks!

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Apr 9, 2025
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Apr 9, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: use mixin ordered algebraic typeclasses (part 2) [Merged by Bors] - chore: use mixin ordered algebraic typeclasses (part 2) Apr 9, 2025
@mathlib-bors mathlib-bors bot closed this Apr 9, 2025
@mathlib-bors mathlib-bors bot deleted the FR_ordered_mixin_lemmas2 branch April 9, 2025 10:57
mathlib-bors bot pushed a commit that referenced this pull request Oct 14, 2025
… a single ring of scalars (#29342)

Currently the definition of Absolutely Convex in Mathlib is a little unexpected:
```
def AbsConvex (s : Set E) : Prop := Balanced 𝕜 s ∧ Convex ℝ s
```
At the time this definition was formulated, Mathlib's definition of `Convex` required the scalars to be an `OrderedSemiring` whereas the definition of `Balanced` required the scalars to be a `SeminormedRing`. Mathlib didn't  have a concept of a semi-normed ordered ring, so a set was defined as `AbsConvex` if it is balanced over a `SeminormedRing` `𝕜` and convex over `ℝ`.

Recently the requirements for the definition of `Convex` have been relaxed (#24392, #20595) so it is now possible to use a single scalar ring in common with the literature.

Previous discussion:

- #17029 (comment)
- #26345 (comment)
Jlh18 pushed a commit to Jlh18/mathlib4 that referenced this pull request Oct 24, 2025
… a single ring of scalars (leanprover-community#29342)

Currently the definition of Absolutely Convex in Mathlib is a little unexpected:
```
def AbsConvex (s : Set E) : Prop := Balanced 𝕜 s ∧ Convex ℝ s
```
At the time this definition was formulated, Mathlib's definition of `Convex` required the scalars to be an `OrderedSemiring` whereas the definition of `Balanced` required the scalars to be a `SeminormedRing`. Mathlib didn't  have a concept of a semi-normed ordered ring, so a set was defined as `AbsConvex` if it is balanced over a `SeminormedRing` `𝕜` and convex over `ℝ`.

Recently the requirements for the definition of `Convex` have been relaxed (leanprover-community#24392, leanprover-community#20595) so it is now possible to use a single scalar ring in common with the literature.

Previous discussion:

- leanprover-community#17029 (comment)
- leanprover-community#26345 (comment)
BeibeiX0 pushed a commit to BeibeiX0/mathlib4 that referenced this pull request Nov 7, 2025
… a single ring of scalars (leanprover-community#29342)

Currently the definition of Absolutely Convex in Mathlib is a little unexpected:
```
def AbsConvex (s : Set E) : Prop := Balanced 𝕜 s ∧ Convex ℝ s
```
At the time this definition was formulated, Mathlib's definition of `Convex` required the scalars to be an `OrderedSemiring` whereas the definition of `Balanced` required the scalars to be a `SeminormedRing`. Mathlib didn't  have a concept of a semi-normed ordered ring, so a set was defined as `AbsConvex` if it is balanced over a `SeminormedRing` `𝕜` and convex over `ℝ`.

Recently the requirements for the definition of `Convex` have been relaxed (leanprover-community#24392, leanprover-community#20595) so it is now possible to use a single scalar ring in common with the literature.

Previous discussion:

- leanprover-community#17029 (comment)
- leanprover-community#26345 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc) t-order Order theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants