Skip to content

WIP: Verified parser#222

Draft
GZGavinZhao wants to merge 8 commits intoopencompl:mainfrom
GZGavinZhao:gzgz/verified-parser
Draft

WIP: Verified parser#222
GZGavinZhao wants to merge 8 commits intoopencompl:mainfrom
GZGavinZhao:gzgz/verified-parser

Conversation

@GZGavinZhao
Copy link
Collaborator

For visibility and comments if desired.

let ⟨ctx, h_ctx_FieldsInBound⟩ ← getContext
let h_block_InBounds : block.InBounds ctx := by sorry
let ctx' := block.setArguments ctx blockArguments h_block_InBounds
setContext ctx' (by
Copy link
Collaborator

Choose a reason for hiding this comment

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

I added the missing lemma in #226, this should make this proof much much simpler!
If you rebase on the PR, you should be able to replace this with

setContext ctx' (by
  apply BlockPtr.setArguments_fieldsInBounds
  · sorry -- Need to prove that the block had no arguments before
  · sorry -- Need to prove that the new arguments are FieldsInBounds
  · grind)

I'll merge the PR this week-end!

ptr.InBounds (setPrevBlock block ctx newPrevBlock h) ↔ ptr.InBounds ctx := by
grind

@[grind =]
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can remove this after I merge #226

ctx.FieldsInBounds → (setRegions op ctx newRegions h).FieldsInBounds := by
prove_fieldsInBounds_operation ctx

@[grind .]
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can remove this after I merge #226

github-merge-queue bot pushed a commit that referenced this pull request Feb 22, 2026
…ts (#226)

This should simplify a lot the proof required in #222
@tobiasgrosser
Copy link
Collaborator

@GZGavinZhao, it might make sense to update this PR on latest main to see if @math-fehr's changes improve things for you.

@GZGavinZhao
Copy link
Collaborator Author

Yep, thanks for the reminder, I'll do that tonight / early tomorrow and see how well it goes!

github-merge-queue bot pushed a commit that referenced this pull request Mar 1, 2026
…246)

Needed for #222 which uses `OperationPtr.setAttributes_fieldsInBounds`.

`grind` couldn't really do much with `OperationPtr.setAttributes`
without these changes.
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.

3 participants