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

[Merged by Bors] - fix(library/init/meta/interactive): fix let with coe_sort #555

Closed
wants to merge 6 commits into from

Conversation

gebner
Copy link
Member

@gebner gebner commented Mar 16, 2021

gebner and others added 2 commits March 16, 2021 12:34
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@gebner
Copy link
Member Author

gebner commented Mar 16, 2021

bors r+

bors bot pushed a commit that referenced this pull request Mar 16, 2021
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@bors
Copy link

bors bot commented Mar 16, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title fix(library/init/meta/interactive): fix let with coe_sort [Merged by Bors] - fix(library/init/meta/interactive): fix let with coe_sort Mar 16, 2021
@bors bors bot closed this Mar 16, 2021
@bors bors bot deleted the let_coe_sort branch March 16, 2021 17:28
bors bot pushed a commit to leanprover-community/mathlib that referenced this pull request Jun 4, 2022
We make the behaviour of `tactic.interactive.set` closer to that of `tactic.interactive.let`, this should fix the following issue reported in https://leanprover.zulipchat.com/#narrow/stream/113489-new-members/topic/set.20bug.3F/near/284471523:
```lean
import ring_theory.adjoin.basic

example {R S : Type*} [comm_ring R] [comm_ring S] [algebra R S] (x : S): false :=
begin
  let y : algebra.adjoin R ({x} : set S) := ⟨x, algebra.self_mem_adjoin_singleton R x⟩, -- works
  set y : algebra.adjoin R ({x} : set S) := ⟨x, algebra.self_mem_adjoin_singleton R x⟩, -- error
  sorry
end
```
This is related to [lean#555
](leanprover-community/lean#555)

I also fix two completely unrelated docstrings (where the list syntax created two lists instead of one) as I wouldn't want to separately add them to CI...
tomaz1502 pushed a commit to leanprover-community/mathlib that referenced this pull request Jun 5, 2022
We make the behaviour of `tactic.interactive.set` closer to that of `tactic.interactive.let`, this should fix the following issue reported in https://leanprover.zulipchat.com/#narrow/stream/113489-new-members/topic/set.20bug.3F/near/284471523:
```lean
import ring_theory.adjoin.basic

example {R S : Type*} [comm_ring R] [comm_ring S] [algebra R S] (x : S): false :=
begin
  let y : algebra.adjoin R ({x} : set S) := ⟨x, algebra.self_mem_adjoin_singleton R x⟩, -- works
  set y : algebra.adjoin R ({x} : set S) := ⟨x, algebra.self_mem_adjoin_singleton R x⟩, -- error
  sorry
end
```
This is related to [lean#555
](leanprover-community/lean#555)

I also fix two completely unrelated docstrings (where the list syntax created two lists instead of one) as I wouldn't want to separately add them to CI...
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.

None yet

2 participants