Some cleanup
ci/woodpecker/push/build Pipeline was successful
Details
ci/woodpecker/push/build Pipeline was successful
Details
This commit is contained in:
parent
1acf863845
commit
c6dc848438
|
@ -2578,6 +2578,9 @@ ML\<open>
|
||||||
|
|
||||||
local
|
local
|
||||||
|
|
||||||
|
fun elaborate stmt ctxt = stmt |> map (apsnd (map (apfst (DOF_core.elaborate_term ctxt)
|
||||||
|
#> apsnd (map (DOF_core.elaborate_term ctxt)))))
|
||||||
|
|
||||||
fun prep_statement prep_att prep_stmt raw_elems raw_stmt ctxt =
|
fun prep_statement prep_att prep_stmt raw_elems raw_stmt ctxt =
|
||||||
let
|
let
|
||||||
val (stmt, elems_ctxt) = prep_stmt raw_elems raw_stmt ctxt;
|
val (stmt, elems_ctxt) = prep_stmt raw_elems raw_stmt ctxt;
|
||||||
|
@ -2587,11 +2590,7 @@ fun prep_statement prep_att prep_stmt raw_elems raw_stmt ctxt =
|
||||||
(case raw_stmt of
|
(case raw_stmt of
|
||||||
Element.Shows _ =>
|
Element.Shows _ =>
|
||||||
let val stmt' = Attrib.map_specs (map prep_att) stmt
|
let val stmt' = Attrib.map_specs (map prep_att) stmt
|
||||||
val stmt'' = stmt' |> map (fn (b, ts) =>
|
val stmt'' = elaborate stmt' ctxt
|
||||||
(b, ts |> map (fn (t', t's) =>
|
|
||||||
(DOF_core.elaborate_term ctxt t',
|
|
||||||
t's |> map (fn t'' =>
|
|
||||||
DOF_core.elaborate_term ctxt t'')))))
|
|
||||||
in (([], prems, stmt'', NONE), stmt_ctxt) end
|
in (([], prems, stmt'', NONE), stmt_ctxt) end
|
||||||
| Element.Obtains raw_obtains =>
|
| Element.Obtains raw_obtains =>
|
||||||
let
|
let
|
||||||
|
@ -2606,11 +2605,7 @@ fun prep_statement prep_att prep_stmt raw_elems raw_stmt ctxt =
|
||||||
||> Proof_Context.restore_stmt asms_ctxt;
|
||> Proof_Context.restore_stmt asms_ctxt;
|
||||||
|
|
||||||
val stmt' = [(Binding.empty_atts, [(#2 (#1 (Obtain.obtain_thesis ctxt)), [])])];
|
val stmt' = [(Binding.empty_atts, [(#2 (#1 (Obtain.obtain_thesis ctxt)), [])])];
|
||||||
val stmt'' = stmt' |> map (fn (b, ts) =>
|
val stmt'' = elaborate stmt' ctxt
|
||||||
(b, ts |> map (fn (t', t's) =>
|
|
||||||
(DOF_core.elaborate_term ctxt t',
|
|
||||||
t's |> map (fn t'' =>
|
|
||||||
DOF_core.elaborate_term ctxt t'')))))
|
|
||||||
in ((Obtain.obtains_attribs raw_obtains, prems, stmt'', SOME that'), that_ctxt) end)
|
in ((Obtain.obtains_attribs raw_obtains, prems, stmt'', SOME that'), that_ctxt) end)
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue