Skip to content

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

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

chore: adaptations for nightly-2024-02-01#10154
kim-em merged 13 commits intobump/v4.6.0from
adaptations_nightly-2024-02-01

Conversation

@kim-em
Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown
Member

@kbuzzard kbuzzard left a comment

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)

@mattrobball
Copy link
Copy Markdown
Contributor

mattrobball commented Feb 1, 2024

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.

Copy link
Copy Markdown
Contributor

@mattrobball mattrobball left a comment

Choose a reason for hiding this comment

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

Some unnecessary lines.

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