Search is not available for this dataset
text string | meta dict |
|---|---|
{-# OPTIONS --without-K --rewriting #-}
module Sharp where
open import Basics
open import Flat
open import lib.NType2
open import lib.Equivalence2
open import lib.types.Modality
-- --------------------------------------------------------------------------------------
-- Postulating the ♯ Modality
--... | {
"alphanum_fraction": 0.4205736666,
"avg_line_length": 36.9404255319,
"ext": "agda",
"hexsha": "fc83b3365b4cb67214ec806cf65cd6d06521bd6a",
"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... |
------------------------------------------------------------------------------
-- Example of a nested recursive function using the Bove-Capretta
-- method
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}... | {
"alphanum_fraction": 0.5203111495,
"avg_line_length": 30.4473684211,
"ext": "agda",
"hexsha": "078e81c8a4f3d43d0de0f1ec6d5890277c747494",
"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... |
{-
Maybe structure: X ↦ Maybe (S X)
-}
{-# OPTIONS --cubical --no-import-sorts --no-exact-split --safe #-}
module Cubical.Structures.Relational.Maybe where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Function
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.HLevels
op... | {
"alphanum_fraction": 0.6645814167,
"avg_line_length": 42.4609375,
"ext": "agda",
"hexsha": "5e521278e5316e83e43e0d0db20e20db2f71bf77",
"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_hexsh... |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
{-
This file defines integers as equivalence classes of pairs of natural numbers
using a direct & untruncated HIT definition (cf. HITs.Ints.DiffInt)
and some basic operations, and the zero value:
succ : DeltaInt → DeltaInt
pred : DeltaInt → DeltaInt
zero : {a : ℕ} ... | {
"alphanum_fraction": 0.6436865022,
"avg_line_length": 22.2258064516,
"ext": "agda",
"hexsha": "846dd201c708c5e10c86c4c937baa4bcda9963d4",
"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, 2014-11-01, reported by Andrea Vezzosi
-- Non-printable characters in line comments
-- Soft hyphen in comment creates lexical error:
-- (SOFT HYPHEN \- 0xAD)
-- Or parse error:
-- A
| {
"alphanum_fraction": 0.6915422886,
"avg_line_length": 20.1,
"ext": "agda",
"hexsha": "8be305ca0b36255f7e57d9ad7a689688614b00af",
"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 #-}
-- The category of Cats is Monoidal
module Categories.Category.Monoidal.Instance.Cats where
open import Level
open import Data.Product using (Σ; _×_; _,_; proj₁; proj₂; uncurry)
open import Categories.Category
open import Categories.Functor using (Functor; _∘F_) renaming (id to id... | {
"alphanum_fraction": 0.7083032491,
"avg_line_length": 30.1086956522,
"ext": "agda",
"hexsha": "ba8988335ab600d24271d569552d4c81765e01b9",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-04T... |
module VecReplicate where
open import Prelude
replicate : forall {A} -> (n : Nat) -> A -> Vec A n
replicate count x = {!!}
| {
"alphanum_fraction": 0.648,
"avg_line_length": 17.8571428571,
"ext": "agda",
"hexsha": "c17c069be0f795e76e59c1f54b416ee720da8f33",
"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 Function where
import Lvl
open import Type
-- The domain type of a function.
domain : ∀{ℓ₁ ℓ₂} {A : Type{ℓ₁}}{B : Type{ℓ₂}} → (A → B) → Type{ℓ₁}
domain{A = A} _ = A
-- The codomain type of a function.
codomain : ∀{ℓ₁ ℓ₂} {A : Type{ℓ₁}}{B : Type{ℓ₂}} → (A → B) → Type{ℓ₂}
codomain{B = B} _ = B
| {
"alphanum_fraction": 0.5844155844,
"avg_line_length": 23.6923076923,
"ext": "agda",
"hexsha": "0de069db55154cbb7b8037390226be58b124a29f",
"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 #-}
open import HoTT
module homotopy.HSpace where
-- This is just an approximation because
-- not all higher cells are killed.
record HSpaceStructure {i} (A : Type i) : Type i where
constructor hSpaceStructure
field
e : A
μ : A → A → A
μ-e-l : (a : A) → μ e a == a
μ-e-r : ... | {
"alphanum_fraction": 0.5674381484,
"avg_line_length": 28.4772727273,
"ext": "agda",
"hexsha": "c95ca5d07c9147265d5f7314be0a37ee91118236",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --without-K --safe --no-sized-types --no-guardedness #-}
module Agda.Builtin.Float where
open import Agda.Builtin.Bool
open import Agda.Builtin.Nat
open import Agda.Builtin.Int
open import Agda.Builtin.String
postulate Float : Set
{-# BUILTIN FLOAT Float #-}
primitive
primFloatEquality : Float → Float... | {
"alphanum_fraction": 0.6278501629,
"avg_line_length": 32.3157894737,
"ext": "agda",
"hexsha": "e96c3c748c57538e90426841db3dfa69c1a62f89",
"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 Human.Unit where
-- Do I need a record and the built-in ⊤? Why?
data Unit : Set where
unit : Unit
| {
"alphanum_fraction": 0.6851851852,
"avg_line_length": 18,
"ext": "agda",
"hexsha": "a88b1e0e98f39e668d70e1f9f146ca635020b85f",
"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": "b50... |
module Data.Word.Primitive where
postulate
Word : Set
Word8 : Set
Word16 : Set
Word32 : Set
Word64 : Set
{-# IMPORT Data.Word #-}
{-# COMPILED_TYPE Word Data.Word.Word #-}
{-# COMPILED_TYPE Word8 Data.Word.Word8 #-}
{-# COMPILED_TYPE Word16 Data.Word.Word16 #-}
{-# COMPILED_TYPE Word32 Data.Word.Word32 #-}
... | {
"alphanum_fraction": 0.6885245902,
"avg_line_length": 22.875,
"ext": "agda",
"hexsha": "6eb1fb879fb0ae5f2ae333129753b573173064eb",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:40:14.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-03-12T11:40:1... |
open import Mockingbird.Forest.Base using (Forest)
module Mockingbird.Forest.Birds {b ℓ} (forest : Forest {b} {ℓ}) where
open import Level using (_⊔_)
open import Data.Product using (_×_; ∃-syntax)
open import Relation.Unary using (Pred)
open import Relation.Binary using (Rel)
open Forest forest
-- TODO: consider u... | {
"alphanum_fraction": 0.601125921,
"avg_line_length": 23.454368932,
"ext": "agda",
"hexsha": "19db6bbf8b22364efec1253f6b68f8d2320e6a26",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexs... |
-- WARNING: This file was generated automatically by Vehicle
-- and should not be modified manually!
-- Metadata
-- - Agda version: 2.6.2
-- - AISEC version: 0.1.0.1
-- - Time generated: ???
{-# OPTIONS --allow-exec #-}
open import Vehicle
open import Vehicle.Data.Tensor
open import Data.Nat as ℕ using (ℕ)
open im... | {
"alphanum_fraction": 0.6305418719,
"avg_line_length": 21.75,
"ext": "agda",
"hexsha": "640b9d65e4886db7a1c60a12bc1502788fde5665",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha": "... |
{-# OPTIONS --without-K --safe #-}
open import Categories.Category
-- The core of a category.
-- See https://ncatlab.org/nlab/show/core
module Categories.Category.Construction.Core {o ℓ e} (𝒞 : Category o ℓ e) where
open import Level using (_⊔_)
open import Function using (flip)
open import Categories.Category.Gr... | {
"alphanum_fraction": 0.5981713186,
"avg_line_length": 27.7066666667,
"ext": "agda",
"hexsha": "4dc229fa7babb31e2e0d2dc4473ae34100f8783c",
"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... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Some derivable properties
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Algebra
module Algebra.Properties.AbelianGroup
{a ℓ} (G : Abe... | {
"alphanum_fraction": 0.4162112933,
"avg_line_length": 28.1538461538,
"ext": "agda",
"hexsha": "a5e2368447cdc2ad67f17d869e1504ac78858af0",
"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... |
------------------------------------------------------------------------
-- By indexing the program and WHNF types on a universe one can handle
-- several types at the same time
------------------------------------------------------------------------
module UniverseIndex where
open import Codata.Musical.Notation
open... | {
"alphanum_fraction": 0.4811197917,
"avg_line_length": 26.4827586207,
"ext": "agda",
"hexsha": "2c6bf2a9257e071f2bc4969b2722766ef72e6e7d",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --without-K #-}
module hott where
open import hott.level public
open import hott.equivalence public
open import hott.loop public
open import hott.univalence public
open import hott.truncation public
| {
"alphanum_fraction": 0.7981220657,
"avg_line_length": 21.3,
"ext": "agda",
"hexsha": "c09f67c61797e8056d2251af051315571dac1cb0",
"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.... |
module NamedImplicit where
postulate
T : Set -> Set
map' : (A B : Set) -> (A -> B) -> T A -> T B
map : {A B : Set} -> (A -> B) -> T A -> T B
map = map' _ _
data Nat : Set where
zero : Nat
suc : Nat -> Nat
data Bool : Set where
true : Bool
false : Bool
id : {A : Set} -> A -> A
id x = x
const : {A... | {
"alphanum_fraction": 0.4904458599,
"avg_line_length": 16.972972973,
"ext": "agda",
"hexsha": "891fc59962542882f7b756aad76eb403d84b7cf9",
"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 --experimental-lossy-unification #-}
module Cubical.ZCohomology.CohomologyRings.Sn where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Function
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Transport
open import Cubical.Foundations.HLevels
ope... | {
"alphanum_fraction": 0.4610948239,
"avg_line_length": 41.6973947896,
"ext": "agda",
"hexsha": "827d202c9346b10b715f74a85e7ac5f9643230a0",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --type-in-type #-}
data ⊥ : Set where
℘ : ∀ {ℓ} → Set ℓ → Set _
℘ {ℓ} S = S → Set
U : Set
U = ∀ (X : Set) → (℘ (℘ X) → X) → ℘ (℘ X)
{- If using two impredicative universe layers instead of type-in-type:
U : Set₁
U = ∀ (X : Set₁) → (℘ (℘ X) → X) → ℘ (℘ X)
-}
τ : ℘ (℘ U) → U
τ t = λ X f p → t (λ x → p (f... | {
"alphanum_fraction": 0.3674351585,
"avg_line_length": 18.2631578947,
"ext": "agda",
"hexsha": "0bdb33a245e87c059b1d20d535bc900079280c90",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Algebra.Group where
open import Cubical.Algebra.Group.Base public
open import Cubical.Algebra.Group.Properties public
open import Cubical.Algebra.Group.Morphism public
open import Cubical.Algebra.Group.MorphismProperties public
open import Cubical.Algeb... | {
"alphanum_fraction": 0.8226744186,
"avg_line_length": 38.2222222222,
"ext": "agda",
"hexsha": "3b3372086b2c851dcc0a411c5a26d634f48fa619",
"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
--
-- Signs
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.Sign where
open import Relation.Binary using (Decidable)
open import Relation.Binar... | {
"alphanum_fraction": 0.5026041667,
"avg_line_length": 17.4545454545,
"ext": "agda",
"hexsha": "9eeaaef4216291a1f3777167cc42d08d78478d99",
"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 RAdjunctions.RAdj2RMon where
open import Function
open import Relation.Binary.HeterogeneousEquality
open import Categories
open import Functors
open import RMonads
open import RAdjunctions
open Cat
open Fun
open RAdj
Adj2Mon : ∀{a b c d e f}{C : Cat {a}{b}}{D : Cat {c}{d}}{E : Cat {e}{f}}
{J : Fun C... | {
"alphanum_fraction": 0.3668831169,
"avg_line_length": 41.0666666667,
"ext": "agda",
"hexsha": "b9828cad4aa42f8f605dcb524249543143e68d4d",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2019-11-04T21:33:13.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-11-04T... |
{-# OPTIONS --safe --postfix-projections #-}
module Cubical.Algebra.OrderedCommMonoid.PropCompletion where
{-
The completion of an ordered monoid, viewed as monoidal prop-enriched category.
This is used in the construction of the upper naturals, which is an idea of David
Jaz Myers presented here
https://felix-... | {
"alphanum_fraction": 0.4996459998,
"avg_line_length": 37.0299625468,
"ext": "agda",
"hexsha": "1f9c315f17d0a0c68f36c8f50ec6076e9282a02f",
"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, 2018-10-18, re issue #2757
--
-- Extracted this snippet from the standard library
-- as it caused problems during work in #2757
-- (runtime erasue using 0-quantity).
-- {-# OPTIONS -v tc.lhs.unify:65 -v tc.irr:50 #-}
open import Agda.Builtin.Size
data ⊥ : Set where
mutual
data Conat (i : Size) : Set w... | {
"alphanum_fraction": 0.6567982456,
"avg_line_length": 24.6486486486,
"ext": "agda",
"hexsha": "224874210130a2017bf0e63e3c52acb8e5ee89cd",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-04-01T18:30:09.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-04-01T... |
open import MJ.Types
open import MJ.Classtable
import MJ.Syntax as Syntax
import MJ.Semantics.Values as Values
--
-- Substitution-free interpretation of welltyped MJ
--
module MJ.Semantics.Functional {c} (Σ : CT c) (ℂ : Syntax.Impl Σ) where
open import Prelude
open import Data.Vec hiding (init)
open import Data.Ve... | {
"alphanum_fraction": 0.5696170747,
"avg_line_length": 35.7174887892,
"ext": "agda",
"hexsha": "d498dd5e7ae81bd30a199a8d7cfcc6e110e2bb63",
"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... |
{-# OPTIONS --allow-unsolved-metas #-}
module LiteralFormula where
open import OscarPrelude
open import IsLiteralFormula
open import HasNegation
open import Formula
record LiteralFormula : Set
where
constructor ⟨_⟩
field
{formula} : Formula
isLiteralFormula : IsLiteralFormula formula
open LiteralFormul... | {
"alphanum_fraction": 0.7626446281,
"avg_line_length": 39.8026315789,
"ext": "agda",
"hexsha": "bf05023c154ed1b6778752f63b9cf166ec0fd933",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --cubical --safe #-}
module Cubical.Foundations.Bundle where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Univalence
open import Cubical.Foundations.Fibration
open import Cubical.Foundations.Structure
open import Cubical.Structures.TypeEqvTo... | {
"alphanum_fraction": 0.5950317735,
"avg_line_length": 33.9411764706,
"ext": "agda",
"hexsha": "b9b15de0cf009161f3d00561c3aba4b6b801a405",
"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 Generic.Property.Reify where
open import Generic.Core
data ExplView : Visibility -> Set where
yes-expl : ExplView expl
no-expl : ∀ {v} -> ExplView v
explView : ∀ v -> ExplView v
explView expl = yes-expl
explView v = no-expl
ExplMaybe : ∀ {α} -> Visibility -> Set α -> Set α
ExplMaybe v A with explView... | {
"alphanum_fraction": 0.4781304674,
"avg_line_length": 40.01,
"ext": "agda",
"hexsha": "a370ad0ff28f4b60678f3de32caf5fcce8edbd67",
"lang": "Agda",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2021-01-27T12:57:09.000Z",
"max_forks_repo_forks_event_min_datetime": "2017-07-17T07:23:39... |
module Issue1760g where
data ⊥ : Set where
{-# NO_POSITIVITY_CHECK #-}
{-# NON_TERMINATING #-}
mutual
record U : Set where
constructor roll
field ap : U → U
lemma : U → ⊥
lemma (roll u) = lemma (u (roll u))
bottom : ⊥
bottom = lemma (roll λ x → x)
| {
"alphanum_fraction": 0.5948905109,
"avg_line_length": 16.1176470588,
"ext": "agda",
"hexsha": "ef04ee4da2b2cf472d7d6110e0b7e8bce9e3d754",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-03-05T... |
{-# OPTIONS --without-K --safe #-}
open import Algebra.Structures.Bundles.Field
module Algebra.Linear.Morphism.VectorSpace
{k ℓᵏ} (K : Field k ℓᵏ)
where
open import Level
open import Algebra.FunctionProperties as FP
import Algebra.Linear.Morphism.Definitions as LinearMorphismDefinitions
import Algebra.Morphism a... | {
"alphanum_fraction": 0.6839258114,
"avg_line_length": 31.5609756098,
"ext": "agda",
"hexsha": "b45d42badcf6e0c9c0e82b96bdd5f641e7650820",
"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 helloworld where
open import IO
main = run (putStrLn "Hello World")
| {
"alphanum_fraction": 0.7631578947,
"avg_line_length": 15.2,
"ext": "agda",
"hexsha": "888b18f62b4d08c865b1ad8c17ed67a645e5ec2f",
"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": "e... |
{-# OPTIONS --without-K #-}
module hott.types where
open import hott.types.nat public
open import hott.types.coproduct public
| {
"alphanum_fraction": 0.7578125,
"avg_line_length": 18.2857142857,
"ext": "agda",
"hexsha": "92967ca54ed23ee0ccd5082dc949a2049dbefcb5",
"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_hexsh... |
module README where
----------------------------------------------------------------------
-- The Agda smallib library, version 0.1
----------------------------------------------------------------------
--
-- This library implements a type theory which is described in the
-- Appendix of the HoTT book. It also contains... | {
"alphanum_fraction": 0.5001629195,
"avg_line_length": 39.8571428571,
"ext": "agda",
"hexsha": "0ce4cbd781e87043acb5b4a30ef03828845d232c",
"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 #-}
open import HoTT
open import cohomology.SuspAdjointLoopIso
open import cohomology.WithCoefficients
open import cohomology.Theory
open import cohomology.Exactness
open import cohomology.Choice
{- A spectrum (family (Eₙ | n : ℤ) such that ΩEₙ₊₁ = Eₙ)
- gives rise to a cohomology theory C wi... | {
"alphanum_fraction": 0.4767329132,
"avg_line_length": 35.114893617,
"ext": "agda",
"hexsha": "274ad4b2acbe7737e00b3abe9058e7ad98d9a77a",
"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 --warning=error --safe --without-K #-}
open import LogicalFormulae
open import Agda.Primitive using (Level; lzero; lsuc; _⊔_)
open import Functions.Definition
open import Setoids.Setoids
open import Setoids.Subset
module Graphs.Definition where
record Graph {a b : _} (c : _) {V' : Set a} (V : Setoid {a} ... | {
"alphanum_fraction": 0.5647590361,
"avg_line_length": 56.9142857143,
"ext": "agda",
"hexsha": "5c4dc2f00dc65d6589cdf27af58589bc738f5de9",
"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... |
{-
A defintion of the real projective spaces following:
[BR17] U. Buchholtz, E. Rijke, The real projective spaces in homotopy type theory.
(2017) https://arxiv.org/abs/1704.05770
-}
{-# OPTIONS --cubical --safe #-}
module Cubical.HITs.RPn.Base where
open import Cubical.Foundations.Prelude
open impo... | {
"alphanum_fraction": 0.4765892122,
"avg_line_length": 45.0660377358,
"ext": "agda",
"hexsha": "45449153c301272a2071ef42dd6f73a926e03d27",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --allow-unsolved-metas #-}
open import Agda.Builtin.Bool
postulate
A : Set
F : Bool → Set
F true = A
F false = A
data D {b : Bool} (x : F b) : Set where
variable
b : Bool
x : F b
postulate
f : D x → (P : F b → Set) → P x
| {
"alphanum_fraction": 0.5685483871,
"avg_line_length": 12.4,
"ext": "agda",
"hexsha": "cc19019014678b6e82f6984324b5589b2087e15c",
"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 -v scope.clash:20 #-}
-- Andreas, 2012-10-19 test case for Issue 719
module ShadowModule2 where
open import Common.Size as YesDuplicate
import Common.Size as NotDuplicate
private open module YesDuplicate = NotDuplicate
-- should report:
-- Duplicate definition of module YesDuplicate.
-- NOT: Duplicate ... | {
"alphanum_fraction": 0.7774647887,
"avg_line_length": 29.5833333333,
"ext": "agda",
"hexsha": "bf432051e72c1a6baeb78b50eaa821973f4085e7",
"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... |
------------------------------------------------------------------------
-- Various forms of induction for natural numbers
------------------------------------------------------------------------
module Induction.Nat where
open import Data.Function
open import Data.Nat
open import Data.Fin
open import Data.Fin.Props
... | {
"alphanum_fraction": 0.4972144847,
"avg_line_length": 26.1090909091,
"ext": "agda",
"hexsha": "c3cdf5dde82ec6e6e33c5aa8a635d4b1a049c622",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:54:10.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-07-21T... |
{-# OPTIONS --prop #-}
module Issue3526-2 where
open import Agda.Builtin.Equality
record Truth (P : Prop) : Set where
constructor [_]
field
truth : P
open Truth public
data ⊥' : Prop where
⊥ = Truth ⊥'
¬ : Set → Set
¬ A = A → ⊥
unique : {A : Set} (x y : ¬ A) → x ≡ y
unique x y = refl
⊥-elim : (A : Set) ... | {
"alphanum_fraction": 0.5753968254,
"avg_line_length": 14,
"ext": "agda",
"hexsha": "4a8ada2856f2a51ee2af65e338f658d07c2f46e9",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:08.... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Notation for freely adding extrema to any set
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Relation.Nullary.Construct.Add.Extrema where
ope... | {
"alphanum_fraction": 0.4540709812,
"avg_line_length": 31.9333333333,
"ext": "agda",
"hexsha": "2f525621f0df691630df89448ecc7ed6793f53f7",
"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 --universe-polymorphism #-}
module Categories.Groupoid.Product where
open import Data.Product
open import Categories.Category
open import Categories.Groupoid
open import Categories.Morphisms
import Categories.Product as ProductC
Product : ∀ {o₁ ℓ₁ e₁ o₂ ℓ₂ e₂} {C : Category o₁ ℓ₁ e₁} {D : Category o₂ ℓ₂... | {
"alphanum_fraction": 0.5806028834,
"avg_line_length": 36.3333333333,
"ext": "agda",
"hexsha": "4fe0c77bc1ea2779227ae3c1212403ca8fde0126",
"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... |
------------------------------------------------------------------------------
-- Some properties of the function iter₀
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorp... | {
"alphanum_fraction": 0.3996960486,
"avg_line_length": 31.3333333333,
"ext": "agda",
"hexsha": "fb25a0efc94f509358c6efd39405f2877f938d5c",
"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 --safe #-}
module Cubical.HITs.Pushout.Base where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.GroupoidLaws
open import Cubical.Data.Unit
open import Cubical.Data.Sigma
open import Cubical.HITs.Su... | {
"alphanum_fraction": 0.6091977727,
"avg_line_length": 37.8828125,
"ext": "agda",
"hexsha": "35630a5a3defef3330795dc551a8283de61cc38b",
"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_hexsh... |
{-# OPTIONS --without-K --safe --erased-cubical --no-import-sorts #-}
module SUtil where
open import Prelude
_∈_ : Name → List Name → Bool
n ∈ [] = false
n ∈ (x ∷ ns) = if n == x then true else n ∈ ns
-- treat list as set
insert : Name → List Name → List Name
insert n ns = if n ∈ ns then ns else n ∷ ns
looku... | {
"alphanum_fraction": 0.5495750708,
"avg_line_length": 30.6956521739,
"ext": "agda",
"hexsha": "f3774b7b089565c0bc381ad767bbe290da1a3f66",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2020-11-10T04:05:31.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-11-10T... |
------------------------------------------------------------------------
-- Various parser combinator laws
------------------------------------------------------------------------
-- Note that terms like "monad" and "Kleene algebra" are interpreted
-- liberally in the modules listed below.
module TotalParserCombinato... | {
"alphanum_fraction": 0.5533472803,
"avg_line_length": 31.5164835165,
"ext": "agda",
"hexsha": "bd9161fdb292e9738728527d3c7736cdb8240692",
"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 Util.HoTT.Univalence.Beta where
open import Util.HoTT.Equiv
open import Util.HoTT.Equiv.Induction
open import Util.HoTT.Univalence.Axiom
open import Util.Prelude
open import Util.Relation.Binary.PropositionalEquality using
( Σ-≡⁻ ; cast )
private
variable
α β γ : Level
... | {
"alphanum_fraction": 0.5357142857,
"avg_line_length": 21.875,
"ext": "agda",
"hexsha": "7df8386167630ade13f4002d427bdb441fd4b1fa",
"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": ... |
------------------------------------------------------------------------------
-- Testing records
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-# OPTIONS -... | {
"alphanum_fraction": 0.4072096128,
"avg_line_length": 21.4,
"ext": "agda",
"hexsha": "c951c3f57dc612d444beb223f33046e62a4c21be",
"lang": "Agda",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2016-08-03T03:54:55.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-05-10T23:06:19.... |
module Structure.Container.SetLike.Proofs where
{-
open import Data.Boolean
open import Data.Boolean.Stmt
open import Functional
open import Lang.Instance
import Lvl
open import Logic
open import Logic.Propositional
open import Logic.Predicate
open import Structure.Container.SetLike
open import Structure.Function... | {
"alphanum_fraction": 0.5646756583,
"avg_line_length": 45.1304347826,
"ext": "agda",
"hexsha": "62460984e51531d7d05d3425d44a1599fd9868ae",
"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 Issue835 where
data _≡_ {A : Set} (x : A) : A → Set where
refl : x ≡ x
postulate
A : Set
x y : A
F : x ≡ y → Set
F ()
| {
"alphanum_fraction": 0.5073529412,
"avg_line_length": 9.7142857143,
"ext": "agda",
"hexsha": "294de7e13ce27566c48cc7868a767ed948726ad4",
"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... |
-- 2014-05-02
-- This looped in the epic backend after Andreas' big projection refactoring (Oct 2013)
data ℕ : Set where
zero : ℕ
suc : (n : ℕ) → ℕ
{-# BUILTIN NATURAL ℕ #-} -- Essential
f : ℕ → ℕ
f zero = zero
f (suc m) = m
postulate
IO : Set → Set
{-# COMPILED_TYPE IO IO #-}
postulate
return : ∀ ... | {
"alphanum_fraction": 0.5886363636,
"avg_line_length": 16.2962962963,
"ext": "agda",
"hexsha": "67caa7a87b66125ff812e65c37f4fc5141dc8611",
"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 Issue4924 where
record R (T : Set) : Set where
field
f : T → T
module _ {A B : Set} (ra : R A) (rb : R B) (pri : {T : Set} → {{r : R T}} → T) where
open R ra
open R rb
instance
_ = ra
_ : A
_ = f pri
| {
"alphanum_fraction": 0.4978354978,
"avg_line_length": 14.4375,
"ext": "agda",
"hexsha": "f2f95f00f06058b5efdbdf50459e6c69617aa556",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:0... |
{-# OPTIONS --without-K --safe #-}
-- https://www.cs.bham.ac.uk/~mhe/papers/omniscient-journal-revised.pdf
module Constructive.Omniscience where
open import Level renaming (zero to lzero; suc to lsuc)
import Data.Bool as 𝔹 using (_≤_)
open import Data.Bool as 𝔹 using (Bool; true; false; T; f≤t; b≤b; _∧_; not; _∨_)... | {
"alphanum_fraction": 0.4531234629,
"avg_line_length": 31.6666666667,
"ext": "agda",
"hexsha": "17dde8c91097ccf92aff0334d81ed403c9ec42cd",
"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... |
-- Some very simple problems just to test that things work properly.
-- If everything has been installed properly following
--
-- https://github.com/HoTT/EPIT-2020/tree/main/04-cubical-type-theory#installation-of-cubical-agda-and-agdacubical
--
-- then this file should load fine and one should get 4 holes which
-- one ... | {
"alphanum_fraction": 0.6044407895,
"avg_line_length": 15.3924050633,
"ext": "agda",
"hexsha": "07536f56aa3bdd58aa7ea74200ad7315342fff9a",
"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
--
-- Values for standard evaluation (Def. 3.1 and 3.2, Fig. 4c and 4f).
------------------------------------------------------------------------
import Parametric.Syntax.Type as Type
module Parametric.Denotation.Value
... | {
"alphanum_fraction": 0.5875402793,
"avg_line_length": 27.3823529412,
"ext": "agda",
"hexsha": "af7048406be099612797bbd9b2ab9adb3569342d",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2016-02-18T12:26:44.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-02-18T... |
{-# OPTIONS --safe #-}
module Cubical.Data.FinSet.Properties where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Function
open import Cubical.Foundations.Structure
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Univalence
o... | {
"alphanum_fraction": 0.6914049016,
"avg_line_length": 29.5612244898,
"ext": "agda",
"hexsha": "873870480f9ad81bb49035a96c7a0f7be0175871",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --safe --warning=error --without-K --guardedness #-}
open import Agda.Primitive using (Level; lzero; lsuc; _⊔_)
open import LogicalFormulae
open import Groups.Lemmas
open import Groups.Definition
open import Setoids.Orders.Partial.Definition
open import Setoids.Orders.Total.Definition
open import Setoids.S... | {
"alphanum_fraction": 0.7097163064,
"avg_line_length": 119.6442307692,
"ext": "agda",
"hexsha": "02c449f6708c73c37588586b2826bb04e3fb88a0",
"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-29... |
-- Limits.
-- Heavily inspired by https://github.com/UniMath/UniMath/blob/master/UniMath/CategoryTheory/limits/graphs/limits.v
-- (except we're using categories instead of graphs to index limits)
{-# OPTIONS --safe #-}
module Cubical.Categories.Limits.Limits where
open import Cubical.Foundations.Prelude
open import C... | {
"alphanum_fraction": 0.5507317875,
"avg_line_length": 38.9807692308,
"ext": "agda",
"hexsha": "8ba2e7db0befe6a6a7caa1cc3811a409013f178e",
"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
open import Categories.Object.Zero
-- Cokernels of morphisms.
-- https://ncatlab.org/nlab/show/cokernel
module Categories.Object.Cokernel {o ℓ e} {𝒞 : Category o ℓ e} (𝟎 : Zero 𝒞) where
open import Level
open import Categories.Morphism 𝒞
open im... | {
"alphanum_fraction": 0.5914505957,
"avg_line_length": 25.4821428571,
"ext": "agda",
"hexsha": "267f256b72327f95cbc72cc279095d627b19a65c",
"lang": "Agda",
"max_forks_count": 64,
"max_forks_repo_forks_event_max_datetime": "2022-03-14T02:00:59.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-06-02... |
{-# OPTIONS --type-in-type #-}
module DescTT where
--********************************************
-- Prelude
--********************************************
-- Some preliminary stuffs, to avoid relying on the stdlib
--****************
-- Sigma and friends
--****************
data Sigma (A : Set) (B : A -> Set) : S... | {
"alphanum_fraction": 0.398075824,
"avg_line_length": 28.9201101928,
"ext": "agda",
"hexsha": "7da4bb5084c7885efd6cc6cdfebb5fdca4fc2a86",
"lang": "Agda",
"max_forks_count": 12,
"max_forks_repo_forks_event_max_datetime": "2022-02-11T01:57:40.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-08-14T... |
------------------------------------------------------------------------------
-- Testing the translation of definitions
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymor... | {
"alphanum_fraction": 0.4577883472,
"avg_line_length": 27.1290322581,
"ext": "agda",
"hexsha": "6be72c470175742dbd0bf2934e007ab422baa7f2",
"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 --cubical --safe #-}
module Cubical.HITs.ListedFiniteSet.Base where
open import Cubical.Core.Everything
open import Cubical.Foundations.Logic
open import Cubical.Foundations.Everything
private
variable
A : Type₀
infixr 20 _∷_
infix 30 _∈_
data LFSet (A : Type₀) : Type₀ where
[] : LFSet A
_... | {
"alphanum_fraction": 0.4445585216,
"avg_line_length": 31.4193548387,
"ext": "agda",
"hexsha": "ab100b8f472117f2847a72f4f65e7e2dfcdcbdb7",
"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
-}
open import LibraBFT.ImplShared.Util.Dijkstra.RWS
open import LibraBFT.ImplSh... | {
"alphanum_fraction": 0.6679968077,
"avg_line_length": 28.2631578947,
"ext": "agda",
"hexsha": "c579f2a0c67a659156e911e932117081396ec709",
"lang": "Agda",
"max_forks_count": 6,
"max_forks_repo_forks_event_max_datetime": "2022-02-18T01:04:32.000Z",
"max_forks_repo_forks_event_min_datetime": "2020-12-16T... |
{-# OPTIONS --without-K #-}
module combination where
open import Type
open import Data.Nat.NP
open import Data.Nat.DivMod
open import Data.Fin using (Fin; Fin′; zero; suc) renaming (toℕ to Fin▹ℕ)
open import Data.Zero
open import Data.One
open import Data.Two
open import Data.Sum
open import Data.Product
open import D... | {
"alphanum_fraction": 0.5603732162,
"avg_line_length": 23.6623376623,
"ext": "agda",
"hexsha": "dac01db1c808cab1a18f5c25bcc647b8f577b39f",
"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 eq-reasoning {A : Set} where
open import eq
infix 1 begin_
infixr 2 _≡⟨⟩_ _≡⟨_⟩_
infix 3 _∎
begin_ : ∀ {x y : A}
→ x ≡ y
-----
→ x ≡ y
begin x≡y = x≡y
_≡⟨⟩_ : ∀ (x : A) {y : A}
→ x ≡ y
-----
→ x ≡ y
x ≡⟨⟩ x≡y = x≡y
_≡⟨_⟩_ : ∀ (x : A) {y z : A}
→ x ≡ ... | {
"alphanum_fraction": 0.32,
"avg_line_length": 14.0625,
"ext": "agda",
"hexsha": "127768b0636bcc437c4e61629c478ea663e7d53e",
"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": "80d941... |
{-# OPTIONS --without-K #-}
module Util.HoTT.Univalence.Statement where
open import Util.HoTT.Equiv
open import Util.Prelude
Univalence : ∀ α → Set (lsuc α)
Univalence α = {A B : Set α} → IsEquiv (≡→≃ {A = A} {B = B})
| {
"alphanum_fraction": 0.6515837104,
"avg_line_length": 22.1,
"ext": "agda",
"hexsha": "9c9429b0f4292ead6bc49df6ae32c7a52e0ba6d8",
"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": "1... |
module Luau.Heap where
open import Agda.Builtin.Equality using (_≡_)
open import FFI.Data.Maybe using (Maybe; just)
open import FFI.Data.Vector using (Vector; length; snoc; empty)
open import Luau.Addr using (Addr)
open import Luau.Var using (Var)
open import Luau.Syntax using (Block; Expr; nil; addr; function⟨_⟩_end)... | {
"alphanum_fraction": 0.6518282989,
"avg_line_length": 25.6734693878,
"ext": "agda",
"hexsha": "1a0416e472bdad83a9ded3dca03908b866b48a6c",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
open import Oscar.Prelude
open import Oscar.Data.𝟘
module Oscar.Data.ProperlyExtensionNothing where
module _
{𝔵} {𝔛 : Ø 𝔵}
{𝔬} {𝔒 : 𝔛 → Ø 𝔬}
{ℓ}
{ℓ̇} {_↦_ : ∀ {x} → 𝔒 x → 𝔒 x → Ø ℓ̇}
where
record ProperlyExtensionNothing (P : ExtensionṖroperty ℓ 𝔒 _↦_) : Ø 𝔵 ∙̂ 𝔬 ∙̂ ℓ where
constructor... | {
"alphanum_fraction": 0.6004962779,
"avg_line_length": 20.15,
"ext": "agda",
"hexsha": "06079f7a5fde6eb86489bde8b4d0ff0ed72de167",
"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": "... |
------------------------------------------------------------------------------
-- Totality properties respect to OrdTree
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymor... | {
"alphanum_fraction": 0.4140740741,
"avg_line_length": 40.3339191564,
"ext": "agda",
"hexsha": "1363685b97bfa7ead3003e729980e3dbd8c38919",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-09-19T... |
module UniverseCollapse
(down : Set₁ -> Set)
(up : Set → Set₁)
(iso : ∀ {A} → down (up A) → A)
(osi : ∀ {A} → up (down A) → A) where
anything : (A : Set) → A
anything = {!!}
| {
"alphanum_fraction": 0.4816753927,
"avg_line_length": 21.2222222222,
"ext": "agda",
"hexsha": "0b6e1d84d9f6757298f1259195d3b4cc9b2884ee",
"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 ctxt where
open import lib
open import cedille-types
open import ctxt-types public
open import subst
open import general-util
open import syntax-util
new-sym-info-trie : trie sym-info
new-sym-info-trie = trie-insert empty-trie compileFail-qual ((term-decl compileFailType) , "missing" , "missing")
new-qualif :... | {
"alphanum_fraction": 0.6158934852,
"avg_line_length": 40.3445945946,
"ext": "agda",
"hexsha": "edbfdef78b2f249e4638c747f8a2a2890d825877",
"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 --copatterns #-}
-- Andreas, 2013-11-05 Coverage checker needs clauses to reduce type!
-- {-# OPTIONS -v tc.cover:20 #-}
module Issue937a where
open import Common.Prelude
open import Common.Equality
open import Common.Product
T : (b : Bool) → Set
T true = Nat
T false = Bool → Nat
test : Σ Bool T
proj₁ ... | {
"alphanum_fraction": 0.6933560477,
"avg_line_length": 20.9642857143,
"ext": "agda",
"hexsha": "ecaff836625bcc9ef8da44ddbe0cbd8a69f4ccfd",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-0... |
module Sized.StatefulCell where
open import Data.Product
open import Data.String.Base
open import SizedIO.Object
open import SizedIO.IOObject
open import SizedIO.ConsoleObject
open import SizedIO.Console hiding (main)
open import NativeIO
open import Size
--open import StateSizedIO.Base
data CellState# : Set wh... | {
"alphanum_fraction": 0.7093639576,
"avg_line_length": 22.64,
"ext": "agda",
"hexsha": "fe0baf42cf87224828647311bc2c1996b6223fb6",
"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... |
{-# OPTIONS --safe #-}
module Cubical.Data.SumFin.Properties where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv renaming (_∙ₑ_ to _⋆_)
open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Function
open import Cubical.Foundations.Isomorphism
open import Cubical.Found... | {
"alphanum_fraction": 0.6042273266,
"avg_line_length": 33.967032967,
"ext": "agda",
"hexsha": "896a6e3c565f3c81d9f7cd1673cfd01478ae7d34",
"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 --safe --warning=error --without-K #-}
open import LogicalFormulae
open import Functions.Definition
open import Lists.Definition
open import Lists.Fold.Fold
open import Lists.Length
module Lists.Map.Map where
map : {a b : _} {A : Set a} {B : Set b} (f : A → B) → List A → List B
map f [] = []
map f (x :: ... | {
"alphanum_fraction": 0.527375708,
"avg_line_length": 37.8333333333,
"ext": "agda",
"hexsha": "faf757235ff89f89955b52b021a174b30d442e5b",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-29T13:23:07.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-29T1... |
module Structure.Container.SetLike where
{-
open import Data.Boolean
open import Data.Boolean.Stmt
open import Functional
open import Lang.Instance
import Lvl
open import Logic
open import Logic.Propositional
open import Logic.Predicate
open import Structure.Setoid renaming (_≡_ to _≡ₛ_ ; _≢_ to _≢ₛ_)
open import ... | {
"alphanum_fraction": 0.5990532333,
"avg_line_length": 42.4090909091,
"ext": "agda",
"hexsha": "9d15816a69dfbdb3686f27fea0128a3145becbc4",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --cubical-compatible --show-implicit #-}
-- {-# OPTIONS -v tc.data.sort:20 -v tc.lhs.split.well-formed:100 #-}
module WithoutK5 where
-- Equality defined with one index.
data _≡_ {A : Set} (x : A) : A → Set where
refl : x ≡ x
weak-K : {A : Set} {a b : A} (p q : a ≡ b) (α β : p ≡ q) → α ≡ β
weak-K refl... | {
"alphanum_fraction": 0.5843023256,
"avg_line_length": 26.4615384615,
"ext": "agda",
"hexsha": "4e54ab93f02e0e0a87e6c36371551de910b74fd4",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
-- Andreas, 2016-02-21 issue 1862 reported by nad
-- {-# OPTIONS -v tc.decl:10 -v tc.def.where:10 -v tc.meta:10 -v tc.size.solve:100 #-}
open import Common.Size
data Nat (i : Size) : Set where
zero : Nat i
suc : (j : Size< i) (n : Nat j) → Nat i
id : ∀ i → Nat i → Nat i
id _ zero = zero
id _ (suc j n) = s
... | {
"alphanum_fraction": 0.5717761557,
"avg_line_length": 24.1764705882,
"ext": "agda",
"hexsha": "469e14f0cf826adecbe78b9400a89d0f2239992e",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-03-05T... |
{-# OPTIONS --without-K #-}
open import lib.Basics
open import lib.types.Span
open import lib.types.Pointed
open import lib.types.Pushout
open import lib.types.PushoutFlattening
open import lib.types.Unit
open import lib.types.Paths
open import lib.types.Lift
open import lib.cubical.Square
-- Suspension is defined as... | {
"alphanum_fraction": 0.54539057,
"avg_line_length": 31.8609865471,
"ext": "agda",
"hexsha": "a4f31aaadeb18845302a40d8f6e723d2c6d8befd",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexs... |
module MLib.Algebra.PropertyCode.Core where
open import MLib.Prelude
open import MLib.Finite
import MLib.Finite.Properties as FiniteProps
open import MLib.Algebra.PropertyCode.RawStruct
import Relation.Unary as U using (Decidable)
open import Relation.Binary as B using (Setoid)
open List.All using (All; _∷_; [])
ope... | {
"alphanum_fraction": 0.5890238313,
"avg_line_length": 35.0522088353,
"ext": "agda",
"hexsha": "5137757817e75b58b4b87d769f52fc9cc0e411f4",
"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.Bool using ( Bool ; not )
open import FRP.JS.Maybe using ( Maybe ; just ; nothing ; _≟[_]_ )
open import FRP.JS.Nat using ( ℕ ; _≟_ ; _+_ ; _*_ ; _∸_ ; _/_ ; _/?_ ; _≤_ ; _<_ ; show ; float )
open import FRP.JS.Float using ( ℝ ) renaming ( _≟_ to _≟r_ )
open import FRP.JS.String using () renaming ( _... | {
"alphanum_fraction": 0.3865306122,
"avg_line_length": 30.2469135802,
"ext": "agda",
"hexsha": "235bceb046a8a8646e92fdd04e32ed41299ce8f5",
"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... |
{-# OPTIONS --cubical --safe --no-import-sorts #-}
module Cubical.Algebra.CommAlgebra.Base where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Equiv.HalfAdjoint
open impor... | {
"alphanum_fraction": 0.5505157553,
"avg_line_length": 41.1453488372,
"ext": "agda",
"hexsha": "6d4e8ea1675666115fc2c7b2157cb053c5849e9d",
"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 Data.Binary.Relations where
open import Data.Binary.Relations.Raw
open import Data.Binary.Definitions
open import Data.Binary.Operations.Addition
open import Relation.Binary
open import Relation.Nullary
import Data.Empty.Irrelevant as Irrel
infix 4 _≤_ _<_
record _≤_ (x y : ... | {
"alphanum_fraction": 0.5563636364,
"avg_line_length": 25,
"ext": "agda",
"hexsha": "375d93b72f50896e3fa0c28f3b54a6a6dddea18f",
"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": "92a... |
module Test where
open import Agda.Builtin.Bool
using (Bool; false; true)
open import Agda.Builtin.Unit
_∧_
: Bool
→ Bool
→ Bool
false ∧ x
= false
_ ∧ y
= y
| {
"alphanum_fraction": 0.649122807,
"avg_line_length": 11.4,
"ext": "agda",
"hexsha": "61c59a9bb4bd1cce9d1a66976ed7aa15215741d9",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2022-03-01T16:38:14.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-03-01T16:38:14.0... |
------------------------------------------------------------------------------
-- The gcd program is correct
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-... | {
"alphanum_fraction": 0.5587467363,
"avg_line_length": 39.6206896552,
"ext": "agda",
"hexsha": "dc88f5de968228f73873c8ac47c2d53052f680b2",
"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 Base
module Spaces.Circle where
{-
Idea :
data S¹ : Set where
base : S¹
loop : base ≡ base
I’m using Dan Licata’s trick to have a higher inductive type with definitional
reduction rule for [base]
-}
private
data #S¹ : Set where
#base : #S¹
S¹ : Set
S¹ = #S¹
base... | {
"alphanum_fraction": 0.5378398237,
"avg_line_length": 23.8771929825,
"ext": "agda",
"hexsha": "e9b9f19661a92508b41c433b1d8f70ec2168cd09",
"lang": "Agda",
"max_forks_count": 50,
"max_forks_repo_forks_event_max_datetime": "2022-02-14T03:03:25.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-10... |
{-# OPTIONS --cubical #-}
module _ where
open import Agda.Builtin.Equality
uip : ∀ {a} {A : Set a} {x y : A} (p q : x ≡ y) → p ≡ q
uip refl refl = refl
| {
"alphanum_fraction": 0.5714285714,
"avg_line_length": 19.25,
"ext": "agda",
"hexsha": "92c64b5eb39d8b5afeefc6971d7827fa02a0e888",
"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 --rewriting #-}
-- 2015-02-17 Jesper and Andreas
postulate
A : Set
R : A → A → Set
f : A → A
g : A → A
r : R (f _) (g _)
{-# BUILTIN REWRITE R #-}
{-# REWRITE r #-}
| {
"alphanum_fraction": 0.4947368421,
"avg_line_length": 13.5714285714,
"ext": "agda",
"hexsha": "f8ac975fa85057d79c95f8c4fdac9f15dc4668e3",
"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.Univalence where
open import Function.Axioms
open import Functional
open import Logic.Predicate
open import Logic.Propositional
import Lvl
open import Structure.Function.Domain using (intro ; Inverseₗ ; Inverseᵣ)
open import Structure.Relator.Properties
open import S... | {
"alphanum_fraction": 0.6638795987,
"avg_line_length": 37.375,
"ext": "agda",
"hexsha": "ca57d5f222836b680079ce4383e7b08feef47da5",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha": ... |
{-# OPTIONS --without-K #-}
module container.m.from-nat where
open import container.m.from-nat.core public
open import container.m.from-nat.cone public
open import container.m.from-nat.coalgebra public
open import container.m.from-nat.bisimulation public
| {
"alphanum_fraction": 0.796875,
"avg_line_length": 32,
"ext": "agda",
"hexsha": "3ba0a9db824042f4f9976f6427c74daa0a808860",
"lang": "Agda",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2019-02-26T06:17:38.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-04-11T17:19:12.000Z",... |
------------------------------------------------------------------------------
-- Testing the translation of the logical constants
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-univer... | {
"alphanum_fraction": 0.513463324,
"avg_line_length": 26.4836065574,
"ext": "agda",
"hexsha": "9e0ddda3d912656679c8eb2cdbc4268765e6e109",
"lang": "Agda",
"max_forks_count": 4,
"max_forks_repo_forks_event_max_datetime": "2016-08-03T03:54:55.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-05-10T2... |
-- Basic intuitionistic modal logic S4, without ∨, ⊥, or ◇.
-- Tarski-style semantics with contexts as concrete worlds, and glueing for α, ▻, and □.
-- Implicit syntax.
module BasicIS4.Semantics.TarskiOvergluedImplicit where
open import BasicIS4.Syntax.Common public
open import Common.Semantics public
-- Intuitioni... | {
"alphanum_fraction": 0.4287469287,
"avg_line_length": 26.4715447154,
"ext": "agda",
"hexsha": "e929c40c0376d11c1902cef3f9c761a1038b2bbb",
"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 lib-safe where
open import datatypes-safe public
open import logic public
open import thms public
open import termination public
open import error public
| {
"alphanum_fraction": 0.8343558282,
"avg_line_length": 18.1111111111,
"ext": "agda",
"hexsha": "cbf14dd6a5fdd5c42b09974423fe85c9fc8027b6",
"lang": "Agda",
"max_forks_count": 17,
"max_forks_repo_forks_event_max_datetime": "2021-11-28T20:13:21.000Z",
"max_forks_repo_forks_event_min_datetime": "2018-12-03... |
------------------------------------------------------------------------------
-- Conversion rules for the Collatz function
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-poly... | {
"alphanum_fraction": 0.4810066477,
"avg_line_length": 32.5670103093,
"ext": "agda",
"hexsha": "6223cca23d2277e7a9d2272d2a8f300e5117ff60",
"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... |
-- An ATP-pragma must appear in the same module where its argument is
-- defined.
-- This error is detected by TypeChecking.Monad.Signature.
module ATPImports where
open import Imports.ATP-A
{-# ATP axiom p #-}
postulate foo : a ≡ b
{-# ATP prove foo #-}
| {
"alphanum_fraction": 0.7076923077,
"avg_line_length": 18.5714285714,
"ext": "agda",
"hexsha": "b224cb1882ae5d92b57ef291cbf068f5bdeeeb66",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-03-05T... |
{-# OPTIONS --without-K --rewriting #-}
open import HoTT
import homotopy.ConstantToSetExtendsToProp as ConstExt
open import homotopy.Pigeonhole
module homotopy.FinSet where
-- the explicit type of finite sets, carrying the cardinality on its sleeve
FinSet-exp : Type₁
FinSet-exp = Σ ℕ λ n → BAut (Fin n)
FinSet-prop ... | {
"alphanum_fraction": 0.5671870217,
"avg_line_length": 33.6804123711,
"ext": "agda",
"hexsha": "a6f8537070ca262226d45984add1084ad24ee99f",
"lang": "Agda",
"max_forks_count": 50,
"max_forks_repo_forks_event_max_datetime": "2022-02-14T03:03:25.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-10... |
{-# OPTIONS --sized-types #-}
module SList (A : Set) where
open import Data.List
open import Data.Product
open import Size
data SList : {ι : Size} → Set where
snil : {ι : Size}
→ SList {↑ ι}
_∙_ : {ι : Size}(x : A)
→ SList {ι}
→ SList {↑ ι}
size : List ... | {
"alphanum_fraction": 0.5030674847,
"avg_line_length": 19.1764705882,
"ext": "agda",
"hexsha": "41588a5bffde149ad0542e727c9d969d97746c5c",
"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.AbGroup.Instances.NProd where
open import Cubical.Foundations.Prelude
open import Cubical.Data.Nat using (ℕ)
open import Cubical.Algebra.Group
open import Cubical.Algebra.Group.Instances.NProd
open import Cubical.Algebra.AbGroup
private variable
ℓ : Level
open AbGrou... | {
"alphanum_fraction": 0.6740994854,
"avg_line_length": 29.15,
"ext": "agda",
"hexsha": "02c0cdf924c993303c99e982846557b3b2451b55",
"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": "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.