Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(algebra/field/basic): nnrat.cast #16554

Closed
wants to merge 55 commits into from
Closed

feat(algebra/field/basic): nnrat.cast #16554

wants to merge 55 commits into from

Conversation

YaelDillies
Copy link
Collaborator

@YaelDillies YaelDillies commented Sep 19, 2022

@YaelDillies YaelDillies added WIP Work in progress t-algebra Algebra (groups, rings, fields etc) t-order Order hierarchy labels Sep 19, 2022
@YaelDillies YaelDillies requested a review from a team as a code owner November 4, 2022 07:18
@YaelDillies
Copy link
Collaborator Author

YaelDillies commented Nov 4, 2022

@semorrison, here is the source of my splitting ideas. Basically it's:

  • fix that bogus data.set.intervals.image_preimagedata.set.intervals.unordered_interval import
  • move algebra.order.field further up
  • move algebra.parity further down
  • split algebra.order.nonneg in half

@mathlib-dependent-issues-bot mathlib-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Nov 4, 2022
@mathlib-dependent-issues-bot mathlib-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Mar 17, 2023
Copy link
Member

Choose a reason for hiding this comment

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

The changes to this file are unrelated cleanup, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -143,6 +143,8 @@ alias even.zpow_pos_iff ↔ _ even.zpow_pos
alias odd.zpow_neg_iff ↔ _ odd.zpow_neg
alias odd.zpow_nonpos_iff ↔ _ odd.zpow_nonpos

@[simp] lemma abs_zpow (a : α) (n : ℤ) : |a ^ n| = |a| ^ n := map_zpow₀ (abs_hom : α →*₀ α) a n
Copy link
Member

Choose a reason for hiding this comment

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

This feels like a weird place for this lemma; do we have abs_inv and abs_div already that it could go next to?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We do have the lemmas in algebra.order.field.basic, but map_zpow₀ isn't available there. Also note that algebra.order.field.power is precisely about zpow and nothing else.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, in which case I'll reduce my comment to "surely this doesn't belong in this PR"!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will swallow it up with a few other isolated lemmas once #18607 and #18609 are in.

src/data/rat/cast.lean Outdated Show resolved Hide resolved
@mathlib-dependent-issues-bot mathlib-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Mar 18, 2023
@eric-wieser eric-wieser self-assigned this Apr 9, 2023
@semorrison semorrison added the too-late This PR was ready too late for inclusion in mathlib3 label Jul 16, 2023
@semorrison semorrison removed request for a team August 6, 2023 09:58
eric-wieser added a commit to leanprover-community/mathlib4 that referenced this pull request Jan 5, 2024
…ditive monoids

While many of the lemmas cease to apply,
the definitions of sequences and their sums are still perfectly well-behaved in additive monoids;
no negation is needed.

We could use this to generalize `NormedSpace.exp` such that it works with `NNReal`,
but unless leanprover-community/mathlib#16554 or similar lands and provides a `DivisionSemiring.nnqsmul` field,
that would conflict with #8370.
@mathlib-dependent-issues-bot mathlib-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Feb 9, 2024
@YaelDillies
Copy link
Collaborator Author

Redone in leanprover-community/mathlib4#11203.

@YaelDillies YaelDillies closed this Mar 8, 2024
@YaelDillies YaelDillies deleted the nnrat_cast branch March 8, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-algebra Algebra (groups, rings, fields etc) t-order Order hierarchy too-late This PR was ready too late for inclusion in mathlib3 WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants