Skip to content

Commit 8d38581

Browse files
committed
HB compiles!
1 parent fca475d commit 8d38581

File tree

7 files changed

+5
-17
lines changed

7 files changed

+5
-17
lines changed

HB/common/phant-abbreviation.elpi

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,21 +257,17 @@ mk-phant-term.mixins Target Src CN PF Params N Ty MLwA Out :- std.do! [
257257
].
258258

259259
mk-phant-term.mixins.aux T Params C CN PF X :- std.do![
260-
coq.say "entering mk-phant-term.mixins.aux" CN KC,
261260
get-constructor CN KC,
262261
synthesis.infer-all-gref-deps Params T KC KCM,
263262
fun-unify none KCM C PF X,
264-
coq.say "exiting mk-phant-term.mixins.aux" CN X,
265263
].
266264

267265
pred mk-phant-term.class
268266
i:term, i:term, i:classname, i:phant-term, o:phant-term.
269267
mk-phant-term.class Target Src CN PF CPF :- !, std.do! [
270268
class-def (class CN _ CMLwP),
271-
coq.say "Class Hit:" CN CMLwP,
272269
w-params.fold CMLwP fun-implicit
273270
(mk-phant-term.mixins Target Src CN PF) CPF,
274-
coq.say "Class Folded!"
275271
].
276272

277273
pred mk-phant-term.classes
@@ -281,9 +277,7 @@ mk-phant-term.classes EtaF CNF PL Target Src MLwA PhF :- !, std.do! [
281277
std.map MLwA triple_1 ML,
282278
synthesis.under-mixins.then MLwA phant-fun-mixin (out\ sigma FPLTM\ std.do! [
283279
synthesis.infer-all-these-mixin-args PL Target ML EtaF FPLTM,
284-
coq.say "MID-PHANT-TERM-CLASSES",
285280
std.fold CNF (phant-term [] FPLTM) (mk-phant-term.class Target Src) out]) PhF,
286-
coq.say "FOLDED!"
287281
].
288282

289283
pred mk-phant-term-with-copy i:term, i:list classname,

HB/common/synthesis.elpi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ namespace synthesis {
1717
% which are misxins in ML, abstracts the others
1818
pred infer-all-these-mixin-args i:list term, i:term, i:list mixinname, i:term, o:term.
1919
infer-all-these-mixin-args Ps T ML F SFX :- std.do! [
20-
coq.say "SYNTH MIXINS = " Ps "," T "," ML "," F,
2120
std.assert-ok! (coq.typecheck F Ty) "try-infer-these-mixin-args: F illtyped",
2221
coq.mk-eta (-1) Ty F EtaF,
2322
coq.subst-fun {std.append Ps [T]} EtaF FT,
2423
private.instantiate-all-these-mixin-args FT T ML SFX,
25-
coq.say "SYNTH MIXINS END"
2624
].
2725

2826
% [infer-all-gref-deps Ps T GR X] fills in all the arguments of GR

HB/factory.elpi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ declare-mixin-or-factory MixinSrcClauses SectionCanonicalInstance
296296
if-verbose (coq.say {header} "declare notation Build"),
297297

298298
GRDepsClauses => phant.of-gref ff GRK [] PhGRK,
299-
coq.say "XXXXXXX",
300299
GRDepsClauses => phant.add-abbreviation "Build" PhGRK BuildConst BuildAbbrev,
301300

302301
if-verbose (coq.say {header} "declare notation axioms"),

HB/instance.elpi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ declare-instance Factory T F Clauses CFL CSL :-
240240
T F TheFactory FGR Clauses CFL CSL.
241241
declare-instance Factory T F Clauses CFL CSL :-
242242
declare-canonical-instances-from-factory Factory T F Clauses1 CFL CSL,
243-
coq.say "DONE",
244243
if (get-option "export" tt)
245244
(coq.env.current-library File,
246245
std.map {std.append CFL CSL} (x\r\ sigma i c\ x = pr i c, r = instance-to-export File i c) Clauses2)

HB/structure.elpi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ declare Module BSkel Sort :- std.do! [
162162

163163
export.module {calc (Module ^ ".Exports")} Exports,
164164

165-
coq.say "Struct = " {coq.env.global Structure},
166-
167165
if-verbose (coq.say {header} "exporting operations"),
168166
ClassAlias => Factories => GRDepsClauses =>
169167
private.export-operations Structure SortProjection ClassProjection MLwP [] EX MLToExport,

tests/compress_coe.v.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Datatypes_prod__canonical__compress_coe_D =
1+
Datatypes_prod__canonical__compress_coe_D@{u} =
22
fun D D' : D.type =>
33
{|
44
D.sort := D.sort D * D.sort D';

tests/hnf.v.out

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
Datatypes_nat__canonical__hnf_S =
1+
Datatypes_nat__canonical__hnf_S@{} =
22
{| S.sort := nat; S.class := {| S.hnf_M_mixin := HB_unnamed_mixin_8 |} |}
33
: S.type
4-
HB_unnamed_mixin_8 =
4+
HB_unnamed_mixin_8@{} =
55
{| M.x := f.y nat HB_unnamed_factory_6 + 1 |}
66
: M.axioms_ nat
7-
Datatypes_bool__canonical__hnf_S =
7+
Datatypes_bool__canonical__hnf_S@{} =
88
{| S.sort := bool; S.class := {| S.hnf_M_mixin := HB_unnamed_mixin_12 |} |}
99
: S.type
10-
HB_unnamed_mixin_12 =
10+
HB_unnamed_mixin_12@{} =
1111
Builders_1.HB_unnamed_factory_3 bool HB_unnamed_factory_9
1212
: M.axioms_ bool

0 commit comments

Comments
 (0)