Skip to content

Commit

Permalink
No proof term or after states
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseBlaauwbroek committed Aug 28, 2024
1 parent fcbd35f commit 32a6c98
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/neural_learner.ml
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,14 @@ module NeuralLearner : TacticianOnlineLearnerType = functor (TS : TacticianStruc
let tactics = add_tactic_info (Global.env ()) tactics tac in
tactics in

(* TODO: Drop-in shadowing replacement for mk_outcome. For now, we don't need the proof term and after
states. We butcher them to make the payload smaller and faster to compute. *)
let mk_outcome before result =
let f e =
let d = tactic_result_dependent result e in
mk_single_proof_state d in
mk_proof_state before, Constr.mkProp, Evd.empty, f, [] in

let constant = Constant.make1 kn in
let proof_step = List.map (fun outcome -> mk_outcome outcome.before outcome.result) outcomes,
Option.map tactic_repr tac in
Expand Down

0 comments on commit 32a6c98

Please sign in to comment.