Skip to content
Open
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
2 changes: 1 addition & 1 deletion template-rocq/theories/AstUtils.v
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ Definition rebuild_case_predicate_ctx_with_context (Σ : global_env) ind (p : pr
end.

Definition map_context_with_context (f : context -> term -> term) (c : context) Γ : context :=
fold_left (fun acc decl => map_decl (f (Γ ,,, acc)) decl :: acc) (List.rev c) [].
fold_right (fun (decl : context_decl) (acc : list context_decl) => map_decl (f (Γ,,, acc)) decl :: acc) c [].

Definition map_predicate_with_context (Σ : global_env) (f : context -> term -> term) Γ ind (p : predicate term) :=
let pctx := rebuild_case_predicate_ctx_with_context Σ ind p in
Expand Down
Loading