Search is not available for this dataset
text string | meta dict |
|---|---|
------------------------------------------------------------------------
-- The Agda standard library
--
-- A pointwise lifting of a relation to incorporate a new infimum.
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
-- This module is designed to be used ... | {
"alphanum_fraction": 0.4916317992,
"avg_line_length": 31.8666666667,
"ext": "agda",
"hexsha": "e4227198f140f1dade45b782dbce23483f05bceb",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-04T... |
-- Andreas, 2017-07-24, issue #2654 reported by rntz
-- When splitting projections in an extended lambda,
-- we have to print them postfix, regardless of whether
-- the user chose --postfix-projections or not.
-- {-# OPTIONS --postfix-projections #-}
-- {-# OPTIONS -v interaction.case:60 #-}
open import Common.Produc... | {
"alphanum_fraction": 0.6229508197,
"avg_line_length": 30.5,
"ext": "agda",
"hexsha": "486a25ce0e88c0bf581a47b94cfb9ec85d943913",
"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... |
import Relation.Binary.PropositionalEquality as Eq
open Eq using (_≡_; refl; sym; trans; cong)
open Eq.≡-Reasoning
open import Data.Nat using (ℕ; zero; suc)
open import Data.Product using (_×_; proj₁; proj₂) renaming (_,_ to ⟨_,_⟩)
open import Data.Sum using (_⊎_; inj₁; inj₂)
open import Relation.Nullary using (¬_)
ope... | {
"alphanum_fraction": 0.5663129973,
"avg_line_length": 30.16,
"ext": "agda",
"hexsha": "7687676da03c7a9e78ddd7f6fa02f4a0ab8011aa",
"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-16T18:24:... |
{-# OPTIONS --without-K --exact-split --safe #-}
open import Fragment.Equational.Theory
module Fragment.Equational.FreeExtension.Base (Θ : Theory) where
open import Fragment.Equational.Model Θ
open import Fragment.Equational.Coproduct Θ
open import Level using (Level; Setω; _⊔_)
open import Data.Nat using (ℕ)
priv... | {
"alphanum_fraction": 0.6656716418,
"avg_line_length": 23.9285714286,
"ext": "agda",
"hexsha": "ebd18334566935ab313873b1e0285520b3bab804",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2021-06-16T08:04:31.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-06-15T... |
module Prelude.Function where
id : ∀ {a} {A : Set a} → A → A
id x = x
{-# INLINE id #-}
infixl -10 id
syntax id {A = A} x = x ofType A
const : ∀ {a b} {A : Set a} {B : Set b} → A → B → A
const x _ = x
{-# INLINE const #-}
flip : ∀ {a b c} {A : Set a} {B : Set b} {C : A → B → Set c} → (∀ x y → C x y) → ∀ y x → C x ... | {
"alphanum_fraction": 0.4373540856,
"avg_line_length": 27.3404255319,
"ext": "agda",
"hexsha": "98e50307e82ff7135e0691f47da9efb46b31e7ce",
"lang": "Agda",
"max_forks_count": 24,
"max_forks_repo_forks_event_max_datetime": "2021-04-22T06:10:41.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-03-12... |
{-
Definition of various kinds of categories.
This library follows the UniMath terminology, that is:
Concept Ob C Hom C Univalence
Precategory Type Type No
Category Type Set No
Univalent Category Type Set Yes
This file also contains
- pathToIso ... | {
"alphanum_fraction": 0.696,
"avg_line_length": 24.0384615385,
"ext": "agda",
"hexsha": "7dbecb149b94b72b8865795b7235399fbef6d1d9",
"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 #-}
open import Categories.Category
module Categories.Morphism.Lifts.Properties {o ℓ e} (𝒞 : Category o ℓ e) where
open import Level
open import Data.Product using (_,_; proj₁; proj₂)
open import Categories.Category.Construction.Arrow 𝒞
open import Categories.Diagram.Pullback 𝒞
op... | {
"alphanum_fraction": 0.5786833856,
"avg_line_length": 33.2291666667,
"ext": "agda",
"hexsha": "4104d1a20e5608266e4c10ffe20d67d93458333c",
"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
--
-- Rational numbers
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.Rational.Base where
open import Function using (id)
open import Data.Int... | {
"alphanum_fraction": 0.5091494068,
"avg_line_length": 26.1736842105,
"ext": "agda",
"hexsha": "1bcd733d3adefd605ef6c9dccaea9680ca66cc96",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-04T... |
------------------------------------------------------------------------------
-- Testing the translation of logical schemata with 11-ary predicates symbols
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #... | {
"alphanum_fraction": 0.4,
"avg_line_length": 36.5789473684,
"ext": "agda",
"hexsha": "bbea43d24d865f109f8f8149d8745dbd2eb9d726",
"lang": "Agda",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2016-08-03T03:54:55.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-05-10T23:06:19.... |
------------------------------------------------------------------------
-- Safe modules that use --cubical
------------------------------------------------------------------------
{-# OPTIONS --safe --cubical #-}
module README.Safe.Cubical where
-- A proof of univalence.
import Equality.Path.Univalence
-- A proof... | {
"alphanum_fraction": 0.6620825147,
"avg_line_length": 22.1304347826,
"ext": "agda",
"hexsha": "4ef897dde3bc38eea24f8e3237f61994238cb793",
"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 --no-sized-types --no-guardedness
--no-subtyping #-}
module Agda.Builtin.Char.Properties where
open import Agda.Builtin.Char
open import Agda.Builtin.Equality
primitive
primCharToNatInjective : ∀ a b → primCharToNat a ≡ primCharToNat b → a ≡ b
| {
"alphanum_fraction": 0.7098976109,
"avg_line_length": 24.4166666667,
"ext": "agda",
"hexsha": "dfd2015c6de162ca8e66ea47bc12d8dbdabe4e07",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-04-18T13:34:07.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-04-18T... |
{-# OPTIONS --cubical --safe #-}
module Cubical.HITs.S1.Properties where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.GroupoidLaws
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Univale... | {
"alphanum_fraction": 0.6973684211,
"avg_line_length": 28.8275862069,
"ext": "agda",
"hexsha": "9316dc20bfbdab346ee2220d944589dd1e68940a",
"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, 2016-02-09, issue and test case by Nisse
{-# OPTIONS --allow-unsolved-metas #-}
open import Common.Level
postulate
_≡_ : ∀ {a} {A : Set a} → A → A → Set a
refl : ∀ {a} {A : Set a} (x : A) → x ≡ x
record R a p : Set (lsuc (a ⊔ p)) where
field
elim : {A : Set a} (P : {x y : A} → x ≡ y → Set p) ... | {
"alphanum_fraction": 0.358950328,
"avg_line_length": 34.9836065574,
"ext": "agda",
"hexsha": "f1a7fed56ceb257bb1e685165422c938850dd9c9",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03... |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.HITs.S3.Base where
open import Cubical.Foundations.Prelude
data S³ : Type₀ where
base : S³
surf : PathP (λ j → PathP (λ i → base ≡ base) refl refl) refl refl
| {
"alphanum_fraction": 0.6869565217,
"avg_line_length": 25.5555555556,
"ext": "agda",
"hexsha": "b2269c91ba93ec00d25a3c2f89b2b3c1e7935336",
"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 hott.truncation.elim where
open import sum
open import equality
open import function
open import hott.equivalence
open import hott.level
open import hott.loop
open import hott.truncation.core
open import hott.truncation.equality
open import hott.univalence
open import sets.nat
open i... | {
"alphanum_fraction": 0.4403345127,
"avg_line_length": 34.9325842697,
"ext": "agda",
"hexsha": "8ff4db8d25a3d637aee4075f59aefd0c157f8f78",
"lang": "Agda",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2019-05-04T19:31:00.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-02-02T... |
module Records where
data Sigma (A : Set) (B : A -> Set) : Set where
_,_ : (x : A) (y : B x) -> Sigma A B
fst : {A : Set}{B : A -> Set} -> Sigma A B -> A
fst (x , y) = x
snd : {A : Set}{B : A -> Set} -> (p : Sigma A B) -> B (fst p)
snd (x , y) = y
data Sigma1 (A : Set1) (B : A -> Set1) : Set1 where
_,_ : (x : A... | {
"alphanum_fraction": 0.4926402944,
"avg_line_length": 22.412371134,
"ext": "agda",
"hexsha": "b8d6ede3968d74cd5b161a8c5751e5f84134c631",
"lang": "Agda",
"max_forks_count": 12,
"max_forks_repo_forks_event_max_datetime": "2022-02-11T01:57:40.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-08-14T... |
{-# OPTIONS --without-K #-}
open import HoTT
open import cohomology.Exactness
open import cohomology.Choice
open import cohomology.FunctionOver
module cohomology.Theory where
-- [i] for the universe level of the group
record CohomologyTheory i : Type (lsucc i) where
field
C : ℤ → Ptd i → Group i
CEl : ℤ → P... | {
"alphanum_fraction": 0.534107402,
"avg_line_length": 31.8,
"ext": "agda",
"hexsha": "621ba6140d854531e2cec31d88ceceaf540876ba",
"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": "bc... |
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9.
Copyright (c) 2020, 2021, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl
-}
open import LibraBFT.Prelude
open import LibraBFT.Lemmas
open import Lib... | {
"alphanum_fraction": 0.5810827177,
"avg_line_length": 32.6363636364,
"ext": "agda",
"hexsha": "e2535fa81b6d45c6284798165083af6db413fc79",
"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.HITs.Rationals.HITQ.Base where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Function
open import Cubical.Relation.Nullary
open import Cubical.HITs.Ints.QuoInt
open import Cubical.Data.Nat as ℕ hiding (_·_)
open import Cubica... | {
"alphanum_fraction": 0.6621761658,
"avg_line_length": 26.0810810811,
"ext": "agda",
"hexsha": "1d0dc9bffcde1f2466e2b0dcd55810408de6b61d",
"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 FFI where
postulate
IO : Set -> Set
{-# BUILTIN IO IO #-}
{-# COMPILED_TYPE IO IO #-}
postulate
return : {A : Set} -> A -> IO A
_>>=_ : {A B : Set} -> IO A -> (A -> IO B) -> IO B
{-# COMPILED return (\_ -> return :: a -> IO a) #-}
{-# COMPILED _>>=_ (\_ _ -> (>>=) :: IO a -> (a -> IO b) -> IO b) #-}
... | {
"alphanum_fraction": 0.505800464,
"avg_line_length": 18.7391304348,
"ext": "agda",
"hexsha": "eb58db098a7295852e858642227952aabd19ee92",
"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... |
module Numeral.CoordinateVector.Proofs where
import Lvl
open import Data.Boolean
open import Data.Boolean.Stmt
open import Data.Boolean.Stmt.Proofs
import Data.Either as Either
import Functional as Fn
open import Function.Equals
open import Function.Names
open import Function.PointwiseStructure
open imp... | {
"alphanum_fraction": 0.610360547,
"avg_line_length": 50.9071729958,
"ext": "agda",
"hexsha": "b3d17e01fa726bc28d82c995096cad97416238a9",
"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.Categories.Instances.Functors where
open import Cubical.Categories.Category
open import Cubical.Categories.Functor.Base
open import Cubical.Categories.NaturalTransformation.Base
open import Cubical.Categories.NaturalTransformation.Properties
open impor... | {
"alphanum_fraction": 0.6010733453,
"avg_line_length": 37.2666666667,
"ext": "agda",
"hexsha": "badb05c9871f25aaabc229bdb6cc21c54ffcc542",
"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 Issue947 where
A : Set₁
A = Set
where
B : Set₁
B = Set
module _ where
C : Set₁
C = Set
module M where
-- Andreas, 2020-04-25, #4623
-- These empty `where` blocks now generate warnings.
| {
"alphanum_fraction": 0.6600985222,
"avg_line_length": 11.2777777778,
"ext": "agda",
"hexsha": "a3b852ff64bd4efd3dcff3c404ac31e065eb6e70",
"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 Type.Isomorphism where
open import Functional
import Lvl
open import Structure.Setoid
open import Structure.Function.Domain hiding (inverseₗ ; inverseᵣ)
open import Type
private variable ℓ ℓ₁ ℓ₂ ℓₑ ℓₑ₁ ℓₑ₂ : Lvl.Level
module _
(A : Type{ℓ₁})
(B : Type{ℓ₂})
⦃ equiv-A : Equiv{ℓₑ₁}(A) ⦄
⦃ equiv-B : ... | {
"alphanum_fraction": 0.6388888889,
"avg_line_length": 22.5,
"ext": "agda",
"hexsha": "f2367e36e3ec4096350749a7fd1703e20463dcef",
"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": "7... |
{-# OPTIONS --safe --warning=error --without-K #-}
open import LogicalFormulae
open import Lists.Definition
open import Lists.Length
open import Numbers.Naturals.Semiring
module Lists.Concat where
appendEmptyList : {a : _} → {A : Set a} → (l : List A) → (l ++ [] ≡ l)
appendEmptyList [] = refl
appendEmptyList (x :: l... | {
"alphanum_fraction": 0.5966209081,
"avg_line_length": 37.88,
"ext": "agda",
"hexsha": "4aad91ece69147364b6845da78b574b39ebf2330",
"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... |
-- Andreas, 2020-03-19, issue #4486
-- "did you mean?" now also for invalid imports
record Foo : Set₁ where
field Θ : Set
open Foo using () renaming (θ to unwrap)
-- EXPECTED:
-- The module Foo doesn't export the following:
-- θ (did you mean 'Θ'?)
module M where
private postulate S : Set
open M using (S)
-... | {
"alphanum_fraction": 0.6736641221,
"avg_line_length": 19.0545454545,
"ext": "agda",
"hexsha": "ef28f61081418c52bdd2219dcafc467d3c042aa5",
"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 --exact-split #-}
module lists where
import 17-number-theory
open 17-number-theory public
unit-list :
{l1 : Level} {A : UU l1} → A → list A
unit-list a = cons a nil
{- First we introduce the functoriality of the list operation, because it will
come in handy when we try to define and pro... | {
"alphanum_fraction": 0.6205668497,
"avg_line_length": 34.9170984456,
"ext": "agda",
"hexsha": "6b765f05352a0daf0a1a92aeb7a93ca8dd8ce297",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
------------------------------------------------------------------------
-- INCREMENTAL λ-CALCULUS
--
-- Reexport Data.List from the standard library.
--
-- Here we expose different names, for use in Contexts.
------------------------------------------------------------------------
module Base.Data.ContextList where
... | {
"alphanum_fraction": 0.4535147392,
"avg_line_length": 24.5,
"ext": "agda",
"hexsha": "9bf03ab46b5f07a32dc56551e7bc3e33c08e0a3a",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2016-02-18T12:26:44.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-02-18T12:26:44.... |
module PatternSynonyms where
data ℕ : Set where
zero : ℕ
suc : (n : ℕ) → ℕ
{-# BUILTIN NATURAL ℕ #-}
{-# BUILTIN ZERO zero #-}
{-# BUILTIN SUC suc #-}
pattern z = zero
pattern sz = suc z
pattern ss x = suc (suc x)
data _≡_ {A : Set}(x : A) : A → Set where
refl : x ≡ x
test : z ≡ zero
test = refl
tes... | {
"alphanum_fraction": 0.4215805471,
"avg_line_length": 19.1836734694,
"ext": "agda",
"hexsha": "ca2d9b609d1bbd5e5cc08aa5fa9f46326c07dd03",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --without-K --safe #-}
open import Algebra
open import Data.Bool.Base using (Bool; if_then_else_)
open import Function.Base using (_∘_)
open import Data.Integer.Base as ℤ
using (ℤ; +_; +0; +[1+_]; -[1+_])
import Data.Integer.Properties as ℤP
open import Data.Integer.DivMod as ℤD
open import Data.Nat as ℕ ... | {
"alphanum_fraction": 0.5681146236,
"avg_line_length": 29.7094594595,
"ext": "agda",
"hexsha": "2818555bc8a46d7f321cb1d615e7466e28910202",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Algebra.RingSolver.CommRingSolver where
open import Cubical.Foundations.Prelude
open import Cubical.Data.FinData
open import Cubical.Data.Nat using (ℕ)
open import Cubical.Data.Nat.Order using (zero-≤)
open import Cubical.Data.Vec.Base
open import Cubi... | {
"alphanum_fraction": 0.484548105,
"avg_line_length": 38.6261261261,
"ext": "agda",
"hexsha": "1f5b611117c6518dd1209063f83597cae46c9e1f",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hex... |
{-# OPTIONS --without-K --rewriting #-}
open import HoTT
open import cohomology.Theory
open import cohomology.PtdMapSequence
open import groups.ExactSequence
open import groups.Exactness
open import groups.HomSequence
open import cw.CW
module cw.cohomology.FirstCohomologyGroupOnDiag {i} (OT : OrdinaryTheory i)
(⊙s... | {
"alphanum_fraction": 0.6785361029,
"avg_line_length": 28.0833333333,
"ext": "agda",
"hexsha": "a327b3f45a0309cae7645d7834e1b78fc30bc438",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2018-12-26T21:31:57.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-12-26T... |
--------------------------------------------------------------------------------
-- This file provides functions for escaping
--------------------------------------------------------------------------------
module Parse.Escape where
open import Class.Map
open import Data.SimpleMap
open import Data.String using (fromL... | {
"alphanum_fraction": 0.4494039368,
"avg_line_length": 44.5308641975,
"ext": "agda",
"hexsha": "639cac68e50609c1c75bd6cf805df8d66c32cb1a",
"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 --without-K --safe #-}
module Categories.Category.Indiscrete where
-- Category where all arrows are inhabited by a single element
open import Level
open import Data.Unit
open import Categories.Category
open import Relation.Binary.PropositionalEquality as ≡
Indiscrete : ∀ {o ℓ} (A : Set o) → Category o ℓ... | {
"alphanum_fraction": 0.600931677,
"avg_line_length": 23,
"ext": "agda",
"hexsha": "cdcdb98005cc4d80fabc12ce4cc6000e0eca5b91",
"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-02T16:58:15.00... |
{-# OPTIONS --copatterns #-}
-- {-# OPTIONS -v term:20 #-}
-- {-# OPTIONS --no-positivity-check #-}
-- {-# OPTIONS -v tc.def.fun:50 #-}
module CopatternNonterminating where
open import Common.Equality
record Stream (A : Set) : Set where
coinductive
field
head : A
tail : Stream A
module S = Stream
illdef... | {
"alphanum_fraction": 0.61360799,
"avg_line_length": 27.6206896552,
"ext": "agda",
"hexsha": "9ba95cbe6d6ec78ee079704c602c189bd993f128",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-03-05T20... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Properties of functions, such as associativity and commutativity
------------------------------------------------------------------------
-- This file contains some core definitions which are reexported by
-- Al... | {
"alphanum_fraction": 0.5251256281,
"avg_line_length": 30.6153846154,
"ext": "agda",
"hexsha": "cccfe99c4523f6afd5af4796c602660993b4c84a",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
------------------------------------------------------------------------
-- An alternative (non-standard) coinductive definition of weak
-- bisimilarity
------------------------------------------------------------------------
-- This definition is based on the function "wb" in Section 6.5.1 of
-- Pous and Sangiorgi's ... | {
"alphanum_fraction": 0.5431596091,
"avg_line_length": 28.2298850575,
"ext": "agda",
"hexsha": "daa9f492d26620265b42d22959eabb1ba2e454c0",
"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 breadth-first backend which uses the derivative operator
------------------------------------------------------------------------
module TotalParserCombinators.BreadthFirst where
open import Data.List
open import Data.List.Membership.Propos... | {
"alphanum_fraction": 0.5832881172,
"avg_line_length": 37.3581081081,
"ext": "agda",
"hexsha": "8c5cd22bd7a3011aa2e88929e0b929db66417395",
"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... |
-- Duplicate of #1984
postulate
Path : {A : Set} → A → Set
admit : {Z : Set} → Z
X : Set
Y : X → Set
Y' : X → Set
record Square : Set₁ where
field
A : Set
B : Set
b : B
coh : Path b
-- Spurious mutual block to trigger the problem
mut : Set
record Cocone : Set where
field
x : X
-- ... | {
"alphanum_fraction": 0.5654135338,
"avg_line_length": 15.4651162791,
"ext": "agda",
"hexsha": "0cded02a4ee7d74354387a6d661b40db49dd063b",
"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 type for values that should be erased at run-time
------------------------------------------------------------------------
-- The definitions in this module are reexported from Erased.
-- This module imports Equivalence.Erased.
{-# OPTIONS... | {
"alphanum_fraction": 0.4803475664,
"avg_line_length": 49.0216306156,
"ext": "agda",
"hexsha": "e8aa86180288e2523bc8eb051a143f487e3d4eb9",
"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... |
agda --compile Ackermann.agda
./Ackermann
| {
"alphanum_fraction": 0.7857142857,
"avg_line_length": 14,
"ext": "agda",
"hexsha": "32b6b4af203632b916ffba7c007130bca0635c53",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2018-11-09T22:08:40.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-11-09T22:08:40.00... |
{-# OPTIONS --warning ShadowingInTelescope --allow-unsolved-metas #-}
open import Agda.Primitive
-- warning here
data _~_ {a a : Level} {A : Set a} (a : A) : A -> Set where
refl : a ~ a
module _ {a} {A : Set a} where
-- nothing: the repetition is in separate telescopes
data Eq (a : A) : (a : A) → Set where
... | {
"alphanum_fraction": 0.5531628533,
"avg_line_length": 20.6388888889,
"ext": "agda",
"hexsha": "a481223882c200a9f89861182772975434c8e471",
"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 Proc
module Interp (param : Param) where
import Hear
open import Basics
private
open module P = Process param
open module H = Hear param
open Tran
data Result {a : U}(p : Proc a) : Set where
speak : forall {w q} -> p -! w !-> q -> Result p
refuse : Silent p -> Result p
upR : {a b : U}{p : Pro... | {
"alphanum_fraction": 0.5562827225,
"avg_line_length": 27.7818181818,
"ext": "agda",
"hexsha": "65c8b6f964c584d78a262d36424f6060b4da37e0",
"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 Issue481PonderBase where
postulate
List : Set
as : List
| {
"alphanum_fraction": 0.7285714286,
"avg_line_length": 11.6666666667,
"ext": "agda",
"hexsha": "d986656abcb68791676b7b12ff2557fa368d89af",
"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 --rewriting #-}
open import lib.Basics
open import lib.types.Coproduct
open import lib.types.Empty
open import lib.types.Pi
module lib.Relation2 where
module _ {i} {P : Type i} where
Dec-level : ∀ {n} → has-level (S n) P → has-level (S n) (Dec P)
Dec-level pP (inl p₁) (inl p₂) =
equi... | {
"alphanum_fraction": 0.6198347107,
"avg_line_length": 30.25,
"ext": "agda",
"hexsha": "8ee2c48ef80908a4e83437f658d3deb2e4d506ad",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2018-12-26T21:31:57.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-12-26T21:31:57... |
module Thesis.SIRelBigStep.IlcSILR where
open import Data.Unit.Base hiding (_≤_)
open import Data.Product
open import Relation.Nullary
open import Relation.Binary.PropositionalEquality
open import Thesis.SIRelBigStep.Lang public
open import Thesis.SIRelBigStep.DLang public
open import Thesis.SIRelBigStep.ArithExtra ... | {
"alphanum_fraction": 0.5637942552,
"avg_line_length": 44.4653465347,
"ext": "agda",
"hexsha": "ba7db6e6148612c35f42172457d927ce4d58cafa",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2016-02-18T12:26:44.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-02-18T... |
{-# OPTIONS --without-K --rewriting #-}
module PathInduction where
open import Base public
-- The rewriting relation
{-<rewrite>-}
postulate
_↦_ : ∀ {i} {A : Type i} → A → A → Type i
{-# BUILTIN REWRITE _↦_ #-}
{-</>-}
-- We redefine concatenation of paths to use induction on both paths, in order
-- to make unif... | {
"alphanum_fraction": 0.453452381,
"avg_line_length": 45.0160771704,
"ext": "agda",
"hexsha": "2b1ecc8df06dfe547f7d7d6bf5435ea947bbda0d",
"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 lib where
open import datatypes public
open import logic public
open import thms public
open import termination public
open import error public
open import io public
| {
"alphanum_fraction": 0.8390804598,
"avg_line_length": 19.3333333333,
"ext": "agda",
"hexsha": "070a2361dfb5c82f5c0b4cd0f0edc43f38933ac4",
"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... |
{-# OPTIONS --without-K --safe #-}
-- Take a relation that is already reflexive and transitive
-- and make it symmetric.
-- (Borrowed from Categories/Support/ZigZag from copumpkin's Categories library
module Relation.Binary.Construct.Symmetrize where
open import Level
open import Relation.Binary
open import Relatio... | {
"alphanum_fraction": 0.6489288182,
"avg_line_length": 43.8484848485,
"ext": "agda",
"hexsha": "346183f569ea537c782232a9cbf131fb26993c46",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
open import Prelude
module Implicits.Resolution.Ambiguous.Resolution where
open import Data.Fin.Substitution
open import Data.List
open import Data.List.Any
open Membership-≡
open import Implicits.Syntax
open import Implicits.Substitutions
data _⊢ᵣ_ {ν} (Δ : ICtx ν) : Type ν → Set where
r-tabs : ∀ {r} → ictx-weak... | {
"alphanum_fraction": 0.5943396226,
"avg_line_length": 27.8947368421,
"ext": "agda",
"hexsha": "9b8096884ec0e43b5d58eee73049b9bfad9e8267",
"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, 2015-07-20, record patterns
open import Common.Prelude
postulate A : Set
record R : Set where
field f : A
T : Bool → Set
T true = R
T false = A
test : ∀{b} → T b → A
test record{f = a} = a
-- Could succeed by some magic.
| {
"alphanum_fraction": 0.6280991736,
"avg_line_length": 13.4444444444,
"ext": "agda",
"hexsha": "5362fb908237d391fff36cac830b9c05c9dc8797",
"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 AnnotatedTypes where
{-
-- ATypes are stratified such that that dynamically bound
-- functions can only have dynamically bound parameters.
-- TODO: why exactly is that necessary?
-- Think about the example of the evaluation of a dynamic function with
-- static components
-- The following well-formedness re... | {
"alphanum_fraction": 0.5055176038,
"avg_line_length": 37.6831683168,
"ext": "agda",
"hexsha": "66841e8c3e96b732908b5da779f673faea4d5414",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2019-10-15T09:01:37.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-10-15T... |
{-# OPTIONS --without-K --safe #-}
open import Categories.Category
open import Categories.Functor hiding (id)
-- Cocone over a Functor F (from shape category J into category C)
module Categories.Diagram.Cocone
{o ℓ e} {o′ ℓ′ e′} {C : Category o ℓ e} {J : Category o′ ℓ′ e′} (F : Functor J C) where
open Category C
o... | {
"alphanum_fraction": 0.5802919708,
"avg_line_length": 22.8333333333,
"ext": "agda",
"hexsha": "9e4e1c4993f823d6996c0446502afe46036aed32",
"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 CompilingCoinduction where
open import Common.Coinduction
open import Common.Char
open import Common.String
data Unit : Set where
unit : Unit
{-# COMPILED_DATA Unit () () #-}
postulate
IO : Set → Set
{-# COMPILED_TYPE IO IO #-}
{-# BUILTIN IO IO #-}
{-# IMPORT Data.Text.IO #-}
postulate
putStrLn : ... | {
"alphanum_fraction": 0.6683673469,
"avg_line_length": 20.275862069,
"ext": "agda",
"hexsha": "431cc9c8d68cb15c1bc77bc987c1c9abffe2b3b3",
"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
--
-- Core lemmas for division and modulus operations
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.Nat.DivMod.Core where
open import Agda.Bu... | {
"alphanum_fraction": 0.5132154006,
"avg_line_length": 54.8098859316,
"ext": "agda",
"hexsha": "ed049b0a09eb2bc987e9291a61adf7702b63dcfa",
"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 HostRequirements where
open import Agda.Builtin.Unit
open import Data.String as String using (String)
open import Category.Applicative
open import Category.Monad
open import Category.Monad.State
data Path : Set where
MkPath : String -> Path
data Value : Set where
MkValue : String -> Value
data Identifier... | {
"alphanum_fraction": 0.7329910141,
"avg_line_length": 19.475,
"ext": "agda",
"hexsha": "4ea8045950e0ad1ed9246fcc07e8eccb10c18e9b",
"lang": "Agda",
"max_forks_count": 6,
"max_forks_repo_forks_event_max_datetime": "2022-02-10T07:34:35.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-09-28T09:22:4... |
{-# OPTIONS --safe #-}
module Cubical.Algebra.CommRing.DirectProd where
open import Cubical.Foundations.Prelude
open import Cubical.Data.Sigma
open import Cubical.Algebra.Ring
open import Cubical.Algebra.Ring.DirectProd
open import Cubical.Algebra.CommRing.Base
private
variable
ℓ ℓ' : Level
module _
(A'@(A ,... | {
"alphanum_fraction": 0.6067708333,
"avg_line_length": 26.0338983051,
"ext": "agda",
"hexsha": "bd6b213846a0c789456f774d394b74c73960e2f6",
"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... |
-- Operators for combining and building families
module SOAS.Families.Build {T : Set} where
open import SOAS.Common
open import SOAS.Context
open import SOAS.Sorting {T}
open import SOAS.Families.Core {T}
-- | Metavariable contexts
-- Inductive construction of context- and type-indexed sets
data MCtx : Set where
... | {
"alphanum_fraction": 0.5087248322,
"avg_line_length": 22.5757575758,
"ext": "agda",
"hexsha": "3fe8da1abe7a99a34d1d710a6540f7dd531116d1",
"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.Properties where
open import Data.Num
open import Data.Num.Core
open import Data.Num.Next
open import Data.Num.Continuous
open import Data.Nat
open import Data.Nat.Properties
open import Data.Nat.Properties.Simple
open import Data.Nat.Properties.Extra
open import Data.Fin.Properties hiding (setoid; _≟... | {
"alphanum_fraction": 0.4822362985,
"avg_line_length": 46.156779661,
"ext": "agda",
"hexsha": "4ec417b015675fbd6e6fc2f19d82040a91c6f073",
"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-30T0... |
-- Andreas, 2022-03-25, issue #5838, inconsistency in Cubical Agda.
-- Reported by Tom Jack: variant of test/Fail/Issue5838.agda.
{-# OPTIONS --safe --cubical #-}
open import Agda.Builtin.Bool
open import Agda.Builtin.Sigma
open import Agda.Primitive.Cubical
open import Agda.Primitive.Cubical public
renaming ( pri... | {
"alphanum_fraction": 0.441857261,
"avg_line_length": 30.885106383,
"ext": "agda",
"hexsha": "ae23051a2851fea76f09e6dc701b317fe66c947f",
"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 Agda.Builtin.Equality
-- Case splitting should not remove implicit arguments
record ⊤ : Set where constructor tt
test₁ : {A : Set} → ⊤ → ⊤
test₁ {A} x = {!x!}
-- Case splitting on an implicit argument should make it visible
test₂ : {x : ⊤} → ⊤
test₂ = {!.x!}
-- Implicit variables in dot patterns should... | {
"alphanum_fraction": 0.6073394495,
"avg_line_length": 21.8,
"ext": "agda",
"hexsha": "176aabd31b9b6bf8af46533f60919716ee5727af",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-03-05T20:02:38.... |
{-# OPTIONS --without-K --rewriting #-}
module UpperNaturals where
open import Basics
open import lib.Basics
open import lib.NType2
open import lib.types.Pi
open import lib.types.Nat
open import lib.types.Truncation
≤-antisymmetry : {n m : ℕ} (_ : n ≤ m) (_ : m ≤ n) → n == m
≤-antisymmetry {_} {_} (... | {
"alphanum_fraction": 0.4912963342,
"avg_line_length": 31.3012820513,
"ext": "agda",
"hexsha": "5da4f9a31cd1d461aacd3943c3ea5a3475b6ca94",
"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... |
-- Agda program using the Iowa Agda library
open import bool
module TO-PROVE-evendoublecoin
(Choice : Set)
(choose : Choice → 𝔹)
(lchoice : Choice → Choice)
(rchoice : Choice → Choice)
where
open import eq
open import nat
open import list
open import maybe
------------------------------------------------... | {
"alphanum_fraction": 0.4765714286,
"avg_line_length": 21.3414634146,
"ext": "agda",
"hexsha": "0047a030ccf42e0edd72a3ef6b9ef1dd6159349a",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-10-09T16:02:18.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-10-09T... |
-- Andreas, 2013-10-22
-- Fixed by checking with-function-types in internal syntax!
module Issue893 where
postulate
S : Set
data Dec (Px : Set) (q : Px → S) : Set where
tt : Dec Px q
-- record parameter is essential to reproduce error message
record Rec (P : S → Set) : Set where
field
prop ... | {
"alphanum_fraction": 0.5873786408,
"avg_line_length": 21.6842105263,
"ext": "agda",
"hexsha": "075edc82e3d7cee91b7535d972c9c3f8d77e8d9e",
"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 --cubical --safe #-}
module Data.Rational.SternBrocot where
open import Prelude
import Data.Nat as ℕ
import Data.Nat.Properties as ℕ
open import Data.Bits renaming (Bits to ℚ⁺; [] to 1ℚ; 0∷_ to lℚ; 1∷_ to rℚ)
open import Data.Bits.Equatable
-- ⟦_⇓⟧ : ℚ⁺ → (ℕ × ℕ)
-- ⟦ 1ℚ ⇓⟧ = 1 , 1
-- ⟦ lℚ x ⇓⟧ = let p ,... | {
"alphanum_fraction": 0.5083258729,
"avg_line_length": 41.6791044776,
"ext": "agda",
"hexsha": "b6d4d7934c6271641ff8a80f52f2c865e715a155",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-11T12:30:21.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-11T... |
module _ where
record ⊤ : Set where
instance
constructor tt
data Nat : Set where
suc : Nat → Nat
NZ : Nat → Set
NZ (suc _) = ⊤
postulate
A : ∀ n → {{_ : NZ n}} → Set
B : ∀ n (nz : NZ n) → Set
B (suc n) nz = A (suc n)
| {
"alphanum_fraction": 0.5341880342,
"avg_line_length": 12.3157894737,
"ext": "agda",
"hexsha": "2401585123e5faad6c3a2888dbdbdd877094b976",
"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 Nat where
data Rel (A : Set) : Set1 where
rel : (A -> A -> Set) -> Rel A
_is_than_ : {A : Set} -> A -> Rel A -> A -> Set
x is rel f than y = f x y
data Acc {A : Set} (less : Rel A) (x : A) : Set where
acc : ((y : A) -> x is less than y -> Acc less y) -> Acc less x
data WO {A : Set} (less : Rel A) : Set w... | {
"alphanum_fraction": 0.5903814262,
"avg_line_length": 19.6630434783,
"ext": "agda",
"hexsha": "1aa8e00c317c6c38870969d358cf747bba66dd94",
"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 Agda.Builtin.Unit
open import Agda.Builtin.Bool
open import Agda.Builtin.Reflection
postulate
tac : {A : Set} (x : A) → Term → TC ⊤
data D : Set where
con : {@(tactic tac true) y : Bool} → D
-- WAS: Internal error in Serialize/Instances/Internal for MetaV case
-- SHOULD: succeed
| {
"alphanum_fraction": 0.6966666667,
"avg_line_length": 21.4285714286,
"ext": "agda",
"hexsha": "bd757aad37f9f3aae0ca48790de7a9fd3f972a93",
"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... |
{-
Pointed structure: X ↦ X
-}
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Structures.Relational.Pointed where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Structure
open import Cubical.... | {
"alphanum_fraction": 0.7769230769,
"avg_line_length": 29.649122807,
"ext": "agda",
"hexsha": "eff62d4cb2fcd53b84e0317e0736bc891392be62",
"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... |
-- Issue #4115 reported by Guillaume Brunerie
{-# OPTIONS --prop #-}
data Unit : Set where
tt : Unit
postulate
P : Prop
{-# TERMINATING #-}
p : P
p = p
works : Unit → P
works b = p
-- WAS: Agda loops during injectivity analysis of `loops`
loops : Unit → P
loops tt = p
| {
"alphanum_fraction": 0.6344086022,
"avg_line_length": 13.2857142857,
"ext": "agda",
"hexsha": "cdf534822ee0ae5025cfd9ed661b2458650a6a85",
"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 Data.Boolean.Stmt.Proofs where
import Lvl
open import Data.Boolean
open import Data.Boolean.Proofs hiding (bivalence ; disjointness)
import Data.Boolean.Operators
open Data.Boolean.Operators.Programming
open import Data.Boolean.Stmt
open import Functional
open import Logic.Propositional as Logi... | {
"alphanum_fraction": 0.4745702006,
"avg_line_length": 32.091954023,
"ext": "agda",
"hexsha": "7f760ff3dda5927620e252eff32d212356536a95",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hex... |
-- Andreas, 2017-05-15, issue 2585, reported by Martin Stone Davis
-- Information about whether a function uses copatterns
-- needs to be added already while function is defines.
-- Otherwise, clauses might fail to check due to missing eta.
{-# OPTIONS --postfix-projections #-}
open import Agda.Builtin.Equality
reco... | {
"alphanum_fraction": 0.7001338688,
"avg_line_length": 20.75,
"ext": "agda",
"hexsha": "b08db5202560248085fb06a95295d158c4412aa0",
"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:... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Various forms of induction for natural numbers
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Induction.Nat where
open import Function
open i... | {
"alphanum_fraction": 0.5005024004,
"avg_line_length": 28.8006430868,
"ext": "agda",
"hexsha": "893a13a8951b2e7915ce1eb97dcaab05ec4e21b2",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --without-K --safe #-}
open import Categories.Category
-- Reasoning facilities about morphism equivalences (not necessarily 'squares')
module Categories.Morphism.Reasoning {o ℓ e} (C : Category o ℓ e) where
open import Categories.Morphism.Reasoning.Core C public
open import Categories.Morphism.Reasoning... | {
"alphanum_fraction": 0.7784431138,
"avg_line_length": 30.3636363636,
"ext": "agda",
"hexsha": "d77aac4d0969b2417d6a817c1c2d51fb5b81a5bf",
"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 --cubical-compatible --universe-polymorphism #-}
module WithoutK where
open import Common.Level
-- Propositional equality.
data _≡_ {A : Set} : A → A → Set where
refl : ∀ x → x ≡ x
-- The J rule.
J : {A : Set} (P : {x y : A} → x ≡ y → Set) →
(∀ x → P (refl x)) →
∀ {x y} (x≡y : x ≡ y) → P x≡y... | {
"alphanum_fraction": 0.5116099071,
"avg_line_length": 18.7246376812,
"ext": "agda",
"hexsha": "c2e66af9ce56f66f2052f7037266fa866a5f3b6d",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
------------------------------------------------------------------------------
-- Testing Agda internal term: @Pi _ (NoAbs _ _)@
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe... | {
"alphanum_fraction": 0.4937106918,
"avg_line_length": 28.9090909091,
"ext": "agda",
"hexsha": "ce9043649cecc4f61b904c6b9251da0ca9438447",
"lang": "Agda",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2016-08-03T03:54:55.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-05-10T... |
module Everything where
import Generics.Prelude
import Generics.Telescope
import Generics.Telescope.Equality
import Generics.Desc
import Generics.All
import Generics.HasDesc
import Generics.Accessibility
import Generics.Helpers
import Generics.Reflection
import Generics.Mu
import Generics.Mu.All
import Generics.Mu.El... | {
"alphanum_fraction": 0.8226600985,
"avg_line_length": 23.2,
"ext": "agda",
"hexsha": "259f1caa49151b07ac45d0a119504ee742a0d80b",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2022-01-14T10:35:16.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-04-08T08:32:42.... |
------------------------------------------------------------------------------
-- Fair properties
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-# OPTIONS -... | {
"alphanum_fraction": 0.4340744571,
"avg_line_length": 32.7796610169,
"ext": "agda",
"hexsha": "01efcdb18dcfd2a49dafc562f6e498f571b94254",
"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... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Table-related properties
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.Table.Properties where
open import Data.Table
open import Data.T... | {
"alphanum_fraction": 0.5429789249,
"avg_line_length": 35.1916666667,
"ext": "agda",
"hexsha": "1b399f27ebc5ca1b7e3f7facc8e663cd46355bc4",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --without-K --rewriting #-}
open import HoTT
open import homotopy.FinWedge
open import homotopy.Bouquet
open import groups.SphereEndomorphism
open import cohomology.Theory
module cohomology.RephraseSubFinCoboundary (OT : OrdinaryTheory lzero) where
open OrdinaryTheory OT
open import cohomology.SphereEndo... | {
"alphanum_fraction": 0.4640275387,
"avg_line_length": 49.2372881356,
"ext": "agda",
"hexsha": "6c71a718467e4feea32edc14d9b30184c81cc196",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
------------------------------------------------------------------------
-- Pointwise products of binary relations
------------------------------------------------------------------------
module Relation.Binary.Product.Pointwise where
open import Data.Function
open import Data.Product
open import Data.Sum
open import... | {
"alphanum_fraction": 0.4846938776,
"avg_line_length": 37.5514018692,
"ext": "agda",
"hexsha": "31ab2abf761290b701fa78475d49898a686d0299",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:54:10.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-07-21T... |
open import Common.Prelude hiding (tt)
instance
tt : ⊤
tt = record{}
NonZero : Nat → Set
NonZero zero = ⊥
NonZero (suc _) = ⊤
pred′ : (n : Nat) {{_ : NonZero n}} → Nat
pred′ zero {{}}
pred′ (suc n) = n
test : (n : Nat) {{x y : NonZero n}} → Nat
test n = pred′ n
| {
"alphanum_fraction": 0.5567765568,
"avg_line_length": 16.0588235294,
"ext": "agda",
"hexsha": "0dd49c7af1a9fcf296cd396f15174030f5c79f78",
"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... |
-- MIT License
-- Copyright (c) 2021 Luca Ciccone and Luca Padovani
-- Permission is hereby granted, free of charge, to any person
-- obtaining a copy of this software and associated documentation
-- files (the "Software"), to deal in the Software without
-- restriction, including without limitation the rights to use... | {
"alphanum_fraction": 0.6954498449,
"avg_line_length": 42.5054945055,
"ext": "agda",
"hexsha": "a8098613ab5e19ea480ba7e9d3aea718d20de747",
"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 +-mono-< where
open import Data.Nat using (ℕ; zero; suc; _+_)
open import Data.Nat.Properties using (+-comm)
open import Relations using (_<_; z<s; s<s)
open import <-trans using (<-trans)
+-monoʳ-< : ∀ (n p q : ℕ)
→ p < q
-------------
→ n + p < n + q
+-monoʳ-< zero p q p<q = p<q
+-monoʳ-< (suc n)... | {
"alphanum_fraction": 0.4512743628,
"avg_line_length": 23.8214285714,
"ext": "agda",
"hexsha": "14d2d4f27e25523272cfeb3519a38e6fa859e3dc",
"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 Cubical.Foundations.Everything where
-- Basic cubical prelude
open import Cubical.Foundations.Prelude public
-- Definition of Identity types and definitions of J, funExt,
-- univalence and propositional truncation using Id instead of Path
open import Cubical.Foundations.Id
hi... | {
"alphanum_fraction": 0.684073107,
"avg_line_length": 39.8958333333,
"ext": "agda",
"hexsha": "8da3efa470f1d91eb44637848be754d9c0c5fa7c",
"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 Prelude.String where
open import Agda.Primitive
open import Prelude.Unit
open import Prelude.Char
open import Prelude.Bool
open import Prelude.Nat
open import Prelude.List
open import Prelude.Maybe
open import Prelude.Equality
open import Prelude.Equality.Unsafe
open import Prelude.Decidable
open import Prelud... | {
"alphanum_fraction": 0.7151515152,
"avg_line_length": 23.8554216867,
"ext": "agda",
"hexsha": "45583f89c5ba65fa554cb244623159041327ac1f",
"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-compatible #-}
module Common.IO where
open import Agda.Builtin.IO public
open import Common.Bool
open import Common.Char
open import Common.Nat
open import Common.String
open import Common.Unit
open import Common.Float
infixl 1 _>>=_
postulate
return : ∀ {a} {A : Set a} → A → IO A
_>>=_ ... | {
"alphanum_fraction": 0.5857843137,
"avg_line_length": 28.3333333333,
"ext": "agda",
"hexsha": "85656477fa3e0905be98f540286d00dbe802eb1a",
"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 OpenModuleShortHand where
data Nat : Set where
zero : Nat
suc : Nat -> Nat
module List (Elem : Set) where
data List : Set where
[] : List
_::_ : Elem -> List -> List
open List Nat
{- This means
open module _ = List Nat
-}
xs : List
xs = zero :: (suc zero :: [])
| {
"alphanum_fraction": 0.5938566553,
"avg_line_length": 13.3181818182,
"ext": "agda",
"hexsha": "ac4362424728a28a7aaddefe2134e91d86a5c4db",
"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 classify-tests where
open import lib
open import classify
open import syntax-util
test = check-beta-inequiv (mlam "a" (mlam "b" (mvar "a"))) (mlam "a" (mlam "b" (mvar "b")))
| {
"alphanum_fraction": 0.6830601093,
"avg_line_length": 22.875,
"ext": "agda",
"hexsha": "2db0989fec7f2fa632a8d62ad80b00dc19f90ae7",
"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 #-}
module Cats.Displayed where
open import Data.Product using (Σ ; Σ-syntax ; _,_)
open import Level using (_⊔_ ; suc)
open import Relation.Binary using
(Setoid ; IsEquivalence ; Rel ; REL ; _Preserves₂_⟶_⟶_)
open import Cats.Category
record DisplayedCategory {lo la l≈} (C : Catego... | {
"alphanum_fraction": 0.3679149798,
"avg_line_length": 27.8309859155,
"ext": "agda",
"hexsha": "378755eabb8bbadc32759a71b4edb23d46cdece2",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2019-03-18T15:35:07.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-03-18T... |
module EqTest where
import Common.Level
data _≡_ {a : Set} (x : a) : a -> Set where
refl : x ≡ x
data Maybe (a : Set) : Set where
just : a -> Maybe a
nothing : Maybe a
data ℕ : Set where
zero : ℕ
suc : ℕ -> ℕ
_≟_ : (x y : ℕ) -> Maybe (x ≡ y)
suc m ≟ suc n with m ≟ n
suc .n ≟ suc n | just refl = j... | {
"alphanum_fraction": 0.5538116592,
"avg_line_length": 19.3913043478,
"ext": "agda",
"hexsha": "e22fe438ed9c66f9a8e98ca4fe14a2b19a8109f1",
"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 Issue477b where
record D where
field A : Set
| {
"alphanum_fraction": 0.7321428571,
"avg_line_length": 9.3333333333,
"ext": "agda",
"hexsha": "c93a111ef18fd1b9115105851232092c99a59bca",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03... |
{-# OPTIONS --without-K --safe #-}
open import Categories.Category
-- BinaryCoproducts -- a category with all binary coproducts
-- Cocartesian -- a category with all coproducts
-- since most of the work is dual to Categories.Category.Cartesian, so the idea
-- in this module is to make use of duality
module Categorie... | {
"alphanum_fraction": 0.5338286437,
"avg_line_length": 29.8396226415,
"ext": "agda",
"hexsha": "feee2f2e4a1099127a9a115fc197c910058c1c7f",
"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 #-}
data D : Set where
@0 c : D
data P (x : D) : Set where
record R : Set where
field
f : P c
| {
"alphanum_fraction": 0.5348837209,
"avg_line_length": 11.7272727273,
"ext": "agda",
"hexsha": "4c3c1aa24f17e34ae7994bc5979f21508cebf199",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --without-K --safe #-}
open import Level using (Level)
open import Data.List using (List; sum) renaming ([] to []ᴸ; _∷_ to _∷ᴸ_)
open import Data.Nat using (ℕ; _+_; zero; suc)
open import Data.Vec using (Vec; _++_; take; drop) renaming ([] to []ⱽ; _∷_ to _∷ⱽ_)
open import Data.Product as Prod using (∃; ∃₂... | {
"alphanum_fraction": 0.5706409373,
"avg_line_length": 39.2162162162,
"ext": "agda",
"hexsha": "7478834529dc4af2f91b481bf0fcb737c04f045f",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2021-09-07T19:55:59.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-04-12T... |
module Issue477 where
data D where
c : D | {
"alphanum_fraction": 0.7045454545,
"avg_line_length": 8.8,
"ext": "agda",
"hexsha": "f464b2df8eacb77ecf428956bb572dfc837f7745",
"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": "70... |
{-# OPTIONS --safe #-} -- --without-K #-}
import Data.String.Base as String
{-# BUILTIN FROMSTRING String.toList #-}
open import Data.Nat using (ℕ; zero; suc)
open import Data.Bool using (Bool; true; false)
open import Data.Unit using (⊤; tt)
open import Data.Fin using (Fin; zero; suc) renaming (#_ to #'_)
open import... | {
"alphanum_fraction": 0.5150959368,
"avg_line_length": 31.5022222222,
"ext": "agda",
"hexsha": "7a742ced047a05e007ce79b4459bfc7d9d1de242",
"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 #-}
open import Definition.Typed.EqualityRelation
module Definition.LogicalRelation.Irrelevance {{eqrel : EqRelSet}} where
open EqRelSet {{...}}
open import Tools.Empty using (⊥; ⊥-elim)
open import Definition.Untyped
open import Definition.Typed
open import Definition.Typed.Properties
open impor... | {
"alphanum_fraction": 0.4073808027,
"avg_line_length": 63.64,
"ext": "agda",
"hexsha": "d69092cc769799a794a1b0038c2e73a34d7928bb",
"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-26T14:55:51... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Solver for equations in commutative monoids
--
-- Adapted from Algebra.Monoid-solver
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Algeb... | {
"alphanum_fraction": 0.5347744361,
"avg_line_length": 29.8317757009,
"ext": "agda",
"hexsha": "5aab691dff510a34b0e9cf4a8d0bb8794dc8d500",
"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.Primitive
postulate
ℓ : Level
F : Level → Set
module Two where
mutual
α : Level
α = _
G : F (α ⊔ ℓ) → F ℓ
G A = A
H : F (α ⊔ ℓ) → F α
H A = A
module Three where
mutual
α : Level
α = _
β : Level
β = _
G : F (α ⊔ β ⊔ ℓ) → F ℓ
G A = A
... | {
"alphanum_fraction": 0.4035087719,
"avg_line_length": 10.2307692308,
"ext": "agda",
"hexsha": "69344ba484172bcd259036e41e1c0e14fe335387",
"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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.