Search is not available for this dataset
text
string
meta
dict
data Unit : Set where unit : Unit P : Unit → Set P unit = Unit postulate Q : (u : Unit) → P u → Set variable u : Unit p : P u postulate q : P u → Q u p q' : (u : Unit) (p : P u) → P u → Q u p q' u p = q {u} {p}
{ "alphanum_fraction": 0.4933920705, "avg_line_length": 11.35, "ext": "agda", "hexsha": "50b8352825106b5e804d0de7128705ec9cf5af8b", "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:...
data ℕ : Set where zero : ℕ suc : ℕ → ℕ {-# BUILTIN NATURAL ℕ #-} infixl 6 _+_ infix 6 _∸_ _+_ : ℕ → ℕ → ℕ zero + n = n suc m + n = suc (m + n) _∸_ : ℕ → ℕ → ℕ m ∸ zero = m zero ∸ suc n = zero suc m ∸ suc n = m ∸ n should-be-rejected : ℕ should-be-rejected = 1 + 0 ∸ 1
{ "alphanum_fraction": 0.5052264808, "avg_line_length": 13.6666666667, "ext": "agda", "hexsha": "2d3a1a0678390e4f4439c6f2db502b93d1eea59f", "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 -v term:20 #-} -- Andreas, 2011-04-19 (Agda list post by Leonard Rodriguez) module TerminationSubExpression where infixr 3 _⇨_ data Type : Set where int : Type _⇨_ : Type → Type → Type test : Type → Type test int = int test (φ ⇨ int) = test φ test (φ ⇨ (φ′ ⇨ φ″)) = test (φ′ ⇨ φ″) -- this should ...
{ "alphanum_fraction": 0.5732600733, "avg_line_length": 21, "ext": "agda", "hexsha": "16ac402e49e460fe5493694f922d365c118ec9ae", "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": "205...
{-# OPTIONS --safe --warning=error --without-K #-} open import Sets.EquivalenceRelations open import Setoids.Setoids open import Functions.Definition open import Groups.Definition open import Groups.Homomorphisms.Definition open import Groups.Subgroups.Definition open import Groups.Subgroups.Normal.Definition module ...
{ "alphanum_fraction": 0.7504862462, "avg_line_length": 71.98, "ext": "agda", "hexsha": "35ef2809f0226dba2c0f61791f45c712e9ea4aae", "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-29T13:23:07...
{-# BUILTIN NATURAL ℕ #-} module the-naturals where import Relation.Binary.PropositionalEquality as Eq open Eq using (_≡_; refl) open Eq.≡-Reasoning using (begin_; _≡⟨⟩_; _∎) infixl 6 _+_ _∸_ infixl 7 _*_ -- the naturals data ℕ : Set where zero : ℕ suc : ℕ → ℕ -- addition _+_ : ℕ → ℕ → ℕ zero + n = n (suc ...
{ "alphanum_fraction": 0.5615942029, "avg_line_length": 16.7272727273, "ext": "agda", "hexsha": "a2ffecbed0a3b576537d1af7c6705da337243dee", "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 Category.Functor.Arr where open import Agda.Primitive using (_⊔_) open import Category.Functor using (RawFunctor ; module RawFunctor ) open import Category.Applicative using (RawApplicative; module RawApplicative) open import Function using (_∘_) open import Category.Functor.Lawful open import Relation...
{ "alphanum_fraction": 0.6630920465, "avg_line_length": 34.96875, "ext": "agda", "hexsha": "7ff0c6ea8523b74f0c456754545987d742c83875", "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 Agda standard library -- -- Universe levels ------------------------------------------------------------------------ module Level where -- Levels. open import Agda.Primitive public using (Level; _⊔_) renaming (lzero to zero; lsuc ...
{ "alphanum_fraction": 0.4496644295, "avg_line_length": 20.3181818182, "ext": "agda", "hexsha": "648bf49c05fcdfb23a6e1ee60f4ad322e7ec677d", "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 lib.Basics open import lib.NConnected open import lib.types.Nat open import lib.types.TLevel open import lib.types.Empty open import lib.types.Group open import lib.types.Pi open import lib.types.Pointed open import lib.types.Paths open import lib.types.Sigma open import lib.typ...
{ "alphanum_fraction": 0.4476686996, "avg_line_length": 32.3757961783, "ext": "agda", "hexsha": "135baf1abc80410eaa9fe7bc837f992e105a6d8c", "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 Prelude module Implicits.Syntax.Term where open import Implicits.Syntax.Type infixl 9 _[_] _·_ data Term (ν n : ℕ) : Set where var : (x : Fin n) → Term ν n Λ : Term (suc ν) n → Term ν n λ' : Type ν → Term ν (suc n) → Term ν n _[_] : Term ν n → Type ν → Term ν n _·_ : Term ν n → Term ν n ...
{ "alphanum_fraction": 0.5217853348, "avg_line_length": 26.1388888889, "ext": "agda", "hexsha": "73e46aef827433ba0ae3a8552403b7f29d13ac88", "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 --omega-in-omega --no-termination-check --overlapping-instances #-} module Light.Library where module Literals where open import Light.Literals public module Data where module Empty where open import Light.Library.Data.Empty public module Either where open import Light.Library.Data.Either pub...
{ "alphanum_fraction": 0.7677772253, "avg_line_length": 46.7674418605, "ext": "agda", "hexsha": "853888e8dbdf22e87333e815fb286ecf8b9434fb", "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.CommRing.Instances.Polynomials where open import Cubical.Foundations.Prelude open import Cubical.Algebra.CommRing open import Cubical.Algebra.Polynomials private variable ℓ : Level Poly : (CommRing ℓ) → CommRing ℓ Poly R = (PolyMod.Poly R) , str where o...
{ "alphanum_fraction": 0.5036166365, "avg_line_length": 33.5151515152, "ext": "agda", "hexsha": "a359a454a95bb376620ac769e25c791da32ef222", "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 empty where open import level ---------------------------------------------------------------------- -- datatypes ---------------------------------------------------------------------- data ⊥ {ℓ : Level} : Set ℓ where ---------------------------------------------------------------------- -- syntax ----------...
{ "alphanum_fraction": 0.1517706577, "avg_line_length": 28.2380952381, "ext": "agda", "hexsha": "fd2cb85734e977f589c421f3bb3bd74135151bf0", "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, 2015-08-11, issue reported by G.Allais -- The `a` record field of `Pack` is identified as a function -- (coloured blue, put in a \AgdaFunction in the LaTeX backend) -- when it should be coloured pink. -- The problem does not show up when dropping the second record -- type or removing the module declaration...
{ "alphanum_fraction": 0.687150838, "avg_line_length": 29.8333333333, "ext": "agda", "hexsha": "ef714adf1ad14bc1901ef64e28438600eec7fd80", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Data.Nat.GCD where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Function open import Cubical.Foundations.HLevels open import Cubical.Foundations.Equiv open import Cubical.Foundations.Isomorphism open import Cubical.Induction....
{ "alphanum_fraction": 0.5252161383, "avg_line_length": 34.2716049383, "ext": "agda", "hexsha": "c5196cf0abe5ed14028d89c715014059ac863565", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --prop --without-K --rewriting #-} module Calf.Types.Bool where open import Calf.Prelude open import Calf.Metalanguage open import Data.Bool public using (Bool; true; false; if_then_else_) bool : tp pos bool = U (meta Bool)
{ "alphanum_fraction": 0.7333333333, "avg_line_length": 20, "ext": "agda", "hexsha": "581307995d4d9804de484679a277db7a1105c718", "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-06T10:28:24.00...
{-# OPTIONS --safe #-} module MissingDefinition where T : Set -> Set
{ "alphanum_fraction": 0.6571428571, "avg_line_length": 14, "ext": "agda", "hexsha": "0ce46b49d9be468775377e9d5a159066a54ecb17", "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....
{- Cubical Agda with K This file demonstrates the incompatibility of the --cubical and --with-K flags, relying on the well-known incosistency of K with univalence. The --safe flag can be used to prevent accidentally mixing such incompatible flags. -} {-# OPTIONS --with-K #-} module Cubical.WithK where open import...
{ "alphanum_fraction": 0.709760274, "avg_line_length": 24.3333333333, "ext": "agda", "hexsha": "8adf2905a9a593b453a4ded9500a2babf2a44836", "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 WrongNamedArgument2 where postulate f : {A : Set₁} → A test : Set test = f {B = Set} -- Unsolved meta. -- It is not an error since A could be instantiated to a function type -- accepting hidden argument with name B.
{ "alphanum_fraction": 0.701754386, "avg_line_length": 19, "ext": "agda", "hexsha": "8ff2c85ca3b4b3a6299af02bf9683c17863d1b53", "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...
------------------------------------------------------------------------ -- The Agda standard library -- -- Argument information used in the reflection machinery ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Reflection.Argument.Information where op...
{ "alphanum_fraction": 0.5673678226, "avg_line_length": 33.1886792453, "ext": "agda", "hexsha": "22a0e92ae2a0de22e8cc2d134d9ed93cf56c4127", "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 --rewriting #-} module FFI.Data.Vector where open import Agda.Builtin.Equality using (_≡_) open import Agda.Builtin.Equality.Rewrite using () open import Agda.Builtin.Int using (Int; pos; negsuc) open import Agda.Builtin.Nat using (Nat) open import Agda.Builtin.Bool using (Bool; false; true) open import F...
{ "alphanum_fraction": 0.6420428637, "avg_line_length": 40.6111111111, "ext": "agda", "hexsha": "08761edf850acead13e94ec0267acfdd5676b3fa", "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 Function using (_∘_) open import Category.Functor open import Category.Monad open import Data.Empty using (⊥; ⊥-elim) open import Data.Fin as Fin using (Fin; zero; suc) open import Data.Fin.Props as FinProps using () open import Data.Maybe as Maybe using (Maybe; maybe; just; nothing) open import Data.Nat us...
{ "alphanum_fraction": 0.5723645724, "avg_line_length": 42.6284289277, "ext": "agda", "hexsha": "878f11eae9166ecb4d9601d9c99ab02eb58e8674", "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 --experimental-lossy-unification #-} module Cubical.ZCohomology.RingStructure.GradedCommutativity where open import Cubical.Foundations.HLevels open import Cubical.Foundations.Function open import Cubical.Foundations.Transport open import Cubical.Foundations.Prelude open import Cubical.Foundations.I...
{ "alphanum_fraction": 0.4246041602, "avg_line_length": 56.8077601411, "ext": "agda", "hexsha": "11866cc169686b648f7bf25515516114ab57dafa", "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 -- -- Divisibility ------------------------------------------------------------------------ module Data.Nat.Divisibility where open import Data.Nat as Nat open import Data.Nat.DivMod import Data.Nat.Properties as Nat...
{ "alphanum_fraction": 0.5202129429, "avg_line_length": 29.038647343, "ext": "agda", "hexsha": "59850d6559e7539eea9852732172275af6c80e10", "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...
------------------------------------------------------------------------ -- An alternative (non-standard) classical definition of weak -- bisimilarity ------------------------------------------------------------------------ -- This definition is based on the function "wb" in Section 6.5.1 of -- Pous and Sangiorgi's "E...
{ "alphanum_fraction": 0.5941114616, "avg_line_length": 27.1714285714, "ext": "agda", "hexsha": "e34e6367e2ad4618c78292c955c63e40d0e13bc9", "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...
------------------------------------------------------------------------------ -- Properties related with the group commutator ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-p...
{ "alphanum_fraction": 0.4873803307, "avg_line_length": 41.0357142857, "ext": "agda", "hexsha": "4c7c4b22d7e30e41032573c5c7c72768acb8e425", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-19T...
-- 2014-01-01 Andreas, test case constructed by Christian Sattler {-# OPTIONS --allow-unsolved-metas #-} -- unguarded recursive record record R : Set where constructor cons field r : R postulate F : (R → Set) → Set q : (∀ P → F P) → (∀ P → F P) q h P = h (λ {(cons x) → {!!}}) -- ISSUE WAS: Bug in implement...
{ "alphanum_fraction": 0.6323907455, "avg_line_length": 21.6111111111, "ext": "agda", "hexsha": "6b75339fd73f513fd0a79812d189c456c14ce299", "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...
------------------------------------------------------------------------ -- The Agda standard library -- -- Examples of format strings and printf ------------------------------------------------------------------------ {-# OPTIONS --safe --without-K #-} module README.Text.Printf where open import Data.Nat.Base open ...
{ "alphanum_fraction": 0.5886200131, "avg_line_length": 31.2040816327, "ext": "agda", "hexsha": "638962ee50fc895327ae09ba4bb4d3c183e307b4", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-04T...
module Inference-of-implicit-function-space where postulate _⇔_ : Set → Set → Set equivalence : {A B : Set} → (A → B) → (B → A) → A ⇔ B A : Set P : Set P = {x : A} → A ⇔ A works : P ⇔ P works = equivalence (λ r {x} → r {x = x}) (λ r {x} → r {x = x}) works₂ : P ⇔ P works₂ = equivalence {A = P...
{ "alphanum_fraction": 0.4691075515, "avg_line_length": 23, "ext": "agda", "hexsha": "56d8c1fa55202968349a519d1fa1dd17b65faa92", "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....
{-# OPTIONS --safe #-} open import Definition.Typed.EqualityRelation module Definition.LogicalRelation.Substitution.Introductions.Transp {{eqrel : EqRelSet}} where open EqRelSet {{...}} open import Definition.Untyped as U hiding (wk) open import Definition.Untyped.Properties open import Definition.Typed open import ...
{ "alphanum_fraction": 0.5627016129, "avg_line_length": 62, "ext": "agda", "hexsha": "7e209ba0ca1597da34023e7a9e18d3e819225535", "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-26T14:55:51.00...
-------------------------------------------------------------------------------- -- This is part of Agda Inference Systems {-# OPTIONS --sized-types --guardedness #-} open import Data.Product open import Data.Vec open import Codata.Colist as Colist open import Agda.Builtin.Equality open import Size open import Codata...
{ "alphanum_fraction": 0.5938161796, "avg_line_length": 29.5125, "ext": "agda", "hexsha": "b6b83f1de4cc9b67683f078537046fbcfc313bf4", "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-compatible #-} open import Common.Prelude open import Common.Equality open import Common.Product data _≅_ {A : Set} (a : A) : {B : Set} (b : B) → Set₁ where refl : a ≅ a data D : Bool → Set where x : D true y : D false P : Set -> Set₁ P S = Σ S (\s → s ≅ x) pbool : P (D true) pbool = _...
{ "alphanum_fraction": 0.5679347826, "avg_line_length": 17.5238095238, "ext": "agda", "hexsha": "c1b00be20b1e195fd107d963b558085d4b05c7fe", "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.Monoidal.Bundle using (SymmetricMonoidalCategory) module Categories.Category.Construction.SymmetricMonoidalFunctors {o ℓ e o′ ℓ′ e′} (C : SymmetricMonoidalCategory o ℓ e) (D : SymmetricMonoidalCategory o′ ℓ′ e′) where -- The symmetric monoida...
{ "alphanum_fraction": 0.5357483317, "avg_line_length": 35.2013422819, "ext": "agda", "hexsha": "bf7a005f845761c6a790729d1096131a4517efcc", "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...
{- This file contains: - An implementation of the free group of a type of generators as a HIT -} {-# OPTIONS --safe #-} module Cubical.HITs.FreeGroup.Base where open import Cubical.Foundations.Prelude private variable ℓ : Level data FreeGroup (A : Type ℓ) : Type ℓ where η : A → FreeGroup A _·_ : ...
{ "alphanum_fraction": 0.5737704918, "avg_line_length": 21.0344827586, "ext": "agda", "hexsha": "5299cc1868c0b08308b2341160e3573fc3be2548", "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 type-checker ------------------------------------------------------------------------ import Axiom.Extensionality.Propositional as E import Level open import Data.Universe -- The code makes use of the assumption that propositional equality ...
{ "alphanum_fraction": 0.4759938049, "avg_line_length": 34.7964071856, "ext": "agda", "hexsha": "f20c0579b63177c0123fcc0a7d80f759cbe3ac23", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K --safe #-} module Relation.Binary.Construct.Closure.SymmetricTransitive where open import Level open import Function open import Relation.Binary private variable a ℓ ℓ′ : Level A B : Set a module _ {A : Set a} (_≤_ : Rel A ℓ) where private variable x y z : A data ...
{ "alphanum_fraction": 0.5420114577, "avg_line_length": 27.0862068966, "ext": "agda", "hexsha": "c24fca62676c6ca021ed81571d21d864850fe6b5", "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 L.Data.Bool where -- Reexport definitions open import L.Data.Bool.Core public open import L.Data.Bool.Properties public -- Functions on Bools infix 7 not_ infixr 6 _∧_ infixr 5 _∨_ _xor_ not_ : Bool → Bool not x = if (λ _ → Bool) ff tt x _∧_ : Bool → Bool → Bool x ∧ y = if (λ _ → Bool) y ff x _∨_ : Bool → ...
{ "alphanum_fraction": 0.6348837209, "avg_line_length": 17.9166666667, "ext": "agda", "hexsha": "75aafe050582d38d2f4f109e43164bb11a0e7ce4", "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...
------------------------------------------------------------------------------ -- FOTC version of a nested recursive function by the -- Bove-Capretta method ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #...
{ "alphanum_fraction": 0.5072771377, "avg_line_length": 31.1132075472, "ext": "agda", "hexsha": "bbea487e0f5914d4ca54ff4d4dc5791f2fde8b51", "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 -- -- Instantiates the natural coefficients ring solver, using coefficient -- equality induced by ℕ. -- -- This is sufficient for proving equalities that are independent of the -- characteristic. In particular, this i...
{ "alphanum_fraction": 0.6505032022, "avg_line_length": 33.1212121212, "ext": "agda", "hexsha": "fa44d082dd3dcec6b80505ec06212c554e802dab", "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-10-30, issue #2286 reported by carlostome -- {-# OPTIONS -v interaction.give:40 #-} -- {-# OPTIONS -v tc.term.expr:40 #-} -- {-# OPTIONS -v tc.meta:40 #-} -- {-# OPTIONS -v 10 #-} data Nat : Set where zero : Nat succ : Nat → Nat data _==_ {A : Set} (x : A) : A → Set where refl : x == x f : Na...
{ "alphanum_fraction": 0.5776031434, "avg_line_length": 25.45, "ext": "agda", "hexsha": "6a2a9fa3dd11e79d0a8bfc5e39d7911242b40ba2", "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:...
-- Andreas, 2018-06-14, issue #2513, parsing attributes -- Run-time only use. postulate @0 RT₁ : Set @erased RT₂ : Set -- Default: unrestricted use. postulate @ω CT₁ : Set @plenty CT₂ : Set -- Irrelevance. postulate . I₀ : Set @irr I₁ : Set @irrelevant I₂ : Set -- Shape-i...
{ "alphanum_fraction": 0.595814978, "avg_line_length": 16.2142857143, "ext": "agda", "hexsha": "aea86132ba9829de4ba2d3f94d65cad45ed1a427", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-09-15T14:36:15.000Z", "max_forks_repo_forks_event_min_datetime": "2015-09-15T1...
{-# OPTIONS --without-K --exact-split #-} module 20-pullbacks where import 19-fundamental-cover open 19-fundamental-cover public -- Section 13.1 Cartesian squares {- We introduce the basic concepts of this chapter: commuting squares, cospans, cones, and pullback squares. Pullback squares are also called cartesia...
{ "alphanum_fraction": 0.5136841206, "avg_line_length": 38.1211331814, "ext": "agda", "hexsha": "2144703c977af7119befe73cbcab25f41ece21bc", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9. Copyright (c) 2021, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl -} open import LibraBFT.Base.Types import LibraBFT.Impl.Consensus.Consensus...
{ "alphanum_fraction": 0.6871633752, "avg_line_length": 43.6862745098, "ext": "agda", "hexsha": "0b90162dee8368233fccfe1f80f25f2da88cf519", "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 #-} open import Data.Unit open import Data.Product hiding ( curry ; uncurry ) open import Data.List hiding ( concat ) open import Data.String open import Relation.Binary.PropositionalEquality open import Function module Spire.Examples.CompLev where -------------------------------------------...
{ "alphanum_fraction": 0.4280592734, "avg_line_length": 28.462585034, "ext": "agda", "hexsha": "791d72839675f2b6002c3987504d72a9f06c66d4", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-08-17T21:00:07.000Z", "max_forks_repo_forks_event_min_datetime": "2015-08-17T2...
module Issue87 where data I : Set where data D : I -> Set where d : forall {i} (x : D i) -> D i bar : forall {i} -> D i -> D i -> D i bar (d x) (d y) with y bar (d x) (d {i} y) | z = d {i} y -- ERROR WAS: -- Panic: unbound variable i -- when checking that the expression i has type I -- Andreas, 2016-06-02 --...
{ "alphanum_fraction": 0.5428571429, "avg_line_length": 22.2727272727, "ext": "agda", "hexsha": "8741a7c1d7c4d2e8a63d2577ba2c22bfe83ca98a", "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 Agda.Builtin.Equality _∘_ : ∀ {a b c} {A : Set a} {B : A → Set b} {C : {x : A} → B x → Set c} → (f : ∀ {x} (y : B x) → C y) → (g : (x : A) → B x) → ((x : A) → C (g x)) f ∘ g = λ x → f (g x) postulate A : Set B : A → Set C : {x : A} → B x → Set f : ∀ {x : A} (y : B x...
{ "alphanum_fraction": 0.3659491194, "avg_line_length": 23.2272727273, "ext": "agda", "hexsha": "8363390bfd6296596b85eeac140ab8c5bbcd9f11", "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 Data.Natural using ( Natural ; # ; _+_ ) module System.IO.Examples.Four where four : Natural four = # 2 + # 2
{ "alphanum_fraction": 0.674796748, "avg_line_length": 20.5, "ext": "agda", "hexsha": "ceb7b3a5352a6cb376d734f4876ce954141d2e3e", "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:54.0...
{-# OPTIONS --safe --warning=error --without-K #-} open import Sets.EquivalenceRelations open import Setoids.Setoids open import Agda.Primitive using (Level; lzero; lsuc; _⊔_) open import Groups.Definition module Groups.Homomorphisms.Definition where record GroupHom {m n o p : _} {A : Set m} {S : Setoid {m} {o} A} {...
{ "alphanum_fraction": 0.5796579658, "avg_line_length": 46.2916666667, "ext": "agda", "hexsha": "f9080768704877a2f3278a1a94be862e04d2e952", "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...
-- Andreas, 2017-02-14 issue #2455 reported by mechvel -- Test case by Andrea -- Seem that the fix for issue #44 was not complete. -- When inserting module parameters for a definition, -- we need to respect polarities! -- {-# OPTIONS -v tc.decl:10 -v tc.polarity:70 -v tc.sig.inst:30 #-} module Issue2455 where data...
{ "alphanum_fraction": 0.596069869, "avg_line_length": 20.8181818182, "ext": "agda", "hexsha": "1aacfe459e80044753bd6c2d508a53ed3dbe8a8a", "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 ShouldBeApplicationOf where data One : Set where one : One data Two : Set where two : Two f : One -> Two f two = two
{ "alphanum_fraction": 0.6875, "avg_line_length": 12.8, "ext": "agda", "hexsha": "43e5ac67ca4fb846a1faca7cfe0537e05196793d", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:08.000Z...
-- Andreas, bug found 2011-12-31 {-# OPTIONS --irrelevant-projections #-} module Issue543 where open import Common.Equality data ⊥ : Set where record ⊤ : Set where constructor tt data Bool : Set where true false : Bool T : Bool → Set T true = ⊤ T false = ⊥ record Squash {ℓ}(A : Set ℓ) : Set ℓ where cons...
{ "alphanum_fraction": 0.6295774648, "avg_line_length": 15.4347826087, "ext": "agda", "hexsha": "76321c10d405b284ea2d6ca3b453167a6d7d74a7", "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 --exact-split --safe #-} module HoTT.Ident where data Id (X : Set) : X → X → Set where refl : (x : X) → Id X x x _≡_ : {X : Set} → X → X → Set x ≡ y = Id _ x y 𝕁 : {X : Set} → (A : (x y : X) → x ≡ y → Set) → ((x : X) → A x x (refl x)) → (x y : X) → (p : x ≡ y) → A x y p 𝕁 A f x x (...
{ "alphanum_fraction": 0.4193762442, "avg_line_length": 25.5423728814, "ext": "agda", "hexsha": "d77b326eb295b813c95a32789424ddb14073cc55", "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...
------------------------------------------------------------------------ -- Compiler correctness ------------------------------------------------------------------------ open import Prelude import Lambda.Syntax module Lambda.Compiler-correctness {Name : Type} (open Lambda.Syntax Name) (def : Name → Tm 1) whe...
{ "alphanum_fraction": 0.3604299631, "avg_line_length": 36.7530864198, "ext": "agda", "hexsha": "0acae2c4bca4e2ae4972b3c85d5f5130ddee1e69", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical-compatible #-} data Bool : Set where true : Bool false : Bool data ℕ : Set where zero : ℕ suc : (n : ℕ) → ℕ data Fin : ℕ → Set where zero : {n : ℕ} → Fin (suc n) suc : {n : ℕ} (i : Fin n) → Fin (suc n) infixr 5 _∷_ data Vec {a} (A : Set a) : ℕ → Set a where [] : Vec A zero ...
{ "alphanum_fraction": 0.4156293223, "avg_line_length": 22.2461538462, "ext": "agda", "hexsha": "b5716ecd8123ec3bcaf576ae9d5ee63e27bf6666", "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 STLC1.Kovacs.Soundness where open import STLC1.Kovacs.Convertibility public open import STLC1.Kovacs.PresheafRefinement public -------------------------------------------------------------------------------- infix 3 _≈_ _≈_ : ∀ {A Γ} → Γ ⊩ A → Γ ⊩ A → Set _≈_ {⎵} {Γ} M₁ M₂ = M₁ ≡ M₂ _≈_ {A ⇒ B} {Γ} f...
{ "alphanum_fraction": 0.3078169804, "avg_line_length": 26.7366666667, "ext": "agda", "hexsha": "8e830d3a3330328d95993e2466615c755c157347", "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 -- -- Decision procedures for finite sets and subsets of finite sets -- -- This module is DEPRECATED. Please use the Data.Fin.Properties -- and Data.Fin.Subset.Properties directly. -------------------------------------...
{ "alphanum_fraction": 0.5485893417, "avg_line_length": 31.9, "ext": "agda", "hexsha": "57d48fda9d0aef6f692a88e6b96d13defe2f1a72", "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": "0...
module ial where open import ial-datatypes public open import logic public open import thms public open import termination public open import error public open import io public
{ "alphanum_fraction": 0.8370786517, "avg_line_length": 19.7777777778, "ext": "agda", "hexsha": "b182d10bc1854e45861b2a58951c7b8abce23c67", "lang": "Agda", "max_forks_count": 34, "max_forks_repo_forks_event_max_datetime": "2022-02-20T18:33:16.000Z", "max_forks_repo_forks_event_min_datetime": "2018-09-17...
------------------------------------------------------------------------ -- Values ------------------------------------------------------------------------ open import Atom module Values (atoms : χ-atoms) where open import Equality.Propositional open import Prelude hiding (const) open import Chi atoms open import D...
{ "alphanum_fraction": 0.5975336323, "avg_line_length": 27.875, "ext": "agda", "hexsha": "f560dda2deca2e883320020403faa05040f3efdc", "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.Algebra.Semigroup.Properties where open import Cubical.Core.Everything open import Cubical.Foundations.Prelude open import Cubical.Foundations.Isomorphism open import Cubical.Foundations.Function using (_∘_; id) open import Cubical.Foundations.Equiv ope...
{ "alphanum_fraction": 0.6538688718, "avg_line_length": 29.701754386, "ext": "agda", "hexsha": "85938894b37d708e3d91428e204b5150c16ff791", "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 --prop #-} data _≡_ {A : Set} (a : A) : A → Set where refl : a ≡ a postulate funextP : {A : Prop} {B : A → Set} {f g : (a : A) → B a} (h : (x : A) → f x ≡ g x) → f ≡ g test : {A : Prop} {B : A → Set} {f g : (a : A) → B a} (h : (x : A) → f x ≡ g x) → f ≡ g test h = funextP h
{ "alphanum_fraction": 0.4046822742, "avg_line_length": 27.1818181818, "ext": "agda", "hexsha": "959917b76d2067211e62068da39a39be6aa7f916", "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...
------------------------------------------------------------------------------ -- Parametrized preorder reasoning ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #...
{ "alphanum_fraction": 0.412633306, "avg_line_length": 32.0789473684, "ext": "agda", "hexsha": "b7aac86af89d08b837a8f41e7aaddfb9aaceacd2", "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 #-} module SubstLemmas where open import Level using (Level) open import Relation.Binary.PropositionalEquality using (_≡_; refl; sym; trans; subst; cong₂) open import Data.Nat using (ℕ; _+_; _*_) ------------------------------------------------------------------------------ -- Lemmas about ...
{ "alphanum_fraction": 0.4991869919, "avg_line_length": 36.1764705882, "ext": "agda", "hexsha": "0b9f1c284565ff4bae82b4696351fe1a6c9b4c95", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2019-09-10T09:47:13.000Z", "max_forks_repo_forks_event_min_datetime": "2016-05-29T...
-- Andreas, 2015-12-29 -- with-clause stripping for record patterns -- {-# OPTIONS -v tc.with.strip:60 #-} record R : Set1 where field f : Set test : R → Set1 test record{ f = a } with a ... | x = R test1 : R → Set1 test1 record{ f = a } with a test1 record{ f = a } | _ = R test2 : R → Set1 test2 record{ f =...
{ "alphanum_fraction": 0.612745098, "avg_line_length": 18.5454545455, "ext": "agda", "hexsha": "60b2af46afb2ae53fbe65897a30f6206c371bafa", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03...
{-# OPTIONS --without-K --safe #-} module TypeTheory.HoTT.Data.Sum.Properties where -- agda-stdlib open import Level open import Data.Empty open import Data.Product open import Data.Sum open import Function.Base open import Relation.Binary.PropositionalEquality open import Relation.Nullary -- agda-misc open import T...
{ "alphanum_fraction": 0.6496732026, "avg_line_length": 27.3214285714, "ext": "agda", "hexsha": "f84ff447909834f882286219dee2a237e3923918", "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 Proofs where open import Agda.Builtin.Equality open import Relation.Binary.PropositionalEquality.Core open import Data.Nat open ≡-Reasoning open import Classes data Vec : ℕ → Set → Set where Nil : ∀ {a} → Vec 0 a Cons : ∀ {n A} → (a : A) → Vec n A → Vec (suc n) A cons-cong : ∀ {n A} {a c : A} {b d : V...
{ "alphanum_fraction": 0.4563329928, "avg_line_length": 30.8346456693, "ext": "agda", "hexsha": "242472bf2ad9b61901fc002512b5897cfaf4ff13", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K #-} module Model.Term where open import Cats.Category open import Model.Size as MS using (_<_ ; ⟦_⟧Δ ; ⟦_⟧n ; ⟦_⟧σ) open import Model.Type as MT open import Util.HoTT.Equiv open import Util.Prelude hiding (id ; _∘_ ; _×_) open import Source.Size as SS using (v0 ; v1 ; ⋆) open import Source.Siz...
{ "alphanum_fraction": 0.4089958159, "avg_line_length": 30.9814814815, "ext": "agda", "hexsha": "a3ede21980057aff9a36a7724df6ce55cc9ff09e", "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...
------------------------------------------------------------------------------ -- Co-inductive natural numbers ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} ...
{ "alphanum_fraction": 0.3438538206, "avg_line_length": 28.6666666667, "ext": "agda", "hexsha": "9d035f3509db48a06050c1b21b97f73051e83f43", "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 -- -- An equality postulate which evaluates ------------------------------------------------------------------------ module Relation.Binary.PropositionalEquality.TrustMe where open import Relation.Binary.Propositiona...
{ "alphanum_fraction": 0.5232744783, "avg_line_length": 28.3181818182, "ext": "agda", "hexsha": "5c85b4645cb030e3428d078201bda12103ea437c", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --safe #-} module Cubical.Categories.Instances.Semilattice where open import Cubical.Foundations.Prelude open import Cubical.Algebra.Semilattice open import Cubical.Categories.Category open import Cubical.Categories.Instances.Poset open Category module _ {ℓ} (L : Semilattice ℓ) where -- more convenie...
{ "alphanum_fraction": 0.7955465587, "avg_line_length": 24.7, "ext": "agda", "hexsha": "61c03c677dbaf2646a7af0987547a06948de1285", "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": "9...
{-# OPTIONS --warning=error --safe --without-K #-} open import LogicalFormulae open import Agda.Primitive using (Level; lzero; lsuc; _⊔_) open import Functions.Definition open import Setoids.Setoids open import Setoids.Subset open import Graphs.Definition open import Sets.FinSet.Definition open import Sets.FinSet.Lemm...
{ "alphanum_fraction": 0.735908142, "avg_line_length": 35.4814814815, "ext": "agda", "hexsha": "2fd0a393fb0e200bbd1c1853a94bcd299233a4d4", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-29T13:23:07.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-29T1...
-- Care needs to be taken to distinguish between instance solutions with and -- without leftover constraints. module _ where _∘_ : ∀ {A B C : Set} → (B → C) → (A → B) → A → C (f ∘ g) x = f (g x) postulate Functor : (Set → Set) → Set₁ fmap : ∀ {F} {{_ : Functor F}} {A B} → (A → B) → F A → F B List : Set → Set ...
{ "alphanum_fraction": 0.5741496599, "avg_line_length": 24.5, "ext": "agda", "hexsha": "66acf1b683ad2ae1288669bb857a66ed2bdf3854", "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...
-- There was a problem with reordering telescopes. module Issue234 where postulate A : Set P : A → Set data List : Set where _∷ : A → List data _≅_ {x : A}(p : P x) : ∀ {y} → P y → Set where refl : p ≅ p data _≡_ (x : A) : A → Set where refl : x ≡ x data Any (x : A) : Set where here : P x → Any x it :...
{ "alphanum_fraction": 0.4872727273, "avg_line_length": 17.7419354839, "ext": "agda", "hexsha": "8148604431638cec72c8817668b87256c47c9eb0", "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 HoTT module lib.Quaternions where data Sign : Type₀ where plus : Sign minus : Sign opposite : Sign → Sign opposite plus = minus opposite minus = plus _·_ : Sign → Sign → Sign plus · x = x minus · x = opposite x ·unitr : (x : Sign) → x · plus == x ·unitr plus = idp ·unit...
{ "alphanum_fraction": 0.4552360282, "avg_line_length": 29.7258064516, "ext": "agda", "hexsha": "44bd212a839c42baf4cdd0a727a68d755c25599b", "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 SOAS.Metatheory.Syntax -- Initial (⅀, 𝔛)-meta-algebra 𝕋 𝔛 is the free ⅀-monoid on 𝔛 module SOAS.Metatheory.FreeMonoid {T : Set} (Syn : Syntax {T}) where open Syntax Syn open import SOAS.Common open import SOAS.Families.Core {T} open import SOAS.Context {T} open import SOAS.Variable {T} open import S...
{ "alphanum_fraction": 0.5027554048, "avg_line_length": 32.9162790698, "ext": "agda", "hexsha": "ccf7304bbf319cef2da49bfeb3083884c044f103", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2022-01-24T12:49:17.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-09T...
{- Name: Bowornmet (Ben) Hudson --Type safety and meaning functions for L{⇒,+,×,unit}-- -} open import Preliminaries open import Preorder open import Preorder-repackage module L where -- => and + and × and unit data Typ : Set where _⇒_ : Typ → Typ → Typ _×'_ : Typ → Typ → Typ _+'_ : Typ → Typ → Typ...
{ "alphanum_fraction": 0.4231692677, "avg_line_length": 35.1971830986, "ext": "agda", "hexsha": "01155eaf198f8d301a5e1d11358ec1b1183cd64c", "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 Data.Nat where open import Data.Nat.Base public
{ "alphanum_fraction": 0.7, "avg_line_length": 15, "ext": "agda", "hexsha": "d84f77e551aa04d941bf1495a2687eb36edc36f9", "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-05T14:05:30.000Z", "m...
open import Common.Prelude open import Common.Reflection open import Common.Equality open import Agda.Builtin.Sigma magic₁ : ⊥ → Nat magic₁ = λ () magic₂ : ⊥ → Nat magic₂ = λ { () } magic₃ : ⊥ → Nat magic₃ () data Wrap (A : Set) : Set where wrap : A → Wrap A magic₄ : Wrap ⊥ → Nat magic₄ (wrap ()) data OK : Set...
{ "alphanum_fraction": 0.6333998669, "avg_line_length": 22.4328358209, "ext": "agda", "hexsha": "032317840273fb6fb6eb4007db76ed2f69caeddc", "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...
import cedille-options open import general-util module untyped-spans (options : cedille-options.options) {F : Set → Set} {{monadF : monad F}} where open import lib open import ctxt open import cedille-types open import spans options {F} open import syntax-util open import to-string options untyped-term-spans : term...
{ "alphanum_fraction": 0.7202343847, "avg_line_length": 82.6907216495, "ext": "agda", "hexsha": "3a765a565cd214eb5b264b7100a47a212253eb5d", "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...
data unit : Set where tt : unit record Y (A : Set) : Set where field y : A record Z (A : Set) : Set where field z : A instance -- Y[unit] : Y unit -- Y.y Y[unit] = tt Z[unit] : Z unit Z.z Z[unit] = tt foo : ∀ (A : Set) {{YA : Y A}} {{ZA : Z A}} → unit foo A = tt foo[unit] : unit foo[unit] = foo unit -- {{Z...
{ "alphanum_fraction": 0.5299401198, "avg_line_length": 18.5555555556, "ext": "agda", "hexsha": "64378729628e7ed66d3b28fccaf357a8c96ef0d7", "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 L.Base.Empty where -- Reexport definitions open import L.Base.Empty.Core public
{ "alphanum_fraction": 0.7954545455, "avg_line_length": 17.6, "ext": "agda", "hexsha": "b34a648c8b7d3471ae27a797e567dfd586306acf", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "8...
{-# OPTIONS --without-K --rewriting #-} open import lib.Base open import lib.Equivalence open import lib.PathGroupoid open import lib.NType open import lib.Univalence open import lib.path-seq.Concat open import lib.path-seq.Split module lib.path-seq.Reasoning where infix 30 _=↯=_ _=↯=_ : ∀ {i} {A : Type i} {a a' : A...
{ "alphanum_fraction": 0.4040079169, "avg_line_length": 28.2657342657, "ext": "agda", "hexsha": "4c243eb2f706ac125aadd0603bfee53a7b4b84c3", "lang": "Agda", "max_forks_count": 50, "max_forks_repo_forks_event_max_datetime": "2022-02-14T03:03:25.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-10...
{-# OPTIONS --prop --rewriting #-} open import Examples.Sorting.Parallel.Comparable module Examples.Sorting.Parallel.MergeSortPar (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.Types.Na...
{ "alphanum_fraction": 0.4858346355, "avg_line_length": 42.5404624277, "ext": "agda", "hexsha": "f7a849455a46e9b1204b6773afab4960c6dd2f04", "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...
{-# OPTIONS --without-K #-} module Model.Exponential where open import Cats.Category open import Model.RGraph as RG using (RGraph) open import Model.Type.Core open import Model.Product open import Util.HoTT.HLevel open import Util.Prelude hiding (_×_ ; id ; _∘_) open RGraph open RG._⇒_ private variable Δ : RGrap...
{ "alphanum_fraction": 0.493501671, "avg_line_length": 23.8318584071, "ext": "agda", "hexsha": "ea993be150317c2dca44d02cb7fc8a9e32f128c8", "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...
------------------------------------------------------------------------ -- Simple expressions ------------------------------------------------------------------------ -- Several examples based on Matsuda and Wang's "FliPpr: A Prettier -- Invertible Printing System". {-# OPTIONS --guardedness #-} module Examples.Exp...
{ "alphanum_fraction": 0.5317587403, "avg_line_length": 26.9568345324, "ext": "agda", "hexsha": "30435bded91d95ba8cd89facd35a5ddbce4d6e0f", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
open import Data.Empty using ( ⊥ ; ⊥-elim ) open import Data.Nat using ( ℕ ; zero ; suc ) open import Data.Product using ( ∃ ; _×_ ; _,_ ) open import FRP.LTL.RSet.Core using ( RSet ; _[_,_⟩ ; _[_,_] ; ⟦_⟧ ) open import FRP.LTL.RSet.Causal using ( _⊵_ ; identity ) open import FRP.LTL.RSet.Stateless using ( _⇒_ ) open i...
{ "alphanum_fraction": 0.4888211382, "avg_line_length": 31.0736842105, "ext": "agda", "hexsha": "693ee7e95077c9fffcb1603bf1213c2609433c22", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:39:04.000Z", "max_forks_repo_forks_event_min_datetime": "2015-03-01T...
-- Correctness conditions for the boolean AND gate f : Tensor Real [2] -> Tensor Real [1] f = evaluate _ _ truthy : Real -> Set truthy x = x >= 0.5 falsey : Real -> Set falsey x = x <= 0.5 validInput : Tensor Real [2] -> Set validInput x = All (λ xi -> 0 <= xi ∧ xi <= 1) x correctOutput : Tensor Real [2] -> Set co...
{ "alphanum_fraction": 0.6085578447, "avg_line_length": 24.2692307692, "ext": "agda", "hexsha": "73cde6e07405de41d3135c9f4677ca9191c4b910", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --allow-unsolved-metas #-} module Sequent where open import OscarPrelude open import Formula infix 15 _╱_ record Sequent : Set where constructor _╱_ field statement : Formula suppositions : List Formula open Sequent public instance EqSequent : Eq Sequent Eq._==_ EqSequent ( φᵗ₁ ╱ φˢs₁ ) ( φ...
{ "alphanum_fraction": 0.790247161, "avg_line_length": 30.5510204082, "ext": "agda", "hexsha": "bbddbd206a872c09644452b678de227ff8a8631f", "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 Dodo.Binary.Subtraction where -- Stdlib imports open import Level using (Level; _⊔_) open import Relation.Binary using (REL) -- Local imports open import Dodo.Binary.Empty using (¬₂_) open import Dodo.Binary.Intersection using (_∩₂_) -- # Definitions infixl 30 _\₂_ _\₂_ :...
{ "alphanum_fraction": 0.6566820276, "avg_line_length": 22.8421052632, "ext": "agda", "hexsha": "83f659746d7cb766718d7c58ebc614ef567e4d29", "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 --rewriting #-} module Properties.StrictMode where import Agda.Builtin.Equality.Rewrite open import Agda.Builtin.Equality using (_≡_; refl) open import FFI.Data.Maybe using (Maybe; just; nothing) open import Luau.Heap using (Heap; Object; function_is_end; defn; alloc; ok; next; lookup-not-allocated) renam...
{ "alphanum_fraction": 0.646108993, "avg_line_length": 84.4863157895, "ext": "agda", "hexsha": "77852f1a7459ecce8a5fe0b67d7ee05be5b0481f", "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...
------------------------------------------------------------------------------ -- Properties for the relation LTL ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #...
{ "alphanum_fraction": 0.4956056553, "avg_line_length": 35.3648648649, "ext": "agda", "hexsha": "0d9b4c5ccb2a99a52e6b21ce37677a917ab9187c", "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 Optics.Lens where open import Agda.Primitive using (Level; _⊔_; lsuc) open import Data.Product using (_×_; _,_; ∃-syntax) open import Function.Inverse using (_↔_; inverse) open import Relation.Binary.PropositionalEquality using (_≡_; refl; module ≡-Reasoning; cong) open import Category.Functor.Arr open import C...
{ "alphanum_fraction": 0.5575692964, "avg_line_length": 39.0833333333, "ext": "agda", "hexsha": "3a36bf4da2ecdb0ca60fad5de7c9897c5150f2b3", "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 #-} {- Imports everything that is not imported by something else. This is not supposed to be used anywhere, this is just a simple way to do `make all' This file is intentionally named index.agda so that Agda will generate index.html. -} module index where {- some group theory res...
{ "alphanum_fraction": 0.802824004, "avg_line_length": 27.1643835616, "ext": "agda", "hexsha": "d34751414bea0e5763d5e7c6036e7f14740ca209", "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-26T2...
module cedille where open import lib open import cedille-types public ---------------------------------------------------------------------------------- -- Run-rewriting rules ---------------------------------------------------------------------------------- data gratr2-nt : Set where _ws-plus-77 : gratr2-nt _ws...
{ "alphanum_fraction": 0.6338782105, "avg_line_length": 130.6722797927, "ext": "agda", "hexsha": "8c0d76da79cae73839e0f90ede3533c5e37d44cc", "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_h...
{-# OPTIONS --rewriting --confluence-check #-} data _==_ {i} {A : Set i} : (x y : A) → Set i where refl : {a : A} → a == a {-# BUILTIN REWRITE _==_ #-} data ⊥ : Set where record ⊤ : Set where constructor tt module Test (p : ⊥ == ⊤) where abstract A : Set A = ⊥ q : A == ⊤ q = p {-# REWRI...
{ "alphanum_fraction": 0.4802784223, "avg_line_length": 14.3666666667, "ext": "agda", "hexsha": "fce86f08303102376eed679d34547b0bd4bd0d43", "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 interfaceExtensionAndDelegation where open import Data.Product open import Data.Nat.Base open import Data.Nat.Show open import Data.String.Base using (String; _++_) open import Size open import NativeIO open import interactiveProgramsAgda using (ConsoleInterface; _>>=_; do; ...
{ "alphanum_fraction": 0.560599383, "avg_line_length": 33.3676470588, "ext": "agda", "hexsha": "292887218748123ddfd1721e7be70d43a2d1bcc3", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:41:00.000Z", "max_forks_repo_forks_event_min_datetime": "2018-09-01T1...
{-# OPTIONS --cubical #-} module Integer.Univalence where open import Cubical.Foundations.NTypes open import Data.Empty open import Data.Product as Σ open import Data.Product.Relation.Pointwise.NonDependent open import Data.Unit open import Equality open import Function open import Integer.Difference as D open import...
{ "alphanum_fraction": 0.4940617577, "avg_line_length": 33.8303571429, "ext": "agda", "hexsha": "fb0e3c10c7aa93fa5fa9bdf328f985d855ea526b", "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 anything : ∀{a}{A : Set a} → A data N : Set where suc : (n : N) → N data Val : (n : N) → Set where valSuc : (n : N) → Val (suc n) -- valSuc : (n : N) → Val n -- internal error disappears Pred : Set₁ Pred = (n : N) → Set postulate Any : (P : Pred) → Set F : (P : Pred) → Pred anyF : {P : Pre...
{ "alphanum_fraction": 0.5211009174, "avg_line_length": 20.1851851852, "ext": "agda", "hexsha": "023e559836c49b655b7fac475e0d81ec7586714f", "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 --safe #-} -- The 'Identity' instance, with all of Setoids as models module Categories.Theory.Lawvere.Instance.Identity where open import Data.Fin using (splitAt) open import Data.Sum using ([_,_]′) open import Data.Unit.Polymorphic using (⊤; tt) open import Level open import Relation.Binary....
{ "alphanum_fraction": 0.7326906223, "avg_line_length": 33.5588235294, "ext": "agda", "hexsha": "c40264462d1f13c93643de6cf4e8b3df9ff315fa", "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...
-- Andreas, 2016-11-02, issue #2285 -- double check for record types record Big : _ where field any : ∀{a} → Set a
{ "alphanum_fraction": 0.6525423729, "avg_line_length": 19.6666666667, "ext": "agda", "hexsha": "3f5612a9928a1b9661f0379bd8ddba54c0e75b11", "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 --allow-unsolved-metas --no-positivity-check --no-termination-check --type-in-type --sized-types --injective-type-constructors --guardedness-preserving-type-constructors --experimental-irrelevance #-} module SafeFlagPragmas ...
{ "alphanum_fraction": 0.5840978593, "avg_line_length": 29.7272727273, "ext": "agda", "hexsha": "8fd7a172b05fc3e26d51e2264532d17ac0aac4eb", "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...
-- Andreas, 2020-09-26, issue #4944. -- Size solver got stuck on projected variables which are left over -- in some size constraints by the generalization feature. -- {-# OPTIONS --sized-types #-} -- {-# OPTIONS --show-implicit #-} -- {-# OPTIONS -v tc.conv.size:60 -v tc.size:30 -v tc.meta.assign:10 #-} open import A...
{ "alphanum_fraction": 0.5755148741, "avg_line_length": 23.6216216216, "ext": "agda", "hexsha": "7f85cf8d2b75d5e47bbb4fd76d3172c327b2624a", "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...