Skip to content

Issue 1336#1337

Merged
myreen merged 2 commits intomasterfrom
issue1336
Feb 19, 2026
Merged

Issue 1336#1337
myreen merged 2 commits intomasterfrom
issue1336

Conversation

@tanyongkiam
Copy link
Copy Markdown
Contributor

This PR was created almost entirely autonomously based on the issue description (with https://github.com/charles-cooper/hol4-mcp).

tanyongkiam and others added 2 commits February 18, 2026 00:44
Replace the 47-constructor flatLang$op datatype with a Src ast$op
wrapper plus 7 FlatLang-specific constructors (GlobalVarAlloc,
GlobalVarInit, GlobalVarLookup, TagLenEq, LenEq, El, Id), reducing
maintenance burden when adding new source ops.

Updates all definition files, semantics, and proof files. One proof
(do_app_SOME_flat_state_rel in flat_elimProof) is temporarily cheated
pending restructuring of the case analysis for the new Src wrapper.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Restructure the do_app case analysis to handle the new Src ast$op
wrapper in flatLang$op. The old approach using REWRITE_RULE
[do_app_cases] timed out because the Src disjunct is very large.
Instead, use Cases_on op followed by Cases_on aop, with targeted
tactics for store_alloc, store_assign/LUPDATE, Boolv tag tautology,
and REPLICATE goals. Also fix deprecated Triviality to Theorem[local].

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tanyongkiam tanyongkiam requested a review from myreen February 18, 2026 04:18
Copy link
Copy Markdown
Contributor

@myreen myreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! I'm surprised Claude went and also improved/modernised some proofs that are not affected by this change to Op.

@myreen myreen merged commit 769c3cc into master Feb 19, 2026
1 check passed
@myreen myreen deleted the issue1336 branch February 19, 2026 07:08
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