Search is not available for this dataset
text
string
meta
dict
{-# OPTIONS --without-K #-} module FinEquivTypeEquiv where -- The goal is to establish that finite sets and equivalences form a -- commutative semiring. import Level using (zero) open import Data.Nat using (ℕ; _+_; _*_) open import Data.Fin using (Fin) open import Relation.Binary using (IsEquivalence) open import...
{ "alphanum_fraction": 0.4915803109, "avg_line_length": 27.3274336283, "ext": "agda", "hexsha": "9013106eca5090535b8718d924a17cc5ab0e60c9", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2019-09-10T09:47:13.000Z", "max_forks_repo_forks_event_min_datetime": "2016-05-29T...
{-# OPTIONS --cubical #-} module Erased-cubical-Module-application.Cubical (_ : Set₁) where open import Agda.Builtin.Cubical.Path data ∥_∥ (A : Set) : Set where ∣_∣ : A → ∥ A ∥ trivial : (x y : ∥ A ∥) → x ≡ y
{ "alphanum_fraction": 0.5954545455, "avg_line_length": 22, "ext": "agda", "hexsha": "d113f887a0f40c68d12a2c57276beda461fb24fc", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:08....
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Algebra.RingSolver.AlmostRing where open import Cubical.Foundations.Prelude open import Cubical.Data.Sigma open import Cubical.Algebra.Semigroup open import Cubical.Algebra.Monoid open import Cubical.Algebra.AbGroup private variable ℓ : Level ...
{ "alphanum_fraction": 0.5744245524, "avg_line_length": 26.4189189189, "ext": "agda", "hexsha": "008d0db5febd7a55c5cf1418c969ea79ddea8154", "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 Issue326 where open import Common.Prelude postulate QName : Set Unit : Set IO : Set → Set printBool : Bool → IO Unit {-# BUILTIN QNAME QName #-} {-# BUILTIN IO IO #-} {-# COMPILED_TYPE IO IO #-} {-# COMPILED_TYPE Unit () #-} {-# COMPILED printBool print #-} primitive primQNameEquality : QName → QN...
{ "alphanum_fraction": 0.6691176471, "avg_line_length": 18.5454545455, "ext": "agda", "hexsha": "eac3a71c8072cf53c914f9b9e8da213876a457e5", "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 REMatch where open import Data.Char import Data.Nat --open import Data.List open import Data.Bool open import Data.Product import Algebra import Algebra.FunctionProperties open import Relation.Nullary open import Relation.Binary open import Relation.Binary.PropositionalEquality open import Data.List open im...
{ "alphanum_fraction": 0.5549974887, "avg_line_length": 35.0837004405, "ext": "agda", "hexsha": "9e99b4555b98ab39a773d7919dbfe6ce1af64a1e", "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...
-- Define the integers as a HIT by identifying +0 and -0 {-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.HITs.Ints.QuoInt.Base where open import Cubical.Core.Everything open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Foundations.Transport open import...
{ "alphanum_fraction": 0.6195732156, "avg_line_length": 25.1666666667, "ext": "agda", "hexsha": "7b9257e98ffb996f614d07be6e689866f01fe514", "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.Data.Term.internal.SubstituteAndSubstitution {𝔣} (FunctionName : Set 𝔣) where open import Oscar.Category.Action open import Oscar.Category.Category open import Oscar.Category.CategoryAction open import Oscar.Category.Functor open import Oscar.Category.Morphism open import Oscar.Category.Semifunctor ope...
{ "alphanum_fraction": 0.6256709094, "avg_line_length": 29.7762557078, "ext": "agda", "hexsha": "a108f0c85174309b4c6156f0d09844008a1448b6", "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 Lemmachine.Default where open import Lemmachine resource : Hooks resource = [] main = runResolve (toApp resource)
{ "alphanum_fraction": 0.7804878049, "avg_line_length": 15.375, "ext": "agda", "hexsha": "3d219df6fed750f6e14b5e7bd801921bc713d36e", "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-21T16:37:5...
import Lvl -- TODO: Just testing how it goes with creating an axiomatic system module Geometry.Test2 (Point : Set(Lvl.𝟎)) where open import Functional open import Logic.Propositional{Lvl.𝟎} open import Logic.Predicate{Lvl.𝟎}{Lvl.𝟎} open import Relator.Equals{Lvl.𝟎}{Lvl.𝟎} -- open import Structure.Setoid.Uniquen...
{ "alphanum_fraction": 0.6462474645, "avg_line_length": 38.515625, "ext": "agda", "hexsha": "44b77f2953650c8e6806fa912af8f7bb4044e7d8", "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 --rewriting #-} -- Interface to the standard library. -- Place to add own auxiliary definitions. module Library where open import Size public open import Level public using () renaming (zero to lzero) open import Data.Unit public using (⊤) open import Data.Empty public using (⊥; ⊥-el...
{ "alphanum_fraction": 0.500974279, "avg_line_length": 37.1884057971, "ext": "agda", "hexsha": "ccd61d8fc02f1e52bdfc4254521725eacc0c6540", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-25T20:39:03.000Z", "max_forks_repo_forks_event_min_datetime": "2018-11-13T1...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- The syntax of types with the Nehemiah plugin. ------------------------------------------------------------------------ module Nehemiah.Syntax.Type where import Parametric.Syntax.Type as Type data Base : Type.Stru...
{ "alphanum_fraction": 0.5131004367, "avg_line_length": 24.1052631579, "ext": "agda", "hexsha": "cc494f6b2d55388c483137bac23a74ecc94ed4bc", "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...
------------------------------------------------------------------------ -- The Agda standard library -- -- Relations between properties of scaling and other operations ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Algebra.Module.Consequences where ...
{ "alphanum_fraction": 0.5001848429, "avg_line_length": 31.091954023, "ext": "agda", "hexsha": "f4b581c5297b91edfa64ed8551b11b76c6e754b9", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-04T0...
module Module where data ℕ : Set where zero : ℕ suc : ℕ → ℕ _+_ : ℕ → ℕ → ℕ zero + n = zero suc m + n = suc (m + n) import Data.Nat using (ℕ; zero; suc; _+_)
{ "alphanum_fraction": 0.5542168675, "avg_line_length": 12.7692307692, "ext": "agda", "hexsha": "e8c6d7bf46ef803307ab8ab4307760bf5588811f", "lang": "Agda", "max_forks_count": 304, "max_forks_repo_forks_event_max_datetime": "2022-03-28T11:35:02.000Z", "max_forks_repo_forks_event_min_datetime": "2018-07-1...
-- Andreas, 2015-05-10 Report wrong hiding for copattern {-# OPTIONS --copatterns #-} record ⊤ : Set where record Foo (A : Set) : Set where field foo : A bar : Foo ⊤ Foo.foo {bar} = _ -- Error WAS: Unexpected implicit argument -- Better error: -- Wrong hiding used for projection Foo.foo -- when checking t...
{ "alphanum_fraction": 0.6657608696, "avg_line_length": 19.3684210526, "ext": "agda", "hexsha": "6a077139e6fa8cd02f9a9712779988487dd5d08f", "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 -- -- Basic definitions for Characters ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Char.Base where open import Level using (zero) import Da...
{ "alphanum_fraction": 0.5653689715, "avg_line_length": 24.9420289855, "ext": "agda", "hexsha": "3e58c1bcc113c8195dcb325aaacbd839e829a7e6", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-04T...
{-# OPTIONS --without-K --safe #-} private variable A : Set a : A variable A : Set private A = B where B = Set
{ "alphanum_fraction": 0.5303030303, "avg_line_length": 10.1538461538, "ext": "agda", "hexsha": "834247dc3945937ff365a98bef84d9c3e19cfb3f", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-03-12T21:33:35.000Z", "max_forks_repo_forks_event_min_datetime": "2019-10-07T...
{-# OPTIONS --without-K --safe #-} module Categories.Category.Instance.Properties.Setoids.Choice where open import Categories.Category using (Category) open import Categories.Category.Exact using (Exact) open import Categories.Category.Instance.Setoids using (Setoids) open import Data.Product using (∃; proj₁; proj₂;...
{ "alphanum_fraction": 0.5507246377, "avg_line_length": 39.1237113402, "ext": "agda", "hexsha": "8cb94825b2d9ffc25a451429c7a3a953247a2404", "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...
------------------------------------------------------------------------ -- Properties of functions ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe --exact-split #-} module Math.Combinatorics.ListFunction.Properties where -- agda-stdlib open import Data.List hi...
{ "alphanum_fraction": 0.5605802048, "avg_line_length": 46.6136363636, "ext": "agda", "hexsha": "4a5161698d4659779b09b67653f8b924c6f277e7", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
-- Andreas, 2017-11-01, issue #2824 -- allow built-in pragmas in parametrized modules data Nat : Set where zero : Nat suc : Nat → Nat module M (A : Set) where {-# BUILTIN NATURAL Nat #-} test = 5
{ "alphanum_fraction": 0.6394230769, "avg_line_length": 16, "ext": "agda", "hexsha": "fc91c64c8f2d5b2843d32c01f7c571ac3b07fce5", "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....
open import Common.Prelude open import Common.Reflection id : {A : Set} → A → A id x = x idTerm : Term idTerm = lam visible (abs "x" (def (quote id) (arg₁ ∷ arg₂ ∷ []))) where arg₁ = arg (argInfo hidden relevant) (def (quote Nat) []) arg₂ = arg (argInfo visible relevant) (var 0 []) -- Should fail since id...
{ "alphanum_fraction": 0.6161616162, "avg_line_length": 23.2941176471, "ext": "agda", "hexsha": "eed96222ac60f133b6decfe2594f9f01640307fa", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-05T...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Categories.Adjoint where open import Cubical.Foundations.Prelude open import Cubical.Data.Sigma open import Cubical.Categories.Category open import Cubical.Categories.Functor open import Cubical.Categories.NaturalTransformation open import Cubical.Foun...
{ "alphanum_fraction": 0.3964081208, "avg_line_length": 36.01875, "ext": "agda", "hexsha": "fef75eeb35ddb4292c74aa68c1d6df51a6ed9a3f", "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 my-integer where open import bool open import bool-thms2 open import eq open import nat open import nat-thms open import product --open import product-thms open import sum -- open import unit data ⊤ : Set where triv : ⊤ ℤ-pos-t : ℕ → Set ℤ-pos-t 0 = ⊤ ℤ-pos-t (suc _) = 𝔹 data ℤ : Set where mkℤ : (n : ℕ)...
{ "alphanum_fraction": 0.5759036145, "avg_line_length": 21.8421052632, "ext": "agda", "hexsha": "e4ac923c9ed576415051df5c9fe45b4d943be856", "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 files contains: - Lots of useful properties about (this) decidable predicates on finite sets. (P.S. We use the alternative definition of decidability for computational effectivity.) -} {-# OPTIONS --safe #-} module Cubical.Data.FinSet.DecidablePredicate where open import Cubical.Foundations.Prelude open i...
{ "alphanum_fraction": 0.6040332147, "avg_line_length": 29.4755244755, "ext": "agda", "hexsha": "65025ff805f6a03cb774bffb15ff827c1f55573e", "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.Ternary.Separation module Relation.Ternary.Separation.Construct.ListOf {a} (A : Set a) {{ r : RawSep A }} {{ _ : IsSep r }} where open import Level open import Data.Product open import Data.List open import Data.List.Properties using (++-isMonoid) open import Data.List.Relation.Binary.E...
{ "alphanum_fraction": 0.6032806804, "avg_line_length": 37.4090909091, "ext": "agda", "hexsha": "eb810c4184e7e565e034dea948e61d6b40413bbe", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2020-05-23T00:34:36.000Z", "max_forks_repo_forks_event_min_datetime": "2020-01-30T...
module drawingProgram where open import Unit open import Data.Bool.Base open import Data.Char.Base renaming (primCharEquality to charEquality) open import Data.Nat.Base hiding (_≟_;_⊓_; _+_; _*_) open import Data.List.Base hiding (_++_) open import Data.Integer.Base hiding (suc) open import Data.String.Base open imp...
{ "alphanum_fraction": 0.6552506237, "avg_line_length": 34.9920634921, "ext": "agda", "hexsha": "9d00986b9ae7e10db18ec0e7dc2bfb88246a378c", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:41:00.000Z", "max_forks_repo_forks_event_min_datetime": "2018-09-01T...
{-# OPTIONS --without-K --safe #-} open import Categories.Category -- Lifts a 1-Category into a bicategory module Categories.Bicategory.Construction.1-Category {o ℓ e} b (C : Category o ℓ e) where open import Level using (Lift; lift) open import Data.Unit using (⊤; tt) open import Data.Product using (uncurry) ope...
{ "alphanum_fraction": 0.5720116618, "avg_line_length": 31.4678899083, "ext": "agda", "hexsha": "d22f24d67337d0a8ce23a987fedb6e9f4299eaa2", "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...
------------------------------------------------------------------------ -- Lexicographic products of binary relations ------------------------------------------------------------------------ -- The definition of lexicographic product used here is suitable if -- the left-hand relation is a strict partial order. modul...
{ "alphanum_fraction": 0.4762900976, "avg_line_length": 40.313253012, "ext": "agda", "hexsha": "5d7ead0cb7fe950ead26eeddc759fbf4bc48282c", "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-21T1...
module Issue556 (A : Set) (x : A) where y : A y = x
{ "alphanum_fraction": 0.5471698113, "avg_line_length": 10.6, "ext": "agda", "hexsha": "13da9490eb8fc72508f5847c9e946aee00d27773", "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-compatible #-} module Issue1025 where data _≡_ {A : Set} (x : A) : A → Set where refl : x ≡ x postulate mySpace : Set postulate myPoint : mySpace data Foo : myPoint ≡ myPoint → Set where foo : Foo refl test : {e : myPoint ≡ myPoint} → (a : Foo e) → (i : a ≡ a) → i ≡ refl test foo refl = {...
{ "alphanum_fraction": 0.6018518519, "avg_line_length": 20.25, "ext": "agda", "hexsha": "c92ffb0cd3f3b4b146e8bbcb59b9199369e26b6f", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "...
------------------------------------------------------------------------ -- The Agda standard library -- -- Non empty trie, basic type and operations ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe --sized-types #-} open import Relation.Binary using (StrictTotal...
{ "alphanum_fraction": 0.5591288072, "avg_line_length": 36.0552147239, "ext": "agda", "hexsha": "447cd68fa71342efae4840684f67a5662fc846ce", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-04T...
module Basic where open import Prelude data List (A : Set) : Set data List A where nil : List A cons : A -> List A -> List A append : {A : Set} -> List A -> List A -> List A append nil ys = ys append (cons x xs) ys = cons x (append xs ys) record Equiv {A : Set} (R : A -> A -> Set) : Set record Equiv {A} R wh...
{ "alphanum_fraction": 0.5210991168, "avg_line_length": 22.152173913, "ext": "agda", "hexsha": "74921cdf813d84e83d4a7cbfcc87bddc8ab433d9", "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...
{- This file contains: - An implementation of the free groupoid (a free group that has no limitiations over the high dimensional path structure). An intermediate construction used to calculate the fundamental group of a Bouquet. -} {-# OPTIONS --safe #-} module Cubical.HITs.FreeGroupoid.Base where open import ...
{ "alphanum_fraction": 0.6296791444, "avg_line_length": 24.9333333333, "ext": "agda", "hexsha": "3f766f97208fd972e9740ff4a8f46ae4b0a5df31", "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 --exact-split #-} module encode-decode where import 05-identity-types open 05-identity-types public record Lift {i j : Level} (A : UU i) : UU (i ⊔ j) where field raise : A module Coprod where code-left : {i j : Level} {A : UU i} {B : UU j} → A → (coprod A B) → (UU i) code-left a₀ (...
{ "alphanum_fraction": 0.5538648813, "avg_line_length": 32.2156862745, "ext": "agda", "hexsha": "a30b10e5e17e9351ea51b7c2589984194685fc3e", "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...
------------------------------------------------------------------------------ -- Properties of the mirror function ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism...
{ "alphanum_fraction": 0.4849354376, "avg_line_length": 35.9741935484, "ext": "agda", "hexsha": "cfe762fc482594fc5adc9df76957465b4440c85c", "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 UnequalTerms where data Zero : Set where data One : Set where one : One err1 : Zero err1 = one err2 : One -> One err2 = \(x : Zero) -> one
{ "alphanum_fraction": 0.6381578947, "avg_line_length": 11.6923076923, "ext": "agda", "hexsha": "816e6a0bb0ac3c822b5dc9947b078e89e5eb6c57", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
-- Andreas, 2015-02-26 -- {-# OPTIONS -v interaction:100 #-} data D : Set where c : D goal : D goal = {! !} -- C-c C-r gave a parse error here, as there was a (single) space. g1 : D g1 = {! !} g2 : D g2 = {! !} -- works now
{ "alphanum_fraction": 0.5276595745, "avg_line_length": 13.8235294118, "ext": "agda", "hexsha": "4f97fabf038fdf81ef79ae09281db839b545a34c", "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 -- -- Code related to vector equality over propositional equality that -- makes use of heterogeneous equality ------------------------------------------------------------------------ {-# OPTIONS --with-K --safe #-} m...
{ "alphanum_fraction": 0.554200542, "avg_line_length": 33.5454545455, "ext": "agda", "hexsha": "1c0144b77602d34e5ebaae47bd7a1cb2abb2312f", "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 --cubical --no-import-sorts --safe #-} module Cubical.Relation.Binary.Construct.Constant where open import Cubical.Core.Everything open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels using (hProp) open import Cubical.Relation.Binary open import Cubical.Structures.Carrier -----...
{ "alphanum_fraction": 0.6011004127, "avg_line_length": 30.2916666667, "ext": "agda", "hexsha": "ccd09d0be12de25ce74c9a53a3ad10f49de0aaf1", "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 --save-metas #-} module Erased-cubical-Pattern-matching-Cubical where data D : Set where c₁ c₂ : D
{ "alphanum_fraction": 0.696, "avg_line_length": 17.8571428571, "ext": "agda", "hexsha": "2fd7d8ab431811536ba6233fcde6d9451d078704", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
{-# OPTIONS --cubical #-} module Numeral.Natural.Equiv.Path where open import Data.Boolean.Equiv.Path open import Functional open import Logic.Propositional open import Numeral.Natural.Oper.Comparisons open import Numeral.Natural open import Relator.Equals.Proofs.Equivalence using () renaming ([≡]-equiv to Id-equiv ;...
{ "alphanum_fraction": 0.7110912343, "avg_line_length": 41.4074074074, "ext": "agda", "hexsha": "a473a3045719932ff810e434f7793386f779b558", "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 List.Order.Bounded {A : Set}(_≤_ : A → A → Set) where open import Bound.Total A open import Bound.Total.Order _≤_ open import Data.List data _≤*_ : List A → Bound → Set where lenx : {t : Bound} → [] ≤* t lecx : {t : Bound}{x : A}{xs : List A} → LeB (val x) t → xs ≤* t → (x ∷ xs) ≤* t data _*≤_ : Bound → ...
{ "alphanum_fraction": 0.5342163355, "avg_line_length": 32.3571428571, "ext": "agda", "hexsha": "05b689d82ee781ee9b1f03d25629876fb9d5a3d4", "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 --without-K #-} module Source.Size.Substitution.Theory where open import Source.Size open import Source.Size.Substitution.Canonical as SC using (Sub⊢) open import Source.Size.Substitution.Universe as SU using (⟨_⟩ ; Sub⊢ᵤ) open import Util.Prelude record SubTheory (A : Ctx → Set) : Set where inf...
{ "alphanum_fraction": 0.3790322581, "avg_line_length": 26.1777777778, "ext": "agda", "hexsha": "ecf82ca956f0c8617aaa8ab66403be053363b36e", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --allow-unsolved-metas #-} module LateExpansionOfRecordMeta where postulate I : Set i : I A : I → Set a : A i data D : Set₁ where d : (P : A i → Set) → P a → D record R (P : A i → Set) : Set where field p : P a record ID : Set₁ where field P : (i : I) → A i → Set isR : R (P ...
{ "alphanum_fraction": 0.5103305785, "avg_line_length": 14.6666666667, "ext": "agda", "hexsha": "985b54db90ad884a0330d9ad45bd7b02f2a406f2", "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 lib.libraryString where open import Data.String open import Data.Bool open import Agda.Builtin.String using ( primStringEquality ) open import Data.String public using () renaming (toList to primStringToList; _++_ to _++Str_) _==Str_ : Str...
{ "alphanum_fraction": 0.6260162602, "avg_line_length": 30.75, "ext": "agda", "hexsha": "7ef7e036c3ba07294c1854d3d670653e61354aec", "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...
{-# OPTIONS --omega-in-omega --no-termination-check --overlapping-instances #-} module Light.Variable.Levels where open import Light.Level using (Level) variable ℓ aℓ bℓ cℓ dℓ eℓ fℓ gℓ hℓ : Level
{ "alphanum_fraction": 0.7386934673, "avg_line_length": 24.875, "ext": "agda", "hexsha": "efca169a0ea285fe1b552d3e02c75fabb48fc9f0", "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 ReasoningEx where open import Prelude open import T open import Contexts open import Eq open import Eq.Theory open import Eq.ObsTheory ---- some example programs -- boy, de bruijn indexes are unreadable w = weaken-closed plus-rec : ∀{Γ} → TExp Γ nat → TExp Γ nat → TExp Γ nat plus-rec n m = rec n m (suc (var Z...
{ "alphanum_fraction": 0.5844700944, "avg_line_length": 39.7083333333, "ext": "agda", "hexsha": "fceb0f0a964fccbe6fc9af70214038f99fdf8d87", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-05-04T22:37:18.000Z", "max_forks_repo_forks_event_min_datetime": "2015-04-26T...
{-# OPTIONS --rewriting --confluence-check #-} module Issue4333.N where open import Issue4333.M open import Issue4333.N0 open import Issue4333.N1 postulate of-type : (X : Set) (x : X) → Set -- Subject reduction violated for b₁' = b. _ = of-type (B a₁') b₁' _ = of-type (B a₀') b
{ "alphanum_fraction": 0.6725352113, "avg_line_length": 20.2857142857, "ext": "agda", "hexsha": "531030db68d3c3d2662967f09bbd64cc6193dcb3", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
{-# OPTIONS --without-K #-} open import HoTT module homotopy.ConstantToSetFactorization {i j} {A : Type i} {B : Type j} (B-is-set : is-set B) (f : A → B) (f-is-const : ∀ a₁ a₂ → f a₁ == f a₂) where private Skel = SetQuotient {A = A} (λ _ _ → Unit) abstract Skel-has-all-paths : has-all-paths Skel...
{ "alphanum_fraction": 0.5588737201, "avg_line_length": 31.6756756757, "ext": "agda", "hexsha": "663835c3d65c7058b2fe00ec31debf0017331ca0", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Cats.Functor.Representable where open import Data.Product using (_×_ ; _,_) open import Relation.Binary using (Setoid) open import Cats.Bifunctor using (Bifunctor) open import Cats.Category open import Cats.Category.Op using (_ᵒᵖ) open import Cats.Category.Setoids as Setoids using (Setoids ; ≈-intro) open impo...
{ "alphanum_fraction": 0.5248838752, "avg_line_length": 30.14, "ext": "agda", "hexsha": "44e398f0b18b27ad1e427b6554403141d1298492", "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 #-} module Computability.Prelude where open import Data.Bool public using (Bool; false; true) open import Data.Empty public using (⊥; ⊥-elim) open import Data.Nat public using (ℕ; zero; suc; _+_; _*_) open import Data.Product public using (Σ; Σ-syntax; _×_; _,_; proj₁; proj₂) open import Data.S...
{ "alphanum_fraction": 0.7415730337, "avg_line_length": 41.0769230769, "ext": "agda", "hexsha": "4144d0fb36f20e537c2318e4c3bbd5f3287f4fe8", "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.Morph.Bla where open import UniDB.Spec open import UniDB.Morph.WeakenOne open import UniDB.Morph.Sub open import UniDB.Morph.ShiftsPrime open import UniDB.Morph.Subs -- mutual -- data BlaSubst (T : STX) : MOR where -- blasubst : {γ₁ γ₂ : Dom} → BlaSubst T γ₁ γ₂ mutual data BlaWeak* (T : STX) : ...
{ "alphanum_fraction": 0.5908372828, "avg_line_length": 33.3157894737, "ext": "agda", "hexsha": "8002e6a53678e26dcd31786d7ecc2ace4e07f71d", "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 Categories.Category using (Category) import Categories.Category.CartesianClosed open import Data.Fin using (Fin) renaming (zero to fzero; suc to fsuc) open import Data.List using (List; []; _∷_) open import Data.Product using (Σ; Σ-syntax; proj₁; proj₂) open import Syntax open import Level using (_⊔_; su...
{ "alphanum_fraction": 0.5299145299, "avg_line_length": 26.4642857143, "ext": "agda", "hexsha": "2b23533e75bf63565113acca5ce7992740482bf9", "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 Util.Induction.WellFounded where open import Induction.WellFounded public using ( Acc ; acc ; WellFounded ; module Subrelation ; module InverseImage ; module TransitiveClosure ; module Lexicographic ) open import Relation.Binary using (Rel) open import Util.HoTT.FunctionalExten...
{ "alphanum_fraction": 0.4251592357, "avg_line_length": 31.5577889447, "ext": "agda", "hexsha": "aaf5540ecc450bc94ae65e558a21b467ef7f6eec", "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...
-- WARNING: This file was generated automatically by Vehicle -- and should not be modified manually! -- Metadata -- - Agda version: 2.6.2 -- - AISEC version: 0.1.0.1 -- - Time generated: ??? {-# OPTIONS --allow-exec #-} open import Vehicle open import Vehicle.Data.Tensor open import Data.Rational as ℚ using (ℚ) op...
{ "alphanum_fraction": 0.6985743381, "avg_line_length": 25.8421052632, "ext": "agda", "hexsha": "d80741e89f8bf9fb68dade465fe0cd1a06b66f17", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2021-11-16T14:30:47.000Z", "max_forks_repo_forks_event_min_datetime": "2021-03-15T...
{-# OPTIONS --without-K --rewriting #-} {- Imports everything that is not imported by something else. This is not supposed to be used anywhere, this is just a simple way to do `make all' This file is intentionally named index.agda so that Agda will generate index.html. favonia: On 2017/05/08, I further partition...
{ "alphanum_fraction": 0.7869791667, "avg_line_length": 25.6, "ext": "agda", "hexsha": "f9f2c9bdbdd4cbdabe200b97a2bb4cdfb888baba", "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": "6...
{-# OPTIONS --without-K --rewriting #-} open import lib.Basics open import lib.NConnected open import lib.NType2 open import lib.types.Paths open import lib.types.Pi open import lib.types.Truncation open import lib.types.Unit open import lib.types.Bool open import lib.types.Suspension open import lib.types.IteratedSus...
{ "alphanum_fraction": 0.5239322533, "avg_line_length": 29.8461538462, "ext": "agda", "hexsha": "8d4e411c119f019966161abd62bde5d09f106f19", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module _ where open import Common.Prelude open import Common.Reflection postulate stuck : TC ⊤ macro not-so-good : Tactic not-so-good hole = stuck fail : Nat fail = not-so-good
{ "alphanum_fraction": 0.7180851064, "avg_line_length": 11.75, "ext": "agda", "hexsha": "c25a2db3ca1e4bfad8e2f4937b52dd9d10df3ebc", "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:...
import Issue2447.Type-error
{ "alphanum_fraction": 0.8571428571, "avg_line_length": 14, "ext": "agda", "hexsha": "29c090a6a134659ca3bdf7c886571a4b76fcb8b8", "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....
-- Monoidal categories {-# OPTIONS --safe #-} module Cubical.Categories.Monoidal.Base where open import Cubical.Categories.Category.Base open import Cubical.Categories.Constructions.BinProduct open import Cubical.Categories.Functor.Base open import Cubical.Categories.Functor.BinProduct open import Cubical.Categories....
{ "alphanum_fraction": 0.5026845638, "avg_line_length": 24.4262295082, "ext": "agda", "hexsha": "21a2c05fb810308dfb216bd0d18956daa3434ef5", "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 SplitResult where open import Common.Product test : {A B : Set} (a : A) (b : B) → A × B test a b = {!!} testFun : {A B : Set} (a : A) (b : B) → A × B testFun = {!!}
{ "alphanum_fraction": 0.5242718447, "avg_line_length": 15.8461538462, "ext": "agda", "hexsha": "c546e94dfde065392185a63d743ce078b33bbbdf", "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...
-- | NOTE: This module can only represent file paths which are valid strings. -- On Linux, a file path may be an arbitrary sequence of bytes, but using anything -- except utf8 for file paths is a terrible idea. -- -- What should happen if we come across a non utf8 path from an untrusted source? -- crash -> denial-of-se...
{ "alphanum_fraction": 0.6650717703, "avg_line_length": 24.880952381, "ext": "agda", "hexsha": "fde40973d328974b2f66dd7279a3b749ee782699", "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...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Algebra.CommRing.Integers where open import Cubical.Foundations.Prelude open import Cubical.Algebra.CommRing open import Cubical.HITs.Ints.BiInvInt renaming ( _+_ to _+ℤ_; -_ to _-ℤ_; +-assoc to +ℤ-assoc; +-comm to +ℤ-comm ) BiInvI...
{ "alphanum_fraction": 0.6636363636, "avg_line_length": 22.9166666667, "ext": "agda", "hexsha": "a759762e226d60a93ff538a4ff2b64fe58f8d7ef", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9. Copyright (c) 2020 Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl -} open import LibraBFT.Prelude open import LibraBFT.Lemmas open import LibraBFT.B...
{ "alphanum_fraction": 0.6101365977, "avg_line_length": 52.537254902, "ext": "agda", "hexsha": "bdfc81a45210c2a94bf14eaa0b73c8351632ae5e", "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 Issue3080 where open import Agda.Builtin.Nat open import Agda.Builtin.Equality data Fin (m : Nat) : Set where fzero' : (n : Nat) (p : m ≡ suc n) → Fin m fsuc' : (n : Nat) (p : m ≡ suc n) (i : Fin n) → Fin m lift : (m : Nat) (i : Fin m) → Fin (suc m) lift m (fzero' n p) = {!p!} lift m (fsuc' n p i) = {!...
{ "alphanum_fraction": 0.5905096661, "avg_line_length": 22.76, "ext": "agda", "hexsha": "0af32696a6b97f91e57e08b41bcc3b29f336ebf9", "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:...
open import Relation.Binary.Core module InsertSort.Impl1.Correctness.Order {A : Set} (_≤_ : A → A → Set) (tot≤ : Total _≤_) where open import Data.List open import Data.Sum open import InsertSort.Impl1 _≤_ tot≤ open import List.Sorted _≤_ lemma-insert-sorted : {xs : List A}(x : A...
{ "alphanum_fraction": 0.614017769, "avg_line_length": 32.6774193548, "ext": "agda", "hexsha": "3068da93d10bacba9fe4bcf79b488018e4f890ae", "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 Agda standard library -- -- Natural numbers represented in binary natively in Agda. ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Nat.Binary where open import Data...
{ "alphanum_fraction": 0.4739454094, "avg_line_length": 28.7857142857, "ext": "agda", "hexsha": "9b84b0102e4814c473d7725f63986e13e9c913d6", "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...
open import Common.Prelude open import Common.Reflection module TermSplicingLooping where mutual f : Set -> Set f = unquote (give (def (quote f) []))
{ "alphanum_fraction": 0.7243589744, "avg_line_length": 17.3333333333, "ext": "agda", "hexsha": "b3a53e0ab722a88bea496c8862651002b8242b20", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-05T...
{-# OPTIONS --without-K --safe #-} module Categories.Category.Instance.Properties.Setoids.Complete where open import Level open import Data.Product using (Σ; proj₁; proj₂; _,_; Σ-syntax; _×_; -,_) open import Function.Equality using (Π) open import Relation.Binary using (Setoid; Rel) open import Categories.Category ...
{ "alphanum_fraction": 0.4826560951, "avg_line_length": 32.0317460317, "ext": "agda", "hexsha": "fd386cbd4891687b16a73c85b3c063ee3dc826df", "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 Ints.Add.Assoc where open import Ints open import Nats renaming (suc to nsuc; _+_ to _:+:_) open import Nats.Add.Assoc open import Nats.Add.Comm open import Ints.Add.Comm open import Equality open import Function ------------------------------------------------------------------------ -- internal stuffs pr...
{ "alphanum_fraction": 0.4029535865, "avg_line_length": 31.9038461538, "ext": "agda", "hexsha": "d04f404e542244a215f564e981e3571ed953af1b", "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...
mutual data D : Set where c : R → D record R : Set where inductive field out : D open R f : D → {A : Set} → A f (c x) = f (out x) -- should termination check
{ "alphanum_fraction": 0.527173913, "avg_line_length": 11.5, "ext": "agda", "hexsha": "89d9e4ae6bf9feb377cd4bf8c103245e2c365240", "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...
{- Functions building DUARels on constant families -} {-# OPTIONS --safe #-} module Cubical.Displayed.Constant where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Displayed.Base open import Cubical.Displayed.Subst private variable ℓ ℓA ℓA' ℓP ℓ≅A ℓ≅A' ℓB ...
{ "alphanum_fraction": 0.6615384615, "avg_line_length": 21.125, "ext": "agda", "hexsha": "0689104c28a440e5e8224b4a42b4cbd15fd72e7b", "lang": "Agda", "max_forks_count": 134, "max_forks_repo_forks_event_max_datetime": "2022-03-23T16:22:13.000Z", "max_forks_repo_forks_event_min_datetime": "2018-11-16T06:11...
{-# OPTIONS --without-K #-} module sets.finite where open import sets.finite.core public
{ "alphanum_fraction": 0.7333333333, "avg_line_length": 18, "ext": "agda", "hexsha": "704e074db002e2f72cd0fe089cfdde941855984b", "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-02T12:17:00.00...
-- A Typed version of a subset of Landin's ISWIM from "The Next 700 Programming -- Languages" module ISWIM where data Nat : Set where zero : Nat suc : Nat -> Nat _+_ : Nat -> Nat -> Nat zero + m = m suc n + m = suc (n + m) {-# BUILTIN NATURAL Nat #-} {-# BUILTIN ZERO zero #-} {-# BUILTIN SUC suc #-}...
{ "alphanum_fraction": 0.4648838466, "avg_line_length": 23.5796178344, "ext": "agda", "hexsha": "edfaa245d96a9151a45665eeffc99333fc2afdbc", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
postulate P : {A : Set} → A → A → Set p : {A : Set} {x : A} → P x x q : {A : Set} (x : A) {y : A} → P x y → P x y A : Set record R (F : Set → Set) : Set₁ where field f₁ : (A → A) → F A → F A f₂ : P (f₁ (λ x → x)) (λ (x : F A) → x) open R ⦃ … ⦄ public instance r : R (λ O → O → O) r = record ...
{ "alphanum_fraction": 0.4825949367, "avg_line_length": 18.0571428571, "ext": "agda", "hexsha": "1010e6175276654524de33021b215d27e60f4ee3", "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...
{- Reflection-based tools for converting between iterated record types, particularly between record types and iterated Σ-types. See end of file for examples. -} {-# OPTIONS --cubical --no-exact-split --safe #-} module Cubical.Reflection.RecordEquiv where open import Cubical.Foundations.Prelude open import Cub...
{ "alphanum_fraction": 0.6648777579, "avg_line_length": 34.2244897959, "ext": "agda", "hexsha": "bba9fcd7973087ccdbd171286a7563a42de98b98", "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.Builtin.Nat where open import Agda.Builtin.Nat public using () renaming (Nat to ℕ; zero to ∅; suc to ↑_)
{ "alphanum_fraction": 0.7016129032, "avg_line_length": 17.7142857143, "ext": "agda", "hexsha": "fbf56a8fd992158d4ef34f5fafdc7792990d31e2", "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...
-- -- Created by Dependently-Typed Lambda Calculus on 2020-10-07 -- Isomorphism -- Author: dplaindoux -- {-# OPTIONS --without-K --no-sized-types --no-guardedness bbbbb#-} import Relation.Binary.PropositionalEquality as Eq open Eq using (_≡_; refl; cong; cong-app) open Eq.≡-Reasoning open import Data.Nat using (ℕ; ze...
{ "alphanum_fraction": 0.4032294746, "avg_line_length": 20.7405660377, "ext": "agda", "hexsha": "9e663fa6a13d048c475408ae39fd6a11e92b1bce", "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...
------------------------------------------------------------------------------ -- Logical Theory of Constructions for PCF (LTC-PCF) ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-unive...
{ "alphanum_fraction": 0.5596860801, "avg_line_length": 30.6455696203, "ext": "agda", "hexsha": "eea83a65d25dd855848678959d155dcae93c9979", "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 --safe #-} open import Categories.Category open import Categories.Functor.Bifunctor module Categories.Diagram.Coend {o ℓ e o′ ℓ′ e′} {C : Category o ℓ e} {D : Category o′ ℓ′ e′} (F : Bifunctor (Category.op C) C D) where private module C = Category C module D = Category D open D open...
{ "alphanum_fraction": 0.6446233468, "avg_line_length": 28.5081967213, "ext": "agda", "hexsha": "779b6442200727c4fcbc5fb72f6b967e066fccfd", "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 Plus where data Nat : Set where zero : Nat suc : Nat -> Nat infixr 40 _+_ infix 10 _==_ _+_ : Nat -> Nat -> Nat zero + m = m suc n + m = suc (n + m) data _==_ (x, y : Nat) : Set where -- ... postulate refl : {n : Nat} -> n == n cong : (f : Nat -> Nat){n, m : Nat} -> n == m -> f n == f m plusZ...
{ "alphanum_fraction": 0.513253012, "avg_line_length": 15.9615384615, "ext": "agda", "hexsha": "fda792d5c4bd00fcd8ae80ca74b82de638869124", "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...
open import Common.Prelude renaming (return to foo) main : IO Unit main = foo unit
{ "alphanum_fraction": 0.75, "avg_line_length": 16.8, "ext": "agda", "hexsha": "405aefc652fe4ca768cd4d45995dcd730d74bcdc", "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",...
-- There's something very strange going on with mutual and parameterised -- modules. Can't reproduce the bug... :( module Mutual where data True : Set where tt : True data False : Set where data _\/_ (A B : Set) : Set where inl : A -> A \/ B inr : B -> A \/ B swap : {A B : Set} -> A \/ B -> B \/ A swap (inl...
{ "alphanum_fraction": 0.5345679012, "avg_line_length": 17.6086956522, "ext": "agda", "hexsha": "d851dbbc9cd5bc71b2c3636c4d0730babf3bba94", "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 Agda.Builtin.Bool F : Bool → Set F true = Bool F _ = Bool
{ "alphanum_fraction": 0.6486486486, "avg_line_length": 12.3333333333, "ext": "agda", "hexsha": "179aa0be5be554ee8655328386f20838aea20f3f", "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 Relation.Binary.Core module BHeap.Height {A : Set} (_≤_ : A → A → Set) (tot≤ : Total _≤_) where open import Bound.Lower A open import Bound.Lower.Order _≤_ open import BHeap _≤_ open import BHeap.Properties _≤_ open import Data.Nat renaming (_≤_ to _≤ₙ_) open import Da...
{ "alphanum_fraction": 0.6118391324, "avg_line_length": 51.4651162791, "ext": "agda", "hexsha": "4ca8346c9ef57b9883c636d3f4acf1d933ef54b1", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Cats.Category.Constructions.Iso where open import Relation.Binary using (IsEquivalence ; Setoid) open import Level open import Cats.Category.Base open import Cats.Util.Conv import Relation.Binary.EqReasoning as EqReasoning import Cats.Category.Constructions.Epi as Epi import Cats.Category.Constructions.Mono ...
{ "alphanum_fraction": 0.4425694066, "avg_line_length": 26.2428571429, "ext": "agda", "hexsha": "9bfe04ea246b31345e4ad3e8d0031f6f9e0c8426", "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 Fusion where open import Data.Product renaming (proj₁ to ₁; proj₂ to ₂) hiding (map; zip) open import Relation.Binary.PropositionalEquality open import Data.Sum hiding (map) open import Data.Bool open import Data.Nat open import Data.Unit open import Data.Empty open import Funct...
{ "alphanum_fraction": 0.5102939557, "avg_line_length": 33.5166051661, "ext": "agda", "hexsha": "089bcbb8833046e0c0d17c54ae53750d3586d417", "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 -- -- Results concerning uniqueness of identity proofs, with axiom K ------------------------------------------------------------------------ {-# OPTIONS --with-K --safe #-} module Axiom.UniquenessOfIdentityProofs.Wi...
{ "alphanum_fraction": 0.5337301587, "avg_line_length": 28, "ext": "agda", "hexsha": "a644b08db48a3faa6f993599fbb498ff33665eab", "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": "0de...
-- examples for termination checking mutual recursion module Mutual where data Odd : Set data Even : Set where zeroE : Even succE : Odd -> Even data Odd where succO : Even -> Odd addEO : Even -> Odd -> Odd addOO : Odd -> Odd -> Even addOO (succO x) y = succE (addEO x y) addEO zeroE y = y addEO (succE x) y ...
{ "alphanum_fraction": 0.6539589443, "avg_line_length": 15.5, "ext": "agda", "hexsha": "6d580f8906da2fefaa69cbcecb32130ed9bfb77f", "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 -v tc.pos:100 #-} open import Agda.Builtin.Equality data ⊥ : Set where postulate A : Set R : A → Set magic : ⊥ → A magic () test : (a : ⊥) → magic a ≡ magic _ test a = refl
{ "alphanum_fraction": 0.5714285714, "avg_line_length": 12.25, "ext": "agda", "hexsha": "bbf2eef60d33ce52a5ed19f190ef53f603983ccb", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:...
module Main where {-# IMPORT System.IO #-} {-# IMPORT System.Environment #-} open import Base open import IO open import IO.File postulate getArgs : IO (List String) {-# COMPILED getArgs getArgs #-} _`bindIO`_ : {A B : Set} -> IO A -> (A -> IO B) -> IO B _`bindIO`_ = bindIO main : IO Unit main = getArgs `bindIO...
{ "alphanum_fraction": 0.5604938272, "avg_line_length": 23.8235294118, "ext": "agda", "hexsha": "55c57c56df5907dd4b53122b16123a95574f13ec", "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...
-- A term model à la Beth open import Library hiding (_∈_) module TermModel (Base : Set) where import Formulas ; open module Form = Formulas Base import Derivations; open module Der = Derivations Base -- Beth model data Cover (Δ : Cxt) : Set where idc : Cover Δ bot : (t : Δ ⊢ False) → Cover Δ node : ...
{ "alphanum_fraction": 0.5, "avg_line_length": 33.1866028708, "ext": "agda", "hexsha": "9aa0f99af0f73c7c9ea05e256e26b33afe46741d", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-25T20:39:03.000Z", "max_forks_repo_forks_event_min_datetime": "2018-11-13T16:01:46....
------------------------------------------------------------------------ -- Decoding types and subtypes into SK terms and equality ------------------------------------------------------------------------ {-# OPTIONS --safe --exact-split --without-K #-} module FOmegaInt.Undecidable.Decoding where open import Data.Lis...
{ "alphanum_fraction": 0.4743356389, "avg_line_length": 41.7794676806, "ext": "agda", "hexsha": "467fcb3e3a08f6ff96170ae773297c89bd19b655", "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.ZCohomology.Groups.WedgeOfSpheres where open import Cubical.ZCohomology.Base open import Cubical.ZCohomology.Properties open import Cubical.ZCohomology.Groups.Unit open import Cubical.ZCohomology.Groups.Sn open import Cubical.ZCohomology.Groups.Wedge op...
{ "alphanum_fraction": 0.6403574088, "avg_line_length": 30.1797752809, "ext": "agda", "hexsha": "408d3c9c20cca3e21fdcb737f89cd56a04fc51b4", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
open import Agda.Builtin.Size mutual data Unit (i : Size) : Set where c : Unit′ i → Unit i record Unit′ (i : Size) : Set where coinductive field force : {j : Size< i} → Unit j open Unit′ public tail : Unit ∞ → Unit ∞ tail (c x) = force x u : (∀ {i} → Unit′ i → Unit i) → ∀ {i} → Unit i u ...
{ "alphanum_fraction": 0.5454545455, "avg_line_length": 16.0416666667, "ext": "agda", "hexsha": "bd48583b211301d854a9e7dfff09d2cc583bd879", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-05T...
{-# OPTIONS --without-K --rewriting #-} open import HoTT -- custom pushout for Blakers-Massey module homotopy.blakersmassey.Pushout {i j k} {A : Type i} {B : Type j} (Q : A → B → Type k) where bmspan : Span {i} {j} {lmax i (lmax j k)} bmspan = span A B (Σ A λ a → Σ B λ b → Q a b) fst (fst ∘ snd) BMPushout : Type...
{ "alphanum_fraction": 0.5544918999, "avg_line_length": 26.1153846154, "ext": "agda", "hexsha": "e438251be9da9b368be52bb4574e4f0c71931eba", "lang": "Agda", "max_forks_count": 50, "max_forks_repo_forks_event_max_datetime": "2022-02-14T03:03:25.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-10...
{-# OPTIONS --without-K --safe #-} -- The category build from ObjectRestriction can be done so Functorially module Categories.Functor.Construction.ObjectRestriction where open import Level open import Data.Product using (proj₁) open import Relation.Unary using (Pred) open import Function using () renaming (id to id→...
{ "alphanum_fraction": 0.6917293233, "avg_line_length": 27.2045454545, "ext": "agda", "hexsha": "aa1174b9121961b3d7d8cfe90f6c703824006292", "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...
open import Data.Nat using (_+_; _*_; zero; suc; ℕ) open import Relation.Binary.PropositionalEquality as PropEq using (_≡_; _≢_; refl; cong) import Data.Nat.Properties open Data.Nat.Properties.SemiringSolver using (solve; _:=_; con; var; _:+_; _:*_; :-_; _:-_) open PropEq.≡-Reasoning lem1 : (4 + 6 ≡ 10) lem1 = ref...
{ "alphanum_fraction": 0.4994179278, "avg_line_length": 26.0303030303, "ext": "agda", "hexsha": "e85dd84ef58f8150694b82e8d876356adf84a123", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-07-18T22:03:24.000Z", "max_forks_repo_forks_event_min_datetime": "2019-07-18T...
-- test for pattern matching on Strings module StringPattern where open import Common.IO open import Common.Unit open import Common.String f : String → String f "bla" = "found-bla" f x = x -- expected: -- no-bla -- found-bla main : IO Unit main = putStrLn (f "no-bla") ,, putStrLn (f "bla")
{ "alphanum_fraction": 0.6845637584, "avg_line_length": 15.6842105263, "ext": "agda", "hexsha": "67fe1b11625367cee4e259b098783f182aca9a31", "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 Issue183 where postulate A : Set T : Set T = A → A data L (A : Set) : Set where data E (x : T) : T → Set where e : E x x foo : (f : A → A) → L (E f (λ x → f x)) foo = λ _ → e -- Previously: -- An internal error has occurred. Please report this as a bug. -- Location of the error: src/full/Agda/Syntax/Tra...
{ "alphanum_fraction": 0.6274900398, "avg_line_length": 20.9166666667, "ext": "agda", "hexsha": "24776b845f0a09fe430fee7e6c5d9a54e19f9d20", "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...
module Type.Proofs where open import Logic import Lvl open import Type
{ "alphanum_fraction": 0.7662337662, "avg_line_length": 12.8333333333, "ext": "agda", "hexsha": "06d6a32d14f432e7755593a2e2da4b2dbe2090a7", "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...