diff options
| author | Hugo Herbelin | 2014-06-16 19:06:24 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2014-06-16 19:12:37 +0200 |
| commit | 74d0de5bd391bcca928a361ca8ce307e823f9c1a (patch) | |
| tree | c36ce285c51021214cd1769b51faccbce1388e02 /pretyping | |
| parent | 73c153101b8b7ccc0c279161869265b596032b0e (diff) | |
Unification in HoTT_coq_061.v was looping with previous commit (while
it was failing with Not_found before previous commit). This "fixes"
the loop by expanding local defs in "imitate" rather than keeping them
explicit. The example is otherwise too large for me to be able to
understand where does the loop come from.
Diffstat (limited to 'pretyping')
| -rw-r--r-- | pretyping/evarsolve.ml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pretyping/evarsolve.ml b/pretyping/evarsolve.ml index aaf6e2a3d7..7222085e18 100644 --- a/pretyping/evarsolve.ml +++ b/pretyping/evarsolve.ml @@ -1260,6 +1260,8 @@ let rec invert_definition conv_algo choose env evd pbty (evk,argsv as ev) rhs = | Some b -> try project_variable t with NotInvertibleUsingOurAlgorithm _ -> imitate envk b) + | LetIn (na,b,u,c) -> + imitate envk (subst1 b c) | Evar (evk',args' as ev') -> if Evar.equal evk evk' then raise (OccurCheckIn (evd,rhs)); (* Evar/Evar problem (but left evar is virtual) *) |
