Skip to content

Commit a8d5c12

Browse files
FissoreDgares
authored andcommitted
[TC] premise w/solution add comment
1 parent 66c719a commit a8d5c12

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

apps/tc/elpi/tc_aux.elpi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,16 @@ namespace tc {
111111
get-mode ClassGR M :- tc.class ClassGR _ _ M, !.
112112
get-mode ClassGR _ :- coq.error "[TC]" ClassGR "is an unknown class".
113113

114+
/*
115+
[make-tc.aux B Sol Head Body Rule] builds the rule with the given Head and body
116+
paying attention to the positivity of the
117+
clause
118+
Note: if the Rule being constructed is negative (B = ff), then Rules returns a
119+
solution Sol used inside the proof. If the solution is already given, we
120+
do not run the premise. This would ask Sol to be ground (ground_term S).
121+
Here, for performance issues, we simply check that the solution is not a
122+
flexible term
123+
*/
114124
pred make-tc.aux i:bool, i:term, i:prop, i:list prop, o:prop.
115125
make-tc.aux tt _ Head [] Head :- !.
116126
make-tc.aux ff Sol Head [] P :- !, P = if (var Sol) Head true.

0 commit comments

Comments
 (0)