aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/xml
diff options
context:
space:
mode:
authorGravatar Matthieu Sozeau <mattam@mattam.org>2014-06-15 13:24:41 +0200
committerGravatar Matthieu Sozeau <mattam@mattam.org>2014-06-15 13:24:41 +0200
commit0a51137f7ff80afdcf216d85cd8be25a531bc39b (patch)
treeb8ce1197001e7d387c42bc48ae155313d0ec6956 /plugins/xml
parentdf6e64fd28e9ba8b12045768869c7f083a15e9c0 (diff)
- Fix xml plugin treatment of inductives.
- Move HoTT bug #30 to closed
Diffstat (limited to 'plugins/xml')
-rw-r--r--plugins/xml/xmlcommand.ml15
1 files changed, 8 insertions, 7 deletions
diff --git a/plugins/xml/xmlcommand.ml b/plugins/xml/xmlcommand.ml
index 8f47859da..ef5e18201 100644
--- a/plugins/xml/xmlcommand.ml
+++ b/plugins/xml/xmlcommand.ml
@@ -244,15 +244,16 @@ let mk_inductive_obj sp mib packs variables nparams hyps finite =
let {Declarations.mind_consnames=consnames ;
Declarations.mind_typename=typename } = p
in
- let arity = Inductive.type_of_inductive (Global.env()) ((mib,p),Univ.Instance.empty)(*FIXME*) in
- let lc = Inductiveops.arities_of_constructors (Global.env ()) ((sp,!tyno),Univ.Instance.empty)(*FIXME*) in
- let cons =
+ let inst = Univ.UContext.instance mib.Declarations.mind_universes in
+ let arity = Inductive.type_of_inductive (Global.env()) ((mib,p),inst) in
+ let lc = Inductiveops.arities_of_constructors (Global.env ()) ((sp,!tyno),inst) in
+ let cons =
(Array.fold_right (fun (name,lc) i -> (name,lc)::i)
- (Array.mapi
- (fun j x ->(x,Unshare.unshare lc.(j))) consnames)
- []
+ (Array.mapi
+ (fun j x ->(x,Unshare.unshare lc.(j))) consnames)
+ []
)
- in
+ in
(typename,finite,Unshare.unshare arity,cons)::i
) packs []
in