view paper/src/termination.agda.replaced @ 19:046b2b20d6c7 default tip

fix
author ryokka
date Mon, 09 Mar 2020 11:25:49 +0900
parents
children
line wrap: on
line source

{-@$\#$@ TERMINATING @$\#$@-}
loop : @$\mathbb{N}$@ @$\rightarrow$@ @$\mathbb{N}$@
loop n = loop (pred n)

-- pred : @$\mathbb{N}$@ @$\rightarrow$@ @$\mathbb{N}$@
-- pred zero    = zero
-- pred (suc n) = n

stop : @$\mathbb{N}$@ @$\rightarrow$@ @$\mathbb{N}$@
stop zero = zero
stop (suc n) = (stop n)