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: adapt to lean4#2738 #7872

Closed
wants to merge 747 commits into from
Closed

chore: adapt to lean4#2738 #7872

wants to merge 747 commits into from

Conversation

thorimur
Copy link
Collaborator

@thorimur thorimur commented Oct 23, 2023

leanprover/lean4#2738 causes rw [foo] to look for foo in the local context instead of the environment. However, some proofs relied on the opposite behavior; many were of the form

theorem foo : ... := by
  ...
  rw [foo] -- actually refers to a different `foo` already in the environment

We fix this simply by namespacing the constant:

theorem foo : ... := by
  ...
  rw [Bar.foo] -- actually refers to a different `foo` already in the environment

This has the nice side effect of making the code more readable by clarifying which foo we're referring to.


Open in Gitpod

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 26, 2023
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Oct 26, 2023
eric-wieser added a commit that referenced this pull request Oct 31, 2023
bors bot pushed a commit that referenced this pull request Oct 31, 2023
This incorporates changes from 

* #7845
* #7847
* #7853
* #7872 (was never actually made to work, but the diffs in `nightly-testing` are unexciting: we need to fully qualify a few names)

They can all be closed when this is merged.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@kim-em
Copy link
Contributor

kim-em commented Oct 31, 2023

This was rolled into #8051.

@kim-em kim-em closed this Oct 31, 2023
fgdorais pushed a commit that referenced this pull request Nov 1, 2023
This incorporates changes from 

* #7845
* #7847
* #7853
* #7872 (was never actually made to work, but the diffs in `nightly-testing` are unexciting: we need to fully qualify a few names)

They can all be closed when this is merged.



Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants