Search is not available for this dataset
text
string
meta
dict
{-# OPTIONS --prop --rewriting #-} module Examples.Gcd.Clocked where open import Calf.CostMonoid import Calf.CostMonoids as CM open import Calf CM.ℕ-CostMonoid open import Calf.Types.Nat open import Data.Nat using (_≤_; z≤n) open import Calf.Types.Unit open import Calf.Types.Bounded CM.ℕ-CostMonoid open import Calf....
{ "alphanum_fraction": 0.70041841, "avg_line_length": 41.2068965517, "ext": "agda", "hexsha": "606ccf084ac3a6367d476f5baab9762631562835", "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...
{-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS --without-K #-} module LeibnizEquality where ------------------------------------------------------------------------------ -- The identity type. data _≡_ {A : Se...
{ "alphanum_fraction": 0.4636871508, "avg_line_length": 30.3962264151, "ext": "agda", "hexsha": "a9f9539f45553719c5e6588ee4a93c67795c73eb", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-19T...
{-# OPTIONS --without-K --safe #-} -- Definition of Pi with fractionals module PiFrac where -- From the standard library: open import Data.Empty using (⊥) open import Data.Unit using (⊤; tt) open import Data.Sum using (_⊎_; inj₁; inj₂) open import Data.Product using (_×_; _,_; proj₁; proj₂) open import Relation.Bina...
{ "alphanum_fraction": 0.4410130719, "avg_line_length": 37.5460122699, "ext": "agda", "hexsha": "acd5c292c0730f9d05127a73ce6962b19148a805", "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...
open import Web.Semantic.DL.Signature using ( Signature ) open import Web.Semantic.DL.TBox using ( TBox ) import Web.Semantic.DL.Category.Composition import Web.Semantic.DL.Category.Morphism import Web.Semantic.DL.Category.Object import Web.Semantic.DL.Category.Properties import Web.Semantic.DL.Category.Tensor import ...
{ "alphanum_fraction": 0.6059518469, "avg_line_length": 36.3423913043, "ext": "agda", "hexsha": "13c0375a880985435b1287735b6a3f6bbad1cb14", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:40:03.000Z", "max_forks_repo_forks_event_min_datetime": "2017-12-03T...
------------------------------------------------------------------------ -- The Agda standard library -- -- Explaining how to use the inspect idiom and elaborating on the way -- it is implemented in the standard library. ------------------------------------------------------------------------ {-# OPTIONS --without-K -...
{ "alphanum_fraction": 0.5906286155, "avg_line_length": 38.992481203, "ext": "agda", "hexsha": "22f11e5d4db856fbe41b387b626c1fe95a4db081", "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-04T0...
-- named arguments should be allowed in module applications module Issue420 where module M {A : Set₁} where open M {A = Set}
{ "alphanum_fraction": 0.7401574803, "avg_line_length": 18.1428571429, "ext": "agda", "hexsha": "48863f5ae183ba22775d9f1f914df8dc76e28912", "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 #-} module Data.Bool.Base where open import Level open import Agda.Builtin.Bool using (Bool; true; false) public open import Data.Unit bool : ∀ {ℓ} {P : Bool → Type ℓ} (f : P false) (t : P true) → (x : Bool) → P x bool f t false = f bool f t true = t {-# INLINE bool #-} bool′ : A → A ...
{ "alphanum_fraction": 0.6197183099, "avg_line_length": 19.1891891892, "ext": "agda", "hexsha": "9dab142c1b3e1259175007a53e8aa5f40a26d4fe", "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 sn-calculus-compatconf.in-lift where open import sn-calculus-compatconf.base open import sn-calculus open import utility renaming (_U̬_ to _∪_) open import context-properties using (get-view ; wrap-rho ; unwrap-rho ; ->E-view ; E-view-main-bind ; _a~_ ; ->E-view-term ; ->E-view-inner-term ; don...
{ "alphanum_fraction": 0.6027067669, "avg_line_length": 36.5384615385, "ext": "agda", "hexsha": "acf83fb6edf6164190d771a3306272a5f7ff9def", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-04-15T20:02:49.000Z", "max_forks_repo_forks_event_min_datetime": "2020-04-15T...
-- Modified: Andreas, 2011-04-11 freezing metas, removed unused uni.poly {-# OPTIONS --guardedness-preserving-type-constructors #-} module UnusedArgsInPositivity where open import Common.Coinduction module Ex₁ where data Unit : Set where unit : Unit unused : Set → Unit → Set → Set unused X unit Y = Y ...
{ "alphanum_fraction": 0.643989432, "avg_line_length": 23.65625, "ext": "agda", "hexsha": "d9966b8c74ca67e84939dcd3893caf5a9772e101", "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-05T20:02:...
{-# OPTIONS --without-K #-} module M-types.Base.Axiom where open import M-types.Base.Core public open import M-types.Base.Sum public open import M-types.Base.Prod public open import M-types.Base.Eq public open import M-types.Base.Equi public postulate funext-axiom : {X : Ty ℓ₀} {Y : ...
{ "alphanum_fraction": 0.5467372134, "avg_line_length": 29.8421052632, "ext": "agda", "hexsha": "c96a1b86175e13a129db7484e48d66235f406037", "lang": "Agda", "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 Dodo.Binary.Product where -- Stdlib imports open import Level using (Level; _⊔_) open import Function using (flip) open import Data.Product using (_×_; _,_; map₁; map₂) open import Relation.Unary using (Pred; _∈_) open import Relation.Binary using (REL; Rel) -- Local imports ...
{ "alphanum_fraction": 0.4827323514, "avg_line_length": 27.9290780142, "ext": "agda", "hexsha": "6e10758dbeeecc011692325a063e0a4423549e34", "lang": "Agda", "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 memoising backend ------------------------------------------------------------------------ -- This code has bitrotted. -- Following Frost/Szydlowski and Frost/Hafiz/Callaghan (but without -- the left recursion fix). An improvement has been ...
{ "alphanum_fraction": 0.5865775331, "avg_line_length": 32.3262711864, "ext": "agda", "hexsha": "8cf8a7ec78c12813ff550825d305ba9b295208b0", "lang": "Agda", "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 --rewriting --confluence-check #-} postulate _↦_ : {A : Set} → A → A → Set {-# BUILTIN REWRITE _↦_ #-} data _==_ {A : Set} (a : A) : A → Set where idp : a == a PathOver : {A : Set} (B : A → Set) {x y : A} (p : x == y) (u : B x) (v : B y) → Set PathOver B idp u v = (u == v) inf...
{ "alphanum_fraction": 0.4954806902, "avg_line_length": 22.1272727273, "ext": "agda", "hexsha": "d5d3791987707f96c39ff37161420e4b4b7a8d82", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
------------------------------------------------------------------------ -- The Agda standard library -- -- Some derivable properties ------------------------------------------------------------------------ open import Algebra module Algebra.Properties.Ring {r₁ r₂} (R : Ring r₁ r₂) where import Algebra.Properties.Ab...
{ "alphanum_fraction": 0.4163150492, "avg_line_length": 41.0192307692, "ext": "agda", "hexsha": "84ef44d4a2af053673ead20175db8a67136ed287", "lang": "Agda", "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.Algebra.Polynomials.Multivariate.EquivCarac.An[X]X-A where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Function open import Cubical.Foundations.Equiv open import Cubical.Foundations.Isomorphism open import Cubical.Data....
{ "alphanum_fraction": 0.485479798, "avg_line_length": 33.5830388693, "ext": "agda", "hexsha": "bc79ade974622cab08783493c39ccac10387693a", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
open import Categories open import Functors open import RMonads module RMonads.CatofRAdj.TermRAdjHom {a b c d}{C : Cat {a}{b}}{D : Cat {c}{d}} {J : Fun C D}(M : RMonad J) where open import Library open import RAdjunctions open import RMonads.CatofRAdj M open import Categories.Term...
{ "alphanum_fraction": 0.3994931576, "avg_line_length": 35.3584229391, "ext": "agda", "hexsha": "9ec22c194427b303c94f0017a3eac2c2c75b7f1b", "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-import-sorts --no-exact-split --safe #-} module Cubical.Data.NatMinusOne.Base where open import Cubical.Core.Primitives open import Cubical.Data.Nat open import Cubical.Data.Empty record ℕ₋₁ : Type₀ where constructor -1+_ field n : ℕ pattern neg1 = -1+ zero pattern ℕ→ℕ₋₁ n = -1+ (s...
{ "alphanum_fraction": 0.6295369212, "avg_line_length": 23.5, "ext": "agda", "hexsha": "fd3c36d46cfbb755fa40843e43b4b44471391841", "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 --rewriting #-} open import HoTT open import cohomology.ChainComplex open import cohomology.Theory open import groups.KernelImage open import cw.CW module cw.cohomology.ReconstructedCohomologyGroups {i : ULevel} (OT : OrdinaryTheory i) where open OrdinaryTheory OT open import cw.cohomolog...
{ "alphanum_fraction": 0.7398171239, "avg_line_length": 40.1, "ext": "agda", "hexsha": "1a7e720991d776b984ded657cb7d23495468c150", "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-26T21:31:57....
module Qsort where open import Sec4 -- The module with definition of propositions import Sec2 -- postulate needed for ≤ on A postulate leq : {A : Set} → A → A → Prop postulate geq : {A : Set} → A → A → Prop postulate tot-list : {A : Set} → (a b : A) → (leq a b) ∨ (leq b a) postulate trans-list : {A : ...
{ "alphanum_fraction": 0.4739740629, "avg_line_length": 28.4292929293, "ext": "agda", "hexsha": "2e2df15bc99760ee9792c7cb918bf9c13f3e8098", "lang": "Agda", "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, 2021-07-25, issue #5478 reported by mrohman {-# OPTIONS --allow-unsolved-metas #-} {-# OPTIONS --double-check #-} -- {-# OPTIONS -v impossible:70 #-} -- {-# OPTIONS -v tc:20 #-} -- {-# OPTIONS -v tc.interaction:30 #-} -- {-# OPTIONS -v tc.meta:25 #-} -- {-# OPTIONS -v tc.rec:20 #-} -- {-# OPTIONS -v tc.cc...
{ "alphanum_fraction": 0.5666666667, "avg_line_length": 19.4594594595, "ext": "agda", "hexsha": "a915f45caeeee26f6e3dff80e6359ff97f048a9c", "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...
-- Scenario: -- * start with B only -- * write 'f B = B' -- * add constructor A -- * want to deal with it first to preserve alphabetical ordering of clauses -- * add 'f t = ?' *above* 'f B = B' -- WAS: split t, get A and B -- WANT: split t, get A only data Type : Set where A B : Type f : Type → Type f t = {!!...
{ "alphanum_fraction": 0.5727272727, "avg_line_length": 19.4117647059, "ext": "agda", "hexsha": "7f00391e2e10a7fc5b962885ad4c3059cf16849b", "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 --rewriting #-} open import HoTT open import cohomology.Theory open import groups.ExactSequence open import groups.HomSequence open import homotopy.CofiberSequence module cohomology.LongExactSequence {i} (CT : CohomologyTheory i) {X Y : Ptd i} (n : ℤ) (f : X ⊙→ Y) where open CohomologyTheor...
{ "alphanum_fraction": 0.6144859813, "avg_line_length": 37.9240506329, "ext": "agda", "hexsha": "600d7060c88ae782a8c17d0fc0140cc4d53b3ef8", "lang": "Agda", "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 --erased-cubical #-} open import Agda.Builtin.Bool open import Agda.Builtin.Cubical.Path open import Agda.Primitive open import Agda.Primitive.Cubical private variable a p : Level A : Set a P : A → Set p x y : A refl : x ≡ x refl {x = x} = λ _ → x subst : (P : A → Set p) → x ≡ y → ...
{ "alphanum_fraction": 0.5428253615, "avg_line_length": 19.9777777778, "ext": "agda", "hexsha": "55e9ab9c92dc8c3026ea1f347560f0da477525f6", "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 Issue3879.Fin where open import Agda.Builtin.Nat data Fin : Nat → Set where zero : ∀ {n} → Fin (suc n) suc : ∀ {n} → Fin n → Fin (suc n) pattern 0F = zero
{ "alphanum_fraction": 0.6176470588, "avg_line_length": 17, "ext": "agda", "hexsha": "635d984f8b5888cab82654d7b56f2fb9bc99030c", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:08....
module UnifyTerm where open import Data.Fin using (Fin; suc; zero) open import Data.Nat using (ℕ; suc; zero) open import Relation.Binary.PropositionalEquality using (_≡_; refl; cong₂; cong; sym; trans) open import Function using (_∘_) open import Relation.Nullary using (¬_; Dec; yes; no) open import Data.Product usin...
{ "alphanum_fraction": 0.4915927851, "avg_line_length": 33.2081218274, "ext": "agda", "hexsha": "546a81d7aed5bff09097a8a59f45eff0a5252e29", "lang": "Agda", "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.Equivalence as FE using () open import Relation.Nullary using (yes; no) open import Relation.Nullary.Negation using (contradiction) open import Relation.Nullary.Product using (_×-dec_) open import Relation.Nullary.Decidable using (False; map) open import Relation.Binary using (Decidable) open impor...
{ "alphanum_fraction": 0.5776173285, "avg_line_length": 38.0610687023, "ext": "agda", "hexsha": "f182b5d4fd20141b1c2f90d8c88555df8f7fec58", "lang": "Agda", "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, 2017-12-04, issue #2862, reported by m0davis, case for records -- Regression in development version 2.5.4 -- Scope checker allowed definition in different module than signature module _ where module N where record R : Set where open N hiding (module R) module M where record R where -- should be re...
{ "alphanum_fraction": 0.7245508982, "avg_line_length": 19.2692307692, "ext": "agda", "hexsha": "85f0054786a701aac262771a2c5838f130a37a1a", "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 --universe-polymorphism #-} module NoPanic where postulate Level : Set lzero : Level lsuc : Level → Level {-# BUILTIN LEVEL Level #-} {-# BUILTIN LEVELZERO lzero #-} {-# BUILTIN LEVELSUC lsuc #-} module M {A : Set} where postulate I : A → ∀ a → Set a i : ∀ (x : A) {a} → I x a ...
{ "alphanum_fraction": 0.6045380875, "avg_line_length": 19.28125, "ext": "agda", "hexsha": "57afbd3a87871b4aa6661de6ad9394ec40d3018f", "lang": "Agda", "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 Ual.Ord where open import Agda.Primitive open import Ual.Void open import Ual.Eq open import Ual.Either open import Ual.Both record Ord {a} (A : Set a) : Set (lsuc a) where infix 30 _<_ infix 30 _>_ infix 30 _≤_ infix 30 _≥_ field ⦃ eqA ⦄ : Eq A _<_ : A → A → Set _>_ : A → A → Se...
{ "alphanum_fraction": 0.4751724138, "avg_line_length": 27.358490566, "ext": "agda", "hexsha": "dda745e6310ae3e005279a3a44d93a88e1a57c32", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
record R : Set₁ where field ⟨_+_⟩ : Set open R -- Name parts coming from projections can not be used as part of -- variables. F : Set → Set F + = +
{ "alphanum_fraction": 0.6242038217, "avg_line_length": 13.0833333333, "ext": "agda", "hexsha": "6b5d74906bf1525e78827d4e05267f9309f25f5f", "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...
------------------------------------------------------------------------ -- IO ------------------------------------------------------------------------ {-# OPTIONS --without-K #-} module IO-monad where open import Monad.Raw open import Prelude open import String -----------------------------------------------------...
{ "alphanum_fraction": 0.4914956012, "avg_line_length": 27.9508196721, "ext": "agda", "hexsha": "ed1b784d896b8230b60e9cde6bd43c5c93a9c5f5", "lang": "Agda", "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 #-} {-# OPTIONS --allow-unsolved-metas #-} -- This issue demonstrates that a failing termination check, -- subsequently blocking reductions, makes some `impossible' -- cases possible in the conversion checker. module Issue921 where infix 3 _==_ postulate _==_ : {A : Set} → A → A → ...
{ "alphanum_fraction": 0.4378522694, "avg_line_length": 28.5677966102, "ext": "agda", "hexsha": "f193a4562c87b3e2464c4c4d27b0ff08bb2731e0", "lang": "Agda", "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 Relation.Binary.Core module InsertSort.Impl2.Correctness.Permutation.Base {A : Set} (_≤_ : A → A → Set) (tot≤ : Total _≤_) where open import Bound.Lower A open import Bound.Lower.Order _≤_ open import Data.List open import Data.Sum open import InsertSort.Impl2 _≤_ tot≤ ...
{ "alphanum_fraction": 0.6418242492, "avg_line_length": 35.96, "ext": "agda", "hexsha": "1e6220ecb2344163c905f2b03863fddd78699e5e", "lang": "Agda", "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 Issue731 where data empty : Set where foo : empty → _ foo () bar : empty → Set bar = foo {- But when I want to know what are the constraints (C-c C-= in emacs), I get the following error instead: No binding for builtin thing LEVELZERO, use {-# BUILTIN LEVELZERO name #-} to bind it to 'name' when checking th...
{ "alphanum_fraction": 0.6904400607, "avg_line_length": 25.3461538462, "ext": "agda", "hexsha": "0866e0f7c70fcfb0b27756f5757af5e527db0a2f", "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...
record R : Set₁ where field A : Set open R ⦃ … ⦄ -- The inferred type of A is ⦃ r : R ⦄ → Set. However, the following -- code is rejected: X : R → Set X r = A ⦃ r = r ⦄ -- WAS: Function does not accept argument ⦃ r = r ⦄ -- when checking that ⦃ r = r ⦄ is a valid argument to a function of -- type ⦃ r = r₁ : ...
{ "alphanum_fraction": 0.58, "avg_line_length": 18.4210526316, "ext": "agda", "hexsha": "6b0224bdc4697b12f154f06adc5800b1284a2f68", "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:...
-- 2017-11-01, issue #2668 reported by brprice -- -- This seems to have been fixed in 2.5.3 (specifically, commit -- 8518b8e seems to have solved this, along with #2727 and #2726) -- {-# OPTIONS -v tc.mod.apply:20 #-} -- {-# OPTIONS -v tc.proj.like:40 #-} -- {-# OPTIONS -v tc.signature:60 #-} -- {-# OPTIONS -...
{ "alphanum_fraction": 0.6138268156, "avg_line_length": 24.6896551724, "ext": "agda", "hexsha": "8ae14a41848e379c72edaecbf31611c7098b631d", "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 --rewriting #-} open import HoTT open import cohomology.Theory open import groups.Exactness open import groups.HomSequence open import groups.ExactSequence open import cw.CW module cw.cohomology.Descending {i} (OT : OrdinaryTheory i) where open OrdinaryTheory OT open import cw.cohomology.Tip...
{ "alphanum_fraction": 0.5721448468, "avg_line_length": 38.6021505376, "ext": "agda", "hexsha": "904b91452588acc5d2cfb9156022ea34f1cdc837", "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...
module Issue558 where data Nat : Set where Z : Nat S : Nat → Nat data _≡_ {A : Set} (a : A) : A → Set where Refl : a ≡ a plus : Nat → Nat → Nat plus Z n = n plus (S n) m = S (plus n m) record Addable (τ : Set) : Set where constructor addable field _+_ : τ → τ → τ open module AddableIFS {t : Set} {{r : Ad...
{ "alphanum_fraction": 0.5646916566, "avg_line_length": 19.6904761905, "ext": "agda", "hexsha": "08028f8bf612d273b4b80f641a49dbb84ce0e243", "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 --rewriting #-} data Nat : Set where zero : Nat suc : Nat → Nat {-# BUILTIN NATURAL Nat #-} _+_ : Nat → Nat → Nat zero + m = m suc n + m = suc (n + m) {-# BUILTIN NATPLUS _+_ #-} -- Without this, the internal error disappears. postulate _≡_ : Nat → Nat → Set {-# BUILTIN REWRITE _≡_ #-} postulate ...
{ "alphanum_fraction": 0.5648994516, "avg_line_length": 18.8620689655, "ext": "agda", "hexsha": "e959d550480176a7fd37c257067186c4dca55d35", "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 --safe #-} module Cubical.Algebra.Ring.Base where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Function open import Cubical.Foundations.Isomorphism open import Cubical.Foundations.Equiv open import Cubical.Foundations.HLevels open import Cubical.Foundations.SIP open import Cubic...
{ "alphanum_fraction": 0.5525492361, "avg_line_length": 32.6306306306, "ext": "agda", "hexsha": "c89640ae8ba0953163df6b052c9581c0e0310308", "lang": "Agda", "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 Data.Tree where open import Data.Tree.Base public
{ "alphanum_fraction": 0.8103448276, "avg_line_length": 14.5, "ext": "agda", "hexsha": "64e7c097e7976eca734e9cda3987b340b585aaf3", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-10-20T10:46:20.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-27T23:12:48....
{-# OPTIONS --without-K #-} module sets.nat.ordering.leq where open import sets.nat.ordering.leq.core public open import sets.nat.ordering.leq.level public open import sets.nat.ordering.leq.decide public
{ "alphanum_fraction": 0.7853658537, "avg_line_length": 29.2857142857, "ext": "agda", "hexsha": "6751c1de330438486c84d4b1bf7544e7c3366fd0", "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...
module InfConj where open import Data.Bool open import Data.Sum open import Relation.Binary.PropositionalEquality record Stream (A : Set) : Set where coinductive constructor _∷_ field hd : A tl : Stream A open Stream public -- | Partial elements record D (A : Set) : Set where coinductive field step...
{ "alphanum_fraction": 0.5707013575, "avg_line_length": 26, "ext": "agda", "hexsha": "2e7ce4693f21bb89b5e8b421a381ebeb45f7e457", "lang": "Agda", "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": "8fc...
------------------------------------------------------------------------ -- List membership and some related definitions open import Level using (Level; _⊔_) open import Relation.Binary open import Relation.Binary.List.Pointwise as ListEq using ([]; _∷_) open import Relation.Nullary open import Data.List open import Da...
{ "alphanum_fraction": 0.5608828006, "avg_line_length": 28.5652173913, "ext": "agda", "hexsha": "ada23fc138c1e66f317da46a6851e454c23a2e5e", "lang": "Agda", "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 ⊤ : Set where tt : ⊤ record R : Set where constructor r field .x : ⊤ f : R → R R.x (f (r x)) = {!x!}
{ "alphanum_fraction": 0.4955752212, "avg_line_length": 11.3, "ext": "agda", "hexsha": "5b4dec09dfba3d3165c703e632cfe7e23628fa3b", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:0...
-- {-# OPTIONS -v tc.with:40 #-} id : (A : Set) → A → A id A = {!id′!} -- C-c C-h produces: id′ : ∀ {A} → A -- when it should produce: id′ : ∀ {A} → A → A f : (A : Set) (B : A → Set) (a : A) → B a f A B a = {!g A a!} -- Before: ∀ {A} {B : A → Set} A₁ (a : A₁) → B a -- After: ∀ A (a : A) {B : A → Set} → B...
{ "alphanum_fraction": 0.3839009288, "avg_line_length": 26.9166666667, "ext": "agda", "hexsha": "5c06d5cb00d2720fd0c566ff642397e85e3c36d9", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-05T...
{-# OPTIONS --without-K #-} open import Base open import Homotopy.PushoutDef module Homotopy.PushoutIsPushout {i} (d : pushout-diag i) where import Homotopy.PushoutUP as PushoutUP open PushoutUP d (λ _ → unit) -- A B C f g (λ _ → unit) pushout-cocone : cocone (pushout d) pushout-cocone = (left , right , glue) fac...
{ "alphanum_fraction": 0.538590604, "avg_line_length": 36.1212121212, "ext": "agda", "hexsha": "f785856f1e67fae3f7239315d143e592d64655c1", "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-10T...
{-# OPTIONS -v tc.force:60 #-} open import Agda.Builtin.Nat open import Agda.Builtin.List module _ {a} {A : Set a} where [_] : A → List A [ x ] = x ∷ [] data FSet : List A → Set a where sg : (x : A) → FSet [ x ] -- ^ should be forced HOLE : Set HOLE = {!!} -- just to force make bugs to look...
{ "alphanum_fraction": 0.552238806, "avg_line_length": 19.7058823529, "ext": "agda", "hexsha": "702177211bb6d56274514e041bd32bcbd8294210", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03...
module Numeral.Natural.Function.FlooredLogarithm where open import Data open import Data.Boolean.Stmt open import Numeral.Natural open import Numeral.Natural.Inductions open import Numeral.Natural.Oper open import Numeral.Natural.Oper.Comparisons open import Numeral.Natural.Oper.FlooredDivision open import Numeral.Nat...
{ "alphanum_fraction": 0.6859323882, "avg_line_length": 38.2083333333, "ext": "agda", "hexsha": "da088a946968fbdfa4efd54fa5b9401c63089bf4", "lang": "Agda", "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 -- -- Natural Literals ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Nat.Literals where open import Agda.Builtin.FromNat open import Agda.Bui...
{ "alphanum_fraction": 0.4547511312, "avg_line_length": 22.1, "ext": "agda", "hexsha": "ac6a33aaacc332feb5c10a274bd2dbc132bfc4fe", "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 #-} module Fragment.Setoid.Morphism.Base where open import Level using (Level; _⊔_) open import Function using (_∘_; Congruent) import Relation.Binary.PropositionalEquality as PE open import Relation.Binary using (Setoid) private variable a b c ℓ₁ ℓ₂ ℓ₃ : Level mo...
{ "alphanum_fraction": 0.5329815303, "avg_line_length": 24.7173913043, "ext": "agda", "hexsha": "fd05e5f006236d4957b00dc8515c44b0e3d46b2a", "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-15T...
{-# OPTIONS --cubical --safe #-} module Data.Unit.Properties where open import Data.Unit open import Prelude isProp⊤ : isProp ⊤ isProp⊤ _ _ = refl
{ "alphanum_fraction": 0.7066666667, "avg_line_length": 15, "ext": "agda", "hexsha": "2497d6023e5ac0e5879b6926f0231798444c8968", "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.00...
postulate R : Set → Set1 r : {X : Set} {{ _ : R X }} → X → Set A : Set a : A instance RI : R A -- RI = {!!} -- uncommenting lets instance resolution succeed foo : r a
{ "alphanum_fraction": 0.5248618785, "avg_line_length": 15.0833333333, "ext": "agda", "hexsha": "cbaa18ca5e472af05ae84c6e8db67fa9276c38bd", "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 Numeral.Natural.Relation.Divisibility.Proofs.Product where open import Data.Tuple open import Functional open import Logic open import Logic.Predicate open import Logic.Propositional import Lvl open import Numeral.Integer import Numeral.Integer.Oper as ℤ open import Numeral.Integer.Proofs import ...
{ "alphanum_fraction": 0.5912628672, "avg_line_length": 51.0641025641, "ext": "agda", "hexsha": "0cc1a7cd9da3d69554b7aa06c0d67cc1535c4cdf", "lang": "Agda", "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 Agda.Primitive variable @0 ℓ : Level A : Set ℓ levelOf : A → Level levelOf {a} _ = a
{ "alphanum_fraction": 0.640776699, "avg_line_length": 11.4444444444, "ext": "agda", "hexsha": "bccae8166c58106c3df5483916239d953b2c4cab", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03...
module Selective.Examples.Bookstore where open import Selective.ActorMonad open import Selective.Libraries.Call using (UniqueTag ; call) open import Prelude open import Data.Nat using ( _≟_ ; pred ; ⌈_/2⌉ ; _≤?_ ; _∸_ ; _≤_ ; z≤n ; s≤s ; _<_ ; _≰_ ) open import Data.Nat.Properties using (≤-antisym ; ≰⇒>) open im...
{ "alphanum_fraction": 0.5800369401, "avg_line_length": 38.4437869822, "ext": "agda", "hexsha": "783a68d9e9fdc8e4d156fc3330db14f8af3bb9bd", "lang": "Agda", "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 Mockingbird.Forest using (Forest) -- Is There a Sage Bird? module Mockingbird.Problems.Chapter10 {b ℓ} (forest : Forest {b} {ℓ}) where open import Data.Product using (_,_; proj₁; proj₂; ∃-syntax) open import Function using (_$_) open import Mockingbird.Forest.Birds forest open Forest forest module _ ⦃ ...
{ "alphanum_fraction": 0.5148104265, "avg_line_length": 31.2592592593, "ext": "agda", "hexsha": "03734d2c50fc6c13af1c1247930406c7e5df8440", "lang": "Agda", "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...
_ : Set
{ "alphanum_fraction": 0.5, "avg_line_length": 4, "ext": "agda", "hexsha": "3701a9bb7a89cd3e4ca49c4d9ad98287c612ca10", "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", "...
module eq-reas-nouni {A : Set} where open import eq infix 1 begin_ infixr 2 _equiv[]_ _equiv[_]_ infix 3 _qed begin_ : ∀ {x y : A} → x ≡ y ----- → x ≡ y begin x≡y = x≡y _equiv[]_ : ∀ (x : A) {y : A} → x ≡ y ----- → x ≡ y x equiv[] x≡y = x≡y _equiv[_]_ : ∀ (x : A) {...
{ "alphanum_fraction": 0.3860759494, "avg_line_length": 14.3636363636, "ext": "agda", "hexsha": "7e7e494e9fcb4500e4c680515a77ae647b11dac1", "lang": "Agda", "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) 2020, 2021, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl -} module Haskell.Modules.FunctorApplicativeMonad where open import Haske...
{ "alphanum_fraction": 0.5753488372, "avg_line_length": 34.126984127, "ext": "agda", "hexsha": "8c2321543f8395c205947d33cac2f687d8e281f9", "lang": "Agda", "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 Issue279-4 where module M (X : Set) where data R : Set where r : X → R postulate P Q : Set open M P using (r) shouldn't-check : M.R Q → Q shouldn't-check (r q) = q
{ "alphanum_fraction": 0.6032608696, "avg_line_length": 12.2666666667, "ext": "agda", "hexsha": "c8d4c8d7d9dff932aba8a4422a5f0668a2919348", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
------------------------------------------------------------------------ -- The Agda standard library -- -- Bisimilarity for Colists ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe --sized-types #-} module Codata.Colist.Bisimilarity where open import Level usin...
{ "alphanum_fraction": 0.5472682627, "avg_line_length": 31.3269230769, "ext": "agda", "hexsha": "543062a96a9ccb50f043f0fd1e1cb732a0c79b93", "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 LC.Example where open import LC.Base open import LC.Subst open import LC.Reduction open import LC.Reasoning test-1 : ((ƛ var 0) ∙ var 0) β→* ((var 0) [ var 0 ]) test-1 = begin (ƛ var 0) ∙ var 0 →⟨ β-ƛ-∙ ⟩ (var 0) [ var 0 ] ∎ test-0 : ƛ (ƛ var 0 ∙ var 1) ∙ (ƛ var 0 ∙ var 1) β→* ƛ var 0 ∙ v...
{ "alphanum_fraction": 0.379707113, "avg_line_length": 28.1176470588, "ext": "agda", "hexsha": "74ebfbf7d64a059137fc9bc743320303ba8bc907", "lang": "Agda", "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 Data.Num.Digit where open import Data.Nat open import Data.Nat.Properties open import Data.Nat.Properties.Simple open import Data.Nat.Properties.Extra open import Data.Fin as Fin using (Fin; fromℕ≤; inject≤; toℕ; zero; suc) open import Data.Fin.Properties as FinProps using (bounded; toℕ-fromℕ≤) open import...
{ "alphanum_fraction": 0.4750277469, "avg_line_length": 31.0689655172, "ext": "agda", "hexsha": "d2f4b2fdbc50e7486b9d54bfc4e2322b6f800bed", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-05-30T05:50:50.000Z", "max_forks_repo_forks_event_min_datetime": "2015-05-30T...
module IID-Proof-Setup where open import LF open import Identity open import IID open import IIDr open import DefinitionalEquality OPg : Set -> Set1 OPg I = OP I I -- Encoding indexed inductive types as non-indexed types. ε : {I : Set}(γ : OPg I) -> OPr I ε (ι i) j = σ (i == j) (\_ -> ι ★) ε (σ A γ) j = σ A (...
{ "alphanum_fraction": 0.5488308116, "avg_line_length": 38.8473282443, "ext": "agda", "hexsha": "ef388f8bda7a6f04f9c8f552973e1a1e7783954a", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-12T...
module Data.Boolean.Stmt where import Lvl open import Data.Boolean import Data.Boolean.Operators open Data.Boolean.Operators.Programming open import Functional open import Logic.Propositional open import Type IsTrue : Bool → Type IsTrue = if_then ⊤ else ⊥ IsFalse : Bool → Type IsFalse = IsTrue ∘ !
{ "alphanum_fraction": 0.7460815047, "avg_line_length": 19.9375, "ext": "agda", "hexsha": "90f6395973875169a0591c0297e14740cae6db52", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
{-# OPTIONS --without-K #-} module PathStructure.Coproduct {a b} {A : Set a} {B : Set b} where open import Equivalence open import PathOperations open import Types -- We need to use Lift here, because Agda doesn't have -- cumulative universes. F : A ⊎ B → A ⊎ B → Set (a ⊔ b) F = case (λ _ → A ⊎ B → Set _) (λ a₁ → c...
{ "alphanum_fraction": 0.4533264569, "avg_line_length": 30.7777777778, "ext": "agda", "hexsha": "98cf757193b5f86df3ebd2355b3d622fe1455360", "lang": "Agda", "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 Lvl.Decidable where open import Data.Boolean.Stmt open import Logic.Propositional open import Logic.Propositional.Theorems import Lvl open import Type.Properties.Decidable open import Type.Properties.Decidable.Proofs open import Type private variable ℓ ℓ₁ : Lvl.Level -- Changing classical propositions' u...
{ "alphanum_fraction": 0.7596439169, "avg_line_length": 32.0952380952, "ext": "agda", "hexsha": "4daf49118700d03a4a444d9972030d1970d95eac", "lang": "Agda", "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 Formalization.LambdaCalculus.Semantics where open import Data open import Formalization.LambdaCalculus open import Syntax.Number open import Type -- A value in the language of lambda calculus is a irreducible term by a standard reduction definition. -- It can also be defined as terms that are lambda abstractio...
{ "alphanum_fraction": 0.7926078029, "avg_line_length": 40.5833333333, "ext": "agda", "hexsha": "ff97ab7be53bff0b1ec2aee22008bdffa8b422fe", "lang": "Agda", "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 Cutting where open import Basics open import Ix open import All record _|>_ (I O : Set) : Set1 where field Cuts : O -> Set inners : {o : O} -> Cuts o -> List I NatCut : Nat |> Nat NatCut = record { Cuts = \ mn -> Sg Nat \ m -> Sg Nat \ n -> (m +N n) == mn ; inners = \ { (m , n , _) -> m ,- n...
{ "alphanum_fraction": 0.5319548872, "avg_line_length": 19.7037037037, "ext": "agda", "hexsha": "4f9469dfaaf6408751d627bd1ea5d230da9f84ac", "lang": "Agda", "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 -- You can transform functions out of discrete -- categories into functors. module Categories.Functor.Construction.FromDiscrete {o ℓ e} (𝒞 : Category o ℓ e) where open import Relation.Binary.PropositionalEquality as ≡ using (_≡_) open import Categor...
{ "alphanum_fraction": 0.6729475101, "avg_line_length": 27.5185185185, "ext": "agda", "hexsha": "a2a2b52858db07962ee89519c6fbf436a44d8a38", "lang": "Agda", "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 Dimension.PartialWeakening.Soundness where open import Exception -- using (Except; left; right; _<$>_; _>>=_) open import Injective -- Semantics given by application to a name in Fin n apply : ∀ {n m} (f : PWeak n m) (i : Fin n) → Except E (Fin m) apply [] () apply (e ∷ f) zero = left e...
{ "alphanum_fraction": 0.516263145, "avg_line_length": 34.9487179487, "ext": "agda", "hexsha": "94ece769ef307eae41d6dbb331deb805dd44945a", "lang": "Agda", "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 --rewriting #-} module Examples.Exp2 where open import Calf.CostMonoid open import Calf.CostMonoids using (ℕ²-ParCostMonoid) parCostMonoid = ℕ²-ParCostMonoid open ParCostMonoid parCostMonoid open import Calf costMonoid open import Calf.ParMetalanguage parCostMonoid open import Calf.Types.Bool ope...
{ "alphanum_fraction": 0.5425889605, "avg_line_length": 34.1531100478, "ext": "agda", "hexsha": "52d123ad92887359c4c0836cc3c876f47b1ffbe1", "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...
------------------------------------------------------------------------ -- Semantics of the parsers ------------------------------------------------------------------------ module TotalParserCombinators.Semantics where open import Codata.Musical.Notation open import Data.List hiding (drop) open import Data.List.Rela...
{ "alphanum_fraction": 0.5117513268, "avg_line_length": 36.6388888889, "ext": "agda", "hexsha": "1ebfe84395caa8654bc1a75838e841d391c2a3f2", "lang": "Agda", "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...
-- Agda should warn if a coinductive record is declared but neither -- --guardedness nor --sized-types is enabled. record R : Set where coinductive field r : R
{ "alphanum_fraction": 0.7100591716, "avg_line_length": 21.125, "ext": "agda", "hexsha": "0872da64c55ee9781a6eba43f8e8368b13b2f82c", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04...
{-# OPTIONS --safe --no-qualified-instances #-} {- Noop removal transformation on bytecode -} module JVM.Transform.Noooops where open import Data.Product open import Data.Sum open import Function using (case_of_) open import Data.List open import Relation.Unary hiding (Empty) open import Relation.Binary.Structures ope...
{ "alphanum_fraction": 0.659269864, "avg_line_length": 32.488372093, "ext": "agda", "hexsha": "c7699236b82eb23e9a99032f7b2d08d339f0d169", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-12-28T17:37:15.000Z", "max_forks_repo_forks_event_min_datetime": "2021-12-28T17...
{-# OPTIONS --without-K --safe #-} module Definition.Typed.Consequences.Equality where open import Definition.Untyped open import Definition.Typed open import Definition.Typed.Properties open import Definition.Typed.EqRelInstance open import Definition.LogicalRelation open import Definition.LogicalRelation.Irrelevanc...
{ "alphanum_fraction": 0.5437969253, "avg_line_length": 32.1494252874, "ext": "agda", "hexsha": "df370493c6fe0e76d300f1e1bfefd154472ea146", "lang": "Agda", "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 Issue5470.Import where open import Agda.Builtin.Nat open import Agda.Builtin.Equality open import Agda.Builtin.Equality.Rewrite private postulate foo : Nat → Nat bar : Nat → Nat bar n = foo n private postulate lemma : ∀ n → foo n ≡ n {-# REWRITE lemma #-}
{ "alphanum_fraction": 0.6816720257, "avg_line_length": 14.8095238095, "ext": "agda", "hexsha": "0f522bcf18bed2d20c021fc886f0b03c11646d32", "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 ProposedSemantics where open import Syntax public -- Vindicative Kripke models. record Model : Set₁ where infix 3 _⊩ᵅ_ field World : Set _≤_ : World → World → Set refl≤ : ∀ {w} → w ≤ w trans≤ : ∀ {w w′ w″} → w ≤ w′ → w′ ≤ w″ → w ≤ w″ _R_ : World → World → Set reflR ...
{ "alphanum_fraction": 0.4454748961, "avg_line_length": 30.359223301, "ext": "agda", "hexsha": "8fb0d05d6e20d9c85a8d9ad1e73bf4568a12d844", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
{-# OPTIONS --safe #-} module Cubical.Algebra.CommMonoid.Properties where open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.Foundations.SIP open import Cubical.Data.Sigma open import Cubical.Algebra.Monoid open import Cubical.Algebra.CommMonoid.Base private variab...
{ "alphanum_fraction": 0.5778823529, "avg_line_length": 35.4166666667, "ext": "agda", "hexsha": "40ee5bc4ef1d3348edda75eb6e7b83bc50b1285d", "lang": "Agda", "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, Ulf, AIM XXIX, 2019-03-18, issue #3597 -- Eta-expansion of record metas disregards freezing. -- Meta occurs check is then insufficient, leading to cyclic assignment. {-# OPTIONS --allow-unsolved-metas #-} -- {-# OPTIONS -v tc.meta:40 #-} -- {-# OPTIONS -v tc.meta.assign:100 #-} -- {-# OPTIONS -v tc.meta....
{ "alphanum_fraction": 0.5787401575, "avg_line_length": 20.0526315789, "ext": "agda", "hexsha": "000b3d20844975dd0ed5ba08339c230136b10a5a", "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 Generic.Lib.Data.Sum where open import Data.Sum hiding (swap) renaming (map to smap) hiding (map₁; map₂; assocʳ; assocˡ; reduce) public
{ "alphanum_fraction": 0.7638888889, "avg_line_length": 36, "ext": "agda", "hexsha": "eeed72f85b868764ee4b7974282130aacf01fb97", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2021-01-27T12:57:09.000Z", "max_forks_repo_forks_event_min_datetime": "2017-07-17T07:23:39.00...
module Lectures.Four where open import Lectures.One public open import Lectures.Two public open import Lectures.Three public _∘_ : {A B C : Set} → (B → C) → (A → B) → (A → C) (f ∘ g) x = f (g x) record _↔_ (A B : Set) : Set where constructor Isomorphism field to : A → B from : B → A from∘to : ∀ x → (...
{ "alphanum_fraction": 0.5411700975, "avg_line_length": 22.512195122, "ext": "agda", "hexsha": "687fe23c64f77281b72cb710ac0cc2e4fdbac9f1", "lang": "Agda", "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 Issue2447.M where
{ "alphanum_fraction": 0.84, "avg_line_length": 12.5, "ext": "agda", "hexsha": "524fe7df459cd260e60b9488a79df9a437225883", "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",...
------------------------------------------------------------------------ -- Data and codata can sometimes be "unified" ------------------------------------------------------------------------ -- In Haskell one can define the partial list type once, and define -- map once and for all for this type. In Agda one typicall...
{ "alphanum_fraction": 0.4968152866, "avg_line_length": 29.9047619048, "ext": "agda", "hexsha": "4ef7e78516337a81789d9d81a5ead72033fee44f", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --universe-polymorphism --allow-unsolved-metas #-} module Issue253 where open import Common.Level data Id l (X : Set l)(x : X) : X → Set where refl : Id l X x x resp : (A B : Set _) → Id _ (Set _) A B → Set resp _ _ eq with eq resp ._ _ eq | refl = Level {- An internal error has occurred. Please repo...
{ "alphanum_fraction": 0.6724137931, "avg_line_length": 25.375, "ext": "agda", "hexsha": "a6ff7490146eba90771f66325de228ea68d3274c", "lang": "Agda", "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": ...
-- Record projections should be positive in their argument module Issue602-2 where record A : Set₁ where constructor mkA field f : Set unA : A → Set unA (mkA x) = x data B (a : A) : Set where mkB : unA a → B a data D : Set where d : B (mkA D) → D
{ "alphanum_fraction": 0.6311787072, "avg_line_length": 15.4705882353, "ext": "agda", "hexsha": "38c5dfa21d8b2a495d67021aacf51e38fc9b1f73", "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 Luau.RuntimeError.ToString where open import FFI.Data.String using (String; _++_) open import Luau.RuntimeError using (RuntimeErrorᴮ; RuntimeErrorᴱ; local; return; NilIsNotAFunction; UnboundVariable; SEGV; app; block) open import Luau.Addr.ToString using (addrToString) open import Luau.Var.ToString using (varTo...
{ "alphanum_fraction": 0.7395498392, "avg_line_length": 49.1052631579, "ext": "agda", "hexsha": "f11756f74c453fd717db47fcda5a129711ca6108", "lang": "Agda", "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...
------------------------------------------------------------------------ -- Colists ------------------------------------------------------------------------ {-# OPTIONS --without-K --sized-types #-} open import Equality module Colist {c⁺} (eq : ∀ {a p} → Equality-with-J a p c⁺) where private open module E = Deriv...
{ "alphanum_fraction": 0.4370089743, "avg_line_length": 32.5282828283, "ext": "agda", "hexsha": "7e9285cbd8ca0bf834ed7cc513351c8f52664e6f", "lang": "Agda", "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 Dodo.Binary.Transitive where -- Stdlib imports import Relation.Binary.PropositionalEquality as Eq open Eq using (_≡_; _≢_; refl) open import Level using (Level; _⊔_) open import Function using (flip; _∘_) open import Data.Sum using (_⊎_; inj₁; inj₂) open import Data.Product u...
{ "alphanum_fraction": 0.5308207705, "avg_line_length": 30.7731958763, "ext": "agda", "hexsha": "8d900d640ac4d7e13600136824cebe4f51dc4bca", "lang": "Agda", "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.List.Filter where open import Prelude open import Data.List open import Data.List.Membership open import Data.Sigma.Properties open import Data.Bool.Properties open import Data.Fin module _ {p} {P : A → Type p} where filter : (P? : ∀ x → Dec (P x)) → List A → List (∃ P)...
{ "alphanum_fraction": 0.5252692626, "avg_line_length": 38.935483871, "ext": "agda", "hexsha": "dc10e2cc4797d9f635b1730e42080cfcc64d46e4", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
open import FRP.JS.Nat using ( ℕ ; float ) renaming ( _+_ to _+n_ ; _∸_ to _∸n_ ; _*_ to _*n_ ; _≟_ to _≟n_ ; _≠_ to _≠n_ ; _/_ to _/n_ ; _/?_ to _/?n_ ; _≤_ to _≤n_ ; _<_ to _<n_ ) open import FRP.JS.Float using ( ℝ ) open import FRP.JS.Bool using ( Bool ) open import FRP.JS.True using ( True ) open import FRP.JS...
{ "alphanum_fraction": 0.552173913, "avg_line_length": 28.75, "ext": "agda", "hexsha": "a236a0364b1773a585b5d375064b49dd895f6764", "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-07T21:50:58....
-- This variant of the code is due to Ulf Norell. open import Agda.Builtin.Size data ⊥ : Set where mutual data Unit (i : Size) : Set where c : Unit′ i → Unit i data Unit₁ (i : Size) : Set where c₁ : ⊥ → Unit i → Unit₁ i record Unit′ (i : Size) : Set where coinductive field force : {j :...
{ "alphanum_fraction": 0.5622895623, "avg_line_length": 16.0540540541, "ext": "agda", "hexsha": "2efc0c7cc5bc8e9e6c621ef521ab2e5a24bdad7e", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-05T...
{-# OPTIONS --without-K --safe #-} open import Relation.Binary.Core module Definitions {a ℓ} {A : Set a} -- The underlying set (_≈_ : Rel A ℓ) -- The underlying equality where open import Algebra.Core open import Data.Product open import Algebra.Definitions Alternativeˡ : Op₂ A → Set _ Alternativeˡ _∙_ ...
{ "alphanum_fraction": 0.5373831776, "avg_line_length": 30.2117647059, "ext": "agda", "hexsha": "28d229bb6f889abfe6628d37172beb8284304026", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
-- Andreas, 2014-06-16 data D A : Set where c : {x : A} → A → D A f : ∀(A : Set) → D A → Set f A (c a b) = D A -- Expected error: -- The constructor c expects 2 arguments (including hidden ones), but -- has been given 3 (including hidden ones) -- when checking that the pattern c a b has type D A
{ "alphanum_fraction": 0.6258278146, "avg_line_length": 23.2307692308, "ext": "agda", "hexsha": "1f4bd6f6ec8b79ba1e006168295290334ef91639", "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.Base using (𝒰 ; Level ; module variables) module HoTT.Exercises.Chapter1 where open variables module Exercise1 where open HoTT.Base hiding (_∘_) _∘_ : {A B C : 𝒰 i} (g : B → C) (f : A → B) → A → C g ∘ f = λ x → g (f x) _ : {A B C D : 𝒰 i} {f : A → B} {g : B →...
{ "alphanum_fraction": 0.414581997, "avg_line_length": 27.1918604651, "ext": "agda", "hexsha": "61560ee9979c8f6bc933d4c8cccd5798bc834140", "lang": "Agda", "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 #-} module decidable where open import level using (Level) open import sets.empty using (⊥; ¬_) open import sets.unit using (⊤; tt) -- Decidable relations. data Dec {i} (P : Set i) : Set i where yes : ( p : P) → Dec P no : (¬p : ¬ P) → Dec P True : ∀ {i}{P : Set i} → Dec P → Set Tru...
{ "alphanum_fraction": 0.5351351351, "avg_line_length": 21.3461538462, "ext": "agda", "hexsha": "70539bc8e1f05928d40dc8163593db471169e081", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2019-02-26T06:17:38.000Z", "max_forks_repo_forks_event_min_datetime": "2015-04-11T...
{- This file contains a summary of the proofs that π₄(S³) ≡ ℤ/2ℤ - The first proof "π₄S³≃ℤ/2ℤ" closely follows Brunerie's thesis. - The second proof "π₄S³≃ℤ/2ℤ-direct" is much more direct and avoids all of the more advanced constructions in chapters 4-6 in Brunerie's thesis. - The third proof "π₄S³≃ℤ/2ℤ-computa...
{ "alphanum_fraction": 0.7527287993, "avg_line_length": 34.0285714286, "ext": "agda", "hexsha": "64c0a1896e3e72b26b60d0307322569991cf68fa", "lang": "Agda", "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...
-- 2010-10-02 -- termination checker now recognizes projections module Issue334 where data Functor : Set₁ where |Id| : Functor _|x|_ : Functor → Functor → Functor record _×_ (A B : Set) : Set where constructor _,_ field proj₁ : A proj₂ : B [_] : Functor → Set → Set [ |Id| ] X = X [ F |x| G ] X =...
{ "alphanum_fraction": 0.5548216645, "avg_line_length": 26.1034482759, "ext": "agda", "hexsha": "2c4c642b7ddb831b40806b2b085327eb21ec2164", "lang": "Agda", "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...
{- Computer Aided Formal Reasoning (G53CFR, G54CFR) Thorsten Altenkirch Lecture 2: A first taste of Agda In this lecture we start to explore the Agda system, a functional programming language based on Type Theory. We start with some ordinary examples which we could have developed in Haskell as well. -} ...
{ "alphanum_fraction": 0.6085164835, "avg_line_length": 24.2666666667, "ext": "agda", "hexsha": "cb61f43baa8e6c9169b9a890009372a7cc2bad7c", "lang": "Agda", "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...