push Proof.context through Fetch_Tacs.specific_from_prog
authorwneuper <Walther.Neuper@jku.at>
Sat, 06 Aug 2022 19:05:33 +0200
changeset 60526b9297f8c35d2
parent 60525 74878719785d
child 60527 ff2da703f546
push Proof.context through Fetch_Tacs.specific_from_prog
src/Tools/isac/Interpret/derive.sml
src/Tools/isac/MathEngine/fetch-tactics.sml
     1.1 --- a/src/Tools/isac/Interpret/derive.sml	Sat Aug 06 18:50:43 2022 +0200
     1.2 +++ b/src/Tools/isac/Interpret/derive.sml	Sat Aug 06 19:05:33 2022 +0200
     1.3 @@ -121,8 +121,8 @@
     1.4      fun derivat ([]:(term * Rule.rule * (term * term list)) list) = TermC.empty
     1.5        | derivat dt = (#1 o #3 o last_elem) dt
     1.6      fun equal (_, _, (t1, _)) (_, _, (t2, _)) = t1 = t2
     1.7 -    val  fod = do_one (** )ctxt( *HACK*)(Proof_Context.init_global (ThyC.Isac()))(**) erls rules (snd rew_ord) NONE  fo
     1.8 -    val ifod = do_one (** )ctxt( *HACK*)(Proof_Context.init_global (ThyC.Isac()))(**) erls rules (snd rew_ord) NONE ifo
     1.9 +    val  fod = do_one (** )ctxt( *HACK*)(Proof_Context.init_global (ThyC.Isac()))(*ctxt*) erls rules (snd rew_ord) NONE  fo
    1.10 +    val ifod = do_one (** )ctxt( *HACK*)(Proof_Context.init_global (ThyC.Isac()))(*ctxt*) erls rules (snd rew_ord) NONE ifo
    1.11    in 
    1.12      case (fod, ifod) of
    1.13        ([], []) => if fo = ifo then (true, []) else (false, [])
     2.1 --- a/src/Tools/isac/MathEngine/fetch-tactics.sml	Sat Aug 06 18:50:43 2022 +0200
     2.2 +++ b/src/Tools/isac/MathEngine/fetch-tactics.sml	Sat Aug 06 19:05:33 2022 +0200
     2.3 @@ -49,8 +49,13 @@
     2.4      else
     2.5        let
     2.6          val pp = par_pblobj pt p
     2.7 +(*ctxt* )
     2.8          val thy' = get_obj g_domID pt pp
     2.9          val thy = ThyC.get_theory thy'
    2.10 +( **)
    2.11 +val ctxt = Ctree.get_loc pt pos |> snd
    2.12 +val thy = Proof_Context.theory_of ctxt
    2.13 +(**)
    2.14          val metID = get_obj g_metID pt pp
    2.15          val metID' =
    2.16            if metID = MethodC.id_empty