aboutsummaryrefslogtreecommitdiff
path: root/toplevel
diff options
context:
space:
mode:
authorMatthieu Sozeau2014-04-07 13:07:26 +0200
committerMatthieu Sozeau2014-05-06 09:58:59 +0200
commit484e2c349e68b0284f278f691334d82001ee0f0e (patch)
tree929910f466ed8cadbf6bb8a7b470e49f7f187190 /toplevel
parent4bc936b22f9ed1e90286f39c8d51c9f05c37b300 (diff)
- Fix RecTutorial, and mutual induction schemes getting the wrong names.
Now the universe inconsistency appears at [exact t] instead of the Defined :)
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/indschemes.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/toplevel/indschemes.ml b/toplevel/indschemes.ml
index ac3bf59295..a5e30b210f 100644
--- a/toplevel/indschemes.ml
+++ b/toplevel/indschemes.ml
@@ -351,11 +351,11 @@ let do_mutual_induction_scheme lnamedepindsort =
let lrecnames = List.map (fun ((_,f),_,_,_) -> f) lnamedepindsort
and env0 = Global.env() in
let sigma, lrecspec =
- List.fold_left
- (fun (evd, l) (_,dep,ind,sort) ->
+ List.fold_right
+ (fun (_,dep,ind,sort) (evd, l) ->
let evd, indu = Evd.fresh_inductive_instance env0 evd ind in
(evd, (indu,dep,interp_elimination_sort sort) :: l))
- (Evd.from_env env0,[]) lnamedepindsort
+ lnamedepindsort (Evd.from_env env0,[])
in
let sigma, listdecl = Indrec.build_mutual_induction_scheme env0 sigma lrecspec in
let declare decl fi lrecref =