File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,9 +67,6 @@ fun template_conjectures (ctxt:Proof.context) (trm:term): (string * term) list =
6767
6868structure S4TD = SeLFiE_For_Top_Down;
6969
70- fun run_assertion (ctxt:Proof.context) (trm:term) (assert:Eval_Syntactic_Sugar.assert) =
71- S4TD.run_assertion (Top_Down_Util.mk_pst_to_prove_from_term ctxt trm) assert trm;
72-
7370fun top_down_conjectures (ctxt:Proof.context) trm =
7471 let
7572 val _ = tracing " [[[[[[[[[[[top_down_conjecture starts]]]]]]]]]]" : unit;
@@ -89,9 +86,9 @@ fun top_down_conjectures (ctxt:Proof.context) trm =
8986(*
9087 |> parallel_filter_out (fn (_, trm) => eq_over_same_func ctxt trm)
9188*)
92- |> parallel_filter_out (fn (_, trm) => run_assertion ctxt trm S4TD.has_func_with_three_occs_in_a_row)
93- |> parallel_filter (fn (_, trm) => run_assertion ctxt trm S4TD.fvars_in_prem_should_appear_in_concl)
94- |> parallel_filter (fn (_, trm) => run_assertion ctxt trm S4TD.does_not_have_trivial_equality);
89+ |> parallel_filter_out (fn (_, trm) => S4TD. run_assertion ctxt trm S4TD.has_func_with_three_occs_in_a_row)
90+ |> parallel_filter (fn (_, trm) => S4TD. run_assertion ctxt trm S4TD.fvars_in_prem_should_appear_in_concl)
91+ |> parallel_filter (fn (_, trm) => S4TD. run_assertion ctxt trm S4TD.does_not_have_trivial_equality);
9592 val _ = tracing " [[[[[[[[[[[top_down_conjecture ends]]]]]]]]]]" : unit;
9693 in
9794 results
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ val has_func_with_three_occs_in_a_row =
8686 ]
8787 );
8888
89- fun run_assertion (pst:Proof.state ) (assrt:assert ) (cnjctr:term ) =
89+ fun run_assertion' (pst:Proof.state ) (assrt:assert ) (cnjctr:term ) =
9090 let
9191 val outer_path_to_unode_table = Outer_Path_To_Unode. pst_n_trm_to_path_to_unode_table pst cnjctr : Outer_Path_To_Unode. path_to_unode_table;
9292 val gen_path_table = Gen_Path. Outer_Path_To_Unode outer_path_to_unode_table : Gen_Path. gen_path_to_unode_table;
@@ -96,4 +96,7 @@ fun run_assertion (pst:Proof.state) (assrt:assert) (cnjctr:term) =
9696 eval pst outer_path_to_unode_table outer_domains empty_argument assrt = True
9797 end ;
9898
99+ fun run_assertion (ctxt:Proof.context ) (trm:term ) (assert :Eval_Syntactic_Sugar.assert ) =
100+ run_assertion' (Top_Down_Util. mk_pst_to_prove_from_term ctxt trm) assert trm: bool ;
101+
99102end;
You can’t perform that action at this time.
0 commit comments