Skip to content

Commit b2ba898

Browse files
authored
Merge branch 'master' into fix-makefile
2 parents 135ec8c + 543f93b commit b2ba898

File tree

5 files changed

+4
-76
lines changed

5 files changed

+4
-76
lines changed

AUTHORS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Copyright (C) 2020
22

33
- Cyril Cohen (Inria)
4+
- Pierre Roux (Onera)
45
- Kazuhiko Sakaguchi (University of Tsukuba)
56
- Enrico Tassi (Inria)
67

7-
This software is released under the terms of the MIT license, see LICENSE file.
8+
This software is released under the terms of the MIT license, see LICENSE file.

HB/builders.elpi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ builders.end :- std.do! [
5454
acc-clauses current Clauses,
5555
acc-clauses current ExportClausesFiltered,
5656

57-
% Clauses => ExportClausesFiltered => current-mode no-builder =>
58-
% instance.declare-factory-sort-factory GR,
59-
6057
log.coq.env.end-module-name Name Exports,
6158
log.coq.env.end-module-name ModName _,
6259
export.module {calc (ModName ^ "." ^ Name)} Exports,

HB/factory.elpi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,6 @@ declare-mixin-or-factory MixinSrcClauses SectionCanonicalInstance
294294
@global! => log.coq.arguments.set-implicit GRK [[maximal|Implicits]],
295295
% @global! => log.coq.coercion.declare FactorySortCoe,
296296

297-
% NewClauses => instance.declare-factory-sort-deps (indt R),
298-
299297
log.coq.env.end-module-name "Exports" Exports,
300298
log.coq.env.end-module-name Module _,
301299

@@ -366,8 +364,6 @@ declare-factory-alias MixinSrcClauses SectionCanonicalInstance
366364
acc-clauses current NewClauses,
367365
%@global! => log.coq.coercion.declare FactorySortCoe,
368366

369-
% NewClauses => instance.declare-factory-sort-deps (const C),
370-
371367
log.coq.env.end-module-name "Exports" Exports,
372368
log.coq.env.end-module-name Module _,
373369

HB/instance.elpi

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -191,72 +191,6 @@ decl-const-in-struct Name S STy CS:- std.do![
191191
if-verbose (coq.say {header} "structure instance" Name "declared"),
192192
].
193193

194-
195-
pred declare-factory-sort-deps i:gref.
196-
declare-factory-sort-deps GR :- std.do! [
197-
if-verbose (coq.say {header} "required instances on factory sort for" GR),
198-
Name is "SortInstances" ^ {std.any->string {new_int}},
199-
log.coq.env.begin-module Name none,
200-
log.coq.env.begin-section Name,
201-
mk-factory-sort-deps GR CSL,
202-
log.coq.env.end-section-name Name,
203-
log.coq.env.end-module-name Name _,
204-
std.forall CSL (x\ sigma CS\ x = pr _ CS, log.coq.CS.declare-instance CS)
205-
].
206-
207-
pred declare-factory-sort-factory i:gref.
208-
declare-factory-sort-factory GR :- std.do! [
209-
if-verbose (coq.say {header} "required instances on factory sort for" GR),
210-
Name is "SortInstances" ^ {std.any->string {new_int}},
211-
log.coq.env.begin-module Name none,
212-
log.coq.env.begin-section Name,
213-
mk-factory-sort-factory GR CFL CSL,
214-
log.coq.env.end-section-name Name,
215-
log.coq.env.end-module-name Name _,
216-
std.forall {std.append CFL CSL} (x\ sigma CS\ x = pr _ CS, log.coq.CS.declare-instance CS)
217-
].
218-
219-
pred context.declare i:factories, o:mixins, o:list term, o:term, o:list prop, o:list constant.
220-
221-
pred mk-factory-sort-deps i:gref, o:list (pair id constant).
222-
mk-factory-sort-deps AliasGR CSL :- std.do! [
223-
std.assert-ok! (factory-alias->gref AliasGR GR) "HB: mk-factory-sort-deps",
224-
gref-deps GR MLwPRaw,
225-
context.declare MLwPRaw MLwP SortParams SortKey SortMSL _,
226-
SortMSL => synthesis.infer-all-gref-deps SortParams SortKey GR FSort,
227-
log.coq.env.add-section-variable-noimplicits "f" FSort CF,
228-
GCF = global (const CF),
229-
factory-sort (coercion GRFSort _ GR _),
230-
SortMSL => synthesis.infer-all-gref-deps SortParams SortKey GRFSort KSort,
231-
coq.mk-app KSort [GCF] KFSortEta,
232-
list-w-params_list MLwP ML,
233-
std.length ML NMLArgs,
234-
coq.mk-n-holes NMLArgs SortMLHoles,
235-
std.append {std.append SortParams [SortKey|SortMLHoles]} [GCF] KFSortArgs,
236-
coq.mk-app (global GRFSort) KFSortArgs KFSort,
237-
std.assert-ok! (coq.unify-eq KFSortEta KFSort) "HB: KRSort not an app",
238-
std.map SortMSL
239-
(c\ o\ sigma m t\ c = mixin-src _ m t, o = mixin-src KFSort m t)
240-
KFSortMSL,
241-
KFSortMSL =>
242-
synthesis.under-mixin-src-from-factory.do! KFSort GCF
243-
[declare-all KFSort {findall-classes-for ML} CSL]
244-
].
245-
246-
pred mk-factory-sort-factory i:gref, o:list (pair id constant), o:list (pair id constant).
247-
mk-factory-sort-factory AliasGR CFL CSL :- std.do! [
248-
std.assert-ok! (factory-alias->gref AliasGR GR) "HB",
249-
gref-deps GR MLwPRaw,
250-
context.declare MLwPRaw MLwP SortParams SortKey SortMSL _,
251-
SortMSL => synthesis.infer-all-gref-deps SortParams SortKey GR FSort,
252-
log.coq.env.add-section-variable-noimplicits "f" FSort CF,
253-
std.length {list-w-params_list MLwP} NMLArgs,
254-
coq.mk-n-holes NMLArgs SortMLHoles,
255-
GCF = global (const CF),
256-
coq.mk-app (global GR) {std.append SortParams [GCF|SortMLHoles]} FGCF,
257-
declare-const "_" GCF (arity FGCF) CFL CSL
258-
].
259-
260194
% create instances for all possible combinations of types and structure compatible
261195
pred saturate-instances i:cs-pattern.
262196
saturate-instances Filter :- std.do! [

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ this-config:: __always__
110110
echo '*****************************************************************';\
111111
echo 'old coq version detected, double check the diff before committing';\
112112
echo '*****************************************************************';\
113-
sed -i.bak `find . -name \*.v` -e 's/From Corelib/From Coq/' ; \
114-
sed -i.bak `find . -name \*.v` -e 's/IntDef/ZArith/' ; \
113+
sed -i.bak -e 's/From Corelib/From Coq/' `find . -name \*.v` ; \
114+
sed -i.bak -e 's/IntDef/ZArith/' `find . -name \*.v` ; \
115115
fi;\
116116
fi
117117

0 commit comments

Comments
 (0)