Skip to content

Commit

Permalink
gitignore and shortened cs predicate name
Browse files Browse the repository at this point in the history
  • Loading branch information
Tragicus committed Jan 26, 2024
1 parent f8e854f commit 1df4d5d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 103 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ META
apps/coercion/src/coq_elpi_coercion_hook.ml
.filestoinstall
apps/tc/src/coq_elpi_tc_hook.ml
apps/cs/src/coq_elpi_cs_hook.ml
100 changes: 0 additions & 100 deletions apps/cs/src/coq_elpi_cs_hook.ml

This file was deleted.

6 changes: 3 additions & 3 deletions apps/cs/theories/cs.v
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Elpi Db cs.db lp:{{
% - [Ctx] is the context
% - [Lhs] and [Rhs] are the terms to unify
:index (0 6 6)
pred canonical-solution i:goal-ctx, o:term, o:term.
pred cs i:goal-ctx, o:term, o:term.

}}.

Expand All @@ -17,8 +17,8 @@ Elpi Tactic canonical_solution.
Elpi Accumulate lp:{{

solve (goal Ctx _ {{ @eq lp:T lp:Lhs lp:Rhs }} _P []) _ :-
canonical-solution Ctx Lhs Rhs,
% std.assert! (P = {{ eq_refl lp:Lhs }}) "canonical-solution wrong solution".
cs Ctx Lhs Rhs,
% std.assert! (P = {{ eq_refl lp:Lhs }}) "cs: wrong solution".
true.

}}.
Expand Down

0 comments on commit 1df4d5d

Please sign in to comment.