Skip to content

[Merged by Bors] - feat(LinearAlgebra/AffineSpace/Ordered): add lineMap_le_lineMap_iff_of_lt' - #27257

Closed
JovanGerb wants to merge 6 commits into
leanprover-community:masterfrom
JovanGerb:Jovan-lineMap
Closed

JovanGerb wants to merge 6 commits into
leanprover-community:masterfrom
JovanGerb:Jovan-lineMap

Conversation

@JovanGerb

Copy link
Copy Markdown
Contributor

I only need lineMap_le_lineMap_iff_of_lt'. The other lemmas are added for completeness.


Open in Gitpod

@github-actions github-actions Bot added the t-algebra Algebra (groups, rings, fields, etc) label Jul 18, 2025
@github-actions

github-actions Bot commented Jul 18, 2025 •

Copy link
Copy Markdown

PR summary cf2d648303

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ left_le_lineMap_iff_nonneg
+ left_lt_lineMap_iff_pos
+ lineMap_le_left_iff_nonpos
+ lineMap_le_lineMap_iff_of_lt'
+ lineMap_le_right_iff_le_one
+ lineMap_lt_left_iff_neg
+ lineMap_lt_lineMap_iff_of_lt'
+ lineMap_lt_right_iff_lt_one
+ right_le_lineMap_iff_one_le
+ right_lt_lineMap_iff_one_lt

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).

@JovanGerb JovanGerb mentioned this pull request Jul 18, 2025
1 task done

@Ruben-VandeVelde Ruben-VandeVelde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maintainer merge

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde.

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jul 24, 2025
@kbuzzard kbuzzard added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Aug 1, 2025
@JovanGerb JovanGerb removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Sep 1, 2025
@JovanGerb

JovanGerb commented Sep 1, 2025 •

Copy link
Copy Markdown
Contributor Author

(I did add the lemmas suggested by @eric-wieser)

@kbuzzard

Copy link
Copy Markdown
Member

Oh sorry -- I just saw that the comment hadn't been resolved so figured the ball was still in your court. Feel free to resolve comments which you've dealt with! I've heard people say "Oh I wanted to make sure that the reviewer noticed what I did and checked it was done to their satisfaction and resolved it themselves" but I think that this approach causes more confusion than helping.

@kbuzzard kbuzzard left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay on this, I don't read github notifications so I don't notice when I am assigned PRs. I am confused about whether we should be developing a theory of OrderedSMul at all but only because of a TODO comment in another file. Can you clarify? If the answer is that this TODO comment is just wrong then can you ping me on Zulip mentioning PR #27257 and I'll merge. I'm travelling and giving some talks at the minute so finding time for mathlib is hard.

section

variable [Ring k] [LinearOrder k] [IsOrderedRing k]
[AddCommGroup E] [PartialOrder E] [IsOrderedAddMonoid E] [Module k E] [OrderedSMul k E]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you reconcile proving new lemmas about OrderedSMul with the comment in the module docstring of Mathlib.Algebra.Order.Module.OrderedSMul saying "TODO This file is now mostly useless. We should try deleting [OrderedSMul]"? Do you understand why this comment is there? Should you be doing something else instead of OrderedSMul or is this docstring comment just wrong?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Kevin has a point here. According to this comment we should be using PosSMulStrictMono and / or PosSMulReflectLT instead.

Could you please try that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I merged master, and OrderedSMul has been deprecated there, so I changed the assumptions to be in line with the rest of this file

@ocfnash ocfnash added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Sep 15, 2025
@JovanGerb JovanGerb removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Sep 18, 2025
@riccardobrasca

Copy link
Copy Markdown
Member

@kbuzzard are you happy with this?

@ocfnash

ocfnash commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

Thanks!

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Sep 22, 2025
mathlib-bors Bot pushed a commit that referenced this pull request Sep 22, 2025
…of_lt'` (#27257)

I only need `lineMap_le_lineMap_iff_of_lt'`. The other lemmas are added for completeness.
@mathlib-bors

mathlib-bors Bot commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(LinearAlgebra/AffineSpace/Ordered): add lineMap_le_lineMap_iff_of_lt' [Merged by Bors] - feat(LinearAlgebra/AffineSpace/Ordered): add lineMap_le_lineMap_iff_of_lt' Sep 22, 2025
@mathlib-bors mathlib-bors Bot closed this Sep 22, 2025
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Oct 2, 2025
…of_lt'` (leanprover-community#27257)

I only need `lineMap_le_lineMap_iff_of_lt'`. The other lemmas are added for completeness.
zhuyizheng pushed a commit to zhuyizheng/mathlib4 that referenced this pull request Oct 2, 2025
…of_lt'` (leanprover-community#27257)

I only need `lineMap_le_lineMap_iff_of_lt'`. The other lemmas are added for completeness.
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.

6 participants