view Paper/src/agda/plus2.agda.replaced @ 2:9176dff8f38a

ADD while loop description
author soto <soto@cr.ie.u-ryukyu.ac.jp>
date Fri, 05 Nov 2021 15:19:08 +0900
parents
children 339fb67b4375
line wrap: on
line source

module plus2 where

open import Data.Nat hiding (_+_)

_+_ : (x y : @$\mathbb{N}$@) @$\rightarrow$@ @$\mathbb{N}$@
x + zero = x
x + suc y = (suc x) + y

-- 10 + 20
-- 30