src/Tools/WWW_Find/find_theorems.ML
changeset 36610 bafd82950e24
parent 33823 24090eae50b6
child 36745 403585a89772
equal deleted inserted replaced
36609:6ed6112f0a95 36610:bafd82950e24
   208       |> the_default "Main";
   208       |> the_default "Main";
   209     val with_dups = is_some (args "with_dups");
   209     val with_dups = is_some (args "with_dups");
   210 
   210 
   211     fun do_find () =
   211     fun do_find () =
   212       let
   212       let
   213         val ctxt = ProofContext.init (theory thy_name);
   213         val ctxt = ProofContext.init_global (theory thy_name);
   214         val query = get_query ();
   214         val query = get_query ();
   215         val (othmslen, thms) = apsnd rev
   215         val (othmslen, thms) = apsnd rev
   216           (Find_Theorems.find_theorems ctxt NONE (SOME limit) with_dups query);
   216           (Find_Theorems.find_theorems ctxt NONE (SOME limit) with_dups query);
   217         val thmslen = length thms;
   217         val thmslen = length thms;
   218         fun thm_row args = Xhtml.write send (html_thm ctxt args);
   218         fun thm_row args = Xhtml.write send (html_thm ctxt args);