@@ -2,6 +2,7 @@ module Solver
22
33import Decidable.Equality
44import Control.Monad.State
5+import Data.Vect
56import Data.Vect.Quantifiers
67
78%default total
@@ -95,7 +96,7 @@ legalVal b (x, y) v =
9596 case colSafe b x v of
9697 No prf' => No (\(_, cf, _) => prf' cf)
9798 Yes prf' =>
98− case empty (getCell b (x, y)) of
99+ case Solver.empty (getCell b (x, y)) of
99100 No prf'' => No (\(ef, _, _) => prf'' ef)
100101 Yes prf'' => Yes (prf'', prf', prf)
101102
@@ -194,7 +195,7 @@ fillBoard {n=(S n)} b l with (emptyCell b)
194195
195196 %assert_total
196197 recurse : Fin (S n) -> Maybe (b' : Board (S n) ** CompleteBoard b')
197− recurse start =
198+ recurse start =
198199 case tryAll start of
199200 (_, Nothing) => Nothing
200201 (FZ, Just (b' ** l')) => fillBoard b' l'