Skip to content

Commit f488be8

Browse files
committed
Track remaining subgoals for interactive proofstate
1 parent 74d4e64 commit f488be8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

plugins/hls-tactics-plugin/src/Wingman/Machinery.hs

+4-3
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,12 @@ runTactic ctx jdg t =
8282
flip sortBy solns $ comparing $ \(ext, (_, holes)) ->
8383
Down $ scoreSolution ext jdg holes
8484
case sorted of
85-
((syn, _) : _) ->
85+
((syn, (_, subgoals)) : _) ->
8686
Right $
8787
RunTacticResults
88-
{ rtr_trace = syn_trace syn
89-
, rtr_extract = simplify $ syn_val syn
88+
{ rtr_trace = syn_trace syn
89+
, rtr_extract = simplify $ syn_val syn
90+
, rtr_subgoals = subgoals
9091
, rtr_other_solns = reverse . fmap fst $ sorted
9192
, rtr_jdg = jdg
9293
, rtr_ctx = ctx

plugins/hls-tactics-plugin/src/Wingman/Types.hs

+1
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ rose a rs = Rose $ Node a $ coerce rs
476476
data RunTacticResults = RunTacticResults
477477
{ rtr_trace :: Trace
478478
, rtr_extract :: LHsExpr GhcPs
479+
, rtr_subgoals :: [Judgement]
479480
, rtr_other_solns :: [Synthesized (LHsExpr GhcPs)]
480481
, rtr_jdg :: Judgement
481482
, rtr_ctx :: Context

0 commit comments

Comments
 (0)