Search is not available for this dataset
text
string
meta
dict
{-# OPTIONS --with-K -vtc.lhs.unify:50 #-} open import Agda.Primitive using (Setω) open import Agda.Builtin.Equality using (_≡_; refl) -- change `Set` to `Setω` breaks `seq` data RecD (I : Set) : Setω where ι : (i : I) → RecD I data RecO {I J : Set} (e : I → J) : RecD I → RecD J → Setω where ι : (i : I) ...
{ "alphanum_fraction": 0.5218978102, "avg_line_length": 32.2352941176, "ext": "agda", "hexsha": "42e960d20f5c17ff3559bff442880ffa6028344c", "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 --postfix-projections --safe #-} module Cubical.Categories.Presheaf.Base where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Isomorphism open import Cubical.Foundations.Equiv open import Cubical.HITs.PropositionalTruncation open import Cubical.Categor...
{ "alphanum_fraction": 0.5807926829, "avg_line_length": 30.8705882353, "ext": "agda", "hexsha": "da5ba1d2756384bf3f6a8beb7e97645b5ceb7246", "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 UniqueFloatNaN where -- See Issue: Inconsistency: Rounding op differentiates NaNs #3749 -- https://github.com/agda/agda/issues/3749 open import Agda.Builtin.Float renaming ( primRound to round ; primFloor to floor ; primCeiling to ceiling ; primFloatNegate to -_ ; ...
{ "alphanum_fraction": 0.6589285714, "avg_line_length": 20, "ext": "agda", "hexsha": "83ca05e43b9c4459069326376bae901213e5ffe9", "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-01T18:30:09.00...
------------------------------------------------------------------------ -- The Agda standard library -- -- Some properties about integers ------------------------------------------------------------------------ module Data.Integer.Properties where open import Algebra import Algebra.FunctionProperties import Algebra....
{ "alphanum_fraction": 0.4528934644, "avg_line_length": 33.390625, "ext": "agda", "hexsha": "19cf2d498547b1ba9b506a5a8e5a4bb9c0dcc7a6", "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 Nat open import Prelude open import List open import contexts open import judgemental-erase open import moveerase open import sensibility open import statics-checks open import statics-core module examples where -- actions must always specify enough names to name all inserted holes. depending on -- th...
{ "alphanum_fraction": 0.5833835765, "avg_line_length": 44.1117021277, "ext": "agda", "hexsha": "ae003f66bc106b73cc170468bb8b63fd599bb78f", "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 050-group where -- We need monoids. open import 040-monoid -- A group is a monoid where every element has an inverse. This is -- equivalent to saying that we have a function mapping every element -- to an inverse of that element: this function is called "invert" -- below. record Group {M : Set} (_==_ : M...
{ "alphanum_fraction": 0.4804804805, "avg_line_length": 38.85, "ext": "agda", "hexsha": "0a3a413faca02b54677ec1754d3fed592e98a988", "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": "...
------------------------------------------------------------------------------ -- Some properties of the function iter₀ ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorp...
{ "alphanum_fraction": 0.496124031, "avg_line_length": 31.2727272727, "ext": "agda", "hexsha": "490dcbc9d2ea76160838b3e34295e6d8b4627209", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-19T1...
{-# OPTIONS --without-K #-} {- After a few preliminary lemmata about representing dependent functions, this module will derive the dependent universal property of our truncations (defined later) from the non-dependent one. -} module Universe.Trunc.Universal where open import lib.Basics open import lib.Equivalen...
{ "alphanum_fraction": 0.567008547, "avg_line_length": 43.6567164179, "ext": "agda", "hexsha": "72343d2b0e96c2917e74d8396c4da706d4a6ea9f", "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...
-- notes-03-wednesday.agda open import mylib {- Classical vs intuitionistic logic In classical logica, we assume that each proposition is either true or false. Excluded middle, tertium non datur (the third is not given). To prove P, assume not P and derive a contradiction: indirect proof, reduction ad absu...
{ "alphanum_fraction": 0.6122022566, "avg_line_length": 20.1092436975, "ext": "agda", "hexsha": "a4bfe0de1281a41609ed6bc52b19445d7482897e", "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...
------------------------------------------------------------------------ -- Substitutions ------------------------------------------------------------------------ module RecursiveTypes.Substitution where open import Data.Fin.Substitution open import Data.Fin.Substitution.Lemmas import Data.Fin.Substitution.List as Li...
{ "alphanum_fraction": 0.4418228082, "avg_line_length": 33.2538461538, "ext": "agda", "hexsha": "279c86d5c3656f9bac63e0f6c7039786e45734f2", "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 tactic that applies congruence and symmetry of equality proofs. -- Given a hole and a lemma it tries (in order) -- - refl -- - lemma -- - sym lemma -- - f $≡ X₁ *≡ .. *≡ Xₙ and recurses on Xᵢ -- if the goal is f us ≡ f vs -- Hidden and instance arguments of f are left alone. module Tactic.Cong whe...
{ "alphanum_fraction": 0.5735243944, "avg_line_length": 35.313253012, "ext": "agda", "hexsha": "52e962e1dae80ccc9a38d75c3bc04d689d79daca", "lang": "Agda", "max_forks_count": 24, "max_forks_repo_forks_event_max_datetime": "2021-04-22T06:10:41.000Z", "max_forks_repo_forks_event_min_datetime": "2015-03-12T...
------------------------------------------------------------------------ -- A definitional interpreter ------------------------------------------------------------------------ {-# OPTIONS --cubical --sized-types #-} module Lambda.Partiality-monad.Inductive.Interpreter where open import Equality.Propositional.Cubical...
{ "alphanum_fraction": 0.461134006, "avg_line_length": 31.5560538117, "ext": "agda", "hexsha": "de6ead6c0baf62068214a99416a05ab1c7517b58", "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...
import Issue953 g : Set₁ g = Issue953.f
{ "alphanum_fraction": 0.6904761905, "avg_line_length": 7, "ext": "agda", "hexsha": "9e3deeb351fe4c4bc0f6ac1ade59db15c75dcc38", "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.0...
-------------------------------------------------------------------------------- -- This is part of Agda Inference Systems open import Agda.Builtin.Equality open import Data.Product open import Data.Sum open import Data.Vec using (Vec; fromList; length) renaming (lookup to get) open import Data.Fin using (Fin) open i...
{ "alphanum_fraction": 0.5108323831, "avg_line_length": 34.1688311688, "ext": "agda", "hexsha": "829194f6f7909d89c3c263031a8a85af0214d1ac", "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 Functional hiding (Domain) import Structure.Logic.Classical.NaturalDeduction import Structure.Logic.Classical.SetTheory.ZFC module Structure.Logic.Classical.SetTheory.ZFC.Proofs {ℓₗ} {Formula} {ℓₘₗ} {Proof} {ℓₒ} {Domain} ⦃ classicLogic : _ ⦄ (_∈_ : Domain → Domain → Formula) ⦃ signature : _ ⦄ ⦃ a...
{ "alphanum_fraction": 0.4786130453, "avg_line_length": 34.8366336634, "ext": "agda", "hexsha": "98e71337bccc51f7af7c126199df61c107698c78", "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.Float using ( ℝ ; _≟_ ; -_ ; _+_ ; _*_ ; _-_ ; _/_ ; _/?_ ; _≤_ ; _<_ ; show ) open import FRP.JS.String using () renaming ( _≟_ to _≟s_ ) open import FRP.JS.QUnit using ( TestSuite ; ok ; ...
{ "alphanum_fraction": 0.3854047891, "avg_line_length": 33.3037974684, "ext": "agda", "hexsha": "8d1e19e4de760cf796d34fb3443d80bf2bbee262", "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 --without-K --rewriting #-} open import HoTT open import cohomology.Theory open import homotopy.PushoutSplit open import homotopy.DisjointlyPointedSet open import cw.CW module cw.cohomology.WedgeOfCells {i} (OT : OrdinaryTheory i) {n} (⊙skel : ⊙Skeleton {i} (S n)) where open OrdinaryTheory OT open impo...
{ "alphanum_fraction": 0.5540401441, "avg_line_length": 35.9814814815, "ext": "agda", "hexsha": "334505a9146d8967f5e1a391e7315a8fa0d24a62", "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 --warning=error --safe --without-K #-} open import LogicalFormulae module Maybe where data Maybe {a : _} (A : Set a) : Set a where no : Maybe A yes : A → Maybe A joinMaybe : {a : _} → {A : Set a} → Maybe (Maybe A) → Maybe A joinMaybe no = no joinMaybe (yes s) = s bindMaybe : {a b : _} → {A : Set a}...
{ "alphanum_fraction": 0.5555555556, "avg_line_length": 33.9545454545, "ext": "agda", "hexsha": "6f429c268100236db1db9e8ce308736f41492a19", "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 --cubical --safe --no-import-sorts #-} {- Implements the monadic interface of propositional truncation, for reasoning in do-syntax. -} module Cubical.HITs.PropositionalTruncation.Monad where open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.Foundations.Str...
{ "alphanum_fraction": 0.6472919419, "avg_line_length": 22.2647058824, "ext": "agda", "hexsha": "db769bf4910f51db4e07ca62980ad10a6483dee0", "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 -- -- Applicative functors on indexed sets (predicates) ------------------------------------------------------------------------ -- Note that currently the applicative functor laws are not included -- here. {-# OPTIO...
{ "alphanum_fraction": 0.4715025907, "avg_line_length": 26.4901960784, "ext": "agda", "hexsha": "545ac4a4a66ece7c0a908c63c7e46bd777332608", "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...
-- Parameter arguments of overloaded projection applications -- should not be skipped! record R A : Set where field f : A → A open R record S A : Set where field f : A → A open S r : ∀{A} → R A f r x = x test : ∀{A : Set} → A → A test a = f r a
{ "alphanum_fraction": 0.6086956522, "avg_line_length": 14.8823529412, "ext": "agda", "hexsha": "33d8b37684675cc965951aae8ce0d05ff65f2a2c", "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 Issue4022.Import where open import Agda.Builtin.Nat Binary : Set Binary = Nat → Nat → Nat -- Search should be able to find `plus` if: -- * either we do not normalise the type and look for `Binary` -- * or we do normalise the type and look for `Nat` plus : Binary plus = _+_
{ "alphanum_fraction": 0.701754386, "avg_line_length": 20.3571428571, "ext": "agda", "hexsha": "97f0f2549b01ef413e2ebb923e368d69de2a8209", "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...
{- Functions building UARels and DUARels on function types -} {-# OPTIONS --no-exact-split --safe #-} module Cubical.Displayed.Function where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Foundations.Function open import Cubical.Foundations.Isomorphism open impor...
{ "alphanum_fraction": 0.5473053892, "avg_line_length": 30.5487804878, "ext": "agda", "hexsha": "501df080b3a93eb2593455383c90633fa5418c90", "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...
-- AIM XXXV, 2022-05-06, issue #5891. -- When checking that the sort of a data type admits data definitions -- (checkDataSort), we need to handle the case of PiSort. mutual Univ1 = _ Univ2 = _ Univ3 = _ postulate A1 : Univ1 A2 : Univ2 A : Univ3 A = A1 → A2 -- This demonstrates that the sort of...
{ "alphanum_fraction": 0.6556420233, "avg_line_length": 18.3571428571, "ext": "agda", "hexsha": "ff3ed85306ee306425f34d814403c8b01dd2de7d", "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.Equality where data _==_ {A : Set} (x : A) : A -> Set where refl : x == x {-# BUILTIN EQUALITY _==_ #-} sym : {A : Set} (x : A) (y : A) -> x == y -> y == x sym x .x refl = refl cong : {A : Set} {B : Set} (x : A) (y : A) (f : A -> B) -> x == y -> f x == f y cong x y f refl = refl
{ "alphanum_fraction": 0.4548494983, "avg_line_length": 23, "ext": "agda", "hexsha": "1a088d46445671efd86022bcd99bd7065dd0f168", "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": "e97...
module Issue271 where data D (A : Set) : Set where d : D A → D A f : {A : Set} → D A → D A f x = d {!!}
{ "alphanum_fraction": 0.4907407407, "avg_line_length": 13.5, "ext": "agda", "hexsha": "6f27001ce2635ee77c984e1d2d57bc9ca75d3bc4", "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 --prop --rewriting #-} open import Examples.Sorting.Parallel.Comparable module Examples.Sorting.Parallel.MergeSortPar.Merge (M : Comparable) where open Comparable M open import Examples.Sorting.Parallel.Core M open import Calf costMonoid open import Calf.ParMetalanguage parCostMonoid open import Calf.Ty...
{ "alphanum_fraction": 0.5246607727, "avg_line_length": 51.0396694215, "ext": "agda", "hexsha": "b3d9eb49678ba12fd70ccae5505f6f61e3928c66", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-01-29T08:12:01.000Z", "max_forks_repo_forks_event_min_datetime": "2021-10-06T...
module Data.List.Instance where open import Category.FAM open import Data.List open import Data.List.Properties open import Function using (_$_) open import Relation.Binary.PropositionalEquality hiding ([_]) instance ListFunctor : ∀ {ℓ} → Functor {ℓ} List ListFunctor = record { _<$>_ = map ; i...
{ "alphanum_fraction": 0.419858156, "avg_line_length": 52.875, "ext": "agda", "hexsha": "b0cf155751aadfdb4d1d509357e3f4767ebb059d", "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 --cubical --no-import-sorts #-} module NumberFirstAttempt where open import Agda.Primitive renaming (_⊔_ to ℓ-max; lsuc to ℓ-suc; lzero to ℓ-zero) private variable ℓ ℓ' ℓ'' : Level open import Cubical.Foundations.Everything renaming (_⁻¹ to _⁻¹ᵖ; assoc to ∙-assoc) open import Cubical.Relation.Bina...
{ "alphanum_fraction": 0.577324066, "avg_line_length": 33.2019230769, "ext": "agda", "hexsha": "756256d866410bd0744ce7724479246febde92e1", "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 Nat where data Nat : Set where zero : Nat suc : Nat -> Nat one : Nat one = suc zero
{ "alphanum_fraction": 0.5596330275, "avg_line_length": 10.9, "ext": "agda", "hexsha": "d6fd5231615618318dddfb684c8f146647b1e99a", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "d...
------------------------------------------------------------------------ -- A variant of the propositional truncation operator with an erased -- truncation constructor ------------------------------------------------------------------------ -- Partly following the HoTT book, but adapted for erasure. {-# OPTIONS --era...
{ "alphanum_fraction": 0.4812963282, "avg_line_length": 33.4673076923, "ext": "agda", "hexsha": "8c18d1781aacb098608ab72694f2ffc67050b8fb", "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.Functor hiding (id) module Categories.Diagram.Colimit.Properties {o ℓ e} {o′ ℓ′ e′} {C : Category o ℓ e} {J : Category o′ ℓ′ e′} (F : Functor J C) where private module F = Functor F module C = Category C open C o...
{ "alphanum_fraction": 0.668627451, "avg_line_length": 29.1428571429, "ext": "agda", "hexsha": "36a8494bb9ea1d5f81fbba9dcfb1a4acf566e3d6", "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-02T...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Data.HomotopyGroup where open import Cubical.Data.HomotopyGroup.Base public
{ "alphanum_fraction": 0.7692307692, "avg_line_length": 28.6, "ext": "agda", "hexsha": "22829cea626e9d90069058f76001070928b5deda", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-22T02:02:01.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-22T02:02:01....
{-# OPTIONS --without-K #-} open import lib.Basics open import lib.types.Nat open import lib.types.Group open import lib.types.TLevel module lib.types.Int where data ℤ : Type₀ where O : ℤ pos : (n : ℕ) → ℤ neg : (n : ℕ) → ℤ Int = ℤ succ : ℤ → ℤ succ O = pos O succ (pos n) = pos (S n) succ (neg O) = O succ (n...
{ "alphanum_fraction": 0.5207948244, "avg_line_length": 26.1774193548, "ext": "agda", "hexsha": "e4898826768711adcc3df81fd4bea3d51dae60c7", "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 Numeral.Sign.Oper.Proofs where
{ "alphanum_fraction": 0.8421052632, "avg_line_length": 19, "ext": "agda", "hexsha": "a697b20c25b24b68c98115085e960fdc8233f4c9", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "70f...
{-# OPTIONS --cubical #-} module _ where open import Agda.Primitive.Cubical open import Agda.Builtin.Cubical.Path open import Agda.Builtin.Cubical.Sub open import Agda.Primitive renaming (_⊔_ to ℓ-max) open import Agda.Builtin.Sigma private internalFiber : ∀ {ℓ ℓ'} {A : Set ℓ} {B : Set ℓ'} (f : A → B) (y : B) → Set ...
{ "alphanum_fraction": 0.4636463281, "avg_line_length": 42.765625, "ext": "agda", "hexsha": "f45a6212e06f2e11847ac48ddd88d31023551522", "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 Structures open import Data.String using (String) open import Data.Nat open import Data.Nat.Show renaming (show to showNat) open import Data.Vec as V using (Vec; []; _∷_) open import Data.List as L using (List; []; _∷_) open import Data.Sum open import Data.Product open import Relation.Nullary open import F...
{ "alphanum_fraction": 0.5533093741, "avg_line_length": 34.78125, "ext": "agda", "hexsha": "251eae0b7cca9b5c702c7169c2b739edb3413a59", "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"...
------------------------------------------------------------------------ -- The delay monad, defined coinductively, with a sized type parameter ------------------------------------------------------------------------ {-# OPTIONS --sized-types #-} module Delay-monad.Sized where open import Equality.Propositional open...
{ "alphanum_fraction": 0.5195154778, "avg_line_length": 24.3606557377, "ext": "agda", "hexsha": "dcc4fdee8e50180e22f376fc20568534841db841", "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 -v term.with.inline:20 -v term.with.call:30 #-} data Nat : Set where zero : Nat suc : Nat → Nat _+_ : Nat → Nat → Nat zero + m = m suc n + m = suc (n + m) data [_] : Nat → Set where ⟨_⟩ : ∀ n → [ n ] f : Nat → Nat g : Nat → Nat h : ∀ n → [ f n ] f zero = zero f (suc n) with f n f (suc n) | zero...
{ "alphanum_fraction": 0.5202312139, "avg_line_length": 17.3, "ext": "agda", "hexsha": "3eb746df4c32c1e8845872be83061e156313d6ca", "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-12T11:35:18....
{-# 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 module cohomology.SpectrumModel {i} (E : ℤ → Ptd i) (spectrum : (n : ℤ) → ⊙Ω (E (succ n)) == E n...
{ "alphanum_fraction": 0.4615073752, "avg_line_length": 36.1240875912, "ext": "agda", "hexsha": "d38c65238cdb0426a261853473eaabd030b491b1", "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 Prelude import GSeTT.Syntax import GSeTT.Rules open import CaTT.Ps-contexts open import CaTT.Relation open import CaTT.Uniqueness-Derivations-Ps open import CaTT.Decidability-ps open import CaTT.Fullness import GSeTT.Typed-Syntax module CaTT.CaTT where J : Set₁ J = Σ (ps...
{ "alphanum_fraction": 0.4946873226, "avg_line_length": 61.0346534653, "ext": "agda", "hexsha": "61aa703892d579a579f1290039d7a26212d695c7", "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 Issue1494 where open import Issue1494.Helper module M (r : Record) where open Module r postulate A : Set a b : A Foo : a ≡ b Foo = {!!}
{ "alphanum_fraction": 0.5963855422, "avg_line_length": 11.0666666667, "ext": "agda", "hexsha": "c7df4364a4b6c05e60b5c8c094f9b099d0dc8521", "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 --without-K #-} open import M-types.Base.Core module M-types.Base.Sum where infixr 4 _,_ record ∑ (X : Ty ℓ₀) (Y : X → Ty ℓ₁) : Ty (ℓ-max ℓ₀ ℓ₁) where constructor _,_ field pr₀ : X pr₁ : Y pr₀ open ∑ public {-# BUILTIN SIGMA ∑ #-} ∑-syntax :...
{ "alphanum_fraction": 0.4562607204, "avg_line_length": 18.8064516129, "ext": "agda", "hexsha": "7bb485c933109d14718ee90351f33df054fedee1", "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 WellTypedTerms where open import Library open import Categories open import Functors open import RMonads open import FunctorCat open import Categories.Sets open import Categories.Families data Ty : Set where ι : Ty _⇒_ : Ty → Ty → Ty data Con : Set where ε : Con _<_ : Con → Ty → Con data Var : Co...
{ "alphanum_fraction": 0.4931972789, "avg_line_length": 26.8333333333, "ext": "agda", "hexsha": "a98c591d74763c3fa6320f1d975b8846419e15d5", "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...
module Ag04 where data _≡_ {A : Set} (x : A) : A → Set where refl : x ≡ x infix 4 _≡_ ≡-sym : ∀ {A : Set} {x y : A} → x ≡ y → y ≡ x ≡-sym refl = refl trans : ∀ {A : Set} {x y z : A} → x ≡ y → y ≡ z → x ≡ z trans refl refl = refl cong : ∀ {A B : Set} (f : A → B) {x y : A} → x ≡ y → f x ≡ f y cong f refl = refl ...
{ "alphanum_fraction": 0.4139941691, "avg_line_length": 21.1728395062, "ext": "agda", "hexsha": "671283ba42c7038557fc1ec8d9ad35a24adb4aad", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-12-13T04:50:46.000Z", "max_forks_repo_forks_event_min_datetime": "2019-12-13T...
------------------------------------------------------------------------------ -- Definition of FOTC Conat using Agda's co-inductive combinators ------------------------------------------------------------------------------ {-# OPTIONS --allow-unsolved-metas #-} {-# OPTIONS --exact-split #-} {-# OPTIO...
{ "alphanum_fraction": 0.4855072464, "avg_line_length": 34.5, "ext": "agda", "hexsha": "93424e880b9f1c1a3c0a31b35c99eed7b23ac696", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-19T14:18:30....
module DuplicateBuiltinBinding where {-# BUILTIN STRING String #-} {-# BUILTIN STRING String #-}
{ "alphanum_fraction": 0.7272727273, "avg_line_length": 16.5, "ext": "agda", "hexsha": "c17854556ffc704f5bbb17d989f18483e6d6dbeb", "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": "6...
data Nat : Set where succ : Nat → Nat data Fin : Nat → Set where zero : (n : Nat) → Fin (succ n) data Tm (n : Nat) : Set where var : Fin n → Tm n piv : Fin (succ n) → Tm n data Cx : Nat → Set where succ : (n : Nat) → Tm n → Cx (succ n) data CxChk : ∀ n → Cx n → Set where succ : (n : Nat) (T : Tm n) → C...
{ "alphanum_fraction": 0.5469448584, "avg_line_length": 27.9583333333, "ext": "agda", "hexsha": "0106b41326f39ad5a47b8f6d4322f4ac6c43b424", "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...
module Common.Coinduction where open import Common.Level infix 1000 ♯_ postulate ∞ : ∀ {a} (A : Set a) → Set a ♯_ : ∀ {a} {A : Set a} → A → ∞ A ♭ : ∀ {a} {A : Set a} → ∞ A → A {-# BUILTIN INFINITY ∞ #-} {-# BUILTIN SHARP ♯_ #-} {-# BUILTIN FLAT ♭ #-} private my-♯ : ∀ {a} {A : Set a} → A → ∞ A ...
{ "alphanum_fraction": 0.4640718563, "avg_line_length": 16.7, "ext": "agda", "hexsha": "36d44bc9addbd662f4bc0d951e44b84078e4fcfc", "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-12T11:35:18....
{-# OPTIONS --without-K #-} open import HoTT module cw.Attached {i j k : ULevel} where -- The type of attaching maps. -- In intended uses, [B] is the type of cells and [C] is the [Sphere]s. Attaching : (A : Type i) (B : Type j) (C : Type k) → Type (lmax i (lmax j k)) Attaching A B C = B → C → A module _ {A : Type i...
{ "alphanum_fraction": 0.5841584158, "avg_line_length": 27.6935483871, "ext": "agda", "hexsha": "474382160fe56d2d606fb5323f84e0c1349a7388", "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 Tactic.Nat.Subtract.By where open import Prelude hiding (abs) open import Builtin.Reflection open import Tactic.Reflection.Quote open import Tactic.Reflection.DeBruijn open import Tactic.Reflection.Substitute open import Tactic.Reflection open import Control.Monad.State open import Tactic.Nat.Reflect open imp...
{ "alphanum_fraction": 0.5431057564, "avg_line_length": 41.9662921348, "ext": "agda", "hexsha": "6efb39bd689378de4afbaf089811d92c0ed1ef1e", "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 --erased-cubical --no-import-sorts #-} module Prelude where open import Agda.Primitive renaming (Set to Type) public open import Agda.Builtin.Reflection hiding (Type) renaming (primQNameEquality to _==_) public open import Reflection using (_>>=_) public open import Agda.Builtin.String...
{ "alphanum_fraction": 0.7454780362, "avg_line_length": 43, "ext": "agda", "hexsha": "f6c2722953bac20a7d895db4dd8c1b6593daa76f", "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-10T04:05:31.00...
------------------------------------------------------------------------------ -- Totality properties respect to ListN ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorph...
{ "alphanum_fraction": 0.5046382189, "avg_line_length": 38.5, "ext": "agda", "hexsha": "d7ed6a02bfd23f413a0185f9c7bb21a841924fc9", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-19T14:18:30....
module FSM where open import Sec4 open import Relation.Binary.PropositionalEquality open import Data.Nat open import Data.Bool -- open import Data.Rational -- open import Data.Integer -- open import Relation.Nullary.Decidable data Loc : Set where A : Loc DONE : Loc record Values : Set where field x : ℕ ...
{ "alphanum_fraction": 0.5133190745, "avg_line_length": 41.4758064516, "ext": "agda", "hexsha": "56160287700a84be719b9670b410a8660360023b", "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 Issue719 where import Common.Size as A module M where private open module A = M -- NOT NICE: -- Duplicate definition of module A. Previous definition of module A -- at /Users/abel/cover/alfa/Agda2-clean/test/Common/Size.agda:7,15-19 -- when scope checking the declaration -- open module A = M
{ "alphanum_fraction": 0.729903537, "avg_line_length": 23.9230769231, "ext": "agda", "hexsha": "33fe303d8112212139c7db8fc13c0beed7a37af7", "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 --without-K --safe #-} module Categories.Functor.Monoidal.Construction.Product where -- The functors associated with the product A × B of -- (braided/symmetric) monoidal categories A and B are again -- (braided/symmetric) monoidal. open import Level using (Level) open import Data.Product using (_,_; <_,_...
{ "alphanum_fraction": 0.6310168181, "avg_line_length": 41.7177419355, "ext": "agda", "hexsha": "b8e2e5c59219d256a654e9305c1ccdad156218d4", "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...
module Tuple where import Level import Data.List as List open import Data.List hiding (_++_; [_]; _∷ʳ_) open import Data.Fin open import Relation.Binary.PropositionalEquality hiding ([_]) infixr 5 _∷_ data Tuple {a} : List (Set a) → Set a where [] : Tuple [] _∷_ : ∀ {A As} → A → Tuple As → Tuple (A ∷ As) [_] :...
{ "alphanum_fraction": 0.5163021048, "avg_line_length": 31.8815789474, "ext": "agda", "hexsha": "7e92f6c22a8bec2f76bed1c28ac2658677585187", "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 builtinInModule where module Str where postulate S : Set {-# BUILTIN STRING S #-} primitive primStringAppend : S → S → S
{ "alphanum_fraction": 0.6884057971, "avg_line_length": 13.8, "ext": "agda", "hexsha": "7938d89c161dd54cbb2fa965e5e28c86db3999f4", "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 #-} open import Categories.Category open import Categories.Functor hiding (id) -- Also defines the category of cocones "over a Functor F" module Categories.Category.Construction.Cocones {o ℓ e} {o′ ℓ′ e′} {C : Category o ℓ e} {J : Category o′ ℓ′ e′} (F : Functor J C) where open Categ...
{ "alphanum_fraction": 0.5764400173, "avg_line_length": 22.637254902, "ext": "agda", "hexsha": "bb046fdd8db7270996c11ab6a050de451aa74c86", "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...
-- Andreas, 2015-08-26 {-# OPTIONS --rewriting #-} -- Should give error open import Common.Equality {-# BUILTIN REWRITE _≡_ #-} {-# REWRITE refl #-}
{ "alphanum_fraction": 0.642384106, "avg_line_length": 18.875, "ext": "agda", "hexsha": "d5ed402fa938aebe6a36ae1a502f1cd73cac9b35", "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 #-} open import M-types.Base.Core open import M-types.Base.Sum open import M-types.Base.Prod module M-types.Base.Eq where infix 4 _≡_ data _≡_ {X : Ty ℓ} : X → X → Ty ℓ where refl : {x : X} → x ≡ x open _≡_ public infix 10 _⁻¹ _⁻¹ : {X : Ty ℓ} {x₀ x₁ : X} → ...
{ "alphanum_fraction": 0.3952241715, "avg_line_length": 25.0243902439, "ext": "agda", "hexsha": "ef7617f60bfd1bda8edff1b6c741fc5494b8667c", "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 Issue3545 where open import Agda.Builtin.Nat open import Agda.Builtin.List open import Common.IO createElem : Nat → Set createElem n = Nat {-# NOINLINE createElem #-} {-# COMPILE JS createElem = function (x0) { return x0; } #-} -- WAS: silently accepted -- WANT: `createElem` is going to be erased; don't...
{ "alphanum_fraction": 0.620414673, "avg_line_length": 21.6206896552, "ext": "agda", "hexsha": "7ac5124afca6d2be66e0352235bb6f98a43e1401", "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...
open import Prelude hiding (id; Bool; _∷_; []) module Examples.CompleteResolution where 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.Sy...
{ "alphanum_fraction": 0.6240310078, "avg_line_length": 21.5, "ext": "agda", "hexsha": "d267558898bd3fb777d9ae6ec76cfbc181f209ae", "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 Section1 where -- 1. Introduction -- =============== -- -- 1.1. Outline of the formalisation -- --------------------------------- -- -- - We formalize terms-in-context, `Γ ⊢ t ∷ A`, as a calculus of proof trees, `Γ ⊢ A`, for -- implicational logic, i.e., term `t` is seen as a proof tree that derives `A` ...
{ "alphanum_fraction": 0.6489890032, "avg_line_length": 40.5611510791, "ext": "agda", "hexsha": "8e255aabbfda1e2f1b52392ed56ef8120c4d411a", "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 Dissect where import Functor import Sets import Isomorphism open Sets open Functor open Functor.Semantics open Functor.Recursive infixr 40 _+₂_ infixr 60 _×₂_ ∇ : U -> U₂ ∇ (K A) = K₂ [0] ∇ Id = K₂ [1] ∇ (F + G) = ∇ F +₂ ∇ G ∇ (F × G) = ∇ F ×₂ ↗ G +₂ ↖ F ×₂ ∇ G diagonal : ...
{ "alphanum_fraction": 0.4314334086, "avg_line_length": 30.5517241379, "ext": "agda", "hexsha": "dbb75b732cb828076625bf3c2a789c6adaf451aa", "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 #-} module Math.NumberTheory.Summation.Nat where -- agda-stdlib open import Algebra open import Data.Nat.Properties -- agda-misc open import Math.NumberTheory.Summation.Generic -- DO NOT change this line open MonoidSummation (Semiring.+-monoid *-+-semiring) public
{ "alphanum_fraction": 0.76, "avg_line_length": 21.4285714286, "ext": "agda", "hexsha": "35584f1bff6b91bbec0dd0e9afb8b94c92cbcd69", "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": "...
{- Theory about path split equivalences. They are convenient to construct localization HITs as in (the "modalities paper") https://arxiv.org/abs/1706.07526 - there are construction from and to equivalences ([pathSplitToEquiv] , [equivToPathSplit]) - the structure of a path split equivalence is actually a proposition ...
{ "alphanum_fraction": 0.6239858907, "avg_line_length": 40.2127659574, "ext": "agda", "hexsha": "4907841979bddfbb27d14ada1ded097ffb67f7c1", "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 Type.Size.Countable where import Data.Either as Type import Data.Either.Equiv as Either import Data.Tuple as Type import Data.Tuple.Equiv as Tuple import Lvl open import Logic open import Logic.Predicate open import Numeral.Natural open import Numeral.Natural.Sequence open import Numera...
{ "alphanum_fraction": 0.6225490196, "avg_line_length": 42.9473684211, "ext": "agda", "hexsha": "b66df4cb6868f8fa23271b130541ea878ff35c5a", "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 regular-concat where open import Level renaming ( suc to Suc ; zero to Zero ) open import Data.List open import Data.Nat hiding ( _≟_ ) open import Data.Fin hiding ( _+_ ) open import Data.Empty open import Data.Unit open import Data.Product -- open import Data.Maybe open import Relation.Nullary open import...
{ "alphanum_fraction": 0.5486637568, "avg_line_length": 53.7407407407, "ext": "agda", "hexsha": "3b4ae7eef2f35ca6c5a763b540724eb72cd0f434", "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 Categories open import Monads module Monads.CatofAdj.InitAdj {a b}{C : Cat {a}{b} }(M : Monad C) where open import Library open import Functors open import Naturals hiding (Iso; module Iso) open import Adjunctions open import Monads.CatofAdj M open import Categories.Initial open import Monads.Kleisli M op...
{ "alphanum_fraction": 0.4080664294, "avg_line_length": 35.9573459716, "ext": "agda", "hexsha": "cdb70496286120f0203b7a3d0f2a79440a83bdea", "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 --cubical --no-sized-types --no-guardedness #-} module Issue2487.c where postulate admit : {A : Set} -> A
{ "alphanum_fraction": 0.6638655462, "avg_line_length": 23.8, "ext": "agda", "hexsha": "9ef8ed45e9dee9a6865823106099eabb6d276ea9", "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...
------------------------------------------------------------------------ -- Tactics for proving instances of Σ-cong (and Surjection.Σ-cong) -- with "better" computational behaviour ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} open import Equality module ...
{ "alphanum_fraction": 0.4577227433, "avg_line_length": 27.0793650794, "ext": "agda", "hexsha": "e98d4d56901d3a57008fb01800c805f54cc7f92f", "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 #3 where open import Relation.Binary.PropositionalEquality {- Exercise 2.3 Give a fourth, different, proof of Lemma 2.1.2, and prove that it is equal to the others. -} based-ind₌ : ∀ {i} {A : Set i}{a : A} → (C : (x : A) → (a ≡ x) → Set i) → C a refl → {x : A} → (p : a ≡ x) → C x p based-ind₌ C c p rewrite ...
{ "alphanum_fraction": 0.5222024867, "avg_line_length": 28.15, "ext": "agda", "hexsha": "7e675a719523c15dfca7d24c77ec5c65280b77bf", "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 plfa-code.Isomorphism where import Relation.Binary.PropositionalEquality as Eq open Eq using (_≡_; refl; cong; cong-app) open Eq.≡-Reasoning open import Data.Nat using (ℕ; zero; suc; _+_) open import Data.Nat.Properties using (+-comm) _∘_ : ∀ {A B C : Set} → (B → C) → (A → B) → (A → C) (g ∘ f) x = g (f x) _...
{ "alphanum_fraction": 0.4023932845, "avg_line_length": 20.0681003584, "ext": "agda", "hexsha": "c23c3d3d881197bd7693ea7073d60d43b49e492b", "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 Base where open import Relation.Binary.PropositionalEquality is-prop : Set → Set is-prop X = (x y : X) → x ≡ y _∼_ : {A B : Set} → (f g : A → B) → Set f ∼ g = ∀ a → f a ≡ g a
{ "alphanum_fraction": 0.5675675676, "avg_line_length": 18.5, "ext": "agda", "hexsha": "4ee65ad59a3f73839779077a66fc5d4ab86bdcee", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-04T06:54:45....
{-# OPTIONS --without-K --exact-split --safe #-} open import Fragment.Algebra.Signature module Fragment.Algebra.Free (Σ : Signature) where open import Fragment.Algebra.Free.Base Σ public open import Fragment.Algebra.Free.Properties Σ public open import Fragment.Algebra.Free.Monad Σ public open import Fragment.Algebr...
{ "alphanum_fraction": 0.795389049, "avg_line_length": 31.5454545455, "ext": "agda", "hexsha": "fea262977a22d293e17c7dd1d8fc80c7d2781892", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-06-16T08:04:31.000Z", "max_forks_repo_forks_event_min_datetime": "2021-06-15T1...
{- Half adjoint equivalences ([HAEquiv]) - Iso to HAEquiv ([iso→HAEquiv]) - Equiv to HAEquiv ([equiv→HAEquiv]) - Cong is an equivalence ([congEquiv]) -} {-# OPTIONS --cubical --safe #-} module Cubical.Foundations.HAEquiv where open import Cubical.Core.Everything open import Cubical.Foundations.Prelude open import ...
{ "alphanum_fraction": 0.3763100653, "avg_line_length": 33.7133333333, "ext": "agda", "hexsha": "e9555f3853213a5814e76f716a15eceae116d51e", "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 monad-instances where open import lib open import general-util instance IO-monad : monad IO IO-monad = record {returnM = return; bindM = _>>=_} instance id-monad : monad id id-monad = record {returnM = id; bindM = λ a f → f a}
{ "alphanum_fraction": 0.6885245902, "avg_line_length": 20.3333333333, "ext": "agda", "hexsha": "95532d3073165a88970c33c97def8dd13e309a89", "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 Relation.Nullary.Discrete where open import Relation.Nullary.Discrete.Base public
{ "alphanum_fraction": 0.7661290323, "avg_line_length": 20.6666666667, "ext": "agda", "hexsha": "f0d86ea92880de6c6339e8054eed08d2113dceb7", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-01-05T14:05:30.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-05T...
{-# OPTIONS --cubical-compatible #-} module Issue712 where data _≡_ {A : Set} : A → A → Set where refl : (x : A) → x ≡ x record _×_ (A B : Set) : Set where field p1 : A p2 : B open _×_ lemma : {A B : Set} {u v : A × B} (p : u ≡ v) → p1 u ≡ p1 v lemma (refl _) = refl _
{ "alphanum_fraction": 0.5157894737, "avg_line_length": 17.8125, "ext": "agda", "hexsha": "6ea8be7ebbca341097ccedf5a39d827777c50f65", "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 ⊥ : Set where _ : @0 ⊥ → Set _ = λ @0 { () }
{ "alphanum_fraction": 0.3921568627, "avg_line_length": 10.2, "ext": "agda", "hexsha": "25ec6ce79d8298f2791553e41e73655552a187a6", "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...
------------------------------------------------------------------------ -- The Agda standard library -- -- Zero-cost coercion to cross the FFI boundary ------------------------------------------------------------------------ {-# OPTIONS --without-K #-} module Foreign.Haskell.Coerce where ---------------------------...
{ "alphanum_fraction": 0.6546883773, "avg_line_length": 32.5792682927, "ext": "agda", "hexsha": "a2d883eb8fe1820b8b18e0a2fca1b395a6c0c3c2", "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...
------------------------------------------------------------------------------ -- The gcd program is correct ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-...
{ "alphanum_fraction": 0.5321637427, "avg_line_length": 39.4615384615, "ext": "agda", "hexsha": "2ba5a26d610bd45dc4ebd24080e6adf1546e31ea", "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 -- -- Basic types related to coinduction ------------------------------------------------------------------------ module Coinduction where import Level ---------------------------------------------------------------...
{ "alphanum_fraction": 0.4520547945, "avg_line_length": 23.953125, "ext": "agda", "hexsha": "9587fbbb2ebef6203543a028ae70429f0a47f54b", "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 tree-test where open import tree open import nat open import bool open import bool-to-string open import list test-tree = node 2 ( (leaf 3) :: (node 4 ( (leaf 5) :: (leaf 7) :: [] )) :: (leaf 6) :: (leaf 7) :: []) perfect3 = perfect-binary-tree 3 tt perfect3-string = 𝕋-to-string 𝔹-to-string perfect3
{ "alphanum_fraction": 0.6655948553, "avg_line_length": 23.9230769231, "ext": "agda", "hexsha": "31580d2c0771090906e797c1d5b353bebdf0d44a", "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...
{-# OPTIONS --without-K --rewriting #-} open import lib.Basics open import lib.types.Bool open import lib.types.Coproduct open import lib.types.Paths open import lib.types.Span open import lib.types.Pushout open import lib.types.Cofiber open import lib.types.Sigma open import lib.types.Wedge module lib.types.Smash {i...
{ "alphanum_fraction": 0.5540475036, "avg_line_length": 25.7875, "ext": "agda", "hexsha": "e62d598161bb7f06ed57438669f10c28b76958fb", "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 --cubical --no-import-sorts --safe #-} module Cubical.Foundations.Structure where open import Cubical.Core.Everything open import Cubical.Foundations.Prelude private variable ℓ ℓ' ℓ'' : Level S : Type ℓ → Type ℓ' -- A structure is a type-family S : Type ℓ → Type ℓ', i.e. for X : Type ℓ and s : ...
{ "alphanum_fraction": 0.6254901961, "avg_line_length": 34, "ext": "agda", "hexsha": "a770fba97034125fd41b0e29e8925117bd98f6eb", "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": "fd8...
{-# OPTIONS --type-in-type #-} open import Agda.Primitive test : Set test = Setω
{ "alphanum_fraction": 0.6626506024, "avg_line_length": 11.8571428571, "ext": "agda", "hexsha": "a13a7276b51490574be95051b83fdaba23d70c9e", "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...
open import Oscar.Prelude open import Oscar.Class module Oscar.Class.Transitivity where module Transitivity' {𝔬} {𝔒 : Ø 𝔬} {𝔯} (_∼_ : 𝔒 → 𝔒 → Ø 𝔯) x y z = ℭLASS (x ,, y ,, z ,, _∼_) (x ∼ y → y ∼ z → x ∼ z) module Transitivity {𝔬} {𝔒 : Ø 𝔬} {𝔯} (_∼_ : 𝔒 → 𝔒 → Ø 𝔯) where class = ∀ {x y z...
{ "alphanum_fraction": 0.5464684015, "avg_line_length": 22.7323943662, "ext": "agda", "hexsha": "9eac85757e1eb579a6b2a2ff2456e1ddbe5113e9", "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 -- -- Machine words ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Word where ----------------------------------------------------------------...
{ "alphanum_fraction": 0.3955375254, "avg_line_length": 30.8125, "ext": "agda", "hexsha": "4a55ddc35cfdb4c0755b77f9e95eb38eafcc20b7", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-04T06:54:...
{-# OPTIONS --safe --without-K #-} module Level where open import Agda.Primitive using (Level) renaming ( _⊔_ to _ℓ⊔_ ; lzero to ℓzero ; lsuc to ℓsuc ; Set to Type ) public variable a b c : Level A : Type a B : Type b C : Type c
{ "alphanum_fraction": 0.5238095238, "avg_line_length": 15.4736842105, "ext": "agda", "hexsha": "751fc1428a2bdab88fc983bca6df004049e04dab", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-11T12:30:21.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-11T...
module negation where open import level open import empty ---------------------------------------------------------------------- -- syntax ---------------------------------------------------------------------- infix 7 ¬ ---------------------------------------------------------------------- -- defined types --------...
{ "alphanum_fraction": 0.2, "avg_line_length": 22.8947368421, "ext": "agda", "hexsha": "524ffe052e9c73a3e79c828dd1131a61d78b350f", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "b...
{-# OPTIONS --without-K #-} module hott.loop.properties where open import sum open import equality open import function.core open import function.extensionality open import function.isomorphism.core open import function.overloading open import pointed open import sets.nat.core open import hott.loop.core mapΩ₁-const :...
{ "alphanum_fraction": 0.5261489699, "avg_line_length": 35.7169811321, "ext": "agda", "hexsha": "b85f8fb45d6267fe0a6fd4c0ff373119435faa9d", "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-02T...
------------------------------------------------------------------------ -- Containers, including a definition of bag equivalence ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} open import Equality module Container {c⁺} (eq : ∀ {a p} → Equality-with-J a p ...
{ "alphanum_fraction": 0.4727699531, "avg_line_length": 36.5979381443, "ext": "agda", "hexsha": "285e1d40166bd131d5449b85ca62f4f5a74f9a69", "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...
{- Descriptor language for easily defining structures -} {-# OPTIONS --cubical --no-import-sorts --no-exact-split --safe #-} module Cubical.Structures.Macro where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Function open import Cubical.Foundations.HLevels open import Cubical.Foundations.E...
{ "alphanum_fraction": 0.7214667685, "avg_line_length": 42.2258064516, "ext": "agda", "hexsha": "98695c81057006811476a25861bc1a6ddb43d7c4", "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 --sized-types #-} module SNat.Order where open import Size open import SNat data _≤_ : {ι ι' : Size} → SNat {ι} → SNat {ι'} → Set where z≤n : {ι ι' : Size} → (n : SNat {ι'}) → _≤_ (zero {ι}) n s≤s : {ι ι' : Size}{m : SNat {ι}}{n : SNat {ι'}} ...
{ "alphanum_fraction": 0.3462389381, "avg_line_length": 31.1724137931, "ext": "agda", "hexsha": "653609f43a358946ac44370a671ba888eb9cb663", "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 Oscar.Data.List where open import Agda.Builtin.List public using (List; []; _∷_)
{ "alphanum_fraction": 0.7333333333, "avg_line_length": 18, "ext": "agda", "hexsha": "6440fe6a3c8ddcd9b69e8fcc6b5f1724f929e9c7", "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": "52e...
module FinMap where open import Level using () renaming (zero to ℓ₀) open import Data.Nat using (ℕ ; zero ; suc) open import Data.Maybe using (Maybe ; just ; nothing ; maybe′) open import Data.Fin using (Fin ; zero ; suc) open import Data.Fin.Properties using (_≟_) open import Data.Vec using (Vec ; [] ; _∷_ ; _[_]≔_ ;...
{ "alphanum_fraction": 0.5938394595, "avg_line_length": 53.25, "ext": "agda", "hexsha": "ca7e73b5c04cd8d5e1c15b79102aa5ce3e8106c8", "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 HasDecidableValidation where open import OscarPrelude open import 𝓐ssertion open import HasSatisfaction open import Validation record HasDecidableValidation (A : Set) ⦃ _ : HasSatisfaction A ⦄ : Set₁ where field ⊨?_ : (x : A) → Dec $ ⊨ x open HasDecidableValidation ⦃ … ⦄ public
{ "alphanum_fraction": 0.7441077441, "avg_line_length": 19.8, "ext": "agda", "hexsha": "fc0af738cc1351f8ec8f710844c6e9985fc0c9e9", "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": "5...
-- Andreas, 2015-06-29, issue reported by Nisse -- {-# OPTIONS -v tc.polarity:20 -v tc.pos:10 #-} -- {-# OPTIONS -v tc.conv.elim:25 --show-implicit #-} data ⊥ : Set where data _≡_ {a} {A : Set a} : A → A → Set a where refl : ∀ x → x ≡ x subst : ∀ {a p} {A : Set a} (P : A → Set p) {x y : A} → x ≡ y → P x →...
{ "alphanum_fraction": 0.4598117306, "avg_line_length": 24.2280701754, "ext": "agda", "hexsha": "6f6b89aba6b18fde7859139bac580771bd9ae869", "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...