Search is not available for this dataset
text string | meta dict |
|---|---|
------------------------------------------------------------------------
-- The Agda standard library
--
-- Convenient syntax for reasoning with a setoid
------------------------------------------------------------------------
-- Example use:
-- n*0≡0 : ∀ n → n * 0 ≡ 0
-- n*0≡0 zero = refl
-- n*0≡0 (suc n) = begin... | {
"alphanum_fraction": 0.506122449,
"avg_line_length": 28,
"ext": "agda",
"hexsha": "9bdd00a09cc574b1cba4221a5db6bba17e9e40fe",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-04T06:54:45.000... |
{-# OPTIONS --without-K #-}
open import Base
open import Integers
module Spaces.FlatteningLoopSpaceWedgeCircles {i} (A : Set i) (set : is-set A)
where
import Spaces.WedgeCircles
import Algebra.FreeGroup
import Algebra.FreeGroupProps
import Algebra.FreeGroupAsReducedWords
open Spaces.WedgeCircles A renaming (wedge... | {
"alphanum_fraction": 0.5766811805,
"avg_line_length": 32.5511811024,
"ext": "agda",
"hexsha": "571f5275b6648b445910301a66474619bd744237",
"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 #-}
--open import HoTT
open import homotopy.3x3.PushoutPushout
open import homotopy.3x3.Transpose
import homotopy.3x3.To as To
import homotopy.3x3.From as From
open import homotopy.3x3.Common
module homotopy.3x3.FromTo {i} (d : Span^2 {i}) where
open Span^2 d
open M d hiding (Pushout^2)
open ... | {
"alphanum_fraction": 0.5458885942,
"avg_line_length": 39.2708333333,
"ext": "agda",
"hexsha": "289af1db007bc62c737ced87e642e4e9680386b0",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Data.SumFin.Properties where
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Univalence
open import Cubical.Data.Empty as ⊥
import Cubical.Data.F... | {
"alphanum_fraction": 0.6357808858,
"avg_line_length": 35.0204081633,
"ext": "agda",
"hexsha": "3ff9218173357d25042e1a4bde58bcfee17fddfd",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-22T02:02:01.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-22T... |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Algebra.Group.EilenbergMacLane1 where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Equiv.HalfAdjoint
open import Cubical.Foundations.GroupoidLa... | {
"alphanum_fraction": 0.5825501253,
"avg_line_length": 42,
"ext": "agda",
"hexsha": "0e562ebc662e5ccd02c12a3c649a2dff37803af8",
"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": "c34... |
{-# OPTIONS --without-K #-}
open import library.Basics hiding (Type ; Σ)
open import library.types.Sigma
open import library.NType2
open import Sec2preliminaries
open import Sec3hedberg
module Sec4hasConstToSplit where
-- Auxiliary Lemma 4.2
transport-is-comp : {X Y : Type} → {x₁ x₂ : X}
→ (h k : X → Y) → (t : ... | {
"alphanum_fraction": 0.5038235294,
"avg_line_length": 39.7660818713,
"ext": "agda",
"hexsha": "563aa9c37f0f690973f616048dcc76d47e89ae4c",
"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.Morphism where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Functions.Embedding
open import Cubical.Algebra
open import Cubical.Algebra.Semigroup.Morphism
private
variable
m n :... | {
"alphanum_fraction": 0.718879668,
"avg_line_length": 31.606557377,
"ext": "agda",
"hexsha": "9186f80150c470f78cb24e11f6edf972af0d97ff",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexs... |
open import bool
module braun-tree{ℓ} (A : Set ℓ) (_<A_ : A → A → 𝔹) where
open import bool-thms
open import eq
open import list
open import nat
open import nat-thms
open import product
open import sum
-- the index n is the size of the tree (number of elements of type A)
data braun-tree : (n : ℕ) → Set ℓ where
bt... | {
"alphanum_fraction": 0.5363544814,
"avg_line_length": 48.6764705882,
"ext": "agda",
"hexsha": "dfe66f556d425d1efaebc85a51135359670aff0c",
"lang": "Agda",
"max_forks_count": 17,
"max_forks_repo_forks_event_max_datetime": "2021-11-28T20:13:21.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-12-03... |
open import Silica
open import HeapProperties
import Context
open TypeEnvContext
open import Data.Nat
open import Relation.Nullary using (¬_; Dec; yes; no)
open import Data.Empty
import Relation.Binary.PropositionalEquality as Eq
data Preservation : Expr → Set where
pres : ∀ {e e' : Expr}
→ ∀ {T T' : Type... | {
"alphanum_fraction": 0.6150401102,
"avg_line_length": 53.753968254,
"ext": "agda",
"hexsha": "d5d422567d6953b3cd9081cbe981d5a4cabc5efd",
"lang": "Agda",
"max_forks_count": 11,
"max_forks_repo_forks_event_max_datetime": "2021-06-09T18:40:19.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-05-24T... |
{-
Set quotients:
-}
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.HITs.SetQuotients.Properties where
open import Cubical.HITs.SetQuotients.Base
open import Cubical.Core.Everything
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundatio... | {
"alphanum_fraction": 0.5014236475,
"avg_line_length": 36.2663043478,
"ext": "agda",
"hexsha": "910419a4e30788bd39724f729d2d491e2db35524",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-22T02:02:01.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-22T... |
{-# OPTIONS --sized-types #-}
open import Common.Size
data Heap : (i j : Size) → Set where
node : (i j : Size) → Heap (↑ i) (↑ j)
postulate
_∪_ : Heap ∞ ∞ → Heap ∞ ∞ → Heap ∞ ∞
mkH : ∀ i j → Heap i j
merge : (i j : Size) → Heap i j → Heap ∞ ∞
merge .(↑ i) .(↑ j) (node i j) with Set
merge .(↑ i) .(↑ j) (node i... | {
"alphanum_fraction": 0.4795918367,
"avg_line_length": 23.0588235294,
"ext": "agda",
"hexsha": "8a138a488f6f777917454b5873db286af664fd01",
"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... |
postulate A : Set
module _ {{a : A}} (f : A → A) where
g : {{a : A}} → A
g {{a}} = a
t : A
t = g
| {
"alphanum_fraction": 0.3796296296,
"avg_line_length": 10.8,
"ext": "agda",
"hexsha": "d4292e4a537ce889fa125ba98bc59b57ad8c3ca0",
"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 #-}
module Module 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.Structures.Ring
open import Cubical.Structures.Group
open import Cu... | {
"alphanum_fraction": 0.5246313147,
"avg_line_length": 32.1919191919,
"ext": "agda",
"hexsha": "f29b258af254cce87a3b2a25011bcc07a0d8e9a5",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --cubical --safe #-}
module Data.Tuple.UniverseMonomorphic where
open import Prelude
open import Data.Fin
Tuple : ∀ n → (Fin n → Type) → Type
Tuple zero f = ⊤
Tuple (suc n) f = f f0 × Tuple n (f ∘ fs)
private
variable
n : ℕ
U : Fin n → Type
ind : Tuple n U → (i : Fin n) → U i
ind {n = suc... | {
"alphanum_fraction": 0.549905838,
"avg_line_length": 27.2307692308,
"ext": "agda",
"hexsha": "33aa4defd479e5862e2a2b3d7603c4e5bcb6cbb8",
"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-11T1... |
{-
This file contains cospans, cones, pullbacks and maps of cones in precategories.
-}
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Categories.Pullback where
open import Cubical.Foundations.Prelude
open import Cubical.Data.Sigma
open import Cubical.Categories.Category
private
variable
ℓ ... | {
"alphanum_fraction": 0.6158427635,
"avg_line_length": 37.3111111111,
"ext": "agda",
"hexsha": "242e742d04158ee1ff58d72809012be1f6525ba8",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-22T02:02:01.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-22T... |
module Common.Semantics where
open import Common.Context public
-- Special products for glueing.
infix 5 _⅋_
record Glue (Syn : Set) (Sem : Set) : Set where
constructor _⅋_
field
syn : Syn
sem : Sem
open Glue public
-- Contexts as concrete worlds.
module ConcreteWorlds (U : Set) where
record World... | {
"alphanum_fraction": 0.56,
"avg_line_length": 18.6046511628,
"ext": "agda",
"hexsha": "3665ef34e52261fc1baf71b6d975baa479ca7441",
"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": "... |
data ℕ : Set where
zero : ℕ
succ : ℕ → ℕ
data D : Set
foo : ℕ → ℕ
foo n = n
data D where
lam : (D → D) → D
| {
"alphanum_fraction": 0.5,
"avg_line_length": 9.6666666667,
"ext": "agda",
"hexsha": "feceaceefa2ffbdaed2595034feec19b81782558",
"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... |
module SystemF.BigStep.Intrinsic where
open import Prelude hiding (⊥)
open import SystemF.BigStep.Types
open import Data.List hiding ([_])
open import Data.List.Any.Membership
open import Data.List.Any hiding (map)
open import Data.Fin.Substitution
-- intrinsically typed syntax for System F
infix 100 _[_]
data Term... | {
"alphanum_fraction": 0.5475017593,
"avg_line_length": 31.5777777778,
"ext": "agda",
"hexsha": "526f03ace6b04f3aa9a2da4be711584f6acea275",
"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, 2019-08-18, issue #1346
-- Allow fixity in renaming directive, but not for modules.
module _ where
open import Agda.Builtin.Equality using ()
renaming (module _≡_ to infix 4 _~_)
-- Expected warning:
-- Modules do not have fixity
-- when scope checking the declaration
-- open import Agda.Builtin.Eq... | {
"alphanum_fraction": 0.6976744186,
"avg_line_length": 22.7647058824,
"ext": "agda",
"hexsha": "8ff06142878171d34d63ce3428246e5b51200c37",
"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... |
{-
Copyright 2019 Lisandra Silva
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | {
"alphanum_fraction": 0.4652709842,
"avg_line_length": 32.9741935484,
"ext": "agda",
"hexsha": "dc2dfda41688283f879e81906de30283e7540933",
"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 the domain predicate of quicksort given by the
-- Bove-Capretta method
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types... | {
"alphanum_fraction": 0.4510135135,
"avg_line_length": 36.4307692308,
"ext": "agda",
"hexsha": "5839ecd5108fdff6aca249d53f09425803168a5f",
"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 #-}
module Categories.2-Functor where
open import Level
open import Categories.Category.Monoidal.Instance.StrictCats using (module Product)
open import Categories.2-Category using (2-Category)
open import Categories.Enriched.Functor using (Functor)
2-Functor : ∀ {o ℓ e c d} →
... | {
"alphanum_fraction": 0.7013574661,
"avg_line_length": 31.5714285714,
"ext": "agda",
"hexsha": "f3a8fd7256dd9d3a41db3d05e74a9a2254b0aab7",
"lang": "Agda",
"max_forks_count": 64,
"max_forks_repo_forks_event_max_datetime": "2022-03-14T02:00:59.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-06-02... |
{-# OPTIONS --cubical --safe #-}
module Cubical.Structures.Rng where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.HLevels
open import Cubical.Data.Sigma
open import Cubical.Foundations.SIP renaming (SNS-PathP to SNS)
open import Cubical.Structures.NAr... | {
"alphanum_fraction": 0.6032258065,
"avg_line_length": 35.0943396226,
"ext": "agda",
"hexsha": "283c8981fa2ca14fa8a98789a62c55de754f92e9",
"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 Extensionality where
open import Relation.Binary.PropositionalEquality hiding (Extensionality)
postulate
f-ext : {A : Set}{B : A → Set}{f : (x : A) → B x} {g : (x : A) → B x} →
(∀ x → f x ≡ g x) → f ≡ g
| {
"alphanum_fraction": 0.5917431193,
"avg_line_length": 27.25,
"ext": "agda",
"hexsha": "67c9cde9f135111d590a14efe187ec682f4e7324",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2019-03-14T17:52:29.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-03-14T17:52:29... |
_ : Set
_ : Set → Set
| {
"alphanum_fraction": 0.5,
"avg_line_length": 7.3333333333,
"ext": "agda",
"hexsha": "6b0c1ece87c0f10812b905121ea3d3cc4f3dc571",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:08... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Heterogeneous N-ary Functions: basic types and operations
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Function.Nary.NonDependent.Base where... | {
"alphanum_fraction": 0.5313179643,
"avg_line_length": 33.0791366906,
"ext": "agda",
"hexsha": "6fb098e62c5f9ac1e835cb8c217f4ff362139fe8",
"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 par-swap.confluent where
open import par-swap
open import par-swap.properties
open import Data.Nat using (_+_ ; _≤′_ ; _<′_ ; suc ; zero ; ≤′-refl)
open import Esterel.Lang.CanFunction
open import utility
open import Esterel.Lang
open import Esterel.Context
open import Data.Product
open import Data.Sum
open im... | {
"alphanum_fraction": 0.5830385121,
"avg_line_length": 38.64453125,
"ext": "agda",
"hexsha": "32c6ca63d810cc016f5eae4322931bd8eb0bea2c",
"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-15T20... |
------------------------------------------------------------------------
-- Support for sized types
------------------------------------------------------------------------
{-# OPTIONS --without-K --sized-types #-}
module Prelude.Size where
open import Prelude
-- Size primitives.
open import Agda.Builtin.Size publ... | {
"alphanum_fraction": 0.5155172414,
"avg_line_length": 23.2,
"ext": "agda",
"hexsha": "6bd337191e99288e7cc28e79471189c7443e53c1",
"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... |
{-# OPTIONS --safe --experimental-lossy-unification #-}
module Cubical.Algebra.CommRing.Instances.Polynomials.UnivariatePolyHIT where
open import Cubical.Foundations.Prelude
open import Cubical.Data.Empty as ⊥
open import Cubical.Data.Nat hiding (_·_) renaming (_+_ to _+n_)
open import Cubical.Data.Nat.Order
open imp... | {
"alphanum_fraction": 0.6518087855,
"avg_line_length": 32.9361702128,
"ext": "agda",
"hexsha": "49d4a48d9a265d82a457030288b637beaf59f8f0",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
module Data.Num.Sandbox.WF where
open import Data.Nat
-- open import Relation.Binary
--
-- open DecTotalOrder decTotalOrder
-- using (trans)
--
-- data Acc (n : ℕ) : Set where
-- acc : (∀ m → m < n → Acc m) → Acc n
--
-- go0 : (m : ℕ) → m < 0 → Acc m
-- go0 m ()
--
-- <-wf : ∀ n → Acc n
-- <-wf n = acc (go n)
--... | {
"alphanum_fraction": 0.4424357755,
"avg_line_length": 25.0238095238,
"ext": "agda",
"hexsha": "5d32a36ec17df45a2f0568f873829aff8cbba584",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2015-05-30T05:50:50.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-05-30T... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Boring lemmas used in Data.Nat.GCD and Data.Nat.Coprimality
------------------------------------------------------------------------
module Data.Nat.GCD.Lemmas where
open import Data.Nat
import Data.Nat.Propert... | {
"alphanum_fraction": 0.283835384,
"avg_line_length": 41.350877193,
"ext": "agda",
"hexsha": "8b5a6c0424db0007bc7435f1310ebcd7b638632d",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexs... |
{-# OPTIONS --safe #-}
module Cubical.Displayed.Properties where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Univalence using (pathToEquiv; univalence; ua-ungluePath-Equ... | {
"alphanum_fraction": 0.4729584141,
"avg_line_length": 32.6830985915,
"ext": "agda",
"hexsha": "8d59bf8dd1976dee4a912c9537231db2ab1e171c",
"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
module Oscar.Class.Map where
module _
{𝔬₁} {𝔒₁ : Ø 𝔬₁}
{ℓ₁} (_∼₁_ : 𝔒₁ → 𝔒₁ → Ø ℓ₁)
{ℓ₂} (_∼₂_ : 𝔒₁ → 𝔒₁ → Ø ℓ₂)
where
𝓶ap = ∀ {x y} → x ∼₁ y → x ∼₂ y
record 𝓜ap : Ø 𝔬₁ ∙̂ ℓ₁ ∙̂ ℓ₂ where field map : 𝓶ap
open 𝓜ap ⦃ … ⦄ public
| {
"alphanum_fraction": 0.545112782,
"avg_line_length": 19,
"ext": "agda",
"hexsha": "6b39b37cf63e7a9df4d9ac60e8f1c3bc6358a39a",
"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": "52e1... |
-- Andreas, 2016-05-04, issue 1954
module _ where
module P (A : Set) where
record R : Set where
field f : A
open module Q A = P A
module M (A : Set) (r : R A) where
open R A r public
-- Parameter A should be hidden in R.f
works : ∀{A} → R A → A
works r = R.f r
-- Record value should not be hidden in M.f
t... | {
"alphanum_fraction": 0.6011235955,
"avg_line_length": 16.9523809524,
"ext": "agda",
"hexsha": "4d7a74e49829f5f5f17b69a7960cc4fac8cb5197",
"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, 2017-12-16, issue #2868.
-- Printing record fields correctly inside the record definition
-- in the presence of --postfix-projections.
{-# OPTIONS --postfix-projections #-}
open import Agda.Builtin.Equality
postulate
A : Set
record R : Set where
field
a : A
same : a ≡ a
test : A
test = ... | {
"alphanum_fraction": 0.6393442623,
"avg_line_length": 20.3333333333,
"ext": "agda",
"hexsha": "8f39afe6b254e249fddaa158a01e0b60ca43073c",
"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 _ where
open import Data.Nat using (_+_)
open import Data.Nat.Properties.Simple using ( +-comm ; +-assoc)
open import utility
open import Esterel.Lang
open import Esterel.Lang.Properties
open import Esterel.Environment as Env
open import Esterel.Context
open import Data.Product
open import Data.Sum
open import ... | {
"alphanum_fraction": 0.5923322684,
"avg_line_length": 57.962962963,
"ext": "agda",
"hexsha": "dfa8f69e4fa80281f406f53bd4f7e7dd6a6bfd7a",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2020-04-15T20:02:49.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-04-15T2... |
module Categories.Functor.Construction.Exponential where
open import Categories.Category
open import Categories.Category.Product using (Product)
open import Categories.Category.CartesianClosed
open import Categories.Category.Cartesian
open import Categories.Category.BinaryProducts
open import Categories.Object.Exponen... | {
"alphanum_fraction": 0.4731289153,
"avg_line_length": 45.9545454545,
"ext": "agda",
"hexsha": "e0d92de6735e0034267c988aea3cea679286c9ac",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --without-K --safe #-}
module Categories.Category.Dagger where
open import Level using (_⊔_; suc)
open import Relation.Unary using (Pred)
open import Categories.Category.Core using (Category)
open import Categories.Functor.Core using (Functor)
open import Categories.Morphism using (Iso)
record HasDagger ... | {
"alphanum_fraction": 0.5620188195,
"avg_line_length": 26.5681818182,
"ext": "agda",
"hexsha": "bdd8ef843121e6674ad0c43a76b92ab3832a2b5d",
"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... |
-- Andreas, 2017-01-12, issue #2386
postulate
A : Set
-- Should be rejected:
data Eq : (B : Set) (x y : B) → Set where
refl : (x : A) → Eq A x x
{-# BUILTIN EQUALITY Eq #-}
-- Expected error:
-- Wrong type of constructor of BUILTIN EQUALITY
-- when checking the pragma BUILTIN EQUALITY Eq
| {
"alphanum_fraction": 0.6464646465,
"avg_line_length": 19.8,
"ext": "agda",
"hexsha": "d80bb43b4084cbc8d1cc9e0b4578568158765b2c",
"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 --without-K --safe #-}
open import Definition.Typed.EqualityRelation
module Definition.LogicalRelation.Substitution.Introductions.ProdBetaEta {{eqrel : EqRelSet}} where
open EqRelSet {{...}}
open import Definition.Untyped as U hiding (wk)
open import Definition.Untyped.Properties
open import Definition.T... | {
"alphanum_fraction": 0.4228888164,
"avg_line_length": 46.1203007519,
"ext": "agda",
"hexsha": "aee8aa4936df9dadf3a168edf100d274c6bb2304",
"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... |
Finite : Domain → Formula
Finite(s) = ∃ₛ(ℕ)(n ↦ s ≼ 𝕟(n)) -- TODO: Now this means that there is an injection (s → 𝕟(n)), which is equivalent to the existance of an surjection (𝕟(n) → s) because stuff that follows from excluded middle (more specifically ((s ≼ 𝕟(n)) ↔ (𝕟(n) ≽ s))). Define ∑ (summation over finite s... | {
"alphanum_fraction": 0.6132756133,
"avg_line_length": 99,
"ext": "agda",
"hexsha": "220deb7d7d11cc35f29c7787ee41821e43da0002",
"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 --cubical --no-import-sorts --safe #-}
module Cubical.Algebra.Semigroup where
open import Cubical.Algebra.Base public
open import Cubical.Algebra.Definitions public
open import Cubical.Algebra.Structures public using (IsSemigroup; issemigroup)
open import Cubical.Algebra.Bundles public using (Semigroup; m... | {
"alphanum_fraction": 0.8377926421,
"avg_line_length": 42.7142857143,
"ext": "agda",
"hexsha": "5555a95e0c36cef8c2fedbeb00290f9114121216",
"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 --safe --without-K #-}
open import LogicalFormulae
open import Numbers.Naturals.Semiring
open import Numbers.Naturals.Order
open import Numbers.Naturals.Order.Lemmas
open import Semirings.Definition
open import Orders.Total.Definition
open import Lists.Lists
module Vectors where
data Vec ... | {
"alphanum_fraction": 0.5304581807,
"avg_line_length": 44.745819398,
"ext": "agda",
"hexsha": "2f50bed5137b5d0dfd1a7b2d82967e711d1d3a12",
"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-29T1... |
module Printf where
import AlonzoPrelude
import PreludeList
import PreludeShow
import PreludeString
import PreludeNat
open AlonzoPrelude
open PreludeList hiding (_++_)
open PreludeShow
open PreludeString
open PreludeNat
data Unit : Set where
unit : Unit
data Format : Set where
stringArg : Format
natArg : F... | {
"alphanum_fraction": 0.5645595158,
"avg_line_length": 35.4047619048,
"ext": "agda",
"hexsha": "ac35a3ab91585bfeed4f178ec50fba81ac17bcb7",
"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... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- This module is DEPRECATED. Please use
-- Data.List.Relation.Unary.Any.Properties directly.
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data... | {
"alphanum_fraction": 0.4815724816,
"avg_line_length": 31.3076923077,
"ext": "agda",
"hexsha": "d5d655df797b94019122c2b52b9d7d3273e53358",
"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 Function using (case_of_; _∘_)
open import Data.List using (List; _++_; map) renaming (_∷_ to _,_; _∷ʳ_ to _,′_; [] to ∅)
open import Data.List.Properties using (map-++-commute)
open import Data.Product using () renaming (_×_ to _x'_)
open import Relation.Binary.PropositionalEquality as PropEq using (_≡_; r... | {
"alphanum_fraction": 0.4012102449,
"avg_line_length": 33.2056074766,
"ext": "agda",
"hexsha": "0e3e8265200a5b4def54f58a7667f0a8c7078c3d",
"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 Issue564 where
postulate
Level : Set
zero : Level
{-# BUILTIN LEVEL Level #-}
{-# BUILTIN LEVELZERO zero #-}
postulate
A : Level → Set
module M ℓ where
postulate a : A ℓ
postulate
P : A zero → Set
open M zero
p : P a
p = {!!}
| {
"alphanum_fraction": 0.609375,
"avg_line_length": 11.1304347826,
"ext": "agda",
"hexsha": "ae731d8696f42da717b6d6d633762a37b2d78f5a",
"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 --safe #-}
-- This module primarily deals with expressions for pretty-printing,
-- for the step-by-step output from the solver.
open import Algebra
open import Relation.Binary
open import Relation.Binary.PropositionalEquality
open import Data.String using (String)
open import EqBool
open impor... | {
"alphanum_fraction": 0.5006060606,
"avg_line_length": 29.2899408284,
"ext": "agda",
"hexsha": "321d132059f661f9e288bd4736256b506cb64a4e",
"lang": "Agda",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2022-01-20T07:07:11.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-04-16T... |
module Data.Lens.Lens where
open import Haskell.Prelude
{-# FOREIGN AGDA2HS
{-# LANGUAGE Rank2Types #-}
#-}
---- Functors
-- The const functor, for which fmap does not change its value
data Const (a : Set) (b : Set) : Set where
CConst : a -> Const a b
getConst : {a : Set} {b : Set} -> Const a b -> a
getConst (C... | {
"alphanum_fraction": 0.6186820218,
"avg_line_length": 26.05,
"ext": "agda",
"hexsha": "a5eaea05b35d4f061f1e0ff12d2d99dfb0c96653",
"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 Postulate where
postulate
f
: {A : Set}
→ A
→ A
g
: {A : Set}
→ A
→ A
h
: {A : Set}
→ A
→ A
h x
= f x
| {
"alphanum_fraction": 0.3552631579,
"avg_line_length": 6.9090909091,
"ext": "agda",
"hexsha": "c3ab3e6a469b6adcfe30dd43b98fe47bd0e2b996",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2022-03-01T16:38:14.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-03-01T1... |
{-# OPTIONS --omega-in-omega --no-termination-check --overlapping-instances #-}
module Light.Variable.Other {ℓ} (𝕒 : Set ℓ) where
variable a b c d e f g h i j k l m : 𝕒
variable n o p q r s t u v w x y z : 𝕒
| {
"alphanum_fraction": 0.6476190476,
"avg_line_length": 30,
"ext": "agda",
"hexsha": "adfac348750e3222e81b4d79b732328414474565",
"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": "44b... |
open import slots.imports
open import slots.defs
module slots.packed {cfg : config}(g : game cfg) where
open config cfg
open game g
LineCombinations = Vec ℕ n
ReelCombinations = Vec LineCombinations m
PackedLine = Fruit × ReelNo
PackedReel = Vec ℕ m
PackedReels = Vec PackedReel n
packReel : Reel → PackedReel
packR... | {
"alphanum_fraction": 0.6258064516,
"avg_line_length": 25.0735294118,
"ext": "agda",
"hexsha": "798163f8be70abcd71755f1cc49d0ae0376a2fe0",
"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.part1.Equality where
data _≡_ {A : Set} (x : A) : A → Set where
refl : x ≡ x
infix 4 _≡_
sym : ∀ {A : Set} {x y : A} → x ≡ y → y ≡ x
sym refl = refl
trans : ∀ {A : Set} {x y z : A} → x ≡ y → y ≡ z → x ≡ z
trans refl refl = refl
cong : ∀ {A B : Set} (f : A → B) {x y : A} → x ≡ y → f x ≡ f y
cong f ref... | {
"alphanum_fraction": 0.4413875598,
"avg_line_length": 22.5945945946,
"ext": "agda",
"hexsha": "7140ac8940f22cfbab8bd1a16cfffb570c2f1d03",
"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 Class.Monad.Writer where
open import Class.Monad
open import Data.Product
open import Data.Unit.Polymorphic
open import Level
open import Function
private
variable
a : Level
A : Set a
record MonadWriter (M : Set a → Set a) {{_ : Monad M}} (W : Set a) : Set (suc a) where
field
tell : W → M ⊤
... | {
"alphanum_fraction": 0.5577235772,
"avg_line_length": 19.8387096774,
"ext": "agda",
"hexsha": "ae75aa4bd42bb0aa4e992c39555e076de831c5c5",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2021-10-20T10:46:20.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-06-27T... |
{-# OPTIONS --safe #-}
open import Definition.Typed.EqualityRelation
module Definition.LogicalRelation.Substitution.Introductions.Snd {{eqrel : EqRelSet}} where
open EqRelSet {{...}}
open import Definition.Untyped as U hiding (wk)
open import Definition.Untyped.Properties
open import Definition.Typed
open import Def... | {
"alphanum_fraction": 0.5199325037,
"avg_line_length": 51.5326086957,
"ext": "agda",
"hexsha": "87e2a41b0d5c9ff62d38d0136fc17199920e8660",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2022-02-15T19:42:19.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-01-26T... |
module plfa.part1.Naturals where
import Relation.Binary.PropositionalEquality as Eq
-- import Data.Nat using (ℕ; zero; suc; _+_; _*_; _^_; _∸_)
open Eq using (_≡_; refl)
open Eq.≡-Reasoning using (begin_; _≡⟨⟩_; _∎)
-- 'refl' - the name for evidence that two terms are equal
-- Agda uses underbars to indicate where... | {
"alphanum_fraction": 0.5117714286,
"avg_line_length": 18.0785123967,
"ext": "agda",
"hexsha": "fcd04406bd070647f361fdace840178825457cd6",
"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 FunctionsInIndices where
open import Prelude
open import Eq
data Tree (a : Set) : ℕ -> Set where
leaf : a -> Tree a 1
node : forall n₁ n₂ -> Tree a n₁ -> Tree a n₂ -> Tree a (n₁ + n₂)
-- This does not work:
-- leftmost : forall {a} n -> Tree a (suc n) -> a
-- leftmost .0 (leaf x) ... | {
"alphanum_fraction": 0.5271132376,
"avg_line_length": 27.8666666667,
"ext": "agda",
"hexsha": "2c8291247ec11f75cb5861aed5778ab3e4ff4625",
"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 --experimental-irrelevance #-}
-- {-# OPTIONS -v tc.lhs:20 #-}
module ShapeIrrelevantIndex where
data Nat : Set where
Z : Nat
S : Nat → Nat
data Good : ..(_ : Nat) → Set where
goo : .(n : Nat) → Good (S n)
bad : .(n : Nat) → Good n → Nat
bad .(S n) (goo n) = n
| {
"alphanum_fraction": 0.5653710247,
"avg_line_length": 20.2142857143,
"ext": "agda",
"hexsha": "2776b27e954fc29822a6533654f65e3fcd856914",
"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 --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-# OPTIONS --without-K #-}
-- From: Peter Dybjer. Comparing integrated and external logics of
-- functional programs. Science of Computer Programming, 14:59–79,
-- 1990
modu... | {
"alphanum_fraction": 0.5824324324,
"avg_line_length": 26.4285714286,
"ext": "agda",
"hexsha": "6b97b0b220c3b37e483ce4543a0839aa49383323",
"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 Ferros.Resource.CNode where
open import Ferros.Resource.CNode.Base public
| {
"alphanum_fraction": 0.8313253012,
"avg_line_length": 20.75,
"ext": "agda",
"hexsha": "2f60c8d7bf72d8198da23f31ef4345d378570c29",
"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 --rewriting #-}
module Basics where
open import Base public
open import PropT public
open import hSet public
open import lib.Basics public
| {
"alphanum_fraction": 0.765060241,
"avg_line_length": 16.6,
"ext": "agda",
"hexsha": "22b2436fc0bc1880ca0543ca0048696cf538c464",
"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": "49... |
{-# OPTIONS --without-K --safe #-}
open import Categories.Category.Monoidal.Structure
using (SymmetricMonoidalCategory)
module Categories.Functor.Monoidal.Symmetric {o o′ ℓ ℓ′ e e′}
(C : SymmetricMonoidalCategory o ℓ e) (D : SymmetricMonoidalCategory o′ ℓ′ e′)
where
open import Level
open import Data.Product u... | {
"alphanum_fraction": 0.5882178804,
"avg_line_length": 31.8679245283,
"ext": "agda",
"hexsha": "033c4bd9c34ef79d2e436c19ad81fef9860f3e9e",
"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
--
-- Finite sets
------------------------------------------------------------------------
-- Note that elements of Fin n can be seen as natural numbers in the
-- set {m | m < n}. The notation "m" in comments below re... | {
"alphanum_fraction": 0.4897494305,
"avg_line_length": 27.0153846154,
"ext": "agda",
"hexsha": "581611d1662519059668fdc93d65d5e1acf8eb5c",
"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 #-}
postulate
A : Set
data Unit : Set where
unit : Unit
F : Unit → Set
F unit = A
postulate
P : {A : Set} → A → Set
Q : ∀ {x} → F x → Set
f : ∀ {x} {y : F x} (z : Q y) → P z
variable
x : Unit
y : F x
g : (z : Q y) → P z
g z with f z
... | p = p
| {
"alphanum_fraction": 0.4766666667,
"avg_line_length": 12.5,
"ext": "agda",
"hexsha": "b4dfd4750e5d1041478ba673a2dc838b8f7e3897",
"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 --safe --experimental-lossy-unification #-}
module Cubical.Categories.Instances.EilenbergMoore where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Function
open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Isomorphism renaming (Iso to _≅_)
open import Cubical... | {
"alphanum_fraction": 0.5837127618,
"avg_line_length": 36.9567307692,
"ext": "agda",
"hexsha": "bbb09d11aa27a137ba1741b2280a42d9b0e19a1e",
"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 Issue1839.A
open import Issue1839.B
X : DontPrintThis -- should display as PrintThis
X = {!!}
| {
"alphanum_fraction": 0.7165354331,
"avg_line_length": 14.1111111111,
"ext": "agda",
"hexsha": "13ab5dca1cabc513a7e04a4497d72ba4351965c2",
"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... |
------------------------------------------------------------------------
-- Some code suggesting that types used in "programs" might not
-- necessarily be sets
------------------------------------------------------------------------
-- If lenses are only used in programs, and types used in programs are
-- always sets,... | {
"alphanum_fraction": 0.4906932287,
"avg_line_length": 30.9626168224,
"ext": "agda",
"hexsha": "99d968cf79ebae43ac9ce33718d2b332a74e4c7e",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2020-07-01T14:33:26.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-07-01T... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Examples showing how the generic n-ary operations the stdlib provides
-- can be used
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module README.Nar... | {
"alphanum_fraction": 0.4950657895,
"avg_line_length": 38.4,
"ext": "agda",
"hexsha": "3ea619e7462551579ef5a7fef5c448dd7c8ad731",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-04T06:54:45.... |
{-# OPTIONS --without-K --safe #-}
open import Categories.Category using (Category)
-- A "canonical" presentation of cartesian closed categories.
--
-- This presentation is equivalent to the one in
-- Categories.Category.CartesianClosed but it is easier to work with
-- in some circumstances.
--
-- Here, exponentials a... | {
"alphanum_fraction": 0.5973689886,
"avg_line_length": 28.6234567901,
"ext": "agda",
"hexsha": "93cd846e8a7634522e2efc1c71dd7976d2a52e5b",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Data.Empty.Base where
open import Cubical.Core.Everything
open import Cubical.Foundations.Prelude
private
variable
ℓ : Level
data ⊥ : Type₀ where
⊥* : Type ℓ
⊥* = Lift ⊥
rec : {A : Type ℓ} → ⊥ → A
rec ()
elim : {A : ⊥ → Type ℓ} → (x : ⊥) → A ... | {
"alphanum_fraction": 0.6121212121,
"avg_line_length": 15.7142857143,
"ext": "agda",
"hexsha": "023d975c8aae715dc21ae619903be1d5768c6acc",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
------------------------------------------------------------------------
-- A memoising backend for RecursiveDescent.Hybrid
------------------------------------------------------------------------
-- Following Frost/Szydlowski and Frost/Hafiz/Callaghan (but without
-- the left recursion fix). An improvement has been m... | {
"alphanum_fraction": 0.588860487,
"avg_line_length": 32.3173913043,
"ext": "agda",
"hexsha": "8007495bfa0e9b0eb7b5098a3365c925087c081e",
"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 Data.Rational where
import Data.Bool as Bool
import Data.Nat as Nat
import Data.Integer as Int
open Int renaming
( _*_ to _*'_
; _+_ to _+'_
; -_ to -'_
; _-_ to _-'_
; !_! to !_!'
; _==_ to _=='_
; _≤_ to _≤'_
... | {
"alphanum_fraction": 0.476127321,
"avg_line_length": 22.1764705882,
"ext": "agda",
"hexsha": "bbb24f70f13e83e2368a5f784f16bfe0477cfade",
"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 second-order signature was created from the following second-order syntax description:
syntax Empty | E
type
𝟘 : 0-ary
term
abort : 𝟘 -> α
theory
(𝟘η) e : 𝟘 c : α |> abort(e) = c
-}
module Empty.Signature where
open import SOAS.Context
-- Type declaration
data ET : Set where
𝟘 : ET
ope... | {
"alphanum_fraction": 0.6672413793,
"avg_line_length": 14.5,
"ext": "agda",
"hexsha": "22c98666f8c3dc390041636fec687fbc9c552380",
"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-09T20:39:59.... |
module Issue1245 where
postulate
A B : Set
[_] : A -> B
module M (_ : B) where
module N (a : A) = M [ a ]
| {
"alphanum_fraction": 0.5486725664,
"avg_line_length": 11.3,
"ext": "agda",
"hexsha": "7394cd983742a7ac6d7659bff909193d1362088c",
"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... |
-- This file is the source Agda file
-- Edit this file not Type.hs
-- The warning below will be written to Type.hs
module PlutusCore.Generators.NEAT.Type where
-- warning to be written to Haskell file:
{-# FOREIGN AGDA2HS
{-
!!! THIS FILE IS GENERATED FROM Type.agda
!!! DO NOT EDIT THIS FILE. EDIT Type.agda
!!! AND T... | {
"alphanum_fraction": 0.5874481719,
"avg_line_length": 32.7530864198,
"ext": "agda",
"hexsha": "8a5bc1528dac341423e7fd999ac66feab96abcdd",
"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 Fail.MultiArgumentPatternLambda where
open import Agda.Builtin.Bool
tooManyPats : Bool → Bool → Bool
tooManyPats = λ where false false → false
true true → false
_ _ → true
{-# COMPILE AGDA2HS tooManyPats #-}
| {
"alphanum_fraction": 0.6066176471,
"avg_line_length": 24.7272727273,
"ext": "agda",
"hexsha": "64282886385589d5c1e545bf47316a4ba39bbf9e",
"lang": "Agda",
"max_forks_count": 18,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:42:52.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-10-21... |
-- Andreas, 2018-03-23: issue #3007, reported by Fabian
-- An broken identifier followed by a comment and then the end of the file
-- caused an internal error during error reporting.
--
-- Should fail without internal error.
postulate _-- This is the end of the file!
| {
"alphanum_fraction": 0.7407407407,
"avg_line_length": 30,
"ext": "agda",
"hexsha": "174f09bec2fa481ce55e1d514876c1a8c5969fa8",
"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.... |
module Relator.Equals.Proofs where
open import Relator.Equals
open import Structure.Relator.Equivalence
open import Structure.Relator.Properties
open import Structure.Setoid renaming (_≡_ to _≡ₛ_)
instance
[≡]-reflexivity : ∀{ℓ}{A : Type{ℓ}} → Reflexivity(_≡_ {P = A})
Reflexivity.proof([≡]-reflexivity) = constant... | {
"alphanum_fraction": 0.7104072398,
"avg_line_length": 29.4666666667,
"ext": "agda",
"hexsha": "f0e4a9d9f45c06e500402c9200970b8811dfc7d6",
"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 New.NewNew where
open import New.Changes
open import New.LangChanges
open import New.Lang
open import New.Derive
open import Data.Empty
[_]τ_from_to_ : ∀ (τ : Type) → (dv : Chτ τ) → (v1 v2 : ⟦ τ ⟧Type) → Set
-- This can't be a datatype, since it wouldn't be strictly positive as it
-- appears on the left of an... | {
"alphanum_fraction": 0.6055708647,
"avg_line_length": 50.6679245283,
"ext": "agda",
"hexsha": "626ae260dbc93ba4f1736e2b922eee72c9a0fe40",
"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... |
module Data.ListSized.Functions where
import Lvl
open import Data.ListSized
open import Functional
open import Numeral.Finite
open import Numeral.Natural
open import Numeral.Natural.Function
open import Numeral.Natural.Oper
open import Numeral.Natural.Oper.Proofs
open import Type
private variable ℓ ℓ₁ ℓ₂ : Lvl.L... | {
"alphanum_fraction": 0.5322511747,
"avg_line_length": 34.6814814815,
"ext": "agda",
"hexsha": "46660575cc8ee23fea43d425bcb3b46545037974",
"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 #-}
id : ∀ {A : Set} → A → A;id
= λ x → x
Pair : Set → Set → Set;Pair
= λ A B → (P : Set) → (A → B → P) → P
dup : ∀ {A : Set} → A → Pair A A;dup
= λ a P p → p a a
Nat : Set;Nat
= (n : Set) → (n → n) → n → n
zero : Nat;zero
= λ n s z → z
suc : Nat → Nat;suc
= λ a n s z → s (a n s... | {
"alphanum_fraction": 0.579854737,
"avg_line_length": 48.3745173745,
"ext": "agda",
"hexsha": "b492147caf5039bbcdfc2bf0fd9bd92abe6761b4",
"lang": "Agda",
"max_forks_count": 19,
"max_forks_repo_forks_event_max_datetime": "2022-03-03T19:46:54.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-12-05T... |
module MLib.Prelude.TransitiveProver.Test where
open import MLib.Prelude.FromStdlib
open import Data.Nat
open import Data.Nat.Properties
open import MLib.Prelude.TransitiveProver _≤_ ≤-trans
open Search <-isStrictTotalOrder
1≤3 : 1 ≤ 3
1≤3 = s≤s z≤n
3≤5 : 3 ≤ 5
3≤5 = s≤s (s≤s (s≤s z≤n))
5≤9 : 5 ≤ 9
5≤9 = s≤s (s... | {
"alphanum_fraction": 0.5041224971,
"avg_line_length": 15.7222222222,
"ext": "agda",
"hexsha": "fe4d31dd891e1e733a1b9cf93f66a88cee8723b2",
"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
--
-- A categorical view of Vec
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.Vec.Categorical {a n} where
open import Category.Applicative us... | {
"alphanum_fraction": 0.5482300885,
"avg_line_length": 27.5609756098,
"ext": "agda",
"hexsha": "ba5f1669c0e7347a2cc1be9f14cd8202bd2a63ce",
"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... |
{-
This second-order signature was created from the following second-order syntax description:
syntax Monad | M
type
T : 1-ary
term
ret : α -> T α
bind : T α α.(T β) -> T β | _>>=_ r10
theory
(LU) a : α b : α.(T β) |> bind (ret(a), x. b[x]) = b[a]
(RU) t : T α |> bind (t, x. ret(x)) = t
(AS) t ... | {
"alphanum_fraction": 0.5604519774,
"avg_line_length": 19.6666666667,
"ext": "agda",
"hexsha": "bbd3911873bd61cbeccc4a1f6397960581347aaa",
"lang": "Agda",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2022-01-24T12:49:17.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-09T... |
-- Andreas, 2016-12-31, issue #1976 raised by nad
-- Check for correct parameters in projection pattern
-- {-# OPTIONS -v tc.lhs.split:40 #-}
postulate
A B : Set
module M (_ : Set) where
record R : Set₂ where
field
F : Set₁
open R public
open M A
wrong : M.R B
F wrong = Set
-- Expected error:
--... | {
"alphanum_fraction": 0.6393034826,
"avg_line_length": 16.08,
"ext": "agda",
"hexsha": "1cdb93a454c94804223ccc66ec278e301323c23c",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:... |
{-# OPTIONS --allow-unsolved-metas #-}
open import Agda.Builtin.Nat
data Tick : Nat → Set where
tick : ∀ {n} → Tick (suc n)
data Tensor : ∀ n → Tick n → Set where
ss : ∀ {n} → Tensor (1 + n) tick
tensor→a : ∀ {n s} → Tensor n s → Set
tensor→a x = {!!}
| {
"alphanum_fraction": 0.5692307692,
"avg_line_length": 20,
"ext": "agda",
"hexsha": "9ed2d8ae11943ee7e02d878ec382ef628c6d7962",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:08.... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Properties of sums (disjoint unions)
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.Sum.Properties where
open import Data.Sum
open impor... | {
"alphanum_fraction": 0.5350949628,
"avg_line_length": 32.7297297297,
"ext": "agda",
"hexsha": "0b1644efecf2ce86c8fda916cdf633ebe87d966f",
"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 universe used to define breadth-first manipulations of trees
------------------------------------------------------------------------
module BreadthFirst.Universe where
open import Codata.Musical.Colist using (Colist; []; _∷_)
open import... | {
"alphanum_fraction": 0.421182266,
"avg_line_length": 32.2222222222,
"ext": "agda",
"hexsha": "fec65922dcbaf31fa07a5bee1797b0058e6a3d52",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hex... |
module StateSizedIO.GUI.VariableList where
open import Data.Product hiding (map)
open import Data.List
open import NativeIO
open import StateSizedIO.GUI.WxBindingsFFI
data VarList : Set₁ where
[] : VarList
addVar : (A : Set) → Var A → VarList → VarList
addVar' : {A : Set} → Var A → VarList → VarList
addVa... | {
"alphanum_fraction": 0.5244072524,
"avg_line_length": 32.5909090909,
"ext": "agda",
"hexsha": "9e8e8d108bf33419e024702a5a5f7e780fa81392",
"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 Measure where
import Data.Nat as ℕ
import Data.Nat.Coprimality as Coprimality
import Data.Nat.GCD as GCD
import Data.Nat.Show as ℕshow
import Data.Nat.Divisibility as Divisibility
open ℕ using (ℕ; suc; zero)
open Coprimality using (Coprime)
open Divisibility using (di... | {
"alphanum_fraction": 0.5589899869,
"avg_line_length": 32.8142857143,
"ext": "agda",
"hexsha": "8e11da2db0409cde0ff3d2b3efc5394ce40c6417",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --safe --warning=error --without-K #-}
open import LogicalFormulae
open import Sets.EquivalenceRelations
open import Setoids.Setoids
module Setoids.Product {m n o p : _} {A : Set m} {B : Set n} (R : Setoid {m} {o} A) (S : Setoid {n} {p} B) where
open Setoid
productSetoid : Setoid (A && B)
_∼_ (productSe... | {
"alphanum_fraction": 0.6425255339,
"avg_line_length": 53.85,
"ext": "agda",
"hexsha": "09a9e50f324e54848e837605534f2aa7e86ddd5a",
"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:07... |
module Issue4435-1 where
record ⊤ : Set where
-- Declarations.
data Foo (a : Set) : Set
Bar : {a : Set} → Foo a → Set
-- Definitions.
data Foo a : Set where
c1 : Foo a
c2 : (x : Foo a) (y : Bar x → Foo a) → Foo a
Bar c1 = ⊤
Bar (c2 a b) = (x : Bar a) → Bar (b x)
| {
"alphanum_fraction": 0.5535055351,
"avg_line_length": 16.9375,
"ext": "agda",
"hexsha": "676368c2464e3644e32697d6e2a00b5cbbf49968",
"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:0... |
{-# OPTIONS --cubical --safe #-}
module Equality where
open import Cubical.Core.Everything using (_≡_; Level; Type; Σ; _,_; fst; snd; _≃_; ~_)
open import Cubical.Foundations.Prelude using (refl; sym; cong; transport; subst; funExt; transp; I; i0; i1)
open import Cubical.Foundations.Function using (_∘_... | {
"alphanum_fraction": 0.5028960818,
"avg_line_length": 32.2527472527,
"ext": "agda",
"hexsha": "ba470138ab8f5da7b668fb29a263293fcb52cc0f",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --safe --warning=error --without-K #-}
open import LogicalFormulae
open import Setoids.Setoids
open import Functions
open import Agda.Primitive using (Level; lzero; lsuc; _⊔_)
open import Numbers.Naturals.Naturals
open import Sets.FinSet
open import Groups.Definition
open import Groups.Lemmas
open import G... | {
"alphanum_fraction": 0.6710430343,
"avg_line_length": 70.3076923077,
"ext": "agda",
"hexsha": "a13d289d0f5e798882535afc7d1ee0079ba26988",
"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... |
open import Data.Nat using ( ℕ ; fold ) renaming ( zero to zero' ; suc to suc' )
open import Data.String using ( String )
module Data.Natural.Primitive where
infixl 6 _+_
postulate
Natural : Set
zero : Natural
suc : Natural → Natural
_+_ : Natural → Natural → Natural
show : Natural → String
foldl : {A ... | {
"alphanum_fraction": 0.6110562685,
"avg_line_length": 29.7941176471,
"ext": "agda",
"hexsha": "65028b7712904956c1823777e272c2a161baf0c5",
"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... |
------------------------------------------------------------------------
-- Unary relations (variant for Set₁)
------------------------------------------------------------------------
-- I want universe polymorphism.
module Relation.Unary1 where
-----------------------------------------------------------------------... | {
"alphanum_fraction": 0.4230103806,
"avg_line_length": 21.8113207547,
"ext": "agda",
"hexsha": "3339ecaf5eceb27d2fa77267e4ba9896b7784d86",
"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... |
-- Andreas, 2012-02-25 reported by edgmnt on behalf of xplat.
module Issue574 where
open import Common.Level
wah : ∀ o a → Set (lsuc lzero ⊔ (lsuc a ⊔ o)) → Set ((lsuc lzero ⊔ lsuc a) ⊔ o)
wah o a x = x -- should succeed
-- Error message was:
-- Set (suc zero ⊔ (suc a ⊔ o)) != Set (suc a ⊔ o)
-- when checking that t... | {
"alphanum_fraction": 0.6388888889,
"avg_line_length": 32.7272727273,
"ext": "agda",
"hexsha": "e20a0a14fd8dbb20b0eb52470b170ae2c8e47bbb",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
module Data.Either.Setoid where
import Lvl
open import Data.Either as Either
open import Data.Either.Equiv
open import Logic
open import Logic.Propositional
open import Structure.Function.Domain
open import Structure.Function
open import Structure.Relator.Equivalence
open import Structure.Relator.Properties
open ... | {
"alphanum_fraction": 0.6775009029,
"avg_line_length": 46.9322033898,
"ext": "agda",
"hexsha": "ce87bd068dc3e71a092df6421690f4fe1a240d74",
"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... |
------------------------------------------------------------------------
-- Functional semantics for a non-deterministic untyped λ-calculus
-- with constants
------------------------------------------------------------------------
module Lambda.Closure.Functional.Non-deterministic where
open import Category.Monad.Par... | {
"alphanum_fraction": 0.4323803943,
"avg_line_length": 32.8173076923,
"ext": "agda",
"hexsha": "26cb0aef2d58ff3619bd804bc7bff8e5a7ac1240",
"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.Induction where
import Relation.Binary.PropositionalEquality as Eq
open Eq using (_≡_; refl; cong; sym)
open Eq.≡-Reasoning using (begin_; _≡⟨⟩_; _≡⟨_⟩_; _∎)
open import Data.Nat using (ℕ; zero; suc; _+_; _*_; _∸_)
-- associativity of addition: (m + n) + p ≡ m + (n + p)
+-assoc : ∀ (m n p : ℕ) → (m + n) +... | {
"alphanum_fraction": 0.4314634523,
"avg_line_length": 25.0813953488,
"ext": "agda",
"hexsha": "8d9312a3df513cadec6a10c2ab08ee5cda1f15f0",
"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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.