Search is not available for this dataset
text string | meta dict |
|---|---|
{-# OPTIONS --cubical --safe #-}
module Cubical.Data.NatMinusTwo where
open import Cubical.Data.NatMinusTwo.Base public
open import Cubical.Data.NatMinusTwo.Properties public
open import Cubical.Data.NatMinusTwo.ToNatMinusOne using (1+_; ℕ₋₁→ℕ₋₂; -1+Path) public
| {
"alphanum_fraction": 0.7819548872,
"avg_line_length": 29.5555555556,
"ext": "agda",
"hexsha": "9e999ec17423e4aa6b4df9fe21375a6ff988afa4",
"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... |
------------------------------------------------------------------------------
-- Mendelson's substitution
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-# ... | {
"alphanum_fraction": 0.4099378882,
"avg_line_length": 32.2,
"ext": "agda",
"hexsha": "ae93f175e173243d20264f6db9d0bb483cc6f8cf",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-09-19T14:18:30.... |
{-# OPTIONS --cubical-compatible #-}
postulate
A : Set
P : A → Set
Q : {x : A} → P x → P x → Set
variable
B : Set
@0 q : B
postulate
F : ∀ p → Q p q → Set
Test : {@0 x : A} ({q} p : P x) (q′ : Q p q) → Set
Test = F
| {
"alphanum_fraction": 0.4572649573,
"avg_line_length": 13.7647058824,
"ext": "agda",
"hexsha": "f83152b7be54af54b64b004c466784ba68d69064",
"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 --prop --rewriting #-}
open import Calf.CostMonoid
module Calf (costMonoid : CostMonoid) where
open CostMonoid costMonoid
open import Calf.Prelude public
open import Calf.Metalanguage public
open import Calf.PhaseDistinction public
open import Calf.Step costMonoid public
open import Calf.Noninterferenc... | {
"alphanum_fraction": 0.8147058824,
"avg_line_length": 22.6666666667,
"ext": "agda",
"hexsha": "4efab28dd5529a1d93d8d803cc865433de30acd8",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2022-01-29T08:12:01.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-10-06T... |
open import MLib.Finite
module MLib.Finite.Properties {c ℓ} (finiteSet : FiniteSet c ℓ) where
open import MLib.Prelude
import Data.Fin.Permutation as Perm
import Relation.Binary as B
open FE using (cong)
open LeftInverse using () renaming (_∘_ to _ⁱ∘_)
open Algebra using (IdempotentCommutativeMonoid)
open Table hi... | {
"alphanum_fraction": 0.5506853952,
"avg_line_length": 40.1972789116,
"ext": "agda",
"hexsha": "12908a9a77f51da4c388fe1ad04eb6c12f577e22",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
open import Common.Prelude hiding (_>>=_)
open import Common.Reflection
open import Common.Equality
module Issue2782 where
module Interval where
private
data I' : Set where
Izero' : I'
Ione' : I'
I : Set
I = I'
Izero : I
Izero = Izero'
Ione : I
Ione = Ione'
{--
postulate
Ise... | {
"alphanum_fraction": 0.6230636833,
"avg_line_length": 16.6,
"ext": "agda",
"hexsha": "1382c208a5db00a07191f649c4e8f331e43814e7",
"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... |
open import Agda.Builtin.Reflection using (Name)
-- See Tactic.Nat for a description of the various tactics.
module Tactic.Nat.Generic (`≤ `toLeq `fromLeq : Name) where
open import Prelude
open import Tactic.Reflection
open import Tactic.Nat.Induction using (nat-induction)
open import Tactic.Nat.Subtract using (aut... | {
"alphanum_fraction": 0.634469697,
"avg_line_length": 36.1643835616,
"ext": "agda",
"hexsha": "410637d378dd66d4a359a8dbe0ca52cea87ba5e1",
"lang": "Agda",
"max_forks_count": 24,
"max_forks_repo_forks_event_max_datetime": "2021-04-22T06:10:41.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-03-12T... |
module Issue550 where
data Box (A : Set) : Set where
[_] : A → Box A
postulate
A : Set
B : Set
b : B
f : B -> A
⋯ : {{a : A}} → A
⋯ {{a = a}} = a
test : Box A
test =
let a : A
a = f b
in [ ⋯ ]
-- should succeed. Old message:
-- No variable of type A was found in scope.
-- when checking that th... | {
"alphanum_fraction": 0.5375722543,
"avg_line_length": 14.4166666667,
"ext": "agda",
"hexsha": "086898c8e72bf37ea218ea5419400979a4d6229c",
"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... |
{-# OPTIONS --without-K #-}
open import Base
open import HLevel
module Homotopy.Extensions.ToPropToConstSet {i}
{A B : Set i} ⦃ B-is-set : is-set B ⦄
(f : A → B) (f-is-const : ∀ a₁ a₂ → f a₁ ≡ f a₂) where
open import Homotopy.Truncation
open import Homotopy.Skeleton
private
skel : Set i
skel = π₀ ... | {
"alphanum_fraction": 0.5574354408,
"avg_line_length": 33.0294117647,
"ext": "agda",
"hexsha": "078738bc799da772183f340caa1b4beeb27e7a73",
"lang": "Agda",
"max_forks_count": 50,
"max_forks_repo_forks_event_max_datetime": "2022-02-14T03:03:25.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-10... |
-- The ATP pragma with the role <axiom> can be used with postulates.
module ATPAxiomPostulates where
postulate
D : Set
zero : D
succ : D → D
N : D → Set
postulate
zN : N zero
sN : ∀ {n} → N n → N (succ n)
{-# ATP axiom zN #-}
| {
"alphanum_fraction": 0.5910931174,
"avg_line_length": 16.4666666667,
"ext": "agda",
"hexsha": "91d37a6cd38de17a60920aa4c27abae685668fff",
"lang": "Agda",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2016-08-03T03:54:55.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-05-10T... |
{-# OPTIONS --without-K --safe #-}
module Tools.List where
open import Data.List public using (List; []; _∷_)
module L where
open import Data.List public
| {
"alphanum_fraction": 0.6918238994,
"avg_line_length": 17.6666666667,
"ext": "agda",
"hexsha": "fc72eae94dc6292c2ac6392f5603d1e6448e5944",
"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... |
------------------------------------------------------------------------------
-- Conversion rules for the greatest common divisor
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-univer... | {
"alphanum_fraction": 0.500753012,
"avg_line_length": 33.2,
"ext": "agda",
"hexsha": "d5680333ce2d3099817885a6316368384232d675",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-09-19T14:18:30.0... |
-- Andreas, 2019-06-25, issue #3855 reported by nad
-- Constraint solver needs to respect erasure.
open import Agda.Builtin.Bool
module _ where
record RB (b : Bool) : Set where
bPar : Bool
bPar = b
myBPar : (@0 b : Bool) → RB b → Bool
myBPar b r = RB.bPar {b = {!b!}} r -- should be rejected
| {
"alphanum_fraction": 0.6194968553,
"avg_line_length": 22.7142857143,
"ext": "agda",
"hexsha": "17986b682540426934a7f4fd077d58e1a36408f9",
"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 #-}
module Type.Cubical.Quotient where
open import Functional
import Lvl
open import Structure.Type.Identity
open import Type.Cubical
open import Type.Cubical.Path.Equality
open import Type
open import Syntax.Function
private variable ℓ ℓₗ : Lvl.Level
private variable T A B : Type{ℓ}
priva... | {
"alphanum_fraction": 0.6431610942,
"avg_line_length": 47.6811594203,
"ext": "agda",
"hexsha": "cd8507c679a8eaf33a98d55c05bdefbf4e82e5dc",
"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... |
-- Solver for Category
{-# OPTIONS --without-K --safe #-}
open import Categories.Category
module Experiment.Categories.AnotherSolver.Category
{o ℓ e} (𝒞 : Category o ℓ e) where
open import Level
open import Relation.Binary using (Rel)
import Function.Base as Fun
open import Categories.Functor renaming (id to id... | {
"alphanum_fraction": 0.5285884455,
"avg_line_length": 28.9482758621,
"ext": "agda",
"hexsha": "4c4f967ce9039b13e4b7fa5b9b83fc2dd5aae94c",
"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 Luau.TypeNormalization where
open import Luau.Type using (Type; nil; number; string; boolean; never; unknown; _⇒_; _∪_; _∩_)
-- Operations on normalized types
_∪ᶠ_ : Type → Type → Type
_∪ⁿˢ_ : Type → Type → Type
_∩ⁿˢ_ : Type → Type → Type
_∪ⁿ_ : Type → Type → Type
_∩ⁿ_ : Type → Type → Type
-- Union of functio... | {
"alphanum_fraction": 0.6125143513,
"avg_line_length": 26.3939393939,
"ext": "agda",
"hexsha": "08f144742a1ed4da8690cd01fed88505839f775b",
"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, 2013-10-21
-- There was a bug in Rules/Builtin such that NATEQUALS' equations
-- would be checked at type Nat instead of Bool.
-- This bug surfaced only because of today's refactoring in Conversion,
-- because then I got a strange unsolved constraint true == true : Nat.
module NatEquals where
import Comm... | {
"alphanum_fraction": 0.6433566434,
"avg_line_length": 21.6666666667,
"ext": "agda",
"hexsha": "8cd05c271dcf1bbb6fa5a45e079b6c06f8babc66",
"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.List.Sugar where
open import Data.List.Base
open import Prelude
[_] : A → List A
[ x ] = x ∷ []
pure : A → List A
pure = [_]
_>>=_ : List A → (A → List B) → List B
_>>=_ = flip concatMap
_>>_ : List A → List B → List B
xs >> ys = xs >>= const ys
_<*>_ : List (A → B) →... | {
"alphanum_fraction": 0.5306122449,
"avg_line_length": 15.2068965517,
"ext": "agda",
"hexsha": "d040ea0250e3795a6b16e2d9ea7b09969760e37c",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-01-05T14:05:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-01-05T... |
{-# OPTIONS --cubical --safe --postfix-projections #-}
module Data.Dyck.Payload where
open import Prelude
open import Data.Nat using (_+_)
open import Data.Vec.Iterated using (Vec; _∷_; []; foldlN; head)
private
variable
n : ℕ
--------------------------------------------------------------------------------
--... | {
"alphanum_fraction": 0.4037063953,
"avg_line_length": 35.2820512821,
"ext": "agda",
"hexsha": "7143d12c6d12a561ba17c8548ebc90141b2061ff",
"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... |
-- Andreas, 2019-11-08, issue #4154 reported by Yashmine Sharoda.
-- Warn if a `renaming` clause clashes with an exported name
-- (that is not mentioned in a `using` clause).
module _ where
module M where
postulate
A B : Set
-- These produce warnings (#4154):
module N = M renaming (A to B)
open M renaming (A... | {
"alphanum_fraction": 0.685106383,
"avg_line_length": 20.4347826087,
"ext": "agda",
"hexsha": "2d509ae4c2b98538f78c813693d6cac5cfdc9006",
"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 --safe #-}
module Issue2442-postulate where
postulate
A : Set
| {
"alphanum_fraction": 0.6708860759,
"avg_line_length": 9.875,
"ext": "agda",
"hexsha": "dc1037f8af33f940d9bb721a224ab9caa073d193",
"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 #-}
module FT-Nat where
open import Data.Empty
open import Data.Unit
open import Data.Nat renaming (_⊔_ to _⊔ℕ_)
open import Data.Sum renaming (map to _⊎→_)
open import Data.Product
import Data.Fin as F
open import Data.Vec
import Data.List as L
open import Function renaming (_∘_ to _○_)
open ... | {
"alphanum_fraction": 0.5748941713,
"avg_line_length": 28.7009345794,
"ext": "agda",
"hexsha": "9c71d8e01e6004ab7de88dd5482c1d57268294e6",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2019-09-10T09:47:13.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-05-29T... |
-- Andreas, 2016-12-31, re issue #1976
-- Allow projection pattern disambiguation by parameters
{-# OPTIONS --allow-unsolved-metas #-}
postulate
A B : Set
module M (_ : Set) where
record R : Set₂ where
field
F : Set₁
open R public
module Succeeds where
open M _
open M B
test : M.R B
F tes... | {
"alphanum_fraction": 0.6323232323,
"avg_line_length": 13.3783783784,
"ext": "agda",
"hexsha": "fe3ad412ee6a3fcdbe99a112d0d3211df7ea8857",
"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 747Connectives where
-- Library
import Relation.Binary.PropositionalEquality as Eq
open Eq using (_≡_; refl)
open Eq.≡-Reasoning
open import Data.Nat using (ℕ)
open import Function using (_∘_)
-- Copied from 747Isomorphism.
postulate
extensionality : ∀ {A B : Set} {f g : A → B}
→ (∀ (x : A) → f x ≡ g x... | {
"alphanum_fraction": 0.5000674673,
"avg_line_length": 21.7970588235,
"ext": "agda",
"hexsha": "b489f113cc9a952fcef86c8c1a652257f344c93b",
"lang": "Agda",
"max_forks_count": 8,
"max_forks_repo_forks_event_max_datetime": "2021-09-21T15:58:10.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-04-13T... |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.HITs.DunceCap.Base where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.GroupoidLaws
open import Cubical.HITs.S1 using (S¹; base)
import Cubical.HITs.S1 as S¹
open import Cubical.HITs.MappingCones
-- definition of the dunce ... | {
"alphanum_fraction": 0.71561051,
"avg_line_length": 23.1071428571,
"ext": "agda",
"hexsha": "6d2057fbea7d779a13ed30a8fdc7727ad2a00f46",
"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... |
module agda where
open import IO
main = run (putStrLn "Fuck You Github")
| {
"alphanum_fraction": 0.7432432432,
"avg_line_length": 14.8,
"ext": "agda",
"hexsha": "8852717c36da4a5874141b44fd751422b63c4509",
"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": "8... |
module MLib.Fin.Parts.Nat.Simple where
open import MLib.Prelude
open import MLib.Fin.Parts.Core
open import MLib.Fin.Parts.Nat
open Nat using (_*_; _+_; _<_)
open Fin using (toℕ; fromℕ≤)
open Table
repl : ∀ n → ℕ → Table ℕ n
repl _ = replicate
-- abstract
-- TODO: why does this break reduction later?
sum-replicate-... | {
"alphanum_fraction": 0.4903846154,
"avg_line_length": 47.1851851852,
"ext": "agda",
"hexsha": "ca99a91aaf0c4107c8411afe1cc01ed30e6c6c55",
"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 RandomAccessList.Zeroless.Core where
open import BuildingBlock.BinaryLeafTree using (BinaryLeafTree; Node; Leaf)
open import Data.Nat
open import Data.Nat.Etc
-- parameterized by the level of the least significant digit
data 1-2-RAL (A : Set) : ℕ → Set where
[] : ∀ {n} ... | {
"alphanum_fraction": 0.4512761021,
"avg_line_length": 33.1538461538,
"ext": "agda",
"hexsha": "651759fcb3188d8d090c676c2d1ea0e878d69ab6",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2015-05-30T05:50:50.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-05-30T... |
------------------------------------------------------------------------
-- Second-order abstract syntax
--
-- Formalisation of second-order abstract syntax with variable binding.
------------------------------------------------------------------------
module Everything where
-- Public exports of modules and defini... | {
"alphanum_fraction": 0.7736797988,
"avg_line_length": 22.9423076923,
"ext": "agda",
"hexsha": "2ca6df4bad4dfeb0943950bfa1fa4ee525712473",
"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 Coinduction using ( ∞ ; ♭ ; ♯_ )
open import Data.Empty using ( ⊥ )
open import Data.Bool using ( Bool ; true ; false ; if_then_else_ )
open import Data.Product using ( ∃ ; _×_ ; _,_ ; ,_ )
open import Data.Strict using ( Strict ; ! )
open import Data.Sum using ( _⊎_ ; inj₁ ; inj₂ )
open import Data.Unit us... | {
"alphanum_fraction": 0.5095088247,
"avg_line_length": 31.235042735,
"ext": "agda",
"hexsha": "d378791700277975fde6099f1b5efb4069c92cec",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:40:23.000Z",
"max_forks_repo_forks_event_min_datetime": "2017-08-10T0... |
{-# OPTIONS --safe #-}
module Definition.Conversion.Weakening where
open import Definition.Untyped as U hiding (wk)
open import Definition.Untyped.Properties
open import Definition.Typed
open import Definition.Typed.Weakening
open import Definition.Conversion
import Tools.PropositionalEquality as PE
mutual
-- Wea... | {
"alphanum_fraction": 0.4518030027,
"avg_line_length": 53.1865671642,
"ext": "agda",
"hexsha": "8eae00c08d4dd1fb6d032dc584e97c9906d107d9",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2022-02-15T19:42:19.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-01-26T... |
-- {-# OPTIONS --show-implicit --show-irrelevant #-}
module Data.QuadTree.LensProofs.Valid-LensAtLocation where
open import Haskell.Prelude renaming (zero to Z; suc to S)
open import Data.Lens.Lens
open import Data.Logic
open import Data.QuadTree.InternalAgda
open import Agda.Primitive
open import Data.Lens.Proofs.Len... | {
"alphanum_fraction": 0.7100040502,
"avg_line_length": 46.5849056604,
"ext": "agda",
"hexsha": "067819b5d0a7593cb62f46c2690e10a73d80a989",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
open import Relation.Binary using (Rel)
open import Algebra.Bundles using (CommutativeRing)
open import Algebra.Module.Morphism.Structures
open import Algebra.Module.Normed using (NormedModule)
module Algebra.Module.Limit
{r ℓr} {CR : CommutativeRing r ℓr}
(open CommutativeRing CR using () renaming (Carrier to X)... | {
"alphanum_fraction": 0.5903003981,
"avg_line_length": 27.3564356436,
"ext": "agda",
"hexsha": "383b78a173fe79a4700f98e40bba49728b3c1373",
"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 FRP.JS.Geolocation.Angle using ( Angle ) renaming ( toString to toString° )
open import FRP.JS.String using ( String ; _++_ )
module FRP.JS.Geolocation.Coords where
-- Not including the optional fields yet.
record Coords : Set where
field
latitude : Angle
longitude : Angle
open Coords public
... | {
"alphanum_fraction": 0.7146282974,
"avg_line_length": 24.5294117647,
"ext": "agda",
"hexsha": "4f6565dd25a249c02fe900b31285de8e40a65171",
"lang": "Agda",
"max_forks_count": 7,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:39:38.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-11-07T... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Non-dependent product combinators for setoid equality preserving
-- functions
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.Product.Func... | {
"alphanum_fraction": 0.5451933702,
"avg_line_length": 31.8661971831,
"ext": "agda",
"hexsha": "afe1ea7f3612dd1995749081ff9e441ca0f999ad",
"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 #-}
open import Agda.Builtin.Equality
postulate
A : Set
B : A → Set
data H (@0 A : Set) : Set where
con : (@0 x : A) → H A
data G : Set where
con : (@0 x : A) → (@0 b : B x) → G
data D : Set where
con : (@0 x : A) → B x → D
| {
"alphanum_fraction": 0.5257352941,
"avg_line_length": 17,
"ext": "agda",
"hexsha": "52a3a5be7c5817829116a51d64007826a5723da6",
"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": "98c... |
module Graph (Node : Set) where
open import Basics
data Edge : Set where
edge : Node -> Node -> Edge
Graph : Set
Graph = List Edge
Step : Graph -> Node -> Node -> Set
Step G x y = Elem (edge x y) G
infixr 40 _<>_
data Path (G : Graph) : Node -> Node -> Set where
nul : forall {x} -> Path G x x
_<>_ : f... | {
"alphanum_fraction": 0.5824468085,
"avg_line_length": 18.8,
"ext": "agda",
"hexsha": "d4b8875d885440c46b3969e5f8f01b56d74f37b6",
"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... |
module Golden.Insertion where
open import Agda.Builtin.Nat
open import Agda.Builtin.List
open import Agda.Builtin.Bool
insert : Nat -> List Nat -> List Nat
insert a [] = a ∷ []
insert x (a ∷ b) with x < a
... | true = x ∷ a ∷ b
... | false = a ∷ (insert x b)
lst : List Nat
lst = 2 ∷ []
slst : List Nat
slst = insert... | {
"alphanum_fraction": 0.6011450382,
"avg_line_length": 18.0689655172,
"ext": "agda",
"hexsha": "94f285153377a6b83a7fc331a1b191e2ce00e2e2",
"lang": "Agda",
"max_forks_count": 7,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:39:48.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-05-24T... |
module Spire.Examples.Standard where
----------------------------------------------------------------------
data ℕ : Set where
zero : ℕ
suc : (n : ℕ) → ℕ
data Vec (A : Set) : ℕ → Set where
nil : Vec A zero
cons : (n : ℕ) (a : A) (xs : Vec A n) → Vec A (suc n)
------------------------------------------------... | {
"alphanum_fraction": 0.4305249228,
"avg_line_length": 29.4415584416,
"ext": "agda",
"hexsha": "fb3bea7423703f96d7fd38011214d0a43598fa13",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2015-08-17T21:00:07.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-08-17T... |
{-# OPTIONS --safe --warning=error --without-K #-}
open import Functions.Definition
open import Functions.Lemmas
open import LogicalFormulae
open import Numbers.Naturals.Definition
open import Numbers.Naturals.Order
open import Sets.FinSet.Definition
module Sets.FinSet.Lemmas where
fneSymmetric : {n : ℕ} → {a b : Fi... | {
"alphanum_fraction": 0.6518199642,
"avg_line_length": 62.2334217507,
"ext": "agda",
"hexsha": "13dcc9fd443005f7723679c182d80df9803136dd",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-29T13:23:07.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-29T... |
{-# OPTIONS --without-K --rewriting #-}
module C1.LEM where
open import Basics
open import Bool
open import LEM
open import NotNot
open import Flat
open import Sharp
open import C1.Base
open import lib.NType2
-- UNFINISHED due to ♯-ptwise problems
♯-prop-is-¬¬ : ∀ {i}(P : PropT i) (p : (P... | {
"alphanum_fraction": 0.4556669237,
"avg_line_length": 28.8222222222,
"ext": "agda",
"hexsha": "8673faa1992a1be8ea19e1d922ebc03d809ee309",
"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... |
------------------------------------------------------------------------
-- Products implemented using records
------------------------------------------------------------------------
-- It it ever becomes convenient to pattern match on records I might
-- make this the default implementation of products.
module Data.... | {
"alphanum_fraction": 0.3499090358,
"avg_line_length": 26.5967741935,
"ext": "agda",
"hexsha": "1a6d53301320b78e3203345dd2023dbe79e75180",
"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... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Usage examples of the categorical view of the Sum type
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.Sum.Categorical.Examples where
ope... | {
"alphanum_fraction": 0.538372764,
"avg_line_length": 31.5090909091,
"ext": "agda",
"hexsha": "fae9aa24bf05a51c35d4272cbcec6232b1cf6063",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hex... |
{-# OPTIONS --without-K --safe #-}
module Data.Empty.Base where
open import Level
data ⊥ : Type where
infix 4.5 ¬_
¬_ : Type a → Type a
¬ A = A → ⊥
⊥-elim : ⊥ → A
⊥-elim ()
| {
"alphanum_fraction": 0.5674157303,
"avg_line_length": 11.8666666667,
"ext": "agda",
"hexsha": "43a9e65b8a2f23c6723aa009aa932c250d4d9904",
"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 btls-certs where
open import Data.Word8 using (Word8) renaming (primWord8fromNat to to𝕎)
open import Data.ByteString using (ByteString; Strict; Lazy; pack)
open import Data.ByteString.Primitive using (∣List∣≡∣Strict∣)
open import Data.ByteVec using (ByteVec)
open import Data.Nat using (ℕ; zero; suc; _<_; z≤n; ... | {
"alphanum_fraction": 0.6451918522,
"avg_line_length": 32.984375,
"ext": "agda",
"hexsha": "0d2cfc25eeec28c616f54569f09e294a800720b9",
"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 Functor where
open import Category as Cat
record Functor (ℂ ⅅ : Cat) : Set1 where
field
F : Cat.Obj ℂ -> Cat.Obj ⅅ
map : {A B : Cat.Obj ℂ} -> Cat._─→_ ℂ A B -> Cat._─→_ ⅅ (F A) (F B)
mapEq : {A B : Cat.Obj ℂ}{f g : Cat._─→_ ℂ A B} -> Category._==_ ℂ f g ->
C... | {
"alphanum_fraction": 0.4808013356,
"avg_line_length": 37.4375,
"ext": "agda",
"hexsha": "60060480b8b8f34bcc3bfce0714b1b1d897e123d",
"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... |
-- Andreas, 2015-07-22
-- {-# OPTIONS -v tc.term:20 -v tc.meta.assign:10 -v tc.conv.coerce:10 #-}
open import Common.Size
data Nat (i : Size) : Set where
suc : (j : Size< i) → Nat j → Nat i
min : ∀ i → Nat i → Nat i → Nat i
min i (suc j n) (suc k m) = suc i' (min i' n m)
where i' = _
-- Size consistency check... | {
"alphanum_fraction": 0.6108247423,
"avg_line_length": 24.25,
"ext": "agda",
"hexsha": "06ab8a8a37baeb942095a2ba130ac23ad4341791",
"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... |
open import FRP.JS.Nat using ( ℕ )
open import FRP.JS.String using ( String )
module FRP.JS.Geolocation.Angle where
postulate
Angle : Set
_° : ℕ → Angle
_′ : ℕ → Angle
_″ : ℕ → Angle
_+_ : Angle → Angle → Angle
toString : Angle → String
{-# COMPILED_JS _° function(x) { return ((x + 180) % 360) - 180; } #... | {
"alphanum_fraction": 0.5862619808,
"avg_line_length": 32.9473684211,
"ext": "agda",
"hexsha": "be4c8ac7e07cc6c8daab77ca459615a731776d73",
"lang": "Agda",
"max_forks_count": 7,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:39:38.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-11-07T... |
-- Andreas, 2018-11-03, issue #3361
--
-- Empty variable blocks should trigger warning rather than parse error.
variable
-- Expected warning:
-- Empty variable block.
| {
"alphanum_fraction": 0.7337278107,
"avg_line_length": 18.7777777778,
"ext": "agda",
"hexsha": "4ad3bef4a1cfdd9fd68ea3cdb4162d1bdc99dfb2",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-0... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Booleans
------------------------------------------------------------------------
module Data.Bool where
open import Function
open import Data.Unit using (⊤)
open import Data.Empty
open import Level
open import... | {
"alphanum_fraction": 0.4893992933,
"avg_line_length": 21.4936708861,
"ext": "agda",
"hexsha": "8c804248a4d0fad338d3a0bbea6effc71cb9250a",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --safe #-}
module Definition.Typed.Consequences.Inversion where
open import Definition.Untyped
open import Definition.Typed
open import Definition.Typed.Properties
open import Definition.Typed.Consequences.Syntactic
open import Definition.Typed.Consequences.Substitution
open import Tools.Product
import ... | {
"alphanum_fraction": 0.4391165359,
"avg_line_length": 46.8163265306,
"ext": "agda",
"hexsha": "58593bb8c7bd3e16b24beea37c1141f1d01ce218",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2022-02-15T19:42:19.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-01-26T... |
{-# OPTIONS --without-K --safe #-}
open import Definition.Typed.EqualityRelation
module Definition.LogicalRelation.Substitution.Introductions.Unit {{eqrel : EqRelSet}} where
open EqRelSet {{...}}
open import Definition.Untyped
open import Definition.Typed
open import Definition.Typed.Properties
open import Definitio... | {
"alphanum_fraction": 0.5613540197,
"avg_line_length": 36.6724137931,
"ext": "agda",
"hexsha": "c4c95a91c7cf42397b6f717a2df1c34ad522b1d9",
"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 z03-natural-numbers where
open import bool
open import bool-thms using (𝔹-contra)
open import eq
open import level
-- p 50
data ℕ : Set where
zero : ℕ
suc : ℕ → ℕ
-- p 51
{-# BUILTIN NATURAL ℕ #-}
-------------------------
_+_ : ℕ → ℕ → ℕ
zero + n = n
suc m + n = suc (m + n) -- recursiv... | {
"alphanum_fraction": 0.4037441038,
"avg_line_length": 25.0794824399,
"ext": "agda",
"hexsha": "b8ecc2f982821bf43142fcea0d2d821fe50a33ad",
"lang": "Agda",
"max_forks_count": 8,
"max_forks_repo_forks_event_max_datetime": "2021-09-21T15:58:10.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-04-13T... |
{- Denotational semantics of the contexts in the category of temporal types. -}
module Semantics.Context where
open import CategoryTheory.Categories
open import CategoryTheory.Instances.Reactive
open import CategoryTheory.Functor
open import CategoryTheory.Comonad
open import CategoryTheory.NatTrans
open import Tempo... | {
"alphanum_fraction": 0.5529503712,
"avg_line_length": 35.0547945205,
"ext": "agda",
"hexsha": "1bc2770b994a2bde48ed602ce8b9e4162a3ad61f",
"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 Examples where
open import Prelude
open import Star
open import Modal
El : Set -> Rel True
El A _ _ = A
List : Set -> Set
List A = Star (El A) _ _
Nat = List True
zero : Nat
zero = ε
suc : Nat -> Nat
suc n = _ • n
-- Vectors
Vec : Set -> Nat -> Set
Vec A = All (\_ -> A)
infixr 40 _::_
_::_ : {A : Set}{... | {
"alphanum_fraction": 0.562992126,
"avg_line_length": 15.5510204082,
"ext": "agda",
"hexsha": "3dc38d2517537eaed7978fe2fde624ec9018db94",
"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... |
module Control.Monad.Maybe where
open import Prelude
open import Control.Monad.Zero
open import Control.Monad.Transformer
record MaybeT {a} (M : Set a → Set a) (A : Set a) : Set a where
no-eta-equality
constructor maybeT
field runMaybeT : M (Maybe A)
open MaybeT public
module _ {a} {M : Set a → Set a} where
... | {
"alphanum_fraction": 0.6252414681,
"avg_line_length": 29.3018867925,
"ext": "agda",
"hexsha": "8e6b1bd8c3c04f29413692efedc0e381189beb14",
"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... |
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9.
Copyright (c) 2020 Oracle and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl
-}
open import Data.Nat
open import Data.Maybe
open import Data.Char
open import D... | {
"alphanum_fraction": 0.6797361671,
"avg_line_length": 28.4270833333,
"ext": "agda",
"hexsha": "34df05fcfee1e8b7b0114d0d49b56de9dba58593",
"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.Equivalence where
-- Strong equivalence of categories. Same as ordinary equivalence in Cat.
-- May not include everything we'd like to think of as equivalences, namely
-- the full, faithful functors that are essentially surjective on objects.
open import... | {
"alphanum_fraction": 0.581754386,
"avg_line_length": 31.6666666667,
"ext": "agda",
"hexsha": "60c36ac4a5769efba23a5acf637e0ad084b416bb",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-04T0... |
module Numeral.Natural.Oper.Modulo.Proofs where
import Lvl
open import Data
open import Data.Boolean.Stmt
open import Functional
open import Logic
open import Logic.Propositional
open import Logic.Predicate
open import Numeral.Natural
open import Numeral.Natural.Oper
open import Numeral.Natural.Oper.Comparisons
open i... | {
"alphanum_fraction": 0.5157193302,
"avg_line_length": 56.4565916399,
"ext": "agda",
"hexsha": "3c0cb64b9a4d8a842319c5163ae8e91619beb26f",
"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 --universe-polymorphism #-}
module Categories.Category where
open import Level
open import Relation.Binary using (Rel; IsEquivalence; module IsEquivalence; Reflexive; Symmetric; Transitive) renaming (_⇒_ to _⊆_)
open import Function using (flip)
open import Categories.Support.PropositionalEquality
open im... | {
"alphanum_fraction": 0.436299435,
"avg_line_length": 33.2394366197,
"ext": "agda",
"hexsha": "005a50990d8062b6a6ee826daca32f5cfb79977c",
"lang": "Agda",
"max_forks_count": 23,
"max_forks_repo_forks_event_max_datetime": "2021-11-11T13:50:56.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-02-05T... |
-- Andreas, 2016-07-20
-- With clauses should follow the parent clause
-- what copattern style (prefix/postfix) concerns.
record R : Set₂ where
field f : Set₁
test : R
test .R.f with R -- post-fix here
R.f test | _ = Set -- pre-fix there
-- That's not nice, thus, it is an error.
| {
"alphanum_fraction": 0.6655172414,
"avg_line_length": 20.7142857143,
"ext": "agda",
"hexsha": "8d5bfd605b50c2cb5baa8f3286384704632f96bd",
"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 the translation of definitions
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymor... | {
"alphanum_fraction": 0.4374495561,
"avg_line_length": 23.8269230769,
"ext": "agda",
"hexsha": "478824c8e052db87870e3c38665f590969f7de68",
"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... |
open import Level using (_⊔_)
open import Algebra using (module CommutativeSemiring; module DistributiveLattice)
open import Function using (id; const; _∘_; _$_)
open import Coinduction using (∞; ♯_; ♭)
... | {
"alphanum_fraction": 0.4725663717,
"avg_line_length": 36.9818181818,
"ext": "agda",
"hexsha": "17689d877d2e1b6ab372003524bd1a3912ef46d9",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2019-07-07T07:37:07.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-07-10T... |
{-# OPTIONS --cubical --safe #-}
module Cubical.Data.HomotopyGroup.Base where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.HLevels
import Cubical.Foundations.GroupoidLaws as GL
open import Cubical.Data.Nat
open import Cubical.Data.Group.Base
open import Cubical.HITs.SetTruncation
Pointed ... | {
"alphanum_fraction": 0.4882260597,
"avg_line_length": 30.3333333333,
"ext": "agda",
"hexsha": "1c2a8544144d932b0ab915248d59c18245666355",
"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 lib.Basics
open import lib.types.Bool
open import lib.types.FunctionSeq
open import lib.types.Pointed
open import lib.types.Suspension.Core
open import lib.types.Suspension.Flip
open import lib.types.Suspension.Iterated
open import lib.types.Suspension.IteratedEquivs... | {
"alphanum_fraction": 0.4980254993,
"avg_line_length": 40.2863636364,
"ext": "agda",
"hexsha": "c24b73af7f8bcafcc4903b54361beae8f18b523a",
"lang": "Agda",
"max_forks_count": 50,
"max_forks_repo_forks_event_max_datetime": "2022-02-14T03:03:25.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-10... |
open import Agda.Builtin.Bool
open import Agda.Builtin.Equality
open import Agda.Builtin.Float
NaN : Float
NaN = primFloatDiv 0.0 0.0
-NaN : Float
-NaN = primFloatNegate NaN
NaN≮NaN : primFloatNumericalLess NaN NaN ≡ false
NaN≮NaN = refl
-NaN≮-NaN : primFloatNumericalLess -NaN -NaN ≡ false
-NaN≮-NaN = refl
NaN≮-N... | {
"alphanum_fraction": 0.7394209354,
"avg_line_length": 19.5217391304,
"ext": "agda",
"hexsha": "0d3030e34dc2147e71c5bc8bb00386b5690777f5",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-03-05T... |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Algebra.Monoid.Submonoid where
open import Cubical.Core.Everything
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.HLevels
open import Cubical.Data.Sigma
open import Cubical.Algebra
open import Cubical.Algebra.Monoid.Morphism
op... | {
"alphanum_fraction": 0.7138844302,
"avg_line_length": 24.92,
"ext": "agda",
"hexsha": "421e2252f13cbaa09a7a2b597ebcc5eb72ba84c7",
"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": "... |
open import Preliminaries
open import Source-lang
module Examples-Source where
----- examples
nexp = [] |- nat
dbl-test4 : nexp
dbl-test4 = app dbl (suc (suc z))
four : nexp
four = suc (suc (suc (suc z)))
eqs4 : evals dbl-test4 four ((0c +c 0c) +c (0c +c (1c +c (0c +c (0c +c (1c +c (0c +c (0c +c (1c +c ... | {
"alphanum_fraction": 0.5168200837,
"avg_line_length": 63.5638297872,
"ext": "agda",
"hexsha": "2559dea1cce768c517d0f92f482632280b76f255",
"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 lib.Basics
open import lib.types.FunctionSeq
open import lib.types.Nat
open import lib.types.Pointed
open import lib.types.Suspension.Core
open import lib.types.Suspension.Iterated
module lib.types.Suspension.IteratedEquivs where
Susp^-+ : ∀ {i} (m n : ℕ) {A : Type... | {
"alphanum_fraction": 0.3985482198,
"avg_line_length": 39.6301369863,
"ext": "agda",
"hexsha": "442689bc86128e6f10115511e69ba767be7ee081",
"lang": "Agda",
"max_forks_count": 50,
"max_forks_repo_forks_event_max_datetime": "2022-02-14T03:03:25.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-10... |
open import Issue481PonderBase using (List)
module Issue481PonderImportMe (as bs : List) where
| {
"alphanum_fraction": 0.8125,
"avg_line_length": 24,
"ext": "agda",
"hexsha": "4ea78719c60db9cccff4c11f29c696acbc46a1f1",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:08.000Z",... |
-- Andreas, 2018-06-19, issue #3130
-- Produce parenthesized dot pattern .(p) instead of .p
-- when is a projection.
-- {-# OPTIONS -v reify.pat:80 #-}
record R : Set₁ where
field p : Set
open R
data D : (R → Set) → Set₁ where
c : D p
test : (f : R → Set) (x : D f) → Set₁
test f x = {!x!} -- split on x
-- Exp... | {
"alphanum_fraction": 0.5664739884,
"avg_line_length": 18.2105263158,
"ext": "agda",
"hexsha": "58aad59324c28aab06c46f1700442442e7a13f7a",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-0... |
-- This is the preferred version of the integers in the library. Other
-- versions can be found in the MoreInts directory.
{-# OPTIONS --safe #-}
module Cubical.Data.Int.Base where
open import Cubical.Core.Everything
open import Cubical.Data.Bool
open import Cubical.Data.Nat hiding (_+_ ; _·_) renaming (isEven to isEv... | {
"alphanum_fraction": 0.6027548209,
"avg_line_length": 21.1046511628,
"ext": "agda",
"hexsha": "b7d9c48b52077693f63820b4c4ac31da9cc040d6",
"lang": "Agda",
"max_forks_count": 134,
"max_forks_repo_forks_event_max_datetime": "2022-03-23T16:22:13.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-11-1... |
{-# OPTIONS --without-K --safe #-}
open import Categories.Category.Core using (Category)
-- Defines BinaryProducts -- for when a Category has all Binary Products
module Categories.Category.BinaryProducts {o ℓ e} (𝒞 : Category o ℓ e) where
open import Level hiding (suc)
open import Data.Product using (uncurry)
ope... | {
"alphanum_fraction": 0.4297699594,
"avg_line_length": 30.5371900826,
"ext": "agda",
"hexsha": "42371d4cd63955d24fe253cbd259b91ec1d969ac",
"lang": "Agda",
"max_forks_count": 64,
"max_forks_repo_forks_event_max_datetime": "2022-03-14T02:00:59.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-06-02... |
open import Data.Nat using (ℕ) renaming (_+_ to _+ᵢ_; _≤?_ to _≤?ᵢ_)
open import Agda.Builtin.Float renaming (primFloatPlus to _+ᵣ_; primFloatLess to _≤?ᵣ_)
open import Data.Bool using (Bool; true; false; not; _∧_)
open import Data.Sum using (inj₁; inj₂; _⊎_)
open import Data.Product using (_×_; _,_; -,_; _-... | {
"alphanum_fraction": 0.5093894074,
"avg_line_length": 29.9427609428,
"ext": "agda",
"hexsha": "e6c40976aa9ea5d2c2803c073d23c3da6e3fa5d8",
"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 Test where
open import Agda.Primitive
f : Level -> Level
f x = x
| {
"alphanum_fraction": 0.7027027027,
"avg_line_length": 10.5714285714,
"ext": "agda",
"hexsha": "2975e9dbde598ba28e2d6fdc4db01c1c7581ef41",
"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 container where
import container.core
import container.fixpoint
import container.equality
import container.m
import container.w
| {
"alphanum_fraction": 0.8,
"avg_line_length": 16.5,
"ext": "agda",
"hexsha": "a5c161f01fe48cf6f815413823fd4afebfce7fd3",
"lang": "Agda",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2019-05-04T19:31:00.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-02-02T12:17:00.000Z",
... |
{-# OPTIONS --without-K --rewriting #-}
open import HoTT
open import homotopy.EilenbergMacLane
open import homotopy.EilenbergMacLaneFunctor
open import cohomology.CupProduct.OnEM.CommutativityInLowDegrees
module cohomology.CupProduct.OnEM.CommutativityInLowDegrees2 {i} {j} (G : AbGroup i) (H : AbGroup j) where
priva... | {
"alphanum_fraction": 0.4984689617,
"avg_line_length": 46.8565217391,
"ext": "agda",
"hexsha": "518b7ec2f8e47b503e3377b8079503d474eebd18",
"lang": "Agda",
"max_forks_count": 50,
"max_forks_repo_forks_event_max_datetime": "2022-02-14T03:03:25.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-10... |
------------------------------------------------------------------------
-- Modules that are not safe because they use --sized-types
------------------------------------------------------------------------
{-# OPTIONS --without-K --sized-types #-}
module README.Unsafe.Sized-types where
-- Support for sized types.
i... | {
"alphanum_fraction": 0.5390070922,
"avg_line_length": 19.4482758621,
"ext": "agda",
"hexsha": "72a47654e1ce6722e9f6d91b73081bef323e6d9a",
"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 unit where
open import level
open import eq
data ⊤ : Set where
triv : ⊤
{-# COMPILED_DATA ⊤ () () #-}
single-range : ∀{U : Set}{g : U → ⊤} → ∀{u : U} → g u ≡ triv
single-range {U}{g}{u} with g u
... | triv = refl
| {
"alphanum_fraction": 0.5462555066,
"avg_line_length": 16.2142857143,
"ext": "agda",
"hexsha": "6822ed0f3f2fe000afc1574a3ad5dd3be702b53b",
"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... |
-- Reported by nad, 2018-12-13.
-- The option --no-sized-types should turn off sized types
{-# OPTIONS --no-sized-types #-}
{-# BUILTIN SIZE Size #-}
{-# BUILTIN SIZELT Size<_ #-}
record Stream (A : Set) (i : Size) : Set where
coinductive
field
head : A
tail : {j : Size< i} → Stream A j
open Stream
... | {
"alphanum_fraction": 0.6181434599,
"avg_line_length": 21.5454545455,
"ext": "agda",
"hexsha": "8210753cacad804cd8f159aa16c8343f61648e04",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-0... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Operations on nullary relations (like negation and decidability)
------------------------------------------------------------------------
-- Some operations on/properties of nullary relations, i.e. sets.
{-# OP... | {
"alphanum_fraction": 0.5405405405,
"avg_line_length": 25.3714285714,
"ext": "agda",
"hexsha": "74d26ecc73db62c698a5bc0443e787d65535c443",
"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 --sized-types #-}
open import Relation.Binary.Core
module Quicksort {A : Set}
(_≤_ : A → A → Set)
(tot≤ : Total _≤_) where
open import Bound.Total A
open import Bound.Total.Order _≤_
open import Data.List
open import Data.Product
open import Data.Sum
open import SBList ... | {
"alphanum_fraction": 0.5736514523,
"avg_line_length": 32.1333333333,
"ext": "agda",
"hexsha": "0af5fdfd67255705eb94c16621e3a84573f28180",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --safe #-}
module Confluence where
open import Relation.Binary.PropositionalEquality
using (_≡_; refl)
cong : ∀ {A B : Set} {x y : A} (f : A → B) → x ≡ y → f x ≡ f y
cong f refl = refl
data ℕ : Set where
Z : ℕ
S : ℕ → ℕ
add : ℕ → ℕ → ℕ
add n Z = n
add n (S m) = S (add n m)
_ : ∀ {a : ℕ} → add a ... | {
"alphanum_fraction": 0.5673076923,
"avg_line_length": 19.2592592593,
"ext": "agda",
"hexsha": "fde0b93c08bd4c978581745191f18acfc78435b1",
"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 Prelude.Nat.Core where
open import Prelude.Unit
open import Prelude.Empty
open import Prelude.Number
open import Prelude.Semiring
open import Agda.Builtin.Nat public
renaming ( _+_ to _+N_
; _*_ to _*N_
; _-_ to _-N_
; _==_ to eqNat
; _<... | {
"alphanum_fraction": 0.5839813375,
"avg_line_length": 22.1724137931,
"ext": "agda",
"hexsha": "a3243523f29500bf304a45c2234d5ac3985051d5",
"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... |
import Lvl
module Function.Names where
open import Functional.Dependent
open import Logic.Predicate
open import Structure.Setoid
open import Type
private variable ℓ ℓₒ ℓₒ₁ ℓₒ₂ ℓₒ₃ ℓₗ ℓₗ₁ ℓₗ₂ ℓₗ₃ : Lvl.Level
module _ {A : Type{ℓₒ₁}} {B : A → Type{ℓₒ₂}} ⦃ _ : ∀{a} → Equiv{ℓₗ₃}(B(a)) ⦄ where
-- Extensional equa... | {
"alphanum_fraction": 0.4888304862,
"avg_line_length": 42.2777777778,
"ext": "agda",
"hexsha": "1dcf737765b94986b7daab4dddcf4349d1a81817",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --cubical #-}
module Data.Boolean.Equiv.Path where
open import Data
open import Data.Boolean
open import Data.Boolean.Stmt
open import Functional
open import Logic.Propositional
open import Structure.Relator.Properties
open import Structure.Relator
open import Type.Cubical.Path.Equality
open import Type.C... | {
"alphanum_fraction": 0.7215189873,
"avg_line_length": 29.625,
"ext": "agda",
"hexsha": "a3195564129b1feecc9494779df45a07a8f0b9de",
"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": ... |
{- 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
open import LibraBFT.Impl.OBM.Logging.Logging... | {
"alphanum_fraction": 0.7641996558,
"avg_line_length": 41.5,
"ext": "agda",
"hexsha": "73146ed99b1440448c5350d16df2594cae9f5fec",
"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": "a... |
open import Level using (_⊔_; suc)
open import Data.Empty using (⊥)
open import Relation.Binary using (Rel; Decidable; DecSetoid)
module AKS.Algebra.Bundles where
open import AKS.Nat using (ℕ)
open import Algebra.Core using (Op₁; Op₂)
open import Algebra.Bundles using (CommutativeRing) public
open import AKS.Algeb... | {
"alphanum_fraction": 0.6317088217,
"avg_line_length": 29.5494791667,
"ext": "agda",
"hexsha": "a67ec01c84e6506846aac1189e186be3e9920fa8",
"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 Languages.ILL.Syntax where
open import level
open import bool
open import nat
open import unit
open import empty
open import eq
open import sum
open import product
open import Utils.HaskellTypes
open import Utils.HaskellFunctions
open import Languages.ILL.TypeSyntax
True : Set
True = ⊤{lzero}
False : Set
Fal... | {
"alphanum_fraction": 0.6100420261,
"avg_line_length": 39.3130434783,
"ext": "agda",
"hexsha": "58169acfe7220b25ef99199004a73647bc10d75b",
"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.PtdAdjoint
module homotopy.SuspAdjointLoop {i} where
private
SuspFunctor : PtdFunctor i i
SuspFunctor = record {
obj = ⊙Susp;
arr = ⊙Susp-fmap;
id = ⊙Susp-fmap-idf;
comp = ⊙Susp-fmap-∘}
LoopFunctor : PtdFunctor i i
... | {
"alphanum_fraction": 0.4590979782,
"avg_line_length": 27.9565217391,
"ext": "agda",
"hexsha": "dce20c39a2ab73f91a5444012e8b71b23de87047",
"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... |
------------------------------------------------------------------------
-- Code related to the paper Beating the Productivity Checker Using
-- Embedded Languages
--
-- Nils Anders Danielsson
------------------------------------------------------------------------
module Productivity where
---------------------------... | {
"alphanum_fraction": 0.6595463554,
"avg_line_length": 29.2967741935,
"ext": "agda",
"hexsha": "69dbd0b6d4ae3924e385b1b4b8ed938ceb6126ea",
"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, 2011-04-14
-- {-# OPTIONS -v tc.cover:20 -v tc.lhs.unify:20 #-}
module Issue291a where
open import Imports.Coinduction
data _≡_ {A : Set}(a : A) : A -> Set where
refl : a ≡ a
data RUnit : Set where
runit : ∞ RUnit -> RUnit
j : (u : ∞ RUnit) -> ♭ u ≡ runit u -> Set
j u ()
-- needs to fail (reports a ... | {
"alphanum_fraction": 0.5963855422,
"avg_line_length": 20.75,
"ext": "agda",
"hexsha": "68e6fedebe77e67f7f7be95c7e833b35141a6e5f",
"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": "... |
open import Agda.Primitive using (_⊔_ ; lsuc ; Level)
import Categories.Category as Category
import Categories.Category.Cartesian as Cartesian
open import Categories.Object.Terminal using (Terminal)
open import Categories.Object.Product using (Product)
open import MultiSorted.AlgebraicTheory
import MultiSorted.Produc... | {
"alphanum_fraction": 0.4020467836,
"avg_line_length": 55.3526011561,
"ext": "agda",
"hexsha": "e1f22eed646eee6de438f5b449a8d5ee469882f4",
"lang": "Agda",
"max_forks_count": 6,
"max_forks_repo_forks_event_max_datetime": "2021-05-24T02:51:43.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-02-16T... |
{-# OPTIONS --cubical --safe #-}
module Interpreter where
open import Function.Base using (_$_)
open import FreeReader
-- Runs it in the reader monad
runFree : ∀ {R A} → R → FreeReader R A → A
runFree r (Pure x) = x
runFree r (Bind x f) = runFree r $ f $ runFree r x
runFree r Ask = r
-- Since it's so simple, all the... | {
"alphanum_fraction": 0.6639511202,
"avg_line_length": 28.8823529412,
"ext": "agda",
"hexsha": "711baaeee53e01466c045d3e8d5f8549c1347f81",
"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
module Categories.Object.Initial {o ℓ e} (C : Category o ℓ e) where
open import Level
open import Relation.Binary.PropositionalEquality as ≡ using (_≡_)
open Category C
open import Categories.Morphism C using (Epi; _≅_)
open import Categories.Morphis... | {
"alphanum_fraction": 0.5240023135,
"avg_line_length": 27.4444444444,
"ext": "agda",
"hexsha": "54cc274fdd2288d0e561c172e421f63bbf995cd9",
"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 BTA-ken where
-- specialize two-level typed terms to untyped lambda calculus
open import Data.Nat hiding (_<_)
open import Data.Bool
open import Data.Fin hiding (_≤_ ; pred; _+_)
open import Data.List
open import Data.Product
open import Function
open import Algebra.FunctionProperties using (Commutative; Ident... | {
"alphanum_fraction": 0.5720408836,
"avg_line_length": 30.4824120603,
"ext": "agda",
"hexsha": "4755a2cb3f94d9b664e0a8512edebce12187e29c",
"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 --universe-polymorphism #-}
module Graphs.GraphMorphism where
open import Data.Product
open import Level
open import Relation.Binary
renaming (_⇒_ to _⊆_)
open import Relation.Binary.PropositionalEquality
using ()
renaming
(_≡_ to _≣_
; refl to ≣-refl
; sym to ≣-sym
; trans to ≣-tr... | {
"alphanum_fraction": 0.5375121007,
"avg_line_length": 34.1487603306,
"ext": "agda",
"hexsha": "7490586923147543d7e5bc8a661327f387bde6c9",
"lang": "Agda",
"max_forks_count": 23,
"max_forks_repo_forks_event_max_datetime": "2021-11-11T13:50:56.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-02-05... |
------------------------------------------------------------------------
-- Library stuff
data ⊥ : Set where
record ⊤ : Set where
constructor tt
data Bool : Set where
true false : Bool
if_then_else_ : ∀ {A : Set} → Bool → A → A → A
if true then t else f = t
if false then t else f = f
data ℕ : Set where
zer... | {
"alphanum_fraction": 0.4183588317,
"avg_line_length": 23.0448717949,
"ext": "agda",
"hexsha": "14ecde1b1af4cf9bbbbf493fc70359ec938fc88b",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
module Cats.Category.One where
open import Data.Unit using (⊤ ; tt)
open import Level
open import Cats.Category
One : ∀ lo la l≈ → Category lo la l≈
One lo la l≈ = record
{ Obj = Lift lo ⊤
; _⇒_ = λ _ _ → Lift la ⊤
; _≈_ = λ _ _ → Lift l≈ ⊤
; id = lift tt
; _∘_ = λ _ _ → lift tt
; equiv
... | {
"alphanum_fraction": 0.487804878,
"avg_line_length": 19.7407407407,
"ext": "agda",
"hexsha": "bafaac9b2f04b2300192e2ef4237c154a992e2da",
"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 regex where
data Regex ( Σ : Set) : Set where
ε : Regex Σ -- empty
φ : Regex Σ -- fail
_* : Regex Σ → Regex Σ
_&_ : Regex Σ → Regex Σ → Regex Σ
_||_ : Regex Σ → Regex Σ → Regex Σ
<_> : Σ → Regex Σ
infixr 40 _&_ _||_
| {
"alphanum_fraction": 0.4463087248,
"avg_line_length": 19.8666666667,
"ext": "agda",
"hexsha": "2873f67cba7ee6a47026db6e95636ed6fae1ae5e",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.