data-category-0.2.0: Restricted categories

Portabilitynon-portable
Stabilityexperimental
Maintainersjoerd@w3future.com

Data.Category.Peano

Description

A Peano category as in When is one thing equal to some other thing? Barry Mazur, 2007

Synopsis

Documentation

data Peano whereSource

Constructors

PeanoA :: Obj (Peano ~>) a -> Obj (Peano ~>) b -> (a ~> b) -> Peano ~> a b 

Instances

data NatNum Source

The natural numbers are the initial object for the Peano category.

Constructors

Z 
S NatNum 

primRec :: t -> (t -> t) -> NatNum -> tSource

Primitive recursion is the factorizer from the natural numbers.