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] - chore(diamonds): appropriate transparency levels for diamond checks #10910

Closed
wants to merge 5 commits into from

Conversation

mattrobball
Copy link
Collaborator

Currently, we have multiple "no-diamond" tests of the form

example : x = y := rfl

where X and Y are instances of some class. The problem is that since simp and type class synthesis operate at reducible_and_instances transparency this check means little.

We went through all the mentions of diamonds and either added with_reducible_and_instancse or added a reference to the issue #10906.


Open in Gitpod

@mattrobball mattrobball added the awaiting-review The author would like community review of the PR label Feb 24, 2024
Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

Can you do test/instance_diamonds too?

@mattrobball
Copy link
Collaborator Author

Now includes test/instance_diamonds

@eric-wieser
Copy link
Member

bors merge

Thanks!

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Feb 24, 2024
mathlib-bors bot pushed a commit that referenced this pull request Feb 24, 2024
…10910)

Currently, we have multiple "no-diamond" tests of the form
```lean
example : x = y := rfl
```
where `X` and `Y` are instances of some `class`. The problem is that since `simp` and type class synthesis operate at `reducible_and_instances` transparency this check means little.

We went through all the mentions of diamonds and either added `with_reducible_and_instancse` or added a reference to the issue #10906.



Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
@mathlib-bors
Copy link

mathlib-bors bot commented Feb 24, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(diamonds): appropriate transparency levels for diamond checks [Merged by Bors] - chore(diamonds): appropriate transparency levels for diamond checks Feb 24, 2024
@mathlib-bors mathlib-bors bot closed this Feb 24, 2024
@mathlib-bors mathlib-bors bot deleted the mrb/red_inst_diamonds branch February 24, 2024 23:45
riccardobrasca pushed a commit that referenced this pull request Mar 1, 2024
…10910)

Currently, we have multiple "no-diamond" tests of the form
```lean
example : x = y := rfl
```
where `X` and `Y` are instances of some `class`. The problem is that since `simp` and type class synthesis operate at `reducible_and_instances` transparency this check means little.

We went through all the mentions of diamonds and either added `with_reducible_and_instancse` or added a reference to the issue #10906.



Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
…10910)

Currently, we have multiple "no-diamond" tests of the form
```lean
example : x = y := rfl
```
where `X` and `Y` are instances of some `class`. The problem is that since `simp` and type class synthesis operate at `reducible_and_instances` transparency this check means little.

We went through all the mentions of diamonds and either added `with_reducible_and_instancse` or added a reference to the issue #10906.



Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
Louddy pushed a commit that referenced this pull request Apr 15, 2024
…10910)

Currently, we have multiple "no-diamond" tests of the form
```lean
example : x = y := rfl
```
where `X` and `Y` are instances of some `class`. The problem is that since `simp` and type class synthesis operate at `reducible_and_instances` transparency this check means little.

We went through all the mentions of diamonds and either added `with_reducible_and_instancse` or added a reference to the issue #10906.



Co-authored-by: Kevin Buzzard <k.buzzard@imperial.ac.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants