@@ -104,8 +104,6 @@ if-MC-compat P :- get-option "mathcomp.axiom" S, !,
104104 P (some GR).
105105if-MC-compat _.
106106
107-
108-
109107% TODO: Should this only be used for gref that are factories? (and check in the first/second branch so?)
110108% Should we make this an HO predicate, eg "located->gref S L is-factory? GR"
111109pred located->gref i:string, i:list located, o:gref.
@@ -116,10 +114,6 @@ located->gref S [loc-modpath _|_] _ :- coq.error S "should be a factory, but is
116114located->gref S [loc-modtypath _|_] _ :- coq.error S "should be a factory, but is a module type".
117115located->gref S [] _ :- coq.error "Could not locate name" S.
118116
119- pred purge-id i:term, o:term.
120- purge-id T T1 :-
121- (pi fresh t v\ copy {{lib:@hb.id lp:t lp:v}} fresh :- !) => copy T T1.
122-
123117% TODO: generalize/rename when we support parameters
124118pred argument->gref i:argument, o:gref.
125119argument->gref (str S) GR :- located->gref S {coq.locate-all S} GR.
@@ -700,7 +694,7 @@ phant-fun-struct T Name S Params PF Out :- std.do! [
700694 mk-app (global S) Params SParams,
701695 mk-app SortProj Params SortProjParams,
702696 % Msg = {{lib:hb.nomsg}},
703- Msg = {{lib:hb.some (lib:hb.pair "is not canonically a"%string lp:SParams)}},
697+ Msg = {{lib:hb.some (lib:hb.pair lib:hb.not_a_msg lp:SParams)}},
704698 (@pi-decl Name SParams s\ phant-fun-unify Msg T {mk-app SortProjParams [s]} (PF s) (UnifSI s)),
705699 phant-fun-implicit Name SParams UnifSI Out
706700].
0 commit comments