Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to coq/coq#17836 (sort poly) #109

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Rewriter/Util/Tactics2/Constr.v.v819
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading