Skip to content

Conversation

@nikos-alexandris
Copy link
Contributor

No description provided.

myreen and others added 30 commits December 3, 2024 10:03
… proof remains cheated in `state_to_cakeProof`
Proofs updated except thunk_unthunk, thunk_Let_Delay_Var, and thunk_Delay_Lam.
… that

`Force` cannot return a thunk:
  - Proofs regarding `thunkLang` were modified to work with the changes.
  - A new delayed top-level semantics was added for `thunkLang` to allow
    the `thunk_unthunk` proof to work, and an `undelay_next` proof was
    added that converts between these semantics and the normal top-level
    semantics.
  - Wrapping of monads with `Ret`s was transferred from
    `pure_to_thunk_1` to `thunk_unthunk`.
  - In `pure_to_thunk_2`, the `thunk_unthunk` step now comes right after
    `pure_to_thunk_1` and the `undelay` step sits between `thunk_unthunk`
    and the rest of the steps.
  - A new check that `Cons`' arguments are delayed was added in the
    semantics.
Proofs up to and including `pure_to_thunk2` complete without cheats.
There are still cheats in `thunk_Let_Delay_VarScript` and
`thunk_Delay_LamScript` whose proofs are trickier.
Need to check that `pure_lexer_impl` change is correct.
`pure_demands_analysisProof` fails due to changes in HOL and needs
fixing.

HOL commit 48a676cadda70ad7fc2f6c7b17ecd434f84db113.
Cake commit 270490bcc6fcf81c10361fdc2cd750058f84df46.
cake.
`pure_demands_analysisProof` needs fix.

HOL commit 48a676cadda70ad7fc2f6c7b17ecd434f84db113
cake commit 2ef8c9fe897bd690a4c42e65b4c19b3bd461e58a
@myreen myreen merged commit ad34b0c into master Oct 23, 2025
3 checks passed
@myreen myreen deleted the cake-thunks branch October 23, 2025 17:10
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.

4 participants