Skip to content

Instantly share code, notes, and snippets.

@bond15
Created July 17, 2021 00:11
Show Gist options
  • Select an option

  • Save bond15/f65183ea00222020f063c1f39f3cafcf to your computer and use it in GitHub Desktop.

Select an option

Save bond15/f65183ea00222020f063c1f39f3cafcf to your computer and use it in GitHub Desktop.
Cubical Agda Int
{-# OPTIONS --cubical #-}
module cube where
open import Data.Nat
open import Cubical.Foundations.Prelude
data Int : Set where
pos : (n : ℕ) -> Int
neg : (n : ℕ) -> Int
z : pos 0 ≡ neg 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment