Search is not available for this dataset
text
string
meta
dict
{-# OPTIONS --without-K #-} module CPermCat where open import Level using (zero) open import Data.Nat using (ℕ; _+_; _*_) open import Data.Fin using () renaming (zero to 0F) open import Data.Product using (_,_; uncurry) import Relation.Binary.PropositionalEquality as P using (_≡_; refl; sym; cong₂; isEquivalence) ...
{ "alphanum_fraction": 0.5191680261, "avg_line_length": 25.7202797203, "ext": "agda", "hexsha": "f4008d65f6bf7a5a68a7b7e94eac344f228f167e", "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 Common.Prelude hiding (_>>=_) open import Common.Reflection open import Common.Equality record Functor (F : Set → Set) : Set₁ where field fmap : ∀ {A B} → (A → B) → F A → F B IdF : Functor (λ A → A) unquoteDef IdF = defineFun IdF (clause (vArg (projP (quote Functor.fmap)) ∷ vArg (var "f") ∷ vArg ...
{ "alphanum_fraction": 0.5194968553, "avg_line_length": 27.4137931034, "ext": "agda", "hexsha": "facc12d00ab687d1a30a80c8e9aef1a6d6be7dc6", "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 #-} open import Categories.Category.Core module Categories.Morphism.Regular.Properties {o ℓ e} (𝒞 : Category o ℓ e) where open import Categories.Morphism 𝒞 open import Categories.Morphism.Regular 𝒞 open import Categories.Diagram.Equalizer 𝒞 open import Categories.Diagram.Equalizer....
{ "alphanum_fraction": 0.702366127, "avg_line_length": 24.3333333333, "ext": "agda", "hexsha": "38e485ca67430844f1bbac66f265ded754615c85", "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 Categories.Monad.Algebra where
{ "alphanum_fraction": 0.8684210526, "avg_line_length": 19, "ext": "agda", "hexsha": "ccd04907407df7bae1ebe0ec905711ce5b9b233b", "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-05T13:03:09.0...
{-# OPTIONS --without-K --rewriting #-} open import HoTT open import homotopy.PtdAdjoint open import groups.FromSusp open import groups.ToOmega module groups.SuspAdjointLoop {i} where import homotopy.SuspAdjointLoop {i} as A module _ (X Y : Ptd i) where private pres-comp : preserves-comp (Gro...
{ "alphanum_fraction": 0.4643060458, "avg_line_length": 50.7687861272, "ext": "agda", "hexsha": "55f68a1f643714c568a122d2e52c20505e6cded3", "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 Relation.Binary.Core module BHeap.Everything {A : Set} (_≤_ : A → A → Set) (tot≤ : Total _≤_) where open import BHeap.Heap _≤_ open import BHeap.Height _≤_ tot≤
{ "alphanum_fraction": 0.5781990521, "avg_line_length": 23.4444444444, "ext": "agda", "hexsha": "a3a5c36a1a661c041210a0b7e04f1159b84a5058", "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-compatible --show-implicit #-} module WithoutK3 where -- Homogeneous equality. data _≡_ {A : Set} (x : A) : A → Set where refl : x ≡ x -- The J rule. J : {A : Set} (P : {x y : A} → x ≡ y → Set) → (∀ x → P (refl {x = x})) → ∀ {x y} (x≡y : x ≡ y) → P x≡y J P p refl = p _ -- Heterogen...
{ "alphanum_fraction": 0.4742990654, "avg_line_length": 23.1351351351, "ext": "agda", "hexsha": "eb55c72084bbb2a1b97ef1107ee7db4b06f2b207", "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 Data.ByteString where import Data.ByteString.Primitive as Prim import Data.ByteString.Utf8 as Utf8 open import Data.Word8 using (Word8) open import Data.Nat using (ℕ) open import Data.Colist using (Colist) open import Data.List using (List) open import Data.String using (String) op...
{ "alphanum_fraction": 0.7279220779, "avg_line_length": 29.3333333333, "ext": "agda", "hexsha": "189861b0384510ca3c80c7c7d6c82af5a8e9d0e8", "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 Base.Free where -- Reexport definitions from Agda's standard library that are needed by the -- generated code. open import Function using (case_of_) public open import Data.Bool using (if_then_else_) public open import Size using (Size; ↑_) public -- The `Free` mon...
{ "alphanum_fraction": 0.5732758621, "avg_line_length": 36.6315789474, "ext": "agda", "hexsha": "49a0a6401a5b0084959032913e989effb54c64ca", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-05-14T07:48:41.000Z", "max_forks_repo_forks_event_min_datetime": "2020-04-08T...
{-# OPTIONS --without-K --safe #-} module Cats.Category.Presheaves.Facts where open import Cats.Category.Presheaves.Facts.Exponential public using ( hasExponentials ) open import Cats.Category open import Cats.Category.Presheaves import Cats.Category.Fun.Facts as Fun import Cats.Category.Setoids.Facts module _ {...
{ "alphanum_fraction": 0.7391304348, "avg_line_length": 28.9142857143, "ext": "agda", "hexsha": "1f494170c7ccfeb2eb933859fdaaa62399fd455b", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-03-18T15:35:07.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-18T...
open import Relation.Binary.Core module PLRTree.Drop.Heap {A : Set} (_≤_ : A → A → Set) (tot≤ : Total _≤_) (trans≤ : Transitive _≤_) where open import PLRTree {A} open import PLRTree.Compound {A} open import PLRTree.Drop _≤_ tot≤ open import PLRTree.D...
{ "alphanum_fraction": 0.5119852489, "avg_line_length": 52.4838709677, "ext": "agda", "hexsha": "c6d0b84e3b62ede95e26c3b576c7e4b470fda263", "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 explore where import Explore.BigDistr import Explore.BinTree import Explore.Core import Explore.Dice import Explore.Examples import Explore.Explorable import Explore.Fin import Explore.Group import Explore.GuessingGameFlipping import Explore.Isomorphism import Explore.Monad import Explore.One import Explore.Prod...
{ "alphanum_fraction": 0.8588588589, "avg_line_length": 23.7857142857, "ext": "agda", "hexsha": "f408edf7b26b5b931f26735da1a7c90a480d0494", "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 Bool where data Bool : Set where false : Bool true : Bool data IsTrue : Bool -> Set where isTrue : IsTrue true open import Vec open import All allEnvs : {n : Nat} -> List (Vec Bool n) allEnvs {zero } = ε :: [] allEnvs {suc n} = map (_►_ false) allEnvs ++ map (_►_ true) allEnvs ∈++left : {A : Set}{x ...
{ "alphanum_fraction": 0.5011820331, "avg_line_length": 25.4819277108, "ext": "agda", "hexsha": "2f41756f64def9e877e832f70b543ecc8bfb5b8a", "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...
open import Nat open import Prelude open import dynamics-core open import contexts open import lemmas-consistency open import lemmas-disjointness open import lemmas-matching open import weakening module typed-elaboration where mutual typed-elaboration-synth : {Γ : tctx} {e : hexp} {τ : htyp} {d : ihexp} {Δ : hct...
{ "alphanum_fraction": 0.587631386, "avg_line_length": 51.7848101266, "ext": "agda", "hexsha": "3980488e59af79655d05ed09085b6bc72a18f024", "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 --without-K --safe #-} -- Adjoint Functor Theorem module Categories.Adjoint.AFT where open import Level open import Data.Product open import Data.Product using (Σ) open import Categories.Category open import Categories.Category.Complete open import Categories.Category.Complete.Properties open import Cate...
{ "alphanum_fraction": 0.4709150327, "avg_line_length": 30.297029703, "ext": "agda", "hexsha": "19d378cebdddfb5e5bad83cdfed9f424ddc89b59", "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-02T...
{-# OPTIONS --cubical --safe #-} module Equiv where open import Agda.Builtin.Cubical.Glue public using ( isEquiv ; equiv-proof ; _≃_) open import Cubical.Foundations.Everything public using (ua) open import Cubical.Foundations.Equiv public using (equivToIso; isPropIsEquiv) renaming (compEquiv t...
{ "alphanum_fraction": 0.7171428571, "avg_line_length": 25, "ext": "agda", "hexsha": "e72900c11f9017396ebd1b92e345693e43f13651", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-01-05T14:05:30.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-05T14:05:30.00...
open import Agda.Builtin.Equality open import Agda.Builtin.Nat data ⊥ : Set where data Zero : Set where zero : Zero data One : Set where suc : Zero → One one : One one = suc zero data _≤_ : One → Zero → Set where leq : ∀ m n → Nat → Nat → m ≤ n → ⊥ leq (suc m) zero = λ i j () test : Nat → one ≤ zero → ⊥ tes...
{ "alphanum_fraction": 0.6052631579, "avg_line_length": 14.6153846154, "ext": "agda", "hexsha": "506948505ddaf8057e5aec22499bca16da888694", "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 --safe #-} module Cubical.Categories.Functor where open import Cubical.Categories.Functor.Base public open import Cubical.Categories.Functor.Properties public open import Cubical.Categories.Functor.Compose public
{ "alphanum_fraction": 0.8117647059, "avg_line_length": 31.875, "ext": "agda", "hexsha": "3e7ddc0cca7a24fe079ff1deedffeaf9839218f8", "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 Oscar.Data.Maybe.properties where open import Data.Maybe public using (maybe)
{ "alphanum_fraction": 0.8045977011, "avg_line_length": 17.4, "ext": "agda", "hexsha": "550b76125d6ec13c7a5c8992a7e3f96cc3a142f9", "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": "5...
module STLC2.Kovacs.Convertibility where open import STLC2.Kovacs.Substitution public -------------------------------------------------------------------------------- -- Convertibility (_~_ ; ~refl ; _~⁻¹ ; lam ; app ; β ; η) infix 3 _∼_ data _∼_ : ∀ {Γ A} → Γ ⊢ A → Γ ⊢ A → Set where refl∼ : ∀ {Γ A} → {M ...
{ "alphanum_fraction": 0.2577934135, "avg_line_length": 35.6550522648, "ext": "agda", "hexsha": "214ceefe248fe68560db0bd300f13e7fa1a106d9", "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 Algebra.Dioid where record Dioid A (_≡_ : A -> A -> Set) : Set where field zero : A one : A _+_ : A -> A -> A _*_ : A -> A -> A reflexivity : ∀ {r : A} -> r ≡ r symmetry : ∀ {r s : A} -> r ≡ s -> s ≡ r transitivity : ∀ {r s t : A} -> r ≡ s ...
{ "alphanum_fraction": 0.4163802978, "avg_line_length": 38.8, "ext": "agda", "hexsha": "fdb959123b24fa66fbb299406cebe83e7a0ecdb7", "lang": "Agda", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2019-05-09T23:53:28.000Z", "max_forks_repo_forks_event_min_datetime": "2017-12-17T20:48:20....
------------------------------------------------------------------------ -- Pointers to results from the paper ------------------------------------------------------------------------ module README.Pointers-to-results-from-the-paper where open import Prelude using (Type) open import Prelude.Size using (∞) import Col...
{ "alphanum_fraction": 0.6999130958, "avg_line_length": 27.9085820896, "ext": "agda", "hexsha": "19c0610c5c60cdea32e4c66749d50700efae9f78", "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.Lens.Proofs.LensPostulates where open import Haskell.Prelude renaming (zero to Z; suc to S) open import Data.Lens.Lens open import Data.Logic open import Agda.Primitive open import Data.Lens.Proofs.LensLaws ---- Lens postulates -- These are provable using the isomorphism to the getter+setter style -- Howe...
{ "alphanum_fraction": 0.5692475463, "avg_line_length": 37.4285714286, "ext": "agda", "hexsha": "f4fdc1bae61c5a3a0744c92ba3bde1e0252e8c73", "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 examplesPaperJFP.Collatz where open import Data.Nat.Base open import Data.Nat.DivMod open import Data.Fin using (Fin; zero; suc) open import examplesPaperJFP.Colists collatzStep : ℕ → ListF ℕ ℕ collatzStep 1 = nil collatzStep n with n divMod 2 ... | result q zero _ = cons n q ...
{ "alphanum_fraction": 0.6479663394, "avg_line_length": 23.7666666667, "ext": "agda", "hexsha": "6da90d2653fa6b7e8e9b103ea3be79826f242a21", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:41:00.000Z", "max_forks_repo_forks_event_min_datetime": "2018-09-01T...
import Lvl open import Type module Type.Univalence where open import Functional import Logic.Predicate import Relator.Equals import Relator.Equals.Proofs import Type.Cardinality import Type.Cardinality.Proofs import Type.Functions import Type.Functions.Inverse module _ {ℓₗ ℓₒ ...
{ "alphanum_fraction": 0.5644871026, "avg_line_length": 42.2025316456, "ext": "agda", "hexsha": "1e2fddf3d258456942a79b2f494dd2bfb061d0b3", "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 static where open import Data.Nat using (ℕ; _+_; zero; suc) open import Data.Fin using (Fin; toℕ; zero; suc) open import Data.Vec using (lookup; _∷_; []) open import Data.Bool using (Bool; true; false) open import LSsyntax open import Relation.Binary.PropositionalEquality -- using (_≡_; refl) -- inference rul...
{ "alphanum_fraction": 0.5643417426, "avg_line_length": 44.5, "ext": "agda", "hexsha": "89667b112220afb00a2fc42bfaf67548f6ecf557", "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": "a...
module sets.nat.core where open import level open import decidable open import equality.core open import function.core open import function.isomorphism.core open import sets.empty infixr 8 _^_ infixl 7 _*_ infixl 6 _+_ data ℕ : Set where zero : ℕ suc : ℕ → ℕ {-# BUILTIN NATURAL ℕ #-} pred : ℕ → ℕ pred zero...
{ "alphanum_fraction": 0.5618686869, "avg_line_length": 16.8510638298, "ext": "agda", "hexsha": "669a079c1e2d4c5c41cdbcde36c49bd2da367b0e", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2019-02-26T06:17:38.000Z", "max_forks_repo_forks_event_min_datetime": "2015-04-11T...
module _ where module First where postulate C : Set → Set it : {A : Set} ⦃ _ : C A ⦄ → A X : Set module Second where open First postulate instance iCX : C X module Nested where open First x : X x = it -- Second.iCX is in scope
{ "alphanum_fraction": 0.5984555985, "avg_line_length": 14.3888888889, "ext": "agda", "hexsha": "26ed20577ea662c16d48dd60ad126e6ad5b7e761", "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...
-- Andreas, 2016-07-08 -- Better error message for private modules module _ where module M where private module Private where module ShouldFail = M.Private -- Current: -- No such module M.Private -- Better: -- M.Private is not in scope since it is declared as private -- Or (simpler): -- M.Private exists but is n...
{ "alphanum_fraction": 0.7240356083, "avg_line_length": 18.7222222222, "ext": "agda", "hexsha": "94f3468a9dfcb057b7ea31984f29f11167beaf44", "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 #-} open import Base open import Homotopy.TruncatedHIT open import Integers module Algebra.FreeGroup {i} (A : Set i) where {- The definition is the following (0)data freegroup : Set i where e : freegroup _·_ : A → freegroup → freegroup _⁻¹·_ : A → freegroup → freegrou...
{ "alphanum_fraction": 0.4966426859, "avg_line_length": 35.0420168067, "ext": "agda", "hexsha": "d9a275e4baf8b1426707d80299eb488f3568f520", "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...
{-# OPTIONS --cubical --safe --postfix-projections #-} module Data.List.Relation.Binary.Permutation where open import Prelude open import Data.List open import Data.Fin open import Data.Fin.Properties open import Data.List.Membership open import Cubical.Foundations.Equiv import Function.Isomorphism as Isomorphism ope...
{ "alphanum_fraction": 0.5027926593, "avg_line_length": 43.6467661692, "ext": "agda", "hexsha": "6d8503a129094445d956bd7a91b5b70bec566148", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-11T12:30:21.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-11T...
module ImportTests.ExtractFunction where open import ExtractFunction open import Data.Nat open import Data.Bool checkFunction1 : ℕ checkFunction1 = function1 2 3 checkFunction2 : ℕ checkFunction2 = function2 4 true
{ "alphanum_fraction": 0.8256880734, "avg_line_length": 18.1666666667, "ext": "agda", "hexsha": "1fa0c5fa4d35cd42dc85eaa2c152e5d87ccff87c", "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...
@0 F : @0 Set → Set F A = λ { → A }
{ "alphanum_fraction": 0.3611111111, "avg_line_length": 12, "ext": "agda", "hexsha": "a2963a4ea0e4a0cbb09f20a3535de85a2d92d231", "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....
{-# OPTIONS --safe #-} module Cubical.HITs.FreeComMonoids.Base where open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.Foundations.Function private variable ℓ : Level A : Type ℓ data FreeComMonoid (A : Type ℓ) : Type ℓ where ⟦_⟧ : A → FreeComMonoid A ε...
{ "alphanum_fraction": 0.4699057288, "avg_line_length": 37.2702702703, "ext": "agda", "hexsha": "cd002b66d3ffc2df78eb3e0a3f0553f499a06070", "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 --allow-unsolved-metas #-} module Theorem1 where open import OscarPrelude open import HasSatisfaction open import HasSubstantiveDischarge open import LiteralFormula open import 𝑱udgement open import HasSalvation open import Membership open import Interpretation open import HasNegation open import ...
{ "alphanum_fraction": 0.655396619, "avg_line_length": 36.619047619, "ext": "agda", "hexsha": "9f6793ee90517c45c0a0e160a4377b3c0b465daf", "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...
-- Andreas, 2011-04-15 module NotStronglyRigidOccurrence where data Nat : Set where zero : Nat suc : Nat -> Nat data _≡_ {A : Set}(a : A) : A -> Set where refl : a ≡ a -- Jason C. Read, PhD thesis, p. 109 test : (k : Nat) -> let X : (Nat -> Nat) -> Nat X = _ in (f : Nat -> Nat) -> X...
{ "alphanum_fraction": 0.5324165029, "avg_line_length": 26.7894736842, "ext": "agda", "hexsha": "bd32ad5d2524be628ca0a4c553e006b0b54f3fb7", "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 #-} module Oscar.AgdaRewriting where open import Agda.Builtin.Equality {-# BUILTIN REWRITE _≡_ #-} record ⊤ : Set where constructor tt data List (A : Set) : Set where ∅ : List A _∷_ : A → List A → List A Nat = List ⊤ pattern ‼ xs = tt ∷ xs syntax ‼ xs = ! xs open import Agda.Builtin....
{ "alphanum_fraction": 0.5380434783, "avg_line_length": 18.4, "ext": "agda", "hexsha": "4607cef012160e0fcbf0fc1340786afb4b7b5ba2", "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": "5...
{-# OPTIONS --without-K --safe #-} open import Algebra module Data.FingerTree.Reasoning {r m} (ℳ : Monoid r m) where open Monoid ℳ renaming (Carrier to 𝓡) open import Data.FingerTree.MonoidSolver ℳ using (solve-macro) open import Data.Unit using (⊤) open import Reflection using (TC; Term) macro _↯ : Term...
{ "alphanum_fraction": 0.496803653, "avg_line_length": 18.8793103448, "ext": "agda", "hexsha": "943f2e6c1f95e7f2a649ceb6e839ec1f77eae565", "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 BBHeap.Perfect {A : Set}(_≤_ : A → A → Set) where open import BBHeap _≤_ open import Bound.Lower A open import Bound.Lower.Order _≤_ data Perfect {b : Bound} : BBHeap b → Set where plf : Perfect (leaf {b}) pnd : {x : A}{l r : BBHeap (val x)}(b≤x : LeB b (val x))(l⋘r : l ⋘ r) → l ≃ r → Perfect (left b≤x l⋘...
{ "alphanum_fraction": 0.6068111455, "avg_line_length": 32.3, "ext": "agda", "hexsha": "3aae729b80de704b304a946684194951a74c16c6", "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": "b...
module Issue478 where record Ko (Q : Set) : Set₁ where field T : Set module Bo (P : Set) (ko : Ko P) where open Ko ko err : T err = Set {- The error message was: Set₁ !=< T P ko of type Set₂ when checking that the expression Set has type T P ko We now get the desired error message: Set₁ !=< T o...
{ "alphanum_fraction": 0.6520618557, "avg_line_length": 15.52, "ext": "agda", "hexsha": "a4b22f8220a24e0058a4b0007c0ae830cf0d383a", "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 --cubical --safe #-} module Ag08 where open import Cubical.Core.Everything open import Cubical.Foundations.Everything open import Cubical.Data.Everything -- maybe helpful when case splitting record Reveal_·_is_ {a b} {A : Set a} {B : A → Set b} (f : (x : A) → B x) (x : A) (y : B x) : ...
{ "alphanum_fraction": 0.5674074074, "avg_line_length": 29.347826087, "ext": "agda", "hexsha": "9238320af9fd203ff2d16c3552536077ed7cd200", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-12-13T04:50:46.000Z", "max_forks_repo_forks_event_min_datetime": "2019-12-13T0...
{-# OPTIONS --without-K #-} open import Data.Nat open import Data.Two open import Data.Zero open import Data.Fin.NP open import Type open import Function open import Relation.Binary.PropositionalEquality.NP import Explore.Universe.Base open import Explore.Core open import Explore.Zero open import Explore.One open impo...
{ "alphanum_fraction": 0.6318042813, "avg_line_length": 32.7, "ext": "agda", "hexsha": "a752e85d8b9f4a9659b441fe04d576a2d816a12e", "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": "1...
------------------------------------------------------------------------ -- Preimages ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} -- Partly based on Voevodsky's work on so-called univalent -- foundations. open import Equality module Preimage {reflexi...
{ "alphanum_fraction": 0.4851573677, "avg_line_length": 32.323699422, "ext": "agda", "hexsha": "f6dd092e7f97dcf5550f9c52a0d9f960e607ba22", "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 Money where import Agda.Builtin.IO as Builtin using (IO) import Data.Rational as ℚ using (_+_; _*_) open import Codata.Musical.Notation using (♯_) open import Data.Nat using (ℕ; suc) open import Data.Integer as ℤ using (+_) open import Data.List using (List; []; _∷_) open import Data.Rational as ℚ using (ℚ; 0ℚ;...
{ "alphanum_fraction": 0.6219169529, "avg_line_length": 27.6120689655, "ext": "agda", "hexsha": "1a7c130749c9b12ca483c231615717c043beb905", "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...
import cedille-options module elab-util (options : cedille-options.options) where open import general-util open import cedille-types open import syntax-util open import type-util open import ctxt open import conversion open import constants open import instances open import subst open import rename open import rewriti...
{ "alphanum_fraction": 0.5742395751, "avg_line_length": 44.8938207137, "ext": "agda", "hexsha": "b548c9e25e7c9cece9d9c9219c19a29a168a748d", "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 Nat open import Prelude open import List open import core open import judgemental-erase open import checks module constructability where -- we construct expressions and types by induction on their -- structure. for each sub term, we call the relevant theorem, then -- assemble the results with careful...
{ "alphanum_fraction": 0.4953917051, "avg_line_length": 54.8735632184, "ext": "agda", "hexsha": "28609445dd5ad3ec714e1daea084645b55335831", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-07-03T03:45:07.000Z", "max_forks_repo_forks_event_min_datetime": "2021-07-03T...
-- Andreas, 2015-05-02 Integrate copatterns with with. {-# OPTIONS --copatterns #-} open import Common.Prelude hiding (map) open import Common.Product open import Common.Equality dup : {A : Set} → A → A × A proj₁ (dup a) = a proj₂ (dup a) with a proj₂ (dup a) | x = x record Stream (A : Set) : Set where coinductiv...
{ "alphanum_fraction": 0.5389196087, "avg_line_length": 27.9880952381, "ext": "agda", "hexsha": "799c77f007eba9ea0f8112223694e721daca52b2", "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 --cubical --no-import-sorts --safe #-} module Cubical.Data.FinData.Base where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Function import Cubical.Data.Empty as ⊥ open import Cubical.Data.Nat using (ℕ; zero; suc) open import Cubical.Data.Bool.Base open import Cubical.Relation.Nu...
{ "alphanum_fraction": 0.5603197674, "avg_line_length": 22.9333333333, "ext": "agda", "hexsha": "eae4309f9369664a7992896cb409095510842237", "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...
------------------------------------------------------------------------ -- Semi-heterogeneous vector equality ------------------------------------------------------------------------ module Data.Vec.Equality where open import Data.Vec open import Data.Nat using (suc) open import Data.Function open import Relation.Bi...
{ "alphanum_fraction": 0.4806483626, "avg_line_length": 33.5888888889, "ext": "agda", "hexsha": "174907047a161fd236757c0c3214199e4bc016e0", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:54:10.000Z", "max_forks_repo_forks_event_min_datetime": "2015-07-21T...
module test where open import cry.gfp open import cry.ec {- -- open import IO.Primitive -- open import Foreign.Haskell open import Agda.Builtin.List using (List; []; _∷_) open import Agda.Builtin.Char using (Char) renaming (primCharToNat to toNat) open import Agda.Builtin.String using (String) renaming (primStringAp...
{ "alphanum_fraction": 0.5994256999, "avg_line_length": 27.0485436893, "ext": "agda", "hexsha": "6020b79ab39fb3b0ac231e71a2c15ebe6be61a0a", "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 GUIgeneric.GUIFeaturesPart2 where open import GUIgeneric.Prelude renaming (addButton to addButton') open import GUIgeneric.GUIDefinitions renaming (add to add'; add' to add) open import GUIgeneric.GUI open import GUIgeneric.GUIExampleLib open import StateSizedIO.GUI.WxGraphicsLibLevel3 renaming (addButton to a...
{ "alphanum_fraction": 0.5861764706, "avg_line_length": 38.202247191, "ext": "agda", "hexsha": "4b0dd628c7d294c4bd9bf78d3929b7b9e5028188", "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...
open import Agda.Builtin.Equality open import Agda.Builtin.Nat record Eta : Set where constructor _,_ field fst : Nat snd : Nat open Eta data ⊥ : Set where hard-fail : (a : Eta) (x : Nat) → (fst a , x) ≡ a → ⊥ hard-fail a x () -- Should be error (refl is valid) loop : ⊥ loop = hard-fail (0 , 0) 0 ref...
{ "alphanum_fraction": 0.6149068323, "avg_line_length": 16.9473684211, "ext": "agda", "hexsha": "2cc552abad6370c9ec5cceece5b2eeb231d5a214", "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 --safe #-} open import Agda.Builtin.Bool open import Data.Maybe.Base using (just; nothing) open import Relation.Binary.PropositionalEquality open import Relation.Nullary open import Data.Integer.Base open import Data.Integer.Properties using (+-*-commutativeRing) open import Tactic.RingSolver....
{ "alphanum_fraction": 0.7972166998, "avg_line_length": 41.9166666667, "ext": "agda", "hexsha": "1169f70468a9a6f44a1cd32127016c6eab9eac45", "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 --universe-polymorphism #-} module Categories.Fibration where open import Level hiding (lift) open import Data.Product open import Categories.Category open import Categories.Functor hiding (_∘_; _≡_) open import Categories.Morphism.Cartesian import Categories.Morphisms as Morphisms record CartesianLiftin...
{ "alphanum_fraction": 0.622278057, "avg_line_length": 27.7674418605, "ext": "agda", "hexsha": "200d8f3f53894bac975413cd00b6cd1bc44a706a", "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-05T...
------------------------------------------------------------------------ -- The Agda standard library -- -- Convenient syntax for "equational reasoning" using a preorder ------------------------------------------------------------------------ -- Example uses: -- -- u∼y : u ∼ y -- u∼y = begin -- u ≈⟨ u≈v ⟩ ...
{ "alphanum_fraction": 0.4099766173, "avg_line_length": 23.7592592593, "ext": "agda", "hexsha": "c9501aedfa2dec1ece7ee1b59f96f27480c95484", "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...
{-# OPTIONS --rewriting -v rewriting:80 #-} open import Agda.Builtin.Equality {-# BUILTIN REWRITE _≡_ #-} postulate A : Set f : A → A h : .A → A → A rew : ∀ {x} → h x x ≡ x {-# REWRITE rew #-} test2 : (x y : A) → h x y ≡ y test2 x y = refl postulate r : .A → A s : .A → A rewr : ∀ x → r x ≡ s x {-# RE...
{ "alphanum_fraction": 0.5044776119, "avg_line_length": 15.2272727273, "ext": "agda", "hexsha": "6c9d2f5f8f42343893d860d65d06783f74b8188f", "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 PrettyPrinter where open import Agda.Builtin.IO using (IO) open import Agda.Builtin.Int using (pos) open import Agda.Builtin.Unit using (⊤) open import FFI.IO using (getContents; putStrLn; _>>=_; _>>_) open import FFI.Data.Aeson using (Value; eitherDecode) open import FFI.Data.Either using (Left; Right) open i...
{ "alphanum_fraction": 0.7419354839, "avg_line_length": 35.696969697, "ext": "agda", "hexsha": "fdad32d6a95835df3288059fb7f9a4f3d0921355", "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 --without-K #-} module hott.core.equality where open import hott.core.universe -- | The equality type. In hott we think of the equality type as paths -- between two points in the space A. To simplify the types we first -- fix the common parameters. module common {a : Level}{A : Type a} where data _≡_...
{ "alphanum_fraction": 0.5146493045, "avg_line_length": 23.9645390071, "ext": "agda", "hexsha": "7dea982a49fdd794a714b131416a6423396c5b21", "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.Empty where open import Cubical.Data.Empty.Base public open import Cubical.Data.Empty.Properties public
{ "alphanum_fraction": 0.7735849057, "avg_line_length": 22.7142857143, "ext": "agda", "hexsha": "a72500f2459390af5f74a761c5715dc409403674", "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 Agda.Builtin.Equality open import Agda.Builtin.Nat data D (A : Set) : Set → Set₁ where c₁ : {B : Set} → D A B c₂ : D A A record P {A B : Set} (p : D A B) : Set₁ where constructor c field d : D A B Q : {A B₁ B₂ C : Set} {x : D A (B₁ → C)} {y : D A B₂} → P x → P y → B₁ ≡ B₂ → Nat Q (c c₁) ...
{ "alphanum_fraction": 0.4007782101, "avg_line_length": 29.0943396226, "ext": "agda", "hexsha": "2ca41112885ebc1f101aa02cf411cec7cbee6a6a", "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 List.Order.Simple.Properties {A : Set} (_≤_ : A → A → Set) (trans≤ : {x y z : A} → x ≤ y → y ≤ z → x ≤ z) where open import Data.List open import List.Order.Simple _≤_ open import List.Sorted _≤_ lemma-≤-*≤ : {x y : A}{xs : List A} → xs *≤ y → y ≤ x → xs *≤ x lemma-≤...
{ "alphanum_fraction": 0.4989775051, "avg_line_length": 47.3225806452, "ext": "agda", "hexsha": "f0bd43056802e7785156f1613a6a6a2dab65fcdb", "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, 2020-03-21, issue #4456 {-# OPTIONS --safe #-} postulate A : Set
{ "alphanum_fraction": 0.6075949367, "avg_line_length": 13.1666666667, "ext": "agda", "hexsha": "50b6d0335bf8f5a4728a84025943c1217162cabc", "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 --safe #-} open import Categories.Category module Categories.Category.Instance.Simplex where open import Level open import Data.Product open import Data.Fin open import Data.Nat using (ℕ) open import Function renaming (id to idF; _∘_ to _∙_) open import Relation.Binary open import Relation.B...
{ "alphanum_fraction": 0.5465587045, "avg_line_length": 28.2285714286, "ext": "agda", "hexsha": "228a7bd4c7426eeb1f8c2bb0d79dd633d99b761e", "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 admit : ∀ {i} {X : Set i} → X X Y Z : Set data Id (z : Z) : Z → Set where refl : Id z z record Square : Set₁ where field U : Set u : U open Square record RX : Set where field x : X open RX record R : Set where -- This definition isn't used; without it, -- the internal error disappea...
{ "alphanum_fraction": 0.5631929047, "avg_line_length": 15.5517241379, "ext": "agda", "hexsha": "ca49f0740d04ebcba20adc498a44d299d34eaf0d", "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...
open import Agda.Builtin.Nat record Pointed (A : Set) : Set where field point : A it : ∀ {A : Set} {{x : A}} → A it {{x}} = x instance _ = record { point = 3 - 4 } _ : Pointed Nat _ = {!!}
{ "alphanum_fraction": 0.5515463918, "avg_line_length": 14.9230769231, "ext": "agda", "hexsha": "b9757d2fbd34fe93fe5f9388a738d188bb37edc3", "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 --safe #-} -- This is more a pair of constructions that a property... -- but show that one can build a Cone for the Twisted Arrow functor from a Wedge -- and vice-versa. open import Categories.Category open import Categories.Functor.Bifunctor module Categories.Diagram.Wedge.Properties {o ℓ e ...
{ "alphanum_fraction": 0.5684470008, "avg_line_length": 37.7950310559, "ext": "agda", "hexsha": "f9457e46c46e076926bce14820bee264abf73136", "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...
{-# OPTIONS --safe --cubical #-} module Erased-cubical.Cubical where open import Agda.Builtin.Cubical.Path data ∥_∥ (A : Set) : Set where ∣_∣ : A → ∥ A ∥ trivial : (x y : ∥ A ∥) → x ≡ y data D′ : Set where @0 c′ : D′
{ "alphanum_fraction": 0.5584415584, "avg_line_length": 17.7692307692, "ext": "agda", "hexsha": "a54b71013857a956f089320004a368b797ee5d91", "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...
-- Andreas, 2015-12-01, test case to trigger error ModuleArityMismatch EmptyTel module _ where module M where module M′ = M Set
{ "alphanum_fraction": 0.7388059701, "avg_line_length": 19.1428571429, "ext": "agda", "hexsha": "5e36b9caea6185a9a6f3b0a5afcbf3b9ebefc2a0", "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 Agda standard library -- -- Properties of vector's Any ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Vec.Relation.Unary.Any.Properties where open import Function o...
{ "alphanum_fraction": 0.4341934724, "avg_line_length": 39.1105990783, "ext": "agda", "hexsha": "b5608435d95ba3928e46794623e37b9e601e357f", "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 #-} open import Cubical.Core.Everything open import Cubical.Foundations.HLevels module Cubical.Algebra.Magma.Construct.Right {ℓ} (Aˢ : hSet ℓ) where open import Cubical.Foundations.Prelude open import Cubical.Algebra.Magma private A = ⟨ Aˢ ⟩ isSetA = Aˢ .snd _▸_ :...
{ "alphanum_fraction": 0.5628205128, "avg_line_length": 21.0810810811, "ext": "agda", "hexsha": "f0758d96474a9fb717659caca9265084795aa261", "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 Foundation.Equivalence where open import Foundation.Primitive record IsEquivalence {a} {A : Set a} {ℓ} (_≈_ : A → A → Set ℓ) : ℞ a ⊔ ℓ where field reflexivity : ∀ x → x ≈ x symmetry : ∀ x y → x ≈ y → y ≈ x transitivity : ∀ x y z → x ≈ y → y ≈ z → x ≈ z open IsEquivalence ⦃ … ⦄ public record Eq...
{ "alphanum_fraction": 0.5572289157, "avg_line_length": 24.5925925926, "ext": "agda", "hexsha": "482ab72bd90bd605ed53bf5fb6222704ac8ca636", "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.Categories.Morphism where open import Cubical.Foundations.Prelude open import Cubical.Data.Sigma open import Cubical.Categories.Category private variable ℓ ℓ' : Level module _ {C : Precategory ℓ ℓ'} where open Precategory C private vari...
{ "alphanum_fraction": 0.4605678233, "avg_line_length": 27.8070175439, "ext": "agda", "hexsha": "0b0b3cd4157eb2397de86eb04ab0596df4bcf880", "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.Real where import Lvl open import Data.Boolean open import Data.Boolean.Proofs import Data.Either as Either open import Functional open import Logic open import Logic.Classical open import Logic.Propositional open import Logic.Predicate open import Numeral.Natural using (ℕ) import Numer...
{ "alphanum_fraction": 0.7032025259, "avg_line_length": 46.1875, "ext": "agda", "hexsha": "ba295b28bf4d05889377d8672d654cff7b0e9993", "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":...
Id₁ Id₂ Id₃ : {A B : Set} → (A → B) → A → B Id₁ F = F Id₂ = Id₁ Id₃ = Id₁ syntax Id₁ (λ X → B) = ƛ X ⟶ B syntax Id₂ (λ X → B) = X ↦ B syntax Id₃ (λ X → B) = X ↦ B • postulate A : Set a : A module One where example₀ : (A → A) → A example₀ = ƛ _ ⟶ a example₁ : A → A example₁ = ƛ !_! ⟶ (!_!) example₂ :...
{ "alphanum_fraction": 0.4221818182, "avg_line_length": 20.2205882353, "ext": "agda", "hexsha": "955aa3edd90be75b422334197fc5bf25ef35f78c", "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 --universe-polymorphism #-} -- Support stuff mostly stolen or adapted from the Agda standard library module Support where data Level : Set where zero : Level suc : (i : Level) → Level {-# BUILTIN LEVEL Level #-} {-# BUILTIN LEVELZERO zero #-} {-# BUILTIN LEVELSUC suc #-} -- Maximum. infix...
{ "alphanum_fraction": 0.4478002546, "avg_line_length": 33.0327102804, "ext": "agda", "hexsha": "b04cbf42645f22d83d28dd645720d8697794e4db", "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...
{-# OPTIONS --without-K --safe #-} open import Algebra module Data.FingerTree.Cons {r m} (ℳ : Monoid r m) where open import Data.Product open import Data.FingerTree.Measures ℳ open import Data.FingerTree.Structures ℳ open import Data.FingerTree.Reasoning ℳ open σ ⦃ ... ⦄ open Monoid ℳ renaming (Carrier to �...
{ "alphanum_fraction": 0.4279661017, "avg_line_length": 39.3333333333, "ext": "agda", "hexsha": "b136681a5b999760985f16c38a27c5c03555b3d8", "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...
-- Check that we can solve level inequalities involving three variables. module _ where open import Agda.Primitive open import Agda.Builtin.Equality data Constraint : Set where mkConstraint : (a b : Level) → a ≡ b → Constraint infix 0 _:=_ pattern _:=_ x y = mkConstraint x y refl postulate l : Level mutual-blo...
{ "alphanum_fraction": 0.6344969199, "avg_line_length": 16.2333333333, "ext": "agda", "hexsha": "00849f6bb6fcfb3c32b53c89fe8e4b4413fc39bd", "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 --safe #-} module Categories.Category.Instance.Posets where -- The category of partially ordered sets and order-preserving maps. open import Level open import Relation.Binary using (Poset; IsEquivalence; _Preserves_⟶_) open import Relation.Binary.Morphism using (IsOrderHomomorphism) open impor...
{ "alphanum_fraction": 0.6283783784, "avg_line_length": 30.6206896552, "ext": "agda", "hexsha": "3bf4e753f45908252a465c932caf58d22388b59a", "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...
{-# OPTIONS --without-K #-} open import Type open import Data.Zero open import Data.Fin using (Fin; zero; suc; #_) open import Relation.Binary.PropositionalEquality.NP using (_≡_; refl) open import HoTT open Equivalences open import Explore.Core open import Explore.Properties open import Explore.Explorable open import...
{ "alphanum_fraction": 0.5377672209, "avg_line_length": 26.9871794872, "ext": "agda", "hexsha": "8015a0d4f3678884951b2771539cfe376fa71235", "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...
------------------------------------------------------------------------------ -- First-order Peano arithmetic ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} ...
{ "alphanum_fraction": 0.3877284595, "avg_line_length": 31.9166666667, "ext": "agda", "hexsha": "d713d623205320d53aaf15fd13704b505d0f851c", "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...
module Issue3879 where open import Issue3879.Fin using (Fin ; zero ; suc) open import Agda.Builtin.Nat using (Nat ; zero ; suc) foo : Nat → Nat → Nat foo zero m = {!!} foo (suc n) m = {!!} -- WAS: case-splitting on m produces Issue3879.Fin.0F patterns -- WANT: unqualified 0F is not in scope: do not resugar!
{ "alphanum_fraction": 0.6793650794, "avg_line_length": 26.25, "ext": "agda", "hexsha": "f2d296cec1042f2615a57d0f53af07b3f248bc21", "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:...
---------------------------------------------------------------------------- -- Well-founded induction on the natural numbers ---------------------------------------------------------------------------- {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-poly...
{ "alphanum_fraction": 0.4291698401, "avg_line_length": 35.0133333333, "ext": "agda", "hexsha": "bb2c11cfcae64916ef37002848a7f56146abc398", "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...
module L.Base.Coproduct.Core where open import Agda.Primitive -- Introducing Coproduct types data _+_ {a b} (A : Set a) (B : Set b) : Set (a ⊔ b) where inl : A → A + B inr : B → A + B case : ∀{a b c} {A : Set a} {B : Set b} → (C : A + B → Set c) → ((x : A) → C (inl x)) → ((y : B) → C (inr y)) ...
{ "alphanum_fraction": 0.4732824427, "avg_line_length": 23.1176470588, "ext": "agda", "hexsha": "c847c78ea9fb042d975cfc04666e50bfe16e1474", "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-compatible --rewriting #-} module Generalize where open import Agda.Primitive -- Generalization in definitions module Definitions where variable ℓ : Level A B C : Set ℓ A₀ B₀ : Set a b c : A -- Function signature id : A → A id x = x -- Module signature module M...
{ "alphanum_fraction": 0.4084915612, "avg_line_length": 26.3333333333, "ext": "agda", "hexsha": "3230b9d8230f3af9b94bf11a41102a2abf88dfcd", "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 Relation.Binary.PropositionalEquality using ( _≡_ ; refl ; sym ; trans ; subst ; subst₂ ; cong ; cong₂ ) import AssocFree.STLambdaC.Typ import AssocFree.STLambdaC.Exp import AssocFree.STLambdaC.NF module AssocFree.STLambdaC.Redn (TConst : Set) (Const : AssocFree.STLambdaC.Typ.Typ TConst → Set) whe...
{ "alphanum_fraction": 0.5100133511, "avg_line_length": 35.2470588235, "ext": "agda", "hexsha": "bfd5ae18d22b8f2588a13ee0dc1944bae2545b6f", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:38:44.000Z", "max_forks_repo_forks_event_min_datetime": "2018-03-03T...
module ModuleDefinedInOtherFile where import Imports.B
{ "alphanum_fraction": 0.8448275862, "avg_line_length": 9.6666666667, "ext": "agda", "hexsha": "f84546622d7f7e68d6d2d219c6e8adf05e1af31d", "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-03...
module Issue530 where data Unit : Set where unit : Unit postulate A : Set a : A k : A → Unit data P (a : A) : Unit → Set where p : P a (k a) F : (u : Unit) → P a u → Set₁ F unit _ = Set f : F (k a) p f with k a f | _ = ?
{ "alphanum_fraction": 0.5254237288, "avg_line_length": 11.8, "ext": "agda", "hexsha": "ffd162d917b9c5e44ffe6a783002760d0de2114c", "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...
-- WARNING: This file was generated automatically by Vehicle -- and should not be modified manually! -- Metadata -- - Agda version: 2.6.2 -- - AISEC version: 0.1.0.1 -- - Time generated: ??? {-# OPTIONS --allow-exec #-} open import Vehicle open import Vehicle.Data.Tensor open import Data.Product open import Data.I...
{ "alphanum_fraction": 0.6531082118, "avg_line_length": 31.7804878049, "ext": "agda", "hexsha": "6b7225766336ddab29b55ea33b9eebb24b4b91a1", "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-compatible #-} module Issue765 where infixr 1 _⊎_ infixr 4 _,_ infix 4 _≡_ data ⊥ : Set where ⊥-elim : {A : Set} → ⊥ → A ⊥-elim () data _≡_ {A : Set} (x : A) : A → Set where refl : x ≡ x data _⊎_ (A : Set) (B : Set) : Set where inj₁ : (x : A) → A ⊎ B inj₂ : (y : B) → A ⊎ B [_,_]₁ : ∀ ...
{ "alphanum_fraction": 0.5025125628, "avg_line_length": 18.65625, "ext": "agda", "hexsha": "8fe07abc587ec417d6039c7d111e41a2482492f8", "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"...
------------------------------------------------------------------------------ -- The unary numbers are FOTC total natural numbers ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-univer...
{ "alphanum_fraction": 0.403202329, "avg_line_length": 26.4230769231, "ext": "agda", "hexsha": "c0cb2f21b055ab371d56b2ca172d815b42c3c8da", "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-19T1...
open import Agda.Builtin.Bool open import Agda.Builtin.Nat open import Agda.Builtin.Equality _^_ : Nat → Nat → Nat x ^ zero = 1 x ^ suc y = x * (x ^ y) data Enum : Set where makeEnum : (size : Nat) → (variants : Nat) → .{{ _ : (variants < size) ≡ true }} → Enum five : Enum five = makeEnum (2 ^ 32) 5 ...
{ "alphanum_fraction": 0.5883668904, "avg_line_length": 20.3181818182, "ext": "agda", "hexsha": "8a371b665d4c820afcc7ffc9a9424f0587bc1fdd", "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 --safe #-} module Cubical.Categories.Functor where open import Cubical.Foundations.Prelude open import Cubical.Data.Sigma open import Cubical.Categories.Category private variable ℓC ℓC' ℓD ℓD' : Level record Functor (C : Precategory ℓC ℓC') (D : Precategory ℓD ℓD') : Ty...
{ "alphanum_fraction": 0.4584511023, "avg_line_length": 25.6376811594, "ext": "agda", "hexsha": "a1c53762ffdc7799e1e087ac60dd2cd867de48ff", "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 Agda.Builtin.Nat bar : Nat → Nat bar n = let _!_ : Nat → Nat → Nat x ! y = 2 * x ! y -- should give scope error in RHS in n ! n
{ "alphanum_fraction": 0.5214723926, "avg_line_length": 20.375, "ext": "agda", "hexsha": "8ca45a8d35bf9fac28ea231e5b6eb1a2db0bb073", "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...
{-# OPTIONS --safe #-} {- Ad-hoc polymorphism -} module AdHoc where open import Data.Char as C open import Data.String as S open import Data.List as L open import Data.Integer as I open import Data.Nat as N open import Data.Bool as B open import Agda.Builtin.Nat renaming (_==_ to natEquals) record Eq {l} (A : Set l...
{ "alphanum_fraction": 0.5261083744, "avg_line_length": 22.0652173913, "ext": "agda", "hexsha": "c130f0a6a1c31bd89f86aaa021338aabbba051ad", "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.6082822086, "avg_line_length": 34.3157894737, "ext": "agda", "hexsha": "1a8b245772bf61994694fff6bae9d6d9863d95fa", "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 data ⊤ : Set where tt : ⊤ pattern id x = x postulate X : Set loops : X loops = tt
{ "alphanum_fraction": 0.6057692308, "avg_line_length": 8, "ext": "agda", "hexsha": "b7f814c4fd494f3e86eea1567a1c679265e4ef0a", "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.0...
------------------------------------------------------------------------ -- The Agda standard library -- -- Existential lifting of predicates over Vectors ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Vec.Functional.Relation.Unary.Any where op...
{ "alphanum_fraction": 0.4633649932, "avg_line_length": 26.8, "ext": "agda", "hexsha": "e50cb24eeef2146f6431c2ffe7d34d62768e1331", "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-04T06:54:45....
module cfg where open import jarsec using (Parser ; run-parser ; partial-parse ; _>>=_ ; _>>_ ; _<*>_) open import Data.Bool open import Data.List hiding (lookup) open import Data.Vec renaming ([_] to V[_] ; _++_ to _vv_) hiding (_>>=_) open import Data.Fin hiding (_+_) open import Data.Char open import Agda.Builtin....
{ "alphanum_fraction": 0.5471053194, "avg_line_length": 26.0055555556, "ext": "agda", "hexsha": "1388f0d4fa56af0a65572d9b07d05ca7d5192e1e", "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...
-- 2010-09-06 Andreas module IrrelevantVar where -- type checker should fail and complain that x is irrelevant and cannot be used f : {A : Set} -> .A -> A -> A f x y = x
{ "alphanum_fraction": 0.6647398844, "avg_line_length": 19.2222222222, "ext": "agda", "hexsha": "53c5293ad893060bfcd78d15d7321bc313725bda", "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 --type-in-type #-} open import Data.Unit open import Data.Product hiding ( curry ; uncurry ) open import Data.List hiding ( concat ) open import Data.String open import Relation.Binary.PropositionalEquality module Spire.Examples.PropositionalLevDesc where ---------------------------------------------------...
{ "alphanum_fraction": 0.4754676329, "avg_line_length": 31.613003096, "ext": "agda", "hexsha": "1e12795a1de1b23355a346ad926a900d1c06a654", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-08-17T21:00:07.000Z", "max_forks_repo_forks_event_min_datetime": "2015-08-17T2...