Search is not available for this dataset
text
string
meta
dict
module Oscar.Data.Proposextensequality where open import Oscar.Data.Proposequality using (_≡_) open import Oscar.Level infix 4 _≡̇_ _≡̇_ : ∀ {a} {A : Set a} {b} {B : A → Set b} → ((x : A) → B x) → ((x : A) → B x) → Set (a ⊔ b) f ≡̇ g = ∀ x → f x ≡ g x
{ "alphanum_fraction": 0.5607843137, "avg_line_length": 25.5, "ext": "agda", "hexsha": "133a78b3bbfc5299fca3e1533b9abf4336afeab6", "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 _ where open import Agda.Builtin.List open import Agda.Builtin.Reflection macro easy : Term → TC _ easy t = bindTC (freshName "A") λ A → bindTC (declarePostulate (arg (arg-info visible relevant) A) (agda-sort (lit 0))) λ _ → unify (def A []) t B : Set B = {!easy!}...
{ "alphanum_fraction": 0.587529976, "avg_line_length": 17.375, "ext": "agda", "hexsha": "3d726055f8587bf3862d990841deb3d0a175b90d", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-09-15T14:36:15.000Z", "max_forks_repo_forks_event_min_datetime": "2015-09-15T14:36:15...
-- There was a bug which caused the type checker to forget -- the name of implicit arguments which weren't used in the -- return type. module UnusedNamedImplicits where data Nat : Set where zero : Nat suc : Nat -> Nat -- Simple example f : {n m : Nat} -> Nat f {m = m} = m data _==_ {A : Set}(x : A) : A -> Set ...
{ "alphanum_fraction": 0.6093073593, "avg_line_length": 24.972972973, "ext": "agda", "hexsha": "75d512df6743360b06b7d78742ee77eb09d545fc", "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...
-- Andreas, 2018-10-27, issue #3323, reported by Guillaume Brunerie -- -- Mismatches between original and repeated parameter list -- should not lead to internal errors. open import Agda.Builtin.Bool open import Agda.Builtin.Equality record R ..(b : Bool) : Set record R .b where -- Cannot change relevance field foo...
{ "alphanum_fraction": 0.7362318841, "avg_line_length": 24.6428571429, "ext": "agda", "hexsha": "e770d29dd3ef9aa264a81b0f9872aee59e935c69", "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...
------------------------------------------------------------------------ -- Bag equivalence for lists ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} open import Equality module Bag-equivalence {c⁺} (eq : ∀ {a p} → Equality-with-J a p c⁺) where open Deri...
{ "alphanum_fraction": 0.4748243789, "avg_line_length": 36.7161383285, "ext": "agda", "hexsha": "c84cc6eeb172ff4f4555b1686edd079035b904d8", "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 Numeric.Nat.Prime.Properties where open import Prelude open import Control.WellFounded open import Numeric.Nat.Properties open import Numeric.Nat.Divide open import Numeric.Nat.Divide.Properties open import Numeric.Nat.GCD open import Numeric.Nat.GCD.Extended open import Numeric.Nat.GCD.Properties open import ...
{ "alphanum_fraction": 0.5978326309, "avg_line_length": 40.512195122, "ext": "agda", "hexsha": "be5a297c0abda112a93c8ab5ffee1020d08b7190", "lang": "Agda", "max_forks_count": 24, "max_forks_repo_forks_event_max_datetime": "2021-04-22T06:10:41.000Z", "max_forks_repo_forks_event_min_datetime": "2015-03-12T...
open import Agda.Builtin.Bool public open import Agda.Builtin.Nat public data IsTrue : Bool → Set where instance truth : IsTrue true postulate foo : {{IsTrue (3 < 2)}} → Nat test : Nat test = foo
{ "alphanum_fraction": 0.7009803922, "avg_line_length": 15.6923076923, "ext": "agda", "hexsha": "ced75f194799f13e354b5a6b538640feb7941888", "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 --warning=error --safe --without-K #-} open import LogicalFormulae open import Numbers.Naturals.Semiring open import Numbers.Naturals.Naturals open import Numbers.Naturals.Order open import Numbers.Naturals.Order.Lemmas open import Numbers.Naturals.Order.WellFounded open import Orders.WellFounded.Induction...
{ "alphanum_fraction": 0.7753464624, "avg_line_length": 62.3181818182, "ext": "agda", "hexsha": "5f33221c8b35cc9889cab7e43b0ad050553076f7", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-29T13:23:07.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-29T...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.DStructures.Structures.PeifferGraph where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Foundations.HLevels open import Cubical.Foundations.Isomorphism open import Cubical.Foundations.Structure open i...
{ "alphanum_fraction": 0.3681439765, "avg_line_length": 47.2138728324, "ext": "agda", "hexsha": "aad692310ea949467d3bf5ed3ba64a9368a7abf0", "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 FRP.JS.Behaviour using ( Beh ; [_] ; map ; accumHoldBy ) open import FRP.JS.Event using ( Evt ; tag ) open import FRP.JS.DOM using ( DOM ; element ; text ; listen ; click ; _++_ ; element+ ; _+++_ ) open import FRP.JS.RSet using ( RSet ; ⟦_⟧ ; ⟨_⟩ ; _⇒_ ) open import FRP.JS.Nat using ( ℕ ; _+_ ; _*_ ; _∸_ ;...
{ "alphanum_fraction": 0.6001271456, "avg_line_length": 30.25, "ext": "agda", "hexsha": "4d7cef3925b47b0bdc0c503bcaf2a6e6b6f7be9a", "lang": "Agda", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:39:38.000Z", "max_forks_repo_forks_event_min_datetime": "2016-11-07T21:50:58...
module _ where open import DeadCodePatSyn.Lib -- Check that pattern synonyms count when computing dead code f : _ → Set₁ f not-hidden = Set
{ "alphanum_fraction": 0.7552447552, "avg_line_length": 15.8888888889, "ext": "agda", "hexsha": "0e7157505a46a45784cc8a636c9ca3497f5b2f86", "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 Eq where import Prelude open Prelude abstract data _=^=_ {a : Set} (x y : a) : Set1 where leibniz : ((P : a -> Set) -> P x <-> P y) -> x =^= y leibnizSubst : {a : Set} -> {x y : a} -> x =^= y -> (P : a -> Set) -> P x -> P y leibnizSubst (leibniz f) P p = iffLeft (f P...
{ "alphanum_fraction": 0.4570928196, "avg_line_length": 25.9545454545, "ext": "agda", "hexsha": "844fb89834b4aeb056afb03d76a381077567fb9d", "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 -- -- Maybes where one of the elements satisfies a given property ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Maybe.Relation.Unary.Any where...
{ "alphanum_fraction": 0.5182186235, "avg_line_length": 32.0779220779, "ext": "agda", "hexsha": "714e6fc985326e23703c58dcccd3baf088961a9c", "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 --no-exact-split --safe #-} module Cubical.Data.NatPlusOne.Properties where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Univalence open import Cubical.Data.Nat open import Cubical.Data.NatPlusOne.Base open import Cubical.Reflection.StrictEquiv 1+Pat...
{ "alphanum_fraction": 0.5644007156, "avg_line_length": 28.6666666667, "ext": "agda", "hexsha": "ca8a15a96f8644a803655ad80e330cd14d663c07", "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...
-- Quotients of additive categories {-# OPTIONS --safe #-} module Cubical.Categories.Additive.Quotient where open import Cubical.Algebra.AbGroup.Base open import Cubical.Categories.Additive.Base open import Cubical.Categories.Additive.Properties open import Cubical.Categories.Category.Base open import Cubical.Categor...
{ "alphanum_fraction": 0.492898914, "avg_line_length": 38.6129032258, "ext": "agda", "hexsha": "16e13ec179c8d6dffc4f5c0eb9ad0f8034b3e5dd", "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 sn-calculus-compatconf.same where open import sn-calculus-compatconf.base open import sn-calculus open import sn-calculus-confluence.helper using (ready-irr-on-irr-θʳ) open import utility renaming (_U̬_ to _∪_) open import context-properties using (get-view ; wrap-rho ; ->E-view ; ->pot-view ; wrap-...
{ "alphanum_fraction": 0.476892321, "avg_line_length": 42.6605351171, "ext": "agda", "hexsha": "b3e82ff0196ea20d6b36e06dd1ffdcdb0493205e", "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-15T2...
------------------------------------------------------------------------ -- The Agda standard library -- -- The lifting of a strict order to incorporate a new supremum ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} -- This module is designed to be used with...
{ "alphanum_fraction": 0.4810421521, "avg_line_length": 35.4962406015, "ext": "agda", "hexsha": "dfd228d98359e63e65f85540a38690c6aef9398d", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
-- The SIP applied to groups {-# OPTIONS --safe #-} module Cubical.Algebra.Group.GroupPath where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Function using (_∘_) open import Cubical.Foundations.Isomorphism open import Cubical.Foundations.Equiv open import Cubical.Foundations.HLevels open im...
{ "alphanum_fraction": 0.6094328869, "avg_line_length": 35.4444444444, "ext": "agda", "hexsha": "84c33a481e09ce8bca522e792d4235a5276dcae6", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Data.List.Properties where open import Agda.Builtin.List open import Cubical.Core.Everything open import Cubical.Foundations.GroupoidLaws open import Cubical.Foundations.HLevels open import Cubical.Foundations.Prelude open import Cubical.Data.Empty as ⊥...
{ "alphanum_fraction": 0.5496721311, "avg_line_length": 34.4632768362, "ext": "agda", "hexsha": "20120e22d3bbd01f762bafa079945177c5b0f576", "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...
open import Data.Product using ( ∃ ; _×_ ; _,_ ; proj₁ ; proj₂ ) open import Relation.Unary using ( _∈_ ) open import Web.Semantic.DL.ABox using ( ABox ; ⟨ABox⟩ ; _,_ ) open import Web.Semantic.DL.ABox.Interp using ( Interp ; _,_ ; ⌊_⌋ ; ind ; _*_ ) open import Web.Semantic.DL.ABox.Interp.Morphism using ( _≲_ ; _...
{ "alphanum_fraction": 0.4431014415, "avg_line_length": 35.4571428571, "ext": "agda", "hexsha": "07abe95cedf02c1b48e49e83d9a4624f85510011", "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 Utility.Bool where open import Agda.Builtin.Bool using (Bool; true; false) not : Bool → Bool not false = true not true = false _or_ : Bool → Bool → Bool true or _ = true _ or true = true _ or _ = false _and_ : Bool → Bool → Bool true and true = true _ and _ = false
{ "alphanum_fraction": 0.6823104693, "avg_line_length": 16.2941176471, "ext": "agda", "hexsha": "1afffb0da3abfd436439f361fec63588f59394b1", "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-pattern-matching #-} id : {A : Set} (x : A) → A id x = x const : {A B : Set} (x : A) (y : B) → A const x y = x happ : {A B C : Set} (f : A → B → C) (g : A → B) (x : A) → C happ f g x = f x (g x) K = const S = happ I : {A : Set} (x : A) → A I = S K K -- Mmh, pretty boring...
{ "alphanum_fraction": 0.432885906, "avg_line_length": 15.6842105263, "ext": "agda", "hexsha": "904e68ac34e5b2e72b11f98b12587670dc48a28d", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-12T1...
-- Andreas, 2013-11-07 -- Instance candidates are now considered module judgemental equality. module Issue899 where postulate A B : Set f : {{ x : A }} → B instance a : A instance a' : A a' = a test : B test = f {- The previous code fails with the following message: Resolve implicit argument _x_257 : A...
{ "alphanum_fraction": 0.6889312977, "avg_line_length": 21.8333333333, "ext": "agda", "hexsha": "5f7c15b87879e5971ca3d58866d9e4abd1166806", "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 #-} module Test3 where open import Cubical.Foundations.Everything renaming (_⁻¹ to _⁻¹ᵖ; assoc to ∙-assoc) open import Cubical.Foundations.Logic abstract !_ : ∀{ℓ} {X : Type ℓ} → X → X ! x = x !-≡ : ∀{ℓ} {X : Type ℓ} → (! X) ≡ X !-≡ = refl -- makes use of the definiti...
{ "alphanum_fraction": 0.4796044499, "avg_line_length": 28.8928571429, "ext": "agda", "hexsha": "738e18110147d5ec290a0007fdcff896608f64fc", "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 where import Everything import Test -- journals import $RequiredForInstanceResolution import AbstractStrictlyPositive import AgdaErrorDisplayForm197 import AgdaFeatureInstanceResolutionViaConstraint import AgdaFeatureNeedHiddenVariableTypeConstructorWrapper import AgdaFeatureNoInstanceFromHidden import ...
{ "alphanum_fraction": 0.9290495315, "avg_line_length": 27.6666666667, "ext": "agda", "hexsha": "831cf91e3d7c102e529a4825f0fac7d2fef86df7", "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 Coirc where open import Coinduction open import IO open import Data.String open import Data.Maybe data SP (A B : Set) : Set where get : (A → SP A B) → SP A B put : B → ∞ (SP A B) → SP A B data Event : Set where notice mode numeric ping : Event privmsg : (source text : String) → Event data Action : Set...
{ "alphanum_fraction": 0.647634584, "avg_line_length": 23.5769230769, "ext": "agda", "hexsha": "5307d157ed367841957377faa890d69bb49706b0", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:53:29.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-12T1...
{-# OPTIONS --warning=error --safe --without-K #-} open import Functions.Definition open import Groups.Definition open import Rings.Homomorphisms.Definition open import Setoids.Setoids open import Rings.Definition open import Sets.EquivalenceRelations open import Groups.Lemmas open import Rings.Ideals.Definition modu...
{ "alphanum_fraction": 0.7810650888, "avg_line_length": 58.7826086957, "ext": "agda", "hexsha": "ad4da7f550d20f00277bf7289df850162ccfa8f7", "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...
module BasicIPC.Metatheory.Hilbert-TarskiGluedClosedImplicit where open import BasicIPC.Syntax.Hilbert public open import BasicIPC.Semantics.TarskiGluedClosedImplicit public open ImplicitSyntax (∅ ⊢_) public -- Completeness with respect to a particular model, for closed terms only. module _ {{_ : Model}} where r...
{ "alphanum_fraction": 0.5118723239, "avg_line_length": 28.2307692308, "ext": "agda", "hexsha": "2980f84052b6f1a00e58f67b4fb40adffdeafbb1", "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...
------------------------------------------------------------------------ -- Code related to the paper draft "Structurally Recursive Descent -- Parsing" -- -- Nils Anders Danielsson and Ulf Norell ------------------------------------------------------------------------ module StructurallyRecursiveDescentParsing where ...
{ "alphanum_fraction": 0.7400295421, "avg_line_length": 30.0888888889, "ext": "agda", "hexsha": "4800965ee93be941731df20e01ab9a52938a7df8", "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 IrrelevantRecordField where import Common.Irrelevance record R (A : Set) : Set where constructor inn field .out : A proj : {A : Set} -> R A -> A proj (inn a) = a -- needs to fail, since a is irrelevant under inn
{ "alphanum_fraction": 0.6666666667, "avg_line_length": 21, "ext": "agda", "hexsha": "08419b244884b7a8a420c90c7efd101f4879140b", "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": "70c...
{-# OPTIONS --without-K --rewriting #-} module Base where open import lib.Basics open import lib.Funext open import lib.NType2 open import lib.types.Truncation open import lib.types.Bool quodlibet : {i : ULevel} {A : Type i} → ⊥ → A quodlibet = ⊥-elim -- infix notation for piping a term argument i...
{ "alphanum_fraction": 0.4358421751, "avg_line_length": 34.4685714286, "ext": "agda", "hexsha": "d34847f5ec15296c6f9f00e87af3b53d12c2a790", "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...
record R : Set where a : R a = r -- r should not ever be in scope
{ "alphanum_fraction": 0.6, "avg_line_length": 17.5, "ext": "agda", "hexsha": "c0ba732828078319f785a8998d0ace1fa0b9ff0a", "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.000Z", ...
-- Andreas, 2021-07-14, issue #5470, reported by HarrisonGrodin -- -- Importing a rewrite rule that was declared private -- at the point of definition caused an internal error. {-# OPTIONS --rewriting #-} -- {-# OPTIONS -v impossible:10 #-} -- {-# OPTIONS -v rewriting:100 #-} module Issue5470 where open import Agda...
{ "alphanum_fraction": 0.6858237548, "avg_line_length": 22.3714285714, "ext": "agda", "hexsha": "7ade1a1ec9ed926f733e71471073a572da2d6664", "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...
------------------------------------------------------------------------ -- Connectedness for pointed types ------------------------------------------------------------------------ {-# OPTIONS --erased-cubical --safe #-} import Equality.Path as P module Pointed-type.Connected {e⁺} (eq : ∀ {a p} → P.Equality-with-p...
{ "alphanum_fraction": 0.5963636364, "avg_line_length": 34.375, "ext": "agda", "hexsha": "fffbbbe035e22de6f2870128249fb797b6b60469", "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": ...
-- Example: -- postulate ℓ : Lvl.Level -- postulate A B C D : Type{ℓ} -- postulate a : A -- postulate ab : A → B -- postulate bc : B → C -- postulate cd : C → D -- -- ad : A → D -- ad = -- A ⇒-[ ab ] -- B ⇒-[ bc ] -- C ⇒-[ cd ] -- D ⇒-end -- -- d : D -- d = -- a ⇒ -- A ⇒-[ ab...
{ "alphanum_fraction": 0.4666064982, "avg_line_length": 26.6987951807, "ext": "agda", "hexsha": "dc90a3f57fee49eafa8283522ef59dee01f7b1d5", "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: - Definitions equivalences - Glue types -} {-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Core.Glue where open import Cubical.Core.Primitives open import Agda.Builtin.Cubical.Glue public using ( isEquiv -- ∀ {ℓ ℓ'} {A : Type ℓ} {B : Type ℓ'} (f : A → B) → Type (ℓ ...
{ "alphanum_fraction": 0.5252997358, "avg_line_length": 34.6549295775, "ext": "agda", "hexsha": "521fa3b6dc191bf05cd8c94227b26cd024b30405", "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 Tactic.Nat.Subtract.Reflect where open import Prelude import Agda.Builtin.Nat as Builtin open import Builtin.Reflection open import Control.Monad.State open import Control.Monad.Transformer open import Tactic.Reflection open import Tactic.Reflection.Quote open import Tactic.Nat.Reflect open import Tactic.Nat....
{ "alphanum_fraction": 0.6457964602, "avg_line_length": 38.3050847458, "ext": "agda", "hexsha": "0399f5bba390b7c0ca0176d4820316b2dccfa1b7", "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...
data _≡_ {A : Set} (x : A) : A → Set where refl : x ≡ x record R₁ (F : Set → Set) : Set₁ where constructor mkR₁ field f₁ : ∀ {A} → A → F A open R₁ {{...}} record R₂ (F : Set → Set) : Set₁ where constructor mkR₂ field instance r₁ : R₁ F record R₃ (_ : Set) : Set where constructor mkR₃ pos...
{ "alphanum_fraction": 0.5415860735, "avg_line_length": 13.6052631579, "ext": "agda", "hexsha": "19688adbc28545d38471f0549a3b9e22f21ccb26", "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...
open import Relation.Binary.Core module PLRTree.DropLast.Heap {A : Set} (_≤_ : A → A → Set) (tot≤ : Total _≤_) where open import PLRTree {A} open import PLRTree.Drop _≤_ tot≤ open import PLRTree.Heap _≤_ lemma-dropLast-≤* : {x : A}{t : PLRTree} → x ≤* t → x ≤* dropLast t ...
{ "alphanum_fraction": 0.5173126615, "avg_line_length": 58.6363636364, "ext": "agda", "hexsha": "c8163dd694c20f8101cb7c713e77f8c46aac2e68", "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 D : Set where @0 c : D postulate P : D → Set p : (x : D) → P x bad : P c bad = p _
{ "alphanum_fraction": 0.46875, "avg_line_length": 9.6, "ext": "agda", "hexsha": "a8bb750073c7a06bec94582cdbd1fb6db44e41c7", "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.000Z...
module Datalog where open import Data.Nat as ℕ open import Data.List open import Data.Integer as ℤ open import Relation.Binary.PropositionalEquality open import Data.List.Any module Term where data tt : Set where τ-int : tt open Membership (setoid tt) ctx = List tt data Lit : tt → Set where int : ℤ ...
{ "alphanum_fraction": 0.60749255, "avg_line_length": 36.703125, "ext": "agda", "hexsha": "2a63c843b62489067f882822ea72b2b440f3c268", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2019-03-18T13:51:18.000Z", "max_forks_repo_forks_event_min_datetime": "2016-01-12T23:35:...
------------------------------------------------------------------------ -- The Agda standard library -- -- Well-founded induction ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} open import Relation.Binary module Induction.WellFounded where open import Da...
{ "alphanum_fraction": 0.5666627785, "avg_line_length": 32.7213740458, "ext": "agda", "hexsha": "d98386891fb892ede22523001dbba0058111e86c", "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...
-- Andreas, 2016-02-02 postpone type checking of extended lambda -- See also issue 480 and 1159 open import Common.Maybe open import Common.String record ⊤ : Set where record IOInterface : Set₁ where field Command : Set Response : (m : Command) → Set open IOInterface data IO I A : Set where do' ...
{ "alphanum_fraction": 0.5442435775, "avg_line_length": 24.4418604651, "ext": "agda", "hexsha": "b784c80c4164ec9273c6645d3239600c072bd770", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K #-} open import HoTT open import cohomology.FunctionOver open import homotopy.elims.CofPushoutSection module cohomology.MayerVietoris {i} where {- Mayer-Vietoris Sequence: Given a span X ←f– Z –g→ Y, the cofiber space of the natural map [reglue : X ∨ Y → X ⊔_Z Y] (defined below) is equival...
{ "alphanum_fraction": 0.5310787328, "avg_line_length": 30.7860082305, "ext": "agda", "hexsha": "e77a4aaa06ce29854aaad842e5043e6471b764de", "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 hnf-tests where open import bool open import list open import nat open import product open import string open import cedille-types open import conversion open import ctxt open import is-free open import rename open import subst open import syntax-util open import to-string S : term S = mlam "n" (mlam "s" (m...
{ "alphanum_fraction": 0.5972409152, "avg_line_length": 34.9647058824, "ext": "agda", "hexsha": "b8d9ffa96cd43ecd5ca191e9571f051ca343ddb5", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K --safe #-} open import Categories.Bicategory -- The two Hom 2-functors from (op C) and C to Cats. module Categories.Pseudofunctor.Hom {o ℓ e t} (C : Bicategory o ℓ e t) where open import Data.Product using (_,_) import Categories.Bicategory.Extras as BicategoryExtras open import Categories....
{ "alphanum_fraction": 0.4750272289, "avg_line_length": 34.5537634409, "ext": "agda", "hexsha": "91879d8600222188f3cb907b74b2a585b1100b4e", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
------------------------------------------------------------------------ -- A counterexample: The trace of stack sizes produced by the virtual -- machine is not necessarily bisimilar to that produced by the -- instrumented interpreter ------------------------------------------------------------------------ module Lamb...
{ "alphanum_fraction": 0.6266915539, "avg_line_length": 32.4696969697, "ext": "agda", "hexsha": "24efdf03b9c942d4f7873ea3d043d1fa28deddbc", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K --safe #-} module Categories.2-Category where open import Level open import Categories.Category.Monoidal.Instance.StrictCats using (module Product) open import Categories.Enriched.Category using (Category) 2-Category : (o ℓ e t : Level) → Set (suc (o ⊔ ℓ ⊔ e ⊔ t)) 2-Category o ℓ e t = Catego...
{ "alphanum_fraction": 0.7119113573, "avg_line_length": 30.0833333333, "ext": "agda", "hexsha": "9c1323bef43d759cabac2a21b3754eb6eaf98b2c", "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 -v tc.with:40 #-} module RewriteAndWhere where open import Common.Equality data ℕ : Set where zero : ℕ -- good : (a b : ℕ) → a ≡ b → b ≡ a -- good a b eq with a | eq -- ... | .b | refl = foo -- where -- foo : b ≡ b -- foo = refl mutual aux : (a b : ℕ)(w : ℕ) → w ≡ b → b ≡ w aux a b ....
{ "alphanum_fraction": 0.5184079602, "avg_line_length": 21.847826087, "ext": "agda", "hexsha": "ca34666bd7c6e3b4918a7ebea3091519a85304d5", "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...
{-# OPTIONS --type-in-type #-} -- yes, I will let you cheat in this exercise {-# OPTIONS --allow-unsolved-metas #-} -- allows import, unfinished ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- CS410 2017/...
{ "alphanum_fraction": 0.3972560976, "avg_line_length": 32.6368159204, "ext": "agda", "hexsha": "3534de0eff1bef19987253152ef623b54cec9593", "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...
------------------------------------------------------------------------------ -- Totality properties for Forest ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-...
{ "alphanum_fraction": 0.5013404826, "avg_line_length": 39.2631578947, "ext": "agda", "hexsha": "906620f8d04eaa7222d37f213be197c257482bab", "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 Oscar.Builtin.Objectevel where open import Agda.Primitive public using () renaming (Level to Ł̂; lzero to Ø̂; lsuc to ↑̂_; _⊔_ to _∙̂_) infix 0 Ø_ Ø_ : ∀ 𝔬 → Set (↑̂ 𝔬) Ø_ 𝔬 = Set 𝔬
{ "alphanum_fraction": 0.6428571429, "avg_line_length": 17.8181818182, "ext": "agda", "hexsha": "5dc99b883f43830377e9a6fbe1aa6623d6dc0c25", "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 DigitsInNames where data 1D : Set where 1d : 1D 2d : 1D -> 1D
{ "alphanum_fraction": 0.6315789474, "avg_line_length": 9.5, "ext": "agda", "hexsha": "b3153ba05e982eb92c14339ffb24455054fba85c", "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...
------------------------------------------------------------------------ -- The Agda standard library -- -- Consequences of a monomorphism between monoid-like structures ------------------------------------------------------------------------ -- See Data.Nat.Binary.Properties for examples of how this and similar -- mo...
{ "alphanum_fraction": 0.5577578198, "avg_line_length": 33.9894736842, "ext": "agda", "hexsha": "416a17bc3b54abca550f946407c1d970286d21c7", "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...
------------------------------------------------------------------------------ -- Testing the --without-K flag ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} ...
{ "alphanum_fraction": 0.3593004769, "avg_line_length": 29.9523809524, "ext": "agda", "hexsha": "06f274ec2d12407a86246b55d530928a3f04b894", "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 Level open import Data.Unit open import Data.Bool open import Data.Nat open import Data.Fin open import Data.Sum open import Data.Maybe open import Data.Product open import Data.Vec using (Vec; _∷_; []) import Data.Vec as Vec open import Data.List open import Relation.Binary.PropositionalEquality ---------...
{ "alphanum_fraction": 0.5130162458, "avg_line_length": 27.6162162162, "ext": "agda", "hexsha": "14ba1d374f6f57726a96da105ab6ecb4b4fa9235", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-04-01T04:10:25.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-16T...
module Binding where open import Agda.Primitive data Freer {ℓ} (F : Set ℓ → Set (lsuc ℓ)) (A : Set (lsuc ℓ)) : Set (lsuc ℓ) where pure : A → Freer F A free : ∀ {a : Set ℓ} → (a → Freer F A) → F a → Freer F A
{ "alphanum_fraction": 0.576744186, "avg_line_length": 23.8888888889, "ext": "agda", "hexsha": "e98506e20e19a5e13d38c5d7de6601bf5ecc76d8", "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...
{- LEMMAS FOR BOUNDING THEOREM WITH NEW COMPLEXITY LANGUAGE -} open import Preliminaries open import Source open import Pilot open import Translation-New module Bounding-Lemmas-New where mutual valBound : ∀{τ} → (e : [] Source.|- τ) → val e → [] Pilot.|- ⟨⟨ τ ⟩⟩ → Set valBound .z z-isval E = z ≤s E val...
{ "alphanum_fraction": 0.503139475, "avg_line_length": 58.5240963855, "ext": "agda", "hexsha": "61f6c25b212db34454376e197191e5aa45361446", "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 StateSizedIO.Object where open import Data.Product open import StateSizedIO.Base public {- -- This definition was probably moved to StateSizedIO.Base -- and by accident left here. Delete this. record Interfaceˢ : Set₁ where field Stateˢ : Set Methodˢ : Stateˢ → Set Resultˢ : (s : Stateˢ) ...
{ "alphanum_fraction": 0.560546875, "avg_line_length": 26.4827586207, "ext": "agda", "hexsha": "99d4fead9ced15eb0003ea05501847ef01be07a1", "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 --type-in-type #-} open import Data.Unit open import Data.Product open import Data.List hiding ( concat ) open import Data.String open import Relation.Binary.PropositionalEquality module Spire.Examples.InferredPropositionalDesc where ---------------------------------------------------------------------- e...
{ "alphanum_fraction": 0.381273914, "avg_line_length": 28.9446254072, "ext": "agda", "hexsha": "651eb44520f5e0a6b00974b668efe1cdb063af68", "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...
{-# OPTIONS --without-K #-} 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 open import Data.Product using (_,_) open import Note open import Pitch open import MidiEvent open import Music {-# FOREIGN GHC import ...
{ "alphanum_fraction": 0.6354140127, "avg_line_length": 30.4263565891, "ext": "agda", "hexsha": "4120fe3ca782570d97aab9ac072947b841139e5c", "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-12T...
-- | In this module we show that the substream relation is transitive. open import Size open import Streams open import Relation.Binary.PropositionalEquality as P open import Data.Product open import Function tl' : ∀{A} → Stream A → Stream A tl' s = tl s {∞} {- data Reachable {A : Set} (P : A → Set) : Stream A → Set...
{ "alphanum_fraction": 0.4817629179, "avg_line_length": 32.7634854772, "ext": "agda", "hexsha": "74db0fbdf823a5768069780fa37ea088598d12bb", "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 Bools where open import Agda.Builtin.Bool public renaming (Bool to 𝔹) not : 𝔹 → 𝔹 not true = false not false = true -- T : 𝔹 → Set -- T true = ⊤ -- T false = ⊥ if_then_else_ : ∀ {a} {A : Set a} → 𝔹 → A → A → A if true then t else _ = t if false then _ else f = f _∧_ : 𝔹 → 𝔹 → 𝔹 true ∧ b = b fa...
{ "alphanum_fraction": 0.5522041763, "avg_line_length": 14.8620689655, "ext": "agda", "hexsha": "29f8cd23911db7cc8a26eeb8ac4916657e32c114", "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...
{- Definition of finitely indexed types A type is finitely indexed if, for some `n`, there merely exists a surjective function from `Fin n` to it. Note that a type doesn't need to be a set in order for it to be finitely indexed. For example, the circle is finitely indexed. This definition is weaker than `isFinSet`. ...
{ "alphanum_fraction": 0.7192118227, "avg_line_length": 24.8571428571, "ext": "agda", "hexsha": "cebab1042025dbd929b5c10cca5730571d3ae99a", "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 higher.circle.core where open import equality data S¹ : Set where base : S¹ postulate loop : base ≡ base private module Eliminators' {i}(B : S¹ → Set i) (m : B base) (l : subst B loop m ≡ m) where elim' : (x : S¹) → B x elim'...
{ "alphanum_fraction": 0.5387700535, "avg_line_length": 19.6842105263, "ext": "agda", "hexsha": "70f37ae039250b60fceea25a09afc60a2de2f83e", "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...
open import Type open import Logic.Classical as Logic using (Classical) open import Logic.Predicate as Logic using () module Formalization.ClassicalPropositionalLogic.SequentCalculus ⦃ classical : ∀{ℓ} → Logic.∀ₗ(Classical{ℓ}) ⦄ where import Lvl open import Data open import Data.Boolean import Data.Boolean....
{ "alphanum_fraction": 0.5004937662, "avg_line_length": 45.6394366197, "ext": "agda", "hexsha": "8d5467c2a0107817fe804694bac671c6088dacd8", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
open import Prelude module Bij where record bij (From To : Set) : Set where field convert : From → To inj : ∀{f1 f2} → convert f1 == convert f2 → f1 == f2 surj : (t : To) → Σ[ f ∈ From ] (convert f == t) convert-inv : ∀{F T : Set} {{bijFT : bij F T}} → T → F convert-inv {{bijFT}} t ...
{ "alphanum_fraction": 0.4979338843, "avg_line_length": 39.2432432432, "ext": "agda", "hexsha": "7926a1a134772d4cf56c2f0f2ba8b487d92a658b", "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 Control.Monad.Identity where open import Prelude open import Container.Foldable open import Container.Traversable record Identity {a} (A : Set a) : Set a where constructor mkIdentity field runIdentity : A open Identity public instance FunctorId : ∀ {a} → Functor (Identity {a}) runIdentity (fmap ...
{ "alphanum_fraction": 0.6487158244, "avg_line_length": 30.175, "ext": "agda", "hexsha": "861ceac126452c5a7272fad4afb1f3d65a9890ac", "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-12T18:03:...
------------------------------------------------------------------------ -- Well-typed substitutions -- From ------------------------------------------------------------------------ module Extensions.Fin.TypedSubstitution where import Category.Applicative.Indexed as Applicative open import Data.Fin using (Fin; zero;...
{ "alphanum_fraction": 0.5604571595, "avg_line_length": 32.5521327014, "ext": "agda", "hexsha": "27756f8de22e2fb335ceaed1131032e49e827418", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-12-28T17:38:05.000Z", "max_forks_repo_forks_event_min_datetime": "2021-12-28T...
------------------------------------------------------------------------ -- The Agda standard library -- -- Indexed applicative functors ------------------------------------------------------------------------ -- Note that currently the applicative functor laws are not included -- here. {-# OPTIONS --without-K --safe...
{ "alphanum_fraction": 0.4531438936, "avg_line_length": 28.7652173913, "ext": "agda", "hexsha": "816d31c502b9cf18d899de5523963de9af8644a6", "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...
import Fragment.Algebra.Algebra import Fragment.Algebra.Free import Fragment.Algebra.Free.Atoms import Fragment.Algebra.Free.Base import Fragment.Algebra.Free.Evaluation import Fragment.Algebra.Free.Monad import Fragment.Algebra.Free.Properties import Fragment.Algebra.Free.Syntax import Fragment.Algebra.Homomorphism im...
{ "alphanum_fraction": 0.8809628009, "avg_line_length": 40.0877192982, "ext": "agda", "hexsha": "0f54c52465b70d31a0748d789a66f4c6b5a8ff52", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-06-16T08:04:31.000Z", "max_forks_repo_forks_event_min_datetime": "2021-06-15T...
open import Agda.Builtin.Bool open import Agda.Builtin.List data Singleton : List Bool → Set where singleton : ∀ b → Singleton (b ∷ []) Works : (bs : List Bool) → Singleton bs → Set₁ Works bs s with s ... | singleton b with Set Works .(b ∷ []) s | singleton b | _ = Set Fails : (bs : List Bool) → Singleton bs → Set...
{ "alphanum_fraction": 0.6306532663, "avg_line_length": 26.5333333333, "ext": "agda", "hexsha": "c9a1814151fe64ccb62f3f159a0e86d66ca365e5", "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 Level open import Categories.Category using (Category; _[_,_]) -- Various conclusions that can be drawn from Yoneda -- over a particular Category C module Categories.Yoneda.Properties {o ℓ e : Level} (C : Category o ℓ e) where open import Function.Base using (_$_) open ...
{ "alphanum_fraction": 0.4813155874, "avg_line_length": 46.7904191617, "ext": "agda", "hexsha": "b33ccec73863a338f559cc8cfdc5d2e36ab27b1c", "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 --safe #-} open import Categories.Category using (Category; module Commutation) open import Categories.Category.Cartesian using (Cartesian) -- Defines the following properties of a Category: -- Cartesian.SymmetricMonoidal -- a Cartesian category is Symmetric Monoidal if its induced monoidal...
{ "alphanum_fraction": 0.5506542056, "avg_line_length": 35.1973684211, "ext": "agda", "hexsha": "84670dfe26bfc2a8bbc07778e7d9a42794ef26cc", "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...
module plfa-exercises.Practice4 where open import Relation.Binary.PropositionalEquality using (_≡_; refl; sym; cong) open import Data.Sum using (_⊎_; inj₁; inj₂) open import Data.Product using (_×_ ; ∃-syntax; ∃; _,_) -- renaming (_,_ to ⟨_,_⟩) open import Data.Nat using (ℕ; zero; suc; _+_; _*_; _∸_; _≤_; _≤?_; _≟_; s...
{ "alphanum_fraction": 0.5249764373, "avg_line_length": 42.44, "ext": "agda", "hexsha": "c779329ec21b3ea8b5f2ffc87a4f23c6b53e6a6f", "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": "...
-- Basic intuitionistic modal logic S4, without ∨, ⊥, or ◇. -- Translation between different formalisations of syntax. module BasicIS4.Syntax.Translation where open import BasicIS4.Syntax.Common public import BasicIS4.Syntax.ClosedHilbertSequential as CHS import BasicIS4.Syntax.ClosedHilbert as CH import BasicIS4.Sy...
{ "alphanum_fraction": 0.4593860188, "avg_line_length": 32.4716386555, "ext": "agda", "hexsha": "96dde4e78f44c97e8484e06dd3eb81efcf74cf51", "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 PiQ.AuxLemmas where open import Data.Empty open import Data.Unit hiding (_≟_) open import Data.Sum open import Data.Product open import Data.Maybe open import Relation.Binary.Core open import Relation.Binary open import Relation.Nullary open import Relation.Binary.PropositionalEquality open import PiQ.Syntax ope...
{ "alphanum_fraction": 0.4428274428, "avg_line_length": 27.75, "ext": "agda", "hexsha": "5e604565ef449a0e64f91ff94f01063170b0634c", "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...
{-# OPTIONS --universe-polymorphism #-} module NiceGoals where ------------------------------------------------------------------------ postulate Level : Set zero : Level suc : (i : Level) → Level _⊔_ : Level → Level → Level {-# BUILTIN LEVEL Level #-} {-# BUILTIN LEVELZERO zero #-} {-# BUILTIN LEVEL...
{ "alphanum_fraction": 0.4560301508, "avg_line_length": 19.4146341463, "ext": "agda", "hexsha": "ad6aab2d832e215aa20babe8e8dc074875b572fe", "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 FRP.JS.Nat using ( ℕ ; suc ; _+_ ; _≟_ ; _<_ ) open import FRP.JS.Array using ( Array ; IArray ; [] ; _∷_ ; array ; ⟨⟩ ; ⟨_ ; _,_ ; _⟩ ; lookup ; lookup? ; map ; filter ; _≟[_]_ ; _⊆[_]_ ; _++_ ) open import FRP.JS.Bool using ( Bool ; not ) open import FRP.JS.Maybe using ( Maybe ; just ; nothing ) renaming ...
{ "alphanum_fraction": 0.3555114201, "avg_line_length": 33.9438202247, "ext": "agda", "hexsha": "87aef6fb9b6801059c78b16edd74ffeed2185bb5", "lang": "Agda", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:39:38.000Z", "max_forks_repo_forks_event_min_datetime": "2016-11-07T...
variable S : Set data D (A : Set) : Set1 where d : S → D A
{ "alphanum_fraction": 0.53125, "avg_line_length": 10.6666666667, "ext": "agda", "hexsha": "9804b1c79841a6e1412448dfe80adc6a262c17b4", "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:...
-- Andreas, 2020-04-19, issue #4560, raised by Andrea -- Having both matching on constructor and copattern matching -- for non-eta records leads to loss of subject reduction. open import Agda.Builtin.Equality postulate A : Set a : A record R : Set where constructor con no-eta-equality field X Y : A fo...
{ "alphanum_fraction": 0.6856287425, "avg_line_length": 19.6470588235, "ext": "agda", "hexsha": "c727eb2b2cd9f7d6821989ca97ce06f484f8dd6e", "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...
open import Prelude open import core open import contexts module lemmas-freshG where -- the def above buries the sort of obvious pattern matching we'd like to -- do on the freshness in the conclusion, so we need lemmas that extract -- it for each constructor freshΓ-asc : {A : Set} → {Γ : A ctx} → ∀{e τ} → fres...
{ "alphanum_fraction": 0.5834084761, "avg_line_length": 38.2413793103, "ext": "agda", "hexsha": "2dc307cf6ccda23a09c4417566547145a2521c54", "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 Data.Nat --using (ℕ; suc; zero; _≤?_; _≤_; s≤s; z≤n) open import Data.Bool using (true; false) --open import Relation.Binary.PropositionalEquality using (_≡_; refl) open import Relation.Nullary -- using (Dec; yes; no; _because_) open import Relation.Nullary.Decidable --using (True; fromWitness) --open impor...
{ "alphanum_fraction": 0.6383248731, "avg_line_length": 34.2608695652, "ext": "agda", "hexsha": "7320e15cd6531ced0cf4018986523d96eadb5b0c", "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 dependentProduct2 where postulate A : Set postulate B : A -> Set data AB : Set where p : (a : A) -> B a -> AB π0 : AB -> A π0 (p a b) = a π1 : (ab : AB) -> B (π0 ab) π1 (p a b) = b postulate a : A postulate b : B a ab : AB ab = p a b postulate ab' : AB a' : A a' = π0 ab' b' : B a' b' = π1 ab'
{ "alphanum_fraction": 0.5125, "avg_line_length": 9.4117647059, "ext": "agda", "hexsha": "ff32294fc938a8e290823b71bcb7e671ff96293d", "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": ...
------------------------------------------------------------------------ -- M-types for indexed containers, defined coinductively (in Cubical -- Agda) ------------------------------------------------------------------------ {-# OPTIONS --erased-cubical --safe --guardedness #-} import Equality.Path as P module Contai...
{ "alphanum_fraction": 0.3775556982, "avg_line_length": 48.3680709534, "ext": "agda", "hexsha": "f576746780015e274a6cf4b7789ee97ae471cfdf", "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.Strict.Primitive where data Strict (A : Set) : Set where ! : A → Strict A {-# IMPORT Data.Strict.AgdaFFI #-} {-# COMPILED_DATA Strict Data.Strict.AgdaFFI.Strict Data.Strict.AgdaFFI.Strict #-}
{ "alphanum_fraction": 0.7115384615, "avg_line_length": 26, "ext": "agda", "hexsha": "d559b17c69c1a391aa4928d9a07f5182415a0b01", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:40:23.000Z", "max_forks_repo_forks_event_min_datetime": "2017-08-10T06:12:54.00...
------------------------------------------------------------------------------ -- Definition of FOTC streams using the Agda co-inductive combinators ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# O...
{ "alphanum_fraction": 0.4745387454, "avg_line_length": 32.2619047619, "ext": "agda", "hexsha": "1e842938634c7b6ccbd0a017609fd36e183bf89f", "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 Numeral.Rational.SternBrocot where
{ "alphanum_fraction": 0.880952381, "avg_line_length": 21, "ext": "agda", "hexsha": "bca2a332538552a4c5f0610e1b30417574abcd30", "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": "70f4...
module FFI.Data.Aeson where open import Agda.Builtin.Bool using (Bool) open import Agda.Builtin.String using (String) open import FFI.Data.ByteString using (ByteString) open import FFI.Data.HaskellString using (HaskellString; pack) open import FFI.Data.Maybe using (Maybe) open import FFI.Data.Either using (Either; ma...
{ "alphanum_fraction": 0.7263824885, "avg_line_length": 34.0392156863, "ext": "agda", "hexsha": "a9082d31a25cf0900a184f054857e998bca8e252", "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...
------------------------------------------------------------------------ -- Various utility functions ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Utilities where open import Data.Bool open import Data.Bool.Properties using (T-∧) open import Data....
{ "alphanum_fraction": 0.5190735695, "avg_line_length": 29.36, "ext": "agda", "hexsha": "f1ab593bfde7dfab97cad404bda580ba9983b8fe", "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": "...
------------------------------------------------------------------------ -- Booleans ------------------------------------------------------------------------ {-# OPTIONS --guardedness #-} module Examples.Bool where open import Codata.Musical.Notation open import Data.Bool open import Relation.Binary.PropositionalEqu...
{ "alphanum_fraction": 0.5855181024, "avg_line_length": 22.25, "ext": "agda", "hexsha": "0e9b67207f7b2bccce6d43c696efcb23b9f508d6", "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 #-} module Cubical.Categories.Additive.Instances.Terminal where open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.Categories.Category open import Cubical.Categories.Additive.Base open import Cubical.Categories.Instances.Discrete open import Cubica...
{ "alphanum_fraction": 0.7345360825, "avg_line_length": 34.7462686567, "ext": "agda", "hexsha": "3db94f28f40c5c1591aed1deab022e532f43ddfc", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
------------------------------------------------------------------------ -- A view of the syntax ------------------------------------------------------------------------ module RecursiveTypes.Syntax.UnfoldedOrFixpoint where open import RecursiveTypes.Syntax open import RecursiveTypes.Substitution -- Unfolded types, ...
{ "alphanum_fraction": 0.4873713751, "avg_line_length": 28.8918918919, "ext": "agda", "hexsha": "c8e465c80b712608906a8d829f5ae9ff4507dfff", "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...
-- We define ZigZag-complete relations and prove that quasi equivalence relations -- give rise to equivalences on the set quotients. {-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Relation.ZigZag.Base where open import Cubical.Core.Everything open import Cubical.Foundations.Prelude open import Cubic...
{ "alphanum_fraction": 0.6133561644, "avg_line_length": 33.9534883721, "ext": "agda", "hexsha": "d85d5c671eb090d7c44bea9a6bb885389a2ce0b1", "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 equality where open import equality.core public open import equality.reasoning public open import equality.groupoid public open import equality.calculus public open import equality.inspect public
{ "alphanum_fraction": 0.8189655172, "avg_line_length": 25.7777777778, "ext": "agda", "hexsha": "f053b23b05267ae56bd73fd61c2e82f5fd6fc0cf", "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 Productivity (char : Set) where open import Common.Coinduction infix 50 _⋆ _+ infixl 40 _⊛_ infixl 30 _∣_ data P : Set where ε : P sym : char -> P _⊛_ : ∞ P -> ∞ P -> P _∣_ : ∞ P -> ∞ P -> P mutual _⋆ : P -> P p ⋆ = ♯ ε ∣ ♯ (p +) _+ : P -> P p + = ♯ p ⊛ ♯ (p ⋆...
{ "alphanum_fraction": 0.4751037344, "avg_line_length": 18.5384615385, "ext": "agda", "hexsha": "8aeb24e9452230156ee73d125bc040972413a125", "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...
-- 2012-10-20 Andreas module Issue721a where data Bool : Set where false true : Bool record Foo (b : Bool) : Set where field _*_ : Bool → Bool → Bool data _≡_ {A : Set} (x : A) : A → Set where refl : x ≡ x test : (F : Foo false) (x : Bool) → let open Foo F in _*_ x ≡ (λ x → x) test F x = x -- Don't want t...
{ "alphanum_fraction": 0.595567867, "avg_line_length": 21.2352941176, "ext": "agda", "hexsha": "a6e9e537bdfd95e83f077a0a3793a07e6e08f607", "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 ExtractCaseSplit where open import Data.Maybe open import Agda.Builtin.Bool not : Bool -> Bool not true = false not false = true func : Maybe Bool -> Bool func nothing = false func (just x) = not x open import Data.List func2 : List Bool -> Bool func2 [] = true func2 (x ∷ x₁) = not (func2 x₁)
{ "alphanum_fraction": 0.6948051948, "avg_line_length": 14.6666666667, "ext": "agda", "hexsha": "f9bed5f6eeadbb3ee4bf92cb250aa85f34257637", "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...
open import Data.Product using ( ∃ ; _×_ ; _,_ ) open import Relation.Binary.PropositionalEquality using ( _≡_ ; refl ; trans ; cong₂ ) open import Relation.Unary using ( ∅ ; _∪_ ) open import Web.Semantic.DL.Signature using ( Signature ; CN ; RN ) open import Web.Semantic.Util using ( id ; _∘_ ; Subset ; ⁅_⁆ ) modu...
{ "alphanum_fraction": 0.4986972381, "avg_line_length": 36.9038461538, "ext": "agda", "hexsha": "7edca738a30be61b3ceb81c167424b84a37d682a", "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...
-- Andreas, 2014-05-02 Negative fixities allow now. module _ where infix -1 _+_ infix 0 _*_ postulate _+_ : Set1 → Set2 → Set1 _*_ : Set2 → Set2 → Set2 test = Set + Set1 * Set1
{ "alphanum_fraction": 0.6363636364, "avg_line_length": 14.3846153846, "ext": "agda", "hexsha": "c51ff8f647e1390819c6c6e15cf7ecb74c60c87b", "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...