Skip to content

Commit

Permalink
remove addmode flag (now is always on)
Browse files Browse the repository at this point in the history
  • Loading branch information
FissoreD committed Nov 7, 2023
1 parent 7970f55 commit d2c2955
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions apps/tc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,7 @@ Here the list of the flags available (all of them are `off` by default):
## WIP

1. Mode management:
- Classes with multiple modes ??
- Classes with multiple modes
2. Clarify pattern fragment unification
3. Topological sort of premises in modes are activated
4. Option to disable auto compiler (maybe)

1 change: 0 additions & 1 deletion apps/tc/elpi/create_tc_predicate.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ coq-mode->elpi mode-output (pr out "term").

pred modes-of-class i:gref, o:list (pair argument_mode string).
modes-of-class ClassGr Modes :-
is-option-active {oTC-addModes},
coq.hints.modes ClassGr "typeclass_instances" CoqModesList,
not (CoqModesList = []),
std.assert! (CoqModesList = [HintModesFst]) "At the moment we only allow TC with one Hint Mode",
Expand Down
1 change: 0 additions & 1 deletion apps/tc/tests/classes_declare.v
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ End S2.

(* Mode test *)
Section S3.
Set TC AddModes.
#[mode(i)] TC.Declare Class class3 (n : nat).
Instance inst3 : class3 0. Proof. apply Build_class3. Qed.

Expand Down
3 changes: 0 additions & 3 deletions apps/tc/theories/db.v
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ Elpi Db tc_options.db lp:{{

pred oTC-debug o:list string.
oTC-debug ["TC", "Debug"].

pred oTC-addModes o:list string.
oTC-addModes ["TC", "AddModes"].

pred oTC-use-pattern-fragment-compiler o:list string.
oTC-use-pattern-fragment-compiler ["TC", "CompilerWithPatternFragment"].
Expand Down
2 changes: 1 addition & 1 deletion apps/tc/theories/tc.v
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Elpi Accumulate File solver.
Elpi Query lp:{{
sigma Options\
Options = [oTC-ignore-eta-reduction, oTC-resolution-time,
oTC-clauseNameShortName, oTC-time-refine, oTC-debug, oTC-addModes,
oTC-clauseNameShortName, oTC-time-refine, oTC-debug,
oTC-use-pattern-fragment-compiler],
std.forall Options (x\ sigma Args\ x Args,
coq.option.add Args (coq.option.bool ff) ff).
Expand Down

0 comments on commit d2c2955

Please sign in to comment.