Skip to content

chore: adaptations for nightly-2024-02-01 - #10154

Merged
kim-em merged 13 commits into
bump/v4.6.0from
adaptations_nightly-2024-02-01
Feb 2, 2024
Merged

kim-em merged 13 commits into
bump/v4.6.0from
adaptations_nightly-2024-02-01

Conversation

@kim-em

@kim-em kim-em commented Feb 1, 2024 •

Copy link
Copy Markdown
Contributor

This is the adaptation PR for nightly-2024-02-01.

In rolls in the branches

As these both landed in the same nightly, we're having to do the update in one go.

Note this nightly is intended to become v4.6.0-rc1 tomorrow.


Open in Gitpod

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

The diff looks pretty harmless to me (other than the tactic stuff, which I don't understand) but there are a couple of funny set_options and I don't know if this is intentional (edit: it almost certainly isn't; I've just removed them and things work fine)

Comment thread Mathlib/Algebra/Order/WithZero.lean Resolved
@mattrobball

mattrobball commented Feb 1, 2024 •

Copy link
Copy Markdown
Contributor

Thanks. I looked over the changes last night from #9843 and everything looked good except that. I thought I pushed a fix though.

Not intentional. Left over from debugging.

@mattrobball mattrobball 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.

Some unnecessary lines.

Comment thread Mathlib/Algebra/Module/Injective.lean Resolved
Comment thread Mathlib/Data/Sign.lean Resolved
Comment thread Mathlib/Algebra/Lie/Subalgebra.lean Resolved
Comment thread Mathlib/Algebra/Lie/Subalgebra.lean Resolved
Comment thread Mathlib/Algebra/Lie/Submodule.lean Resolved
Comment thread Mathlib/Tactic/NormNum/Core.lean Resolved
Comment on lines -599 to +603
-- is not achieved...
-- is not achieved... Previous attempt was
-- { @FractionalIdeal.commSemiring A _ A⁰ K _ _, -- Project out the computable fields first.
-- (by infer_instance : CancelCommMonoidWithZero (FractionalIdeal A⁰ K)) with }
noncomputable instance FractionalIdeal.cancelCommMonoidWithZero :
CancelCommMonoidWithZero (FractionalIdeal A⁰ K) :=
{ @FractionalIdeal.commSemiring A _ A⁰ K _ _, -- Project out the computable fields first.
(by infer_instance : CancelCommMonoidWithZero (FractionalIdeal A⁰ K)) with }
CancelCommMonoidWithZero (FractionalIdeal A⁰ K) := inferInstance

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.

#10173 contains a fix for this that works on master and this branch.

show Units.map g β⁻¹ / β⁻¹ = Additive.toMul (x.1 g)
rw [map_inv, div_inv_eq_mul, mul_comm]
exact mul_inv_eq_iff_eq_mul.2 (hβ g).symm
apply mul_inv_eq_iff_eq_mul.2 (hβ g).symm

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.

Why does exact fail here?

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.

My guess is transparency

@kim-em
kim-em merged commit a465d25 into bump/v4.6.0 Feb 2, 2024
@mathlib-bors
mathlib-bors Bot deleted the adaptations_nightly-2024-02-01 branch February 2, 2024 00:15
@kim-em kim-em mentioned this pull request Feb 3, 2024
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants