Skip to content

chore: revert @[mvcgen_witness_type] attribute (#12882)#13111

Merged
sgraf812 merged 1 commit intomasterfrom
worktree-revert-witness
Mar 25, 2026
Merged

chore: revert @[mvcgen_witness_type] attribute (#12882)#13111
sgraf812 merged 1 commit intomasterfrom
worktree-revert-witness

Conversation

@sgraf812
Copy link
Copy Markdown
Contributor

@sgraf812 sgraf812 commented Mar 24, 2026

This PR reverts #12882 which added the @[mvcgen_witness_type] tag attribute and witnesses section to mvcgen. Théophile Wallez confirmed he doesn't need this feature and can get by with invariants, so there is no use in having it.

The actual mvcgen syntax needs to be adjusted after a stage0 update in order for elabMVCGen to cope with both old and new syntax.

@sgraf812 sgraf812 added the changelog-no Do not include this PR in the release changelog label Mar 24, 2026
@sgraf812 sgraf812 changed the title revert: remove @[mvcgen_witness_type] attribute (#12882) chore: revert @[mvcgen_witness_type] attribute (#12882) Mar 24, 2026
@sgraf812 sgraf812 force-pushed the worktree-revert-witness branch from df26799 to a137f85 Compare March 24, 2026 21:12
@sgraf812 sgraf812 removed the changelog-no Do not include this PR in the release changelog label Mar 24, 2026
@sgraf812 sgraf812 force-pushed the worktree-revert-witness branch from a137f85 to 475f989 Compare March 25, 2026 13:59
This PR removes the witness classification semantics from `mvcgen` introduced
in #12882: the `@[mvcgen_witness_type]` attribute, `witnesses` field in
`VCGen.State`, three-way goal classification, `elabWitnesses`, and
`elabGoalSection`.

The `witnesses` syntax section is kept temporarily for stage0 compatibility
and will be removed in a follow-up PR after the stage0 update.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sgraf812 sgraf812 force-pushed the worktree-revert-witness branch from 475f989 to db4b509 Compare March 25, 2026 14:19
@sgraf812 sgraf812 enabled auto-merge March 25, 2026 14:20
@sgraf812 sgraf812 added the changelog-language Language features and metaprograms label Mar 25, 2026
@sgraf812 sgraf812 added this pull request to the merge queue Mar 25, 2026
Merged via the queue into master with commit 40cdec7 Mar 25, 2026
25 checks passed
@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 Mar 25, 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 dec394d3a4c22c119e011fa2ac1b8d4029bfb419 --onto e6df474dd9c3ad0e21771eaa808c53f66222216d. You can force Mathlib CI using the force-mathlib-ci label. (2026-03-25 15:44:10)

@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 dec394d3a4c22c119e011fa2ac1b8d4029bfb419 --onto cfa8c5a036d6990635c6ec50b02d0e806995cec3. You can force reference manual CI using the force-manual-ci label. (2026-03-25 15:44:12)

@sgraf812 sgraf812 deleted the worktree-revert-witness branch March 25, 2026 15:50
sgraf812 added a commit that referenced this pull request Mar 25, 2026
This PR removes the `witnessAlts` syntax section and related `witnessesKW`
syntax that were kept for stage0 compatibility in #13111. Now that stage0
has been updated, the `mvcgen` syntax can use 5 children instead of 6.
Also restores fixed `stx[3]`/`stx[4]` indexing in `elabMVCGen`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
sgraf812 added a commit that referenced this pull request Mar 26, 2026
This PR removes the `witnessAlts` syntax section and related `witnessesKW`
syntax that were kept for stage0 compatibility in #13111. Now that stage0
has been updated, the `mvcgen` syntax can use 5 children instead of 6.
Also restores fixed `stx[3]`/`stx[4]` indexing in `elabMVCGen`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-language Language features and metaprograms 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