Skip to content

[Merged by Bors] - feat: ring_nf tactic - #552

Closed
digama0 wants to merge 1 commit into
masterfrom
ring_nf
Closed

digama0 wants to merge 1 commit into
masterfrom
ring_nf

Conversation

@digama0

@digama0 digama0 commented Nov 7, 2022 •

Copy link
Copy Markdown
Member

Implements the ring_nf tactic, and makes ring call both ring1 and ring_nf like in mathlib.

@digama0

digama0 commented Nov 7, 2022

Copy link
Copy Markdown
Member Author

bors merge

bors Bot pushed a commit that referenced this pull request Nov 7, 2022
* [x] depends on #551 (only to avoid conflicts)

Implements the `ring_nf` tactic, and makes `ring` call both `ring1` and `ring_nf` like in mathlib.
@bors

bors Bot commented Nov 7, 2022

Copy link
Copy Markdown

Pull request successfully merged into master.

Build succeeded:

@bors bors Bot changed the title feat: ring_nf tactic [Merged by Bors] - feat: ring_nf tactic Nov 7, 2022
@bors bors Bot closed this Nov 7, 2022
@bors
bors Bot deleted the ring_nf branch November 7, 2022 22:06
bors Bot pushed a commit that referenced this pull request Nov 7, 2022
* [x] depends on #539
* [x] depends on #552

This implements the `ring` conv tactic, which rewrites a target that is an equality in rings to `True`. I'm not sure if anyone uses this, but it is what it is and it brings down our metrics.
mathlib-bors Bot pushed a commit that referenced this pull request Aug 20, 2025
Many metaprograms have the following general structure: the input is an expression `e` and the output is a new expression `e'`, together with a proof that `e = e'`. Such a metaprogram produces a variety of tactics: it may be used to modify the goal, a specified hypothesis, or (via `Tactic.Location`) a combination of these.

Roughly the same code for this is repeated throughout the library, for the tactics `ring_nf`, `abel_nf`, `norm_num`, `push_neg` and `reduce_mod_char`; possibly it originates from the `ring_nf` version, #552.

This PR extracts this repeated code to stand-alone functions `Mathlib.Util.AtLocation` and `Mathlib.Util.AtNondepPropLocation`.
pfaffelh pushed a commit to pfaffelh/mathlib4 that referenced this pull request Aug 20, 2025
…ity#27562)

Many metaprograms have the following general structure: the input is an expression `e` and the output is a new expression `e'`, together with a proof that `e = e'`. Such a metaprogram produces a variety of tactics: it may be used to modify the goal, a specified hypothesis, or (via `Tactic.Location`) a combination of these.

Roughly the same code for this is repeated throughout the library, for the tactics `ring_nf`, `abel_nf`, `norm_num`, `push_neg` and `reduce_mod_char`; possibly it originates from the `ring_nf` version, leanprover-community#552.

This PR extracts this repeated code to stand-alone functions `Mathlib.Util.AtLocation` and `Mathlib.Util.AtNondepPropLocation`.
Paul-Lez pushed a commit to Paul-Lez/mathlib4 that referenced this pull request Aug 23, 2025
…ity#27562)

Many metaprograms have the following general structure: the input is an expression `e` and the output is a new expression `e'`, together with a proof that `e = e'`. Such a metaprogram produces a variety of tactics: it may be used to modify the goal, a specified hypothesis, or (via `Tactic.Location`) a combination of these.

Roughly the same code for this is repeated throughout the library, for the tactics `ring_nf`, `abel_nf`, `norm_num`, `push_neg` and `reduce_mod_char`; possibly it originates from the `ring_nf` version, leanprover-community#552.

This PR extracts this repeated code to stand-alone functions `Mathlib.Util.AtLocation` and `Mathlib.Util.AtNondepPropLocation`.
pechersky pushed a commit to pechersky/mathlib4 that referenced this pull request Aug 25, 2025
…ity#27562)

Many metaprograms have the following general structure: the input is an expression `e` and the output is a new expression `e'`, together with a proof that `e = e'`. Such a metaprogram produces a variety of tactics: it may be used to modify the goal, a specified hypothesis, or (via `Tactic.Location`) a combination of these.

Roughly the same code for this is repeated throughout the library, for the tactics `ring_nf`, `abel_nf`, `norm_num`, `push_neg` and `reduce_mod_char`; possibly it originates from the `ring_nf` version, leanprover-community#552.

This PR extracts this repeated code to stand-alone functions `Mathlib.Util.AtLocation` and `Mathlib.Util.AtNondepPropLocation`.
pfaffelh pushed a commit to pfaffelh/mathlib4 that referenced this pull request Jan 9, 2026
…ity#27562)

Many metaprograms have the following general structure: the input is an expression `e` and the output is a new expression `e'`, together with a proof that `e = e'`. Such a metaprogram produces a variety of tactics: it may be used to modify the goal, a specified hypothesis, or (via `Tactic.Location`) a combination of these.

Roughly the same code for this is repeated throughout the library, for the tactics `ring_nf`, `abel_nf`, `norm_num`, `push_neg` and `reduce_mod_char`; possibly it originates from the `ring_nf` version, leanprover-community#552.

This PR extracts this repeated code to stand-alone functions `Mathlib.Util.AtLocation` and `Mathlib.Util.AtNondepPropLocation`.
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.

1 participant