- cic2acic: string_of_sort badly patched to return a "?" when a meta
is found. Note: this solution is not admissible, since it generates
non-valid XML files (and it may also break other things).
C.Sort C.Prop -> "Prop"
| C.Sort C.Set -> "Set"
| C.Sort C.Type -> "Type"
- | C.Sort C.CProp -> "CProp"
+ | C.Sort C.CProp -> "CProp"
+ | C.Meta _ ->
+prerr_endline "Cic2acic: string_of_sort applied to a meta" ;
+ "?"
| _ -> assert false
in
let ainnertypes,innertype,innersort,expected_available =
when (s2 = C.Prop or s2 = C.Set or s2 = C.CProp) -> (* different from Coq manual!!! *)
C.Sort s2
| (C.Sort s1, C.Sort s2) -> C.Sort C.Type (*CSC manca la gestione degli universi!!! *)
+ | (C.Meta _, C.Sort _) -> t2'
+ | (C.Meta _, (C.Meta (_,_) as t))
+ | (C.Sort _, (C.Meta (_,_) as t)) when CicUtil.is_closed t ->
+ t2'
| (_,_) ->
raise
(NotWellTyped