Skip to content

pancake/loop: extend Break/Continue with nesting-depth num#1395

Merged
tanyongkiam merged 3 commits into
masterfrom
loop-break-n
May 22, 2026
Merged

pancake/loop: extend Break/Continue with nesting-depth num#1395
tanyongkiam merged 3 commits into
masterfrom
loop-break-n

Conversation

@tanyongkiam
Copy link
Copy Markdown
Contributor

Mirror wordLang's depth-aware Break num / Continue num at loopLang. Plumb through loopSem (cont_loop/exit_loop, Loop clause, Call/DeclCall), loopProps, loop_to_word, crep_to_loop, loop_call, and loop_live (lt : (num_set # num_set) list indexed by depth; shrink Loop body's exit-live widened to union live_in l2).

All touched proofs admit; zero cheats; pan_to_wordTheory builds clean.

Mirror wordLang's depth-aware Break num / Continue num at loopLang.
Plumb through loopSem (cont_loop/exit_loop, Loop clause, Call/DeclCall),
loopProps, loop_to_word, crep_to_loop, loop_call, and loop_live (lt :
(num_set # num_set) list indexed by depth; shrink Loop body's exit-live
widened to union live_in l2).

All touched proofs admit; zero cheats; pan_to_wordTheory builds clean.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@tanyongkiam tanyongkiam requested a review from myreen May 20, 2026 03:38
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.

Looks good!

@tanyongkiam tanyongkiam merged commit 35898f2 into master May 22, 2026
1 check was pending
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