Skip to content

Commit

Permalink
simplify added goals
Browse files Browse the repository at this point in the history
  • Loading branch information
fblanqui committed Feb 25, 2024
1 parent 1bb724c commit 3730715
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/handle/tactic.ml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,13 @@ let tac_solve : popt -> proof_state -> proof_state = fun pos ps ->
fatal pos "Unification goals are unsatisfiable.";
(* compute the new list of goals by preserving the order of initial goals
and adding the new goals at the end *)
let non_instantiated = function
| Typ gt -> !(gt.goal_meta.meta_value) = None
| _ -> assert false
let non_instantiated g =
match g with
| Typ gt when !(gt.goal_meta.meta_value) = None ->
Some (Goal.simpl Eval.simplify g)
| _ -> None
in
let gs_typ = List.filter non_instantiated gs_typ in
let gs_typ = List.filter_map non_instantiated gs_typ in
let is_eq_goal_meta m = function
| Typ gt -> m == gt.goal_meta
| _ -> assert false
Expand Down

0 comments on commit 3730715

Please sign in to comment.