Skip to content

[Merged by Bors] - chore(Algebra/Order/Monoid/Unbundled/WithTop): golf, clean up#22109

Closed
YaelDillies wants to merge 4 commits intomasterfrom
golf_add_with_bot_top
Closed

[Merged by Bors] - chore(Algebra/Order/Monoid/Unbundled/WithTop): golf, clean up#22109
YaelDillies wants to merge 4 commits intomasterfrom
golf_add_with_bot_top

Conversation

@YaelDillies
Copy link
Copy Markdown
Contributor

  • Shorten proofs
  • Make the WithBot and WithTop sections analogous
  • Avoid relying on the defeq (WithTop α)ᵒᵈ = WithBot αᵒᵈ
  • Pull more implicit variables to variable statements
  • Stick to the convention that a b : α and x y : WithBot α

This is a follow-up to #21274.


Open in Gitpod

* Shorten proofs
* Make the `WithBot` and `WithTop` sections analogous
* Avoid relying on the defeq `(WithTop α)ᵒᵈ = WithBot αᵒᵈ`
* Pull more implicit variables to `variable` statements
* Stick to the convention that `a b : α` and `x y : WithBot α`

This is a follow-up to #21274.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 20, 2025

PR summary 62656212bf

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Algebra.Order.Monoid.Unbundled.WithTop 213 215 +2 (+0.94%)
Mathlib.Algebra.Order.AddGroupWithTop 230 232 +2 (+0.87%)
Import changes for all files
Files Import difference
4 files Mathlib.Algebra.Order.PUnit Mathlib.Algebra.Order.SuccPred.WithBot Mathlib.RingTheory.HahnSeries.Addition Mathlib.RingTheory.HahnSeries.Basic
-2
9 files Mathlib.Algebra.BigOperators.WithTop Mathlib.Algebra.Order.Ring.WithTop Mathlib.Combinatorics.SimpleGraph.Diam Mathlib.Combinatorics.SimpleGraph.Metric Mathlib.Data.ENat.Basic Mathlib.Data.ENat.Lattice Mathlib.NumberTheory.Padics.PadicVal.Defs Mathlib.Order.Height Mathlib.RingTheory.Multiplicity
-1
5 files Mathlib.Algebra.Order.AddGroupWithTop Mathlib.Algebra.Order.Monoid.Unbundled.WithTop Mathlib.Algebra.Order.Monoid.WithTop Mathlib.Algebra.Order.Sub.WithTop Mathlib.Data.Nat.Cast.WithTop
2

Declarations diff

+ addLECancellable_coe
+ addLECancellable_iff_ne_bot
+ addLECancellable_of_lt_bot
+ addLECancellable_of_ne_bot
++ add_left_inj
++ add_right_inj
++-- add_le_add_iff_left
++-- add_le_add_iff_right
++-- add_left_cancel
++-- add_left_cancel_iff
++-- add_lt_add_iff_left
++-- add_lt_add_iff_right
++-- add_lt_add_left
++-- add_lt_add_right
++-- add_right_cancel
++-- add_right_cancel_iff
++-- le_of_add_le_add_left
++-- le_of_add_le_add_right
-+-+ addLeftMono
-+-+ addLeftReflectLT
-+-+ addRightMono
-+-+ addRightReflectLT

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 relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions bot added the t-algebra Algebra (groups, rings, fields, etc) label Feb 20, 2025
@ocfnash
Copy link
Copy Markdown
Contributor

ocfnash commented Feb 21, 2025

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Feb 21, 2025
mathlib-bors bot pushed a commit that referenced this pull request Feb 21, 2025
* Shorten proofs
* Make the `WithBot` and `WithTop` sections analogous
* Avoid relying on the defeq `(WithTop α)ᵒᵈ = WithBot αᵒᵈ`
* Pull more implicit variables to `variable` statements
* Stick to the convention that `a b : α` and `x y : WithBot α`

This is a follow-up to #21274.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Feb 21, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(Algebra/Order/Monoid/Unbundled/WithTop): golf, clean up [Merged by Bors] - chore(Algebra/Order/Monoid/Unbundled/WithTop): golf, clean up Feb 21, 2025
@mathlib-bors mathlib-bors bot closed this Feb 21, 2025
@mathlib-bors mathlib-bors bot deleted the golf_add_with_bot_top branch February 21, 2025 15:59
Julian added a commit that referenced this pull request Feb 22, 2025
* origin/master:
  chore(*): add `@[fun_prop]` (#22183)
  chore(RingTheory): generalize universes for `isUnramified_iff_map_eq` (#22185)
  chore(Algebra/GroupPower/IterateHom): move all lemmas earlier (#22132)
  feat(Probability): ae filter and integrability wrt a composition of kernel and measure (#22074)
  feat(CategoryTheory): forgetting the group structure on the codomain of left-exact functors (#21973)
  feat(CategoryTheory): embeddings for opposites of Grothendieck abelian categories (#22182)
  feat(CategoryTheory): `AsSmall C` is abelian (#22184)
  feat(CategoryTheory): explicit argument versions of `epi_comp` and `mono_comp` (#22181)
  feat(Topology/Instances/EReal/Lemmas): add lemmas about limsup and multiplication (#21833)
  feat: basic structural lemmas about finite crystallographic root pairings. (#21932)
  Rename `Mem𝓛p` to `MemLp` (#22164)
  feat(Logic/Equiv): Upgrade arrowProdEquivProdArrow to dependent types (#21518)
  feat(CategoryTheory): Grothendieck abelian categories have enough injectives (#20079)
  chore: deprecate Finite.cast_card_eq_mk (#22161)
  feat(CategoryTheory/Limits/Fubini): relax `HasLimits` hypotheses (#20570)
  chore(Algebra/Order/Monoid/Unbundled/WithTop): golf, clean up (#22109)
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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants