comparison Paper/src/termination.agda @ 1:a72446879486

Init paper
author soto <soto@cr.ie.u-ryukyu.ac.jp>
date Thu, 12 Jan 2023 20:28:50 +0900
parents
children
comparison
equal deleted inserted replaced
0:8df537cb6a18 1:a72446879486
1 {-# TERMINATING #-}
2 loop : ℕ → ℕ
3 loop n = loop (pred n)
4
5 -- pred : ℕ → ℕ
6 -- pred zero = zero
7 -- pred (suc n) = n
8
9 stop : ℕ → ℕ
10 stop zero = zero
11 stop (suc n) = (stop n)