Skip to content

Commit 56adb4f

Browse files
garesFissoreD
authored andcommitted
lp2goal: repeat if something changed
1 parent fea1db7 commit 56adb4f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.ocamlformat

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/rocq_elpi_HOAS.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3702,13 +3702,15 @@ let get_global_env_current_sigma ~depth hyps constraints state =
37023702
state, coq_ctx, get_sigma state, gls
37033703
;;
37043704

3705-
let lp2goal ~depth hyps syntactic_constraints state t =
3705+
let rec lp2goal ~depth hyps syntactic_constraints state t =
37063706
match get_goal_ref ~depth (E.constraints syntactic_constraints) state t with
37073707
| Closed_by_side_effect -> assert false
37083708
| Not_a_goal -> assert false
37093709
| Open {ctx; evar = k; scope; args} ->
37103710
let state, _, changed, gl1 =
37113711
elpi_solution_to_coq_solution ~eta_contract_solution:true ~calldepth:depth syntactic_constraints state in
3712+
if changed then lp2goal ~depth hyps syntactic_constraints state t
3713+
else
37123714
let visible_set = dblset_of_canonical_ctx ~depth Int.Set.empty scope in
37133715
let state, coq_ctx, gl2 =
37143716
of_elpi_ctx ~calldepth:depth syntactic_constraints depth

0 commit comments

Comments
 (0)