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
open import Data.Nat | |
open import Data.Fin renaming ( zero to here ; suc to there ) | |
open import Data.Product | |
open import Relation.Binary.PropositionalEquality | |
module _ where | |
mutual | |
data Vec₁ (A : Set) : ℕ → Set where | |
nil₁ : Vec₁ A zero | |
cons₁ : {n : ℕ} → A → (xs : Vec₁ A n) → toℕ (Vec₂ xs) ≡ n → Vec₁ A (suc n) |
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
open import Data.Nat | |
open import Data.Product | |
open import Data.String | |
open import Relation.Binary.PropositionalEquality | |
module _ where | |
mutual | |
data Vec₁ (A : Set) : Set where | |
nil : Vec₁ A | |
cons : (n : ℕ) → A → (xs : Vec₁ A) → Vec₂ xs ≡ n → Vec₁ A |
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 Weed where | |
data ⊥ : Set where | |
magic : {A : Set} → ⊥ → A | |
magic () | |
data Weed (A : Set) : Set where | |
grow : (A → Weed A) → Weed A |
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 FSM where | |
data Bool : Set where true false : Bool | |
data List (A : Set) : Set where | |
[] : List A | |
_∷_ : A → List A → List A | |
---------------------------------------------------------------------- |
OlderNewer