Skip to content

[Merged by Bors] - chore: replace exact_mod_cast tactic with mod_cast elaborator where possible#8404

Closed
kim-em wants to merge 2 commits intomasterfrom
mod_cast
Closed

[Merged by Bors] - chore: replace exact_mod_cast tactic with mod_cast elaborator where possible#8404
kim-em wants to merge 2 commits intomasterfrom
mod_cast

Conversation

@kim-em
Copy link
Copy Markdown
Contributor

@kim-em kim-em commented Nov 14, 2023

We still have the exact_mod_cast tactic, used in a few places, which somehow (?) works a little bit harder to prevent the expected type influencing the elaboration of the term. I would like to get to the bottom of this, and it will be easier once the only usages of exact_mod_cast are the ones that don't work using the term elaborator by itself.

@kim-em kim-em added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. labels Nov 14, 2023
@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Nov 14, 2023
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 17, 2023
@kim-em kim-em removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 19, 2023
@kmill kmill changed the title chore: use mod_cast elaborator where possible chore: replace exact_mod_cast tactic with mod_cast elaborator where possible Nov 19, 2023
@kmill
Copy link
Copy Markdown
Contributor

kmill commented Nov 19, 2023

Based on the PR description I was worried this was a large-scale change just for debugging, but it definitely looks like an improvement. I like the idea that in general exact_foo ... could become exact foo ..., but I guess one reservation is that, once we actually have tactic documentation, term elaborators might be a bit less discoverable.

bors r+

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Nov 19, 2023
mathlib-bors bot pushed a commit that referenced this pull request Nov 19, 2023
…re possible (#8404)

We still have the `exact_mod_cast` tactic, used in a few places, which somehow (?) works a little bit harder to prevent the expected type influencing the elaboration of the term. I would like to get to the bottom of this, and it will be easier once the only usages of `exact_mod_cast` are the ones that don't work using the term elaborator by itself.

Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Nov 19, 2023

Build failed (retrying...):

mathlib-bors bot pushed a commit that referenced this pull request Nov 19, 2023
…re possible (#8404)

We still have the `exact_mod_cast` tactic, used in a few places, which somehow (?) works a little bit harder to prevent the expected type influencing the elaboration of the term. I would like to get to the bottom of this, and it will be easier once the only usages of `exact_mod_cast` are the ones that don't work using the term elaborator by itself.

Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Nov 19, 2023

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: replace exact_mod_cast tactic with mod_cast elaborator where possible [Merged by Bors] - chore: replace exact_mod_cast tactic with mod_cast elaborator where possible Nov 19, 2023
@mathlib-bors mathlib-bors bot closed this Nov 19, 2023
@mathlib-bors mathlib-bors bot deleted the mod_cast branch November 19, 2023 21:13
alexkeizer pushed a commit that referenced this pull request Nov 21, 2023
…re possible (#8404)

We still have the `exact_mod_cast` tactic, used in a few places, which somehow (?) works a little bit harder to prevent the expected type influencing the elaboration of the term. I would like to get to the bottom of this, and it will be easier once the only usages of `exact_mod_cast` are the ones that don't work using the term elaborator by itself.

Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
grunweg pushed a commit that referenced this pull request Dec 15, 2023
…re possible (#8404)

We still have the `exact_mod_cast` tactic, used in a few places, which somehow (?) works a little bit harder to prevent the expected type influencing the elaboration of the term. I would like to get to the bottom of this, and it will be easier once the only usages of `exact_mod_cast` are the ones that don't work using the term elaborator by itself.

Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
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.

2 participants