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

chore: changes to adapt to leanprover/lean4#2644 #7606

Closed
wants to merge 499 commits into from

Conversation

semorrison
Copy link
Contributor

@semorrison semorrison commented Oct 10, 2023

@@ -34,7 +34,8 @@ def monoidalClosedHomEquiv (M N P : ModuleCat.{u} R) :
left_inv f := by
apply TensorProduct.ext'
intro m n
rw [coe_comp, Function.comp_apply, MonoidalCategory.braiding_hom_apply,
-- This used to be `rw`, but we need `erw` after leanprover/lean4#2644
erw [coe_comp, Function.comp_apply, MonoidalCategory.braiding_hom_apply,
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is some strange behavior here. If I break out the terms that need erw then the following closes the goal alone

    erw [coe_comp]
    rw [Function.comp_apply] 
    erw [MonoidalCategory.braiding_hom_apply, TensorProduct.lift.tmul] 

semorrison added a commit that referenced this pull request Oct 15, 2023
semorrison and others added 5 commits October 16, 2023 09:20
Comment on lines 78 to 80
-- This lemma has always been bad, but lean4#2644 made `simp` start noticing
@[simp, nolint simpNF]
theorem ε_apply (r : R) : ε R r = Finsupp.single PUnit.unit r :=
Copy link
Member

Choose a reason for hiding this comment

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

If ε is an implementation detail, then presumably we can use local simp here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Feel free to make such changes yourself, but otherwise I'm going to leave these for "later".

Comment on lines -118 to -128
namespace NameSet

/-- The union of two `NameSet`s. -/
def append (s t : NameSet) : NameSet :=
s.mergeBy (fun _ _ _ => .unit) t

instance : Append NameSet where
append := NameSet.append

end NameSet

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can ignore the changes to this file. They are needed here to get Mathlib to compile against this toolchain, but do not need to be reviewed.

semorrison and others added 2 commits October 16, 2023 13:13
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@semorrison
Copy link
Contributor Author

Closing in favour of the actual bump PR, #7703

bors bot pushed a commit that referenced this pull request Oct 16, 2023
This includes all the changes from #7606.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Oct 16, 2023
@semorrison semorrison closed this Oct 16, 2023
@PatrickMassot PatrickMassot deleted the lean-pr-testing-2644 branch January 12, 2024 14:08
@PatrickMassot PatrickMassot restored the lean-pr-testing-2644 branch January 12, 2024 14:08
@PatrickMassot PatrickMassot deleted the lean-pr-testing-2644 branch January 15, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review The author would like community review of the PR blocked-by-core-release Not relevant for the current Lean release candidate, but will be needed for the next. merge-conflict The PR has a merge conflict with master, and needs manual merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants