Skip to content

Commit

Permalink
Adapt to coq/coq#17836 (sort poly)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySkimmer committed Nov 6, 2023
1 parent 5b13cd7 commit 246791a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Rewriter/Util/Tactics2/Constr.v.v819
Expand Up @@ -53,7 +53,7 @@ Module Unsafe.
Case.iter_invert f iv;
f x;
f y
| Proj _p c => f c
| Proj _p _ c => f c
| Fix _ _ tl bl =>
Array.iter (fun b => f (Binder.type b)) tl;
Array.iter f bl
Expand Down Expand Up @@ -84,7 +84,7 @@ Module Unsafe.
Case.iter_invert (f n) iv;
f n x;
f n y
| Proj _p c => f n c
| Proj _p _ c => f n c
| Fix _ _ tl bl =>
Array.iter (fun b => f n (Binder.type b)) tl;
Array.iter (f (iterate g (Array.length tl) n)) bl
Expand Down
2 changes: 1 addition & 1 deletion src/Rewriter/Util/Tactics2/DestProj.v.v819
Expand Up @@ -6,6 +6,6 @@ Ltac2 Type exn ::= [ Not_a_proj (kind) ].
Ltac2 destProj (c : constr) :=
let k := kind c in
match k with
| Proj p v => (p, v)
| Proj p r v => (p, r, v)
| _ => Control.throw (Not_a_proj k)
end.
2 changes: 1 addition & 1 deletion src/Rewriter/Util/plugins/inductive_from_elim.ml.v819
Expand Up @@ -45,7 +45,7 @@ let make_inductive_from_elim sigma (name : Names.Id.t option) (elim_ty : EConstr
let univs, ubinders = Evd.check_univ_decl ~poly:false sigma UState.default_univ_decl in
let uctx = match univs with
| UState.Monomorphic_entry ctx ->
let () = DeclareUctx.declare_universe_context ~poly:false ctx in
let () = Global.push_context_set ~strict:true ctx in
Entries.Monomorphic_ind_entry
| UState.Polymorphic_entry uctx -> Entries.Polymorphic_ind_entry uctx
in
Expand Down

0 comments on commit 246791a

Please sign in to comment.