Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semantic triggers #162

Merged
merged 1 commit into from
Jun 23, 2023
Merged

Semantic triggers #162

merged 1 commit into from
Jun 23, 2023

Conversation

Halbaroth
Copy link
Contributor

This PR replaces in the typechecker the operator in_interval by inequalities and binds variables introduced by the symbol ?.

src/typecheck/core.ml Outdated Show resolved Hide resolved
src/interface/term.ml Outdated Show resolved Hide resolved
src/standard/expr.ml Outdated Show resolved Hide resolved
src/typecheck/core.ml Outdated Show resolved Hide resolved
@Gbury
Copy link
Owner

Gbury commented Jun 15, 2023

I pushed changes to this PR. I'll re-read all the changes tomorrow and merge it, but at least the API should be stable.

src/standard/builtin.mli Outdated Show resolved Hide resolved
src/standard/term.mli Outdated Show resolved Hide resolved
src/typecheck/arith.ml Outdated Show resolved Hide resolved
src/typecheck/core.ml Show resolved Hide resolved
bclement-ocp added a commit to bclement-ocp/alt-ergo that referenced this pull request Jun 19, 2023
This patch is an updated version of OCamlPro#652 to be compatible with the new
API in Dolmen for accessing the [in] semantic triggers.

In addition, the patch also adds proper support for theory extensions,
which were previously ignored by the dolmen frontend. There are also
some simple tests to ensure that theory extensions and semantic triggers
work.

It requires that Gbury/dolmen#162 and Gbury/dolmen#165 be merged to
work. It also includes OCamlPro#660 because it touches on similar codes and
there would be conflicts otherwise.
@Gbury Gbury added this to the 0.9 milestone Jun 19, 2023
src/interface/tag.ml Outdated Show resolved Hide resolved
src/interface/tag.ml Outdated Show resolved Hide resolved
src/interface/term.ml Outdated Show resolved Hide resolved
src/interface/term.ml Outdated Show resolved Hide resolved
src/typecheck/arith.ml Show resolved Hide resolved
src/typecheck/core.ml Outdated Show resolved Hide resolved
bclement-ocp added a commit to bclement-ocp/alt-ergo that referenced this pull request Jun 21, 2023
This patch adds support for semantic triggers in the dolmen frontend
after Gbury/dolmen#162

This is an alternate fix for OCamlPro#677 as it allows the builtin preludes to
be parsed with Dolmen.
bclement-ocp added a commit to bclement-ocp/alt-ergo that referenced this pull request Jun 21, 2023
This patch adds support for semantic triggers in the dolmen frontend
after Gbury/dolmen#162

This is an alternate fix for OCamlPro#677 as it allows the builtin preludes to
be parsed with Dolmen.
@Gbury Gbury merged commit 3fcf312 into Gbury:master Jun 23, 2023
bclement-ocp added a commit to bclement-ocp/alt-ergo that referenced this pull request Jun 23, 2023
Now that Gbury/dolmen#162 and Gbury/dolmen#166 have been merged the
build is broken. This patch removes the old In_interval constructor. It
was not working properly anyways. Support for the new Semantic_trigger
constructor that replaces it in dolmen will land in OCamlPro#681.

In addition, this patch is adapted to propagate attributes from the
typed statements. This will help determine theory and case-split
information in OCamlPro#662.
bclement-ocp added a commit to OCamlPro/alt-ergo that referenced this pull request Jun 23, 2023
Now that Gbury/dolmen#162 and Gbury/dolmen#166 have been merged the
build is broken. This patch removes the old In_interval constructor. It
was not working properly anyways. Support for the new Semantic_trigger
constructor that replaces it in dolmen will land in #681.

In addition, this patch is adapted to propagate attributes from the
typed statements. This will help determine theory and case-split
information in #662.
bclement-ocp added a commit to bclement-ocp/alt-ergo that referenced this pull request Jun 23, 2023
This patch adds support for semantic triggers in the dolmen frontend
after Gbury/dolmen#162

This is an alternate fix for OCamlPro#677 as it allows the builtin preludes to
be parsed with Dolmen.
bclement-ocp added a commit to bclement-ocp/alt-ergo that referenced this pull request Jun 30, 2023
This patch adds support for semantic triggers in the dolmen frontend
after Gbury/dolmen#162

This is an alternate fix for OCamlPro#677 as it allows the builtin preludes to
be parsed with Dolmen.
bclement-ocp added a commit to OCamlPro/alt-ergo that referenced this pull request Jul 2, 2023
This patch adds support for semantic triggers in the dolmen frontend
after Gbury/dolmen#162

This is an alternate fix for #677 as it allows the builtin preludes to
be parsed with Dolmen.
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