Search is not available for this dataset
text string | meta dict |
|---|---|
module _ where
open import Common.Prelude renaming (_+_ to _+N_)
open import Common.Integer
diff : Nat â Nat â Integer
diff a zero = pos a
diff zero (suc b) = negsuc b
diff (suc a) (suc b) = diff a b
_+_ : Integer â Integer â Integer
pos a + pos b = pos (a +N b)
pos a + negsuc b = diff a (suc b... | {
"alphanum_fraction": 0.595890411,
"avg_line_length": 26.0714285714,
"ext": "agda",
"hexsha": "0ba399540897dcbde387e3ca1b1d243171286248",
"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 --rewriting #-}
open import HoTT renaming (pt to ptâ)
open import cw.CW
module cw.FinCW where
record AttachedFinSkeleton n (Skel : Typeâ) (Real : Skel â Skeleton n) : Typeâ where
constructor attached-fin-skeleton
field
skel : Skel
numCells : â
attaching : Attaching ⊠Real skel... | {
"alphanum_fraction": 0.6897637795,
"avg_line_length": 34.8901098901,
"ext": "agda",
"hexsha": "7152828740176501526475aee5bdabeed489c298",
"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... |
-- binary search trees (not balanced)
open import bool
open import bool-thms2
open import eq
open import maybe
open import product
open import product-thms
open import bool-relations using (transitive ; total)
module bst (A : Set) (_â€A_ : A â A â ð¹)
(â€A-trans : transitive _â€A_)
(â€A-total : tot... | {
"alphanum_fraction": 0.5747387551,
"avg_line_length": 41.5283018868,
"ext": "agda",
"hexsha": "b3f8197f02d5ed9e2d4fd35b142177b0967b074e",
"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... |
{-
https://github.com/mietek/hilbert-gentzen
An Agda formalisation of IPC, IS4, ICML, and ILP. Work in progress.
Made by Miëtek Bak. Published under the MIT X11 license.
-}
module Everything where
import Common
import Common.Context
import Common.ContextPair
import Common.Predicate
import Common.PredicateBasedC... | {
"alphanum_fraction": 0.6896925663,
"avg_line_length": 39.0741525424,
"ext": "agda",
"hexsha": "53517d1bc506796910aa1f00a084e6caae34564f",
"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 IPL where
data _â§_ (P : Set) (Q : Set) : Set where
â§-intro : P â Q â (P â§ Q)
proofâ : {P Q : Set} â (P â§ Q) â P
proofâ (â§-intro p q) = p
proofâ : {P Q : Set} â (P â§ Q) â Q
proofâ (â§-intro p q) = q
_â_ : (P : Set) â (Q : Set) â Set
a â b = (a â b) â§ (b â a)
â§-commâ² : (P Q : Set) â (P â§ Q) â (Q â§ P)
â§-c... | {
"alphanum_fraction": 0.4219712526,
"avg_line_length": 18.3773584906,
"ext": "agda",
"hexsha": "6fbdc19033d4ca5c3209752661d0580d0b004364",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2017-06-03T06:32:26.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-12-02T... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Conversion of †to <, along with a number of properties
------------------------------------------------------------------------
-- Possible TODO: Prove that a conversion †â < â †returns a
-- relation equivale... | {
"alphanum_fraction": 0.5625342841,
"avg_line_length": 33.7592592593,
"ext": "agda",
"hexsha": "73e2eed20a132478a4d0490a1e70c2f0108c7e4b",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
-- This module is used to illustrate how to import a non-parameterised module.
module examples.syntax.ModuleA where
data Nat : Set where
zero : Nat
suc : Nat -> Nat
plus : Nat -> Nat -> Nat
eval : Nat -> Nat
eval zero = zero
eval (suc x) = suc (eval x)
eval (plus zero y) = eva... | {
"alphanum_fraction": 0.5787037037,
"avg_line_length": 25.4117647059,
"ext": "agda",
"hexsha": "4a77449488fbd7dcde1b9f52534f28351388fc07",
"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... |
-- Andreas, 2012-09-24 Ensure that size successor is monotone
{-# OPTIONS --sized-types #-}
module SizeSucMonotone where
open import Common.Size
data Bool : Set where
true false : Bool
-- T should be monotone in its second arg
T : Bool â Size â Set
T true i = Size< i
T false i = Size< (â i)
test : {x : Bool}{i :... | {
"alphanum_fraction": 0.6467391304,
"avg_line_length": 20.4444444444,
"ext": "agda",
"hexsha": "50929eca1d6b85e2437e0e55941884f581f6690c",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-03-12T... |
module Data.String.Exts where
open import Data.Bool hiding (_<?_)
open import Data.Char hiding (_<?_)
open import Data.String hiding (_<?_)
open import Data.Maybe
open import Data.Nat
open import Relation.Nullary.Decidable
{-#
FOREIGN GHC
import Data.Text
#-}
postulate
strHead : String -> Maybe Char
strNull... | {
"alphanum_fraction": 0.6772082879,
"avg_line_length": 27.7878787879,
"ext": "agda",
"hexsha": "99ac2b5fa49d0fa4689c0093a90ecd79c39b0fe8",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2021-10-20T10:46:20.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-06-27T... |
{-# OPTIONS --without-K --rewriting #-}
open import HoTT
import homotopy.RelativelyConstantToSetExtendsViaSurjection as SurjExt
module homotopy.vankampen.Code {i j k l}
(span : Span {i} {j} {k})
{D : Type l} (h : D â Span.C span) (h-is-surj : is-surj h) where
open Span span
open import homotopy.vankampen.Cod... | {
"alphanum_fraction": 0.5274369626,
"avg_line_length": 49.7644230769,
"ext": "agda",
"hexsha": "bc6734a499ec29d85e08ff59ac292f7268528578",
"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... |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
open import Cubical.Core.Everything
open import Cubical.Relation.Binary.Raw
module Cubical.Relation.Binary.Reasoning.Preorder {c â} {A : Type c} (P : Preorder A â) where
open Preorder P
------------------------------------------------------------------------
-- Pub... | {
"alphanum_fraction": 0.6391982183,
"avg_line_length": 32.0714285714,
"ext": "agda",
"hexsha": "e9a699340bc25b259149e9f191737c5c073e49ae",
"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
--
-- This module is DEPRECATED. Please use the
-- Relation.Binary.Construct.Closure.Reflexive module directly.
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #... | {
"alphanum_fraction": 0.5737410072,
"avg_line_length": 30.8888888889,
"ext": "agda",
"hexsha": "43bf72b8c3f5908bfe99310c706247a93594289d",
"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 --safe #-}
module Cubical.Data.Prod.Properties where
open import Cubical.Core.Everything
open import Cubical.Data.Prod.Base
open import Cubical.Data.Sigma
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.HLevels
open import Cubical.Fo... | {
"alphanum_fraction": 0.5636077196,
"avg_line_length": 29.523255814,
"ext": "agda",
"hexsha": "2113997fefcd048c8de5076e6473db414d916367",
"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 #-}
open import Agda.Primitive.Cubical
open import Agda.Builtin.Cubical.Path
data S1 : Set where
base : S1
loop : base â¡ base
postulate
weird : S1 â I
bad : (x : S1) â I
bad base = {!!}
bad (loop x) = {!!}
| {
"alphanum_fraction": 0.6074380165,
"avg_line_length": 15.125,
"ext": "agda",
"hexsha": "043d9ec7d5f7c24bf6dc6294e8315bcc95a6da23",
"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 Structure.Categorical.Multi where
open import Data
open import Data.Boolean
open import Data.Tuple using (_⚯_ ; _,_)
open import Data.Tuple.Raiseáµ£
import Data.Tuple.Raiseáµ£.Functions as Raise
open import Data.Tuple.RaiseTypeáµ£
import Data.Tuple.RaiseTypeáµ£.Functions as RaiseType
open import Function.Mult... | {
"alphanum_fraction": 0.5083816892,
"avg_line_length": 43.3846153846,
"ext": "agda",
"hexsha": "a61593de71245bcfe6dc15a4bf2d398e8980224f",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9.
Copyright (c) 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.Consensus.LedgerRecoveryData as LedgerRecoveryData
o... | {
"alphanum_fraction": 0.6781429317,
"avg_line_length": 36.8653846154,
"ext": "agda",
"hexsha": "b5df892b9dfea36e82dbfd93e38cc0b96d669db3",
"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 Circle where
open import Agda.Prim
open import Data.Product
open import Function renaming (_â_ to _â_)
infixr 8 _â_ -- path composition
infix 4 _â¡_ -- propositional equality
infix 4 _âŒ_ -- homotopy between two functions
infix 4 _â_ -- type of equivalences... | {
"alphanum_fraction": 0.4136978735,
"avg_line_length": 27.3283018868,
"ext": "agda",
"hexsha": "f55b6f716648fff6d73eb9b7de0612b23a5c70ce",
"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, 2015-03-17
-- Andreas, 2020-10-26 conform to Issue1428a
open import Agda.Builtin.Size
data ⥠: Set where
data SizeLt (i : Size) : Set where
wrap : Size< i â SizeLt i
-- This definition of size predecessor should be forbidden...
module _ (i : Size) where
postulate
pred : Size< i
-- ...otherwise ... | {
"alphanum_fraction": 0.6595744681,
"avg_line_length": 21.4857142857,
"ext": "agda",
"hexsha": "8a5a573d330de89fa5ecbbc07d19daa66206ede1",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
------------------------------------------------------------------------------
-- Note on the equality type class using Kettelhoit's approach
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS ... | {
"alphanum_fraction": 0.5158020274,
"avg_line_length": 28.4237288136,
"ext": "agda",
"hexsha": "6f272e8a048889a5946a103972ac223d56066c52",
"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... |
-- 2014-03-05 Andreas, issue reported by James
-- {-# OPTIONS -v tc.with.strip:60 -v:impossible:10 #-}
data Nat : Set where
zero : Nat
pattern pzero = zero
f : Nat â Nat
f pzero with pzero
f pzero | pzero = pzero
-- ERROR WAS:
-- With clause pattern pzero is not an instance of its parent pattern
-- when checking... | {
"alphanum_fraction": 0.6789215686,
"avg_line_length": 20.4,
"ext": "agda",
"hexsha": "e7660d87608c755c73ff48c644698eac0ef39ccd",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:0... |
{-# OPTIONS --without-K --safe #-}
module Dodo.Binary.Functional where
-- Stdlib imports
open import Level using (Level; _â_)
open import Relation.Binary using (Rel; REL)
-- Local imports
open import Dodo.Binary.Equality
-- # Definitions #
Functional : â {a b ââ ââ : Level} {A : Set a} {B : Set b}
â Rel B ââ
â... | {
"alphanum_fraction": 0.614334471,
"avg_line_length": 29.3,
"ext": "agda",
"hexsha": "6b8d380808192152c29324c14125393b7e57cd4f",
"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": "37... |
module Data.Environment {a} {A : Set a} where
open import Algebra
open import Data.Nat
open import Data.Empty using (â¥-elim)
open import Data.Pos using (ââº; suc; replicateâº)
open import Data.List as L using (List; []... | {
"alphanum_fraction": 0.4965318536,
"avg_line_length": 37.0395256917,
"ext": "agda",
"hexsha": "bb9db5bcf772e19b2ad3beb98d548970faa0cef5",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2018-09-05T08:58:13.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-09-05T... |
module x06-747Connectives-hc where
import Relation.Binary.PropositionalEquality as Eq
open Eq using (_â¡_; refl)
open Eq.â¡-Reasoning
open import Data.Nat using (â)
open import Function using (_â_)
------------------------------------------------------------------------------
-- BEGIN : Copied from 747Isomorphism.
pos... | {
"alphanum_fraction": 0.4417214585,
"avg_line_length": 30.6570680628,
"ext": "agda",
"hexsha": "5624a26ee44325d39cc1f4b33584b39fbc52a9ea",
"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... |
module PLDI14-List-of-Theorems where
-- List of theorems in PLDI submission
--
-- For hints about installation and execution, please refer
-- to README.agda.
--
-- Agda modules corresponding to definitions, lemmas and theorems
-- are listed here with the most important names. For example,
-- after this file type check... | {
"alphanum_fraction": 0.7772816076,
"avg_line_length": 38.9456521739,
"ext": "agda",
"hexsha": "d9379e6c42fa7ae97d0409b0d3fcc919976cba17",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2016-02-18T12:26:44.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-02-18T... |
open import Data.Product using ( projâ ; projâ )
open import Data.Sum using ( injâ ; injâ )
open import Relation.Binary.PropositionalEquality using
( _â¡_ ; refl ; sym ; cong )
open import Relation.Unary using ( _â_ )
open import Web.Semantic.DL.ABox using ( ABox ; âšABoxâ© ; Assertions )
open import Web.Semantic.DL.ABo... | {
"alphanum_fraction": 0.5715093273,
"avg_line_length": 46.5526315789,
"ext": "agda",
"hexsha": "b04bc840873ec9bc65772a38243d9aff2dd3b8b4",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:40:03.000Z",
"max_forks_repo_forks_event_min_datetime": "2017-12-03T... |
module ParserC where
{-
import Prelude
import Equiv
import Eq
import Datoid
import List
import Bag
open Prelude
open Equiv
open Eq
open Datoid
open List
open Bag
parserDatoid : (a, s : Datoid) -> Datoid
parserDatoid a s = Bag (pairDatoid a (listDatoid s))
-- We use the following dataty... | {
"alphanum_fraction": 0.504611837,
"avg_line_length": 27.1041666667,
"ext": "agda",
"hexsha": "60517c1ec0ba204ea17eea329e50bb9c7ec1ddc7",
"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 #-}
module Test where
open import Level
infixl 4 _â¡_
data _â¡_ {a} {A : Set a} (x : A) : A â Set a where
refl : x â¡ x
J : {a b : Level} (A : Set a) (C : (x y : A) â x â¡ y â Set b)
â ((x : A) â C x x refl)
â (x y : A) (P : x â¡ y)
â C x y P
J A C b x .x refl = b x
-- K : (A : Se... | {
"alphanum_fraction": 0.397311828,
"avg_line_length": 24.6357615894,
"ext": "agda",
"hexsha": "4bed8fc67385a11db50395a6b5339a5e395ff724",
"lang": "Agda",
"max_forks_count": 18,
"max_forks_repo_forks_event_max_datetime": "2019-11-21T10:12:31.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-05-24T... |
{-# OPTIONS --without-K --safe #-}
module Definition.Typed.Consequences.Equality where
open import Definition.Untyped
open import Definition.Typed
open import Definition.Typed.Properties
open import Definition.Typed.EqRelInstance
open import Definition.LogicalRelation
open import Definition.LogicalRelation.Irrelevanc... | {
"alphanum_fraction": 0.5328312544,
"avg_line_length": 33.4566929134,
"ext": "agda",
"hexsha": "29a9f15743b0b3b1ee980681c280407766f7f878",
"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... |
{-
Cubical Agda - A Dependently Typed PL with Univalence and HITs
==============================================================
Anders Mörtberg
Every Proof Assistant - September 17, 2020
Link to slides: https://staff.math.su.se/anders.mortberg/slides/EPA2020.pdf
Link to video: https://vi... | {
"alphanum_fraction": 0.628761272,
"avg_line_length": 30.8040935673,
"ext": "agda",
"hexsha": "12b37d9c29d3ed147e74cbf6e28996aee663280e",
"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 Structure.Sets.Relators where
| {
"alphanum_fraction": 0.8648648649,
"avg_line_length": 18.5,
"ext": "agda",
"hexsha": "134367bbfc51f3e9acaa5136a5fbcf628f06a338",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha": "7... |
module Prelude.Monoid where
open import Prelude.Function
open import Prelude.Maybe
open import Prelude.List
open import Prelude.Semiring
open import Prelude.Applicative
open import Prelude.Functor
record Monoid {a} (A : Set a) : Set a where
infixr 6 _<>_
field
mempty : A
_<>_ : A â A â A
open Monoid {... | {
"alphanum_fraction": 0.6107350097,
"avg_line_length": 26.8571428571,
"ext": "agda",
"hexsha": "12a6238220386af3b23191863a9b1cfa45afea31",
"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 Cubical.Algebra.Group.Instances.NProd where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.HLevels
open import Cubical.Data.Nat using (â)
open import Cubical.Algebra.Group
private variable
â : Level
open GroupStr
NProd-Group : (G : (n : â) â Type â) â (Gstr... | {
"alphanum_fraction": 0.4887285843,
"avg_line_length": 41.0740740741,
"ext": "agda",
"hexsha": "8169e1da5fed15cc28ed752d38e4c186ee879601",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
------------------------------------------------------------------------
-- An abstraction: term-like things
------------------------------------------------------------------------
open import Data.Universe.Indexed
module deBruijn.Context.Term-like
{i u e} (Uni : IndexedUniverse i u e) where
import Axiom.Extensio... | {
"alphanum_fraction": 0.4594773953,
"avg_line_length": 32.4059139785,
"ext": "agda",
"hexsha": "3cbf85d0a8cc0b227de995674128d4f31c156fef",
"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 Logic.Propositional.Proofs.Structures where
import Data.Tuple as Tuple
import Lvl
open import Functional
open import Logic
open import Logic.Propositional
import Logic.Propositional.Theorems as Theorems
open import Structure.Operator.Properties
open import Structure.Relator.Equivalence
open impor... | {
"alphanum_fraction": 0.6533945891,
"avg_line_length": 35.9449541284,
"ext": "agda",
"hexsha": "99e83434143373e9ac593b8fd86591bfb5ae0da3",
"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 #-}
module Examples.Sorting.Parallel where
open import Examples.Sorting.Parallel.Comparable
open import Calf costMonoid
open import Calf.Types.Nat
open import Calf.Types.List
open import Relation.Binary.PropositionalEquality as Eq using (_â¡_)
open import Data.Product using (_,_)
open ... | {
"alphanum_fraction": 0.6391465677,
"avg_line_length": 31.0961538462,
"ext": "agda",
"hexsha": "1a796c9bfdc15dc94d53d24daa3d43c197ffcebb",
"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... |
module Day3 where
open import Data.String as String
open import Data.Maybe
open import Foreign.Haskell using (Unit)
open import Data.List as List hiding (fromMaybe)
open import Data.Nat
open import Data.Nat.DivMod
open import Data.Nat.Properties
import Data.Nat.Show as âs
open import Data.Char
open import Data.Vec a... | {
"alphanum_fraction": 0.5383426966,
"avg_line_length": 46.2337662338,
"ext": "agda",
"hexsha": "82743da45bf400c2317d5ded5b0b2a0d1ab3db72",
"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
module experimental.NConnected where
lemmaâ : â {i j} {A : Type i} {B : Type j} (f : A â B) {n : âââ}
â is-connected n A â is-connected (S n) B
â has-conn-fibers n f
lemmaâ f cA cB = λ b â Σ-conn cA (λ a â path-conn cB)
lemmaâ : â {i} {A B C : T... | {
"alphanum_fraction": 0.4139922978,
"avg_line_length": 31.7959183673,
"ext": "agda",
"hexsha": "df9db6d4aa8d7194f181591437946aacad07c90a",
"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 Agda standard library
--
-- The basic code for equational reasoning with a single relation
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Relation.Binary
module Rel... | {
"alphanum_fraction": 0.5185185185,
"avg_line_length": 27,
"ext": "agda",
"hexsha": "d8957b78f6af00591f434601d511ccb510442274",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-04T06:54:45.00... |
{-# OPTIONS --universe-polymorphism #-}
module Issue227 where
open import Common.Level
data D (a p b : Level) (A : Set a) (P : A â Set p) : Set (p â a â b) where
d : ((x : A) â P x) â D a p b A P
-- Unsolved trivial constraint: Set (a â p) =< Set (p â a).
OK : â {a} {A : Set a} â (A â Set) â A â Set _
OK P = P
N... | {
"alphanum_fraction": 0.5138888889,
"avg_line_length": 28,
"ext": "agda",
"hexsha": "b5334e00eb83db032381da85860d212407577c94",
"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": "70c... |
------------------------------------------------------------------------------
-- Induction principles for the total natural numbers inductive predicate
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{... | {
"alphanum_fraction": 0.3912326184,
"avg_line_length": 30.7463768116,
"ext": "agda",
"hexsha": "9028e7d935ee6ca0bd8b567c2b66bcf0a8bf64a2",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-09-19T... |
{-# OPTIONS --without-K #-}
open import HoTT.Base
open import HoTT.Identity
module HoTT.Homotopy where
open variables
private variable f g : A â B
-- Lemma 2.4.3
~-natural : (α : f ~ g) {x y : A} (p : x == y) â α x â ap g p == ap f p â α y
~-natural α {x} refl rewrite α x = refl
~-natural-id : (α : f ~ id) {x y : A... | {
"alphanum_fraction": 0.5066489362,
"avg_line_length": 25.9310344828,
"ext": "agda",
"hexsha": "292c830abb899876b30072a04e35ddcba3c72600",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
module UniDB.Morph.Unit where
open import UniDB.Spec
--------------------------------------------------------------------------------
data Unit : MOR where
unit : {γ : Dom} â Unit γ γ
instance
iUpUnit : Up Unit
_ââ {{iUpUnit}} unit = unit
_â_ {{iUpUnit}} unit ÎŽ = unit
â-zero {{iUpUnit}} unit = refl
â-s... | {
"alphanum_fraction": 0.4905263158,
"avg_line_length": 23.1707317073,
"ext": "agda",
"hexsha": "f78293244babd44fc98db8ae5dde1f4e22bd165f",
"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 Cubical.Categories.Functor.Base where
open import Cubical.Foundations.Prelude
open import Cubical.Data.Sigma
open import Cubical.Categories.Category
private
variable
âC âC' âD âD' : Level
record Functor (C : Category âC âC') (D : Category âD âD') :
Type (â-max (â-max âC... | {
"alphanum_fraction": 0.513540128,
"avg_line_length": 25.3875,
"ext": "agda",
"hexsha": "871dd6d72eba1d7958133aaa4c5dff4b3d7e0ff9",
"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 Prelude.Monoid where
open import Prelude.Function
open import Prelude.Maybe
open import Prelude.List
open import Prelude.Semiring
open import Prelude.Semigroup public
open import Prelude.Applicative
open import Prelude.Functor
open import Prelude.Equality
open import Prelude.Variables
record Monoid {a} (A ... | {
"alphanum_fraction": 0.6341917468,
"avg_line_length": 29.3,
"ext": "agda",
"hexsha": "8cab9b38ab60c3a2800eef333c2fbf4d9403a3c8",
"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-12T18:03:45... |
{-# OPTIONS --without-K #-}
module T where
open import Level
open import Relation.Binary.PropositionalEquality
using (_â¡_; refl; sym; trans; cong; subst; module â¡-Reasoning)
open import Data.Nat using (â; _+_)
open import Data.Fin using (Fin)
data Exp : Set where
ONE : Exp
PLUS : Exp â Exp â Exp
val : Ex... | {
"alphanum_fraction": 0.4915824916,
"avg_line_length": 38.7391304348,
"ext": "agda",
"hexsha": "748581ee2fbf589898800b2383dba06650a18c59",
"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... |
{-
This file contains:
- Some basic properties of Rijke finite types.
-}
{-# OPTIONS --safe #-}
module Cubical.Data.FinType.Properties where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Equiv.Properties
ope... | {
"alphanum_fraction": 0.7441685478,
"avg_line_length": 30.9069767442,
"ext": "agda",
"hexsha": "befeba15a6899449bba2ac710230efb970c2b9ae",
"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.Monoidal.Braided where
open import Level
open import Level using (_â_)
open import Categories.Category
open import Categories.Bifunctor using (Bifunctor)
open import Categories.NaturalIsomorphism
open import Categories.NaturalTransformation using (_ââ_) renam... | {
"alphanum_fraction": 0.7519446845,
"avg_line_length": 33.0571428571,
"ext": "agda",
"hexsha": "2e714243fd3fc13c6d03b09a1d4a0a25dc89bc3c",
"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 DaraisPhoas where
open import Agda.Primitive using (_â_)
module Prelude where
infixr 3 âð ð¡
infixl 5 _âš_
infixr 20 _â·_
data ð¹ : Set where
T : ð¹
F : ð¹
data _âš_ {ââ ââ} (A : Set ââ) (B : Set ââ) : Set (ââ â ââ) where
Inl : A â A âš B
Inr : B â A âš B
syntax âð ð¡ A (λ x â B) =... | {
"alphanum_fraction": 0.4388489209,
"avg_line_length": 22.9120879121,
"ext": "agda",
"hexsha": "b513d70d9a25a82492c0e5a024c9769f510f0993",
"lang": "Agda",
"max_forks_count": 304,
"max_forks_repo_forks_event_max_datetime": "2022-03-28T11:35:02.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-07-1... |
module All where
open import Prelude
open import T
open import SubstTheory
open import DynTheory
open import Progress
open import HT
open import Examples
open import Eq
open import DenotCommutes
| {
"alphanum_fraction": 0.8418367347,
"avg_line_length": 16.3333333333,
"ext": "agda",
"hexsha": "06383780fc7bb2802794d27643875873e98a68f1",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2021-05-04T22:37:18.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-04-26T... |
{-
Problem #53
Given premises:
(all x)[(F x) -> (some y)((F y) & (G x y))] justification = 1.0
Ultimate epistemic interests:
(all x)[(F x) -> (some y)(some z)((G x y) & (G y z))] interest = 1.0
-}
open import Prelude
postulate
U : Set
F : U â Set
G : U â U â Set
record Premise {x : U} (Fx : F x)... | {
"alphanum_fraction": 0.4759856631,
"avg_line_length": 16.6071428571,
"ext": "agda",
"hexsha": "605f96e99b470405a868ea63cce39e46beecc8bf",
"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 Issue384 where
postulate
D : (A : Set) â A â Set
data I : Set where
i : I
Dâ² : (A : Set) â A â I â Set
Dâ² A x i = D A x
postulate
Q : (A : Set) â A â Set
q : â j A (x : A) â Dâ² A x j â Q A x
A : Set
x : A
d : D A x
P : (A : Set) â A â Set
p : P (Q _ _) (q _ _ _ d)
| {
"alphanum_fraction": 0.430976431,
"avg_line_length": 12.9130434783,
"ext": "agda",
"hexsha": "c5457a466043c43acc5f8e1389d8905f289cc53d",
"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 Issue168 where
postulate X : Set
open import Issue168b
open Membership X
postulate
P : Nat â Set
lemma : â n â P (id n)
foo : P zero
foo = lemma _
| {
"alphanum_fraction": 0.6687116564,
"avg_line_length": 10.8666666667,
"ext": "agda",
"hexsha": "442c2d9fbfd5c29b88734d432c3ced70a796a4de",
"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
--
-- List Literals
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.List.Literals where
open import Agda.Builtin.FromString
open import Data.Un... | {
"alphanum_fraction": 0.5250463822,
"avg_line_length": 24.5,
"ext": "agda",
"hexsha": "7172cec21dcc1b24242a08fb00774a8f5b053bd8",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-04T06:54:45.... |
------------------------------------------------------------------------------
-- The relation of divisibility on partial natural numbers
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no... | {
"alphanum_fraction": 0.497671324,
"avg_line_length": 30.6734693878,
"ext": "agda",
"hexsha": "d6f1f6abcf1d77a73b4c325d1211709bcc6474c5",
"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-19T1... |
------------------------------------------------------------------------
-- Compiler correctness
------------------------------------------------------------------------
{-# OPTIONS --cubical --sized-types #-}
module Lambda.Partiality-monad.Inductive.Compiler-correctness where
open import Equality.Propositional.Cubi... | {
"alphanum_fraction": 0.3845448992,
"avg_line_length": 41.7070063694,
"ext": "agda",
"hexsha": "8dfe87fc08411a5b0c5a3692b3f5d2252a464a96",
"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 BHeap.Properties {A : Set}(_â€_ : A â A â Set) where
open import Bound.Lower A
open import Bound.Lower.Order _â€_
open import BHeap _â€_
open import Data.List
open import Data.Nat
open import Data.Sum
open import Nat.Sum
open import List.Permutation.Base A
open import List.Permutation.Base.Concatenation A
ope... | {
"alphanum_fraction": 0.6128133705,
"avg_line_length": 46.0256410256,
"ext": "agda",
"hexsha": "33f3a49df229bde81e36210219064c5eb40fa071",
"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, 2012-10-30 Sections
-- Reported by guillaume.brunerie, Oct 24 2012
module Issue735 where
import Common.Level
open import Common.Prelude using (Nat; zero; suc)
{- I often want to use something like sections in Coq. I usually use
parametrized modules but this has at least two issues that Coq does
not have:
... | {
"alphanum_fraction": 0.686285397,
"avg_line_length": 24.6712328767,
"ext": "agda",
"hexsha": "91b4680ba4a294310f12cdad167339f664efa34a",
"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 ImpossiblePattern where
f : ?
f (_ _) = ?
| {
"alphanum_fraction": 0.6153846154,
"avg_line_length": 7.4285714286,
"ext": "agda",
"hexsha": "c2065e84749a61672340e4bd0904f03a971f3f08",
"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-05T2... |
open import Issue2959.M Set
r : R
r = ?
| {
"alphanum_fraction": 0.6341463415,
"avg_line_length": 8.2,
"ext": "agda",
"hexsha": "3666f9520a710b3afbf1c2e71c5e51dd3f793232",
"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... |
------------------------------------------------------------------------------
-- Example of a nested recursive function using the Agda standard
-- library
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-... | {
"alphanum_fraction": 0.4761904762,
"avg_line_length": 31.5,
"ext": "agda",
"hexsha": "e2e9d5591910b897db1f4b5a07f80b4908e30a86",
"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.... |
-- Andreas, 2022-03-09, issue #5819, reported by Zilin Chen
--
-- This test uncovered an unsound optimization (8e0fca895b9c6740d9d6c1751ed1e0ecefe63473)
-- in the termination checker which replaced a (stripAllProjections . normalize)
-- by a (iteratively reduce . stripAllProjections).
-- Those reductions on now ill-for... | {
"alphanum_fraction": 0.563299755,
"avg_line_length": 29.6209677419,
"ext": "agda",
"hexsha": "a895809ccf0bcc4e46036d3418d93cea774c6d64",
"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 #-}
open import HoTT
open import homotopy.HSpace
module homotopy.EM1HSpace where
module EMâHSpace {i} (A : Group i) (A-abelian : is-abelian A) where
module A = Group A
open EMâ A
mult-loop : (g : A.El) (x : EMâ) â x == x
mult-loop g = EMâ-elim
{P = λ x â x == x}
(λ _ â =-pre... | {
"alphanum_fraction": 0.488061127,
"avg_line_length": 34.9,
"ext": "agda",
"hexsha": "ec1ae3f3d26b8382e9d4290538eee81466a0d825",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha": "bc... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Format strings for Printf and Scanf
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Text.Format where
open import Level using (0â)
open import... | {
"alphanum_fraction": 0.5612332287,
"avg_line_length": 31.5585585586,
"ext": "agda",
"hexsha": "3c2b9cd2f8a80efedd194ce0ec20da6ded6a5eab",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-04T... |
------------------------------------------------------------------------------
-- Testing Agsy *without* using the Agda standard library
------------------------------------------------------------------------------
{-# OPTIONS --allow-unsolved-metas #-}
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-... | {
"alphanum_fraction": 0.5074135091,
"avg_line_length": 30.35,
"ext": "agda",
"hexsha": "9e790ecaf60db73c770b6d5316628b495363872e",
"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... |
module Tactic.Nat.Subtract.Simplify where
open import Prelude hiding (abs)
open import Builtin.Reflection
open import Tactic.Reflection.Quote
open import Tactic.Reflection
open import Control.Monad.State
open import Tactic.Nat.Reflect
open import Tactic.Nat.NF
open import Tactic.Nat.Exp
open import Tactic.Nat.Auto
o... | {
"alphanum_fraction": 0.6319543509,
"avg_line_length": 29.6197183099,
"ext": "agda",
"hexsha": "64029d5388ceee8b6c1742ff42bb260f8ebb43f7",
"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... |
{-# OPTIONS --safe --experimental-lossy-unification #-}
module Cubical.ZCohomology.Groups.WedgeOfSpheres where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Isomorphism
open import Cubical.Data.Sigma.Base
open import Cubical.ZCohomology.Base
open import Cubical.ZCohomology.GroupStructure
ope... | {
"alphanum_fraction": 0.6269718528,
"avg_line_length": 26.9416666667,
"ext": "agda",
"hexsha": "cdc616371c53fd4503a63a624e1bc1e46ec202c6",
"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... |
------------------------------------------------------------------------
-- Vectors, defined as functions from finite sets
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Equality
module Vec.Function
{reflexive} (eq : â {a p} â Equality-with-J... | {
"alphanum_fraction": 0.4867690994,
"avg_line_length": 26.1787709497,
"ext": "agda",
"hexsha": "ba4c909f716c68e3a04298ca1944e81686770f33",
"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
import homotopy.ConstantToSetExtendsToProp as ConstExt
{-
q[_]Ꮃ
G/Q â------ G
â â
Ïâ â â inject
â â
H â------- P
Ïâ
Then, H âᎳ P/Q.
-}
module groups.PropQuotUniqueFactorization
{... | {
"alphanum_fraction": 0.4952857985,
"avg_line_length": 32.9514563107,
"ext": "agda",
"hexsha": "e61e98d5fb6d521b1836a9fdd4072bdda7c9c2fe",
"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... |
{-# OPTIONS --safe --without-K #-}
open import Generics.Prelude
open import Generics.Telescope
open import Generics.Desc
open import Agda.Builtin.Reflection
module Generics.Helpers
P I
{levelArgRel : Level â Level}
(ArgRel : â {a} â Set a â Set (levelArgRel a))
{levelArgIrr : L... | {
"alphanum_fraction": 0.402281746,
"avg_line_length": 36.6545454545,
"ext": "agda",
"hexsha": "bc3419170d682e1fbca649d177884c4a61d506b3",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2022-01-14T10:35:16.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-04-08T0... |
open import Common.Prelude hiding (_>>=_)
open import Common.Reflection
open import Common.Equality
setâ = sort (lit 0)
set! = sort unknown
-- Definitions added by tactics always use the original context, and thus are not
-- affected by inContext and extendContext. The reason for this is that they are added
-- to th... | {
"alphanum_fraction": 0.6643192488,
"avg_line_length": 23.6666666667,
"ext": "agda",
"hexsha": "faf01473ca1f767f408bffc146614ea05a8b1d1f",
"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 --universe-polymorphism #-}
module Categories.NaturalTransformation.Core where
open import Level
open import Relation.Binary using (Rel; IsEquivalence)
open import Categories.Support.Equivalence
open import Categories.Category
open import Categories.Functor.Core renaming (id to idF; _â_ to _âF_)
record ... | {
"alphanum_fraction": 0.4865611193,
"avg_line_length": 33.3251533742,
"ext": "agda",
"hexsha": "21d3429bc17d0c0c77bc2b93c7b46847b1d513ba",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
------------------------------------------------------------------------
-- INCREMENTAL λ-CALCULUS
--
-- Incrementalization as term-to-term transformation with the Nehemiah plugin.
------------------------------------------------------------------------
module Nehemiah.Change.Derive where
open import Nehemiah.Syntax.... | {
"alphanum_fraction": 0.6076794658,
"avg_line_length": 37.4375,
"ext": "agda",
"hexsha": "21149a18e05d1a806bc9f49ec251495f16f1c0ab",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2016-02-18T12:26:44.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-02-18T12:26:... |
module InferrableFields where
data â : Set where
zero : â
suc : â â â
data Vec A : â â Set where
[] : Vec A zero
_â·_ : â {n} â A â Vec A n â Vec A (suc n)
record SomeVec A : Set where
field n : â
unpack : Vec A n
open SomeVec using (unpack)
pack : â {A n} â Vec A n -> SomeVec A
pack xs = ... | {
"alphanum_fraction": 0.5567226891,
"avg_line_length": 18.3076923077,
"ext": "agda",
"hexsha": "fd83fa80359e7e191d9107ae843c9e9e61e8c429",
"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 -v scope.operators:100 #-}
module Issue675 where
data D : Set where
d : D â D
Foo : {x : D} â Setâ
Foo {x = D.d x} = Set
-- qualified constructors should also work in hidden arguments
| {
"alphanum_fraction": 0.645320197,
"avg_line_length": 20.3,
"ext": "agda",
"hexsha": "53beaeb30d2e0c56fff4ebd657bc8222d84dbfb5",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:08... |
module Functor where
open import Level
import Data.Nat as N
open import Basic
open import Category
open Category.Category
record Functor {câ câ â cââ² cââ² ââ²} (C : Category câ câ â) (D : Category cââ² cââ² ââ²) : Set (suc (câ â cââ² â câ â cââ² â â â ââ²)) where
field
fobj : Obj C â Obj D
fmapsetoid : {A B : Obj ... | {
"alphanum_fraction": 0.5287329795,
"avg_line_length": 44.2142857143,
"ext": "agda",
"hexsha": "6f1f36cd84452d76867b7ee1f7cf5930bf28b137",
"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... |
-- Bi-Cartesian closed structure of families
module SOAS.Families.BCCC {T : Set} where
open import SOAS.Common
open import SOAS.Context {T}
open import SOAS.Sorting {T}
open import SOAS.Families.Core {T}
open import SOAS.Families.Isomorphism {T}
import Categories.Category.CartesianClosed.Canonical as Canonical
impor... | {
"alphanum_fraction": 0.6489874638,
"avg_line_length": 28.2176870748,
"ext": "agda",
"hexsha": "2b273fac2bf8d1ace452a764f53e13f4724d1fb8",
"lang": "Agda",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2022-01-24T12:49:17.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-09T... |
module test where
open import Relation.Binary.PropositionalEquality
module NewCodata where
open import Data.Nat
open import Data.List
open import Data.Maybe
record Pair (A B : Set) : Set where
field
fst : A
snd : B
record Stream (A : Set) : Set where
coinductive
field
hd : A
... | {
"alphanum_fraction": 0.503948853,
"avg_line_length": 21.272,
"ext": "agda",
"hexsha": "1aff282ebdecfdb8002d87d17de46eb12a9401fd",
"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 --show-implicit #-}
module BottomUp1 where
record R (_ : Set) : Set where
no-eta-equality
record S (F : Set â Set)
⊠_ : {A : Set} â R (F A) âŠ
: Set where
module M0 where
private
postulate
F : Set â Set
instance Ri : {A : Set} â R (F A)
instance Si : S F
module... | {
"alphanum_fraction": 0.5317604356,
"avg_line_length": 20.4074074074,
"ext": "agda",
"hexsha": "ced1fb32ee21c7a4909f3d3b60ebac4e62fb1fca",
"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 Data.ByteString using ( lazy ; strict )
open import System.IO using ( _>>_ ; _>>=_ ; getBytes ; putStr ; commit )
module System.IO.Examples.DevNull where
main =
getBytes {lazy} >>= λ bs â
putStr "Done.\n" >>
commit
| {
"alphanum_fraction": 0.6638297872,
"avg_line_length": 23.5,
"ext": "agda",
"hexsha": "a5c768af937385ec538265dbae0c4edc52ed3553",
"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": "d... |
module Data.Fin.Substitution.Lemmas.Extra where
import Function as Fun
open import Data.Nat
open import Data.Fin hiding (_+_)
open import Data.Fin.Substitution
open import Data.Fin.Substitution.Lemmas
open import Data.Vec.Properties
open import Data.Vec
open import Data.Star using (_â
_ ; ε)
open import Function hiding... | {
"alphanum_fraction": 0.4643590959,
"avg_line_length": 38.1144578313,
"ext": "agda",
"hexsha": "2a1b2a8decc180c8a31a094ffb979a4879098a12",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-12-28T17:38:05.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-12-28T... |
module Ual.Either where
infix 10 _âš_
data _âš_ (A B : Set) : Set where
orL : A â A âš B
orR : B â A âš B
| {
"alphanum_fraction": 0.5607476636,
"avg_line_length": 15.2857142857,
"ext": "agda",
"hexsha": "199476c1802e31da8805087f59e1079b7870c558",
"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... |
------------------------------------------------------------------------------
-- Group theory congruence proofs using pattern matching
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-u... | {
"alphanum_fraction": 0.4278074866,
"avg_line_length": 29.92,
"ext": "agda",
"hexsha": "95828cf7d3eb48616e557e204832d091ab7a8dcb",
"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... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Lists where at least one element satisfies a given property
------------------------------------------------------------------------
module Data.List.Any where
open import Data.Empty
open import Data.Fin
open i... | {
"alphanum_fraction": 0.5429398986,
"avg_line_length": 30.9641255605,
"ext": "agda",
"hexsha": "89a0255c3bf8075bcc8b74931042744c7f3d602e",
"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
--
-- Well-founded induction
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Relation.Binary
module Induction.WellFounded where
open import Da... | {
"alphanum_fraction": 0.5717841033,
"avg_line_length": 32.3065326633,
"ext": "agda",
"hexsha": "7f0ea62de59db5a0ff3fdff9fccb9aa3803a538e",
"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.LTL.RSet.Core using ( RSet )
module FRP.LTL.RSet.Stateless where
infixr 1 _â_
_â_ : RSet â RSet â RSet
(A â B) t = A t â B t
| {
"alphanum_fraction": 0.6413793103,
"avg_line_length": 14.5,
"ext": "agda",
"hexsha": "33cb88eee7a2b890b9becfeb89093bf8ca36cfd0",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:39:04.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-03-01T07:33:00.... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Properties of binary trees
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.Tree.Binary.Properties where
open import Level using (Level)
o... | {
"alphanum_fraction": 0.5222623345,
"avg_line_length": 26.8064516129,
"ext": "agda",
"hexsha": "d23b24aa198706814eaf1073e1fed3e2d509a703",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-04T... |
{-# OPTIONS --without-K --exact-split #-}
module ideals where
import abelian-subgroups
import rings
open abelian-subgroups public
open rings public
{- Subsets of rings -}
subset-Ring :
(l : Level) {l1 : Level} (R : Ring l1) â UU ((lsuc l) â l1)
subset-Ring l R = type-Ring R â UU-Prop l
is-set-subset-Ring :
(l ... | {
"alphanum_fraction": 0.6391880696,
"avg_line_length": 32.1866666667,
"ext": "agda",
"hexsha": "d377147d8c90aee2ff9e2997cb8d8268bd7b34d4",
"lang": "Agda",
"max_forks_count": 30,
"max_forks_repo_forks_event_max_datetime": "2022-03-16T00:33:50.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-09-26... |
open import Auto.Prelude
-- using a type argument as a proof
h0 : (xâ xâ : â¥) â xâ â¡ xâ
h0 = {!!}
--h0 = λ xâ â λ ()
-- using dependent pair to define non-dep pair
module DND where
_Ã_ : Set â Set â Set
A à B = Σ A (λ _ â B)
h1-2 : â {A B} â A Ã B â B Ã A
-- h1-2 = {!!} -- no solution found
h1-2 = λ h â Σ-... | {
"alphanum_fraction": 0.4906666667,
"avg_line_length": 15,
"ext": "agda",
"hexsha": "6da444fb9174e373a32c37e48f66b23d6bf8ad8f",
"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": "70c... |
{-# OPTIONS --safe --without-K #-}
open import Relation.Binary
module Data.List.Membership.Setoid.Distinct where
open import Data.List as List using (List; []; _â·_; _++_)
open import Data.List.Any as Any hiding (map; head; tail)
open import Data.List.Any.Properties
open import Relation.Binary.PropositionalEquality... | {
"alphanum_fraction": 0.5965686275,
"avg_line_length": 48,
"ext": "agda",
"hexsha": "3f688f384bbed4e8ea1c1fa10a98678740095c96",
"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": "d4c... |
module StateSized.GUI.BitMaps where
open import StateSizedIO.GUI.WxBindingsFFI
ship : Bitmap
ship = bitmap "./StateSized/GUI/ship.ico"
rock : Bitmap
rock = bitmap "./StateSized/GUI/rock.ico"
| {
"alphanum_fraction": 0.7680412371,
"avg_line_length": 19.4,
"ext": "agda",
"hexsha": "951aae4e24daff87f21ac3dca69ce63ca503b8c0",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:41:00.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-09-01T15:02:37.... |
-- Andreas, 2020-04-15, issue #4586
-- Better error message when `let` contains a `where` clause.
foo : Setâ
foo = let x = Set
where y = Set
in Set
-- WAS:
-- Not a valid let-declaration
-- when scope checking
-- let x = Set
-- where
-- y = Set
-- in Set
-- EXPECTED:
-- No `where' ... | {
"alphanum_fraction": 0.5612009238,
"avg_line_length": 18.0416666667,
"ext": "agda",
"hexsha": "a3ec1d94475608beb2a37d2fab9be18e801fcb84",
"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
--
-- Least common multiple
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.Nat.LCM where
open import Algebra
open import Data.Nat.Base
open im... | {
"alphanum_fraction": 0.4918759232,
"avg_line_length": 32.2380952381,
"ext": "agda",
"hexsha": "4d2d3b1f2a0ea6f201f3f92a1a240558df37774b",
"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... |
_ : (@0 Set â Set) â (@Ï Set â Set)
_ = λ f â f
| {
"alphanum_fraction": 0.3958333333,
"avg_line_length": 16,
"ext": "agda",
"hexsha": "6d383eb684aa5c9bf147c850131d225c48d30a37",
"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.... |
-- Andreas, 2012-04-18, bug reported by pumpkingod on 2012-04-16
module Issue610 where
import Common.Level
open import Common.Equality
data ⥠: Set where
record †: Set where
record A : Setâ where
constructor set
field
.a : Set
.get : A â Set
get x = helper x
module R where
helper : .A -> Set
helper x... | {
"alphanum_fraction": 0.6416666667,
"avg_line_length": 15.3846153846,
"ext": "agda",
"hexsha": "cce06a4dfb29c4c752263e32910325ba00270fe3",
"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... |
module Relation.Path where
open import Relation.Path.Operation
| {
"alphanum_fraction": 0.8307692308,
"avg_line_length": 13,
"ext": "agda",
"hexsha": "f86b0e4c5174faf9961411e1c8e10e92b79e64bd",
"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": "341... |
open import Mockingbird.Forest using (Forest)
module Mockingbird.Forest.Combination {b â} (forest : Forest {b} {â}) where
open import Mockingbird.Forest.Combination.Base public
| {
"alphanum_fraction": 0.7877094972,
"avg_line_length": 29.8333333333,
"ext": "agda",
"hexsha": "1226b73efbbaf4811b0a37fe5186fbf747a6018e",
"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 Path2Equiv where
-- nothing for the standard library needed directly!
open import FT
open import Equivalences
open import TypeEquivalences
-- We now have enough to map each Pi combinator to the corresponding type equivalence
path2equiv : {Bâ Bâ : FT} â (Bâ â Bâ) â (⊠Bâ â§ â ⊠Bâ â§... | {
"alphanum_fraction": 0.7159199237,
"avg_line_length": 30.8529411765,
"ext": "agda",
"hexsha": "53a4042c426c2f34a48c0e243accf81205d141f6",
"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... |
------------------------------------------------------------------------
-- Recursive types and potentially infinite trees
------------------------------------------------------------------------
module RecursiveTypes.Syntax where
open import Data.Nat
open import Data.Fin
open import Function.Base
open import Data.Pr... | {
"alphanum_fraction": 0.4336378291,
"avg_line_length": 31.2773109244,
"ext": "agda",
"hexsha": "8c3b482416449ebe181ac36a531fdf95aad76950",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
module _ where
module Mâ where
record R : Setâ where
field
_A : Setâ
open R
-- The following code used to be syntactically incorrect, because
-- the left-hand side could be parsed either as the function r
-- applied to a pattern variable, or as the copattern _A applied
-- to r. Now the former ... | {
"alphanum_fraction": 0.6385836386,
"avg_line_length": 15.75,
"ext": "agda",
"hexsha": "964dc98cb17f92b7fa47341841a93d6dac6d9b3e",
"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 #-}
open import HoTT hiding (_::_)
module algebra.Word {i} (A : Type i) where
data Word : Type i where
nil : Word
_::_ : A â Word â Word
_inv::_ : A â Word â Word
infixr 60 _::_ _inv::_
-- The following six functions prove things like if [x â· v â¡ y â· w],
-- then [x â¡ y].
... | {
"alphanum_fraction": 0.4459980714,
"avg_line_length": 35.7586206897,
"ext": "agda",
"hexsha": "08a8586acdaa5a6988b1bc3ea81ecb0b3ec3cde9",
"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.