Skip to content

Commit 857fb0c

Browse files
authored
1 parent ea8deaa commit 857fb0c

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

src/Rewriter/Util/plugins/definition_by_tactic.mli.v92

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ open Ltac_plugin
22

33
val make_definition_by_tactic
44
: Evd.evar_map
5-
-> poly:bool
5+
-> poly:PolyFlags.t
66
-> Names.Id.t
77
-> EConstr.t
88
-> unit Proofview.tactic
99
-> Names.Constant.t
1010

11-
val vernac_make_definition_by_tactic : poly:bool -> Names.Id.t -> Constrexpr.constr_expr -> Tacexpr.raw_tactic_expr -> unit
11+
val vernac_make_definition_by_tactic : poly:PolyFlags.t -> Names.Id.t -> Constrexpr.constr_expr -> Tacexpr.raw_tactic_expr -> unit

src/Rewriter/Util/plugins/definition_by_tactic_plugin.mlg.v92

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ DECLARE PLUGIN "coq-rewriter.definition_by_tactic"
1111

1212
VERNAC COMMAND EXTEND DefinitionViaTactic CLASSIFIED AS SIDEFF
1313
| [ "Make" "Definition" ":" constr(ty) ":=" tactic(tac) ] -> {
14-
let poly = false in
14+
let poly = PolyFlags.default in
1515
let name = Namegen.next_global_ident_away (Global.safe_env ()) (Names.Id.of_string "Unnamed_thm") Names.Id.Set.empty in
1616
vernac_make_definition_by_tactic ~poly name ty tac
1717
}
1818
| [ "Make" "Definition" ident(name) ":" constr(ty) ":=" tactic(tac) ] -> {
19-
let poly = false in
19+
let poly = PolyFlags.default in
2020
vernac_make_definition_by_tactic ~poly name ty tac
2121
}
2222
END

