Search is not available for this dataset
text string | meta dict |
|---|---|
{-
The naive, but incorrect, way to define the integers as a HIT.
This file mainly contains a proof that IsoInt ≢ Int, and ends with a
demonstration of how the same proof strategy fails for BiInvInt.
-}
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.HITs.Ints.IsoInt.Base where
open import Cubica... | {
"alphanum_fraction": 0.6528651871,
"avg_line_length": 26.7168141593,
"ext": "agda",
"hexsha": "ec3304dd859eec06989c5fe724e7d6df0609ad96",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-22T02:02:01.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-22T... |
-- Andreas, 2017-01-12, issue #2386
postulate
F : ∀{a}{A : Set a} → A → A
data Eq (A : Set) : (x y : F A) → Set where
refl : (x : F A) → Eq A x x
{-# BUILTIN EQUALITY Eq #-}
-- Expected error:
-- The type of BUILTIN EQUALITY must be a polymorphic relation
-- when checking the pragma BUILTIN EQUALITY Eq
| {
"alphanum_fraction": 0.6217948718,
"avg_line_length": 22.2857142857,
"ext": "agda",
"hexsha": "95284277b9088d5ae653e0ffd23e78a0578e93ba",
"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... |
-- Andreas, 2015-08-27 Rewrite rules in parametrized modules are fine.
-- Jesper, 2015-10-14 Semantics of rewrite rules in parametrized modules has
-- changed (see issue 1652)
-- Jesper, 2015-11-9 Rewrite rules in parametrized modules are now
-- generalized to the top-context auto... | {
"alphanum_fraction": 0.6163328197,
"avg_line_length": 27.0416666667,
"ext": "agda",
"hexsha": "1d91fa367834b689f0ea766eb6090e862f8469b0",
"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 examples
------------------------------------------------------------------------
module Contractive.Examples where
open import Codata.Musical.Notation
open import Codata.Musical.Stream
open import Data.Nat
open import Data.Nat.Propertie... | {
"alphanum_fraction": 0.484375,
"avg_line_length": 36.0388349515,
"ext": "agda",
"hexsha": "acd2356ce69d3454342b560191f950099ec8f243",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha... |
{-# OPTIONS --warning=error --safe --without-K #-}
open import LogicalFormulae
open import Agda.Primitive using (Level; lzero; lsuc; _⊔_)
module Categories.Definition where
record Category {a b : _} : Set (lsuc (a ⊔ b)) where
field
objects : Set a
arrows : objects → objects → Set b
id : (x : objects) →... | {
"alphanum_fraction": 0.5720720721,
"avg_line_length": 39.1764705882,
"ext": "agda",
"hexsha": "b9e9080cd161fe04af632107c25c210d7d7b6e90",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-29T13:23:07.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-29T... |
{-# OPTIONS --without-K --safe #-}
-- The Simplex category Δ
module Categories.Category.Instance.Simplex where
open import Level using (0ℓ)
open import Data.Product
open import Data.Fin.Base using (Fin; zero; suc; _≤_; _<_; inject₁; punchIn)
open import Data.Nat.Base using (ℕ; zero; suc; z≤n; s≤s)
open import Functi... | {
"alphanum_fraction": 0.5951717734,
"avg_line_length": 42.5131578947,
"ext": "agda",
"hexsha": "96448b6553fc47581916104e054e0b067d45e02a",
"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... |
-- Sums and cocartesian categories
module CategoryTheory.BCCCs.Cocartesian where
open import CategoryTheory.Categories
open import Relation.Binary using (IsEquivalence)
module _ {n} (ℂ : Category n) where
open Category ℂ
-- Initial object in a category
record InitialObj : Set (lsuc n) where
fi... | {
"alphanum_fraction": 0.4411575563,
"avg_line_length": 32.0618556701,
"ext": "agda",
"hexsha": "65cf6fe05b6a412511e28be8ee532682319eafca",
"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 BasicIPC.Metatheory.ClosedHilbert-TarskiGluedClosedHilbert where
open import BasicIPC.Syntax.ClosedHilbert public
open import BasicIPC.Semantics.TarskiGluedClosedHilbert public
-- Internalisation of syntax as syntax representation in a particular model.
module _ {{_ : Model}} where
[_] : ∀ {A} → ⊢ A → [⊢] ... | {
"alphanum_fraction": 0.5316561845,
"avg_line_length": 26.5,
"ext": "agda",
"hexsha": "69b669fa91379353d0aed14783a1254a702fdee1",
"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": "f... |
-- Andreas, 2012-04-18 make sure with functions of irrelevant functions
-- are also irrelevant
module IrrelevantWith where
import Common.Level
open import Common.Irrelevance
.unsq : ∀ {a}{A : Set a} → Squash A → A
unsq sq with Set
... | _ = unsquash sq
| {
"alphanum_fraction": 0.7254901961,
"avg_line_length": 23.1818181818,
"ext": "agda",
"hexsha": "32c8bb685479e3e596b6ff42e089d354c8fb8864",
"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 --safe #-}
module Cubical.HITs.Rationals.HITQ.Base where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Function
open import Cubical.Relation.Nullary
open import Cubical.Data.Int
open import Cubical.Data.Nat as ℕ hiding (_·_)
open import Cu... | {
"alphanum_fraction": 0.5299242424,
"avg_line_length": 30.3448275862,
"ext": "agda",
"hexsha": "ad94f9803b80452e85540a2e0c887e4628e975a0",
"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 --no-import-sorts #-}
module Cubical.Data.Fin.Recursive where
open import Cubical.Data.Fin.Recursive.Base public
open import Cubical.Data.Fin.Recursive.Properties public
| {
"alphanum_fraction": 0.7810945274,
"avg_line_length": 28.7142857143,
"ext": "agda",
"hexsha": "40d38939e9e9fb6867b77a7c39687212674e92ba",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
------------------------------------------------------------------------
-- A small definition of a dependently typed language, using the
-- technique from McBride's "Outrageous but Meaningful Coincidences"
------------------------------------------------------------------------
{-# OPTIONS --type-in-type #-}
-- The ... | {
"alphanum_fraction": 0.4069428238,
"avg_line_length": 27.2063492063,
"ext": "agda",
"hexsha": "6c69fcf33c34e1cc465e3bd8949a85d827ffeb25",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-03-12T... |
{-# OPTIONS --safe --warning=error --without-K --guardedness #-}
open import Setoids.Setoids
open import Rings.Definition
open import Rings.Lemmas
open import Rings.Orders.Partial.Definition
open import Rings.Orders.Total.Definition
open import Groups.Definition
open import Groups.Lemmas
open import Fields.Fields
open... | {
"alphanum_fraction": 0.6934814453,
"avg_line_length": 61.5939849624,
"ext": "agda",
"hexsha": "58715c0ac2cde6a19681fc4b45e7443fd1b2e86a",
"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... |
module Builtin.Reflection where
open import Prelude hiding (abs)
open import Prelude.Equality.Unsafe
open import Builtin.Float
open import Container.Traversable
open import Control.Monad.Zero
open import Agda.Builtin.Reflection as Builtin
open Builtin public
hiding ( primQNameEquality
; primQNameLess
... | {
"alphanum_fraction": 0.6117847267,
"avg_line_length": 26.8628571429,
"ext": "agda",
"hexsha": "d483be0e226f8ff5c93ab3131ca6fb43a17ab366",
"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... |
-- Strict A is a datatype isomorphic to A, with constructor ! : A → Strict A
-- Semantically it has no impact, but its constructor is strict, so it can be
-- used to force evaluation of a term to whnf by pattern-matching.
open import Data.Strict.Primitive using ()
module Data.Strict where
open Data.Strict.Primitive ... | {
"alphanum_fraction": 0.7421203438,
"avg_line_length": 31.7272727273,
"ext": "agda",
"hexsha": "9612e898c001779bef684f0b8c2d8dca2ba6f20b",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:40:23.000Z",
"max_forks_repo_forks_event_min_datetime": "2017-08-10T... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- This module is DEPRECATED. Please use
-- Data.Container.Relation.Unary.Any directly.
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe --sized-types #-}
mod... | {
"alphanum_fraction": 0.5267665953,
"avg_line_length": 33.3571428571,
"ext": "agda",
"hexsha": "14aafe9c87918d4bd703ea224cc775c198add5cc",
"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 #-}
module Invertibility where
open import Size
open import Codata.Delay renaming (length to dlength ; map to dmap )
open import Codata.Thunk using (Thunk ; force)
open import Relation.Binary.PropositionalEquality
open import Data.Vec.Relation.Unary.All using (All ; [] ; _∷_)
open import Dat... | {
"alphanum_fraction": 0.5770653514,
"avg_line_length": 46.2547528517,
"ext": "agda",
"hexsha": "9cc4bba730b5319fc40267a68f1e4da9e17a2c18",
"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 Issue628 where
data ℕ : Set where
zero : ℕ
suc : ℕ → ℕ
{-# BUILTIN NATURAL ℕ #-}
{-# BUILTIN SUC suc #-}
{-# BUILTIN ZERO zero #-}
data _≡_ {A : Set}(x : A) : A → Set where
refl : x ≡ x
data ⊥ : Set where
0≢1+n : ∀ {n} -> 0 ≡ suc n → ⊥
0≢1+n ()
divSucAux : (k m n j : ℕ) -> ℕ
divSucAux k m zero j = ... | {
"alphanum_fraction": 0.5694980695,
"avg_line_length": 18.5,
"ext": "agda",
"hexsha": "a4c00731ba194e6485718d16b645b32b6ae2214c",
"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": "2... |
open import IO using ( _>>_ ; putStr ; run )
module System.IO.Examples.HelloRaw where
main = run (putStr "Hello, World\n")
| {
"alphanum_fraction": 0.696,
"avg_line_length": 20.8333333333,
"ext": "agda",
"hexsha": "f192c8fc792a80fe8410e4a25e6d1f70fdfdb4d7",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:40:23.000Z",
"max_forks_repo_forks_event_min_datetime": "2017-08-10T06:12:5... |
module Examples.DivergingContext where
open import Prelude
data TC : Set where
tc-int : TC
tc-bool : TC
_tc≟_ : (a b : TC) → Dec (a ≡ b)
tc-int tc≟ tc-int = yes refl
tc-int tc≟ tc-bool = no (λ ())
tc-bool tc≟ tc-int = no (λ ())
tc-bool tc≟ tc-bool = yes refl
open import Implicits.Oliveira.Types TC _tc≟_
open im... | {
"alphanum_fraction": 0.6590198123,
"avg_line_length": 31.4426229508,
"ext": "agda",
"hexsha": "e984678764c646bfa4550525d9d88909b22a1eeb",
"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-06-08
-- Better error message when case splitting is invoked in location
-- where there is nothing to split
record R : Set where
field f : {!!}
-- C-c C-c RET here gives:
-- Cannot split here, as we are not in a function definition
| {
"alphanum_fraction": 0.7035573123,
"avg_line_length": 25.3,
"ext": "agda",
"hexsha": "ad35e82af92e5585dafca5872f6d233a5f085410",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:0... |
module Numeral.Natural.Proofs where
import Lvl
open import Numeral.Natural
open import Relator.Equals
open import Relator.Equals.Proofs.Equiv
open import Structure.Function
open import Structure.Function.Domain
private variable n : ℕ
[𝐒]-not-0 : (𝐒(n) ≢ 𝟎)
[𝐒]-not-0 ()
𝐒-not-self : (𝐒(n) ≢ n)
𝐒-not-self ()
... | {
"alphanum_fraction": 0.7090163934,
"avg_line_length": 19.52,
"ext": "agda",
"hexsha": "bc4f7d70eaa04db5f8314805671384ef69cf0386",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha": "... |
open import Data.Graph
module Data.Graph.Path.Finite {ℓᵥ ℓₑ} (g : FiniteGraph ℓᵥ ℓₑ) where
open import Category.Monad
open import Data.Bool as Bool
open import Data.Graph.Path.Cut g hiding (_∈_)
open import Data.List as List hiding (_∷ʳ_)
open import Data.List.Any as Any
open import Data.List.Any.Properties
open impo... | {
"alphanum_fraction": 0.5524744849,
"avg_line_length": 33.7207792208,
"ext": "agda",
"hexsha": "6f2f9866d0aa6beb9d7c83f31fc715ecbc648e3b",
"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, AIM XXXV, 2022-05-09, issue #5728
-- Give a proper error rather than crashing.
test : Set
test with Set
...
-- This used to be an internal error.
-- Expected error now:
-- The right-hand side can only be omitted if there is an absurd
-- pattern, () or {}, in the left-hand side.
| {
"alphanum_fraction": 0.6860068259,
"avg_line_length": 24.4166666667,
"ext": "agda",
"hexsha": "856a6a4ec40d3dd5fd5e24c9fe9ab49125909258",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --without-K --rewriting #-}
open import HoTT
open import cohomology.Theory
open import groups.Cokernel
open import groups.Exactness
open import groups.HomSequence
open import groups.ExactSequence
open import cw.CW
module cw.cohomology.TipGrid {i} (OT : OrdinaryTheory i)
(⊙skel : ⊙Skeleton {i} 1) (ac : ... | {
"alphanum_fraction": 0.6596910812,
"avg_line_length": 32.3709677419,
"ext": "agda",
"hexsha": "9b8ee3a11543381c8989a7c2fd7623305a49b70d",
"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 #-}
module Cubical.Homotopy.Loopspace where
open import Cubical.Core.Everything
open import Cubical.Data.Nat
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Pointed
open import Cubical.Foundations.HLevels
open import Cubical.Foundations.GroupoidLaws
open import Cubical.HIT... | {
"alphanum_fraction": 0.5077202543,
"avg_line_length": 44.6351351351,
"ext": "agda",
"hexsha": "29cfb40cad5b5df951155924e8f4dd1db2c7317b",
"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... |
------------------------------------------------------------------------
-- Fω with interval kinds
------------------------------------------------------------------------
{-# OPTIONS --safe --without-K #-}
-- Author: Sandro Stucki
-- Copyright (c) 2017-2021 EPFL
-- The code in this repository contains an Agda mecha... | {
"alphanum_fraction": 0.7510103672,
"avg_line_length": 38.1946308725,
"ext": "agda",
"hexsha": "ba81b5a5ab767fac05379d37dfa70cea4503c09f",
"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... |
-- Check if sharing is properly used for evaluation.
-- E.g. (\x -> putStrLn x; putStrLn x) (computeString)
-- should only evaluate computeString once.
-- Doing the evaluation twice should still yield the correct result,
-- but will incur a performance penalty.
-- MAlonzo: seems to use proper sharing for this example ... | {
"alphanum_fraction": 0.7022613065,
"avg_line_length": 30.6153846154,
"ext": "agda",
"hexsha": "45b9b6ba58bc535364077e7032c451a13921d75b",
"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 Algebra
open import Data.Product
open import Data.Bool
open import Data.List
open import Data.List.Properties
open import Relation.Binary.PropositionalEquality
open import Function
open import Data.Empty
open import Relation.Nullary
open import Relation.Nullary.Decidable
module LM {A : Set} = Monoid (Data.... | {
"alphanum_fraction": 0.462489695,
"avg_line_length": 32.203539823,
"ext": "agda",
"hexsha": "51ed1a3a776576bc435edd84e4fd2e5fd45ca097",
"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-16T... |
{-# OPTIONS --safe #-}
module JVM.Syntax.Values where
open import Data.Bool
open import Data.Integer.Base
open import Relation.Unary
open import Relation.Ternary.Core
open import Relation.Ternary.Structures
open import Relation.Ternary.Structures.Syntax
open import JVM.Types
data Const : Ty → Set where
null : ∀ {c... | {
"alphanum_fraction": 0.7348484848,
"avg_line_length": 23.2941176471,
"ext": "agda",
"hexsha": "b40444732186ae18111157bef9bf93d990f621b4",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-12-28T17:37:15.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-12-28T... |
{-# OPTIONS --type-in-type #-}
-- Yeah, that's type-in-type. I'm a sissy, I want to use the stdlib, I
-- don't want to reimplement ℕ, ⊤, etc. in Set1.
module ILabel where
open import Data.String
open import Data.Empty
open import Data.Unit
open import Data.Product
open import Data.Maybe
open import Data.Nat
open... | {
"alphanum_fraction": 0.4599180807,
"avg_line_length": 25.3185185185,
"ext": "agda",
"hexsha": "80fd2bd2cc0a5df5cb85c0f43f1ecad5afc04816",
"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-14... |
------------------------------------------------------------------------
-- Propositional equality
------------------------------------------------------------------------
module Relation.Binary.PropositionalEquality1 where
open import Relation.Nullary
open import Relation.Binary
open import Relation.Binary.Propositi... | {
"alphanum_fraction": 0.4247517189,
"avg_line_length": 25.6666666667,
"ext": "agda",
"hexsha": "40c26156d87399247601364a36013408334a08f4",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:54:10.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-07-21T... |
open import Data.Empty
open import Data.List hiding ([_]) renaming (_∷_ to _∷ₗ_)
open import Data.Maybe
open import Data.Product
open import Data.Sum
open import Data.Unit
open import AEff
open import EffectAnnotations
open import Preservation
open import Progress
open import Renamings
open import Substitutions renami... | {
"alphanum_fraction": 0.2597924837,
"avg_line_length": 35.8416370107,
"ext": "agda",
"hexsha": "5d7135f578eaab6739212d13d2933d4049ede092",
"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
--
-- Substitutions
------------------------------------------------------------------------
-- Uses a variant of Conor McBride's technique from "Type-Preserving
-- Renaming and Substitution".
-- See Data.Fin.Substit... | {
"alphanum_fraction": 0.5596019479,
"avg_line_length": 25.5297297297,
"ext": "agda",
"hexsha": "2a9d636b90c6ece7fc61d665156f3bf0a50578cd",
"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 IORef where
data Unit : Set where
unit : Unit
data Pair (A B : Set) : Set where
pair : A -> B -> Pair A B
fst : {A B : Set} -> Pair A B -> A
fst (pair a b) = a
snd : {A B : Set} -> Pair A B -> B
snd (pair a b) = b
data Nat : Set where
zero : Nat
suc : Nat -> Nat
data Fin : N... | {
"alphanum_fraction": 0.4751341163,
"avg_line_length": 31.9305555556,
"ext": "agda",
"hexsha": "48bb6ca23bf569f2fe07ce77632c83e18f5a1290",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-03-12T... |
{-# OPTIONS --cubical --no-import-sorts --prop #-}
module Utils where
open import Agda.Primitive renaming (_⊔_ to ℓ-max; lsuc to ℓ-suc; lzero to ℓ-zero)
open import Function.Base
variable
ℓ ℓ' ℓ'' : Level
module Test where
import Algebra.Properties.BooleanAlgebra
open import Algebra.Bundles
module _ (B... | {
"alphanum_fraction": 0.5589310187,
"avg_line_length": 35.3064516129,
"ext": "agda",
"hexsha": "909a9360d80057710973251496fc7f5c20cca315",
"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
--
-- Some code related to propositional equality that relies on the K
-- rule
------------------------------------------------------------------------
{-# OPTIONS --with-K --safe #-}
module Relation.Binary.Propositi... | {
"alphanum_fraction": 0.5189189189,
"avg_line_length": 31.4893617021,
"ext": "agda",
"hexsha": "446b596c1c75e19534386a955e55ce12d677e8d9",
"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 13-circle where
import 12-univalence
open 12-univalence public
{- Section 11.1 The induction principle of the circle -}
free-loops :
{ l1 : Level} (X : UU l1) → UU l1
free-loops X = Σ X (λ x → Id x x)
base-free-loop :
{ l1 : Level} {X : UU l1} → free-loops X → X... | {
"alphanum_fraction": 0.5962471692,
"avg_line_length": 37.8799019608,
"ext": "agda",
"hexsha": "a50486854e66897b6227a7085a8fe33adacf680f",
"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 --no-exact-split --safe #-}
module Cubical.Data.Fin.Literals where
open import Agda.Builtin.Nat
using (suc)
open import Agda.Builtin.FromNat
renaming (Number to HasFromNat)
open import Cubical.Data.Fin.Base
using (Fin; fromℕ≤)
open import Cubical.Data.Nat.Order.Recursive
... | {
"alphanum_fraction": 0.6666666667,
"avg_line_length": 26.5263157895,
"ext": "agda",
"hexsha": "f32eb5f12156f0750d984d8f8523e02744ef4e80",
"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... |
{- Diamond operator. -}
module TemporalOps.Diamond.Functor where
open import CategoryTheory.Categories
open import CategoryTheory.Instances.Reactive
open import CategoryTheory.Functor
open import TemporalOps.Common
open import TemporalOps.Next
open import TemporalOps.Delay
open import Data.Product
-- Arbitrary dela... | {
"alphanum_fraction": 0.4533838145,
"avg_line_length": 33.5396825397,
"ext": "agda",
"hexsha": "9f4244c8ea7cf3ad87cc6e41389a4f173a616d3d",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.HITs.SmashProduct.Base where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Pointed
open import Cubical.Foundations.Isomorphism
open import Cubical.HITs.Pushout.Base
open import Cubical.Data.Unit
open import Cubical.Data.Prod
op... | {
"alphanum_fraction": 0.4732947233,
"avg_line_length": 43.5700934579,
"ext": "agda",
"hexsha": "ac90a41c182f3eea7ce1dd2d049cb5e1de2f757d",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-22T02:02:01.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-22T... |
module Issue616 where
open import Common.Coinduction
const : ∀ {a b}{A : Set a}{B : Set b} → A → B → A
const x _ = x
-- The recursive call should be ignored by the termination checker,
-- since ♭ is a projection function and shouldn't store its implicit
-- arguments.
contrived : Set₁
contrived = ♭ {A = const _ cont... | {
"alphanum_fraction": 0.6895522388,
"avg_line_length": 23.9285714286,
"ext": "agda",
"hexsha": "12c5395b526e652d3ae827e210e8708887ace9a0",
"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 Categories.Category
open import Categories.Category.Cocomplete.Finitely
module Categories.Category.Cocomplete.Finitely.Properties {o ℓ e} {C : Category o ℓ e} (finite : FinitelyCocomplete C) where
open import Categories.Category.Duality C
private
module C = Category C... | {
"alphanum_fraction": 0.7958287596,
"avg_line_length": 35.0384615385,
"ext": "agda",
"hexsha": "4606c17155f211e6602e4dac1e63ebb3d416d20b",
"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... |
------------------------------------------------------------------------
-- Some algebraic structures (not packed up with sets, operations,
-- etc.)
------------------------------------------------------------------------
open import Relation.Binary
module Algebra.Structures where
import Algebra.FunctionProperties a... | {
"alphanum_fraction": 0.5089831281,
"avg_line_length": 32.7313432836,
"ext": "agda",
"hexsha": "9e1e9d05f804e890cdce7483f5cd3a6f0f545220",
"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... |
-- Andreas, 2018-05-28, issue #3095, cannot make hidden shadowing variable visible
-- Andreas, 2019-07-15, issue #3919, make hidden variable visible in par. module
open import Agda.Builtin.Equality
module _ (A : Set) where
data Nat : Set where
suc : {n : Nat} → Nat
data IsSuc : Nat → Set where
isSuc : ∀{n} → Is... | {
"alphanum_fraction": 0.583632448,
"avg_line_length": 24.0172413793,
"ext": "agda",
"hexsha": "dd81a8e40703486f634a706a71cdb466da44ab37",
"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 PlfaInduction where
import Relation.Binary.PropositionalEquality as Eq
open Eq using (_≡_ ; refl ; cong ; sym)
open Eq.≡-Reasoning using (begin_ ; _≡⟨⟩_ ; _≡⟨_⟩_ ; _∎ )
open import Data.Nat using (ℕ ; zero ; suc ; _+_ ; _*_ ; _^_ )
+-assoc : ∀ (a b c : ℕ) → (a + b) + c ≡ a + (b + c)
+-assoc zero b c =
begin
... | {
"alphanum_fraction": 0.4177623419,
"avg_line_length": 23.0342857143,
"ext": "agda",
"hexsha": "48629a8b183f20bd62ffef34842eeaeaa10bb4b2",
"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... |
------------------------------------------------------------------------------
-- Theorems which require a non-empty domain
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-poly... | {
"alphanum_fraction": 0.4493865031,
"avg_line_length": 31.8048780488,
"ext": "agda",
"hexsha": "e2468f40fb8533d33b198d735cfd84159b051f2c",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z",
"max_forks_repo_forks_event_min_datetime": "2016-09-19T... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Digits and digit expansions
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.Digit where
open import Data.Nat using (ℕ; zero; suc; pred; _... | {
"alphanum_fraction": 0.5161384123,
"avg_line_length": 29.3931623932,
"ext": "agda",
"hexsha": "bd935b910ec1b5a491370b105d4018d7d286f525",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_he... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- A solver for proving that one list is a sublist of the other.
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Relation.Binary using (DecSe... | {
"alphanum_fraction": 0.5561312608,
"avg_line_length": 34.0588235294,
"ext": "agda",
"hexsha": "7a2d70e754c284763127966874b655bd3cbd169a",
"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... |
postulate
F : Set₁ → Set₁
record R : Set₁ where
field
f : F Set
{-# COMPILE GHC F = \ _ -> () #-}
{-# FOREIGN GHC data D = C () #-}
{-# COMPILE GHC R = data D (C) #-}
| {
"alphanum_fraction": 0.4972067039,
"avg_line_length": 13.7692307692,
"ext": "agda",
"hexsha": "e610339745866c23eb10669fdd542136209cc640",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-0... |
{-# OPTIONS --cubical --safe --guardedness #-}
module Data.PolyP.Types where
open import Function hiding (_⟨_⟩_)
open import Data.Sum
open import Data.Sigma
open import Level
open import Data.Unit
open import Data.Nat
open import Data.Empty
open import WellFounded
open import Literals.Number
open import Data.Fin.Inde... | {
"alphanum_fraction": 0.6157662624,
"avg_line_length": 25.5492957746,
"ext": "agda",
"hexsha": "bf003f6a17f70bc919da38fbe4c311154044ae8b",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-11T12:30:21.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-11T... |
------------------------------------------------------------------------
-- Extension The Agda standard library
--
-- Properties of indexed binary relations
------------------------------------------------------------------------
module Relation.Binary.Indexed.Extra where
open import Data.Product
open import Data.Sum... | {
"alphanum_fraction": 0.505700532,
"avg_line_length": 34.9292035398,
"ext": "agda",
"hexsha": "c77649ea2f08c8d56df2b3341a10f5c1b32ec5c8",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hex... |
open import Relation.Binary.Core
module Bound.Lower.Order.Properties {A : Set}
(_≤_ : A → A → Set)
(trans≤ : Transitive _≤_) where
open import Bound.Lower A
open import Bound.Lower.Order _≤_
transLeB : {a b c : Bound} → LeB a b → LeB b c → LeB a c
transLeB lebx _ = lebx
transLeB ... | {
"alphanum_fraction": 0.6021798365,
"avg_line_length": 28.2307692308,
"ext": "agda",
"hexsha": "c9e9fde2dc34d823f29f6dbae4acc1f137e98c98",
"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 program to sort a list is correct
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorp... | {
"alphanum_fraction": 0.5326821938,
"avg_line_length": 38.0285714286,
"ext": "agda",
"hexsha": "99fadb52ac4ea722f3ff9fb8c6c708f0212860d3",
"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 plfa.working.Naturals where
data ℕ : Set where
zero : ℕ
suc : ℕ → ℕ
seven : ℕ
seven = suc(suc(suc(suc(suc(suc(suc(zero)))))))
{-# BUILTIN NATURAL ℕ #-}
import Relation.Binary.PropositionalEquality as Eq
open Eq using (_≡_; refl)
open Eq.≡-Reasoning using (begin_; _≡⟨⟩_... | {
"alphanum_fraction": 0.284129119,
"avg_line_length": 15.5706806283,
"ext": "agda",
"hexsha": "35077b0bf60002b445a1c6cc16fd55efa3d8140d",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hex... |
{-# OPTIONS --without-K --safe #-}
module Categories.Category.Construction.Graphs where
-- The "Underlying Graph" <-> "Free Category on a Graph" Adjunction.
-- Lots of surprises here, of various level of surprisingness
-- 1. The Free Category rises universe levels of arrows (and equivalences); the Underlying Graph do... | {
"alphanum_fraction": 0.5119590834,
"avg_line_length": 36.5926605505,
"ext": "agda",
"hexsha": "38bb94518fce804cb7ef45c3a1e14e1ce5c39657",
"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 bug where
data True : Set where
tt : True
data Sigma (x : True) : Set where
pair : True -> Sigma x
postulate
p : True
T : True -> Sigma p -> Set
T tt (pair _) = True
postulate
S : True -> Sigma p -> Set
z : Sigma p
z = pair p
postulate
build : (q : Sigma p) -> T p q -> True
pz : T p z
| {
"alphanum_fraction": 0.5727848101,
"avg_line_length": 12.1538461538,
"ext": "agda",
"hexsha": "c55ad304adbfc457452444df15e40951702bd699",
"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 conversion where
open import constants
open import cedille-types
open import ctxt
open import free-vars
open import rename
open import subst
open import syntax-util
open import general-util
open import type-util
record unfolding : Set where
constructor unfold
field
unfold-all : 𝔹
unfold-defs : 𝔹
... | {
"alphanum_fraction": 0.6073453675,
"avg_line_length": 42.1557017544,
"ext": "agda",
"hexsha": "7b8fa0dc801751a4162c9b4e961f6ad47b91ec60",
"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 IrrelevantModuleParameter1 (A : Set) .(a : A) where
postulate
P : A -> Set
p : P a
-- cannot use a here, because it is irrelevant | {
"alphanum_fraction": 0.6690140845,
"avg_line_length": 23.6666666667,
"ext": "agda",
"hexsha": "57ce5d72918f4b4e13f6b72b8bf6577741f57d37",
"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-positivity-check --no-termination-check --allow-unsolved-metas #-}
open import Prelude
open import Algebra
open import Algebra.Monus
open import Relation.Binary
open import Data.Maybe
open import Data.List using (List; _∷_; []; foldr)
module Control.Monad.HeapT.Sized
{ℓ}
(mon : CTMAPOM ... | {
"alphanum_fraction": 0.4643864598,
"avg_line_length": 30.170212766,
"ext": "agda",
"hexsha": "5ef6211a17f6acfb60f3209468a30f68478dd41f",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-11T12:30:21.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-11T1... |
-- MIT License
-- Copyright (c) 2021 Luca Ciccone and Luca Padovani
-- Permission is hereby granted, free of charge, to any person
-- obtaining a copy of this software and associated documentation
-- files (the "Software"), to deal in the Software without
-- restriction, including without limitation the rights to use... | {
"alphanum_fraction": 0.6206595708,
"avg_line_length": 37.4575163399,
"ext": "agda",
"hexsha": "da1cde639f292092f5067585d64e74c941706520",
"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 OscarPrelude where
open import Prelude public
renaming (_==_ to _≟_) -- TODO ask Agda to rename Eq._==_ to Eq._≟_
renaming (force to force!) -- needed by ∞Delay
renaming (forceLemma to force!Lemma)
_≢_ : ∀ {ℓ} {A : Set ℓ} → A → A → Set ℓ
x ≢ y = ¬ (x ≡ y)
infix 0 _↔_
_↔_ : {ℓ¹ : Level} → Set ℓ¹ → {ℓ² :... | {
"alphanum_fraction": 0.5919589393,
"avg_line_length": 25.4130434783,
"ext": "agda",
"hexsha": "3e0ab62bc0962d12981f5f5e40e7ef3d1744eb6d",
"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
--
-- Semi-heterogeneous vector equality over setoids
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Relation.Binary
module Data.Vec.Relation.... | {
"alphanum_fraction": 0.4499229584,
"avg_line_length": 28.8444444444,
"ext": "agda",
"hexsha": "5403745b902bf83f1e426b8022140e9fd604c67b",
"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 IIRD where
open import LF
-- A code for an IIRD (captures both general and restricted IIRDs)
-- I - index set
-- D - return type of the recursive component
-- E - generalised return type of the recursive component (including the index)
-- for restricted IIRD E = D i for an external i
-- and for gen... | {
"alphanum_fraction": 0.5059974165,
"avg_line_length": 40.4402985075,
"ext": "agda",
"hexsha": "59b2b1141b2fd7eae19feadaa5a058eb0463b101",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-03-12T... |
{-# OPTIONS --without-K --safe #-}
open import Definition.Typed.EqualityRelation
module Definition.LogicalRelation.Properties.Conversion {{eqrel : EqRelSet}} where
open EqRelSet {{...}}
open import Definition.Untyped
open import Definition.Typed
open import Definition.Typed.RedSteps
open import Definition.Typed.Prop... | {
"alphanum_fraction": 0.3967094197,
"avg_line_length": 54.5100286533,
"ext": "agda",
"hexsha": "0029c838e1119f6bdf918d22f4c8340cd300b13e",
"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 Negative4 where
data Empty : Set where
data NSPos : Set where
c : ((NSPos -> Empty) -> NSPos) -> NSPos
| {
"alphanum_fraction": 0.6355932203,
"avg_line_length": 11.8,
"ext": "agda",
"hexsha": "0cbf4aa364f4176eb274650e4f59c6c3a242c672",
"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 Implicits.Syntax.Type.Constructors where
open import Prelude
open import Implicits.Syntax.Type
open import Implicits.Substitutions
open TypeSubst
-- polymorphic identity
tid : ∀ {n} → Type n
tid = ∀' (simpl ((TVar zero) →' (TVar zero)))
-- type of bools encoding
tbool : Type 0
tbool = ∀' (simpl ((TVar zero) →... | {
"alphanum_fraction": 0.5510204082,
"avg_line_length": 24.5,
"ext": "agda",
"hexsha": "aa7b2b89d99c518b1018accf58dc588639a50141",
"lang": "Agda",
"max_forks_count": null,
"max_forks_repo_forks_event_max_datetime": null,
"max_forks_repo_forks_event_min_datetime": null,
"max_forks_repo_head_hexsha": "7... |
{-# OPTIONS --without-K --rewriting #-}
module Flat where
open import lib.Basics
open import Basics
open import Bool
open import lib.types.Bool
open import lib.NType2
open import lib.Equivalence2
open import lib.types.Suspension
open import lib.types.IteratedSuspension
open import lib.types.Pushout ... | {
"alphanum_fraction": 0.437833595,
"avg_line_length": 35.6862745098,
"ext": "agda",
"hexsha": "37423864d848ff876c2abf613b6840c3a695a06c",
"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... |
record _×_ (A B : Set) : Set where
constructor _,_
field
fst : A
snd : B
open _×_
infixr 1 _,_
_∩_ : {I : Set} → (I → Set) → (I → Set) → I → Set
P ∩ Q = λ i → P i × Q i
record Preorder : Set₁ where
no-eta-equality
field I : Set
infix 4 _∈_
postulate
Ty World Cxt : Set
All : (P : Ty → Set) → Cx... | {
"alphanum_fraction": 0.5226504395,
"avg_line_length": 20.8309859155,
"ext": "agda",
"hexsha": "68bfaf8a71d7cd8e10be953ff0de8f0669724be1",
"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 Prelude.Vec where
open import Prelude.Nat
open import Prelude.Fin
open import Prelude.Unit
open import Prelude.List using (List ; [] ; _::_)
infixr 40 _::_
data Vec (A : Set) : Nat -> Set where
_::_ : forall {n} -> A -> Vec A n -> Vec A (S n)
[] : Vec A Z
infixr 30 _++_
_++_ : {A : Set}{m n : Nat} -> ... | {
"alphanum_fraction": 0.4444444444,
"avg_line_length": 27.7627118644,
"ext": "agda",
"hexsha": "d9d2df104a3b101be8afeaf4045bf26562fde4bd",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-03-12T... |
{-# OPTIONS --without-K #-}
module Fmmh where
open import Data.List using (List)
open import Pitch
-- Reconstruction of "Functional Modelling of Musical Harmony" (ICFP 2011)
-- using similar notation. Original code:
-- https://github.com/chordify/HarmTrace-Base
data Mode : Set where
maj : Mode
min : Mode
data... | {
"alphanum_fraction": 0.6469622332,
"avg_line_length": 24.8571428571,
"ext": "agda",
"hexsha": "7c372232f413bb661f42692cb3944709dda4e3b8",
"lang": "Agda",
"max_forks_count": 3,
"max_forks_repo_forks_event_max_datetime": "2020-11-10T04:04:40.000Z",
"max_forks_repo_forks_event_min_datetime": "2019-01-12T... |
module muRec where
open import Data.Nat
open import Data.Sum
open import Relation.Binary.PropositionalEquality as PE
open import PropsAsTypes
mutual
record D (A : Set) : Set where
coinductive
field
step : Dμ A
data Dμ (A : Set) : Set where
now : A → Dμ A
later : D A → Dμ A
open D publi... | {
"alphanum_fraction": 0.5171762929,
"avg_line_length": 29.7640449438,
"ext": "agda",
"hexsha": "4093780888ffd0706a3b86a35535324cc8206011",
"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.CommAlgebra.Instances.FreeCommAlgebra where
{-
The free commutative algebra over a commutative ring,
or in other words the ring of polynomials with coefficients in a given ring.
Note that this is a constructive definition, which entails that polynomials
cannot be r... | {
"alphanum_fraction": 0.467994167,
"avg_line_length": 43.6118421053,
"ext": "agda",
"hexsha": "2638d4cec4e22ade0941759770e7d25b49bd24d3",
"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 Imports.Issue5357-B where
import Imports.Issue5357-D
| {
"alphanum_fraction": 0.85,
"avg_line_length": 20,
"ext": "agda",
"hexsha": "73911edaa3f6823f38973634630504b8438082a1",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:08.000Z",
... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Reflection-based solver for monoid equalities
------------------------------------------------------------------------
--
-- This solver automates the construction of proofs of equivalences
-- between monoid expr... | {
"alphanum_fraction": 0.4810574521,
"avg_line_length": 35.3235294118,
"ext": "agda",
"hexsha": "e9f150e22f6d86a1eb8aead1a1cd0aef6097703b",
"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 --no-import-sorts --safe #-}
module Cubical.HITs.SmashProduct where
open import Cubical.HITs.SmashProduct.Base public
-- open import Cubical.HITs.SmashProduct.Properties public
| {
"alphanum_fraction": 0.7810945274,
"avg_line_length": 28.7142857143,
"ext": "agda",
"hexsha": "9a9c934212d8506ec51a8035dd9a4322496d5bb8",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2021-11-22T02:02:01.000Z",
"max_forks_repo_forks_event_min_datetime": "2021-11-22T... |
{-# OPTIONS --without-K --safe #-}
open import Categories.Category
open import Categories.Functor
-- Street fibration, which is the version of fibration that respects the principle of equivalence.
-- https://ncatlab.org/nlab/show/Grothendieck+fibration#StreetFibration
module Categories.Functor.Fibration {o ℓ e o′ ℓ′ ... | {
"alphanum_fraction": 0.6395663957,
"avg_line_length": 33.5454545455,
"ext": "agda",
"hexsha": "96732aad876672ad58c19f5988a3dd83190bef8f",
"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.Homotopy.EilenbergSteenrod where
{-
This module contains the Eilenberg-Steenrod axioms for ordinary
reduced cohomology theories with binary additivity.
The axioms are based on the ones given in Cavallo's MSc thesis
(https://www.cs.cmu.edu/~ecavallo/wor... | {
"alphanum_fraction": 0.6415401302,
"avg_line_length": 36.88,
"ext": "agda",
"hexsha": "ffcef42b61207e2053f4ef319dbe9ad305975846",
"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": "... |
data D : Set → Set1 where
c : (A B : Set) → D (A → B)
test : (X : Set) → D X → Set
test .(A → B) (c A B) = A
-- this should crash Epic as long as A is considered forced in constructor c
| {
"alphanum_fraction": 0.5706806283,
"avg_line_length": 21.2222222222,
"ext": "agda",
"hexsha": "ccf52b1f824b0b273120d2f07d2e9631194b5215",
"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... |
postulate
A : Set
P : A → Set
p : (a : A) → P a
record R : Set where
field
a : A
b : P _
b = p a
test : A
test = R.b
| {
"alphanum_fraction": 0.4592592593,
"avg_line_length": 9.6428571429,
"ext": "agda",
"hexsha": "afdc14b918bc4db01678f9a2c7f5a6f5108c28a3",
"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... |
-- Andreas, 2014-09-23
-- Check fixity declarations also in new 'instance' block.
module _ where
postulate
D : Set
instance
infixl 0 D Undeclared
postulate d : D
-- Should fail with error:
-- Names out of scope in fixity declarations: Undeclared
| {
"alphanum_fraction": 0.7265625,
"avg_line_length": 17.0666666667,
"ext": "agda",
"hexsha": "00c5a37b30e40c7dd8bde1e3abcb7d16affb364f",
"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... |
------------------------------------------------------------------------------
-- Example using distributive laws on a binary operation via Agsy
------------------------------------------------------------------------------
{-# OPTIONS --allow-unsolved-metas #-}
{-# OPTIONS --exact-split #-}
{-# OPTIO... | {
"alphanum_fraction": 0.4126721763,
"avg_line_length": 31.8421052632,
"ext": "agda",
"hexsha": "8981ecc12a391eec35640dd1a2cfb2b83af96105",
"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 --cubical --safe --no-import-sorts #-}
module Cubical.Algebra.Algebra where
open import Cubical.Algebra.Algebra.Base public
| {
"alphanum_fraction": 0.7591240876,
"avg_line_length": 27.4,
"ext": "agda",
"hexsha": "3ae394189ffb5e53469b8d3200524d01c5e00692",
"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": "f... |
{-# OPTIONS --safe #-}
module Definition.Conversion.FullReduction where
open import Definition.Untyped as U hiding (wk)
open import Definition.Untyped.Properties
open import Definition.Typed
open import Definition.Typed.Properties
open import Definition.Typed.EqRelInstance
open import Definition.Typed.Weakening
open ... | {
"alphanum_fraction": 0.5101382919,
"avg_line_length": 51.2057416268,
"ext": "agda",
"hexsha": "253e2907a3353b2ceaa60efbeac261bdbfd4fc74",
"lang": "Agda",
"max_forks_count": 2,
"max_forks_repo_forks_event_max_datetime": "2022-02-15T19:42:19.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-01-26T... |
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9.
Copyright (c) 2021, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl
-}
open import LibraBFT.Base.Types
import LibraBFT.Impl.Consensus.EpochMana... | {
"alphanum_fraction": 0.6799103504,
"avg_line_length": 43.8214285714,
"ext": "agda",
"hexsha": "cd5e8aa03295a6a0a5af9b43ecfdfdb0f904abd9",
"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
--guardedness-preserving-type-constructors #-}
module Issue690b where
open import Common.Coinduction
data Rec (A : ∞ Set) : Set where
fold : (x : ♭ A) → Rec A
infixr 4 _,_
record Σ (A : Set) (B : A → Set) : Set where
constructor _,_
field
proj₁ : A
proj₂ : B pro... | {
"alphanum_fraction": 0.5457271364,
"avg_line_length": 16.2682926829,
"ext": "agda",
"hexsha": "4982d3e5aea9c4a2addc9b0fd281bc66628fab58",
"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... |
------------------------------------------------------------------------
-- The Agda standard library
--
-- Core properties related to propositional list membership.
--
-- This file is needed to break the cyclic dependency with the proof
-- `Any-cong` in `Data.Any.Properties` which relies on `Any↔` in this
-- file.
---... | {
"alphanum_fraction": 0.5413895048,
"avg_line_length": 35.1428571429,
"ext": "agda",
"hexsha": "3710a14308a178ebc035875ba78680ea62df93c3",
"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 core where
open import Data.Nat
open import Data.Vec
open import Data.Fin
open import Data.String
open import Data.Rational
open import Data.Sum
open import Data.Unit
open import Binders.Var
{-
module ABTLearning where
data View {univ : Set} (f : univ -> Set) (a : univ) : list univ -> Set where
S... | {
"alphanum_fraction": 0.5442225392,
"avg_line_length": 22.253968254,
"ext": "agda",
"hexsha": "b17baaee9e65b5f392bba2be835aa27006d17f8a",
"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 hiding (_::_)
module algebra.ReducedWord {i} (A : Type i) (dec : has-dec-eq A) where
open import algebra.Word A
is-reduced : Word → Type i
is-reduced nil = Lift ⊤
is-reduced (x :: nil) = Lift ⊤
is-reduced (x :: y :: w) = is-reduce... | {
"alphanum_fraction": 0.5427422058,
"avg_line_length": 44.5223880597,
"ext": "agda",
"hexsha": "f9d0aede8a1b1e3d339b476a3eb8ab8b3f332b7d",
"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 --no-termination-check
#-}
------------------------------------------------------------------------
-- Examples
------------------------------------------------------------------------
module RecursiveDescent.Coinductive.Examples where
open import Data.List
open import Data.Nat
open import Data.Bool
op... | {
"alphanum_fraction": 0.5017622557,
"avg_line_length": 18.9151515152,
"ext": "agda",
"hexsha": "d2179f6f6512ab064f5f3b4142e1e7dabd76ddce",
"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 debug output should include the text "Termination checking
-- mutual block MutId 0" once, not three times.
{-# OPTIONS -vterm.mutual.id:40 #-}
open import Agda.Builtin.Nat
record R : Set₁ where
field
A : Set
f0 : Nat → Nat
f0 zero = zero
f0 (suc n) = f0 n
f1 : Nat → Nat
f1 zero = zero
... | {
"alphanum_fraction": 0.6150627615,
"avg_line_length": 17.0714285714,
"ext": "agda",
"hexsha": "62714781123051e7ba048148ab5f6cc32f444c6f",
"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... |
-- Andreas, 2013-11-07
-- Instance candidates are now considered modulo judgemental equality.
module Issue899 where
postulate
A B : Set
f : {{ x : A }} → B
instance a : A
instance
a' : A
a' = a
test : B
test = f
{- The previous code fails with the following message:
Resolve implicit argument _x_257 : ... | {
"alphanum_fraction": 0.6142034549,
"avg_line_length": 18.6071428571,
"ext": "agda",
"hexsha": "0dbc72c2f9fa975a98a02b696ac8b18e4e77ffbd",
"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... |
variable
X : Set
postulate
foo : ∀ A -> X -- error at `src/full/Agda/TypeChecking/Monad/MetaVars.hs:98`
-- expected: `{X : Set} -> _1 -> X`
Y : Set
bar : ∀ A -> Y -- normal `_1 -> Y` type with unsolved metavar
| {
"alphanum_fraction": 0.5308641975,
"avg_line_length": 24.3,
"ext": "agda",
"hexsha": "8f4ec3a0b305e6d3d14f310fc62894a38e068652",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:0... |
-- Andreas, 2012-09-15
-- Positive effects of making Agda recognize constant functions.
-- Arguments to constant functions are ignored in definitional equality.
{-# OPTIONS --copatterns #-}
module NonvariantPolarity where
open import Common.Equality
data ⊥ : Set where
record ⊤ : Set where
constructor trivial
data ... | {
"alphanum_fraction": 0.654109589,
"avg_line_length": 21.3658536585,
"ext": "agda",
"hexsha": "781e0e82139ebf59070138bcf9e6b226166a1ed2",
"lang": "Agda",
"max_forks_count": 1,
"max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z",
"max_forks_repo_forks_event_min_datetime": "2022-03-12T1... |
{-# OPTIONS --cubical --safe --guardedness #-}
module Issue3564-2 where
open import Issue3564
| {
"alphanum_fraction": 0.7113402062,
"avg_line_length": 16.1666666667,
"ext": "agda",
"hexsha": "d29e22a06e747004c19709f453a9bb67cdb83f07",
"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... |
-- Andreas, 2016-08-08, issue #2131 reported by Andrea
{-# OPTIONS --allow-unsolved-metas #-}
-- {-# OPTIONS --show-irrelevant #-}
-- {-# OPTIONS -v tc:25 #-}
postulate
A : Set
P : (F : .(U : Set) → Set) → Set
const : (X : Set) .(Y : Set) → Set
const X Y = X
works : (G : .(Z : Set) → Set) (p : P G) → P (λ V → ... | {
"alphanum_fraction": 0.5264452645,
"avg_line_length": 27.1,
"ext": "agda",
"hexsha": "7db79af0d3e85b50b2e5758765c3ce706a071ad6",
"lang": "Agda",
"max_forks_count": 371,
"max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z",
"max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:0... |
module Lec5 where
open import Lec1Done
open import Lec2Done
open import Lec3Done
data List (X : Set) : Set where -- BUILTIN insists on level polymorphism
[] : List X
_,-_ : (x : X)(xs : List X) -> List X
{-# BUILTIN LIST List #-}
{-# BUILTIN NIL [] #-}
{-# BUILTIN CONS _,-_ #-}
{-# COMPILE GHC List = data [] ... | {
"alphanum_fraction": 0.5869536511,
"avg_line_length": 35.5539906103,
"ext": "agda",
"hexsha": "c2d17a528560997d58645ac4aca852be134130c3",
"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... |
open import Agda.Builtin.Size
postulate
X : Set
P : X → Set
Q : (x : X) → P x → Set
data D (i : Size) : Set where
c : D i
f : (i : Size) → D i → X
f i c = {!!}
g : (x : X) (y : P x) → Q x y → Q x y
g _ _ q = q
h : (i : Size) (n : D i) → P (f i n)
h _ c = {!!}
k : (n : D ∞) → Q (f ∞ n) (h ∞ n)
k _ = g _ (h... | {
"alphanum_fraction": 0.3987915408,
"avg_line_length": 15.0454545455,
"ext": "agda",
"hexsha": "d348721978461bf3b2d96ca240e1b99b590f716f",
"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 #-}
module ConcretePermutation where
import Level using (zero)
open import Data.Nat using (ℕ; _+_; _*_)
open import Data.Fin using (Fin; zero; suc; inject+; raise)
open import Data.Sum
using (_⊎_; inj₁; inj₂; [_,_]′)
renaming (map to map⊎)
open import Data.Product using (_×_; proj₁; proj₂;... | {
"alphanum_fraction": 0.4885314552,
"avg_line_length": 32.4290123457,
"ext": "agda",
"hexsha": "5c602b9f660e9e1cfd708ad8ecce04e5ef9e10c9",
"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... |
{-
Reflection-based tools for converting between iterated record types, particularly between
record types and iterated Σ-types. Currently requires eta equality.
See end of file for examples.
-}
{-# OPTIONS --cubical --no-import-sorts --no-exact-split --safe #-}
module Cubical.Reflection.RecordEquiv where
open... | {
"alphanum_fraction": 0.6239257477,
"avg_line_length": 29.5329949239,
"ext": "agda",
"hexsha": "d054d023aa191431255484b87b08432dfbccd32f",
"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.