Skip to content

Commit 864d353

Browse files
committed
Clarify that the solver only works for one category
1 parent 25d1965 commit 864d353

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

Solver/Reify.v

+9-11
Original file line numberDiff line numberDiff line change
@@ -534,17 +534,15 @@ Proof.
534534
Qed.
535535

536536
Ltac build_objs cs andThen :=
537-
foldr cs
538-
tt
539-
(* jww (2022-09-11): Right now we only use the first category *)
540-
ltac:(fun cv _cvs =>
541-
match cv with
542-
| (?c, (?o, ?os), ?fs) =>
543-
match type of o with
544-
| @obj ?C =>
545-
andThen c o ltac:(toList C (o, os)) fs
546-
end
547-
end).
537+
match cs with
538+
| ((?c, (?o, ?os), ?fs), tt) =>
539+
match type of o with
540+
| @obj ?C =>
541+
andThen c o ltac:(toList C (o, os)) fs
542+
end
543+
| _ =>
544+
fail "Solver only works with a single category"
545+
end.
548546

549547
Ltac build_arrs c cs fs def_obj objs andThen :=
550548
andThen ltac:(

0 commit comments

Comments
 (0)