Skip to content

Instantly share code, notes, and snippets.

@brunoczim
Created August 10, 2018 17:20
Show Gist options
  • Save brunoczim/6086d9eaf37ad69bae07472167267b00 to your computer and use it in GitHub Desktop.
Save brunoczim/6086d9eaf37ad69bae07472167267b00 to your computer and use it in GitHub Desktop.
module Stlc where
open import Agda.Builtin.String
data Type : Set where
σ : Type
τ : Type
_⟶_ : Type → Type → Type
data Var : (a : Type) → Set where
_∶_ : String → (a : Type) → Var a
data Expr : (a : Type) → Set where
var : {a : Type} → Var a → Expr a
app : {a b : Type} → Expr (a ⟶ b) → Expr a → Expr b
Λ_⟶_ : {a b : Type} → Var a → Expr b → Expr (a ⟶ b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment