Mercurial > hg > Papers > 2020 > ryokka-master
view paper/src/termination.agda @ 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 : ℕ → ℕ loop n = loop (pred n) -- pred : ℕ → ℕ -- pred zero = zero -- pred (suc n) = n stop : ℕ → ℕ stop zero = zero stop (suc n) = (stop n)