@@ -193,13 +193,13 @@ cdecl->w-mixins.mixins (context-item ID _ TySkel none Rest) Out :- !,
193193% The identity builder
194194pred declare-id-builder i:factoryname, o:prop.
195195declare-id-builder GR (from GR GR (const C)) :- std.do! [
196- gref-deps GR GRD,
196+ gref-> deps GR GRD,
197197 synthesis.mixins-w-params.fun GRD (declare-id-builder.aux GR) IDBodySkel,
198198 std.assert-ok! (coq.elaborate-skeleton IDBodySkel IDType IDBody) "identity builder illtyped",
199199 log.coq.env.add-const-noimplicits "identity_builder" IDBody IDType @transparent! C,
200200].
201201declare-id-builder.aux GR Params TheType (fun `x` Ty x\x) :-
202- synthesis.infer-all-gref-deps Params TheType GR Ty.
202+ synthesis.infer-all-gref-> deps Params TheType GR Ty.
203203
204204% [mk-factory-abbrev Str GR CL FactAbbrev]
205205% creates an abbreviation for GR names Str and creates a phant-abbrev clause in CL.
@@ -275,7 +275,7 @@ declare-mixin-or-factory MixinSrcClauses SectionCanonicalInstance
275275 factories-provide GRFSwP MLwP,
276276 w-params.nparams MLwP NParams,
277277 build-deps-for-projections R MLwP GRDepsClausesProjs,
278- GRDepsClauses = [gref-deps (indt R) MLwP, gref-deps (indc K) MLwP|GRDepsClausesProjs],
278+ GRDepsClauses = [gref-> deps (indt R) MLwP, gref-> deps (indc K) MLwP|GRDepsClausesProjs],
279279
280280 % GRDepsClauses => mk-factory-sort MLwP (indt R) _ FactorySortCoe,
281281 % FactorySortCoe = coercion GRFSort _ _ _,
@@ -300,11 +300,11 @@ declare-mixin-or-factory MixinSrcClauses SectionCanonicalInstance
300300 log.coq.env.begin-module "Exports" none,
301301 std.flatten [Clauses, GRDepsClauses, [
302302 is-factory (indt R),
303- factory-constructor (indt R) GRK,
304- factory-nparams (indt R) NParams,
303+ factory-> constructor (indt R) GRK,
304+ factory-> nparams (indt R) NParams,
305305 factory-builder-nparams BuildConst NParams,
306306 phant-abbrev GRK (const BuildConst) BuildAbbrev,
307- % gref-deps GRFSort MLwP,
307+ % gref-> deps GRFSort MLwP,
308308 % factory-sort FactorySortCoe,
309309 ]] NewClauses,
310310 acc-clauses current NewClauses,
@@ -339,9 +339,9 @@ declare-factory-alias MixinSrcClauses SectionCanonicalInstance
339339
340340 std.assert! (safe-dest-app Ty1 (global PhF) _Args) "Argument must be a factory",
341341 std.assert-ok! (factory-alias->gref PhF F) "HB",
342- std.assert! (factory-constructor F FK) "BUG: Factory constructor missing",
342+ std.assert! (factory-> constructor F FK) "BUG: Factory constructor missing",
343343
344- MixinSrcClauses => synthesis.infer-all-gref-deps TheParams TheType FK MFK,
344+ MixinSrcClauses => synthesis.infer-all-gref-> deps TheParams TheType FK MFK,
345345 std.assert-ok! (coq.typecheck MFK MFKTy) "BUG: typecking of former factory constructor failed",
346346 (pi Args\ copy (app[global F|Args]) (app[global (const C)|Section])) => copy MFKTy MFKTyC,
347347
@@ -355,14 +355,14 @@ declare-factory-alias MixinSrcClauses SectionCanonicalInstance
355355 @global! => log.coq.arguments.set-implicit GRK [[]],
356356
357357 factories-provide GRFSwP MLwP,
358- GRDepsClauses = [gref-deps (const C) MLwP, gref-deps (const CK) MLwP],
358+ GRDepsClauses = [gref-> deps (const C) MLwP, gref-> deps (const CK) MLwP],
359359
360360 GRDepsClauses => phant.of-gref ff GRK [] PhGRK0,
361361
362362 % GRDepsClauses => mk-factory-sort MLwP (const C) _ FactorySortCoe,
363363 % FactorySortCoe = coercion GRFSort _ _ _,
364364
365- if (mixin-first-class F _) (PhGRK = PhGRK0)
365+ if (mixin-> first-class F _) (PhGRK = PhGRK0)
366366 (phant.append-fun-unify PhGRK0 PhGRK),
367367 GRDepsClauses => phant.add-abbreviation "Build" PhGRK BuildConst _,
368368
@@ -375,10 +375,10 @@ declare-factory-alias MixinSrcClauses SectionCanonicalInstance
375375 w-params.nparams MLwP NParams,
376376 std.flatten [ Clauses, GRDepsClauses,
377377 [ is-factory (const C),
378- factory-nparams (const C) NParams,
379- factory-constructor (const C) GRK,
378+ factory-> nparams (const C) NParams,
379+ factory-> constructor (const C) GRK,
380380 factory-builder-nparams BuildConst NParams,
381- % gref-deps GRFSort MLwP,
381+ % gref-> deps GRFSort MLwP,
382382 % factory-sort FactorySortCoe
383383 ]
384384 ] NewClauses,
@@ -403,7 +403,7 @@ pred build-deps-for-projections i:inductive, i:mixins, o:list prop.
403403build-deps-for-projections R MLwP CL :- std.do! [
404404 compat.map-filter {coq.env.projections R} (x\y\x = some y) MixinOps,
405405 list-w-params.rcons MLwP (pl\t\r\ r = triple (indt R) pl t) MLRwP,
406- std.map MixinOps (gr\r\ r = gref-deps (const gr) MLRwP) CL,
406+ std.map MixinOps (gr\r\ r = gref-> deps (const gr) MLRwP) CL,
407407].
408408
409409% Section handling in Coq is smart, in the sense it it only abstracts over
@@ -433,7 +433,7 @@ mk-factory-sort MLwP GR (const FactorySortCst) Coe :-
433433 synthesis.infer-coercion-tgt MLwP CoeClass,
434434 Coe = coercion (const FactorySortCst) MLwPLength GR CoeClass.
435435pred mk-factory-sort.term i:gref, i:list term, i:term, o:term.
436- mk-factory-sort.term GR P T (fun `_` Ty _\ T) :- synthesis.infer-all-gref-deps P T GR Ty.
436+ mk-factory-sort.term GR P T (fun `_` Ty _\ T) :- synthesis.infer-all-gref-> deps P T GR Ty.
437437
438438
439439
0 commit comments