(*let old_working = CicUniv.get_working () in
CicUniv.set_working (CicUniv.get_global ());*)
CicUniv.directly_to_env_begin () ;
- prerr_endline "-------------> QED";
if
CicReduction.are_convertible []
(CicTypeChecker.type_of_aux' [] [] bo) ty
CicUniv.qed (); (* now the env has the right constraints *)*)
CicUniv.directly_to_env_end();
CicUniv.reset_working ();
- prerr_endline "-------------> FINE";
end
else
raise WrongProof
let mk_fresh_name_callback metasenv context name ~typ =
let fresh_name =
- match FreshNamesGenerator.mk_fresh_name metasenv context name ~typ with
+ match FreshNamesGenerator.mk_fresh_name ~subst:[] metasenv context name ~typ with
Cic.Name fresh_name -> fresh_name
| Cic.Anonymous -> assert false
in
begin
notebook#set_current_page
~may_skip_switch_page_event:true metano ;
-prerr_endline "CIAO CIAO" ;
-prerr_endline ("SEQUENTE CORRENTE: " ^ SequentPp.TextualPp.print_sequent currentsequent) ;
notebook#proofw#load_sequent metasenv currentsequent ;
-prerr_endline "pASSO CIAO CIAO"
end
with
e ->
(* MAIN *)
let initialize_everything () =
-prerr_endline "STO PER CREARE LA PROOF WINDOW" ;
let output =
TermViewer.proof_viewer
~mml_of_cic_object:ChosenTransformer.mml_of_cic_object
~width:350 ~height:280 ()
in
-prerr_endline "CREATA" ;
let notebook = new notebook in
let rendering_window' = new rendering_window output notebook in
-prerr_endline "OK" ;
rendering_window'#set_auto_disambiguation !auto_disambiguation;
set_rendering_window rendering_window';
let print_error_as_html prefix msg =
;;
let main () =
-prerr_endline "CIAO" ;
ignore (GtkMain.Main.init ()) ;
initialize_everything () ;
MQIC.close mqi_handle;
;;
try
+(* CicEnvironment.set_trust (fun _ -> false); *)
Sys.catch_break true;
main ();
with Sys.Break -> () (* exit nicely, invoking at_exit functions *)