@@ -37,7 +37,7 @@ filterTagP {n = S m} p (a :: as) q with (p a)
38 ((a ** believe_me Oh)
38 ((a ** believe_me Oh)
40− (fst (getProof (filterTagP p as (believe_me Oh)))),
40+ (fst (snd (filterTagP p as (believe_me Oh)))),
@@ -95,7 +95,7 @@ mytranspose (x :: y :: xs)
96using (A : Type, B : A->Type, C : Type)
96using (A : Type, B : A->Type, C : Type)
97 foo2 : ((x:A) -> B x -> C) -> ((x:A ** B x) -> C)
97 foo2 : ((x:A) -> B x -> C) -> ((x:A ** B x) -> C)
98− foo2 f p = f (getWitness p) (getProof p)
98+ foo2 f p = f (fst p) (snd p)
101m_add : Maybe (Either Bool Int) -> Maybe (Either Bool Int) ->
101m_add : Maybe (Either Bool Int) -> Maybe (Either Bool Int) ->
@@ -144,7 +144,7 @@ X : Nat -> Type
144X t = (c : Nat ** So (c < 5))
144X t = (c : Nat ** So (c < 5))
146column : X t -> Nat
146column : X t -> Nat
147−column = getWitness
147+column = fst
149data Action = Left | Ahead | Right
149data Action = Left | Ahead | Right
@@ -161,31 +161,31 @@ isSubsetOf : Set univ => univ -> univ -> Type
161isSubsetOf {univ} a b = (c : univ) -> (member c a) -> (member c b)
161isSubsetOf {univ} a b = (c : univ) -> (member c a) -> (member c b)
163interface Set univ => HasPower univ where
163interface Set univ => HasPower univ where
164− Powerset : (a : univ) ->
164+ Powerset : (a : univ) ->
165− Sigma univ (\Pa => (c : univ) ->
165+ DepPair univ (\Pa => (c : univ) ->
166 (isSubsetOf c a) -> member c Pa)
166 (isSubsetOf c a) -> member c Pa)
168powerset : HasPower univ => univ -> univ
168powerset : HasPower univ => univ -> univ
169−powerset {univ} a = getWitness (Powerset a)
169+powerset {univ} a = fst (Powerset a)
171mapFilter : (alpha -> beta) ->
171mapFilter : (alpha -> beta) ->
172− (alpha -> Bool) ->
172+ (alpha -> Bool) ->
173− Vect n alpha ->
173+ Vect n alpha ->
174 (n : Nat ** Vect n beta)
174 (n : Nat ** Vect n beta)
175mapFilter f p Nil = (_ ** Nil)
175mapFilter f p Nil = (_ ** Nil)
176mapFilter f p (a :: as) with (p a)
176mapFilter f p (a :: as) with (p a)
177− | True = (_ ** (f a) :: (getProof (mapFilter f p as)))
177+ | True = (_ ** (f a) :: (snd (mapFilter f p as)))
178 | False = mapFilter f p as
178 | False = mapFilter f p as
180hVectEx1 : HVect [String, List Nat, Nat, (Nat, Nat)]
180hVectEx1 : HVect [String, List Nat, Nat, (Nat, Nat)]
181hVectEx1 = ["Hello",[1,2,3],42,(0,10)]
181hVectEx1 = ["Hello",[1,2,3],42,(0,10)]
183vecfoo : HVect [String, List Nat, Nat, (Nat, Nat)]
183vecfoo : HVect [String, List Nat, Nat, (Nat, Nat)]
184vecfoo = put (S (S Z)) hVectEx1
184vecfoo = put (S (S Z)) hVectEx1
186foom : Monad m => Int -> m Int
186foom : Monad m => Int -> m Int
187−foom = pure
187+foom = pure
189bar : IO ()
189bar : IO ()
190bar = case foom 5 of
190bar = case foom 5 of
191 Nothing => print 42
191 Nothing => print 42
@@ -193,7 +193,7 @@ bar = case foom 5 of
194Max : (Nat -> Type) -> Type
194Max : (Nat -> Type) -> Type
195Max p = (Nat , (k : Nat) -> p k -> Nat)
195Max p = (Nat , (k : Nat) -> p k -> Nat)
197maxEquiv : Max p -> (n1 : Nat) -> p n1 -> Nat
197maxEquiv : Max p -> (n1 : Nat) -> p n1 -> Nat
198maxEquiv a n1 pr1 = snd a n1 pr1
198maxEquiv a n1 pr1 = snd a n1 pr1
@@ -207,4 +207,3 @@ data Kappa : (r : Rho) -> Type where K : Kappa r
207kappa : Kappa (rho r) -> Kappa (rho r)
207kappa : Kappa (rho r) -> Kappa (rho r)
208kappa {r} k = k' where -- k' : Kappa (rho r)
208kappa {r} k = k' where -- k' : Kappa (rho r)