src/Rewriter/Util/plugins/inductive_from_elim.ml.v92

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ let make_inductive_from_elim sigma (name : Names.Id.t option) (elim_ty : EConstr
4343
EConstr.to_constr sigma (EConstr.Vars.subst_var sigma name cty)
4444
in
4545
let sigma = Evd.collapse_sort_variables sigma in
46-
let univs, ubinders = Evd.check_univ_decl ~poly:false sigma UState.default_univ_decl in
46+
let univs, ubinders = Evd.check_univ_decl ~poly:PolyFlags.default sigma UState.default_univ_decl in
4747
let uctx = match univs with
4848
| UState.Monomorphic_entry ctx ->
4949
let () = Global.push_context_set ctx in
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
val vernac_rewriter_emit_inductives : poly:bool -> Constrexpr.constr_expr -> Names.Id.t -> Names.Id.t -> Names.Id.t -> Names.Id.t -> unit
1+
val vernac_rewriter_emit_inductives : poly:PolyFlags.t -> Constrexpr.constr_expr -> Names.Id.t -> Names.Id.t -> Names.Id.t -> Names.Id.t -> unit
22

3-
val vernac_make_rewriter : poly:bool -> ?var_like_idents:(Constrexpr.constr_expr option) -> ?include_interp:bool -> ?skip_early_reduction:bool -> ?skip_early_reduction_no_dtree:bool -> ?extra:(Constrexpr.constr_expr option) -> Names.Id.t -> Constrexpr.constr_expr -> unit
3+
val vernac_make_rewriter : poly:PolyFlags.t -> ?var_like_idents:(Constrexpr.constr_expr option) -> ?include_interp:bool -> ?skip_early_reduction:bool -> ?skip_early_reduction_no_dtree:bool -> ?extra:(Constrexpr.constr_expr option) -> Names.Id.t -> Constrexpr.constr_expr -> unit

src/Rewriter/Util/plugins/rewriter_build_plugin.mlg.v92

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,74 +9,74 @@ DECLARE PLUGIN "coq-rewriter.rewriter_build"
99

1010
VERNAC COMMAND EXTEND RewriterEmitInductives CLASSIFIED AS SIDEFF
1111
| [ "Rewriter" "Emit" "Inductives" "From" "Scraped" constr(scraped_data) "As" ident(base_ind) ident(ident_ind) ident(raw_ident_ind) ident(pattern_ident_ind) ] -> {
12-
let poly = false in
12+
let poly = PolyFlags.default in
1313
vernac_rewriter_emit_inductives ~poly scraped_data base_ind ident_ind raw_ident_ind pattern_ident_ind
1414
}
1515
END
1616

1717
VERNAC COMMAND EXTEND MakeRewriter CLASSIFIED AS SIDEFF
1818
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) ] -> {
19-
let poly = false in
19+
let poly = PolyFlags.default in
2020
vernac_make_rewriter ~poly package specs_proofs
2121
}
2222
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "inlining" constr(var_like_idents) ")" ] -> {
23-
let poly = false in
23+
let poly = PolyFlags.default in
2424
vernac_make_rewriter ~poly package specs_proofs ~var_like_idents:(Some var_like_idents)
2525
}
2626
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "inlining" constr(var_like_idents) ")" "(" "with" "delta" ")" ] -> {
27-
let poly = false in
27+
let poly = PolyFlags.default in
2828
vernac_make_rewriter ~poly package specs_proofs ~var_like_idents:(Some var_like_idents) ~include_interp:true
2929
}
3030
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "inlining" constr(var_like_idents) ")" "(" "with" "extra" "idents" constr(extra) ")" ] -> {
31-
let poly = false in
31+
let poly = PolyFlags.default in
3232
vernac_make_rewriter ~poly package specs_proofs ~var_like_idents:(Some var_like_idents) ~extra:(Some extra)
3333
}
3434
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "inlining" constr(var_like_idents) ")" "(" "with" "delta" ")" "(" "with" "extra" "idents" constr(extra) ")" ] -> {
35-
let poly = false in
35+
let poly = PolyFlags.default in
3636
vernac_make_rewriter ~poly package specs_proofs ~var_like_idents:(Some var_like_idents) ~include_interp:true ~extra:(Some extra)
3737
}
3838
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "inlining" constr(var_like_idents) ")" "(" "with" "extra" "idents" constr(extra) ")" "(" "with" "delta" ")" ] -> {
39-
let poly = false in
39+
let poly = PolyFlags.default in
4040
vernac_make_rewriter ~poly package specs_proofs ~var_like_idents:(Some var_like_idents) ~include_interp:true ~extra:(Some extra)
4141
}
4242
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "with" "delta" ")" ] -> {
43-
let poly = false in
43+
let poly = PolyFlags.default in
4444
vernac_make_rewriter ~poly package specs_proofs ~include_interp:true
4545
}
4646
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "with" "delta" ")" "(" "inlining" constr(var_like_idents) ")" ] -> {
47-
let poly = false in
47+
let poly = PolyFlags.default in
4848
vernac_make_rewriter ~poly package specs_proofs ~var_like_idents:(Some var_like_idents) ~include_interp:true
4949
}
5050
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "with" "delta" ")" "(" "with" "extra" "idents" constr(extra) ")" ] -> {
51-
let poly = false in
51+
let poly = PolyFlags.default in
5252
vernac_make_rewriter ~poly package specs_proofs ~include_interp:true ~extra:(Some extra)
5353
}
5454
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "with" "delta" ")" "(" "inlining" constr(var_like_idents) ")" "(" "with" "extra" "idents" constr(extra) ")" ] -> {
55-
let poly = false in
55+
let poly = PolyFlags.default in
5656
vernac_make_rewriter ~poly package specs_proofs ~var_like_idents:(Some var_like_idents) ~include_interp:true ~extra:(Some extra)
5757
}
5858
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "with" "delta" ")" "(" "with" "extra" "idents" constr(extra) ")" "(" "inlining" constr(var_like_idents) ")" ] -> {
59-
let poly = false in
59+
let poly = PolyFlags.default in
6060
vernac_make_rewriter ~poly package specs_proofs ~var_like_idents:(Some var_like_idents) ~include_interp:true ~extra:(Some extra)
6161
}
6262
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "with" "extra" "idents" constr(extra) ")" ] -> {
63-
let poly = false in
63+
let poly = PolyFlags.default in
6464
vernac_make_rewriter ~poly package specs_proofs ~extra:(Some extra)
6565
}
6666
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "with" "extra" "idents" constr(extra) ")" "(" "with" "delta" ")" ] -> {
67-
let poly = false in
67+
let poly = PolyFlags.default in
6868
vernac_make_rewriter ~poly package specs_proofs ~include_interp:true ~extra:(Some extra)
6969
}
7070
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "with" "extra" "idents" constr(extra) ")" "(" "inlining" constr(var_like_idents) ")" ] -> {
71-
let poly = false in
71+
let poly = PolyFlags.default in
7272
vernac_make_rewriter ~poly package specs_proofs ~var_like_idents:(Some var_like_idents) ~extra:(Some extra)
7373
}
7474
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "with" "extra" "idents" constr(extra) ")" "(" "inlining" constr(var_like_idents) ")" "(" "with" "delta" ")" ] -> {
75-
let poly = false in
75+
let poly = PolyFlags.default in
7676
vernac_make_rewriter ~poly package specs_proofs ~var_like_idents:(Some var_like_idents) ~include_interp:true ~extra:(Some extra)
7777
}
7878
| [ "Make" ident(package) ":=" "Rewriter" "For" constr(specs_proofs) "(" "with" "extra" "idents" constr(extra) ")" "(" "with" "delta" ")" "(" "inlining" constr(var_like_idents) ")" ] -> {
79-
let poly = false in
79+
let poly = PolyFlags.default in
8080
vernac_make_rewriter ~poly package specs_proofs ~var_like_idents:(Some var_like_idents) ~include_interp:true ~extra:(Some extra)
8181
}
8282
END

0 commit comments

Comments
 (0)