Skip to content

Revive OCaml frontend#65

Merged
dariusf merged 2 commits into
masterfrom
ocaml-frontend
Mar 9, 2026
Merged

Revive OCaml frontend#65
dariusf merged 2 commits into
masterfrom
ocaml-frontend

Conversation

@dariusf

@dariusf dariusf commented Mar 6, 2026

Copy link
Copy Markdown
Collaborator

How to review: look at all the mli files and tests first to see what is added, then look at the implementations.

Next steps:

  • Nothing is done with pure functions yet. I guess we can convert the OCaml definitions to WhyML? But then we need a way to do this in the existing interactive mode too.
  • Batch mode proofs are not done
  • Not all language constructs are added. I think this can be deferred to when we have some examples working with the batch proofs.

@dariusf dariusf requested a review from VietAnh1010 March 6, 2026 08:24

@VietAnh1010 VietAnh1010 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just need to decouple a bit, and then we are good.

Comment thread src/prover/dune Outdated
(public_name heifer.prover)
(inline_tests)
(libraries core parsing util why3_prover printbox-text)
(libraries core parsing util why3_prover printbox-text ocamlfrontend)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we remove this dependency on ocamlfrontend somehow?

Comment thread src/prover/interactive.ml Outdated
set_goal (Pctx.create goal);
print_proof_state ()

let read_file filename =

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

To remove the dependency on ocamlfrontend, we shall move this to somewhere else, preferably outside of prover. We will import this at the top-level executable Heifer.

@dariusf

dariusf commented Mar 9, 2026

Copy link
Copy Markdown
Collaborator Author

Did as you suggested.

@dariusf dariusf merged commit 3760dbd into master Mar 9, 2026
1 check passed
@dariusf dariusf deleted the ocaml-frontend branch March 9, 2026 06:52
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