Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
E.W.Ayers committed Oct 27, 2021
1 parent 9cad170 commit ce8331d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/hp/core/labeller.lean
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ meta def select_label : list string → m name
labs ← get,

unused ← pure $ ss.find ((∉ labs) ∘ mk_simple_name),
⍐ $ tactic.trace ("select_label: ", (ss, labs.in_play)),
match unused with
| (some h) := do
n ← pure $ mk_simple_name h,
Expand All @@ -144,10 +143,8 @@ meta def select_label : list string → m name
ss ← pure $ ss.map (λ x, (x, labs.counts.get x)),
some (base, i) ← pure $ ss.min_by (int.of_nat ∘ prod.snd),
n ← pure $ mk_simple_name $ base ++ to_subscript i,
⍐ $ tactic.trace (base, i),
modify $ labeller.modify_counts $ λ cs, cs.modify (+ 1) base,
push_label n,

pure n
end

Expand Down
8 changes: 4 additions & 4 deletions src/hp/tactic/waterfall.lean
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ section

protected meta def ZR.run {α} : ZR α → hp α | zr := do
-- tactic.trace_state,
⍐ $ trace_m "ZR.run: " $ "start",
trace_labeller,
-- ⍐ $ trace_m "ZR.run: " $ "start",
-- trace_labeller,
ogs ← get_goals,
b ← hp_state.b <$> get,
z ← type_context.run $ box.zipper.zip b,
Expand All @@ -50,8 +50,8 @@ section
set_goals ogs,
-- tactic.trace b,
modify $ hp_state.with_b b,
trace_labeller,
⍐ $ trace_m "ZR.run: " $ "end",
-- trace_labeller,
-- ⍐ $ trace_m "ZR.run: " $ "end",

pure a

Expand Down

0 comments on commit ce8331d

Please sign in to comment.