Skip to content

Instantly share code, notes, and snippets.

@BekaValentine
Created October 30, 2017 22:37
Show Gist options
  • Select an option

  • Save BekaValentine/23bc73f64ffd8e733f8f1f62ee5f4e1a to your computer and use it in GitHub Desktop.

Select an option

Save BekaValentine/23bc73f64ffd8e733f8f1f62ee5f4e1a to your computer and use it in GitHub Desktop.
module ABT1 where
{-# NO_POSITIVITY_CHECK #-}
data Syntax {S : Set} (F : (S → Set) → S → Set) : S → Set where
var : ∀ {s} → ℕ → Syntax F s
<_> : ∀ {s} → F (Syntax F) s → Syntax F s
module ABT2 where
mutual
data Syntax' {S : Set} (C : List S → S → Set) : S → Set where
var : ∀ {s} → ℕ → Syntax' C s
_$_ : ∀ {ss s} → C ss s → Args C ss → Syntax' C s
data Args {S : Set} (C : List S → S → Set) : List S → Set where
[] : Args C []
_∷_ : ∀ {s ss} → Syntax' C s → Args C ss → Args C (s ∷ ss)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment