Skip to content

feat: add trace.Meta.Tactic.simp.backwardDefEq#13640

Merged
nomeata merged 1 commit into
masterfrom
joachim/trace-backwardDefEq
May 5, 2026
Merged

feat: add trace.Meta.Tactic.simp.backwardDefEq#13640
nomeata merged 1 commit into
masterfrom
joachim/trace-backwardDefEq

Conversation

@nomeata
Copy link
Copy Markdown
Collaborator

@nomeata nomeata commented May 5, 2026

This PR adds a trace event emitted whenever a dsimp (or rfl-only simp) rewrite fires
because of a [backward_defeq]-tagged theorem (i.e., one that would not
have applied without set_option backward.defeqAttrib.useBackward true).

Useful for finding where downstream code is silently relying on the
backwards escape hatch — a precursor to either re-tagging the lemma as
[defeq] or restructuring the proof so it works under the strict
defeq rules.

Trace event emitted whenever a `dsimp` (or rfl-only `simp`) rewrite fires
because of a `[backward_defeq]`-tagged theorem (i.e., one that would not
have applied without `set_option backward.defeqAttrib.useBackward true`).

Useful for finding where downstream code is silently relying on the
backwards escape hatch — a precursor to either re-tagging the lemma as
`[defeq]` or restructuring the proof so it works under the strict
defeq rules.
@nomeata nomeata requested a review from leodemoura as a code owner May 5, 2026 12:21
@nomeata nomeata added the changelog-tactics User facing tactics label May 5, 2026
@nomeata nomeata enabled auto-merge May 5, 2026 12:22
@nomeata nomeata added this pull request to the merge queue May 5, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 5, 2026
@nomeata nomeata added this pull request to the merge queue May 5, 2026
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label May 5, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase e4c0a5a511c5ddc0c7499bfb9021d4aaf96eb95b --onto dae325700c89e23c453b1d6d5ed5432d87880062. You can force Mathlib CI using the force-mathlib-ci label. (2026-05-05 13:16:20)

@leanprover-bot
Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase e4c0a5a511c5ddc0c7499bfb9021d4aaf96eb95b --onto 3fc99eef102549c743c6c63547983319bfae6f01. You can force reference manual CI using the force-manual-ci label. (2026-05-05 13:16:21)

Merged via the queue into master with commit bd20c51 May 5, 2026
25 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-tactics User facing tactics toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants