Created
December 2, 2018 02:06
-
-
Save brunoczim/44c2d36bec67332e5af799ec8de01b3a to your computer and use it in GitHub Desktop.
Tuple with generic length in Agda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Tuple | |
open import Data.Vec | |
open import Agda.Builtin.Nat renaming (Nat to ℕ) | |
data Tuple : {n : ℕ} → Vec Set n → Set where | |
∅ : Tuple [] | |
_,_ : {A : Set} {n : ℕ} {v : Vec Set n} → A → Tuple v → Tuple (A ∷ v) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment