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 TicTacToe where | |
open import Data.Bool | |
using (Bool; true; false; _∧_; _∨_) | |
open import Data.Empty | |
using (⊥-elim) | |
open import Data.Fin | |
using (Fin; zero; suc) | |
open import Data.Maybe | |
using (Maybe; just; nothing) |
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 AVLMembership where | |
open import Data.Empty | |
open import Data.Product | |
open import Level | |
open import Relation.Binary | |
open import Relation.Binary.PropositionalEquality as P using (_≡_) | |
open import Relation.Nullary | |
import Data.AVL |
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
{-# OPTIONS --without-K #-} | |
module Incompatibility where | |
open import Data.Bool | |
open import Data.Empty | |
open import Data.Product | |
open import Data.Unit | |
open import Function | |
open import Level | |
open import Relation.Binary.PropositionalEquality |
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 Relation.Binary | |
module Data.Extended-key | |
{k ℓ₁ ℓ₂} | |
{Key : Set k} | |
{_≈_ : Rel Key ℓ₁} | |
{_<_ : Rel Key ℓ₂} | |
(isStrictTotalOrder′ : IsStrictTotalOrder _≈_ _<_) | |
where |
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 Norm where | |
open import Data.Empty | |
open import Data.Nat | |
open import Data.Product | |
open import Data.Sum | |
open import Function | |
open import Relation.Binary.PropositionalEquality | |
data Int : Set where |
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 Contr where | |
open import Data.Product | |
open import Data.Unit | |
open import Function | |
open import Relation.Binary.PropositionalEquality | |
is-contr : ∀ {a} (A : Set a) → Set _ | |
is-contr A = Σ A λ a → ∀ x → a ≡ x |
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 Del where | |
open import Data.Nat | |
open import Relation.Binary.Core | |
data List : Set where | |
nil : List | |
_::_ : (x : ℕ) -> (xs : List) -> List | |
-- membership within a list |
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 Idr where | |
open import Function.Equality | |
open import Function.Inverse | |
open import Level | |
open import Relation.Binary.PropositionalEquality | |
renaming (cong to cong-f) | |
record _≃_ {a b} (A : Set a) (B : Set b) : Set (a ⊔ b) where | |
constructor iso |
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 Classical where | |
open import Data.Empty | |
using (⊥-elim) | |
open import Data.Product | |
using (_×_; _,_) | |
open import Data.Sum | |
using (_⊎_; inj₁; inj₂; [_,_]) | |
open import Function | |
using (id; _∘_) |
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
import Data.List | |
import Data.Ord | |
prekomprese :: String -> [(Int, Int, Char)] | |
prekomprese = go "" | |
where | |
go _ [] = [] | |
go ls rs = case rest of | |
[] -> error "prekomprese: internal error" | |
r:rest' -> (length ls - offset, len, r):go (ls ++ prefix ++ [r]) rest' |
OlderNewer