Created
October 30, 2017 22:37
-
-
Save BekaValentine/23bc73f64ffd8e733f8f1f62ee5f4e1a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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