File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,19 +12,22 @@ module T = R.Tactic
1212let unleash_hole loc : T.check =
1313 T.Check. peek @@ fun goal ->
1414 let bnds = R.Eff.Generalize. quote_ctx () in
15+ let goal = R.Eff. quote goal.tp in
1516 let top_tp =
1617 let make_pi bnd bdy =
1718 match bnd with
1819 | R.Eff.Generalize. VirType tp -> S. VirPi (tp, bdy)
1920 | R.Eff.Generalize. Type tp -> S. Pi (tp, bdy)
2021 in
21- S. vir_pi S. tp_ulvl @@ List. fold_right make_pi bnds @@ R.Eff. quote goal.tp
22+ S. vir_pi S. tp_ulvl @@ List. fold_right make_pi bnds @@ goal
2223 in
2324 let p =
2425 let vtp = R.Eff. with_top_env @@ fun () -> R.Eff. eval top_tp in
2526 Eff. unleash ?loc None @@ R.ResolveData. Axiom {tp = vtp}
2627 in
27- Format. printf " Unleashed hole %a : %a @." CS. dump_name p S. dump top_tp;
28+ Format. printf " Unleashed hole %a@." CS. dump_name p;
29+ List. iter R.Eff.Generalize. (function VirType tp | Type tp -> Format. printf " %a@." S. dump tp) bnds;
30+ Format. printf " ⊢ %a @." S. dump goal;
2831 T.Check. infer @@
2932 let head = R.Structural. global_var p @@ R.ULvl. base in
3033 let app _ (l , itm ) = l + 1 , R.Pi. app ~itm ~ctm: (T.Check. infer @@ R.Structural. level l) in
You can’t perform that action at this time.
0 commit comments