@@ -9,7 +9,7 @@ using (a : Type, P : a -> Type)
10 ||| Dependent pair where the first field is erased.
10 ||| Dependent pair where the first field is erased.
11 data Exists : (P : a -> Type) -> Type where
11 data Exists : (P : a -> Type) -> Type where
12− evidence : .{x : a} -> (pf : P x) -> Exists P
12+ evidence : .(x : a) -> (pf : P x) -> Exists P
14 ||| Dependent pair where the second field is erased.
14 ||| Dependent pair where the second field is erased.
15 data Subset : (a : Type) -> (P : a -> Type) -> Type where
15 data Subset : (a : Type) -> (P : a -> Type) -> Type where
@@ -25,8 +25,8 @@ using (a : Type, P : a -> Type)
25 getProof : (x : T) -> P (getWitness x)
25 getProof : (x : T) -> P (getWitness x)
27 instance DepPair a P (Exists {a} P) where
27 instance DepPair a P (Exists {a} P) where
28− getWitness (evidence {x=x} pf) = x
28+ getWitness (evidence x pf) = x
29− getProof (evidence {x=x} pf) = pf
29+ getProof (evidence x pf) = pf
31 instance DepPair a P (Subset a P) where
31 instance DepPair a P (Subset a P) where
32 getWitness (element x pf) = x
32 getWitness (element x pf) = x