Files
CubicalTutorial/Naturals.agda
2020-04-26 16:45:37 +01:00

14 lines
229 B
Agda
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{-# OPTIONS --safe --warning=error --without-K #-}
module Naturals where
data : Set where
zero :
succ :
{-# BUILTIN NATURAL #-}
_+N_ :
zero +N b = b
succ a +N b = succ (a +N b)