with
| Cic.MutInd (uri, tyno, _) ->
(GrafiteAst.Type (uri, tyno) :: types)
- | _ -> raise Disambiguate.NoWellTypedInterpretation)
+ | _ -> raise (MatitaDisambiguator.DisambiguationError (0,[[None,lazy "Decompose works only on inductive types"]])))
in
let types = List.fold_left disambiguate [] types in
GrafiteAst.Decompose (loc, types, what, names)
let disambiguate_obj status obj =
let uri =
match obj with
- GrafiteAst.Inductive (_,(name,_,_,_)::_)
- | GrafiteAst.Record (_,name,_,_) ->
+ | CicNotationPt.Inductive (_,(name,_,_,_)::_)
+ | CicNotationPt.Record (_,name,_,_) ->
Some (UriManager.uri_of_string (MatitaTypes.qualify status name ^ ".ind"))
- | GrafiteAst.Inductive _ -> assert false
- | GrafiteAst.Theorem _ -> None in
+ | CicNotationPt.Inductive _ -> assert false
+ | CicNotationPt.Theorem _ -> None in
let (diff, metasenv, cic, _) =
singleton
(MatitaDisambiguator.disambiguate_obj ~dbd:(MatitaDb.instance ())
in
try
aux paths
- with Unix.Unix_error _ as exc -> raise (UnableToInclude path)
+ with Unix.Unix_error _ -> raise (UnableToInclude path)
;;
let eval_command opts status cmd =
"name/uri. This should be fixed!")
| _-> command_error "You can't Qed an incomplete theorem"
in
- let suri = UriManager.string_of_uri uri in
if metasenv <> [] then
command_error "Proof not completed! metasenv is not empty!";
let name = UriManager.name_of_uri uri in
if opts.do_heavy_checks then
begin
let dbd = MatitaDb.instance () in
- let similar = MetadataQuery.match_term ~dbd ty in
+ let similar = Whelp.match_term ~dbd ty in
let similar_len = List.length similar in
if similar_len> 30 then
(MatitaLog.message