X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Facic_content%2FtermAcicContent.ml;h=7a459084989eba70e47379b2976631684ee462f7;hb=5f87c295e57d5c5ef9bcb13d71f19b24642355be;hp=f6b1b68aa3958d50deb92c1ec97a4c82aaee7322;hpb=5c1b44dfefa085fbb56e23047652d3650be9d855;p=helm.git diff --git a/helm/software/components/acic_content/termAcicContent.ml b/helm/software/components/acic_content/termAcicContent.ml index f6b1b68aa..7a4590849 100644 --- a/helm/software/components/acic_content/termAcicContent.ml +++ b/helm/software/components/acic_content/termAcicContent.ml @@ -42,7 +42,7 @@ type term_info = } let get_types uri = - let o,_ = CicEnvironment.get_obj CicUniv.empty_ugraph uri in + let o,_ = CicEnvironment.get_obj CicUniv.oblivion_ugraph uri in match o with | Cic.InductiveDefinition (l,_,lpsno,_) -> l, lpsno | _ -> assert false @@ -103,14 +103,14 @@ let ast_of_acic0 ~output_type term_info acic k = | Cic.ASort (id,Cic.Prop) -> idref id (Ast.Sort `Prop) | Cic.ASort (id,Cic.Set) -> idref id (Ast.Sort `Set) | Cic.ASort (id,Cic.Type u) -> idref id (Ast.Sort (`Type u)) - | Cic.ASort (id,Cic.CProp) -> idref id (Ast.Sort `CProp) + | Cic.ASort (id,Cic.CProp u) -> idref id (Ast.Sort (`CProp u)) | Cic.AImplicit (id, Some `Hole) -> idref id Ast.UserInput | Cic.AImplicit (id, _) -> idref id Ast.Implicit | Cic.AProd (id,n,s,t) -> let binder_kind = match sort_of_id id with | `Set | `Type _ -> `Pi - | `Prop | `CProp -> `Forall + | `Prop | `CProp _ -> `Forall in idref id (Ast.Binder (binder_kind, (CicNotationUtil.name_of_cic_name n, Some (k s)), k t)) @@ -118,8 +118,8 @@ let ast_of_acic0 ~output_type term_info acic k = | Cic.ALambda (id,n,s,t) -> idref id (Ast.Binder (`Lambda, (CicNotationUtil.name_of_cic_name n, Some (k s)), k t)) - | Cic.ALetIn (id,n,s,t) -> - idref id (Ast.LetIn ((CicNotationUtil.name_of_cic_name n, None), + | Cic.ALetIn (id,n,s,ty,t) -> + idref id (Ast.LetIn ((CicNotationUtil.name_of_cic_name n, Some (k ty)), k s, k t)) | Cic.AAppl (aid,(Cic.AConst _ as he::tl as args)) | Cic.AAppl (aid,(Cic.AMutInd _ as he::tl as args))