@@ -1,6 +1,5 @@
11module Decidable.Decidable
22
3−import Data.VectFun -- FIXME let's see if this is needed
43import Data.Rel
54
65%access public
@@ -9,30 +8,12 @@ import Data.Rel
98-- Typeclass for decidable n-ary Relations
109--------------------------------------------------------------------------------
1110
12−--DecProc : (ts : Vect k Type) -> (p : Rel ts) -> Type
13−--DecProc [] p = Dec p
14−--DecProc (t::ts) p = (x : t) -> DecProc ts (p x)
15−--DecProc : (ts : Vect k Type) -> (p : VectFun ts Type) -> Type
16−--DecProc [] p = Dec p
17−--DecProc (t::ts) p = (x : t) -> DecProc ts (p x)
18−
19−--class Decidable (ts : Vect k Type) (p : VectFun ts Type) where
20−-- total decide : DecProc ts p
21−--class Decidable (ts : Vect k Type) (p : Rel ts) where
22−-- total decide : DecProc ts p
23−--class Decidable (ts : Vect k Type) (p : VectFun ts Type) where
24−-- total decide : liftRel ts p Dec
2511class Decidable (ts : Vect k Type) (p : Rel ts) where
2612 total decide : liftRel ts p Dec
2713
28−{-
29−using (t : Type)
30− class Rel (p : t) where
31− total liftRel : (Type -> Type) -> Type
32−
33− class (Rel p) => Decidable (p : t) where
34− total decide : liftRel {p} Dec
35−-}
14+-- 'No such variable {k506}'
15+--decision : Decidable ts p => (ts : Vect k Type) -> (p : Rel ts) -> liftRel ts p Dec
16+--decision ts p = decide {ts} {p}
3617
3718using (P : Type, p : P)
3819 data Given : Dec P -> Type where