(fun _ ->
if script#onGoingProof () then
MatitaLog.debug (CicMetaSubst.ppmetasenv script#proofMetasenv []));
+ addDebugItem "dump coercions Db" (fun _ ->
+ List.iter (
+ fun (s,t,u) ->
+ MatitaLog.debug (
+ UriManager.name_of_uri u ^ ":" ^
+ UriManager.name_of_uri s ^ " -> " ^ UriManager.name_of_uri t))
+ (CoercDb.to_list ())
+ );
addDebugItem "rotate light bulbs"
(fun _ ->
let nb = gui#main#hintNotebook in
if Filename.basename Sys.argv.(0) = "cicbrowser" then begin (* cicbrowser *)
Helm_registry.set "matita.mode" "cicbrowser";
let browser = MatitaMathView.cicBrowser () in
- try
- browser#load (`Uri Sys.argv.(1))
- with Invalid_argument _ -> ()
+ let entry =
+ try
+ `Uri Sys.argv.(1)
+ with Invalid_argument _ -> `Dir "cic:/"
+ in
+ browser#load entry
end else begin (* matita *)
Helm_registry.set "matita.mode" "matita";
gui#main#mainWin#show ();