Skip to content

plf: remove duplicate Proof command in RecordSub.v (errors on Coq/Rocq dev)#22

Merged
bcpierce00 merged 1 commit into
DeepSpec:masterfrom
JasonGross:fix-recordsub-duplicate-proof
Jul 18, 2026
Merged

plf: remove duplicate Proof command in RecordSub.v (errors on Coq/Rocq dev)#22
bcpierce00 merged 1 commit into
DeepSpec:masterfrom
JasonGross:fix-recordsub-duplicate-proof

Conversation

@JasonGross

Copy link
Copy Markdown
Contributor

Written by Claude (Anthropic AI) at the request of and under the supervision of @JasonGross.

plf-current/RecordSub.v has a literally duplicated Proof. command in substitution_preserves_typing:

   Gamma |-- [x:=v]t \in T.
Proof.
Proof.
  intros Gamma x U t v T Ht Hv.

Current Coq/Rocq dev rejects this outright (Error: Multiple "Proof" commands not supported.), which makes the whole plf volume fail to build there. This PR just removes the redundant repeated Proof., which is backwards compatible with all released Coq versions (older versions merely tolerated the duplicate).

Verified that make -C plf-current then completes against Rocq dev.

🤖 Generated with Claude Code

https://claude.ai/code/session_019ttctspSoVoquHLQtbPVZw

Coq/Rocq dev now errors on multiple "Proof" commands for the same
proof ("Error: Multiple \"Proof\" commands not supported"), which
breaks compilation of RecordSub.v at substitution_preserves_typing.
Removing the redundant repeated "Proof." is backwards compatible with
all Coq versions.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019ttctspSoVoquHLQtbPVZw
@bcpierce00
bcpierce00 merged commit b88d781 into DeepSpec:master Jul 18, 2026
@bcpierce00

Copy link
Copy Markdown
Contributor

Merged and backported to sfdev repo.

@JasonGross
JasonGross deleted the fix-recordsub-duplicate-proof branch July 18, 2026 05:05
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.

2 participants