@@ -3,7 +3,7 @@
3||| This is to let us implement some functions that don't have trivial
3||| This is to let us implement some functions that don't have trivial
4||| recursion patterns over datatypes, but instead are using some
4||| recursion patterns over datatypes, but instead are using some
5||| other metric of size.
5||| other metric of size.
6−module Control.WellFounded
6+module Prelude.WellFounded
8%default total
8%default total
9%access public export
9%access public export
@@ -56,8 +56,8 @@ accRec step z (Access f) =
56accInd : {rel : a -> a -> Type} -> {P : a -> Type} ->
56accInd : {rel : a -> a -> Type} -> {P : a -> Type} ->
57 (step : (x : a) -> ((y : a) -> rel y x -> P y) -> P x) ->
57 (step : (x : a) -> ((y : a) -> rel y x -> P y) -> P x) ->
58 (z : a) -> Accessible rel z -> P z
58 (z : a) -> Accessible rel z -> P z
59−accInd step z (Access f) =
59+accInd {P} step z (Access f) =
60− step z $ \y, lt => accInd step y (f y lt)
60+ step z $ \y, lt => accInd {P} step y (f y lt)
63||| Use well-foundedness of a relation to write terminating operations.
63||| Use well-foundedness of a relation to write terminating operations.