Search is not available for this dataset
text
string
meta
dict
{-# OPTIONS --erased-cubical #-} module Midi where open import Agda.Builtin.String using (String) open import Data.Fin using (toℕ) open import Data.Nat using (ℕ) open import Data.List using (List; []; _∷_; concatMap) open import Data.Product using (_,_) open import Data.Unit using (⊤) open import MidiEvent using (Ti...
{ "alphanum_fraction": 0.6290781695, "avg_line_length": 32.390070922, "ext": "agda", "hexsha": "f8adea413a19651a82c7e4507b8e6868a0bf2ec7", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2020-11-10T04:04:40.000Z", "max_forks_repo_forks_event_min_datetime": "2019-01-12T1...
module ParseTree where open import Data.String open import Data.Nat open import Data.Bool open import Data.List {-# FOREIGN GHC import ParseTree #-} data ParseTree : Set data TypeSignature : Set data Expr : Set data Range : Set data Identifier : Set data RangePosition : Set data Pragma : Set data Comment : Set data ...
{ "alphanum_fraction": 0.6765087605, "avg_line_length": 30.5148514851, "ext": "agda", "hexsha": "25c3d2dc6601456a8d26399688ab39b5b70f31e1", "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 Web.Semantic.DL.Category.Properties.Tensor where open import Web.Semantic.DL.Category.Properties.Tensor.RespectsEquiv public using ( tensor-resp-≣ ) open import Web.Semantic.DL.Category.Properties.Tensor.Functor public using ( tensor-resp-id ; tensor-resp-compose ) open import Web.Semantic.DL.Category.Pro...
{ "alphanum_fraction": 0.7797552836, "avg_line_length": 37.4583333333, "ext": "agda", "hexsha": "72fc4eb050ae3919d221173381034f978afd71af", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:40:03.000Z", "max_forks_repo_forks_event_min_datetime": "2017-12-03T...
module sn-calculus-confluence.recrec where open import Data.Nat using (_+_) open import Function using (_∋_ ; _∘_ ; id ; _$_) open import Data.Nat.Properties.Simple using ( +-comm ; +-assoc ) open import utility open import Esterel.Lang open import Esterel.Lang.Properties open import Esterel.Environment as Env open im...
{ "alphanum_fraction": 0.5132755665, "avg_line_length": 75.5020408163, "ext": "agda", "hexsha": "93ff6aa20ba02ab48594a7b15d367a0b7cb5e81b", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-04-15T20:02:49.000Z", "max_forks_repo_forks_event_min_datetime": "2020-04-15T...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Algebra.Band.Properties where open import Cubical.Core.Everything open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.Data.Nat open import Cubical.Data.NatPlusOne open import Cubical.Algebra open import C...
{ "alphanum_fraction": 0.6232247285, "avg_line_length": 32.3513513514, "ext": "agda", "hexsha": "bb212ae74f9470b89dc395ffb5804a8e0ae939f3", "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 Unit : Set where unit : Unit module M (_ : Unit) where record R₁ (A : Set) : Set₁ where no-eta-equality postulate x : A open R₁ ⦃ … ⦄ public record R₂ (A : Set) : Set₁ where field instance r₁ : R₁ A open R₂ ⦃ … ⦄ open M unit postulate A : Set in...
{ "alphanum_fraction": 0.5534246575, "avg_line_length": 10.4285714286, "ext": "agda", "hexsha": "b0aa14e1480ff0fa1daf821ba8fedd2bfa6ad89a", "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...
-- 2014-04-06 Andreas, issue reported by Andres Sicard-Ramirez -- {-# OPTIONS --termination-depth=100 -v term.matrices:40 #-} data ℕ : Set where zero : ℕ succ : ℕ → ℕ -- The following function is accepted by the termination checker in -- Agda-2.3.2.2, but it is rejected by the termination checker in -- the curre...
{ "alphanum_fraction": 0.6458333333, "avg_line_length": 29.3333333333, "ext": "agda", "hexsha": "f00f46c52af07bfd5c97550fd737e6699a8849c6", "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.Monoid where open import Oscar.Data.Equality open import Oscar.Level record Monoid {a} {A : Set a} {b} (_↠_ : A → A → Set b) : Set (a ⊔ b) where field ε : ∀ {m} → m ↠ m _◇_ : ∀ {l m n} → m ↠ n → l ↠ m → l ↠ n ◇-left-identity : ∀ {m n} → (f : m ↠ n) → ε ◇ f ≡ f ◇-right-identity : ...
{ "alphanum_fraction": 0.460251046, "avg_line_length": 29.875, "ext": "agda", "hexsha": "9782f3189d7100078eb657393086003f18d68dda", "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 --sized-types #-} Option obsolete since 2014-04-12. module SizedTypesLeqInfty where open import Common.Size data Nat : {size : Size} -> Set where zero : {size : Size} -> Nat {↑ size} suc : {size : Size} -> Nat {size} -> Nat {↑ size} weak : {i : Size} -> Nat {i} -> Nat {∞} weak x = x
{ "alphanum_fraction": 0.5928338762, "avg_line_length": 25.5833333333, "ext": "agda", "hexsha": "9c927c559e7bc82c8d799ed6ed22279f84e4c8fa", "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 --rewriting #-} open import lib.Basics open import lib.types.Group open import lib.types.Pi open import lib.NType2 open import lib.types.Paths open import lib.types.EilenbergMacLane1.Core module lib.types.EilenbergMacLane1.FunElim where module _ {i} {G : Group i} where private module G...
{ "alphanum_fraction": 0.4661295136, "avg_line_length": 47.1971830986, "ext": "agda", "hexsha": "b8ba665e2c05e80f79538a6378c8e162cee23531", "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...
{- SAMPLE PROGRAMS IN SOURCE LANGUAGE -} {-# OPTIONS --no-termination-check #-} open import Preliminaries open import Source module Samples where {- dbl (n : nat) : nat = 2 * n -} dbl : ∀ {Γ} → Γ |- (nat ->s nat) dbl = lam (rec (var i0) z (suc (suc (force (var (iS i0)))))) {- add (m n : nat) : nat = m + n...
{ "alphanum_fraction": 0.4533956558, "avg_line_length": 42.7882352941, "ext": "agda", "hexsha": "aa5c2a0e53734ab7a099052b110e34e6903dfeac", "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 module Cubical.Relation.Binary.Raw.Bundles {c : Level} (Carrier : Type c) where open import Cubical.Foundations.Prelude using (isSet) open import Cubical.Relation.Nullary using (¬_) open import Cubical.Relation.Binary.Base open i...
{ "alphanum_fraction": 0.6314659379, "avg_line_length": 26.2717948718, "ext": "agda", "hexsha": "de75b19b2a0c74e3a85e04057fdd97d32866b331", "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.7082481254, "avg_line_length": 131.4764150943, "ext": "agda", "hexsha": "454bf86b186042be55cf35b0db05afad71fdf6b2", "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-29...
{-# OPTIONS --without-K --safe --erased-cubical --no-import-sorts #-} module Motif where open import Prelude open import SUtil using (lookup) open import Yamanote using (counterp) import Definition.Conversion import Definition.Conversion.Whnf import Definition.Typed import Definition.Untyped import Definition.Type...
{ "alphanum_fraction": 0.6500224249, "avg_line_length": 34.1275510204, "ext": "agda", "hexsha": "b76ed88b8e253ecfd2f3f52f4f2f0e476d7157ae", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-11-10T04:05:31.000Z", "max_forks_repo_forks_event_min_datetime": "2020-11-10T...
module FileIOEffect where open import Effect import IO.Primitive as IO open import Data.String using (String) open import Data.Bool using (Bool ; if_then_else_ ; false ; true) open import Data.Unit using (⊤ ; tt) open import Category.Monad using (RawMonad) open import Level using (zero) open import Data.List using (Li...
{ "alphanum_fraction": 0.68173258, "avg_line_length": 33.8936170213, "ext": "agda", "hexsha": "ef2f80651c3cf6d000906d3cd0e26d66899b1039", "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...
{- This file contains cospans, cones, pullbacks and maps of cones in precategories. -} {-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Categories.Pullback where open import Cubical.Foundations.Prelude open import Cubical.Data.Sigma open import Cubical.Categories.Category open Precategory private...
{ "alphanum_fraction": 0.5909393738, "avg_line_length": 33.3555555556, "ext": "agda", "hexsha": "53a93225c6d242e6fe2fe0178bbc35d4829e53f3", "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.Theorems where open import Algebra open import Reasoning +pre-idempotence : ∀ {A} {x : Graph A} -> x + x + ε ≡ x +pre-idempotence {_} {x} = begin (x + x) + ε ≡⟨ L (L (symmetry *right-identity)) ⟩ (x * ε + x) + ε ≡⟨ L (R (symmetry *right-identity)) ⟩ (x * ε + x * ε) + ε...
{ "alphanum_fraction": 0.4172839506, "avg_line_length": 38.2677165354, "ext": "agda", "hexsha": "1dbdaea0b8d485ac67631dde40b76b12e98c95a2", "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 #-} module Multidimensional.Data.Dir.Base where open import Cubical.Core.Primitives -- "Direction" type for determining direction in spatial structures. -- We interpret ↓ as 0 and ↑ as 1 when used in numerals in -- numerical types. data Dir : Type₀ where ↓ : Dir ↑ : Dir caseDir : ∀ {ℓ} → {A...
{ "alphanum_fraction": 0.6649874055, "avg_line_length": 24.8125, "ext": "agda", "hexsha": "48ec0b1ae766bf52c2e96f964570f9039c33f10a", "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":...
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9. Copyright (c) 2021, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl -} open import LibraBFT.Prelude open import LibraBFT.Abstract.Types.EpochConfig o...
{ "alphanum_fraction": 0.6975259377, "avg_line_length": 46.4074074074, "ext": "agda", "hexsha": "873c56fdbb933b8f010c4baca9707d9301e33f6c", "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 Nats.Multiply.Distrib where open import Nats open import Equality open import Function open import Nats.Multiply.Comm open import Nats.Add.Assoc open import Nats.Add.Comm ------------------------------------------------------------------------ -- internal stuffs private a*1+b=a+a*b : ∀ a b → a * suc b ≡ a...
{ "alphanum_fraction": 0.4306803594, "avg_line_length": 29.3962264151, "ext": "agda", "hexsha": "661fcfc4079c23d03ae1450fb800ae640403eaab", "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 Categories.CoProducts where open import Data.Sum hiding ([_,_]) open import Library hiding (_+_ ; _,_) open import Categories record CoProd {l m}(C : Cat {l}{m}) : Set (m ⊔ l) where open Cat C field _+_ : Obj -> Obj -> Obj inl : ∀{A B} -> Hom A (A + B) inr : ∀{A B} -> Hom B (A + B) ...
{ "alphanum_fraction": 0.4242002782, "avg_line_length": 35.95, "ext": "agda", "hexsha": "25f5088291ae83ac27c9a93cbf0f468c8b3e31da", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-11-04T21:33:13.000Z", "max_forks_repo_forks_event_min_datetime": "2019-11-04T21:33:13...
module Prelude.Number where open import Agda.Builtin.FromNat public open import Agda.Builtin.FromNeg public NoNumConstraint : ∀ {a} {A : Set a} → Number A → Set a NoNumConstraint Num = ∀ {n} → Number.Constraint Num n NoNegConstraint : ∀ {a} {A : Set a} → Negative A → Set a NoNegConstraint Neg = ∀ {n} → Negative.Con...
{ "alphanum_fraction": 0.7125748503, "avg_line_length": 27.8333333333, "ext": "agda", "hexsha": "95acc477853eff7c90d75667a6acd7593ef4e606", "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 --cubical --no-import-sorts --safe #-} module Cubical.Structures.Group.Morphism where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Structures.Group.Base private variable ℓ ℓ' : Level -- The following definition of GroupHom and GroupEquiv are lev...
{ "alphanum_fraction": 0.6417910448, "avg_line_length": 28.2105263158, "ext": "agda", "hexsha": "4185131bd28719fa68bd6a2f175542705b7aa9b6", "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...
module Prelude.Equality where open import Prelude.Decidable open import Agda.Builtin.Equality public record Eq {a} (A : Set a) : Set a where infix 4 _==_ field _==_ : (x y : A) → Dec (x ≡ y) open Eq {{...}} public sym : ∀ {a} {A : Set a} {x y : A} → x ≡ y → y ≡ x sym refl = refl infixr 0 _⟨≡⟩_ _⟨≡⟩ʳ_ _ʳ⟨...
{ "alphanum_fraction": 0.4894755619, "avg_line_length": 29.5052631579, "ext": "agda", "hexsha": "c0d8ebeb1bcd567d9cb02eb3d43585a899a9ee87", "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 HasUniqueValues (A : Set) : List A → Set where [] : HasUniqueValues A [] _∷_ : {x : A} → {xs : List A} → x ∉ xs → (uxs : HasUniqueValues A xs) → HasUniqueValues A (x ∷ xs) record AList (A : Set) (B : Set) : Set where field domain : List A uniquedomain : HasUniqueValues A domain range : ∀ {x :...
{ "alphanum_fraction": 0.6308448611, "avg_line_length": 40.6837209302, "ext": "agda", "hexsha": "55b692ed9eb4b39aa2f2f39e2288c3d6567dd2e9", "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 --experimental-irrelevance #-} record NonStrict (A : Set) : Set where constructor [_] field ..! : A open NonStrict map-ns : {A B : Set} (f : A → B) → NonStrict A → NonStrict B map-ns f [ x ] = [ f x ] open import Agda.Builtin.Nat data Vec (A : Set) : NonStrict Nat → Set where [] : Vec A [ 0 ...
{ "alphanum_fraction": 0.5092402464, "avg_line_length": 22.1363636364, "ext": "agda", "hexsha": "07fceb23fe0ff2360f6493c8066faa5cb5f777cf", "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...
data Nat : Set where zero : Nat suc : (n : Nat) → Nat test₁ : (n : Nat) → Nat test₁ n with zero ... | x = {!x!} data Tree : Set where leaf : Tree node : Tree → Tree → Tree test₂ : (n : Tree) → Tree test₂ n₁ with leaf ... | n = {!n!}
{ "alphanum_fraction": 0.5368852459, "avg_line_length": 15.25, "ext": "agda", "hexsha": "11c6a9a972de708a31f31dc921cd96e613b7921c", "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:...
{- This second-order signature was created from the following second-order syntax description: syntax Sub | S type L : 0-ary T : 0-ary term vr : L -> T sb : L.T T -> T theory (C) x y : T |> sb (a. x[], y[]) = x[] (L) x : T |> sb (a. vr(a), x[]) = x[] (R) a : L x : L.T |> sb (b. x[b], vr(a[])) = ...
{ "alphanum_fraction": 0.5381008206, "avg_line_length": 18.1489361702, "ext": "agda", "hexsha": "1d23485fd36364e58e2fb2eb654c6a432d307f5e", "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-09T...
-- Andreas, 2017-05-24, issue #2590 -- Making variables visible by case splitting in with-clauses -- {-# OPTIONS -v interaction.case:20 #-} -- {-# OPTIONS -v reify:100 #-} -- {-# OPTIONS -v tc.display:100 #-} open import Agda.Builtin.Nat test1 : {x : Nat} → Nat test1 with Set ... | q = {!.x!} -- C-c C-c -- Expecte...
{ "alphanum_fraction": 0.5608465608, "avg_line_length": 19.5517241379, "ext": "agda", "hexsha": "03c7f8a9f0344fab0197340c90009500dcde2fe9", "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...
------------------------------------------------------------------------ -- Fixpoint combinators ------------------------------------------------------------------------ {-# OPTIONS --erased-cubical --safe #-} open import Partiality-algebra as PA hiding (id; _∘_) module Partiality-algebra.Fixpoints where open impor...
{ "alphanum_fraction": 0.5018918589, "avg_line_length": 33.1700404858, "ext": "agda", "hexsha": "30ca50f677383b2cd41976dcd64b0a989cc232dd", "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 sets.nat.algebra where open import equality.core open import algebra.monoid.core open import sets.nat.core open import sets.nat.properties +-monoid : Monoid _ +-monoid = record { carrier = ℕ ; is-mon = record { id = λ _ → 0 ; _∘_ = _+_ ; left-unit = +-left-unit ...
{ "alphanum_fraction": 0.5927672956, "avg_line_length": 21.9310344828, "ext": "agda", "hexsha": "8ce81a733f0a3737be58a786837c40eb67247b6a", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2019-05-04T19:31:00.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-02T...
module List.Permutation.Base.Bag (A : Set) where open import Data.List open import Data.List.Any as Any open import Data.List.Any.BagAndSetEquality open import Data.List.Any.Properties open import Data.Sum renaming (_⊎_ to _∨_) open import Function open import Function.Inverse hiding (sym ; _∘_ ; id) open import Funct...
{ "alphanum_fraction": 0.5179098188, "avg_line_length": 30.8181818182, "ext": "agda", "hexsha": "0ef0fe6c942d9307706017cf7f178fb23a5e9581", "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 DataRecordInductive where module NotMutual where record Nil (A : Set) : Set where constructor [] record Cons (A X : Set) : Set where constructor _∷_ field head : A tail : X open Cons data List (A : Set) : Set where nil : Nil A → List A cons : Cons A (List A) → List A ...
{ "alphanum_fraction": 0.5401755571, "avg_line_length": 22.4393939394, "ext": "agda", "hexsha": "350c260bace00e0f4d23b468abe033840940f151", "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 Tactic.Monoid.Reflect where open import Prelude open import Tactic.Reflection open import Tactic.Reflection.Match open import Control.Monad.Zero open import Control.Monad.State open import Container.Traversable open import Tactic.Monoid.Exp open import Tactic.Reflection.Parse renaming (parseEqn to parseEq) ...
{ "alphanum_fraction": 0.6046803176, "avg_line_length": 31.0779220779, "ext": "agda", "hexsha": "8e91bfdd31b79fa8e50b142742617b39d8689eee", "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 --type-in-type #-} Ty : Set; Ty = (Ty : Set) (ι : Ty) (arr : Ty → Ty → Ty) → Ty ι : Ty; ι = λ _ ι _ → ι arr : Ty → Ty → Ty; arr = λ A B Ty ι arr → arr (A Ty ι arr) (B Ty ι arr) Con : Set;Con = (Con : Set) (nil : Con) (snoc : Con → Ty → Con) → Con nil : Con;nil = λ Con nil snoc → n...
{ "alphanum_fraction": 0.5837596604, "avg_line_length": 32.346218734, "ext": "agda", "hexsha": "7dc3e239b4d152ee86d39d3f1c1ad375b5be591c", "lang": "Agda", "max_forks_count": 19, "max_forks_repo_forks_event_max_datetime": "2022-03-03T19:46:54.000Z", "max_forks_repo_forks_event_min_datetime": "2018-12-05T...
-- Andreas, 2015-09-12, Issue 1637, reported by Nisse. -- {-# OPTIONS -v tc.display:100 -v reify.display:100 #-} record R (X : Set₁) : Set₁ where field f : X postulate A : Set₁ P : A → Set module M (_ : Set₁) where Unrelated-function : R Set → Set Unrelated-function Y = R.f Y -- eta expansion is nece...
{ "alphanum_fraction": 0.6601851852, "avg_line_length": 26.3414634146, "ext": "agda", "hexsha": "a29eff840b05dece3640ca390fe033f8b3cbbb8c", "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 Structure.Category.Categories where open import Data open import Data.Proofs open import Functional open import Logic import Lvl import Relator.Equals as Eq open import Structure.Setoid open import Structure.Category open import Structure.Categorical.Proofs open import Structure.Categorical.Properties...
{ "alphanum_fraction": 0.7327517843, "avg_line_length": 46.7037037037, "ext": "agda", "hexsha": "bd7fccfa6b432c8b20f4eace1ad428694d324b39", "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.Relation.Binary.Raw.Definitions where open import Cubical.Core.Everything open import Cubical.Foundations.Function open import Cubical.Data.Maybe.Base using (Maybe) open import Cubical.Data.Prod.Base using (_×_) open import Cubical.Data.Sigma.Base usi...
{ "alphanum_fraction": 0.5986781433, "avg_line_length": 26.4471544715, "ext": "agda", "hexsha": "697d6fea0e26b56ee81a2bee077df38701370e7a", "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 logic where open import Level open import Relation.Nullary open import Relation.Binary hiding (_⇔_ ) open import Data.Empty data Bool : Set where true : Bool false : Bool record _∧_ {n m : Level} (A : Set n) ( B : Set m ) : Set (n ⊔ m) where constructor ⟪_,_⟫ field proj1 : A proj...
{ "alphanum_fraction": 0.5146393716, "avg_line_length": 27.6381578947, "ext": "agda", "hexsha": "872dbe08f824f3dc3a415870ef16bffe33d7026b", "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 Oscar.Class.Reflexivity where open import Oscar.Level record Reflexivity {a} {A : Set a} {ℓ} (_≋_ : A → A → Set ℓ) : Set (a ⊔ ℓ) where field reflexivity : ∀ {x} → x ≋ x open Reflexivity ⦃ … ⦄ public
{ "alphanum_fraction": 0.6203703704, "avg_line_length": 19.6363636364, "ext": "agda", "hexsha": "3ebbbcf92f8b3a14faf44f00f7775d98af9df1ad", "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.1Cor where open import Data.List open import Text.Greek.Bible open import Text.Greek.Script open import Text.Greek.Script.Unicode ΠΡΟΣ-ΚΟΡΙΝΘΙΟΥΣ-Α : List (Word) ΠΡΟΣ-ΚΟΡΙΝΘΙΟΥΣ-Α = word (Π ∷ α ∷ ῦ ∷ ∙λ ∷ ο ∷ ς ∷ []) "1Cor.1.1" ∷ word (κ ∷ ∙λ ∷ η ∷ τ ∷ ὸ ∷ ς ∷ []) "1Cor.1.1" ∷ word (ἀ...
{ "alphanum_fraction": 0.3513271341, "avg_line_length": 45.4719331672, "ext": "agda", "hexsha": "18794b9f90c2bd57cb3b6f18b380480a878f66bb", "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...
{- 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.6299634592, "avg_line_length": 40.6435643564, "ext": "agda", "hexsha": "dcce79f5b28d082ca607724f9b8a42bcf1c83003", "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 Selective.Examples.TestAO where open import Selective.ActorMonad open import Prelude open import Selective.Libraries.Call2 open import Selective.Libraries.ActiveObjects open import Debug open import Data.Nat.Show using (show) ℕ-ReplyMessage : MessageType ℕ-ReplyMessage = ValueType UniqueTag ∷ [ ValueType ℕ ]ˡ...
{ "alphanum_fraction": 0.6141559662, "avg_line_length": 29.0272727273, "ext": "agda", "hexsha": "b99ad486d668770942d6392f4ba955283e68bd7c", "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 Everything where open import Pi.Everything -- Formalization for Π open import RevMachine -- Formalization of reversible machine and partial reversible machine open import RevNoRepeat -- Non-repeating theorem for reversible machine open import PartialRevNoRepeat -- Non-repeating theorem fo...
{ "alphanum_fraction": 0.7526132404, "avg_line_length": 57.4, "ext": "agda", "hexsha": "b12289d01b098dba6c97c9c43d0f7f7d4926a072", "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 RecordUpdateSyntax where open import Common.Prelude open import Common.Equality data Param : Nat → Set where param : ∀ n → Param (suc n) record R : Set where field {i} : Nat p : Param i s : Nat old : R old = record { p = param 0; s = 1 } -- Simple update, it should be able to infer the type ...
{ "alphanum_fraction": 0.6224543081, "avg_line_length": 23.3536585366, "ext": "agda", "hexsha": "353e16250d8eaff4fca3f4706cb838ec4b0be58f", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-06-14T11:07:38.000Z", "max_forks_repo_forks_event_min_datetime": "2021-06-14T...
------------------------------------------------------------------------ -- The Agda standard library -- -- Empty type ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Empty where ------------------------------------------------------------------...
{ "alphanum_fraction": 0.389212828, "avg_line_length": 27.44, "ext": "agda", "hexsha": "decbac8c3efa8c1d9e3914a67d50796783fbaf69", "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 StateSized.GUI.SpaceShipSimpleVar where open import SizedIO.Base open import StateSizedIO.GUI.BaseStateDependent open import Data.Bool.Base open import Data.List.Base open import Data.Integer open import Data.Product hiding (map) open import SizedIO.Object open import SizedIO.IOObject open import NativeIO o...
{ "alphanum_fraction": 0.657180675, "avg_line_length": 28.5094339623, "ext": "agda", "hexsha": "e35ef6a5afa75f687e8d1ba0b95c037d9f4467c4", "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-01T1...
{-# OPTIONS --without-K --exact-split --allow-unsolved-metas #-} module 24-sequences where import 23-id-pushout open 23-id-pushout public {- We introduce two types of sequences: one with the arrows going up and one with the arrows going down. -} Sequence : ( l : Level) → UU (lsuc l) Sequence l = Σ (ℕ → UU l) (...
{ "alphanum_fraction": 0.5983292869, "avg_line_length": 36.7084592145, "ext": "agda", "hexsha": "3505a824fb14410dda6f0f1030c92a0db3811d53", "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 Container.Traversable where open import Prelude record Traversable {a} (T : Set a → Set a) : Set (lsuc a) where field traverse : ∀ {F : Set a → Set a} {A B} {{AppF : Applicative F}} → (A → F B) → T A → F (T B) overlap {{super}} : Functor T open Traversable {{...}} public record Traversable′ {a b} ...
{ "alphanum_fraction": 0.5518819939, "avg_line_length": 36.4074074074, "ext": "agda", "hexsha": "c69e15654e7c134427495f3adf7baae9b85be0d6", "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...
-- This file tests that implicit record fields are not printed out (by -- default). module ImplicitRecordFields where record R : Set₁ where field {A} : Set f : A → A {B C} D {E} : Set g : B → C → E postulate A : Set r₁ : R r₂ : R r₂ = record { A = A ; f = λ x →...
{ "alphanum_fraction": 0.4728850325, "avg_line_length": 14.40625, "ext": "agda", "hexsha": "5b8b8eed7a193e34ff8d15979863456e839bd885", "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-12T11:35...
{-# OPTIONS --cubical --safe #-} module Data.Maybe where open import Data.Maybe.Base public
{ "alphanum_fraction": 0.7127659574, "avg_line_length": 15.6666666667, "ext": "agda", "hexsha": "306d04dee8ddb27dfc1703317e6e2fc7ff41f9d3", "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-05T...
------------------------------------------------------------------------ -- The Agda standard library -- -- Equivalence (coinhabitance) ------------------------------------------------------------------------ module Function.Equivalence where open import Function using (flip) open import Function.Equality as F usin...
{ "alphanum_fraction": 0.5049875312, "avg_line_length": 29.7037037037, "ext": "agda", "hexsha": "f32f8f5bfd2bf319052ad1acb4a6eee59be2e5e9", "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 --rewriting #-} open import lib.Basics open import lib.types.Paths open import lib.types.Pointed open import lib.types.Pushout open import lib.types.Span module lib.types.PushoutFlip where module _ {i j k} {d : Span {i} {j} {k}} where module PushoutFlip = PushoutRec (right {d = Span-fl...
{ "alphanum_fraction": 0.5522146783, "avg_line_length": 31.5612244898, "ext": "agda", "hexsha": "defbcede23dca98e5a0ec441a23f06cd76bb58a9", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-12-26T21:31:57.000Z", "max_forks_repo_forks_event_min_datetime": "2018-12-26T...
module Numeral.Natural.Prime where import Lvl open import Data.Boolean.Stmt open import Logic open import Logic.Propositional open import Numeral.Natural open import Numeral.Natural.Relation.Divisibility open import Numeral.Natural.Oper open import Numeral.Natural.Oper.Comparisons open import Relator.Equals PrimeProo...
{ "alphanum_fraction": 0.6532528504, "avg_line_length": 36.3658536585, "ext": "agda", "hexsha": "01cc135aae06e255cf2d7ed71b1df4086847cac2", "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...
------------------------------------------------------------------------ -- Some simple binary relations ------------------------------------------------------------------------ module Relation.Binary.Simple where open import Relation.Binary open import Data.Unit open import Data.Empty -- Constant relations. Const ...
{ "alphanum_fraction": 0.5322834646, "avg_line_length": 21.1666666667, "ext": "agda", "hexsha": "ff5c8095f2fcf7c7e4e7212d685ceceb2bfd3980", "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...
------------------------------------------------------------------------ -- Propositional equality ------------------------------------------------------------------------ -- This file contains some core definitions which are reexported by -- Relation.Binary.PropositionalEquality. module Relation.Binary.Propositional...
{ "alphanum_fraction": 0.5212527964, "avg_line_length": 26.2941176471, "ext": "agda", "hexsha": "5eb95bb3649b43d14347820312a4da12512abfad", "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...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.HITs.S3 where open import Cubical.HITs.S3.Base public -- open import Cubical.HITs.S3.Properties public
{ "alphanum_fraction": 0.7426900585, "avg_line_length": 24.4285714286, "ext": "agda", "hexsha": "d743ef406662d1be4e42d2ec2b938c6794097d37", "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...
{-# OPTIONS --without-K #-} module container.m.from-nat.core where open import level open import sum open import equality open import function open import container.core open import sets.nat.core open import sets.nat.struct open import sets.unit open import hott.level -- Definition 9 in Ahrens, Capriotti and Spadotti...
{ "alphanum_fraction": 0.3722334004, "avg_line_length": 34.9132231405, "ext": "agda", "hexsha": "f787d0033ada3ba5dfabab23e3b7f49511625818", "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...
------------------------------------------------------------------------ -- The Agda standard library -- -- A categorical view of the identity function ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Function.Identity.Categorical {ℓ} where open impor...
{ "alphanum_fraction": 0.568627451, "avg_line_length": 19.4285714286, "ext": "agda", "hexsha": "13794c5d064fb6fd66abb25b592d684ebb2d96ae", "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-04T0...
------------------------------------------------------------------------ -- The Agda standard library -- -- Environments (heterogeneous collections) ------------------------------------------------------------------------ module Data.Star.Environment (Ty : Set) where open import Data.Star open import Data.Star.List o...
{ "alphanum_fraction": 0.5802238806, "avg_line_length": 24.3636363636, "ext": "agda", "hexsha": "826d8e74f0da0cf276c5e7077017eda3a8f4c860", "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...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Congruence of application. -- -- If f ≡ g and x ≡ y, then (f x) ≡ (g y). ------------------------------------------------------------------------ module Theorem.CongApp where open import Relation.Binary.Propositio...
{ "alphanum_fraction": 0.3866943867, "avg_line_length": 24.05, "ext": "agda", "hexsha": "0ac84a34b127befa5eba3c3039b84d88b69fe0bc", "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:44...
-- Andreas, 2017-09-09 -- Builtin constructors may be ambiguous / overloaded. data Semmel : Set where false : Semmel data Bool : Set where true : Bool false : Bool {-# BUILTIN BOOL Bool #-} {-# BUILTIN TRUE true #-} {-# BUILTIN FALSE false #-} -- This is accepted. data Brezel A : Set where _∷_ : (x : A...
{ "alphanum_fraction": 0.5801801802, "avg_line_length": 20.5555555556, "ext": "agda", "hexsha": "d63ab1f965160863c87f9aa8380816e129e085f6", "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 --exact-split #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS --without-K #-} module Test where data _∨_ (A B : Set) : Set where inj₁ : A → A ∨ B inj₂ : B → A ∨ B postulate A B : Set ∨-comm : A ∨ B → B ∨ A {-# ATP prove ∨-comm #-}
{ "alphanum_fraction": 0.4831081081, "avg_line_length": 19.7333333333, "ext": "agda", "hexsha": "dffac9f183a2c1ac7b5307e3d4f4c1613c475d72", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2016-08-03T03:54:55.000Z", "max_forks_repo_forks_event_min_datetime": "2016-05-10T...
{- This second-order term syntax was created from the following second-order syntax description: syntax Prod | P type _⊗_ : 2-ary | l40 term pair : α β -> α ⊗ β | ⟨_,_⟩ fst : α ⊗ β -> α snd : α ⊗ β -> β theory (fβ) a : α b : β |> fst (pair(a, b)) = a (sβ) a : α b : β |> snd (pair(a, b)) ...
{ "alphanum_fraction": 0.5191073066, "avg_line_length": 25.1615384615, "ext": "agda", "hexsha": "c4d56f6eac140cffb9948da865ce4fa507aa49ad", "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-09T...
module Issue363 where infixl 0 _>>=_ postulate A : Set x : A _>>=_ : A → (A → A) → A P : A → Set lemma : P ((x >>= λ x → x) >>= λ x → x) lemma = {!!} -- The type of the goal above was printed as follows: -- -- P (x >>= λ x' → x' >>= λ x' → x') -- -- This is not correct.
{ "alphanum_fraction": 0.4579124579, "avg_line_length": 15.6315789474, "ext": "agda", "hexsha": "70dfb278f45d495035c3ac759503253544a9de7c", "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, 2014-04-11, issue reported by James Chapman -- {-# OPTIONS -v tc.decl.ax:100 #-} -- {-# OPTIONS -v tc.polarity:100 #-} {-# OPTIONS --copatterns --sized-types #-} module _ where open import Common.Size module Works where mutual data Delay i (A : Set) : Set where now : A → Delay i A late...
{ "alphanum_fraction": 0.5965811966, "avg_line_length": 29.7457627119, "ext": "agda", "hexsha": "2e18f0558e6adf9228e365a51e0ca5c431227eb7", "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 --safe #-} module Issue2728-3 where foo = Set -- something to cache postulate B : Set
{ "alphanum_fraction": 0.6836734694, "avg_line_length": 19.6, "ext": "agda", "hexsha": "f2c9428982fa37a051b0f315d75b80f00517a580", "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 --cubical --safe #-} module Cubical.ZCohomology.Everything where open import Cubical.ZCohomology.Base open import Cubical.ZCohomology.Properties open import Cubical.ZCohomology.S1.S1
{ "alphanum_fraction": 0.807106599, "avg_line_length": 24.625, "ext": "agda", "hexsha": "160104dcea8bacaa85439a049aacc8e86b5cd86f", "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": "...
open import Level hiding ( suc ; zero ) open import Algebra module Gutil {n m : Level} (G : Group n m ) where open import Data.Unit open import Function.Inverse as Inverse using (_↔_; Inverse; _InverseOf_) open import Function open import Data.Nat hiding (_⊔_) -- using (ℕ; suc; zero) open import Relation.Nullary open ...
{ "alphanum_fraction": 0.4923915085, "avg_line_length": 40.6335877863, "ext": "agda", "hexsha": "857863b65f8e5f44c23059e6077bda74569eba42", "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...
{- Generate univalent reflexive graph characterizations for record types from characterizations of the field types using reflection. See end of file for an example. -} {-# OPTIONS --no-exact-split --safe #-} module Cubical.Displayed.Record where open import Cubical.Foundations.Prelude open import Cubical.Foundation...
{ "alphanum_fraction": 0.5793710422, "avg_line_length": 40.1594827586, "ext": "agda", "hexsha": "bfec660d99de74258a960ff176958eea0b8c7efd", "lang": "Agda", "max_forks_count": 134, "max_forks_repo_forks_event_max_datetime": "2022-03-23T16:22:13.000Z", "max_forks_repo_forks_event_min_datetime": "2018-11-1...
module Pi.Eval where open import Data.Empty open import Data.Unit open import Data.Sum open import Data.Product open import Data.List as L hiding (_∷_) open import Relation.Binary.PropositionalEquality open import Pi.Syntax open import Pi.Opsem open import Pi.NoRepeat -- Stuck states must be of the form [ c ∣ v ∣ ☐ ] ...
{ "alphanum_fraction": 0.4335085205, "avg_line_length": 51.0487804878, "ext": "agda", "hexsha": "95859aa4b6463c80363b7b94927e9d5fa7e91b4a", "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 --no-termination-check #-} module Pi where open import Data.Empty open import Data.Unit open import Data.Sum hiding (map) open import Data.Product hiding (map) open import Relation.Binary.PropositionalEquality hiding (sym; [_]) infixr 30 _⟷_ infixr 30 _⟺_ infixr 20 _◎_ ---------------------------------...
{ "alphanum_fraction": 0.520321246, "avg_line_length": 37.6972477064, "ext": "agda", "hexsha": "643f05a3bb85f0ca6989d2be0c6c24fa37ad843b", "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-29T0...
-- {-# OPTIONS -v scope:20 #-} module _ (X : Set) where postulate X₁ X₂ : Set data D : Set where d : D module Q (x : D) where module M1 (z : X₁) where g = x module M2 (y : D) (z : X₂) where h = y open M1 public -- module Qd = Q d -- This fails to apply g to d! module QM2d = Q.M2 d d ...
{ "alphanum_fraction": 0.5814627082, "avg_line_length": 14.5368421053, "ext": "agda", "hexsha": "20a60b2e57aea4ad74acca023799635586da693b", "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 --no-exact-split --safe #-} module Cubical.Data.Nat.Base where open import Cubical.Core.Primitives open import Agda.Builtin.Nat public using (zero; suc; _+_) renaming (Nat to ℕ; _-_ to _∸_; _*_ to _·_) open import Cubical.Data.Nat.Literals public open import Cubical.Data.Bool.Base open import Cubical...
{ "alphanum_fraction": 0.6168478261, "avg_line_length": 20.4444444444, "ext": "agda", "hexsha": "427cdb8a2ebf676e931124bc70302c05497da6e7", "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 --no-auto-inline #-} module DefaultMethods where open import Agda.Builtin.Equality open import Agda.Builtin.Bool open import Agda.Builtin.Nat using (Nat) import Agda.Builtin.Nat as Nat open import Agda.Builtin.List open import Agda.Builtin.String renaming (primStringAppend to _++_) open import Agda.Builtin...
{ "alphanum_fraction": 0.6200421537, "avg_line_length": 25.2125603865, "ext": "agda", "hexsha": "553052c94cdcb9f217320867b7a253b53e8f1ea8", "lang": "Agda", "max_forks_count": 18, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:42:52.000Z", "max_forks_repo_forks_event_min_datetime": "2020-10-21...
{-# OPTIONS --safe #-} module Cubical.Algebra.OrderedCommMonoid.Base where {- Definition of an ordered monoid. -} open import Cubical.Foundations.Prelude open import Cubical.Foundations.SIP using (TypeWithStr) open import Cubical.Foundations.Structure using (⟨_⟩) open import Cubical.Algebra.CommMonoid.Base open im...
{ "alphanum_fraction": 0.6270539906, "avg_line_length": 36.2553191489, "ext": "agda", "hexsha": "538d01612bd881b41f11b5695885cecfd9399a0d", "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 Auto.Prelude mutual data Even : ℕ → Set where even-0 : Even zero even-s : {n : ℕ} → Odd n → Even (succ n) data Odd : ℕ → Set where odd-1 : Odd (succ zero) odd-s : {n : ℕ} → Even n → Odd (succ n) double : ℕ → ℕ double zero = zero double (succ n) = succ (succ (double n)) h0 : ∀ {n} → Even (doub...
{ "alphanum_fraction": 0.4749216301, "avg_line_length": 22.7857142857, "ext": "agda", "hexsha": "4069e9e043b72575c92f3b750b21ddb199b24afc", "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 Selective.Examples.TestSelectiveReceive-calc where open import Selective.ActorMonad open import Prelude open import Debug open import Data.Nat.Show using (show) UniqueTag = ℕ TagField = ValueType UniqueTag ℕ-ReplyMessage : MessageType ℕ-ReplyMessage = ValueType UniqueTag ∷ [ ValueType ℕ ]ˡ ℕ-Reply : InboxSh...
{ "alphanum_fraction": 0.593054802, "avg_line_length": 28.796875, "ext": "agda", "hexsha": "380ceea4c5be725383345e7440b04c32b0878f3d", "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 Issue535 where data Nat : Set where zero : Nat suc : Nat → Nat data Vec A : Nat → Set where [] : Vec A zero _∷_ : ∀ {n} → A → Vec A n → Vec A (suc n) replicate : ∀ {A n} → A → Vec A n replicate {n = n} x = {!n!} replicate′ : ∀ {n A} → A → Vec A n replicate′ {n} x = {!n!} extlam : Nat → {n m : Nat}...
{ "alphanum_fraction": 0.5054644809, "avg_line_length": 18.3, "ext": "agda", "hexsha": "50d81505f942f8d033657f1f1f5fdc6aebd78c4e", "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:38....
open import Agda.Builtin.Nat open import Agda.Builtin.Equality data Vec (A : Set) : Nat → Set where variable A : Set x : A n : Nat xs : Vec A n postulate IsHead : A → Vec A (suc n) → Set -- Should also work if there is pruning solve_==_by_ : (m n : Nat) → m ≡ n → Set solve_==_by_ _ _ _ = Nat mutual-b...
{ "alphanum_fraction": 0.6003289474, "avg_line_length": 18.4242424242, "ext": "agda", "hexsha": "46ab25dd92b6b8701aacb750f2897595d1ce4f7b", "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...
-- This is not valid with magic mutual blocks that guess how far down the -- file the mutual block extends constructor zero : Nat suc : Nat → Nat
{ "alphanum_fraction": 0.7266666667, "avg_line_length": 25, "ext": "agda", "hexsha": "d29fcde70858fdb2c978f8c76ad478e10da85eb5", "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": "ed8...
{-# OPTIONS --cubical --safe --no-import-sorts #-} module Cubical.Data.FinSet.Binary.Small where open import Cubical.Data.FinSet.Binary.Small.Base public open import Cubical.Data.FinSet.Binary.Small.Properties public
{ "alphanum_fraction": 0.7853881279, "avg_line_length": 31.2857142857, "ext": "agda", "hexsha": "0897a9e080d76c8cc6cf78b8efe98599d13a5ee0", "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 YonedaLemma where open import Library open import Categories open import Categories.Sets open import Functors open import Naturals open import FunctorCat HomF[-,_] : ∀{l m}{C : Cat {l}{m}}(X : Cat.Obj C) -> Fun (C Op) (Sets {m}) HomF[-,_] {C = C} B = functor (\ X -> Hom X B) (\ f g -> comp g f) (ext \ _ ...
{ "alphanum_fraction": 0.5133819951, "avg_line_length": 28.6744186047, "ext": "agda", "hexsha": "ad16acde6034b7e80652154c6d74d87d631b9d7c", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-11-04T21:33:13.000Z", "max_forks_repo_forks_event_min_datetime": "2019-11-04T...
{-# OPTIONS --without-K #-} {- This module serves to develop some basic theory about pointed types. After defining the usual notions of pointed types, pointed equivalences, and loop spaces, we derive a version of univalence for pointed equivalences and observe that univalence between identical types is a poin...
{ "alphanum_fraction": 0.5196189044, "avg_line_length": 35.4533333333, "ext": "agda", "hexsha": "38fef0777b93adc285a90c4fdba5fdc9b7305c74", "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 StateSized.GUI.SpaceShipExtendedExample where open import SizedIO.Base open import StateSizedIO.GUI.BaseStateDependent open import Data.Bool.Base open import Data.List.Base open import Data.Integer open import Data.Product hiding (map) open import SizedIO.Object open import SizedIO.IOObject open import Nat...
{ "alphanum_fraction": 0.6600604002, "avg_line_length": 32.3048780488, "ext": "agda", "hexsha": "d1ab7974e81697b395f9c20eb8b036f4ee6497e8", "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...
record R (A : Set) : Set where field f : A → A open R {{...}} test : {A : Set} → R A f {{test}} = {!!}
{ "alphanum_fraction": 0.4234234234, "avg_line_length": 12.3333333333, "ext": "agda", "hexsha": "2d90741a2da2b24c437e736f828ecca2a30855db", "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...
------------------------------------------------------------------------------ -- Twice funcion ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS --w...
{ "alphanum_fraction": 0.4874504624, "avg_line_length": 28.037037037, "ext": "agda", "hexsha": "297e660fc4e9728c57ad6f0cf16ccb9d77cd66d9", "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...
------------------------------------------------------------------------ -- From the Agda standard library -- -- Sizes for Agda's sized types ------------------------------------------------------------------------ module Common.Size where {-# BUILTIN SIZEUNIV SizeU #-} {-# BUILTIN SIZE Size #-} {-# BUILTIN SIZ...
{ "alphanum_fraction": 0.4041533546, "avg_line_length": 25.04, "ext": "agda", "hexsha": "93a57779a2bcb4e182b24332a95aa14c554eab1e", "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 --safe --warning=error --without-K #-} open import LogicalFormulae open import Groups.Definition open import Groups.Abelian.Definition open import Groups.FiniteGroups.Definition open import Numbers.Naturals.Semiring open import Numbers.Naturals.Order open import Numbers.Naturals.Order.Lemmas open import Se...
{ "alphanum_fraction": 0.6855324849, "avg_line_length": 50.6101694915, "ext": "agda", "hexsha": "e37a277c80dda38f6e7d69540afda12742bd22f0", "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...
------------------------------------------------------------------------ -- The Agda standard library -- -- Convenient syntax for equational reasoning ------------------------------------------------------------------------ -- Example use: -- n*0≡0 : ∀ n → n * 0 ≡ 0 -- n*0≡0 zero = refl -- n*0≡0 (suc n) = -- beg...
{ "alphanum_fraction": 0.5204957102, "avg_line_length": 26.8974358974, "ext": "agda", "hexsha": "cee1043cbe5f7e64766f33d7ffa91bdb89adc9ad", "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 FixityOutOfScopeInRecord where record R : Set where infixl 30 _+_
{ "alphanum_fraction": 0.7792207792, "avg_line_length": 12.8333333333, "ext": "agda", "hexsha": "4768826daefc5a4773c53bad5685a97f6602e59c", "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...
------------------------------------------------------------------------------ -- Testing the use of ATP axioms with data constructors ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-un...
{ "alphanum_fraction": 0.4221556886, "avg_line_length": 24.7407407407, "ext": "agda", "hexsha": "cdffcfddd8f35391e1f4c911c5be46a19d547c28", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2016-08-03T03:54:55.000Z", "max_forks_repo_forks_event_min_datetime": "2016-05-10T...
{-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS --without-K #-} module CombiningProofs.CommAddGlobalHints where open import PA.Axiomatic.Standard.Base +-leftIdentity : ∀ n → zero + n ≡ n +-leftIdentity = PA₃ ...
{ "alphanum_fraction": 0.5234782609, "avg_line_length": 21.2962962963, "ext": "agda", "hexsha": "e26b9a0013042fdde5e1a9ec60dcd49cacb07903", "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...
open import OutsideIn.Prelude module OutsideIn.X where open import Data.Product public hiding (map) open import Relation.Nullary record Types : Set₁ where field Type : Set → Set type-is-monad : Monad Type funType : ∀ {n} → Type n → Type n → Type n appType : ∀ {n} → Type ...
{ "alphanum_fraction": 0.5398912058, "avg_line_length": 49.0222222222, "ext": "agda", "hexsha": "15ba3c57d71edf11fbff7896b4705c021d2f0314", "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 PatternSynonymOverloaded where data Nat : Set where zero : Nat suc : Nat -> Nat pattern ss x = suc (suc x) pattern ss x = suc x
{ "alphanum_fraction": 0.6830985915, "avg_line_length": 15.7777777778, "ext": "agda", "hexsha": "2997b43603b9db67aabedc18f5e7d64e5735278a", "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...
{-# OPTIONS --safe #-} -- --without-K #-} open import Relation.Binary.PropositionalEquality using (_≢_; _≡_; refl; sym; subst; cong; trans) open import Function using (_∘_) open import Relation.Nullary using (yes; no) import Data.Empty as Empty import Data.Product as Product import Data.Product.Properties as Productₚ...
{ "alphanum_fraction": 0.5318852132, "avg_line_length": 49.6831683168, "ext": "agda", "hexsha": "ff5ad60071d47add8d7f9943f595a6be7037dc2d", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-14T16:24:07.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-25T...
{- Part 4: Higher inductive types - Quotients via HITs - Propositional truncation for logic? - CS example using quotients (maybe finite multisets or queues) - Synthetic homotopy theory (probably Torus = S^1 * S^1, pi_1(S^1) = Z, pi_1(Torus) = Z * Z) -} {-# OPTIONS --cubical #-} module Part4 where open import Cub...
{ "alphanum_fraction": 0.6250778493, "avg_line_length": 29.1939393939, "ext": "agda", "hexsha": "5735375786a40032d8bf170b2e33fab1c2179425", "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 the definition of and facts about functors. -- -------------------------------------------------------------------- module Category.Funct where open import Level open import Relation.Relation open import Relation.Binary.Propos...
{ "alphanum_fraction": 0.5575757576, "avg_line_length": 35, "ext": "agda", "hexsha": "493af1af717ad117d3487de0512c8cc0b0c4f44d", "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": "b33...
------------------------------------------------------------------------------ -- The alternating bit protocol (ABP) is correct ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-...
{ "alphanum_fraction": 0.5444790585, "avg_line_length": 38.0131578947, "ext": "agda", "hexsha": "ac127576061b40e84fec8875df67635bee0e4e39", "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 Syntax where open import Stack public -- Abstract symbols, or atoms. abstract Atom : Set Atom = Nat -- Types, or propositions in constructive modal logic S4. infixl 9 _⩕_ infixl 8 _⩖_ infixr 7 _⇒_ data Type : Set where α_ : Atom → Type _⇒_ : Type → Type → Type □_ : Type → Type _⩕_ : Type ...
{ "alphanum_fraction": 0.44749021, "avg_line_length": 33.9798387097, "ext": "agda", "hexsha": "792b7758ae757ab9b79b99ee58dfa5e015cdee24", "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...