Skip to content

chore: preparatory changes for removing defeq transparency bump#13279

Open
leodemoura wants to merge 2 commits intomasterfrom
grind_defeq_todo
Open

chore: preparatory changes for removing defeq transparency bump#13279
leodemoura wants to merge 2 commits intomasterfrom
grind_defeq_todo

Conversation

@leodemoura
Copy link
Copy Markdown
Member

This PR adds implicit_reducible/expose attributes to definitions that need them before the withInferTypeConfig transparency bump in checkTypesAndAssign can be removed (see ExprDefEq.lean:465).

The transparency bump currently compensates for certain definitions not being
reducible during type inference in the definitional equality checker. By marking
these definitions appropriately, we prepare for removing the bump without
breaking existing proofs.

Changes:

  • Add implicit_reducible and/or expose to Function.comp, cond,
    Nat.lt, Option.getD, Option.getM, Option.isSome, Option.isNone,
    SyntaxNodeKinds, wfParam, Id, StateT, ExceptConds
  • Remove now-unnecessary rfl/cases proof steps that become automatic
  • Update test expectations for changed simp trace output
  • Fix test port numbers to avoid conflicts

🤖 Generated with Claude Code

leodemoura and others added 2 commits April 4, 2026 16:58
…tions

This PR adds `implicit_reducible` and/or `expose` attributes to definitions
that need to be unfolded during defeq checking without full transparency.
Preparatory commit for removing the TODO workaround in ExprDefEq.lean.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@leodemoura leodemoura added the changelog-no Do not include this PR in the release changelog label Apr 4, 2026
@leodemoura leodemoura added the changelog-no Do not include this PR in the release changelog label Apr 4, 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 Apr 4, 2026
mathlib-nightly-testing bot pushed a commit to leanprover-community/batteries that referenced this pull request Apr 4, 2026
@github-actions github-actions bot added the mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN label Apr 4, 2026
mathlib-nightly-testing bot pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Apr 4, 2026
leanprover-bot added a commit to leanprover/reference-manual that referenced this pull request Apr 4, 2026
@leanprover-bot leanprover-bot added the builds-manual CI has verified that the Lean Language Reference builds against this PR label Apr 4, 2026
@leanprover-bot
Copy link
Copy Markdown
Collaborator

leanprover-bot commented Apr 4, 2026

Reference manual CI status:

@mathlib-lean-pr-testing mathlib-lean-pr-testing bot added the breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan label Apr 4, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan builds-manual CI has verified that the Lean Language Reference builds against this PR changelog-no Do not include this PR in the release changelog mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN 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