Search is not available for this dataset
text
string
meta
dict
module Numeral.Sign.Oper0 where open import Numeral.Sign -- Negation −_ : (+|0|−) → (+|0|−) − (➕) = (➖) − (𝟎) = (𝟎) − (➖) = (➕) -- Bounded addition _+_ : (+|0|−) → (+|0|−) → (+|0|−) (➕) + (➕) = (➕) (➕) + (➖) = (𝟎) (➕) + (𝟎) = (➕) (➖) + (➕) = (𝟎) (➖) + (➖) = (➖) (➖) + (𝟎) = (➖) (𝟎) + (➕) = (➕) (𝟎) + (➖) = (➖)...
{ "alphanum_fraction": 0.2058371736, "avg_line_length": 14.4666666667, "ext": "agda", "hexsha": "9da8accdcdafe2bd3a878bcf308c71f8b9ba0ca7", "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 n2o.Network.Core where open import proto.Base open import proto.IO open import n2o.Network.Internal {-# FOREIGN GHC import Network.N2O.Core #-} postulate protoRun : ∀ {F : Set → Set} {A : Set} → F A → List (Proto F A) → N2O F A (Result (F A)) {-# COMPILE GHC protoRun = Network.N2O.Core.protoRun #-}
{ "alphanum_fraction": 0.6719242902, "avg_line_length": 22.6428571429, "ext": "agda", "hexsha": "1661de0ee39990e397db6cc4c52da5f2e3927aad", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical --safe --guardedness #-} module Data.PolyP.Composition where open import Function hiding (_⟨_⟩_) open import Data.Sum open import Data.Sigma open import Level open import Data.Unit open import Data.Nat open import Data.Vec open import Data.Empty open import WellFounded open import Literals.Numbe...
{ "alphanum_fraction": 0.6123101519, "avg_line_length": 24.5294117647, "ext": "agda", "hexsha": "d2ac1ed17c67dd716fd0fb48a66a2bc4494fdcaf", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-11T12:30:21.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-11T...
{-# OPTIONS --cubical --safe #-} module Data.Binary.Multiplication.Properties where open import Prelude open import Data.Binary.Definition open import Data.Binary.Addition open import Data.Binary.Addition.Properties using (+-cong) open import Data.Binary.Multiplication open import Data.Binary.Conversion import Data.N...
{ "alphanum_fraction": 0.4842735896, "avg_line_length": 39.2745098039, "ext": "agda", "hexsha": "cbe5702d8fac49ab9b3a8b3ef3fb97b2ca52495e", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-11T12:30:21.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-11T...
import Lvl open import Structure.Operator.Vector open import Structure.Setoid open import Type module Structure.Operator.Vector.Subspace {ℓᵥ ℓₛ ℓᵥₑ ℓₛₑ} {V : Type{ℓᵥ}} ⦃ equiv-V : Equiv{ℓᵥₑ}(V) ⦄ {S : Type{ℓₛ}} ⦃ equiv-S : Equiv{ℓₛₑ}(S) ⦄ {_+ᵥ_ : V → V → V} {_⋅ₛᵥ_ : S → V → V} {_+ₛ_ _⋅ₛ_ : S → S → S} ...
{ "alphanum_fraction": 0.6991374937, "avg_line_length": 40.2244897959, "ext": "agda", "hexsha": "6e2027db85cf4c8b4d513b6257bc10471387f874", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module plfa-code.Relations where import Relation.Binary.PropositionalEquality as Eq open Eq using (_≡_; refl; cong; sym; trans) open import Data.Nat using (ℕ; zero; suc; _+_; _*_) open import Data.Nat.Properties using (+-comm) open Eq.≡-Reasoning using (begin_; _≡⟨⟩_) open import plfa-code.Reasoning-legacy open impor...
{ "alphanum_fraction": 0.4452021432, "avg_line_length": 25.3456790123, "ext": "agda", "hexsha": "b315cafb37a022c48736248a726f91900222cd4c", "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...
------------------------------------------------------------------------ -- Pointwise equalities can be lifted ------------------------------------------------------------------------ module Stream.Pointwise where open import Codata.Musical.Notation hiding (∞) open import Stream open import Stream.Equality import Str...
{ "alphanum_fraction": 0.4973561431, "avg_line_length": 31.5196078431, "ext": "agda", "hexsha": "a967b51db6b7f8f8af079c1b2de4aa3612734dcf", "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...
-- from http://wiki.portal.chalmers.se/agda/pmwiki.php?n=ReferenceManual.LocalDefinition module Local where data Nat : Set where zero : Nat succ : Nat -> Nat infixl 5 _+_ _+_ : Nat -> Nat -> Nat zero + n = n (succ m) + n = succ (m + n) infixl 6 _*_ _*_ : Nat -> Nat -> Nat zero * _ = zero ...
{ "alphanum_fraction": 0.4741613781, "avg_line_length": 20.4259259259, "ext": "agda", "hexsha": "20158d36df05ce3015237e0c6931bd5fd723f7f1", "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 second-order equational theory was created from the following second-order syntax description: syntax TLC | Λ type N : 0-ary _↣_ : 2-ary | r30 𝟙 : 0-ary _⊗_ : 2-ary | l40 𝟘 : 0-ary _⊕_ : 2-ary | l30 term app : α ↣ β α -> β | _$_ l20 lam : α.β -> α ↣ β | ƛ_ r10 unit : 𝟙 ...
{ "alphanum_fraction": 0.4050814957, "avg_line_length": 35.3559322034, "ext": "agda", "hexsha": "586af86547cc5fa4a0337c1dedd4518949e8a40a", "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...
{-# OPTIONS --omega-in-omega --no-termination-check --overlapping-instances #-} module Light.Implementation.Data.Unit where open import Light.Library.Data.Unit using (Library ; Dependencies) instance dependencies : Dependencies dependencies = record {} instance library : Library dependencies library = record { Impl...
{ "alphanum_fraction": 0.7476851852, "avg_line_length": 28.8, "ext": "agda", "hexsha": "4ab48c08e942aa3458ce290ec6bb304034d8502b", "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": "4...
-- 2018-09-05, reported by Andreas Abel -- The new type-directed rewriting was using the wrong type for -- constructors of parametrized datatypes. {-# OPTIONS --rewriting #-} module _ where module _ (Form : Set) where open import Agda.Builtin.Equality {-# BUILTIN REWRITE _≡_ #-} data Cxt : Set where _∙_ ...
{ "alphanum_fraction": 0.5711678832, "avg_line_length": 21.92, "ext": "agda", "hexsha": "3fe8acfbd1721177f140904b9696445cba75702d", "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 Syntax.Transitivity where import Lvl open import Logic import Structure.Relator.Names as Names open import Structure.Relator.Properties open import Type private variable ℓ₁ ℓ₂ ℓ₃ : Lvl.Level private variable T : Type{ℓ₁} -- The transitivity operator infixl 1000 _🝖_ _🝖_ : ∀{_▫_ : T → T → Stmt{ℓ₂}} ...
{ "alphanum_fraction": 0.5052036199, "avg_line_length": 39.4642857143, "ext": "agda", "hexsha": "cbbefe66809fca43551aaf7033dc5657c03d9537", "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 UniDB.Subst.Inst where open import UniDB.Spec open import UniDB.Subst.Core open import UniDB.Subst.Pair open import UniDB.Subst.Shifts open import UniDB.Morph.Pair open import UniDB.Morph.Shift open import UniDB.Morph.Shifts open import UniDB.Morph.Unit -- These are two unused instances. Just to show that ApHC...
{ "alphanum_fraction": 0.4428840307, "avg_line_length": 39.9248554913, "ext": "agda", "hexsha": "4a9353e58127bb44955e3257fbbe42e610424470", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --copatterns #-} module Issue950a where postulate A : Set record R : Set where field x : A record S : Set where field y : A open R f : A x f = ? -- Bad error: -- Arguments left we cannot split on. TODO: better error message -- when checking that the clause x f = ? has type A -- Better...
{ "alphanum_fraction": 0.6543778802, "avg_line_length": 14.4666666667, "ext": "agda", "hexsha": "9c0e057bb7da555071c236cbc56fed6606ec4e37", "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 FFI.System.Exit where open import Agda.Builtin.Int using (Int) open import Agda.Builtin.IO using (IO) open import Agda.Builtin.Unit using (⊤) data ExitCode : Set where ExitSuccess : ExitCode ExitFailure : Int → ExitCode {-# FOREIGN GHC data AgdaExitCode = AgdaExitSuccess | AgdaExitFailure Integer #-} {-# ...
{ "alphanum_fraction": 0.7651434644, "avg_line_length": 31.3666666667, "ext": "agda", "hexsha": "fcf01395eca5bfb2d677d07b7d7c8a5404f87ce2", "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 Issue566 where open import Common.Level using (Level; _⊔_) data D (a : Level) (A : Set a) : Set a where d : D a A → D a A P-level : (a : Level) (A : Set a) → D a A → Level P-level a A (d x) = P-level a A x P : (a : Level) (A : Set a) (x : D a A) → Set (P-level a A x) P a A (d x) = P a A x postulate a : L...
{ "alphanum_fraction": 0.5216178522, "avg_line_length": 23.9, "ext": "agda", "hexsha": "afb575e5ce7f1489d69133ea6ea677342ca3c986", "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...
-- MIT License -- Copyright (c) 2021 Luca Ciccone and Luca Padovani -- Permission is hereby granted, free of charge, to any person -- obtaining a copy of this software and associated documentation -- files (the "Software"), to deal in the Software without -- restriction, including without limitation the rights to use...
{ "alphanum_fraction": 0.6159816039, "avg_line_length": 43.3520249221, "ext": "agda", "hexsha": "43fb3dd079ddee5e344a43fe48590b814deaa3be", "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 Lvl.MultiFunctions.Proofs where open import Data open import Lvl hiding (𝐒) open import Lvl.MultiFunctions open import Data.Tuple.Raise open import Data.Tuple.Raiseᵣ.Functions open import Lvl.MultiFunctions open import Numeral.Natural open import Relator.Equals open import Syntax.Number max-repeat : ∀{n}{ℓ} →...
{ "alphanum_fraction": 0.6387878788, "avg_line_length": 25, "ext": "agda", "hexsha": "7c33fbee060fbda5ceb30515b63a8cdd81323b4e", "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": "70f...
{-# OPTIONS --safe --warning=error --without-K #-} open import LogicalFormulae open import Setoids.Setoids open import Functions.Definition open import Sets.EquivalenceRelations open import Rings.Definition module Rings.Divisible.Lemmas {a b : _} {A : Set a} {S : Setoid {a} {b} A} {_+_ _*_ : A → A → A} (R : Ring S _+...
{ "alphanum_fraction": 0.6825775656, "avg_line_length": 40.5483870968, "ext": "agda", "hexsha": "70623075906105b8808b7011e1efe30267009678", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-29T13:23:07.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-29T...
{-# OPTIONS --without-K --safe #-} open import Categories.Category -- Definition of the Arrow Category of a Category C module Categories.Category.Construction.Arrow {o ℓ e} (C : Category o ℓ e) where open import Level open import Data.Product using (_,_; _×_; map; zip) open import Function using (_$_) open import Rel...
{ "alphanum_fraction": 0.5548442168, "avg_line_length": 27.5647058824, "ext": "agda", "hexsha": "d7dfc7a0f38a7b766948a510c0a5b755a1c1fccd", "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 Fun (A B : Set) : Set where fun : (A → B) → Fun A B syntax fun (λ x → y) = fn x , y foo : ∀ {A} → Fun A A → A foo (fn x , y) = y
{ "alphanum_fraction": 0.4604316547, "avg_line_length": 15.4444444444, "ext": "agda", "hexsha": "016a838a043ab21092c7a5688ebef01025d49772", "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...
------------------------------------------------------------------------ -- Coinductive lists ------------------------------------------------------------------------ module Data.Colist where open import Coinduction open import Data.Bool using (Bool; true; false) open import Data.Maybe using (Maybe; ...
{ "alphanum_fraction": 0.4214368037, "avg_line_length": 28.2934782609, "ext": "agda", "hexsha": "94519bcc9d6641c57639e2c66c8ee81831c97e81", "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...
open import Categories open import Monads module Monads.CatofAdj.TermAdj {a b}{C : Cat {a}{b}}(M : Monad C) where open import Library open import Functors open import Monads.CatofAdj M open import Categories.Terminal open import Monads.CatofAdj.TermAdjObj M open import Monads.CatofAdj.TermAdjHom M open import Monads....
{ "alphanum_fraction": 0.6814159292, "avg_line_length": 28.25, "ext": "agda", "hexsha": "7949c6a9d1eec0e026e3dd6dcd48c52837b158bc", "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...
{- Finitely presented algebras. An R-algebra A is finitely presented, if there merely is an exact sequence of R-modules: (a₁,⋯,aₘ) → R[X₁,⋯,Xₙ] → A → 0 -} {-# OPTIONS --safe #-} module Cubical.Algebra.CommAlgebra.FPAlgebra where open import Cubical.Foundations.Prelude open import Cubical.Data.FinData open i...
{ "alphanum_fraction": 0.7103499628, "avg_line_length": 30.5227272727, "ext": "agda", "hexsha": "8e1d74d9fd9ed0fba444265576757279638c2fd7", "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 Level renaming (zero to lzero ; suc to lsuc) open import Syntax open import Data.List using (length ; [] ; _∷_ ) renaming ( _++_ to _++L_ ) open import Data.Vec using ([] ; _∷_ ) renaming ( _++_ to _++V_ ) open import Data.Vec.Relation.Unary.All using (All ; [] ; _∷_) open i...
{ "alphanum_fraction": 0.5206394042, "avg_line_length": 34.2351648352, "ext": "agda", "hexsha": "48a9fbb40570a2bd17e529a22f425e56b4358751", "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 --experimental-lossy-unification #-} module Cubical.Algebra.Polynomials.Multivariate.Properties where open import Cubical.Foundations.Prelude open import Cubical.Data.Nat renaming(_+_ to _+n_; _·_ to _·n_) open import Cubical.Data.Vec open import Cubical.Algebra.Ring open import Cubical.Algebra.Co...
{ "alphanum_fraction": 0.4201866978, "avg_line_length": 46.8306010929, "ext": "agda", "hexsha": "8c9564d6045a61ce966670df1ff8fb6372bde71b", "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 #-} open import Cubical.Foundations.Everything renaming (_⁻¹ to _⁻¹ᵖ; assoc to ∙-assoc) open import Function.Base using (_∋_; _$_) open import Cubical.Data.Sum.Base renaming (_⊎_ to infixr 4 _⊎_) open import Cubical.HITs.PropositionalTruncation.Base -- ∣_∣ open import Cubical.H...
{ "alphanum_fraction": 0.3854431257, "avg_line_length": 59.1612021858, "ext": "agda", "hexsha": "fa4c1d1d274da2f789f1448866036ccef04eee66", "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...
-- Liang-Ting, 2022-01-14, issue #5734 {-# OPTIONS --cubical-compatible #-} open import Agda.Builtin.Unit open import Agda.Builtin.List open import Agda.Builtin.Sigma open import Agda.Builtin.Reflection renaming (returnTC to return; bindTC to _>>=_) open import Agda.Primitive private variable A B : Set _ revers...
{ "alphanum_fraction": 0.6527415144, "avg_line_length": 24.9782608696, "ext": "agda", "hexsha": "9bf877918b90cc6e997d1a291c143a0a54abbecf", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module _ where open import Common.IO renaming (then to _>>_ ) open import Agda.Builtin.Unit open import Agda.Builtin.Bool open import Agda.Builtin.Equality using (_≡_; refl) open import Agda.Builtin.Float renaming ( primFloatEquality to _≡ᵇ_ ; primFloatInequality to _≤ᵇ_ ...
{ "alphanum_fraction": 0.5602661924, "avg_line_length": 47.3668478261, "ext": "agda", "hexsha": "117ab25f63014c9dc44a615d1e32d6866ce01181", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
open import Prelude open import core module ground-decidable where ground-decidable : (τ : htyp) → (τ ground) + ((τ ground) → ⊥) ground-decidable b = Inl GBase ground-decidable ⦇-⦈ = Inr (λ ()) ground-decidable (b ==> b) = Inr (λ ()) ground-decidable (b ==> ⦇-⦈) = Inr (λ ()) ground-decidable (b ==> τ' ==> ...
{ "alphanum_fraction": 0.4796978281, "avg_line_length": 42.36, "ext": "agda", "hexsha": "5c3d8a0bb6a3c0c3ae976bc71c913c83e53ae12e", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-09-13T18:20:02.000Z", "max_forks_repo_forks_event_min_datetime": "2019-09-13T18:20:02...
module ListsWithIrrelevantProofs where data _≡_ {A : Set}(a : A) : A → Set where refl : a ≡ a data ℕ : Set where zero : ℕ suc : ℕ → ℕ {-# BUILTIN NATURAL ℕ #-} postulate _≤_ : ℕ → ℕ → Set p1 : 0 ≤ 1 p2 : 0 ≤ 1 -- descending lists indexed by upper bound for largest element data SList (bound : ℕ) ...
{ "alphanum_fraction": 0.5707620529, "avg_line_length": 16.9210526316, "ext": "agda", "hexsha": "18a60b11fa16fcabeb708d228c01e7a98ed194a1", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Algebra.Monoid.Base where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Foundations.Equiv.HalfAdjoint open import Cubical.Foundations.Function open import Cubical.Foundations.HLevels open impor...
{ "alphanum_fraction": 0.6129913312, "avg_line_length": 35.6822033898, "ext": "agda", "hexsha": "7bf7ea8e8b2a583bb3a63f74c7b2a496b51d8b79", "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 Nat : Set where zero : Nat suc : Nat → Nat {-# BUILTIN NATURAL Nat #-} _+_ : (m n : Nat) → Nat zero + n = n suc m + n = suc (m + n) data Th : (m n : Nat) → Set where os : ∀ {m n} → Th m n → Th (suc m) (suc n) Fin : Nat → Set Fin = Th (suc zero) infixl 6 _++_ inf...
{ "alphanum_fraction": 0.4621513944, "avg_line_length": 20.3513513514, "ext": "agda", "hexsha": "8af02ee8fbb2f88b1467223fabb2cc2cdcef8179", "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 --prop --rewriting #-} module Examples.Sorting.Sequential.Comparable where open import Calf.CostMonoid open import Calf.CostMonoids costMonoid = ℕ-CostMonoid open import Data.Nat using (ℕ) open CostMonoid costMonoid using (ℂ) fromℕ : ℕ → ℂ fromℕ n = n open import Examples.Sorting.Comparable costMonoid...
{ "alphanum_fraction": 0.7754491018, "avg_line_length": 19.6470588235, "ext": "agda", "hexsha": "061da231777db5bd1355e1662709cf8f9557e7b0", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-01-29T08:12:01.000Z", "max_forks_repo_forks_event_min_datetime": "2021-10-06T...
module Type.Properties.Homotopy where open import Functional import Lvl open import Numeral.Natural open import Structure.Setoid open import Type open import Type.Dependent open import Syntax.Function private variable ℓ ℓ₁ ℓ₂ ℓₑ : Lvl.Level private variable T A B : Type{ℓ} private variable n : ℕ module _ {ℓ} ⦃ ...
{ "alphanum_fraction": 0.6492048644, "avg_line_length": 32.3939393939, "ext": "agda", "hexsha": "89d2a5a463182f3b5743f9be809345b4d28a3cf2", "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 Common.Prelude _test_test_ : Nat → Nat → Nat → Nat m test_test n = λ i → m + i + n
{ "alphanum_fraction": 0.6458333333, "avg_line_length": 19.2, "ext": "agda", "hexsha": "754c32f37acfb41bb1d8d335df398fb0f8974574", "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...
-- A brief Agda tutorial. -- Martín Escardó, 7 Sep 2012 (updated to be compatible with Agda 2.4.2 2 Oct 2014). -- -- Agda is a computer-implemented dialect of Martin-Löf type theory. -- It can both check and run proofs. -- -- Propositions are types (also called sets, indicated by the keyword -- Set), and their witness...
{ "alphanum_fraction": 0.6218299858, "avg_line_length": 32.1736292428, "ext": "agda", "hexsha": "e045909748249bf111d425a176c91b47f6031133", "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...
------------------------------------------------------------------------------ -- Testing the translation of definitions ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymor...
{ "alphanum_fraction": 0.4243902439, "avg_line_length": 27.9545454545, "ext": "agda", "hexsha": "ccbf48885c9ad09f0886a49f3dea68cbc2e0f18f", "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 --no-syntactic-equality #-} open import Agda.Primitive variable ℓ : Level A : Set ℓ P : A → Set ℓ
{ "alphanum_fraction": 0.6271186441, "avg_line_length": 13.1111111111, "ext": "agda", "hexsha": "c710fa4c6b51730268ad49fe9eb0f0e5f60540a6", "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 --safe #-} module Cubical.Algebra.CommRingSolver.EvalHom where open import Cubical.Foundations.Prelude open import Cubical.Data.Nat using (ℕ) open import Cubical.Data.Int.Base hiding (_+_ ; _·_ ; -_) open import Cubical.Data.FinData open import Cubical.Data.Vec open import Cubical.Data.Bool open import Cu...
{ "alphanum_fraction": 0.4502549988, "avg_line_length": 44.7572463768, "ext": "agda", "hexsha": "207e82bc85da54b13f56bdba2db9ef5e28f847d2", "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...
-- Applicative with law {-# OPTIONS --without-K --safe #-} module Experiment.Applicative where open import Data.Product as Prod open import Data.Unit open import Function.Base open import Relation.Binary.PropositionalEquality record Functor (F : Set → Set) : Set₁ where field fmap : ∀ {A B} → (A → B) → F A →...
{ "alphanum_fraction": 0.4306936416, "avg_line_length": 37.1244635193, "ext": "agda", "hexsha": "bdfe8d84591c935afaf139e1d7b2607c242c3f4c", "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...
------------------------------------------------------------------------------ -- FOTC version of a nested recursive function ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-po...
{ "alphanum_fraction": 0.4881057269, "avg_line_length": 31.5277777778, "ext": "agda", "hexsha": "d4e9e2fb51d324ee2bfc0dbbb9dfdb6b62cfd0b7", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-19T...
{-# OPTIONS --without-K --rewriting #-} open import HoTT open import homotopy.Bouquet {- Various lemmas that will be used in cohomology.DisjointlyPointedSet. Many of them, for example the choice lemma about coproducts, should be put into core/. -} module homotopy.DisjointlyPointedSet where module _ {i} where is-...
{ "alphanum_fraction": 0.5173774473, "avg_line_length": 35.4247311828, "ext": "agda", "hexsha": "fa2c77fe215254d73e6a753f940d09531a5f2805", "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...
------------------------------------------------------------------------ -- Normalisation by evaluation ------------------------------------------------------------------------ import Axiom.Extensionality.Propositional as E import Level open import Data.Universe -- The code makes use of the assumption that propositio...
{ "alphanum_fraction": 0.4743921366, "avg_line_length": 35.4678899083, "ext": "agda", "hexsha": "23f2816284495c7828793df5804b81a580c84e57", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
------------------------------------------------------------------------ -- The Agda standard library -- -- Showing natural numbers ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Nat.Show where open import Data.Nat open import Relation.Nullary....
{ "alphanum_fraction": 0.5795121951, "avg_line_length": 27.7027027027, "ext": "agda", "hexsha": "3b2233c93f4d5c67e1ea6b7c2b4f467c9be412f0", "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 Issue641 where Foo : Set Foo = Set
{ "alphanum_fraction": 0.7380952381, "avg_line_length": 10.5, "ext": "agda", "hexsha": "6d8376d264b145f056535de8694c2910275f0fef", "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 --no-import-sorts --safe #-} module Cubical.Algebra.Group.Subgroup where open import Cubical.Core.Everything open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.Data.Sigma open import Cubical.Algebra open import Cubical.Algebra.Group.Morphism open ...
{ "alphanum_fraction": 0.6733735748, "avg_line_length": 23.6666666667, "ext": "agda", "hexsha": "819cb2cd7193bc4830150da229a4a71564c21e3f", "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...
-- An ATP definition must be used with functions. -- This error is detected by Syntax.Translation.ConcreteToAbstract. module ATPBadDefinition1 where data Bool : Set where false true : Bool {-# ATP definition false #-}
{ "alphanum_fraction": 0.7544642857, "avg_line_length": 20.3636363636, "ext": "agda", "hexsha": "fa02c7b8cd5ed225cc23a65cff54d33cc44d6b00", "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...
-- Andreas, 2017-01-20, issue #2329 -- Neutral sizes cannot be used by the size solver, -- thus, should be handled by coerceSize. -- {-# OPTIONS -v tc:10 #-} -- {-# OPTIONS -v tc.conv.coerce:20 #-} -- {-# OPTIONS -v tc.size:20 #-} -- {-# OPTIONS -v tc.size.solve:50 #-} open import Agda.Builtin.Size record R (i : Si...
{ "alphanum_fraction": 0.5651376147, "avg_line_length": 18.7931034483, "ext": "agda", "hexsha": "20be4f0630f18af1ca5786bcecfc58203b373d8f", "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-15T...
module VecMap where open import Prelude map : forall {A B n} -> (A -> B) -> Vec A n -> Vec B n map f xs = {!!}
{ "alphanum_fraction": 0.5663716814, "avg_line_length": 16.1428571429, "ext": "agda", "hexsha": "740bc3e199add219e2a6ab5a4b7e5f0c39648692", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
open import Relation.Binary.PropositionalEquality using (_≡_; refl; sym) open import Function.Equivalence using (_⇔_; equivalence; Equivalence) open import Data.Bool using (Bool; true; false; if_then_else_) open import Data.Product using (_×_; _,_; proj₁; proj₂) open import Data.Sum using (_⊎_) open import IMP open im...
{ "alphanum_fraction": 0.5267363245, "avg_line_length": 38.7380952381, "ext": "agda", "hexsha": "0876315b0f5e07413e9b76fd39e03fb5317d2f7b", "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 #-} module DescFix where open import DescTT aux : (C : Desc)(D : Desc)(P : Mu C -> Set)(x : [| D |] (Mu C)) -> Set aux C id P (con y) = P (con y) * aux C C P y aux C (const K) P k = Unit aux C (prod D D') P (s , t) = aux C D P s * aux C D' P t aux C (sigma S T) P (s , t)...
{ "alphanum_fraction": 0.464, "avg_line_length": 31.976744186, "ext": "agda", "hexsha": "0178a67fd129f47ed17d7eba8efcc324ffd95217", "lang": "Agda", "max_forks_count": 12, "max_forks_repo_forks_event_max_datetime": "2022-02-11T01:57:40.000Z", "max_forks_repo_forks_event_min_datetime": "2016-08-14T21:36:3...
-- Andreas, 2014-09-23 -- Syntax declaration for overloaded constructor. -- {-# OPTIONS -v scope.operators:50 #-} syntax c x = ⟦ x ⟧ data D1 : Set where c : D1 data D2 : Set where c : D1 → D2 test : D2 test = ⟦ c ⟧ -- Should work.
{ "alphanum_fraction": 0.6058091286, "avg_line_length": 13.3888888889, "ext": "agda", "hexsha": "9758f755207d822e5a7d58d8ca1f1d9cc18846fc", "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...
-- P: (vcd) <E[send c v]> | <F[recv d]> --> (vcd) <E[c]> | <F[(d,v)]> -- P: (vcd) <E[close c]> | <F[wait d]> --> (vcd) <E[()]> | <F[()]> module Properties.StepCloseWait where open import Data.Maybe hiding (All) open import Data.List open import Data.List.All open import Data.Product open import Data.Sum open impor...
{ "alphanum_fraction": 0.5641163793, "avg_line_length": 29, "ext": "agda", "hexsha": "3efed919c078141230db123d6f14c3e6a219fca6", "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": "c22...
module Prelude.Level where open import Agda.Primitive public using (Level) renaming (lzero to zero; lsuc to suc; _⊔_ to max)
{ "alphanum_fraction": 0.7293233083, "avg_line_length": 22.1666666667, "ext": "agda", "hexsha": "80fe213f5d17930aa11cc27d7f10a2101d3db14d", "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...
open import Everything module Test.Symmetrical where test-𝓢ymmetrical𝓢ymmetry : ∀ {𝔬} {𝔒 : Ø 𝔬} {ℓ} {_∼_ : 𝔒 → 𝔒 → Ø ℓ} ⦃ _ : Symmetry.class _∼_ ⦄ → Symmetry.type _∼_ -- test-𝓢ymmetrical𝓢ymmetry = symmetrical _ _ -- FIXME no longer works after 𝓢ymmetrical𝓢ymmetry was "rationalised" t...
{ "alphanum_fraction": 0.4566655064, "avg_line_length": 28.1666666667, "ext": "agda", "hexsha": "9f5621fb2409415adcebcdf89e7d43ef3cdb9e76", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --rewriting #-} module DualLMRefined where open import Data.Bool open import Data.Nat hiding (compare) open import Data.Nat.Properties open import Data.Fin hiding (_+_) open import Data.Product open import Function open import Relation.Binary.PropositionalEquality hiding (Extensionality) open import Agda.B...
{ "alphanum_fraction": 0.5814800291, "avg_line_length": 40.0246636771, "ext": "agda", "hexsha": "234a6affb8e5961024afba6d03f3eee8693eabf4", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Algebra.RingSolver.Solver where open import Cubical.Foundations.Prelude open import Cubical.Data.FinData open import Cubical.Data.Nat using (ℕ) open import Cubical.Data.Nat.Order using (zero-≤) open import Cubical.Data.Vec.Base open import Cubical.Alge...
{ "alphanum_fraction": 0.4652130254, "avg_line_length": 46.1655629139, "ext": "agda", "hexsha": "7eac9627c0ceceabd863a633b4a950ed728ffc41", "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 Number.Instances.Nat where open import Agda.Primitive renaming (_⊔_ to ℓ-max; lsuc to ℓ-suc; lzero to ℓ-zero) open import Cubical.Foundations.Everything renaming (_⁻¹ to _⁻¹ᵖ; assoc to ∙-assoc) open import Cubical.Foundations.Logic renaming (inl to inlᵖ; inr to inrᵖ)...
{ "alphanum_fraction": 0.5270805812, "avg_line_length": 48.2724637681, "ext": "agda", "hexsha": "337a3a286b9e52ae0d2582d657309315f76dafc7", "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...
{- https://lists.chalmers.se/pipermail/agda/2013/006033.html http://code.haskell.org/~Saizan/unification/ 18-Nov-2013 Andrea Vezzosi -} module Unify-monolithic-EnhancedTerm where -- some equivalences needed to adapt Tactic.Nat to the standard library module EquivalenceOf≤ where open import Agda.Builtin.Equality op...
{ "alphanum_fraction": 0.460938415, "avg_line_length": 41.8109696376, "ext": "agda", "hexsha": "b31f3bfa821a2e72c8c35b5fe7ffe7d64c5d3ef4", "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...
------------------------------------------------------------------------------ -- The Collatz function: A function without a termination proof ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS...
{ "alphanum_fraction": 0.390070922, "avg_line_length": 37.6, "ext": "agda", "hexsha": "70aeb1fd3d156f9b069618f73d938bfc933a4e15", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-19T14:18:30.0...
module STLC.Kovacs.Completeness where open import STLC.Kovacs.Normalisation public open import STLC.Kovacs.Convertibility public -------------------------------------------------------------------------------- -- (_≈_) infix 3 _≫_ _≫_ : ∀ {A Γ} → Γ ⊢ A → Γ ⊩ A → Set _≫_ {⎵} {Γ} M N = M ∼ embⁿᶠ N _≫_ {A ⇒ B}...
{ "alphanum_fraction": 0.2620087336, "avg_line_length": 27.4154929577, "ext": "agda", "hexsha": "9bd8b56a10f14863dec9d4ca99087118ad008866", "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...
------------------------------------------------------------------------ -- Upper bounds of colists containing natural numbers ------------------------------------------------------------------------ module Upper-bounds where open import Equality.Propositional open import Logical-equivalence using (_⇔_) open import P...
{ "alphanum_fraction": 0.444297608, "avg_line_length": 32.1089108911, "ext": "agda", "hexsha": "93e2c7dcc2f0e29f570fbdc03a78a5963d293075", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
{-# OPTIONS --without-K #-} open import Base module Algebra.FreeGroupAsReducedWords {i} (A : Set i) (eq : has-dec-eq A) where A-is-set : is-set A A-is-set = dec-eq-is-set eq data word : Set i where ε : word _∷_ : A → word → word _′∷_ : A → word → word is-reduced : word → Set i is-reduced ε = unit is-reduced ...
{ "alphanum_fraction": 0.5769131888, "avg_line_length": 41.675, "ext": "agda", "hexsha": "0e6a9aa1ef2e36f2dfd66ad80034cbf7ef4f7dff", "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-10T01:48:...
{- Types Summer School 2007 Bertinoro Aug 19 - 31, 2007 Agda Ulf Norell -} module Filter where open import Nat data Bool : Set where false : Bool true : Bool infixr 40 _::_ data List (A : Set) : Set where [] : List A _::_ :...
{ "alphanum_fraction": 0.4961685824, "avg_line_length": 19.6981132075, "ext": "agda", "hexsha": "d5a4ab741e949572bd2caebb13922bf097195665", "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 local where data Nat : Set where zero : Nat suc : Nat -> Nat infixr 15 _::_ data List (A : Set) : Set where nil : List A _::_ : A -> List A -> List A reverse : {A : Set} -> List A -> List A reverse {A} xs = rev xs nil where rev : List A -> List A -> List A rev nil ys = ys rev (...
{ "alphanum_fraction": 0.5382585752, "avg_line_length": 15.7916666667, "ext": "agda", "hexsha": "82d4598f7a2edb3371a0f7acd08d85a29e1e80d8", "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 file contains: - Rijke finiteness is closed under forming Σ-type. -} {-# OPTIONS --safe #-} module Cubical.Data.FinType.Sigma where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.HITs.SetTruncation as Set open import Cubical.HITs.SetTruncation.Fibers open...
{ "alphanum_fraction": 0.6500809061, "avg_line_length": 29.4285714286, "ext": "agda", "hexsha": "eb3f949c70600faf769c793b1cf0ac43d1e64d13", "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...
------------------------------------------------------------------------------ -- Comparing styles for equational reasoning ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-poly...
{ "alphanum_fraction": 0.4527959332, "avg_line_length": 24.8108108108, "ext": "agda", "hexsha": "fe949cdc997178e2299d47b9405593b00f354b06", "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 _ where data N : Set where zero : N suc : N → N record P : Set where constructor p field fst : N snd : N open P -- f = λ z → z internally f : P → P f z = p (fst z) (snd z) -- This should also be λ z → z, but was not due to #2157. g : P → P g (p x y) = p x y
{ "alphanum_fraction": 0.5344827586, "avg_line_length": 13.1818181818, "ext": "agda", "hexsha": "b5111526055bfe24310a2e603a42bcfeba5dd6d1", "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 --safe --without-K #-} module JVM.Types where open import Data.Empty using (⊥) open import Data.Unit using (⊤; tt) open import Data.Product open import Data.List open import Data.String open import Relation.Binary open import Relation.Binary.PropositionalEquality open import Relation.Nullary.Decidable ope...
{ "alphanum_fraction": 0.6162420382, "avg_line_length": 23.2592592593, "ext": "agda", "hexsha": "a78b6a6c3dd39529300103082172ce560cde1b09", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-12-28T17:37:15.000Z", "max_forks_repo_forks_event_min_datetime": "2021-12-28T...
{- The Existence of Smith Normal Form for Integer Matrices (KANG Rongji, Jan. 2022) -} {-# OPTIONS --safe #-} module Cubical.Algebra.IntegerMatrix.Smith.Normalization where open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.Data.Nat hiding (_·_) renaming (_+_ t...
{ "alphanum_fraction": 0.6367588933, "avg_line_length": 35.8865248227, "ext": "agda", "hexsha": "a3a2a33d1b0bba75e41095a7d73d2abb4beb5e2f", "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 SolutionsSession1 where open import Part1 hiding (B) variable B : A → Type ℓ -- Solutions to ExerciseSession1 -- Exercise 1: funExtDep : {f g : (x : A) → B x} → ((x : A) → f x ≡ g x) → f ≡ g funExtDep p i x = p x i -- Exercise 2: congP : {x y : A} {B : A → Typ...
{ "alphanum_fraction": 0.5175983437, "avg_line_length": 23.3709677419, "ext": "agda", "hexsha": "964c6e4e0b22728db2f86ea5d9621872df96fb8b", "lang": "Agda", "max_forks_count": 14, "max_forks_repo_forks_event_max_datetime": "2022-03-22T19:37:21.000Z", "max_forks_repo_forks_event_min_datetime": "2021-03-19...
{-# OPTIONS --cubical --no-import-sorts --postfix-projections --safe #-} module Cubical.Categories.TypesOfCategories.TypeCategory where open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.Foundations.Equiv open import Cubical.Data.Sigma import Cubical.Functions.Fibratio...
{ "alphanum_fraction": 0.4504377295, "avg_line_length": 37.670212766, "ext": "agda", "hexsha": "3b74ccb02d979699cd578502b7dd80183960ff01", "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...
-- This bug was reported by Christian Sattler. (I modified his example -- slightly.) -- {-# OPTIONS -v tc.meta.assign:49 #-} module Issue903 where record T : Set where constructor tt postulate Id : (A : Set) → A → Set e : (B : Set) (f : T → B) → Id B (f tt) → Id (T → B) f k : (P : Set → Set) (u : P T) → I...
{ "alphanum_fraction": 0.5770609319, "avg_line_length": 23.25, "ext": "agda", "hexsha": "48426ab2e6e3ca5c05dc5dd8a55941c1c4874e9e", "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:...
-- Andreas, 2017-06-14, issue #2603 -- reported by rfindler, shrunk test case by Ulf -- {-# OPTIONS -v tc.conv:40 -v tc.conv.atom:50 -v tc:80 -v tc.meta.assign:70 #-} {-# OPTIONS --allow-unsolved-metas #-} open import Agda.Builtin.Equality data List (A : Set) : Set where [] : List A postulate Signal : Set dat...
{ "alphanum_fraction": 0.6619354839, "avg_line_length": 20.3947368421, "ext": "agda", "hexsha": "a0175e3274dfe8203a003332c102357b0a3a4a87", "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 Prelude.Fin where open import Prelude.Eq open import Prelude.Nat data Fin : Nat -> Set where fz : ∀{n} -> Fin (S n) fs : ∀{n} -> Fin n -> Fin (S n) forget : {n : Nat} -> Fin n -> Nat forget fz = Z forget (fs n) = S (forget n) inject : (n : Nat) -> Fin (S n) inject Z = fz inject (S n) = fs (inject n) ...
{ "alphanum_fraction": 0.5438596491, "avg_line_length": 19, "ext": "agda", "hexsha": "bcd8ec4ffd940f44530bf16b6f04a0abd0600dd2", "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:18.00...
module Thesis.Lang where open import Thesis.Syntax public open import Thesis.Environments public ⟦_⟧Const : ∀ {τ} → Const τ → ⟦ τ ⟧Type ⟦ unit ⟧Const = tt ⟦ lit n ⟧Const = n ⟦ plus ⟧Const = _+_ ⟦ minus ⟧Const = _-_ ⟦ cons ⟧Const v1 v2 = v1 , v2 ⟦ fst ⟧Const (v1 , v2) = v1 ⟦ snd ⟧Const (v1 , v2) = v2 ⟦ linj ⟧Const v1 ...
{ "alphanum_fraction": 0.5930122757, "avg_line_length": 31.1470588235, "ext": "agda", "hexsha": "20f96b3bc3593229e09f75cce6df5153eea6e5fb", "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-18T...
{-# OPTIONS --cubical --safe #-} module Cubical.HITs.Ints.HAEquivInt.Base where open import Cubical.Foundations.Prelude open import Cubical.Foundations.HAEquiv data HAEquivInt : Type₀ where zero : HAEquivInt suc : HAEquivInt -> HAEquivInt -- suc is a HAEquiv: pred : HAEquivInt -> HAEquivInt suc-pred : ∀ z...
{ "alphanum_fraction": 0.6656101426, "avg_line_length": 26.2916666667, "ext": "agda", "hexsha": "560ee5e8763625fcd32381e6d0cea8b373cf3b5e", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
------------------------------------------------------------------------ -- The Agda standard library -- -- Strings: builtin type and basic operations ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.String.Base where open import Data.Nat.Base as...
{ "alphanum_fraction": 0.5885826772, "avg_line_length": 25.8305084746, "ext": "agda", "hexsha": "af017b2d8dbca2fb51a3ce1266f24561cd2ba34c", "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 Algebra.Bundles using (Semiring) -- Credit: This definition is taken from the stdlib issue #1175 -- As given by @MatthewDaggitt and @mechvel module Definitions.Semiring {α α≈} (R : Semiring α α≈) where open Semiring R record NonZero (x : Carrier) : Set α≈ where ...
{ "alphanum_fraction": 0.6753926702, "avg_line_length": 23.875, "ext": "agda", "hexsha": "7cd7654b58328c39d0085354770a0f64ed44ef57", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
{-# OPTIONS --without-K #-} open import library.Basics hiding (Type ; Σ ; S) open import library.types.Sigma open import Sec2preliminaries open import Sec3hedberg open import Sec4hasConstToSplit open import Sec5factorConst open import Sec6hasConstToDecEq open import Sec7populatedness module Sec8taboos where -- S...
{ "alphanum_fraction": 0.516381483, "avg_line_length": 32.0808510638, "ext": "agda", "hexsha": "68aa2f293d3b2ac5e047dceee4a7ad7c60a91604", "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 Issue268 where module Example₁ where open import Common.Coinduction module Record where record Stream : Set where constructor cons field tail : ∞ Stream module Data where data Stream : Set where cons : ∞ Stream → Stream -- open Data open Record id : Stream → S...
{ "alphanum_fraction": 0.5470232959, "avg_line_length": 15.6621621622, "ext": "agda", "hexsha": "7cb9e40f4b32a3f00e9c6d47feadce21d0f38bdf", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --safe #-} module Cubical.Algebra.Group.DirProd where open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.Data.Sigma open import Cubical.Algebra.Group.Base open import Cubical.Algebra.Monoid open import Cubical.Algebra.Semigroup open GroupStr open IsGroup hi...
{ "alphanum_fraction": 0.5110565111, "avg_line_length": 43.6071428571, "ext": "agda", "hexsha": "ad3f0b4e5c67aa2a7318e913c5866110bda8a9c8", "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 --warning=error --allow-unsolved-metas #-} -- This file contains everything that cannot be compiled in --safe mode. --open import Lists.SortList module Everything.Unsafe where
{ "alphanum_fraction": 0.7486910995, "avg_line_length": 23.875, "ext": "agda", "hexsha": "aac3ee53d172c3e479a5f5cd148a052535827562", "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-29T13:23:0...
module StrongArrows where open import Library open import Categories open import Functors open import MonoidalCat open import WeakArrows record SArrow {l m}(J : Monoidal {l}{m}) : Set (lsuc (l ⊔ m)) where constructor sarrow open Monoidal J open Cat C open Fun field A : Arrow C open Arrow A field fst' : ...
{ "alphanum_fraction": 0.6574307305, "avg_line_length": 20.8947368421, "ext": "agda", "hexsha": "7ea81484f79d040154b5d1ad23b7fc399c3c5664", "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...
{- Functions between structures S and T: X ↦ S X → T X -} {-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Structures.Function where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Foundations.Function open import Cubical.Foundations.Isomorphism open...
{ "alphanum_fraction": 0.6584089323, "avg_line_length": 34.5301204819, "ext": "agda", "hexsha": "e0437624b8909a6a665f8a916d6bffdd67a16dd4", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module examplesPaperJFP.triangleRightOperator where _▹_ : ∀{A B : Set} → A → (A → B) → B a ▹ f = f a
{ "alphanum_fraction": 0.5833333333, "avg_line_length": 21.6, "ext": "agda", "hexsha": "72428a32eda14aed249431bf99be5bcf7ca51afd", "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-01T15:02:37....
{- 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.Base.PKCS open import LibraBFT.Base.Types open import Lib...
{ "alphanum_fraction": 0.626035503, "avg_line_length": 54.5161290323, "ext": "agda", "hexsha": "535166f5e71e14e1ec8a6842bfbc0347ef0180db", "lang": "Agda", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2022-02-18T01:04:32.000Z", "max_forks_repo_forks_event_min_datetime": "2020-12-16T1...
{-# OPTIONS --cubical-compatible #-} postulate A : Set B : A → Set @0 T : Set T = (@0 x : A) → B x _ : Set₁ _ = (@0 A : Set) → @0 A → (@0 x : A) → Set data D : Set₁ where @0 c : (@0 A : Set) → A → (x : A) → D
{ "alphanum_fraction": 0.4449541284, "avg_line_length": 15.5714285714, "ext": "agda", "hexsha": "05b090368ef840d82982606ef2fb8ff984d7e97c", "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...
------------------------------------------------------------------------------ -- Inductive Peano arithmetic base ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #...
{ "alphanum_fraction": 0.493485342, "avg_line_length": 28.3384615385, "ext": "agda", "hexsha": "e36be06e94c6b04021132f144c6d306e6b5ab382", "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...
{-# OPTIONS --safe #-} module Cubical.Algebra.MonoidSolver.Reflection where open import Cubical.Foundations.Prelude hiding (Type) open import Agda.Builtin.Reflection hiding (Type) open import Agda.Builtin.String open import Cubical.Reflection.Base open import Cubical.Data.Maybe open import Cubical.Data.Sigma open ...
{ "alphanum_fraction": 0.627246808, "avg_line_length": 36.3378378378, "ext": "agda", "hexsha": "3c33ed3fc9b9699d51420188043495d8fc98cbfd", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
{-# OPTIONS --without-K --safe #-} open import Categories.Category using (Category; module Commutation) -- The "four middle interchange" for monoidal categories. -- -- Aka the "interchange law" or "exchange law" (though those terms are -- more comonly used in the more general context of composition in -- 2-categories...
{ "alphanum_fraction": 0.567867036, "avg_line_length": 35.3152173913, "ext": "agda", "hexsha": "ec71ea38969f7b53f30451d0f2b6da54e5fd7c2b", "lang": "Agda", "max_forks_count": 64, "max_forks_repo_forks_event_max_datetime": "2022-03-14T02:00:59.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-02T...
postulate A : Set data D : Set where c : A → D data P : D → Set where d : (x : A) → P (c x) g : (x : D) → P x → D g blargh (d y) with Set g glurph (d y) | w = {!!} -- Expected: glurph = c y : D, y : A, w : Set₁ h : D → D h x@(c y) with Set h (c z) | w = {!!} -- Expected: z : A, w : Set₁
{ "alphanum_fraction": 0.4584717608, "avg_line_length": 15.8421052632, "ext": "agda", "hexsha": "4b57ce2608000113c7ca2e8e444729b5d3be0268", "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...
-- 2018-05-25, Reported by Sergei Meshveliani on the Agda list open import Common.Prelude record _×_ (A B : Set) : Set where constructor _,_ field fst : A snd : B f : List (Nat × Nat) → List (Nat × Nat) f ps = map (\p → let (x , y) = p in (x , suc y)) ps
{ "alphanum_fraction": 0.5833333333, "avg_line_length": 19.7142857143, "ext": "agda", "hexsha": "f1d6224feb9db865775ba94e28e0061e75983d8c", "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 Esterel.CompletionCode where open import Data.Nat using (ℕ ; zero ; suc) renaming (_≟_ to _≟ℕ_ ; _⊔_ to _⊔ℕ_ ; _≤_ to _≤N_ ; _≤?_ to _≤?N_) open import Data.Nat.Properties using (⊔-⊓-isCommutativeSemiringWithoutOne) open import Function using (_∘_) open import Relation.Nullary using (Dec ; yes ; no) ope...
{ "alphanum_fraction": 0.6054459572, "avg_line_length": 31.8495575221, "ext": "agda", "hexsha": "2ef6db7f3ba8bf114042e351c32557504a4580b6", "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...
mmodule silly1 where
{ "alphanum_fraction": 0.8181818182, "avg_line_length": 7.3333333333, "ext": "agda", "hexsha": "d0697094c3788eb2e791d40e7890efd8442ad9e8", "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 Values where open import Data.Bool open import Data.List open import Data.List.All open import Data.Nat open import Data.Product open import Data.Sum open import Relation.Binary.PropositionalEquality open import Typing open import Syntax open import Global open import Channel mutual -- a value indexed by a *r...
{ "alphanum_fraction": 0.6305788776, "avg_line_length": 44.3725490196, "ext": "agda", "hexsha": "65feba4ac439636d1e401845b14cb88dd436cb0d", "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 Oscar.Prelude open import Oscar.Class open import Oscar.Class.IsEquivalence open import Oscar.Data.𝟙 module Oscar.Class.HasEquivalence where module _ {𝔬} (𝔒 : Ø 𝔬) ℓ where 𝔥asEquivalence : Rℭlass 𝟙 𝔥asEquivalence = ∁ (𝔒 → 𝔒 → Ø ℓ) IsEquivalence open Rℭlass 𝔥asEquivalence using () rena...
{ "alphanum_fraction": 0.7029288703, "avg_line_length": 22.40625, "ext": "agda", "hexsha": "b702a24498b5c414347e73259f577180b2633cd8", "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 _ where module A where postulate C : Set → Set → Set syntax C X Y = X , Y module B where postulate C : Set open A open B Foo : Set → Set Foo X = X , X
{ "alphanum_fraction": 0.5445026178, "avg_line_length": 10.6111111111, "ext": "agda", "hexsha": "a88fb8976b99d42d015fb9ce06699c42a288ea0e", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
open import Type open import Structure.Relator open import Structure.Setoid renaming (_≡_ to _≡ₑ_) module Structure.Sets.Quantifiers.Proofs {ℓₛ ℓₗ ℓₑ} {S : Type{ℓₛ}} ⦃ equiv : Equiv{ℓₑ}(S) ⦄ (_∈_ : S → S → Type{ℓₗ}) ⦃ [∈]-binaryRelator : BinaryRelator(_∈_) ⦄ where import Lvl open import Structure.Relator.Proofs ...
{ "alphanum_fraction": 0.6189349112, "avg_line_length": 56.3333333333, "ext": "agda", "hexsha": "60c1ad1199b764ea6ea22a9e9d93db3307c03ea9", "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...