Search is not available for this dataset
text string | meta dict |
|---|---|
{-# OPTIONS --without-K #-}
module M-types.Base where
open import M-types.Base.Core public
open import M-types.Base.Sum public
open import M-types.Base.Prod public
open import M-types.Base.Eq public
open import M-types.Base.Equi public
open import M-types.Base.Rel public
open import M-type... | {
"alphanum_fraction": 0.7172774869,
"avg_line_length": 29.3846153846,
"ext": "agda",
"hexsha": "cbda517d996a5dbbbc07f074c0f2b393025bab0b",
"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 Injections where
open import Data.Product
open import Relation.Nullary
open import Data.Empty
open import Data.Sum
open import Support.Equality
open ≡-Reasoning
open import Vars public
open import Injections.Type public
invert : ∀ {A : Set} {xs ys : List A} (i : Inj xs ys) → ∀ {t} (y : ys ∋ t) → Dec (∃ \ x →... | {
"alphanum_fraction": 0.3912716328,
"avg_line_length": 54.7235294118,
"ext": "agda",
"hexsha": "31995b9f2ea95922a7928e9120a732bca7b17a8e",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2022-01-06T19:34:26.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-11-13T... |
{-# OPTIONS --without-K --safe #-}
module Polynomial.Simple.Reflection where
open import Agda.Builtin.Reflection
open import Reflection.Helpers
open import Polynomial.Simple.Solver renaming (solve to solve-fn)
open AlmostCommutativeRing
open import Data.Nat.Table
open import Data.Fin as Fin using (Fin)
open im... | {
"alphanum_fraction": 0.514201442,
"avg_line_length": 40.6844444444,
"ext": "agda",
"hexsha": "b6f50e6f76fa1a388f2d2f5b6aac6e99e28318e0",
"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-16T0... |
open import Relation.Binary.PropositionalEquality using (_≡_)
module AKS.Primality.Base where
open import AKS.Nat using (ℕ; _<_)
open import AKS.Nat.GCD using (_∣_; _∤_)
record IsPrime (p : ℕ) : Set where
constructor IsPrime✓
field
1<p : 1 < p
∀i∣p[i≡p] : ∀ {i} → 1 < i → i ∣ p → i ≡ p
record IsComposite... | {
"alphanum_fraction": 0.6467449306,
"avg_line_length": 22.8536585366,
"ext": "agda",
"hexsha": "0146e586b99d5f7e8b6307c266bddbe8a1a2ce4c",
"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 Properties.StepBeta where
open import Data.List
open import Data.List.All
open import Data.Product
open import Relation.Nullary
open import Relation.Binary.PropositionalEquality
open import Typing
open import Syntax
open import Global
open import Channel
open import Values
open import Session
open import Sche... | {
"alphanum_fraction": 0.6022659511,
"avg_line_length": 32.4580645161,
"ext": "agda",
"hexsha": "cc3d0adc2dafa303652653962e216d9f94657c6f",
"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.Restriction.Instance.PartialFunctions where
-- The Category of partial functions is a restriction category
-- The proof is straightforward in the sense that it's all unwinding definitions,
-- but also no-trivial in that they need to be unwound with care (a... | {
"alphanum_fraction": 0.5440938511,
"avg_line_length": 38.0307692308,
"ext": "agda",
"hexsha": "2e51af9035330a1af8ab4e4881007ca9eb9b0c38",
"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 Data.Maybe.Sugar where
open import Prelude
open import Data.Maybe
infixl 4 _<*>_
_>>=_ : Maybe A → (A → Maybe B) → Maybe B
nothing >>= f = nothing
just x >>= f = f x
pure : A → Maybe A
pure = just
_<*>_ : Maybe (A → B) →
Maybe A →
Maybe B
nothing <*> ... | {
"alphanum_fraction": 0.5534591195,
"avg_line_length": 18.7058823529,
"ext": "agda",
"hexsha": "26a8c582d72a32d0f3c46a181b938340314ff501",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-11T12:30:21.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-11T... |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.DStructures.Structures.Universe where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Univalence
open impor... | {
"alphanum_fraction": 0.6071205497,
"avg_line_length": 34.0638297872,
"ext": "agda",
"hexsha": "3b5a597106cdf0fad2ed68f9e40df17e409479ac",
"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
--
-- Property related to Grouped
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.List.Relation.Unary.Grouped.Properties where
open import Data... | {
"alphanum_fraction": 0.490241482,
"avg_line_length": 39.7763157895,
"ext": "agda",
"hexsha": "5664d6f24f3cde8ab242e5b91540b7ed78d728ec",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-04T0... |
------------------------------------------------------------------------------
-- Properties related with the forest type
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymo... | {
"alphanum_fraction": 0.4687426832,
"avg_line_length": 37.1391304348,
"ext": "agda",
"hexsha": "2c949a9f71498c4769c475b4ed8d73bbf0b7dce3",
"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
--
-- Some theory for commutative semigroup
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Algebra using (CommutativeSemigroup)
module Algebra... | {
"alphanum_fraction": 0.3839925977,
"avg_line_length": 35.1463414634,
"ext": "agda",
"hexsha": "1516fd4c984918f8919ef29f92bd512540b945b8",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-04T... |
open import Relation.Binary.Core
module TreeSort.Impl2 {A : Set}
(_≤_ : A → A → Set)
(tot≤ : Total _≤_) where
open import BBSTree _≤_
open import Bound.Total A
open import Bound.Total.Order _≤_
open import Data.List
open import Data.Sum
insert : {x : A}{b t : Bound} → LeB b (va... | {
"alphanum_fraction": 0.5832205683,
"avg_line_length": 27.3703703704,
"ext": "agda",
"hexsha": "669efe0c46ccb7fb374adfe09c5f4f3a25e44d93",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
open import Oscar.Prelude
open import Oscar.Class.Successor₀
open import Oscar.Class.Successor₁
open import Oscar.Class.Injectivity
open import Oscar.Class.Pure
module Oscar.Class.Thickandthin where
module _
{x} {X : Ø x} {a} (A : X → Ø a) {b} (B : X → Ø b)
where
record [𝓣hin] : Ø₀ where
no-eta-equality
... | {
"alphanum_fraction": 0.4842387659,
"avg_line_length": 26.625,
"ext": "agda",
"hexsha": "06281ff4a3b24df6b720b8c6673f9ed66ec9906f",
"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": ... |
-- simply-typed λ-calculus w/ DeBruijn indices
module LC where
open import Agda.Primitive
open import Agda.Builtin.Bool
open import Data.Bool.Properties hiding (≤-trans ; <-trans ; ≤-refl ; <-irrefl)
open import Data.Empty
open import Data.Nat renaming (_+_ to _+ᴺ_ ; _≤_ to _≤ᴺ_ ; _≥_ to _≥ᴺ_ ; _<_ to _<ᴺ_ ; _>_ to ... | {
"alphanum_fraction": 0.4419054061,
"avg_line_length": 44.5139784946,
"ext": "agda",
"hexsha": "1d025dabede913ffacb172151beda179d6c3bc05",
"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-14T... |
module subst where
open import lib
open import cedille-types
open import ctxt-types
open import is-free
open import rename
open import general-util
open import syntax-util
substh-ret-t : Set → Set
substh-ret-t T = ∀ {ed} → ctxt → renamectxt → trie ⟦ ed ⟧ → T → T
substh : ∀ {ed} → substh-ret-t ⟦ ed ⟧
substh-term : s... | {
"alphanum_fraction": 0.6647990256,
"avg_line_length": 47.3653846154,
"ext": "agda",
"hexsha": "9ad27d2de1a2488628dd53cc4ade751da395d44a",
"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 Iff where
infix 20 _⇔_
record _⇔_ (A B : Set) : Set where
field
to : A → B
from : B → A
| {
"alphanum_fraction": 0.5462962963,
"avg_line_length": 13.5,
"ext": "agda",
"hexsha": "1735ee8c52eb9f708065e1c15542929eadf433d4",
"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": "b... |
module Data.BitVector.Peano where
open import Data.BitVector
open import Algebra.FunctionProperties.Core
open import Data.Nat hiding (pred) renaming (suc to Nsuc; zero to Nzero)
open import Data.Vec hiding (fromList)
open import Relation.Binary.PropositionalEquality
open import Data.Digit hiding (Bit)
open import Dat... | {
"alphanum_fraction": 0.5964912281,
"avg_line_length": 31.597826087,
"ext": "agda",
"hexsha": "395c602a58c5147e2cac949a5c0d4eacfa9d956d",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2021-11-12T01:40:57.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-05-25T0... |
{- 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 Optics.All
open import LibraBFT.Prelude
open import LibraBFT... | {
"alphanum_fraction": 0.6648606811,
"avg_line_length": 34,
"ext": "agda",
"hexsha": "0a9ab98e303291686912bd664f1052ad603397ce",
"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": "71a... |
{-# OPTIONS --no-unicode #-}
open import Agda.Builtin.Nat
pred : Nat -> Nat
pred = \ { n -> {!!} }
| {
"alphanum_fraction": 0.5445544554,
"avg_line_length": 14.4285714286,
"ext": "agda",
"hexsha": "77e270296929d14a9b657131f68dbfa048ac595d",
"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 SizedPoly.Console where
open import SizedPolyIO.Base
open import SizedPolyIO.Console hiding (main)
open import NativePolyIO
open import Level using () renaming (zero to lzero)
{-# TERMINATING #-}
myProgram : ∀{i} → IOConsole i (Unit {lzero})
myProgram = exec getLine λ line →
exec... | {
"alphanum_fraction": 0.6484210526,
"avg_line_length": 22.619047619,
"ext": "agda",
"hexsha": "2e02458b640d4165598dfe281f81441155810500",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:41:00.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-09-01T1... |
{-# OPTIONS --without-K --safe #-}
open import Definition.Typed.EqualityRelation
module Definition.LogicalRelation.Properties.Transitivity {{eqrel : EqRelSet}} where
open EqRelSet {{...}}
open import Definition.Untyped
open import Definition.Typed
open import Definition.Typed.Properties
open import Definition.Logica... | {
"alphanum_fraction": 0.4235323138,
"avg_line_length": 47.1395348837,
"ext": "agda",
"hexsha": "ce69fb1c06d926d792f8f3b806aef845888fcb9f",
"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 Text.Greek.SBLGNT.1Pet where
open import Data.List
open import Text.Greek.Bible
open import Text.Greek.Script
open import Text.Greek.Script.Unicode
ΠΕΤΡΟΥ-Α : List (Word)
ΠΕΤΡΟΥ-Α =
word (Π ∷ έ ∷ τ ∷ ρ ∷ ο ∷ ς ∷ []) "1Pet.1.1"
∷ word (ἀ ∷ π ∷ ό ∷ σ ∷ τ ∷ ο ∷ ∙λ ∷ ο ∷ ς ∷ []) "1Pet.1.1"
∷ word (Ἰ ∷ η ∷ ... | {
"alphanum_fraction": 0.3389790016,
"avg_line_length": 47.0870337478,
"ext": "agda",
"hexsha": "f7079e62693d95c84142acb1337507f69075cb37",
"lang": "Agda",
"max_forks_count": 5,
"max_forks_repo_forks_event_max_datetime": "2017-06-11T11:25:09.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-02-27T... |
data Unit : Set where
unit : Unit
F : Unit → Set₁
F {x = unit} = Set
| {
"alphanum_fraction": 0.5833333333,
"avg_line_length": 12,
"ext": "agda",
"hexsha": "4103cfc550f0703916f84ab6a78c4944908fc40a",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:08.... |
{-# OPTIONS --cubical --safe #-}
module Control.Applicative.Levels where
| {
"alphanum_fraction": 0.6883116883,
"avg_line_length": 11,
"ext": "agda",
"hexsha": "ea992e95dc1cb8b16552b5a5205bac87984de2c1",
"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-11T12:30:21.00... |
module PLRTree.Order.Properties {A : Set} where
open import Data.Nat
open import Data.Nat.Properties
open import Data.Sum
open import Function
open import Induction.Nat
open import Induction.WellFounded
open import PLRTree {A}
open import PLRTree.Order {A}
open import Relation.Binary
open import Relation.Binary.Propo... | {
"alphanum_fraction": 0.6413540714,
"avg_line_length": 29.5405405405,
"ext": "agda",
"hexsha": "904b031489b7417397754b5afea3c926723ee257",
"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 Holes.Prelude where
open import Agda.Primitive public
using (Level; _⊔_; lzero; lsuc)
open import Agda.Builtin.List public
using (List; _∷_; [])
open import Agda.Builtin.Unit public
using (⊤; tt)
open import Agda.Builtin.Bool public
using (Bool; true; false)
open import Agda.Builtin.Nat public
using (... | {
"alphanum_fraction": 0.4531572689,
"avg_line_length": 29.7560521415,
"ext": "agda",
"hexsha": "e8090258c3e48a4b9dfac59d809ce8f66a99a17c",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2021-02-02T18:57:17.000Z",
"max_forks_repo_forks_event_min_datetime": "2017-01-27T... |
open import Oscar.Prelude
open import Oscar.Class
open import Oscar.Class.Reflexivity
open import Oscar.Class.Smap
open import Oscar.Class.Surjextensionality
open import Oscar.Class.Surjidentity
open import Oscar.Class.Surjtranscommutativity
open import Oscar.Class.HasEquivalence
open import Oscar.Class.Transitivity
o... | {
"alphanum_fraction": 0.7791983414,
"avg_line_length": 40.1944444444,
"ext": "agda",
"hexsha": "09c38133265d08162f7f2c7bc592430597fc00ea",
"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 Substream (A : Set) where
open import Relation.Binary
open import Relation.Binary.PropositionalEquality as PE
open import PropsAsTypes
open import Stream
open Bisim A
open ~-Reasoning
mutual
record Sel : Set where
coinductive
field out : Selμ
data Selμ : Set where
... | {
"alphanum_fraction": 0.5401921132,
"avg_line_length": 29.0882352941,
"ext": "agda",
"hexsha": "ca4d5a0e83f003efadc1b3bd9a578f1c19828a8a",
"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 Structure.Category.Functor.Functors.Proofs where
import Functional as Fn
import Function.Equals
open Function.Equals.Dependent
open import Function.Equals.Proofs
open import Logic.Predicate
open import Logic.Propositional
import Lvl
open import Relator.Equals.Proofs.Equivalence
open import... | {
"alphanum_fraction": 0.6433108758,
"avg_line_length": 51.95,
"ext": "agda",
"hexsha": "472a1bc909bbde98d24f4a4cadddb98ce0aa2894",
"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": "... |
-- Andreas, 2015-06-28, issue reported by Nisse
{-# OPTIONS -vtc.pos.occ:20 #-} -- KEEP!, this triggered the __IMPOSSIBLE__
-- {-# OPTIONS -vtc.pos.occ:70 -v tc.rec:80 --show-implicit #-}
data ⊥ : Set where
F : ⊥ → Set
F ()
record R (i : ⊥) : Set₁ where
constructor c
field
P Q : F i → Set
-- An internal e... | {
"alphanum_fraction": 0.635431918,
"avg_line_length": 24.3928571429,
"ext": "agda",
"hexsha": "1a24c51dccfa2425389ea2040d1f65544564f6fd",
"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... |
open import Agda.Builtin.Nat
f : Nat
f with zero
... | n with (suc n)
... | m = m
| {
"alphanum_fraction": 0.578313253,
"avg_line_length": 11.8571428571,
"ext": "agda",
"hexsha": "96ad7bc5b45be99a746af32de60a90ed2844ac00",
"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... |
data Li : (a : Set) -> Set where
Ni : {a : Set} -> Li a
Co : {a : Set} -> a -> Li a -> Li a
{-# BUILTIN NATURAL name #-}
t : Li (Set 2) -> Set 1
t li = Set 1
| {
"alphanum_fraction": 0.4606060606,
"avg_line_length": 16.5,
"ext": "agda",
"hexsha": "89e88ed365ff096d8c4ef74c475ed36260ba34a0",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2019-11-27T16:25:18.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-11-27T16:25:18.... |
------------------------------------------------------------------------
-- Recognisers form a Kleene algebra
------------------------------------------------------------------------
module TotalRecognisers.LeftRecursion.KleeneAlgebra (Tok : Set) where
open import Algebra
import Algebra.Properties.BooleanAlgebra
open... | {
"alphanum_fraction": 0.5150004451,
"avg_line_length": 35.2131661442,
"ext": "agda",
"hexsha": "636c01c5be47c980e18e695b07490e4d84e9d4c7",
"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... |
{-
FP Lunch, Nottingham
July 27, 2007
Conor McBride
-}
module Binary where
data Bit : Set where
O : Bit
I : Bit
infixl 80 _◃_
data Pos : Set where
◃I : Pos
_◃_ : Pos -> Bit -> Pos
bsuc : Pos -> Pos
bsuc ◃I = ◃I ◃ O
bsuc (n ◃ O) = n ◃ I
bsuc (n ◃ I) = bsuc n ◃ O
data Peano : Pos -> Set wher... | {
"alphanum_fraction": 0.5030612245,
"avg_line_length": 18.1481481481,
"ext": "agda",
"hexsha": "f4b88fc4c9a8d10d1d4b7f581b736c762d92c7d3",
"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 Chain
{A : Set}(_==_ : A -> A -> Set)
(refl : (x : A) -> x == x)
(trans : (x y z : A) -> x == y -> y == z -> x == z)
where
infix 2 chain>_
infixl 2 _===_by_
infix 1 _qed
private
data _≃_ (x y : A) : Set where
prf : x == y -> x ≃ y
chain>_ : (x : A) -> x ≃ x
chain> x = prf (refl x)
_===... | {
"alphanum_fraction": 0.4157782516,
"avg_line_length": 18.76,
"ext": "agda",
"hexsha": "6fb2703510388b695b36e69b8d6e11856485dfb2",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:... |
module Languages.FILL.Syntax where
open import level
open import bool
open import nat
open import unit
open import empty
open import list
open import eq
open import sum
open import Utils.HaskellTypes
open import Utils.HaskellFunctions
open import Languages.FILL.TypeSyntax
True : Set
True = ⊤{lzero}
False : Set
Fals... | {
"alphanum_fraction": 0.5546331012,
"avg_line_length": 30.1129032258,
"ext": "agda",
"hexsha": "241631f2d9b6ba9619c5577d675af09e4dc9f87c",
"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 Definition.Typed.EqualityRelation
module Definition.LogicalRelation.Substitution.Introductions {{eqrel : EqRelSet}} where
open import Definition.LogicalRelation.Substitution.Introductions.Application public
open import Definition.LogicalRelation.Substitution.Introductio... | {
"alphanum_fraction": 0.8724559023,
"avg_line_length": 52.6428571429,
"ext": "agda",
"hexsha": "a78b8ff4c4f50f9e3fa3d5f392133b87ab0d7fb4",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
open import Agda.Builtin.Equality
cong : ∀{a b} {A : Set a} {B : Set b} (f : A → B) {x y : A} (eq : x ≡ y) → f x ≡ f y
cong f refl = refl
record Category : Set₂ where
field
Ob : Set₁
_⇒_ : Ob → Ob → Set
_∘_ : ∀ {O P Q} → P ⇒ Q → O ⇒ P → O ⇒ Q
-- Moving this out of the record fixes the problem.
ide... | {
"alphanum_fraction": 0.5039123631,
"avg_line_length": 19.96875,
"ext": "agda",
"hexsha": "bb99a3cf1eb70a3cc94bcdb5f7f9dc9e9cbd969a",
"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"... |
-- Andreas, 2012-01-11, bug reported by Adam Gundry
module Issue551 where
data Bool : Set where
true false : Bool
data _≡_ {A : Set}(a : A) : A → Set where
refl : a ≡ a
cong : {A B : Set}(f : A → B){a a' : A} → a ≡ a' → f a ≡ f a'
cong f refl = refl
implicit : {A : Set}{{a : A}} -> A
implicit {{a}} = a
record ... | {
"alphanum_fraction": 0.6253263708,
"avg_line_length": 21.2777777778,
"ext": "agda",
"hexsha": "e55b39da386d02e7e0fedf9af95ae687e6c3a925",
"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 Issue936 where
-- The highlighting generated for this file should not contain
-- any references to Agda.Primitive.
| {
"alphanum_fraction": 0.7967479675,
"avg_line_length": 24.6,
"ext": "agda",
"hexsha": "57c8f0736bd1ffef1c5f9b7c6f9165a049135109",
"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... |
-- Andreas, 2017-01-18, issue #57
-- reported by Nisse 2008-03-26
data Unit : Set where
unit : Unit
foo : Unit → Unit
foo m with m
foo _ | x@unit with x
foo _ | x@unit | _ = x
test : Unit → Unit
test m with m
test _ | x@unit with x
... | _ = x
| {
"alphanum_fraction": 0.6144578313,
"avg_line_length": 15.5625,
"ext": "agda",
"hexsha": "3c60a64ce428b6cb1221f54f6b9582e0c8852391",
"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... |
------------------------------------------------------------------------
-- Rational numbers
------------------------------------------------------------------------
module Data.Rational where
open import Data.Bool.Properties
open import Data.Function
open import Data.Integer hiding (suc) renaming (_*_ to _ℤ*_)
open ... | {
"alphanum_fraction": 0.5245362059,
"avg_line_length": 30.3818181818,
"ext": "agda",
"hexsha": "1042d936021b1bbbe59051aac054b78ace259a47",
"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... |
{-# OPTIONS --without-K --rewriting #-}
open import lib.Basics
open import lib.types.Group
open import lib.types.Unit
open import lib.groups.SubgroupProp
open import lib.groups.Homomorphism
open import lib.groups.Isomorphism
open import lib.groups.Lift
module lib.groups.Unit where
Unit-group-structure : GroupStructu... | {
"alphanum_fraction": 0.6797843666,
"avg_line_length": 28.1060606061,
"ext": "agda",
"hexsha": "411cf7569540e96b36c436296959e52205fd6b95",
"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... |
data Nat : Set where
zero : Nat
suc : Nat → Nat
plus : Nat → Nat → Nat
plus zero b = b
plus (suc a) b = suc (plus a b)
infixl 6 _+_
_+_ = plus
{-# DISPLAY suc n = 1 + n #-}
{-# DISPLAY plus a b = a + b #-}
postulate
T : {A : Set} → A → Set
test₁ : ∀ a b → T (plus (suc a) b)
test₁ a b = {!!}
data Vec (A : S... | {
"alphanum_fraction": 0.4783505155,
"avg_line_length": 18.6538461538,
"ext": "agda",
"hexsha": "72ecc258d6f1945bb1f4b8225ef93f5b54e083d9",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-03-05T... |
{-# OPTIONS --without-K --safe #-}
open import Definition.Typed.EqualityRelation
module Definition.LogicalRelation.Substitution.Reducibility {{eqrel : EqRelSet}} where
open EqRelSet {{...}}
open import Definition.Untyped hiding (_∷_)
open import Definition.Untyped.Properties
open import Definition.Typed
open import ... | {
"alphanum_fraction": 0.5055319149,
"avg_line_length": 32.6388888889,
"ext": "agda",
"hexsha": "a55ca130f226f38fbe16e1bbc0f427e94b9d5b69",
"lang": "Agda",
"max_forks_count": 8,
"max_forks_repo_forks_event_max_datetime": "2021-11-27T15:58:33.000Z",
"max_forks_repo_forks_event_min_datetime": "2017-10-18T... |
{-# OPTIONS --without-K --safe #-}
module Categories.Category.Construction.Properties.Comma where
open import Level
open import Data.Product using (Σ; _,_; proj₁; proj₂; zip; map; swap; <_,_>; -,_)
open import Categories.Category
open import Categories.Category.Instance.One
open import Categories.Category.Equivalence... | {
"alphanum_fraction": 0.4994328494,
"avg_line_length": 32.8955223881,
"ext": "agda",
"hexsha": "2d4cd871ded8ca82fb16181344a08c1a84a04476",
"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 FlatUnderscore where
postulate
A : Set
f : (@♭ X : A → Set) → ∀ a → X a
@♭ B : A → Set
-- The undescore should be solved to B.
g : ∀ a → B a
g = f _
| {
"alphanum_fraction": 0.5333333333,
"avg_line_length": 13.75,
"ext": "agda",
"hexsha": "2b29c417b0cea7b2fbe584177c7b0a5ac6c3dae3",
"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 --safe --no-qualified-instances #-}
module CF.Syntax where
open import Level
open import Data.Integer
open import Data.Bool
open import Data.String
open import Data.Product
open import Data.List hiding (null)
open import Data.List.Relation.Unary.All
open import Relation.Unary hiding (_⊢_)
open import Rel... | {
"alphanum_fraction": 0.6660332542,
"avg_line_length": 30.9558823529,
"ext": "agda",
"hexsha": "7c817ac0a9621140c14733fcc97efb7067347b38",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-12-28T17:37:15.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-12-28T... |
-- Andreas, 2019-11-06, issue #4173, reported and testcase by nad.
-- Allow pattern matching on erased arguments in erased context.
-- {-# OPTIONS -v tc.cover.split:60 #-}
open import Agda.Builtin.Bool
@0 F : @0 Bool → Set₁
F true = Set
F false = Set
-- Should succeed.
@0 G : @0 Bool → Set₁
G x = {! x !} -- spli... | {
"alphanum_fraction": 0.6581196581,
"avg_line_length": 21.9375,
"ext": "agda",
"hexsha": "f34624308a7f77b1145b4ab934591106d2c3a688",
"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... |
module Class.Monad where
open import Class.Functor
open import Data.Unit.Polymorphic
open import Category.Monad renaming (RawMonad to Monad) public
open Monad {{...}} using (return; _>>=_; _=<<_; _>>_) public
module _ {a} {M : Set a → Set a} {{m : Monad M}} where
instance
_ = Monad.rawIApplicative m
monad... | {
"alphanum_fraction": 0.6575682382,
"avg_line_length": 23.7058823529,
"ext": "agda",
"hexsha": "6d1caecd18f570dcade6b4e4fbdbb62b8e90636b",
"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 --rewriting --without-K #-}
open import Agda.Primitive
open import Prelude
open import GSeTT.Syntax
open import GSeTT.Rules
{- Categorical structure of the type theory for globular sets -}
module GSeTT.CwF-structure where
{- cut-admissibility : action of substitutions preserves derivability -}
[]T : ... | {
"alphanum_fraction": 0.4323817462,
"avg_line_length": 53.3222222222,
"ext": "agda",
"hexsha": "5f80068ef46f78fed932162a2d45e81608ced06f",
"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... |
{- With Agda's current sized types, we have a size ∞ with ∞ < ∞. That's
obviously troublesome if we want to interpret sizes as ordinals and < as the
less-than relation, and indeed we can use this rule to prove false (in
multiple different ways).
This file is an experiment to see whether we could still work... | {
"alphanum_fraction": 0.5286977988,
"avg_line_length": 23.3701923077,
"ext": "agda",
"hexsha": "d72dd7cc328c1d8f0f4109bd5887bd9ab9a38edb",
"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.List.Functions where
import Lvl
open import Data.Boolean
import Data.Boolean.Operators
open Data.Boolean.Operators.Programming
open import Data.List
open import Data.Option as Option using (Option)
import Data.Option.Functions as Option
open import Data.Tuple as Tuple using (_⨯_ ; _,_... | {
"alphanum_fraction": 0.54620575,
"avg_line_length": 39.1800766284,
"ext": "agda",
"hexsha": "2425d3491c200723936325bc4230c403f72a7d21",
"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 --universe-polymorphism --no-positivity-check #-}
module Alg-IIR where
data Level : Set where
zero : Level
suc : Level -> Level
{-# BUILTIN LEVEL Level #-}
{-# BUILTIN LEVELZERO zero #-}
{-# BUILTIN LEVELSUC suc #-}
max : Level -> Level -> Level
max zero m = m
max (suc n) ... | {
"alphanum_fraction": 0.4471702696,
"avg_line_length": 23.9360465116,
"ext": "agda",
"hexsha": "a405ef3cfb626d1447fb8548debbadd6df289b44",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:51:42.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-03-12T... |
{-# OPTIONS --without-K --safe #-}
open import Level
open import Categories.Category using () renaming (Category to Setoid-Category)
open import Categories.Category.Monoidal using (Monoidal)
module Categories.Pseudofunctor.Instance.EnrichedUnderlying
{o ℓ e} {V : Setoid-Category o ℓ e} (M : Monoidal V) (v : Level) ... | {
"alphanum_fraction": 0.5511413521,
"avg_line_length": 35.874015748,
"ext": "agda",
"hexsha": "02654b38e6ea3eb5af5826dec94e472f8b5a527a",
"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... |
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9.
Copyright (c) 2021, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl
-}
open import LibraBFT.Base.Types
import LibraBFT.Impl.Consensus.Consensus... | {
"alphanum_fraction": 0.6326434619,
"avg_line_length": 42.52,
"ext": "agda",
"hexsha": "f797719fe4b243fde2bbc8cc2a558cea5ac11854",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha": "... |
{-# OPTIONS --safe #-}
open import Definition.Typed.EqualityRelation
module Definition.LogicalRelation.Substitution.Introductions.Application {{eqrel : EqRelSet}} where
open EqRelSet {{...}}
open import Definition.Untyped
open import Definition.Untyped.Properties
open import Definition.Typed
open import Definition.L... | {
"alphanum_fraction": 0.4144861585,
"avg_line_length": 54.9375,
"ext": "agda",
"hexsha": "57ebb05caff2cbe4e4e5b51b41507368458f5d7b",
"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:... |
{-# OPTIONS --omega-in-omega --no-termination-check --overlapping-instances #-}
module Light.Literals.Definition.Negative where
open import Light.Library.Data.Natural as ℕ using (ℕ ; zero ; successor) renaming (ℓ to nℓ)
open import Light.Level using (++_ ; _⊔_)
open import Light.Variable.Sets
open import Light.Variab... | {
"alphanum_fraction": 0.677383592,
"avg_line_length": 36.08,
"ext": "agda",
"hexsha": "fdd0a486cdbf6db78ef6eab4a9e0e1f2ab2e1f80",
"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... |
module Cats.Category.Setoids.Facts.Exponentials where
open import Data.Product using (_,_)
open import Relation.Binary using (Setoid)
open import Cats.Category
open import Cats.Category.Setoids as Setoids using (Setoids ; ≈-intro ; ≈-elim)
open import Cats.Category.Setoids.Facts.Products as Products using
(hasBinar... | {
"alphanum_fraction": 0.5298573975,
"avg_line_length": 24.9333333333,
"ext": "agda",
"hexsha": "2329beccf05ef9a8334ff75e2fbddf85f3c97dd1",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
------------------------------------------------------------------------------
-- Testing the function FOL.Translation.Terms.termToFOLTerm: Con term
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# O... | {
"alphanum_fraction": 0.4126853377,
"avg_line_length": 25.829787234,
"ext": "agda",
"hexsha": "45006281c7f4135e951d2f36f58dc7d44abaa657",
"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-10T2... |
module Numeral.Matrix.Relations where
open import Data.Tuple as Tuple using (_,_)
open import Logic.Predicate
open import Logic
open import Numeral.Matrix hiding (module SquareMatrix)
open import Numeral.Matrix.OverField
import Relator.Equals as Eq
open import Structure.Operator.Field
open import Structure.Operat... | {
"alphanum_fraction": 0.6486842105,
"avg_line_length": 38,
"ext": "agda",
"hexsha": "91d7cb32e4b991d6829100d4a16215af259b5f49",
"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... |
module Text.Parse (Tok : Set) where
open import Prelude
private
data P′ (A : Set) : Set where
symbolBind : (Tok → P′ A) → P′ A
fail′ : P′ A
returnPlus : A → P′ A → P′ A
_+++′_ : ∀ {A} → P′ A → P′ A → P′ A
symbolBind f +++′ symbolBind g = symbolBind λ x → f x +++′ g x
fail′ +++′ q = q
p +++′ fa... | {
"alphanum_fraction": 0.5141138362,
"avg_line_length": 23.2365591398,
"ext": "agda",
"hexsha": "87ff0e392070dfaa7e0fb26970f662fcb5c5f8f9",
"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 json where
open import general-util
data json : Set where
json-null : json
json-raw : rope → json
json-string : string → json
json-nat : nat → json
json-array : 𝕃 json → json
json-object : 𝕃 (string × json) → json
json-escape-string : string → string
json-escape-string str = 𝕃char-to-string $ r... | {
"alphanum_fraction": 0.5253456221,
"avg_line_length": 35.3255813953,
"ext": "agda",
"hexsha": "63eab2ab3773712c5b96baefb28d6cc5cf0d1d9c",
"lang": "Agda",
"max_forks_count": 34,
"max_forks_repo_forks_event_max_datetime": "2022-02-20T18:33:16.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-09-17... |
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9.
Copyright (c) 2021, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl
-}
module Dijkstra.EitherD.Syntax where
open import Dijkstra.EitherD
open impor... | {
"alphanum_fraction": 0.7610899873,
"avg_line_length": 32.875,
"ext": "agda",
"hexsha": "436b8fa94678150f64818c4d72f7e13e1fb1bce0",
"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": ... |
_ : @ω Set → Set₁
_ = λ (@0 _) → Set
| {
"alphanum_fraction": 0.4324324324,
"avg_line_length": 12.3333333333,
"ext": "agda",
"hexsha": "aa711f212d79db98e26d0e00f8e8513cfaa6a9ad",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-0... |
------------------------------------------------------------------------
-- The Eilenberg-MacLane space K(G, 1)
------------------------------------------------------------------------
{-# OPTIONS --erased-cubical --safe #-}
-- The module is parametrised by a notion of equality. The higher
-- constructors of the HIT ... | {
"alphanum_fraction": 0.475862069,
"avg_line_length": 35.3533568905,
"ext": "agda",
"hexsha": "f3dbcf41df92e6a7a705522dff6bd20c4315894c",
"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 equality can be turned into a groupoid which is sometimes
-- commutative
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Equality
module Equality.Groupoid
{reflexi... | {
"alphanum_fraction": 0.3328036322,
"avg_line_length": 51.2209302326,
"ext": "agda",
"hexsha": "19487340df17ceacb6700c8808a3e7ab2be3d724",
"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 Implicits.Syntax.Type.Unification.Lemmas where
open import Prelude
open import Data.Nat.Properties.Simple
open import Data.Maybe as Maybe
open import Data.Vec
open import Extensions.Vec
open import Implicits.Syntax
open import Implicits.Syntax.Type.Unification hiding (open-meta)
open import Implicits.Substitut... | {
"alphanum_fraction": 0.6297589941,
"avg_line_length": 38.1733333333,
"ext": "agda",
"hexsha": "35fb1513cf030fa25dfbb636404244b7125c5d6c",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
-- Andreas, 2017-01-13, issue #2402
-- Error message: incomplete pattern matching
open import Common.Bool
module _ (A B C D E F G H I J K L M O P Q R S T U V W X Y Z : Set) where
test2 : Bool → Bool
test2 x with true
test2 true | x = ?
-- WAS: Reports:
-- Incomplete pattern matching for .IncompletePattern.with-56.
... | {
"alphanum_fraction": 0.6805555556,
"avg_line_length": 25.92,
"ext": "agda",
"hexsha": "da2737f5b8eb731b289b63ae071835d8f3cec18e",
"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 --safe #-}
module Cubical.Algebra.Ring.Base where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Equiv.HalfAdjoint
open import Cubical.Foundations.Function
open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Isomorphism
open... | {
"alphanum_fraction": 0.5173710998,
"avg_line_length": 34.1056603774,
"ext": "agda",
"hexsha": "d12f9dddeb31b8e32e21e3a25eef80b2dd6a068d",
"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
--
-- Operations on and properties of decidable relations
--
-- This file contains some core definitions which are re-exported by
-- Relation.Nullary.Decidable
----------------------------------------------------------... | {
"alphanum_fraction": 0.5762360859,
"avg_line_length": 29.4885496183,
"ext": "agda",
"hexsha": "11734ac9c79b41c60ccbcd50b2f0069bdcda6122",
"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... |
------------------------------------------------------------------------
-- Digits and digit expansions
------------------------------------------------------------------------
module Data.Digit where
open import Data.Nat
open import Data.Nat.Properties
open SemiringSolver
open import Data.Fin as Fin using (Fin; zero... | {
"alphanum_fraction": 0.5093740986,
"avg_line_length": 28.8916666667,
"ext": "agda",
"hexsha": "dab111428285e30247b8e9f9d7a70e14c518e50e",
"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... |
-- Adding forcing to functions (f in this case) leaves
-- an unsolved meta of type I (for the argument to f).
module Issue330 where
postulate
I : Set
i : I
data D (n : I) : Set where
d : D n
f : ∀ n → D n → D n
f n d = d
data P : D i → Set where
c : ∀ v → P (f i v)
p : P d
p = c _
| {
"alphanum_fraction": 0.5773195876,
"avg_line_length": 14.55,
"ext": "agda",
"hexsha": "d9bd74f808e3b9a9471c6b79d1414b4a64a0d6c7",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:... |
module Language.Greek where
data Maybe A : Set where
none : Maybe A
just : A → Maybe A
data Unicode : Set where
Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω α β γ δ ε ζ η θ ι κ λ′ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω : Unicode
grave acute diaeresis smooth rough circumflex iotaSubscript : Unicode
postulate
Char :... | {
"alphanum_fraction": 0.7340008707,
"avg_line_length": 29.4487179487,
"ext": "agda",
"hexsha": "003a2c8e6e2edc7e09e4cead0452ad0665688535",
"lang": "Agda",
"max_forks_count": 5,
"max_forks_repo_forks_event_max_datetime": "2017-06-11T11:25:09.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-02-27T... |
module Issue481Record where
record Issue481Record : Set where
| {
"alphanum_fraction": 0.8412698413,
"avg_line_length": 15.75,
"ext": "agda",
"hexsha": "dacbcbf8fc9ccececdc0c440bc02ee2ef9b17237",
"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 --without-K --safe #-}
open import Level
open import Categories.Category using (Category)
module Categories.NaturalTransformation.Hom {o ℓ e : Level} (C : Category o ℓ e) where
open import Categories.Category.Instance.Setoids
open import Categories.Functor.Hom using (module Hom; Hom[_][-,_]; Hom[_][_,-]; ... | {
"alphanum_fraction": 0.5621621622,
"avg_line_length": 37,
"ext": "agda",
"hexsha": "0a5111fe09222a15b15a9eee48ca6766ba608438",
"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.0... |
module Comments where
{- Single-line comments cannot be started inside multi-line ones:
-- -} postulate
foo-- : Set -- Note that -- does not start a comment when
-- located inside or at the end of an identifier.
-- The following comment marker is followed by an alphabetic
-- character:
-... | {
"alphanum_fraction": 0.662601626,
"avg_line_length": 24.6,
"ext": "agda",
"hexsha": "5d67b3da8fa25d5bc8b9f2d008e13b79b31b3661",
"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... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Pairs of lists that share no common elements (propositional equality)
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Relation.Binary
mod... | {
"alphanum_fraction": 0.5309352518,
"avg_line_length": 33.0952380952,
"ext": "agda",
"hexsha": "b7f5d1185003c8085b01c8ecf9c9835d907fdd6e",
"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... |
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9.
Copyright (c) 2021, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl
-}
import LibraBFT.Impl.OBM.Crypto as Crypto
open import Libra... | {
"alphanum_fraction": 0.7735849057,
"avg_line_length": 40.8857142857,
"ext": "agda",
"hexsha": "4deb622afcf0c357ffe691640063e401705c18d8",
"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 bunch of properties about natural number operations
------------------------------------------------------------------------
-- See README.Nat for some examples showing how this module can be
-- used.
{-# OPT... | {
"alphanum_fraction": 0.4983211263,
"avg_line_length": 28.6751126126,
"ext": "agda",
"hexsha": "c878d4993f2b53ac3b12dfee9ff279c846085f61",
"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 #-}
open import 17-number-theory public
{- streams -}
record stream (A : Set) : Set where
coinductive
field
hd : A
tl : stream A
open stream public
from : ℕ → stream ℕ
hd (from n) = n
tl (from n) = from (succ-ℕ n)
map-stream : {A B : Set} → (A → B) → stream A → stream B
hd (map-s... | {
"alphanum_fraction": 0.6028037383,
"avg_line_length": 18.3428571429,
"ext": "agda",
"hexsha": "9b74c24413a85baf8994e0fbe152cbb17545af51",
"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 BasicIS4.Metatheory.DyadicGentzen-TarskiGluedDyadicImplicit where
open import BasicIS4.Syntax.DyadicGentzen public
open import BasicIS4.Semantics.TarskiGluedDyadicImplicit public
open ImplicitSyntax (_⊢_) public
-- Soundness with respect to all models, or evaluation.
-- FIXME
postulate
reify⋆ : ∀ {{_ : Mo... | {
"alphanum_fraction": 0.4811413578,
"avg_line_length": 30.1881188119,
"ext": "agda",
"hexsha": "1a3a6b01e159cb89dfc9c01f08d696c48533c814",
"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 Adjunctions.Adj2Mon where
open import Library
open import Categories
open import Functors
open import Monads
open import Adjunctions
open Cat
open Fun
Adj2Mon : ∀{a b}{C D : Cat {a}{b}} → Adj C D → Monad C
Adj2Mon {C = C}{D} A = record{
T = OMap R ∘ OMap L;
η = left (iden D);
bind = HMap R ∘ right... | {
"alphanum_fraction": 0.5279576221,
"avg_line_length": 30.8909090909,
"ext": "agda",
"hexsha": "e59fa01bc2efbe6e2dadfa68d85b52c83be941e3",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2019-11-04T21:33:13.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-11-04T... |
{-
Definition of subfinite sets
A set is subfinite if it is merely a subset of `Fin n` for some `n`. This
definition is weaker than `isFinSet` if we don't assume LEM, but they
are equivalent if we do.
Every subfinite set is guaranteed to be a set and discrete.
-}
{-# OPTIONS --cubical --no-import-sorts --safe #-}
... | {
"alphanum_fraction": 0.7475728155,
"avg_line_length": 26.78,
"ext": "agda",
"hexsha": "ef0dc2af86eb28bc78e56a7953b5c51dc9a307f5",
"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 Haskell.Prim.Maybe where
--------------------------------------------------
-- Maybe
data Maybe {ℓ} (a : Set ℓ) : Set ℓ where
Nothing : Maybe a
Just : a -> Maybe a
maybe : ∀ {ℓ₁ ℓ₂} {a : Set ℓ₁} {b : Set ℓ₂} → b → (a → b) → Maybe a → b
maybe n j Nothing = n
maybe n j (Just x) = j x
| {
"alphanum_fraction": 0.4635761589,
"avg_line_length": 21.5714285714,
"ext": "agda",
"hexsha": "e3e7c665e16c138907eb64e55ed7f82157ee0ad6",
"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... |
module _ where
open import Agda.Builtin.Nat
open import Agda.Builtin.String
open import Common.IO
open import Common.Unit
data ⊥ : Set where
record Pair : Set where
constructor _,_
field fst snd : String
open Pair
record ERing : Set where
constructor ering
field divRem : (⊥ → ⊥) → Pair
open ERing
eRing :... | {
"alphanum_fraction": 0.697309417,
"avg_line_length": 14.8666666667,
"ext": "agda",
"hexsha": "582f1c0e39a01ddaf2ce3c66e514b82945826eae",
"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 #-}
module Categories.Category.Construction.Properties.Presheaves.CartesianClosed where
open import Level
open import Data.Unit
open import Data.Product using (_,_)
open import Data.Product.Relation.Binary.Pointwise.NonDependent
open import Function.Equality using (Π) renaming (_∘_ to _... | {
"alphanum_fraction": 0.4612399683,
"avg_line_length": 42.468164794,
"ext": "agda",
"hexsha": "b7dc9f6bd6ad154c90c68e46333583606baff502",
"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 --universe-polymorphism #-}
module SetOmega where
open import Imports.Level
postulate
IsType : ∀ {a} → Set a → Set
Bad : IsType ((a : Level) → Set a)
| {
"alphanum_fraction": 0.650887574,
"avg_line_length": 16.9,
"ext": "agda",
"hexsha": "1e18c913c0eda5b33c9048f2c607167b15769a1f",
"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": "20... |
------------------------------------------------------------------------
-- Higher lenses, defined using the requirement that the remainder
-- function should be surjective
------------------------------------------------------------------------
{-# OPTIONS --cubical #-}
import Equality.Path as P
module Lens.Non-dep... | {
"alphanum_fraction": 0.5777116402,
"avg_line_length": 26.2956521739,
"ext": "agda",
"hexsha": "2e790bed89d5ca0e327751d86cb42758181b2af1",
"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... |
{-# OPTIONS --without-K --rewriting #-}
open import lib.Basics
open import lib.types.Bool
open import lib.types.Empty
open import lib.types.Lift
open import lib.types.Sigma
open import lib.types.Pi
module lib.types.Coproduct where
module _ {i j} {A : Type i} {B : Type j} where
Coprod= : Coprod A B → Coprod A B → ... | {
"alphanum_fraction": 0.5191351889,
"avg_line_length": 33.8151260504,
"ext": "agda",
"hexsha": "2e7b00323d3284c4500ca607f3e66488fd237793",
"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... |
open import Data.Empty
open import Data.List hiding ([_]) renaming (_∷_ to _∷ₗ_)
open import Data.Maybe
open import Data.Product
open import Data.Sum
open import Data.Unit
open import AEff
open import AwaitingComputations
open import EffectAnnotations
open import Preservation
open import Progress
open import Renamings... | {
"alphanum_fraction": 0.2851319678,
"avg_line_length": 33.896373057,
"ext": "agda",
"hexsha": "950fce3548bb5463430415ae592a4de3c5f63657",
"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.Data.BinNat where
open import Cubical.Data.BinNat.BinNat public
| {
"alphanum_fraction": 0.7480916031,
"avg_line_length": 26.2,
"ext": "agda",
"hexsha": "db9daa048e5a57b8ba1f27dc5faf61016a3eaa63",
"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-22T02:02:01.... |
{-# OPTIONS --safe #-}
module Cubical.Algebra.MonoidSolver.MonoidExpression where
open import Cubical.Foundations.Prelude
open import Cubical.Data.FinData
open import Cubical.Data.Nat
open import Cubical.Data.Vec
open import Cubical.Algebra.CommMonoid
private
variable
ℓ : Level
infixl 7 _⊗_
-- Expression in... | {
"alphanum_fraction": 0.7046413502,
"avg_line_length": 20.6086956522,
"ext": "agda",
"hexsha": "cc8b1c27ba6d05b143693b7a64ee02c25784bd8c",
"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 equivalent "goodness" of can-θ w.r.t. the rmerge reduction.
The main properties of the Can function proved in this file are:
canθₛ-mergeˡ : ∀ {E θ' r p BV FV} sigs θ →
CorrectBinding p BV FV →
p ≐ E ⟦ ρ θ' · r ⟧e →
∀ S' →
Signal.unwrap S' ∉ SigMap.keys (Env.sig θ') →
Signal.unwrap S' ∈... | {
"alphanum_fraction": 0.5510540344,
"avg_line_length": 45.9576837416,
"ext": "agda",
"hexsha": "127fd24d80eec13e858c02c085dfba927ef5bd94",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2020-04-15T20:02:49.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-04-15T... |
------------------------------------------------------------------------------
-- Conversion rules for the nest function
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymor... | {
"alphanum_fraction": 0.4228650138,
"avg_line_length": 31.5652173913,
"ext": "agda",
"hexsha": "ce8f5ec5f2cb72d1e66d7a94eb96495fbd9ffd9a",
"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 Structure.Relator.Function where
import Lvl
open import Lang.Instance
open import Logic
open import Logic.Propositional
open import Logic.Predicate
open import Functional
open import Structure.Setoid
open import Structure.Setoid.Uniqueness
open import Structure.Relator
open import Type
private variable ℓₒ... | {
"alphanum_fraction": 0.6572133169,
"avg_line_length": 36.0444444444,
"ext": "agda",
"hexsha": "53c679512d69472527ff8261cc1e23f4e347f2da",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
data ⊥ : Set where
record ⊤ : Set where
data Bool : Set where
false : Bool
true : Bool
True : Bool → Set
True false = ⊥
True true = ⊤
Foo : (b : Bool) → True b → Set
Foo true _ = ⊤
-- The problem rises because I have removed this impossible case.
-- Foo false ()
test : (b : Bool) (t : True b) → Foo b t →... | {
"alphanum_fraction": 0.5927977839,
"avg_line_length": 17.1904761905,
"ext": "agda",
"hexsha": "7e1f75b02546d378d63d02abdeef3f77a430b6bd",
"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... |
------------------------------------------------------------------------------
-- Testing nested axioms
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-# OPT... | {
"alphanum_fraction": 0.3120437956,
"avg_line_length": 27.4,
"ext": "agda",
"hexsha": "6a0c168d262b4400997eb1fdc9456e6f13fab4dc",
"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.... |
module LearnYouAn where
data ℕ : Set where
zero : ℕ
suc : ℕ → ℕ
_+_ : ℕ → ℕ → ℕ
zero + n = n
(suc n) + m = suc (n + m)
-- if_then_else_ : ∀ { a } → Bool → a → a → a
data _even : ℕ → Set where
ZERO : zero even
STEP : ∀ {x} → x even → suc (suc x) even
proof₁ : suc (suc (suc (suc zero))) ... | {
"alphanum_fraction": 0.5056689342,
"avg_line_length": 18.375,
"ext": "agda",
"hexsha": "ee5e15f9e0faeda8627db7eef48b03cbcb0ec2f4",
"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 --warning=error #-}
open import LogicalFormulae
open import Agda.Primitive using (Level; lzero; lsuc; _⊔_)
open import Numbers.Naturals.Semiring
open import Numbers.Naturals.Order
open import Vectors
open import Semirings.Definition
open import Categories.Definition
open import Orders
open import Categorie... | {
"alphanum_fraction": 0.5952380952,
"avg_line_length": 65.6923076923,
"ext": "agda",
"hexsha": "41dde7d2d35259c4cbe18ff829272c4a1ca337fb",
"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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.