Search is not available for this dataset
text
string
meta
dict
module MetaOccursInItself where data List (A : Set) : Set where nil : List A _::_ : A -> List A -> List A data One : Set where one : One postulate f : (A : Set) -> (A -> List A) -> One err : One err = f _ (\x -> x)
{ "alphanum_fraction": 0.5570175439, "avg_line_length": 14.25, "ext": "agda", "hexsha": "d592574cf661cd276eecf1af1b94bbe5c861b63b", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "...
{-# OPTIONS --omega-in-omega --no-termination-check --overlapping-instances #-} module Light.Implementation.Data.Boolean where open import Light.Library.Data.Boolean using (Library ; Dependencies) open import Light.Variable.Sets open import Light.Library.Data.Unit as Unit using (Unit ; unit) open import Light.Level ...
{ "alphanum_fraction": 0.6188925081, "avg_line_length": 38.375, "ext": "agda", "hexsha": "3abeb1808ef7ee5bdebf8576ad35bf332c851d08", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
{-# OPTIONS --without-K --rewriting #-} {- favonia: On 2017/05/08, I further partition the results into multiple independent index[n].agda files because the garbage collection is not really working. -} module index3 where {- van kampen -} import homotopy.VanKampen {- blakers massey -} import homotopy.Blaker...
{ "alphanum_fraction": 0.74, "avg_line_length": 19.2307692308, "ext": "agda", "hexsha": "fcd56470d8f47aee9126bf3814460d24fe0c5526", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "...
module System.Directory where open import System.FilePath open import Prelude open import Container.Traversable {-# FOREIGN GHC import System.Directory #-} private module Internal where postulate listContents : String → IO (List String) doesFileExist : String → IO Bool {-# COMPILE GHC listCont...
{ "alphanum_fraction": 0.702166065, "avg_line_length": 24.0869565217, "ext": "agda", "hexsha": "420b1348d161a3df7c53da03ca8749a39230e215", "lang": "Agda", "max_forks_count": 24, "max_forks_repo_forks_event_max_datetime": "2021-04-22T06:10:41.000Z", "max_forks_repo_forks_event_min_datetime": "2015-03-12T...
open import Algebra.Bundles using (CommutativeRing) module Algebra.Module.Diff {r ℓr} {CR : CommutativeRing r ℓr} where open import Assume using (assume) import Data.Nat as ℕ open ℕ using (ℕ; zero; suc) open import Relation.Binary using (Rel) open import Algebra.Module using (Module) open Module open import F...
{ "alphanum_fraction": 0.6225439504, "avg_line_length": 29.7538461538, "ext": "agda", "hexsha": "6d26a0fbc272c744a994f07e1df625f28092dfde", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
-- 2014-01-15 Andreas, reported by fredrik.forsberg data Unit : Set where tt : Unit foo : Unit foo = {!!} -- Refine here should give tt
{ "alphanum_fraction": 0.6714285714, "avg_line_length": 15.5555555556, "ext": "agda", "hexsha": "74828d72f210bec48246eabc5f7487d067e68730", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
module Conversion where open import Agda.Builtin.Nat nonDependent : Nat -> Nat -> Nat nonDependent a b = a dependent : {A : Set} -> A -> A dependent a = a stuff : {A : Set} -> {B : Nat} -> Nat -> Nat stuff zero = zero stuff (suc c) = dependent c
{ "alphanum_fraction": 0.6345381526, "avg_line_length": 19.1538461538, "ext": "agda", "hexsha": "4cc387a4f004e7d3250d0cb9cd6449d7d12c4f80", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-01-31T08:40:41.000Z", "max_forks_repo_forks_event_min_datetime": "2019-01-31T...
module Cats.Category.Setoids.Facts.Products where open import Data.Product as P using (_,_ ; <_,_>) open import Relation.Binary using (Setoid) open import Relation.Binary.Product.Pointwise using (×-setoid) open import Cats.Category open import Cats.Category.Setoids as Setoids using (Setoids ; ≈-intro ; ≈-elim) open i...
{ "alphanum_fraction": 0.5508474576, "avg_line_length": 25.2857142857, "ext": "agda", "hexsha": "dc8cd2fb2f65dab5377307fbe9196079bc72d32d", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
data Id (A : Set) : Set where wrap : A → Id A data Maybe (A : Set) : Set where nothing : Maybe A just : A → Maybe A maybe : {A : Set} {B : Maybe A → Set} → ((x : A) → B (just x)) → B nothing → (x : Maybe A) → B x maybe j n (just x) = j x maybe j n nothing = n record MaybeT (M : Set → Set) (A : Set...
{ "alphanum_fraction": 0.4493417287, "avg_line_length": 25.6911764706, "ext": "agda", "hexsha": "4483e902d29b3b0214313186c81917c9b316e040", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
module ZisRing where open import Data.Product using (_×_; _,_) open import Function using (_∘_) open import Relation.Binary.PropositionalEquality as PropEq using (_≡_; refl; cong; sym) open import Integer10 -- 整数の定義 -- ---------- record ---------- record IsSemiGroup (A : Set) (_∙_ : A → A → A) : Set whe...
{ "alphanum_fraction": 0.4728127337, "avg_line_length": 41.2378854626, "ext": "agda", "hexsha": "90aa3013ba1ffe7938dca4e49c3d7c2cc46beb20", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{- This file contains: - Definition of the Bouquet of circles of a type aka wedge of A circles -} {-# OPTIONS --safe #-} module Cubical.HITs.Bouquet.Base where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Pointed private variable ℓ : Level data Bouquet (A : Type ℓ) : Type ℓ where...
{ "alphanum_fraction": 0.7018779343, "avg_line_length": 17.04, "ext": "agda", "hexsha": "cb73f68544d248bf985f88687cf4cd5684272c6d", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "...
-- Only forced indices can be large. data Img {a b} {A : Set a} {B : Set b} (f : A → B) : B → Set where inv : ∀ x → Img f (f x)
{ "alphanum_fraction": 0.5151515152, "avg_line_length": 22, "ext": "agda", "hexsha": "7c9be052189a9d2a32c21df1cea866de2c64b34f", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:08....
module Proof where open import Agda.Primitive hiding (_⊔_) open import Reflection open import Data.Fin hiding (_+_) open import Data.Fin.Properties using (eq? ; _≟_ ) open import Data.Nat hiding (eq? ; _⊔_) open import Data.Nat.Properties open import Data.List open import Data.String hiding (setoid) open import Data.B...
{ "alphanum_fraction": 0.6543504172, "avg_line_length": 39.2056074766, "ext": "agda", "hexsha": "2a0fd32758d873992854ecc0fb0f10eb8eaf1afa", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9. Copyright (c) 2020, 2021, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl -} {-# OPTIONS --allow-unsolved-metas #-} open import Optics.All open impor...
{ "alphanum_fraction": 0.6933710859, "avg_line_length": 47.6507936508, "ext": "agda", "hexsha": "9c2e720c231601d4999dbea601d6e63df4bae96d", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module InstanceArguments where postulate A₁ A₂ B : Set f₁ : {{a : A₁}} → B f₂ : {{a : A₂}} → B a₁ : A₁ -- resolve from signature test₁ : B test₁ = f₁ -- resolve from context test₂ : {{a : A₂}} → B test₂ = f₂ postulate F : Set → Set fA₁ : F A₁ fA₂ : F A₂ f₃...
{ "alphanum_fraction": 0.5481012658, "avg_line_length": 18.3720930233, "ext": "agda", "hexsha": "6aad0aa53df4a68439d0f2f5a29d8e120a32a1b2", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-12T...
-- Andreas, 2015-06-11 -- testing with in copattern matching with dependent record -- {-# OPTIONS -v tc.with:20 #-} open import Common.Prelude open import Common.Equality data Dec P : Set where yes : (p : P) → Dec P no : (¬p : P → ⊥) → Dec P postulate _≟_ : (n m : Nat) → Dec (n ≡ m) boring : {A : Set} → A ...
{ "alphanum_fraction": 0.5655737705, "avg_line_length": 22.875, "ext": "agda", "hexsha": "0d64c5b9a927cb64b712ba20d655f99b2a55407f", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-05T20:02:3...
module Prelude.Monad.Indexed {i} {I : Set i} where open import Agda.Primitive open import Prelude.Function open import Prelude.Functor open import Prelude.Applicative.Indexed {I = I} record IMonad {a b} (M : I → I → Set a → Set b) : Set (i ⊔ lsuc a ⊔ b) where infixr 1 _=<<_ infixl 1 _>>=_ _>>_ field _>>=_ ...
{ "alphanum_fraction": 0.4784828592, "avg_line_length": 29.8043478261, "ext": "agda", "hexsha": "7c7cb96c2924fd820fd9922937398180d9722527", "lang": "Agda", "max_forks_count": 24, "max_forks_repo_forks_event_max_datetime": "2021-04-22T06:10:41.000Z", "max_forks_repo_forks_event_min_datetime": "2015-03-12...
{-# OPTIONS --safe --warning=error --without-K #-} open import LogicalFormulae open import Setoids.Setoids open import Rings.Definition open import Rings.IntegralDomains.Definition open import Agda.Primitive using (Level; lzero; lsuc; _⊔_) module Rings.Irreducibles.Definition {a b : _} {A : Set a} {S : Setoid {a} {b...
{ "alphanum_fraction": 0.6605504587, "avg_line_length": 31.1428571429, "ext": "agda", "hexsha": "8d12160ad7d2b06323d47bd51bbd6fbf2f4caf57", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-29T13:23:07.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-29T...
{-# OPTIONS --without-K --rewriting #-} open import HoTT module groups.ReducedWord {i} {A : Type i} (dec : has-dec-eq A) where is-reduced : Word A → Type i is-reduced nil = Lift ⊤ is-reduced (_ :: nil) = Lift ⊤ is-reduced (inl x :: inl y :: w) = is-reduced (inl y :: w) is-reduc...
{ "alphanum_fraction": 0.5450075126, "avg_line_length": 45.3312693498, "ext": "agda", "hexsha": "34b56baaef5ce138bd972500b039348ed916f7a1", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
------------------------------------------------------------------------ -- The Agda standard library -- -- Base definitions for the left-biased universe-sensitive functor and -- monad instances for the Product type. -- -- To minimize the universe level of the RawFunctor, we require that -- elements of B are "lifted" t...
{ "alphanum_fraction": 0.5608888889, "avg_line_length": 29.6052631579, "ext": "agda", "hexsha": "c7465d4d443ddad1a65d0f35edd711be31d52dae", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-04T...
module Data.Maybe.Instance where open import Category.FAM open import Data.Maybe open import Function using (_∘_; id) open import Relation.Binary.PropositionalEquality instance MaybeFunctor : ∀ {ℓ} → Functor {ℓ} Maybe MaybeFunctor {ℓ} = record { _<$>_ = map ; isFunctor = record { i...
{ "alphanum_fraction": 0.4704142012, "avg_line_length": 35.8484848485, "ext": "agda", "hexsha": "ccac0d822a4460c969100d433711a4f3d659f49b", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
open import Coinduction using ( ♭ ) open import Data.Product using ( _,_ ) open import Relation.Binary using ( Poset ) open import Relation.Binary.PropositionalEquality using ( _≡_ ; refl ; sym ; trans ; cong ; subst₂ ) renaming ( setoid to ≡-setoid ) open import System.IO.Transducers using ( _⇒_ ; inp ; out ; done ; ⟦...
{ "alphanum_fraction": 0.5341891538, "avg_line_length": 31.5454545455, "ext": "agda", "hexsha": "183e8c3791a8f12458e4a0a003ea28dccd84914e", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:40:23.000Z", "max_forks_repo_forks_event_min_datetime": "2017-08-10T...
{-# OPTIONS --without-K --safe #-} module Source.Size where open import Util.HoTT.HLevel.Core open import Util.Prelude infix 4 _<_ infixl 4 _∙_ mutual data Ctx : Set where [] : Ctx _∙_ : (Δ : Ctx) (n : Size Δ) → Ctx data Var : (Δ : Ctx) → Set where zero : ∀ {Δ n} → Var (Δ ∙ n) suc : ∀ {Δ n} ...
{ "alphanum_fraction": 0.5095117311, "avg_line_length": 21.9027777778, "ext": "agda", "hexsha": "97ae124dfa8cd9156e4ff165caec24cbc09e1641", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Prelude where open import Agda.Primitive using (Level; lzero; lsuc) renaming (_⊔_ to lmax) -- empty type data ⊥ : Set where -- from false, derive whatever abort : ∀ {C : Set} → ⊥ → C abort () -- unit data ⊤ : Set where <> : ⊤ -- sums data _+_ (A B : Set) : Set where Inl : A → A + ...
{ "alphanum_fraction": 0.439119171, "avg_line_length": 23.3939393939, "ext": "agda", "hexsha": "5abd644c2f7c6271978f3ee85febab6fef311341", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
{-# OPTIONS --universe-polymorphism #-} module Categories.Monoidal.Cartesian.Pentagon where open import Categories.Support.PropositionalEquality using (_≣_; ≣-refl) open import Categories.Category using (Category; module Category) open import Categories.Object.BinaryProducts open import Categories.Square module Law {...
{ "alphanum_fraction": 0.4962616822, "avg_line_length": 30.7913669065, "ext": "agda", "hexsha": "5f42810b097fd46bde3c8bcbbbc47b48a089a10c", "lang": "Agda", "max_forks_count": 23, "max_forks_repo_forks_event_max_datetime": "2021-11-11T13:50:56.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-05...
module Data.Vec.Membership.Propositional.Disjoint where open import Data.Vec open import Data.Vec.Membership.Propositional open import Relation.Binary.PropositionalEquality as P using (_≡_; _≢_) open import Data.Empty using (⊥; ⊥-elim) open import Function using (flip) Disjoint : ∀ {a} {A : Set a} {n m} → Vec A n → Ve...
{ "alphanum_fraction": 0.6013215859, "avg_line_length": 39.4782608696, "ext": "agda", "hexsha": "490cc02b8056f4ea15a45c350da21c292fecf23c", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Formalization.SimplyTypedLambdaCalculus where import Lvl open import Numeral.Natural open import Type as _ using (TYPE) data Type (B : TYPE) : TYPE₁ where Base : B → Type(B) Function : Type(B) → Type(B) → Type(B) data Term (B : TYPE) : TYPE₁ where Apply : Term(B) → Term(B) → Term(B) Abstract : Ty...
{ "alphanum_fraction": 0.5095906098, "avg_line_length": 27.5039370079, "ext": "agda", "hexsha": "d51a284b105d72f00f8ef0bf00f18cfe26986a7a", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module _ where open import Common.Prelude open import Common.Equality primitive primForce : ∀ {a b} {A : Set a} {B : A → Set b} (x : A) → (∀ x → B x) → B x force = primForce not-stuck : (b : Bool) → force b not ≡ not b not-stuck true = refl not-stuck false = refl stuck : (b : Bool) → force b not ≡ not b stuck b =...
{ "alphanum_fraction": 0.6226993865, "avg_line_length": 19.1764705882, "ext": "agda", "hexsha": "5d57efd570aec5e81f3887db8ce892d1cefbab93", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
{-# OPTIONS --without-K --rewriting #-} open import HoTT {- Useful lemmas for computing the effect of transporting a function - across an equivalence in the domain or codomain. - TODO move these lemmas into lib.types.Pi or lib.types.PointedPi -} -- XXX Naming convensions? module stash.homotopy.FunctionOver where ...
{ "alphanum_fraction": 0.4662090813, "avg_line_length": 39.4583333333, "ext": "agda", "hexsha": "3cb460e53fc8f712970094746760d6121d2f75b5", "lang": "Agda", "max_forks_count": 50, "max_forks_repo_forks_event_max_datetime": "2022-02-14T03:03:25.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-10...
-- Example by Simon Huber {-# OPTIONS --cubical-compatible #-} data _≡_ {A : Set} (a : A) : A → Set where refl : a ≡ a ap : {A B : Set} (f : A → B) {a b : A} (p : a ≡ b) → f a ≡ f b ap f refl = refl -- \bub _•_ : {A : Set} {a b c : A} → a ≡ b → b ≡ c → a ≡ c p • refl = p infixr 30 _•_ ! : {A : Set} {a b : A} → ...
{ "alphanum_fraction": 0.3937644342, "avg_line_length": 24.0555555556, "ext": "agda", "hexsha": "17431420bf8f568fa5243e34d5552f66f4f8c9a3", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
-- Andreas, 2016-01-22 -- special size checking j : Size< i |- j : Size< ↑ j -- was missing from checkInternal -- {-# OPTIONS -v tc.polarity:10 #-} -- {-# OPTIONS -v tc.with.type:50 #-} -- {-# OPTIONS -v tc.check.internal:30 -v tc.infer.internal:30 #-} open import Common.Unit open import Common.Size postulate axio...
{ "alphanum_fraction": 0.5757281553, "avg_line_length": 28.3486238532, "ext": "agda", "hexsha": "b6c768e9116a116ca072ebba9ed3dc84b83891c6", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-05T...
{-# OPTIONS --without-K --safe #-} -- There are really all 'private' sub-pieces of -- Categories.Category.Monoidal.Closed.IsClosed, but that is taking -- forever to typecheck, so the idea is to split things into pieces and -- hope that that will help. open import Categories.Category using (Category) open import Categ...
{ "alphanum_fraction": 0.5831374853, "avg_line_length": 41.0120481928, "ext": "agda", "hexsha": "f54cf258182f14fc664bba242ee2fbc6a213f34e", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K #-} module H where open import Data.Product using (_×_; _,_) import Relation.Binary.Core as C import Relation.Binary.PropositionalEquality as P open P.≡-Reasoning ------------------------------------------------------------------------------ -- Some abbreviations and lemmas about paths infix...
{ "alphanum_fraction": 0.3968641824, "avg_line_length": 25.056122449, "ext": "agda", "hexsha": "0bde5aa2155ff924acd6b3f1e5d59974c6af5189", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
module helloworld where open import IO main = run (putStrLn "Hello, World!")
{ "alphanum_fraction": 0.7160493827, "avg_line_length": 20.25, "ext": "agda", "hexsha": "fff21fdc0caa7402a852794895e111c69a1953f7", "lang": "Agda", "max_forks_count": 713, "max_forks_repo_forks_event_max_datetime": "2022-03-02T22:57:21.000Z", "max_forks_repo_forks_event_min_datetime": "2018-08-12T21:37:...
module FairStream where open import Level as Level using (zero) open import Size open import Function open import Relation.Binary open import Relation.Binary.PropositionalEquality as P open ≡-Reasoning -- open import Data.List using (List; module List; []; _∷_; _++_; length) open import Data.Nat using (ℕ; zero; suc)...
{ "alphanum_fraction": 0.5704099822, "avg_line_length": 21.5769230769, "ext": "agda", "hexsha": "4f7515128cc4bef20f459e5efb59f3d90fc497dd", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K #-} open import lib.Basics open import lib.NType2 open import lib.PathGroupoid open import lib.types.Bool open import lib.types.IteratedSuspension open import lib.types.Lift open import lib.types.LoopSpace open import lib.types.Nat open import lib.types.Paths open import lib.types.Pi open impo...
{ "alphanum_fraction": 0.4069518218, "avg_line_length": 31.2857142857, "ext": "agda", "hexsha": "2e9bb0b89120a95609ce5cacc69f08263c93b676", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Algebra.CommRing.Base where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Foundations.Equiv.HalfAdjoint open import Cubical.Foundations.HLevels open import Cubical.Foundations.Isomorphism open import C...
{ "alphanum_fraction": 0.5693839452, "avg_line_length": 37.8117647059, "ext": "agda", "hexsha": "d0020d59f1bc08d0be7bfc459c5e8a2a46d6586e", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
postulate S : Set id : S comp : S → S → S module C where _∘_ = comp postulate R : (S → S) → Set T : R (C._∘ id) → R (id C.∘_) → Set t : Set t = T {!!} {!!}
{ "alphanum_fraction": 0.4418604651, "avg_line_length": 10.75, "ext": "agda", "hexsha": "5e1a1ac3f29b9b5db674bddadcd8f4e41ef3f41d", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:...
module Issue124 where module A where data A : Set where c : A module B where data B : Set where c : B module C where open A public open B public open C f : B → B f c = c
{ "alphanum_fraction": 0.6178010471, "avg_line_length": 10.0526315789, "ext": "agda", "hexsha": "affaf8821285da98a4be7abdf94d55ae5c19b8e5", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Linear where open import Data.Product open import Data.Sum open import Data.Empty -- 1. PROPOSITIONAL FRAGMENT infixr 0 _⊸_ infixr 1 _⊕_ _⅋_ infixr 2 _&_ _⊗_ -- Linear propositions consist of a positive part (affirmation, φ₊) and a negative -- part (refutation, φ₋). We prove a linear proposition by proving...
{ "alphanum_fraction": 0.5219988055, "avg_line_length": 26.1614583333, "ext": "agda", "hexsha": "2d08d17d16f985408819b542f975fa6e8edc9f56", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Data.Show where import Prelude import Data.Nat import Data.Integer import Data.String import Data.List open Prelude open Data.Nat open Data.Integer using (Int; pos; neg) open Data.String open Data.List hiding (_++_) showNat : Nat -> String showNat zero = "0" showNat n = fromList $ reverse $ toList $ show ...
{ "alphanum_fraction": 0.5871313673, "avg_line_length": 18.1951219512, "ext": "agda", "hexsha": "cfc3ec30d57c1e585aaa3c7440ab563d4e9e4090", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
{-# OPTIONS --cubical --no-import-sorts #-} open import Agda.Primitive renaming (_⊔_ to ℓ-max; lsuc to ℓ-suc; lzero to ℓ-zero) module Number.Postulates where private variable ℓ ℓ' ℓ'' : Level open import Cubical.Foundations.Everything renaming (_⁻¹ to _⁻¹ᵖ; assoc to ∙-assoc) open import Cubical.Relation.Nulla...
{ "alphanum_fraction": 0.5458781362, "avg_line_length": 25.4794520548, "ext": "agda", "hexsha": "bcba043e72bc68cb9fb6467a96ffa03a894526ec", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --rewriting --confluence-check #-} open import Agda.Builtin.Equality open import Agda.Builtin.Equality.Rewrite postulate A : Set a b : A f : A → A rew₁ : f a ≡ b rew₂ : f ≡ λ _ → a {-# REWRITE rew₁ #-} {-# REWRITE rew₂ #-}
{ "alphanum_fraction": 0.6129032258, "avg_line_length": 16.5333333333, "ext": "agda", "hexsha": "345e1cf559045dd78cfed971f643962d3afdde6a", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
{-# OPTIONS --no-termination-check #-} module qsort where _o_ : {a : Set} -> {b : Set} -> {c : Set} -> (b -> c) -> (a -> b) -> a -> c f o g = \x -> f (g x) data Bool : Set where true : Bool false : Bool not : Bool -> Bool not true = false not false = true if_then_else_ : {a : Set} -> Bool -...
{ "alphanum_fraction": 0.4559111692, "avg_line_length": 23.196969697, "ext": "agda", "hexsha": "ddefe0dc05e540b6552a3d70c5dcfe50a4e3019e", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
{-# OPTIONS --safe --experimental-lossy-unification #-} module Cubical.Algebra.Polynomials.Multivariate.EquivCarac.A[X]X-A where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Function open import Cubical.Foundations.Equiv open import Cubical.Foundations.Isomorphism open import Cubical.Data.N...
{ "alphanum_fraction": 0.479185579, "avg_line_length": 29.8875968992, "ext": "agda", "hexsha": "9b735697145b96f907745fad55b89cd137befa43", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
module builtinInModule where module Str where {-# BUILTIN STRING S #-} primitive primStringAppend : S → S → S
{ "alphanum_fraction": 0.6949152542, "avg_line_length": 13.1111111111, "ext": "agda", "hexsha": "9fc2efa35794812076d5f4580281a1cc0b071efc", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K #-} {- In this module, we derive the truncations of * a truncated type, * the unit type, * dependent sums (and product types), * path spaces given truncations of their components. More commonly later on, we will be given a truncation operator Tr that returns a truncation for any ...
{ "alphanum_fraction": 0.537509434, "avg_line_length": 38.9705882353, "ext": "agda", "hexsha": "dd2d0128fdace5d3dfa9c4d8b783b23147d4a71f", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
-- Categories with objects parameterised by a sort module SOAS.Sorting {T : Set} where open import SOAS.Common import Categories.Category.CartesianClosed.Canonical as Canonical import Categories.Category.CartesianClosed as CCC open import Categories.Category.Cocartesian open import Categories.Category.BicartesianClo...
{ "alphanum_fraction": 0.603264095, "avg_line_length": 35.6613756614, "ext": "agda", "hexsha": "11e0c4dcd373f042712c98b51519fcd8816ce386", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2022-01-24T12:49:17.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-09T2...
------------------------------------------------------------------------------ -- Conversion rules for the division ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism...
{ "alphanum_fraction": 0.4439971584, "avg_line_length": 29.9503546099, "ext": "agda", "hexsha": "1a4e1ff86a1cdf6c44d6905aeae83f2e19fbe157", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-19T...
-- Imports from the standard library module Library where -- open import Level using () renaming (suc to lsuc) public open import Data.Fin using (Fin; zero; suc) public open import Data.List using (List; []; _∷_; map) public open import Data.Nat using (ℕ; zero; suc; z≤n; s≤s; pred; _≤′_; ≤′-refl; ≤′-step ) re...
{ "alphanum_fraction": 0.6404002502, "avg_line_length": 28.5535714286, "ext": "agda", "hexsha": "cf18b72e606cba1c01881b386572486210208282", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2018-02-23T18:22:17.000Z", "max_forks_repo_forks_event_min_datetime": "2017-11-10T...
{-# OPTIONS --without-K #-} module F0 where import Level as L open import Data.Unit open import Data.Sum open import Data.Product open import Function using (id ; _$_ ) infixr 90 _⊗_ infixr 80 _⊕_ infixr 60 _∘_ infix 30 _⟷_ --------------------------------------------------------------------------- -- Our own vers...
{ "alphanum_fraction": 0.4793582469, "avg_line_length": 29.3735632184, "ext": "agda", "hexsha": "1fd3e9fede2dc438bdc575af5d9752c77db6dbe5", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2019-09-10T09:47:13.000Z", "max_forks_repo_forks_event_min_datetime": "2016-05-29T...
open import Agda.Primitive record Order {ℓ} ℓ' (A : Set ℓ) : Set (ℓ ⊔ lsuc ℓ') where field _≤_ : A → A → Set ℓ' open Order {{...}} public data ℕ : Set where Zero : ℕ Succ : ℕ → ℕ data _≤ⁿ_ : ℕ → ℕ → Set where Zero : ∀ {n} → Zero ≤ⁿ n Succ : ∀ {n₁ n₂} → n₁ ≤ⁿ n₂ → Succ n₁ ≤ⁿ Succ n₂ instance Order[ℕ...
{ "alphanum_fraction": 0.537109375, "avg_line_length": 20.48, "ext": "agda", "hexsha": "c1fdccb9debb8272c75f8a1213b2494934c45062", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:0...
{-# OPTIONS --without-K --safe #-} -- Monoidal natural isomorphisms between lax and strong symmetric -- monoidal functors. -- -- NOTE. Symmetric monoidal natural isomorphisms are really just -- monoidal natural isomorphisms that happen to go between symmetric -- monoidal functors. No additional conditions are necessa...
{ "alphanum_fraction": 0.5847542628, "avg_line_length": 32.8353293413, "ext": "agda", "hexsha": "09efaef3d7786e89ccd5a99214328413776cb166", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K #-} open import HoTT module homotopy.S1SuspensionS0 where {- To -} module To = S¹Rec (north Bool) (merid _ true ∙ ! (merid _ false)) to : S¹ → Suspension Bool to = To.f {- From -} from-merid : Bool → base == base from-merid true = loop from-merid false = idp module From = SuspensionRec B...
{ "alphanum_fraction": 0.4239274657, "avg_line_length": 36.7642276423, "ext": "agda", "hexsha": "f3e46ffe5a0e632619dc3e877188a8828e2bbbdf", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Prelude.Bytes where open import Prelude.Bool open import Prelude.Decidable open import Prelude.Equality open import Prelude.Equality.Unsafe {-# FOREIGN GHC import qualified Data.ByteString as B #-} postulate Bytes : Set {-# COMPILE GHC Bytes = type B.ByteString #-} private module Internal where post...
{ "alphanum_fraction": 0.6705069124, "avg_line_length": 20.6666666667, "ext": "agda", "hexsha": "6926947fbcff49f7c48e863a5604276ec9541c51", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
open import Prelude open import Relation.Binary.PropositionalEquality open import RW.Language.RTerm using (Name) open import RW.Strategy.PropEq open import RW.RW (≡-strat ∷ []) open import Data.Nat.Properties.Simple using (+-comm; +-right-identity; +-assoc) module PropEqTest where ++-assoc : ∀{a}{A : Set a}(...
{ "alphanum_fraction": 0.3775055679, "avg_line_length": 28.0625, "ext": "agda", "hexsha": "43f90834621158038b2cdc5be981972a1c81b03a", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
module split where import Relation.Binary.PropositionalEquality as Eq open Eq using (_≡_; refl; sym; trans; cong) open Eq.≡-Reasoning open import Data.Nat using (ℕ; zero; suc; _+_; _*_; _∸_; _≤_; s≤s; z≤n; _≤?_) open import Relation.Nullary using (¬_; Dec; yes; no) open import Data.Product using (_×_; ∃; ∃-syntax) ren...
{ "alphanum_fraction": 0.4197048611, "avg_line_length": 36, "ext": "agda", "hexsha": "99fcbe483f561df8dc5ed133b3c00baeba1fb4a5", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "df7...
------------------------------------------------------------------------ -- A proof of univalence for an arbitrary "equality with J" ------------------------------------------------------------------------ {-# OPTIONS --cubical --safe #-} import Equality.Path as P module Equality.Path.Isomorphisms.Univalence {e⁺} ...
{ "alphanum_fraction": 0.63996139, "avg_line_length": 23.5454545455, "ext": "agda", "hexsha": "45af587412d49317e3ce2903c3ca609e524e6935", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexs...
{- Types Summer School 2007 Bertinoro Aug 19 - 31, 2007 Agda Ulf Norell -} -- Let's have a closer look at the module system module Modules where {- Importing and opening modules -} -- You can import a module defined in a different ...
{ "alphanum_fraction": 0.5890823845, "avg_line_length": 20.4520547945, "ext": "agda", "hexsha": "f31e13c81efe58838d4131b447c7e5c196459cb5", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
-- The point of this test is to check that we don't create needlessly -- large anonymous modules when we open a module application. {-# OPTIONS -vscope.mod.inst:10 -vtc.section.apply:20 #-} module Optimised-open where postulate A : Set module M₁ (A : Set) where postulate P : A → Set X : Set -- There is n...
{ "alphanum_fraction": 0.6621621622, "avg_line_length": 16.9142857143, "ext": "agda", "hexsha": "d9fba35746dad7c6ecebef2fa06ed59c18a2b706", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K --safe #-} module Categories.Category.Instance.Quivers where -- The Category of Quivers open import Level using (Level; suc; _⊔_) open import Relation.Binary.PropositionalEquality.Core using (refl) open import Data.Quiver using (Quiver) open import Data.Quiver.Morphism using (Morphism; id; _∘...
{ "alphanum_fraction": 0.5744680851, "avg_line_length": 33.1764705882, "ext": "agda", "hexsha": "0b98f5c14bd54e1b649e009add08f15a00818196", "lang": "Agda", "max_forks_count": 64, "max_forks_repo_forks_event_max_datetime": "2022-03-14T02:00:59.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-02...
-- Andreas, 2018-10-16, runtime erasure id : (@0 A : Set) (@0 x : A) → A id A x = x -- Expected error: -- -- Variable x is declared erased, so it cannot be used here -- when checking that the expression x has type A
{ "alphanum_fraction": 0.6467889908, "avg_line_length": 21.8, "ext": "agda", "hexsha": "b74c29355d57b868608b8ce27b7280f5c6241dc4", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:0...
module Numeral.Natural.Induction{ℓ} where open import Logic open import Logic.Propositional open import Functional open import Numeral.Natural -- The induction proof method on natural numbers -- TODO: There seems to be a problem making i implicit with unsolved metas. -- TODO: Maybe rename to elim because this is the ...
{ "alphanum_fraction": 0.592503023, "avg_line_length": 41.35, "ext": "agda", "hexsha": "b5cabb5dcdd4326ab715819f924180132e6ad3e5", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "7...
module Common.PredicateBasedContext where open import Common.Predicate public -- Predicate-based context membership. module _ {U : Set} where infix 3 _∈_ _∈_ : U → Pred (Cx U) A ∈ Γ = Any (_≡ A) Γ infix 3 _∉_ _∉_ : U → Pred (Cx U) A ∉ Γ = Not (A ∈ Γ) lookup : ∀ {Γ P} → All P Γ → (∀ {A} → A ∈ Γ → P A...
{ "alphanum_fraction": 0.4388593523, "avg_line_length": 23.5113636364, "ext": "agda", "hexsha": "9f4c85d381a76f35b05e67f0a0b78da393dd1c9f", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
open import ExtractSac as ES using () open import Extract (ES.kompile-fun) open import Data.Nat as N using (ℕ; zero; suc; _≤_; _≥_; _<_; s≤s; z≤n) import Data.Nat.DivMod as N open import Data.Nat.Properties as N open import Data.List as L using (List; []; _∷_) open import Data.Vec as V using (Vec; []; _∷_) import...
{ "alphanum_fraction": 0.5238990333, "avg_line_length": 27.3823529412, "ext": "agda", "hexsha": "df48ebfb6513c4a6460af1fa21e9e1c7eacff68b", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Structure.Relator.Ordering.Proofs where import Lvl open import Functional open import Lang.Instance open import Logic open import Structure.Relator.Ordering open import Structure.Relator.Properties open import Syntax.Transitivity open import Type private variable ℓ : Lvl.Level private variable A B : Type{...
{ "alphanum_fraction": 0.6577070762, "avg_line_length": 40.5111111111, "ext": "agda", "hexsha": "2df7e6ad1f25a7389e82a84c195d9d3b27e8775e", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --safe #-} module Cubical.Algebra.AbGroup.Base where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Foundations.Equiv.HalfAdjoint open import Cubical.Foundations.HLevels open import Cubical.Foundations.Isomorphism open import Cubical.Foundations.Univalence...
{ "alphanum_fraction": 0.601754238, "avg_line_length": 33.3061797753, "ext": "agda", "hexsha": "653714290f7e7236148025f593f96dbc656cb5e8", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Dependently typed changes with the Nehemiah plugin. ------------------------------------------------------------------------ module Nehemiah.Change.Validity where open import Nehemiah.Syntax.Type open import Nehem...
{ "alphanum_fraction": 0.6822810591, "avg_line_length": 30.6875, "ext": "agda", "hexsha": "5fc1bf8b827963c9e41f6c42952ecde7ec074d50", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2016-02-18T12:26:44.000Z", "max_forks_repo_forks_event_min_datetime": "2016-02-18T12:26:...
open import Oscar.Prelude open import Oscar.Data.𝟘 module Oscar.Data.Proposequality where module _ where data Proposequality {𝔬} {𝔒 : Ø 𝔬} (𝓞 : 𝔒) : 𝔒 → Ø₀ where instance ∅ : Proposequality 𝓞 𝓞 {-# BUILTIN EQUALITY Proposequality #-} Proposequality⟦_⟧ : ∀ {𝔬} (𝔒 : Ø 𝔬) → 𝔒 → 𝔒 → Ø₀ Propo...
{ "alphanum_fraction": 0.5650623886, "avg_line_length": 27.5901639344, "ext": "agda", "hexsha": "252f2a556c699454c40d8fae8063b052cba0279d", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
-- Andreas, 2016-02-09, should not record sections have all hidden parameters? module _ (A : Set) where record R : Set where postulate P : (a : A) → Set -- Records have some magic to make record parameters hidden -- in record section. -- This leads to an error in @checkInternal@. -- Should the pa...
{ "alphanum_fraction": 0.6415362731, "avg_line_length": 25.1071428571, "ext": "agda", "hexsha": "d4e571436d143557c113544b76011841189698a6", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
-- Category of sets and functions module Control.Category.SetsAndFunctions where open import Level using (zero; suc; _⊔_) open import Relation.Binary.PropositionalEquality open import Relation.Binary open import Data.Product open import Axiom.FunctionExtensionality open import Control.Category open import Control.C...
{ "alphanum_fraction": 0.6078672403, "avg_line_length": 22.5972222222, "ext": "agda", "hexsha": "008d33b7fe83b8144d223849f1cd11825571ab49", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
------------------------------------------------------------------------ -- A lemma ------------------------------------------------------------------------ open import Mixfix.Expr open import Mixfix.Acyclic.PrecedenceGraph using (acyclic) module Mixfix.Acyclic.Lemma (g : PrecedenceGraphInterface.PrecedenceG...
{ "alphanum_fraction": 0.5505050505, "avg_line_length": 33.9428571429, "ext": "agda", "hexsha": "cfbcb8f2f0618e66cd1d5aae94c34b02560c5f1f", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --copatterns --sized-types #-} open import Function open import Data.Unit as Unit renaming (tt to ∗) open import Data.List as List TyCtx = List ⊤ data TyVar : (Γ : TyCtx) → Set where zero : ∀{Γ} → TyVar (∗ ∷ Γ) succ : ∀{Γ} → (x : TyVar Γ) → TyVar (∗ ∷ Γ) data Type (Γ : TyCtx...
{ "alphanum_fraction": 0.4578111947, "avg_line_length": 29.1951219512, "ext": "agda", "hexsha": "fbff2710b40d4457aaa2208ac4407eb0e5b6c8e9", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Fold where open import Prelude myfold : {ac b : Set} -> (ac -> b -> ac) -> ac -> List b -> ac #ifdef strict myfold = foldl! #else myfold = foldl #endif
{ "alphanum_fraction": 0.6172839506, "avg_line_length": 13.5, "ext": "agda", "hexsha": "3f6bea640cbef2f9937f803ae733c80457e4fde9", "lang": "Agda", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:39:48.000Z", "max_forks_repo_forks_event_min_datetime": "2018-05-24T10:45:59....
------------------------------------------------------------------------ -- The double-negation monad ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} open import Equality module Double-negation {reflexive} (eq : ∀ {a p} → Equality-with-J a p reflexive) wh...
{ "alphanum_fraction": 0.5950134771, "avg_line_length": 31.5744680851, "ext": "agda", "hexsha": "aa787c72f7d63cd1e100f40e05e24fa834f06f6c", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
-- {-# OPTIONS -v tc.lhs.unify:100 #-} module Issue811 where module ParamIndex where -- Report by stevan: -- When case-splitting, I think dots end up at the wrong places, -- consider: data _≡_ {A : Set}(x : A) : A → Set where refl : x ≡ x -- If you case-split on p in: dot : ∀ {A}(x : A)(y : A) → x ≡ ...
{ "alphanum_fraction": 0.5307635285, "avg_line_length": 24.9814814815, "ext": "agda", "hexsha": "542f8f88a447621a4bd4197c2f0e7b0838afa833", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module plfa-code.Lists where import Relation.Binary.PropositionalEquality as Eq open Eq using (_≡_; refl; sym; trans; cong) open Eq.≡-Reasoning open import Data.Bool using (Bool; true; false; T; _∧_; _∨_; not) open import Data.Nat using (ℕ; zero; suc; _+_; _*_; _∸_; _≤_; s≤s; z≤n) open import Data.Nat.Properties using...
{ "alphanum_fraction": 0.4349940321, "avg_line_length": 27.287092883, "ext": "agda", "hexsha": "b6120138b1e850ac89a729dd56aa2605d0bec3ec", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
------------------------------------------------------------------------ -- Code related to the paper "Higher Lenses" -- -- Nils Anders Danielsson -- -- The paper is coauthored with Paolo Capriotti and Andrea Vezzosi. ------------------------------------------------------------------------ -- Most of the code referenc...
{ "alphanum_fraction": 0.6828729907, "avg_line_length": 27.056661562, "ext": "agda", "hexsha": "b8e8552b6f4da4d22539367602b4cd51dddb1f1b", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-07-01T14:33:26.000Z", "max_forks_repo_forks_event_min_datetime": "2020-07-01T1...
module Formalization.Polynomial where import Lvl open import Data.ListSized open import Numeral.Natural as ℕ using (ℕ) open import Type private variable ℓ ℓₑ : Lvl.Level private variable T : Type{ℓ} private variable n n₁ n₂ : ℕ -- TODO: Some of the operations should work with arbitrary Rg structures, not just ℕ...
{ "alphanum_fraction": 0.4531919569, "avg_line_length": 60.0726072607, "ext": "agda", "hexsha": "0b368956c4f9a2ff926ef1af52856caeea7c34ca", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Text.Greek.SBLGNT.Titus where open import Data.List open import Text.Greek.Bible open import Text.Greek.Script open import Text.Greek.Script.Unicode ΠΡΟΣ-ΤΙΤΟΝ : List (Word) ΠΡΟΣ-ΤΙΤΟΝ = word (Π ∷ α ∷ ῦ ∷ ∙λ ∷ ο ∷ ς ∷ []) "Titus.1.1" ∷ word (δ ∷ ο ∷ ῦ ∷ ∙λ ∷ ο ∷ ς ∷ []) "Titus.1.1" ∷ word (θ ∷ ε ∷ ο ∷ ...
{ "alphanum_fraction": 0.3497286192, "avg_line_length": 48.6731343284, "ext": "agda", "hexsha": "774c2ccaf2125b83d30d47e43ce5ab14fa91f2d0", "lang": "Agda", "max_forks_count": 5, "max_forks_repo_forks_event_max_datetime": "2017-06-11T11:25:09.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-27T...
------------------------------------------------------------------------------ -- From ListN as the least fixed-point to ListN using data ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no...
{ "alphanum_fraction": 0.4370342772, "avg_line_length": 32.3373493976, "ext": "agda", "hexsha": "e598eb24a306ac530b11366dd813ee492c87e563", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-19T...
{-# OPTIONS --allow-unsolved-metas #-} module TermNode where open import OscarPrelude open import TermCode record TermNode : Set where inductive field children : List (TermCode × TermNode) number : Nat open TermNode public open import Membership _child∈_ : TermCode → TermNode → Set _child∈_ 𝔠 𝔫 = 𝔠...
{ "alphanum_fraction": 0.6008221994, "avg_line_length": 33.5517241379, "ext": "agda", "hexsha": "5d14ec67aa3002b7a3189fbe96cb59c503c48d45", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Data.Unit where open import Cubical.Data.Unit.Base public open import Cubical.Data.Unit.Properties public
{ "alphanum_fraction": 0.7430167598, "avg_line_length": 29.8333333333, "ext": "agda", "hexsha": "6e085e1bd8c97a71ad14a54632db2f5c114aaa09", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-22T02:02:01.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-22T...
-- Laws for weakenings and substitutions. {-# OPTIONS --without-K --safe #-} module Definition.Untyped.Properties where open import Definition.Untyped open import Tools.Fin open import Tools.Nat open import Tools.List open import Tools.PropositionalEquality hiding (subst) private variable ℓ m n : Nat ρ ρ...
{ "alphanum_fraction": 0.5557215129, "avg_line_length": 35.9083044983, "ext": "agda", "hexsha": "82792a71eff4f3309f3300cd0547bd632ad20019", "lang": "Agda", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2021-11-27T15:58:33.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-18T...
{-# OPTIONS --without-K --safe #-} open import Algebra open import Relation.Unary open import Relation.Binary hiding (Decidable) module Data.FingerTree.Split.Point {r m} (ℳ : Monoid r m) {s} {ℙ : Pred (Monoid.Carrier ℳ) s} (ℙ-resp : ℙ Respects (Monoid._≈_ ℳ)) (ℙ? : Decidable ℙ) where open import Relati...
{ "alphanum_fraction": 0.5313959523, "avg_line_length": 26.7638888889, "ext": "agda", "hexsha": "1c8639b49402fe61ef4ce3b723d180ac2a043c7d", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Category.Profunctor where open import Agda.Primitive using (Level; _⊔_; lsuc) open import Data.Product using (_,_; _×_) open import Function using (id) open import Relation.Binary.PropositionalEquality using (_≡_) Dimap : ∀ {a b} (p : Set a → Set a → Set b) → Set (lsuc a ⊔ b) Lmap : ∀ {a b} (p : Set a → Set a →...
{ "alphanum_fraction": 0.5839256424, "avg_line_length": 44.6097560976, "ext": "agda", "hexsha": "290d1ebeadc3a03fd0778c9e50239eee7e8a5e96", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Cats.Category.Op where open import Relation.Binary using (Rel ; _Preserves₂_⟶_⟶_) open import Relation.Binary.PropositionalEquality as ≡ open import Level open import Cats.Category open import Cats.Category.Cat using (Cat) module _ {lo la l≈} (C : Category lo la l≈) where infixr 9 _∘_ infixr 4 _≈_ p...
{ "alphanum_fraction": 0.4649326521, "avg_line_length": 23.402173913, "ext": "agda", "hexsha": "8d846c0220b7c21e6ab0830352e5ced3d7e2554f", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
module AgdalightTelescopeSyntax where postulate A : Set B : A -> Set g : (x y : A; z : B x) -> A -- this is Agdalight syntax, should not parse
{ "alphanum_fraction": 0.644295302, "avg_line_length": 21.2857142857, "ext": "agda", "hexsha": "20a905348f3d5a6cde748e27c16c25f7e8915734", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
{-# OPTIONS --safe #-} module Cubical.Data.Graph.Examples where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Function open import Cubical.Foundations.Isomorphism open import Cubical.Data.Empty open import Cubical.Data.Unit renaming (Unit to ⊤) open import Cubical.Data.Nat open import Cubica...
{ "alphanum_fraction": 0.5141466931, "avg_line_length": 34.2530864198, "ext": "agda", "hexsha": "b94a303b9b4e9bfcb9c63dea341fa658274f98e9", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --safe --warning=error --without-K --guardedness #-} open import Setoids.Setoids open import Rings.Definition open import Rings.Lemmas open import Rings.Orders.Partial.Definition open import Rings.Orders.Total.Definition open import Groups.Definition open import Groups.Lemmas open import Fields.Fields open...
{ "alphanum_fraction": 0.6828117629, "avg_line_length": 102.979757085, "ext": "agda", "hexsha": "6c53cd331addf0c4722db280150b5c99fa494341", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-29T13:23:07.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-29T...
open import Common.IO open import Common.Unit open import Common.String -- Currently, it is not actually a test. -- I need a wat to check that Erasure does not happen when it normally would. {-# FOREIGN OCaml type i = | Bar of string;; #-} data I : Set where bar : String → I {-# COMPILE OCaml I No-Erasure ...
{ "alphanum_fraction": 0.6590389016, "avg_line_length": 16.1851851852, "ext": "agda", "hexsha": "0c32a71f9c7c0305622c718fdf3e7e8b9583241a", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
------------------------------------------------------------------------------ -- The LTC-PCF Booleans type ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-#...
{ "alphanum_fraction": 0.4491916859, "avg_line_length": 33.3076923077, "ext": "agda", "hexsha": "2b646c18dcf139340e82bd9abe852e11a569ba4c", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-19T...
-- An ATP conjecture cannot have duplicate local hints. -- This error is detected by Syntax.Translation.ConcreteToAbstract. module ATPBadLocalHint2 where postulate D : Set foo : D bar : D {-# ATP prove foo bar bar #-}
{ "alphanum_fraction": 0.7173913043, "avg_line_length": 17.6923076923, "ext": "agda", "hexsha": "8ef7e6a1eec95ba80c70f767b352f38e54075a41", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-05T...
module tuple where data ℕ : Set where Z : ℕ S : ℕ -> ℕ _+_ : ℕ -> ℕ -> ℕ n + Z = n n + S m = S (n + m) infixr 30 _+_ data Nil : Set where [] : Nil infix 20 _::_ data Cons (A B : Set) : Set where _::_ : A -> B -> Cons A B Tuple : Set -> ℕ -> Set Tuple A Z = Nil Tuple A (S n) = Cons A (Tuple...
{ "alphanum_fraction": 0.4488188976, "avg_line_length": 13.0256410256, "ext": "agda", "hexsha": "a41bf092db1b308cc8f9384990fb0f69e8f5c288", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
-- Andreas, 2012-09-15 module InstanceArgumentsDontDiscardCandidateUponUnsolvedConstraints where import Common.Level data ⊥ : Set where record ⊤ : Set where data Nat : Set where zero : Nat suc : Nat → Nat _≤_ : Nat → Nat → Set zero ≤ m = ⊤ (suc n) ≤ zero = ⊥ (suc n) ≤ (suc m) = n ≤ m data Vec (A :...
{ "alphanum_fraction": 0.585915493, "avg_line_length": 24.4827586207, "ext": "agda", "hexsha": "6002112560e94d1b628ac5d730c34004ac10aa62", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-12T1...
module SN.AntiRename where open import Relation.Unary using (_∈_; _⊆_) open import Library open import Terms open import Substitution open import SN mutual -- To formulate this, we need heterogeneous SNholes, going from Γ to Δ -- unRenameSNh : ∀{a b Γ Δ} (ρ : Δ ≤ Γ) {t : Tm Γ b} {E : ECxt Γ a b} {t' : Tm Γ a}...
{ "alphanum_fraction": 0.4996003197, "avg_line_length": 45.4909090909, "ext": "agda", "hexsha": "7653611fe99b3b13d2e6737bff5755785530ee53", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2018-02-23T18:22:17.000Z", "max_forks_repo_forks_event_min_datetime": "2017-11-10T...
-- Andreas, 2016-12-29, issue #2363 data Nat : Set where zero : Nat suc : Nat → Nat test : Nat → Nat test (suc n) with zero test zero | q = zero test zero = zero -- Error WAS: -- With clause pattern zero is not an instance of its parent pattern (suc "n") -- Expected error: -- With clause pattern zero is not an ...
{ "alphanum_fraction": 0.6768802228, "avg_line_length": 21.1176470588, "ext": "agda", "hexsha": "72a69c2a6890865d66099d3dd4f595e7358f6a2b", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
module Oscar.Class.AlphaConversion where open import Oscar.Data.Nat open import Oscar.Data.Fin open import Oscar.Data.Equality open import Oscar.Function open import Oscar.Relation open import Oscar.Level record AlphaConversion {a} {A : Set a} {b} (B : A → Set b) {c} (C : A → Set c) : Set (a ⊔ b ⊔ c) where infixr ...
{ "alphanum_fraction": 0.6149003148, "avg_line_length": 36.6538461538, "ext": "agda", "hexsha": "d661ff09a47cce4c804915a2cd902fda9fa265a7", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical --safe #-} module Cubical.Data.Sigma.Base where open import Cubical.Core.Primitives public -- Σ-types are defined in Core/Primitives as they are needed for Glue types. _×_ : ∀ {ℓ ℓ'} (A : Type ℓ) (B : Type ℓ') → Type (ℓ-max ℓ ℓ') A × B = Σ A (λ _ → B) infixr 5 _×_
{ "alphanum_fraction": 0.6404109589, "avg_line_length": 22.4615384615, "ext": "agda", "hexsha": "46c3087a93e70122ae6e84511ee04167281ed711", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS --without-K #-} module StrictApplication where open import Data.Nat {-# NON_TERMINATING #-} loop : ℕ loop = loop foo : ℕ foo = (λ _ → 0) loop
{ "alphanum_fraction": 0.5529801325, "avg_line_length": 18.875, "ext": "agda", "hexsha": "941796b213a6efe33893d7c635f3086491185aa9", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-19T14:18:3...