@@ -186,7 +186,7 @@ exact guess ctxt env (Bind x (Hole ty) sc) =
186186 return $ Bind x (Guess ty val) sc
187187exact _ _ _ _ = fail "Can't fill here."
188188
189−-- As fill, but attempts to solve other goals by unification
189+-- As exact, but attempts to solve other goals by unification
190190
191191fill :: Raw -> RunTactic
192192fill guess ctxt env (Bind x (Hole ty) sc) =
@@ -252,6 +252,12 @@ eval_in t ctxt env tm =
252252 showEnv env valty'))
253253 return tm
254254
255+-- shuffleHoles :: Term -> Term
256+-- shuffleHoles tm = shuffle [] tm
257+-- where
258+-- shuffle ns (Bind n b sc)
259+-- |
260+
255261processTactic :: Tactic -> ProofState -> TC (ProofState, String)
256262processTactic QED ps = case holes ps of
257263 [] -> do let tm = pterm ps
@@ -297,6 +303,8 @@ processTactic t ps
297303 updateSolved xs (Bind n b t)
298304 | otherwise = Bind n (fmap (updateSolved xs) b) (updateSolved xs t)
299305 updateSolved xs (App f a) = App (updateSolved xs f) (updateSolved xs a)
306+ updateSolved xs (P _ n _)
307+ | Just v <- lookup n xs = v
300308 updateSolved xs t = t
301309
302310process :: Tactic -> Name -> ProofState -> StateT TState TC ProofState