Skip to content

Commit 3730715

Browse files
committed
simplify added goals
1 parent 1bb724c commit 3730715

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/handle/tactic.ml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,13 @@ let tac_solve : popt -> proof_state -> proof_state = fun pos ps ->
8989
fatal pos "Unification goals are unsatisfiable.";
9090
(* compute the new list of goals by preserving the order of initial goals
9191
and adding the new goals at the end *)
92-
let non_instantiated = function
93-
| Typ gt -> !(gt.goal_meta.meta_value) = None
94-
| _ -> assert false
92+
let non_instantiated g =
93+
match g with
94+
| Typ gt when !(gt.goal_meta.meta_value) = None ->
95+
Some (Goal.simpl Eval.simplify g)
96+
| _ -> None
9597
in
96-
let gs_typ = List.filter non_instantiated gs_typ in
98+
let gs_typ = List.filter_map non_instantiated gs_typ in
9799
let is_eq_goal_meta m = function
98100
| Typ gt -> m == gt.goal_meta
99101
| _ -> assert false

0 commit comments

Comments
 (0)