Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify added goals + prepare new release #1056

Merged
merged 2 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/),
and this project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]
## 2.5.0 (2024-02-25)

### Added

Expand Down
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