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

Add clauses immediately after predicate declaration #546

Open
Tragicus opened this issue Nov 14, 2023 · 0 comments
Open

Add clauses immediately after predicate declaration #546

Tragicus opened this issue Nov 14, 2023 · 0 comments

Comments

@Tragicus
Copy link
Contributor

Tragicus commented Nov 14, 2023

Hi. It looks like it is not possible to add a clause to a predicate immediately after the creation of the predicate, as the following code shows.

From elpi.apps Require Import tc.

Record C : Prop := {}.

Elpi Query TC.Solver lp:{{

global R = {{ C }},
coq.TC.declare-class R,
coq.elpi.accumulate current "tc.db" (clause _ _ {coq.elpi.predicate {gref->pred-name R} [Build_C]}).

}}.

This fails with the error message

Anomaly
"Uncaught exception Elpi__Compiler.CompileError(0, "allocating new global symbol 'tc-buffer4.tc-C' at runtime")."
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

No branches or pull requests

1 participant