Skip to content

Commit

Permalink
Last undue call to typing in elim_false.
Browse files Browse the repository at this point in the history
  • Loading branch information
ppedrot committed Jun 7, 2024
1 parent c24773a commit 7750eb7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/simplify.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1113,12 +1113,8 @@ SimpFun.make ~name:"elim_false" begin fun (env : Environ.env) (evd : Evd.evar_ma
else let sigma, equ, glu = Equations_common.instance_of env !evd glu in
evd := sigma; equ, glu
in
let c = EConstr.mkApp (EConstr.mkRef (tzero_ind, inst), [| tB |]) in
(* We need to type the term in order to solve eventual universes
* constraints. *)
let _ = let env = push_rel_context ctx env in
Equations_common.evd_comb1 (Typing.type_of env) evd c in
(None, c), true, subst
let c = checked_appvect (push_rel_context ctx env) evd (EConstr.mkRef (tzero_ind, inst)) [| tB |] in
(None, c), true, subst
end

let elim_false = with_retry elim_false
Expand Down

0 comments on commit 7750eb7

Please sign in to comment.