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 Structures where | |
| open import Data.Unit | |
| open import Data.Product | |
| open import Data.Empty | |
| open import Data.Nat | |
| open import Data.Fin | |
| open import Data.Vec | |
| open import Data.Maybe | |
| open import Data.List |
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 Simple where | |
| import Bwd -- https://gist.github.com/cheery/eb515304a0a7bcf524cb89ccf53266c2 | |
| data Interval | |
| = I0 | |
| | I1 | |
| | In Int | |
| deriving (Show, Eq) |
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 Bwd where | |
| data Bwd a = Empty | |
| | Bwd a :> a | |
| instance Functor Bwd where | |
| fmap f Empty = Empty | |
| fmap f (xs :> x) = fmap f xs :> f x | |
| instance Eq a => Eq (Bwd a) where |
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 CatPu where | |
| import Control.Applicative (Alternative (..)) | |
| import Control.Monad (MonadPlus (..), foldM, forM) | |
| import Control.Monad.State | |
| import Control.Monad.Except | |
| import Data.List (intersect, elemIndex) | |
| type Goal = SolverState -> Stream SolverState |
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
| {-# OPTIONS --cubical #-} | |
| module hedberg where | |
| open import Cubical.Core.Everything | |
| open import Cubical.Foundations.Prelude | |
| open import Cubical.Foundations.GroupoidLaws | |
| data Empty : Set where | |
| absurd : {A : Set} → Empty → A |
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 newtry6 where | |
| -- derived from https://gist.github.com/rntz/2543cf9ef5ee4e3d990ce3485a0186e2 | |
| -- http://eprints.nottingham.ac.uk/41385/1/th.pdf | |
| open import Level | |
| open import Function using (id; _∘_) | |
| infixr 5 _⇒_ | |
| data Ty : Set where |
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 newtry where | |
| import Relation.Binary.PropositionalEquality as Eq | |
| open Eq using (_≡_; refl) | |
| open import Relation.Nullary using (Dec; yes; no) | |
| open import Relation.Nullary.Decidable using (True; toWitness) | |
| open import Data.Fin | |
| open import Data.Nat | |
| open import Data.Product | |
| open import Data.Empty |
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 demo where | |
| open import Agda.Builtin.Equality | |
| open import Data.List | |
| open import Data.Vec | |
| open import Data.Nat | |
| open import Data.Fin | |
| open import Data.Fin.Base | |
| open import Data.Product | |
| open import Data.Sum |
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
| {-# OPTIONS --type-in-type #-} | |
| module demo where | |
| open import Data.Product | |
| open import Data.Unit | |
| open import Agda.Builtin.Equality | |
| data Unit₁ : Set₁ where | |
| point : Unit₁ |
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
| {-# OPTIONS --guardedness #-} | |
| module demo where | |
| open import Data.Product | |
| open import Data.Empty | |
| open import Agda.Builtin.Equality | |
| open import Agda.Primitive | |
| sym : ∀ {a} {A : Set a} {x y : A} → x ≡ y → y ≡ x | |
| sym refl = refl |