Skip to content

Commit

Permalink
Update to Isabelle2023.
Browse files Browse the repository at this point in the history
  • Loading branch information
yutakang committed Sep 12, 2023
1 parent 15453f6 commit 35047f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SeLFiE/Util.ML
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ fun is_in_Main (ctxt:Proof.context) (thm:thm) =
val this_thy = Proof_Context.theory_of ctxt:theory;
val thy_names_in_main = Context.get_theory {long=false} this_thy "Main"
|> Theory.ancestors_of
|> map Context.theory_name:strings;
|> map (Context.theory_name {long=true}):strings;
fun get_theory_name (thm:thm) = thm |> Thm.get_name_hint |> fst_qualifier;
val thy_name = get_theory_name thm;
val result = exists (equal thy_name) thy_names_in_main;
Expand Down
7 changes: 4 additions & 3 deletions TBC/TBC.thy
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ fun write_proof_script_in_result_file (pst:Proof.state) (what_to_write:string) =
let
val thy = Proof.theory_of pst;
val ctxt = Proof.context_of pst;
val theory_name = Local_Theory.exit_global ctxt |> Context.theory_name
val theory_name = Local_Theory.exit_global ctxt |> Context.theory_name {long=true}
val file_name = "eval_scripts.txt": string;
val path = File.platform_path (Resources.master_directory thy);
val separator = "==========" ^ theory_name ^ "==========\n";
Expand Down Expand Up @@ -1461,7 +1461,7 @@ fun get_ancestors_of_main ctxt =
let
fun get_Main ctxt = SOME (Theory.check {long = true} ctxt ("Main", Position.none))
handle ERROR _ => NONE;
fun ancestor_list ctxt = (Theory.ancestors_of ctxt |> map Context.theory_name)
fun ancestor_list ctxt = Theory.ancestors_of ctxt |> map (Context.theory_name {long=true})
val maybe_main = get_Main ctxt
val ancestors_list = case maybe_main of
NONE => []
Expand Down Expand Up @@ -2087,7 +2087,8 @@ fun prove_by_conjecturing _ descr output_to_external_file =
(((long_statement || short_statement) >> (fn (_, _, _, _(*elems*), concl: (string, string) Element.stmt) =>
(fn lthy: local_theory =>
let
val stat_w_thy_name = TBC_Eval_Stat.update_theory_name_by_psl_in_stat (Local_Theory.exit_global lthy |> Context.theory_name) TBC_Eval_Stat.default_stat;
fun get_theory_name lthy = Local_Theory.exit_global lthy |> Context.theory_name {long=true};
val stat_w_thy_name = TBC_Eval_Stat.update_theory_name_by_psl_in_stat (get_theory_name lthy) TBC_Eval_Stat.default_stat;
val pst = Proof.init lthy: Proof.state;
val original_goal = TBC_Utils.statement_to_conjecture pst concl: TBC_Utils.pnode;
val timeout = seconds 3600.0;(*3600.0 for Isaplanner and Prod, 900.0 for TIP15*)
Expand Down

0 comments on commit 35047f9

Please sign in to comment.