on master help sign in
Merge pull request #783 from tpsinnem/master
e4d99eeEdwin Brady
libs/base/Decidable/Decidable.idr+4−6
@@ -6,19 +6,17 @@ module Decidable.Decidable
6-- Typeclass for decidable n-ary Relations
6-- Typeclass for decidable n-ary Relations
7--------------------------------------------------------------------------------
7--------------------------------------------------------------------------------
8
8
9−{-
10−This can't work yet! The class parameters must appear in the method type
9+--This can't work yet! The class parameters must appear in the method type
11−signatures otherwise when defining the instances class resolution doesn't
10+--signatures otherwise when defining the instances class resolution doesn't
12−have any clues...
11+--have any clues...
13
12
14using (t : Type)
13using (t : Type)
15 class Rel (p : t) where
14 class Rel (p : t) where
16 total liftRel : (Type -> Type) -> Type
15 total liftRel : (Type -> Type) -> Type
17
16
18 class (Rel p) => Decidable (p : t) where
17 class (Rel p) => Decidable (p : t) where
19− total decide : liftRel Dec
18+ total decide : liftRel {p=p} Dec
20
19
21using (P : Type, p : P)
20using (P : Type, p : P)
22 data Given : Dec P -> Type where
21 data Given : Dec P -> Type where
23 always : Given (Yes p)
22 always : Given (Yes p)
24−-}
libs/base/Decidable/Order.idr+2−7
@@ -1,13 +1,10 @@
1module Decidable.Order
1module Decidable.Order
2
2
3−%access public
4−
5−{-
6−Doesn't work yet, see note in Decidable.idr
7−
8import Decidable.Decidable
3import Decidable.Decidable
9import Decidable.Equality
4import Decidable.Equality
10
5
6+%access public
7+
11--------------------------------------------------------------------------------
8--------------------------------------------------------------------------------
12-- Utility Lemmas
9-- Utility Lemmas
13--------------------------------------------------------------------------------
10--------------------------------------------------------------------------------
@@ -83,5 +80,3 @@ instance Decidable NatLTE where
83lte : (m : Nat) -> (n : Nat) -> Dec (NatLTE m n)
80lte : (m : Nat) -> (n : Nat) -> Dec (NatLTE m n)
84lte m n = decide {p = NatLTE} m n
81lte m n = decide {p = NatLTE} m n
85
82
86−-}
87−