Search is not available for this dataset
text
string
meta
dict
{-# OPTIONS --without-K --safe #-} module Categories.Functor.Instance.SetoidDiscrete where -- Discrete Functor -- from Setoids to Cats. open import Categories.Category open import Categories.Functor open import Categories.Category.Instance.Setoids open import Categories.Category.Instance.Cats open import Categories...
{ "alphanum_fraction": 0.5856148492, "avg_line_length": 37.1551724138, "ext": "agda", "hexsha": "c42ddc3887c9675bff14a7c446af86939c332e7e", "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 plfa.part1.Relations where import Relation.Binary.PropositionalEquality as Eq open Eq using (_≡_; refl; cong) open import Data.Nat using (ℕ; zero; suc; _+_) open import Data.Nat.Properties using (+-comm) -- z≤n, s≤s - constructor names (with no spaces) -- zero ≤ n - types (with spaces) indexed by -...
{ "alphanum_fraction": 0.4958530806, "avg_line_length": 21.1, "ext": "agda", "hexsha": "05c38ce459c3f6ee0dfef07d7fa8c66639175f77", "lang": "Agda", "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": "3...
module Type{ℓ} where open import Agda.Primitive public using () renaming (Set to TYPE ; Setω to Typeω) Type : TYPE(_) Type = TYPE(ℓ) {-# INLINE Type #-} module Type where -- Returns the type of a certain value of : ∀{T : Type} → T → Type of {T} _ = T {-# INLINE of #-}
{ "alphanum_fraction": 0.6161971831, "avg_line_length": 17.75, "ext": "agda", "hexsha": "4ea42d201de8c6d9727bcf83986fe00c4e1eea55", "lang": "Agda", "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 _ where open import Agda.Builtin.List open import Agda.Builtin.Reflection open import Agda.Builtin.Unit postulate A : Set module _ (X : Set) where macro give : Name → Term → TC ⊤ give x goal = unify (def x []) goal B : Set B = give A
{ "alphanum_fraction": 0.6577946768, "avg_line_length": 13.8421052632, "ext": "agda", "hexsha": "071d631a445053aae17eddb8b0d196c172e663cc", "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 --copatterns #-} module Issue1290 where record R : Set1 where constructor con field A : Set open R postulate X : Set x : R A x = X exp : R -> R A (exp x) = A x
{ "alphanum_fraction": 0.5935828877, "avg_line_length": 9.8421052632, "ext": "agda", "hexsha": "42b0deeb81b8bb92183500c3620d34526c860773", "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 Categories.Category.Instance.FamilyOfSetoids where -- The Category of "Families of Setoids" -- This fits into this library much better than the Families of Sets -- This particular formalization should be considered alpha, i.e. its -- names will change once things settle. ope...
{ "alphanum_fraction": 0.5138253067, "avg_line_length": 39.5724637681, "ext": "agda", "hexsha": "cdd98317cf042b558cc643eb0b4ae4df07a574bb", "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...
-- | In this module, we proof that the 2-category of endofunctors -- inherits locally all colimits from underlying category. -- More precisely, for a functor F : C → C, we compute in Endo(F, F) -- colimits point-wise from those in C. module UpToColim where open import Level open import Relation.Binary using (Rel; IsEq...
{ "alphanum_fraction": 0.4713212701, "avg_line_length": 33.1898016997, "ext": "agda", "hexsha": "60ea5973410aa6f3419935e9e767c08513344880", "lang": "Agda", "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 _ where open import Agda.Builtin.Equality module MM1 (A : Set) where postulate a0 : A module M1 (a : A) where postulate x : A module M = M1 a0 module MM2 (A : Set) where open module MM1A = MM1 A check : M1.x ≡ (λ a → a) check = refl -- used to be internal error
{ "alphanum_fraction": 0.618729097, "avg_line_length": 14.95, "ext": "agda", "hexsha": "a1565b8be26fddded38020b93f43474be2252de7", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:0...
{-# OPTIONS --without-K --rewriting #-} {- Remember to keep CodeAP.agda in sync. -} open import HoTT import homotopy.RelativelyConstantToSetExtendsViaSurjection as SurjExt module homotopy.vankampen.CodeBP {i j k l} (span : Span {i} {j} {k}) {D : Type l} (h : D → Span.C span) (h-is-surj : is-surj h) where open...
{ "alphanum_fraction": 0.5407482148, "avg_line_length": 47.7185185185, "ext": "agda", "hexsha": "18db204ee459d244d3352f9fb864451465b18c7a", "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...
------------------------------------------------------------------------ -- Two eliminators for Delay-monad.Alternative.Delay (A / R) ------------------------------------------------------------------------ -- This module is largely based on (but perhaps not quite identical -- to) the development underlying Theorem 1 ...
{ "alphanum_fraction": 0.4272289839, "avg_line_length": 39.8758465011, "ext": "agda", "hexsha": "7f66710aa14cc415be8acedfcf8ab01cca4abb54", "lang": "Agda", "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 test.Negation where open import Type open import Declarative open import Builtin open import Builtin.Constant.Type open import Builtin.Constant.Term Ctx⋆ Kind * # _⊢⋆_ con size⋆ -- zerepoch/zerepoch-core/test/data/negation.plc open import Declarative.StdLib.Bool negate : ∀{Γ} → Γ ⊢ boolean ⇒ boolean negate {...
{ "alphanum_fraction": 0.7362637363, "avg_line_length": 24.2666666667, "ext": "agda", "hexsha": "7c411a69241eb336b9b50d680142e1a899bccff9", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-02-21T16:38:59.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-13T...
module Structure.Logic where
{ "alphanum_fraction": 0.8620689655, "avg_line_length": 14.5, "ext": "agda", "hexsha": "76e5e6513666f522368cc5819fb25262e0cb693e", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "7...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Data.Int.Base where open import Cubical.Core.Everything open import Cubical.Data.Nat data Int : Type₀ where pos : (n : ℕ) → Int negsuc : (n : ℕ) → Int neg : (n : ℕ) → Int neg zero = pos zero neg (suc n) = negsuc n sucInt : Int → Int sucInt (p...
{ "alphanum_fraction": 0.6575342466, "avg_line_length": 23.6756756757, "ext": "agda", "hexsha": "4ebe23f9b5e55544f59f879d02d967b2266f505c", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-22T02:02:01.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-22T...
{- This file proves the higher groupoid structure of types for homogeneous and heterogeneous paths -} {-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Foundations.GroupoidLaws where open import Cubical.Foundations.Prelude private variable ℓ : Level A : Type ℓ x y z w v : A _⁻¹ : (x ≡...
{ "alphanum_fraction": 0.3327557264, "avg_line_length": 38.5532359081, "ext": "agda", "hexsha": "0e3686e5f8340df0a230d8c0eb3c39bf966149e9", "lang": "Agda", "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 #-} -- {-# OPTIONS -v rewriting:100 -v tc.conv.atom:30 -v tc.inj.use:30 #-} open import Common.Equality {-# BUILTIN REWRITE _≡_ #-} data Nat : Set where zero : Nat suc : Nat → Nat _+_ : Nat → Nat → Nat zero + n = n (suc m) + n = suc (m + n) postulate plus-zero : ∀ x → (x + zero) ≡ x...
{ "alphanum_fraction": 0.578528827, "avg_line_length": 16.2258064516, "ext": "agda", "hexsha": "aa4b205a55a464ca6e5eb83a71611909984dcce8", "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-05T2...
-- Andreas and James, 2013-11-19 {-# OPTIONS --copatterns #-} -- {-# OPTIONS -v tc.cover.splittree:15 -v tc.cc:15 #-} open import Common.Level open import Common.Product mutual data Delay (A : Set) : Set where later : ∞Delay A → Delay A record ∞Delay (A : Set) : Set where coinductive constructor de...
{ "alphanum_fraction": 0.557195572, "avg_line_length": 25.2093023256, "ext": "agda", "hexsha": "429fd89c69b3acde3f9d5cbc8bbd2c86f1a12031", "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-05T2...
open import Prelude open import Level using (Level) renaming (zero to lz; suc to ls) open import Data.List.Properties as ListProps renaming (∷-injective to ∷-inj) open import Data.String open import Data.Nat as Nat using (decTotalOrder; _≤_; s≤s; z≤n) open import Relation.Binary using (module DecTotalOrder) module RW....
{ "alphanum_fraction": 0.5353109876, "avg_line_length": 33.914893617, "ext": "agda", "hexsha": "844a10d75633493ceb528386d554cdda9e46e95a", "lang": "Agda", "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 --exact-split --allow-unsolved-metas #-} module 21-image where import 20-sequences open 20-sequences public {- We give the formal specification of propositional truncation. -} precomp-Prop : { l1 l2 l3 : Level} {A : UU l1} (P : hProp l2) → (A → type-Prop P) → (Q : hProp l3) → (type-Pro...
{ "alphanum_fraction": 0.5737041719, "avg_line_length": 38.0288461538, "ext": "agda", "hexsha": "c5e80facfd6612ae63401016388fd6c7d91fa432", "lang": "Agda", "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 open import Common.Reflection open import Common.Prelude macro deBruijn : Nat → Term → TC ⊤ deBruijn n = unify (lam visible (abs "x" (var n []))) data Vec {a} (A : Set a) : Nat → Set a where [] : Vec A 0 _∷_ : ∀ {n} → A → Vec A n → Vec A (suc n) module _ {n} {a} {A : Set a} (xs : ...
{ "alphanum_fraction": 0.5948103792, "avg_line_length": 22.7727272727, "ext": "agda", "hexsha": "6a27d80f840b5ec49e1bedf09e9e7049481d915b", "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...
{- Other common operations and lemmas. -} module TemporalOps.Common.Other where open import Relation.Binary.HeterogeneousEquality as ≅ hiding (inspect) open import Relation.Binary.PropositionalEquality hiding (inspect) -- Time indexing (for clarity, synonym of function appliation at any level) _at_ : ∀ {a b} {A : S...
{ "alphanum_fraction": 0.6439267887, "avg_line_length": 28.619047619, "ext": "agda", "hexsha": "0e9264be68f7f26e811519ba29cd8eb2fe6877d1", "lang": "Agda", "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 Selective.Examples.Fibonacci where open import Selective.ActorMonad open import Prelude open import Debug open import Data.Nat.Show using (show) data End : Set where END : End ℕ-message : MessageType ℕ-message = [ ValueType ℕ ]ˡ End-message : MessageType End-message = [ ValueType End ]ˡ ...
{ "alphanum_fraction": 0.564124057, "avg_line_length": 33.1388888889, "ext": "agda", "hexsha": "ebc5743c98759bc15700f2ea7e3382a371638bf6", "lang": "Agda", "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 Issue427 where data T : Set where tt : T test = (λ {s : T} {t : T} → t) {tt} {tt} f : {s t : T} → T f = tt test₂ = (let x = tt in λ {s : T} {t : T} → x) {tt} {tt}
{ "alphanum_fraction": 0.4494382022, "avg_line_length": 12.7142857143, "ext": "agda", "hexsha": "fdaebb196f18a0040742d3acfcfbc7cc8c958e42", "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 ColDivSeq where open import Data.Nat using (ℕ; zero; suc) -- ----------------------------------------------- data OneCounter : Set where ZeroCounter : OneCounter data LTOneCounter : ℕ → Set where Is : (ℕ → LTOneCounter 0) → OneCounter → LTOneCounter 0 data CollatzIsTrue : Set where -- 再帰する時に引数を減らしたから...
{ "alphanum_fraction": 0.5928008999, "avg_line_length": 22.7948717949, "ext": "agda", "hexsha": "02810a92e349e85241c7f8e6bbcc297477717bda", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Numeral.Natural.Coprime where open import Logic import Lvl open import Numeral.Natural open import Numeral.Natural.Relation.Divisibility open import Relator.Equals private variable n x y : ℕ -- Two numbers are coprime when their only divisor is 1. record Coprime (x : ℕ) (y : ℕ) : Stmt{Lvl.𝟎} where con...
{ "alphanum_fraction": 0.7150395778, "avg_line_length": 23.6875, "ext": "agda", "hexsha": "99a2c02eb7456822dcbbb7eb139f90e6d49bd844", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
open import Data.Empty open import Data.List renaming (_∷_ to _∷ₗ_ ; [_] to [_]ₗ) open import Data.Maybe open import Data.Product open import Data.Sum open import Data.Unit open import AEff open import AwaitingComputations open import EffectAnnotations open import Finality open import Preservation open import ProcessP...
{ "alphanum_fraction": 0.2910485417, "avg_line_length": 27.4487534626, "ext": "agda", "hexsha": "9404f0da5e93684f90e76a60d22024ae98cdd912", "lang": "Agda", "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...
{- This file contains: - Properties of groupoid truncations -} {-# OPTIONS --cubical --safe #-} module Cubical.HITs.GroupoidTruncation.Properties where open import Cubical.Foundations.Prelude open import Cubical.HITs.GroupoidTruncation.Base recGroupoidTrunc : ∀ {ℓ ℓ'} {A : Type ℓ} {B : Type ℓ'} (gB : isGroupoid B)...
{ "alphanum_fraction": 0.4091089109, "avg_line_length": 38.8461538462, "ext": "agda", "hexsha": "e792c409e9edbe38227869aa6fa50ba06fb1fbb6", "lang": "Agda", "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 Thesis.SIRelBigStep.Lang where open import Thesis.SIRelBigStep.Types public open import Thesis.SIRelBigStep.Syntax public open import Thesis.SIRelBigStep.DenSem public open import Thesis.SIRelBigStep.OpSem public open import Thesis.SIRelBigStep.SemEquiv public
{ "alphanum_fraction": 0.8661710037, "avg_line_length": 33.625, "ext": "agda", "hexsha": "ecbbdad55ede7fbf080e31773eef7a7fe8aad1af", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2016-02-18T12:26:44.000Z", "max_forks_repo_forks_event_min_datetime": "2016-02-18T12:26:4...
{-# OPTIONS --without-K --safe #-} open import Categories.Category open import Categories.Category.CartesianClosed.Locally module Categories.Category.CartesianClosed.Locally.Properties {o ℓ e} {C : Category o ℓ e} (LCCC : Locally C) where open import Categories.Category.CartesianClosed open import Categories.Categ...
{ "alphanum_fraction": 0.6669505963, "avg_line_length": 24.4583333333, "ext": "agda", "hexsha": "d66eb61ed5dbcd8d19d804ed2a0aeb790a6bdbb1", "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...
------------------------------------------------------------------------ -- Types used (only) when calling out to Haskell via the FFI ------------------------------------------------------------------------ module Foreign.Haskell where open import Coinduction open import Data.Colist as C using ([]; _∷_) ------------...
{ "alphanum_fraction": 0.4536199095, "avg_line_length": 23.8918918919, "ext": "agda", "hexsha": "5e31433dab42d82a85b04acd0c8ef470999868fd", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:54:10.000Z", "max_forks_repo_forks_event_min_datetime": "2015-07-21T...
-- {-# OPTIONS -v tc.meta:100 #-} -- Andreas, 2011-04-20 -- see Abel Pientka TLCA 2011 module PruningNonMillerPattern where data _≡_ {A : Set}(a : A) : A -> Set where refl : a ≡ a data Nat : Set where zero : Nat suc : Nat -> Nat test : let X : Nat -> Nat -> Nat X = _ Y : Nat -> Nat -> Na...
{ "alphanum_fraction": 0.4734375, "avg_line_length": 32.8205128205, "ext": "agda", "hexsha": "1b57b2289bf5504aeb7b3da9e6b7776f211b5bf9", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsh...
{-# OPTIONS --without-K --safe #-} module Categories.Category.Cocomplete where open import Level open import Categories.Category using (Category) open import Categories.Functor using (Functor) open import Categories.Diagram.Colimit using (Colimit) Cocomplete : (o ℓ e : Level) {o′ ℓ′ e′ : Level} (C : Category o′ ℓ′ ...
{ "alphanum_fraction": 0.7019704433, "avg_line_length": 31.2307692308, "ext": "agda", "hexsha": "13afc28ca4e2899bdde637a0d7521e11c9baced7", "lang": "Agda", "max_forks_count": 64, "max_forks_repo_forks_event_max_datetime": "2022-03-14T02:00:59.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-02...
------------------------------------------------------------------------------ -- Some proofs related to the power function ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-poly...
{ "alphanum_fraction": 0.4330708661, "avg_line_length": 33.3114754098, "ext": "agda", "hexsha": "b2e5c5fdcc23ae40249d1f7c7a713e73d5d27c97", "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 induction where import Relation.Binary.PropositionalEquality as Eq open Eq using (_≡_; refl; cong; sym) open Eq.≡-Reasoning using (begin_; _≡⟨⟩_; step-≡; _∎) open import Data.Nat using (ℕ; zero; suc; _+_; _*_; _∸_; _^_) -- ------------------------------- -- (zero + n) + p ≡ zero + (n + p) -- -- (m + n) + p ≡ m ...
{ "alphanum_fraction": 0.3785796105, "avg_line_length": 19.6179775281, "ext": "agda", "hexsha": "7300e638625217f9bbee465ffc9dff0a2751f4e3", "lang": "Agda", "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 LecDiff where open import CS410-Prelude open import CS410-Nat open import LecSigma data Data : Set1 where _+D_ _*D_ : Data -> Data -> Data label : Set -> Data rec : Data infixr 4 _+D_ infixr 5 _*D_ [[_]] : Data -> Set -> Set [[ S +D T ]] R = [[ S ]] R + [[ T ]] R [[ S *D T ]] R = [[ ...
{ "alphanum_fraction": 0.5155963303, "avg_line_length": 23.4408602151, "ext": "agda", "hexsha": "a6ad7b385647eeeaf765cf2a946d3b37f9462a74", "lang": "Agda", "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 Integer8 where open import Data.Nat open import Data.Nat.Properties open import Data.Product open import Relation.Binary.PropositionalEquality as PropEq -- ---------- record ---------- record IsSemiGroup (A : Set) (_∙_ : A → A → A) : Set where field assoc : ∀ x y z → (x ∙ y) ∙ z ≡ x ∙ (y ∙ z) ...
{ "alphanum_fraction": 0.3741838715, "avg_line_length": 40.623655914, "ext": "agda", "hexsha": "59f43c2cfe62b9ea4d3adeaf9a8fb21a3011b4ea", "lang": "Agda", "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 --rewriting #-} open import Agda.Builtin.Equality open import Agda.Builtin.Bool open import Agda.Builtin.Nat {-# BUILTIN REWRITE _≡_ #-} not : Bool → Bool not true = false not false = true data Unit : Set where unit : Unit postulate X : Unit → Set X-Nat : X unit ≡ Nat X-Bool : (u : Unit) → X u ...
{ "alphanum_fraction": 0.6056034483, "avg_line_length": 16, "ext": "agda", "hexsha": "b0c2ff4d0af1d87087f4f75a941bac93b2f7e0da", "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....
open import Data.String using ( _++_ ) open import System.IO using ( _>>_ ; _>>=_ ; getStr ; putStr ; commit ) module System.IO.Examples.HelloUser where main = putStr "What is your name?\n" >> commit >> getStr >>= λ name → putStr ("Hello, " ++ name ++ "\n") >> commit
{ "alphanum_fraction": 0.6077738516, "avg_line_length": 23.5833333333, "ext": "agda", "hexsha": "5b0ffd1153e7e391d039896f02a4361941233cc4", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:40:23.000Z", "max_forks_repo_forks_event_min_datetime": "2017-08-10T...
{- Agda Implementors' Meeting VI Göteborg May 24 - 30, 2007 Hello Agda! Ulf Norell -} -- This is where the fun begins. -- Unleashing datatypes, pattern matching and recursion. module Datatypes where {- Simple datatypes. -} -- Now which...
{ "alphanum_fraction": 0.6243756244, "avg_line_length": 18.537037037, "ext": "agda", "hexsha": "4dba1b778b155dca3d1ffb370adc9d4780dc60c2", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
{-# OPTIONS --safe --warning=error #-} open import Numbers.Naturals.Semiring open import Groups.FreeProduct.Definition open import Groups.FreeProduct.Setoid open import Groups.FreeProduct.Group open import Groups.Definition open import Groups.Homomorphisms.Definition open import Groups.Isomorphisms.Definition open imp...
{ "alphanum_fraction": 0.7735242548, "avg_line_length": 71.2916666667, "ext": "agda", "hexsha": "0dcee7e1078dab604e2fedec478478e758d5de8c", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-29T13:23:07.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-29T...
module Issue121 where bad : Set → Set bad A = A → A data Bool : Set where true : Bool false : Bool F : Bool → Set → Set F true = bad F false = λ A → A data D : Set where nop : (b : Bool) → F b D → D
{ "alphanum_fraction": 0.5633802817, "avg_line_length": 11.8333333333, "ext": "agda", "hexsha": "01f85e6caf80381118cf7cbd09989fce1c43feb9", "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 Relation.Binary.Core module PLRTree.Insert.Permutation {A : Set} (_≤_ : A → A → Set) (tot≤ : Total _≤_) where open import Data.List open import Data.Product renaming (_×_ to _∧_) open import Data.Sum open import List.Permutation.Base A open import List.Permutati...
{ "alphanum_fraction": 0.4977379428, "avg_line_length": 58.575, "ext": "agda", "hexsha": "1abd86ae5996eb556e0475a845fb4967a92b7605", "lang": "Agda", "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": ...
-- Andreas, 2020-09-09, issue #4880 -- Parse all interleavings of hiding and irrelevance in non-dependent function space module Issue4880 (A B : Set) where postulate -- dependent -- * visible _ : A → (_ : B) → A _ : A → .(_ : B) → A _ : A → ..(_ : B) → A -- * hidden _ : A → {_ : B} → A _ : A → ....
{ "alphanum_fraction": 0.3644544432, "avg_line_length": 20.6744186047, "ext": "agda", "hexsha": "1b202986808d0d0b17245dc46b6961338573e3de", "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 OverloadedConstructors where data Nat : Set where zero : Nat suc : Nat -> Nat data Fin : Nat -> Set where zero : {n : Nat} -> Fin (suc n) suc : {n : Nat} -> Fin n -> Fin (suc n) three : Nat three = suc (suc (suc zero)) ftwo : Fin three ftwo = suc (suc zero) inc : Nat -> Nat inc = suc {- {-# BUILT...
{ "alphanum_fraction": 0.5790816327, "avg_line_length": 15.0769230769, "ext": "agda", "hexsha": "cdb132893a5715b43acd1d854ac6df5c91bae5b3", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.HITs.Truncation.Properties where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Function open import Cubical.Foundations.Equiv open import Cubical.Foundations.Isomorphism open import Cubical.Foundations.HLevels open import Cubic...
{ "alphanum_fraction": 0.5787047841, "avg_line_length": 43.1738035264, "ext": "agda", "hexsha": "dcf4e68d4b2f3eb99fba732a19a1cadf54fb742d", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K --rewriting #-} open import HoTT open import cohomology.Theory open import cohomology.PtdMapSequence open import groups.ExactSequence open import groups.Exactness open import groups.HomSequence open import groups.KernelImageUniqueFactorization open import cw.CW module cw.cohomology.FirstCohom...
{ "alphanum_fraction": 0.6129032258, "avg_line_length": 33.6956521739, "ext": "agda", "hexsha": "3e6b3b632c2d653f654bd57a170637e11b6488ae", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-12-26T21:31:57.000Z", "max_forks_repo_forks_event_min_datetime": "2018-12-26T...
{-# OPTIONS --safe #-} module Cubical.Algebra.Module.Base where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Foundations.Equiv.HalfAdjoint open import Cubical.Foundations.HLevels open import Cubical.Foundations.Isomorphism open import Cubical.Foundations.SIP open i...
{ "alphanum_fraction": 0.5402903811, "avg_line_length": 33.1927710843, "ext": "agda", "hexsha": "4c9eaab428f9cf2286445e6a24022f0c60774fbd", "lang": "Agda", "max_forks_count": 134, "max_forks_repo_forks_event_max_datetime": "2022-03-23T16:22:13.000Z", "max_forks_repo_forks_event_min_datetime": "2018-11-1...
open import Prelude open import Nat open import List open import Int open import Bij open import delta-lemmas open import Delta open import NatDelta
{ "alphanum_fraction": 0.8322147651, "avg_line_length": 16.5555555556, "ext": "agda", "hexsha": "09af0e0c576c6798fc9d10e06ba01df502711561", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module BasicIPC.Metatheory.Gentzen-BasicTarski where open import BasicIPC.Syntax.Gentzen public open import BasicIPC.Semantics.BasicTarski public -- Soundness with respect to all models, or evaluation. eval : ∀ {A Γ} → Γ ⊢ A → Γ ⊨ A eval (var i) γ = lookup i γ eval (lam t) γ = λ a → eval t (γ , a) eval (app t...
{ "alphanum_fraction": 0.4767090139, "avg_line_length": 38.4418604651, "ext": "agda", "hexsha": "4dafe24d626379cda66d4c38bd7f8897416ce5da", "lang": "Agda", "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 Functional.Combinations where open import Type -- TODO: Generalize these. Probably by lists and foldᵣ of combination and rotation construction functions. Also categorically or dependently rotate₃Fn₃Op₂ : ∀{ℓ₁ ℓ₂}{A : Type{ℓ₁}}{B : Type{ℓ₂}} → (A → A → A → B) → (B → B → B) → (A → A → A → B) rotate₃Fn₃Op₂(F)(_▫_...
{ "alphanum_fraction": 0.5185185185, "avg_line_length": 50.8235294118, "ext": "agda", "hexsha": "3daa4936860ce8a7b51f6b72243e615a90b4ce91", "lang": "Agda", "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, 2013-03-15 -- Paolo Capriotti's formalization of Russell's paradox {-# OPTIONS --cubical-compatible --type-in-type #-} module Russell where open import Common.Product open import Common.Equality data ⊥ : Set where ¬ : Set → Set ¬ A = A → ⊥ -- a model of set theory, uses Set : Set data U : Set where se...
{ "alphanum_fraction": 0.635770235, "avg_line_length": 20.1578947368, "ext": "agda", "hexsha": "6690cbaf1196a60f475d457e01de1eae135dde99", "lang": "Agda", "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 --cubical --no-import-sorts --safe #-} open import Cubical.Core.Everything open import Cubical.Relation.Binary module Cubical.Relation.Binary.Construct.NonStrictToStrict {a ℓ} {A : Type a} (_≤_ : Rel A ℓ) where open import Cubical.Relation.Binary.Properties open import Cubical.Foundations.Prelude open ...
{ "alphanum_fraction": 0.5479020131, "avg_line_length": 34.0743801653, "ext": "agda", "hexsha": "4f782afe47437221a8ec4cc5438b30077ee95fa1", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Connecting Nehemiah.Change.Term and Nehemiah.Change.Value. ------------------------------------------------------------------------ module Nehemiah.Change.Evaluation where open import Nehemiah.Syntax.Type open imp...
{ "alphanum_fraction": 0.7056856187, "avg_line_length": 32.3243243243, "ext": "agda", "hexsha": "764a6d22eb463517d4f713a2e073d4f6ebfa1e63", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2016-02-18T12:26:44.000Z", "max_forks_repo_forks_event_min_datetime": "2016-02-18T...
module Data.String where import Data.List import Data.Char open Data.List using (List) open Data.Char postulate String : Set {-# BUILTIN STRING String #-} infixr 50 _++_ private primitive primStringAppend : String -> String -> String primStringToList : String -> List Char primStringFromList ...
{ "alphanum_fraction": 0.7139534884, "avg_line_length": 17.2, "ext": "agda", "hexsha": "cf5c1d55659481ebb1d3261e1a50594ca502e46b", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:0...
module Dave.Algebra.Naturals.Excercises where open import Dave.Algebra.Naturals.Addition +-rearrange : ∀ (m n p q : ℕ) → (m + n) + (p + q) ≡ m + (n + p) + q +-rearrange m n p q = begin (m + n) + (p + q) ≡⟨ IsSemigroup.assoc ℕ-+-IsSemigroup m n (p + q) ⟩ m + (n + (p + q)) ≡⟨ cong (λ a → m + a) (sym (IsSem...
{ "alphanum_fraction": 0.4689265537, "avg_line_length": 44.25, "ext": "agda", "hexsha": "35c337cd42c463e91dfd7978f68e5f032bbe5251", "lang": "Agda", "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": "...
------------------------------------------------------------------------ -- Canonically kinded hereditary substitutions in Fω with interval kinds ------------------------------------------------------------------------ {-# OPTIONS --safe --without-K #-} module FOmegaInt.Kinding.Canonical.HereditarySubstitution where ...
{ "alphanum_fraction": 0.3881505925, "avg_line_length": 45.7898351648, "ext": "agda", "hexsha": "6ce55a05f792b26ae93af08f5a97652d72ca8b4d", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K #-} open import HoTT.Base open import HoTT.Equivalence open import HoTT.Identity.Product module HoTT.Equivalence.Product where private variable i : Level A A' B B' : 𝒰 i ×-swap : A × B → B × A ×-swap x = pr₂ x , pr₁ x ×-comm : A × B ≃ B × A ×-comm = ×-swap , qinv→isequiv (×-swap ,...
{ "alphanum_fraction": 0.4635463546, "avg_line_length": 25.25, "ext": "agda", "hexsha": "bd9ca10fb77570c9a883b26f42ef87c4aa54f31a", "lang": "Agda", "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 --safe #-} module Algebra where open import Prelude module _ {a} {A : Type a} (_∙_ : A → A → A) where Associative : Type a Associative = ∀ x y z → (x ∙ y) ∙ z ≡ x ∙ (y ∙ z) Commutative : Type _ Commutative = ∀ x y → x ∙ y ≡ y ∙ x Idempotent : Type _ Idempotent = ∀ x → x ∙ x ≡ x mo...
{ "alphanum_fraction": 0.4945258288, "avg_line_length": 26.3617886179, "ext": "agda", "hexsha": "d48508cbb1a8525dbd484d2b8e0c66d2ce42124f", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-01-05T14:05:30.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-05T...
module syntax-util where open import lib open import cedille-types open import general-util open import constants posinfo-gen : posinfo posinfo-gen = "generated" first-position : posinfo first-position = "1" dummy-var : var dummy-var = "_dummy" id-term : term id-term = Lam posinfo-gen NotErased posinfo-gen "x" NoC...
{ "alphanum_fraction": 0.6549752076, "avg_line_length": 36.8531390135, "ext": "agda", "hexsha": "50d25037fc1fedd9c144f0a64779d626e3360cff", "lang": "Agda", "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 SizedPolyIO.Object where open import Data.Product open import Level using (_⊔_) renaming (suc to lsuc) record Interface μ ρ : Set (lsuc (μ ⊔ ρ)) where field Method : Set μ Result : (m : Method) → Set ρ open Interface public -- A simple object just returns for a method the response -- and the obje...
{ "alphanum_fraction": 0.6857142857, "avg_line_length": 23.3333333333, "ext": "agda", "hexsha": "3d3fd86dc6f55a9e1f4792efb174014130cf7cd0", "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-01T...
open import Prelude module Implicits.Resolution.Stack.Algorithm where open import Induction.WellFounded open import Induction.Nat open import Data.Fin.Substitution open import Data.Nat.Base using (_<′_) open import Data.List.Any open Membership-≡ open import Implicits.Syntax open import Implicits.Substitutions open i...
{ "alphanum_fraction": 0.5447585395, "avg_line_length": 47.4965034965, "ext": "agda", "hexsha": "5f9b8361af298497f0b47011acb5f8066e037379", "lang": "Agda", "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 #-} module Common.Bool where open import Agda.Builtin.Bool public not : Bool -> Bool not true = false not false = true notnot : Bool -> Bool notnot true = not (not true) notnot false = not (not false) if_then_else_ : ∀ {a} {A : Set a} → Bool → A → A → A if true then t else f = t ...
{ "alphanum_fraction": 0.6551724138, "avg_line_length": 19.3333333333, "ext": "agda", "hexsha": "0b23c146cc2c04909f07dd492cef030970354b0d", "lang": "Agda", "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...
{- This file shows a natural attempt to do formatted printing, and where that attempt goes wrong. See string-format.agda for a (working) solution to this problem. -} module string-format-issue where open import char open import eq open import list open import nat open import nat-to-string open import string ...
{ "alphanum_fraction": 0.6209598433, "avg_line_length": 29.1714285714, "ext": "agda", "hexsha": "e28ac162e0a0829e337565a333093527506bbf9f", "lang": "Agda", "max_forks_count": 17, "max_forks_repo_forks_event_max_datetime": "2021-11-28T20:13:21.000Z", "max_forks_repo_forks_event_min_datetime": "2018-12-03...
{-# OPTIONS --safe #-} {- This uses ideas from Floris van Doorn's phd thesis and the code in https://github.com/cmu-phil/Spectral/blob/master/spectrum/basic.hlean -} module Cubical.Homotopy.Prespectrum where open import Cubical.Foundations.Prelude open import Cubical.Foundations.GroupoidLaws open import Cubical.Fo...
{ "alphanum_fraction": 0.6730769231, "avg_line_length": 32.1454545455, "ext": "agda", "hexsha": "7e41ae0d5c203282fbafcbd877fe844a966e8d4a", "lang": "Agda", "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 -- -- Alternative definition of divisibility without using modulus. ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Integer.Divisibility.Signed ...
{ "alphanum_fraction": 0.448908902, "avg_line_length": 31.3804347826, "ext": "agda", "hexsha": "494eef8291861dab72e967a37143b1a594fe704b", "lang": "Agda", "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 Numeral.Natural.Relation.Order.Classical where import Lvl open import Logic.Propositional open import Numeral.Natural open import Numeral.Natural.Relation.Order open import Numeral.Natural.Relation.Order.Decidable open import Numeral.Natural.Relation.Order.Proofs open import Relator.Equals open import Relator.E...
{ "alphanum_fraction": 0.5742092457, "avg_line_length": 44.4324324324, "ext": "agda", "hexsha": "1283623cd7d638ee7eebcb463b8e2e1386f3877c", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Algebra.Base where open import Cubical.Core.Everything ------------------------------------------------------------------------ -- Unary and binary operations Op₁ : ∀ {ℓ} → Type ℓ → Type ℓ Op₁ A = A → A Op₂ : ∀ {ℓ} → Type ℓ → Type ℓ Op₂ A = A → A → A...
{ "alphanum_fraction": 0.423853211, "avg_line_length": 23.6956521739, "ext": "agda", "hexsha": "6a51daa2b67604241c5faca49481b1c0d5691a4a", "lang": "Agda", "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...
------------------------------------------------------------------------ -- Safe modules that use --erased-cubical and --prop ------------------------------------------------------------------------ {-# OPTIONS --safe --erased-cubical --prop #-} module README.Safe.Cubical.Erased.Prop where -- Squashing. import Squa...
{ "alphanum_fraction": 0.386996904, "avg_line_length": 26.9166666667, "ext": "agda", "hexsha": "1686b2d273976a73a328f0d5fe22b7fbc344acca", "lang": "Agda", "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 Agda.Primitive using (lzero; lsuc; _⊔_) open import Relation.Binary.PropositionalEquality using (_≡_; refl; sym; trans; cong; cong₂; subst; setoid) open import Data.Product using (_×_; Σ; _,_; proj₁; proj₂; zip; map; <_,_>; swap) import Function.Equality open import Relation.Binary using (Setoid) import Rel...
{ "alphanum_fraction": 0.6498493976, "avg_line_length": 38.4927536232, "ext": "agda", "hexsha": "c5856fe59e30c160bdfd614aa8657a2145049de3", "lang": "Agda", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2021-05-24T02:51:43.000Z", "max_forks_repo_forks_event_min_datetime": "2021-02-16T...
module Example1 where data Nat : Set where zero : Nat suc : Nat -> Nat {-# BUILTIN NATURAL Nat #-} data _==_ {l} {a : Set l} : a -> a -> Set l where refl : ∀{x} -> x == x {-# BUILTIN EQUALITY _==_ #-} cong : ∀{l} -> {A B : Set l} {x y : A} -> (f : A -> B) -> x == y -> f x == f y cong f refl = refl sym : ∀{l...
{ "alphanum_fraction": 0.5095706156, "avg_line_length": 23.0119047619, "ext": "agda", "hexsha": "5586865352c18aab03db173bf77f5015c6dc1174", "lang": "Agda", "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 Issue482 where open import Common.Level using (_⊔_) postulate P : ∀ a b → Set a → Set b → Set (a ⊔ b) F : ∀ ℓ → Set ℓ p : ∀ a (A : Set a) → P a a A (F a) Q : ∀ a → Set a → ∀ b → Set (a ⊔ b) P-to-Q : ∀ a b (A : Set a) (B : Set b) → P a b A B → Q a A b q : ∀ a (A : Set a) → Q a A ...
{ "alphanum_fraction": 0.4910714286, "avg_line_length": 21.3333333333, "ext": "agda", "hexsha": "f78069593b8063ecf296ebe45999e3ddb2789863", "lang": "Agda", "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 Demos.Cantor where open import Prelude open import Data.Bool.Properties using (false≢true; true≢false) Stream : Type a → Type a Stream A = ℕ → A _∈_ : ∀ {A : Type a} (x : A) → Stream A → Type a x ∈ xs = ∃ i × (xs i ≡ x) Countable : Type a → Type a Countable A = Σ[ xs ⦂ Strea...
{ "alphanum_fraction": 0.5795053004, "avg_line_length": 21.7692307692, "ext": "agda", "hexsha": "22f39244a257302012a37762afefd41bf6a9de36", "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...
{-# OPTIONS --rewriting --prop #-} open import common open import syntx {- The sort corresponding to judgments -} data JudgmentSort : Set where Ty : JudgmentSort Tm : JudgmentSort Ty= : JudgmentSort Tm= : JudgmentSort JudgmentArityArgs = ArityArgs JudgmentSort JudgmentArity = Arity JudgmentSort {- Judgme...
{ "alphanum_fraction": 0.5943581037, "avg_line_length": 39.0663265306, "ext": "agda", "hexsha": "3e0c63e785baaf2836658e4087760b60f6c49827", "lang": "Agda", "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 Path where open import Cubical.Foundations.Everything using ( _≡_ ; sym ; refl ; subst ; transport ; Path ; PathP ; I ; i0 ; i1 ; funExt ; cong ; toPathP ; cong₂ ; ...
{ "alphanum_fraction": 0.4631578947, "avg_line_length": 16.2195121951, "ext": "agda", "hexsha": "784047c5f24bfea8209c0d4b58b7fae864b20363", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-01-05T14:05:30.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-05T...
{-# OPTIONS --without-K #-} module overloading.core where -- ## Coercions -- -- The overloading system implemented in this module is based on -- **coercions**. A coercion is simply a function converting a type into -- another. In object-oriented parliance, a coercion embodies an *is-a* -- relationship. The two types ...
{ "alphanum_fraction": 0.7200444815, "avg_line_length": 44.9625, "ext": "agda", "hexsha": "d8788e790b0be20360dcff3726a79c0424f9606b", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2019-02-26T06:17:38.000Z", "max_forks_repo_forks_event_min_datetime": "2015-04-11T17:19:...
module Issue606 where infixr 1 _,_ record _×_ (A B : Set) : Set where constructor _,_ field fst : A snd : B postulate A B C : Set test : A × (B × C) test = {!!} , {!!} -- refining the second hole should give "? , ?" (no enclosing parens!)
{ "alphanum_fraction": 0.58203125, "avg_line_length": 17.0666666667, "ext": "agda", "hexsha": "639d909843041beb31dadea3276a2e057db793a1", "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-03T...
{-# OPTIONS --no-positivity-check #-} module Section7 where open import Section6 public -- 7. Correspondence between proof trees and terms -- =============================================== -- -- We define a function that translates the proof trees to the corresponding untyped terms nad -- likewise for the substitu...
{ "alphanum_fraction": 0.4419796588, "avg_line_length": 31.5328282828, "ext": "agda", "hexsha": "de7be3e41add2d065a688daabba426f045e41f5f", "lang": "Agda", "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 #-} open import Categories.Category open import Categories.Support.Equivalence module Categories.Object.Indexed {o ℓ e c q} (C : Category o ℓ e) (B : Setoid c q) where open import Categories.Support.SetoidFunctions open Category C open _⟶_ public using () renaming (cong to cong₀; _...
{ "alphanum_fraction": 0.736318408, "avg_line_length": 26.8, "ext": "agda", "hexsha": "294f6a6f1a826f6c98df878eec1e18df8dfdcc5b", "lang": "Agda", "max_forks_count": 23, "max_forks_repo_forks_event_max_datetime": "2021-11-11T13:50:56.000Z", "max_forks_repo_forks_event_min_datetime": "2015-02-05T13:03:09....
-- Andreas, 2018-10-16, erased lambda-arguments applyErased : {@0 A B : Set} → (@0 A → B) → @0 A → B applyErased f x = f x test : {A : Set} → A → A test x = applyErased (λ y → y) x -- Expected error: -- -- Variable y is declared erased, so it cannot be used here -- when checking that the expression y has type _B_7
{ "alphanum_fraction": 0.6363636364, "avg_line_length": 24.5384615385, "ext": "agda", "hexsha": "5b9f40710e265cdfe37b5f574e201d098bdae524", "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 RandomAccessList.Standard.Numeral where open import Data.List open import Data.Nat open import Data.Nat.Properties.Simple open import Data.Unit using (⊤) open import Data.Empty using (⊥; ⊥-elim) open import Relation.Nullary.Negation using (contraposition) open import Relation.Binary.PropositionalEquality as Pro...
{ "alphanum_fraction": 0.5725047081, "avg_line_length": 24.1363636364, "ext": "agda", "hexsha": "afd17efcddbda6679b52dc67f6c5f984ab4e1db8", "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...
open import Prelude open import core module ground-decidable where -- every type is either ground or not ground-decidable : (τ : typ) → (τ ground) + ((τ ground) → ⊥) ground-decidable b = Inl GBase ground-decidable ⦇·⦈ = Inr (λ ()) ground-decidable (b ==> b) = Inr (λ ()) ground-decidable (b ==> ⦇·⦈) = Inr (...
{ "alphanum_fraction": 0.5053852527, "avg_line_length": 41.6206896552, "ext": "agda", "hexsha": "ce87fd6d0a944d22d071d865b3c4ee77672e6cf5", "lang": "Agda", "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...
-- Generated by src/templates/TemplatesCompiler module templates where open import lib open import cedille-types -- src/templates/Mendler.ced MendlerTemplate = File "1" ImportsStart "1" "8" "Mendler" (ParamsCons (Decl "16" "17" NotErased "Indices" (Tkk (Star "27")) "29") ParamsNil) (CmdsNext (DefTermOrType OpacTrans ...
{ "alphanum_fraction": 0.6312593514, "avg_line_length": 7917.3846153846, "ext": "agda", "hexsha": "113b5a1fc1f10318a0ba8c4867231ae6fa9e0150", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_...
module Esterel.Lang.CanFunction.MergePotentialRuleLeftInductive where open import utility renaming (_U̬_ to _∪_ ; _|̌_ to _-_) open import Esterel.Lang open import Esterel.Lang.Binding open import Esterel.Lang.CanFunction open import Esterel.Lang.CanFunction.Base open import Esterel.Lang.CanFunction.CanThetaContinu...
{ "alphanum_fraction": 0.5742816308, "avg_line_length": 46.1597222222, "ext": "agda", "hexsha": "86ed74f1deb0dc549594c891841460a050850f3d", "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...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.DStructures.Equivalences.PreXModReflGraph where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Foundations.HLevels open import Cubical.Foundations.Isomorphism open import Cubical.Foundations.Univalence...
{ "alphanum_fraction": 0.4953151198, "avg_line_length": 35.5754385965, "ext": "agda", "hexsha": "c2d15e6f95f52bde87bba02899ef6dfb50595209", "lang": "Agda", "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...
------------------------------------------------------------------------ -- Well-typed polymorphic and iso-recursive lambda terms ------------------------------------------------------------------------ module SystemF.WtTerm where import Category.Functor as Functor import Category.Applicative.Indexed as Applicative o...
{ "alphanum_fraction": 0.4900670249, "avg_line_length": 38.7845433255, "ext": "agda", "hexsha": "f0396d170fa707bcff47118ced40039296767087", "lang": "Agda", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2021-07-06T23:12:48.000Z", "max_forks_repo_forks_event_min_datetime": "2015-05-29T...
{-# OPTIONS --without-K --rewriting #-} open import lib.Basics open import lib.types.Paths open import lib.types.Pointed open import lib.types.Pushout open import lib.types.PushoutFmap open import lib.types.Sigma open import lib.types.Span module lib.types.Join where module _ {i j} (A : Type i) (B : Type j) where ...
{ "alphanum_fraction": 0.529555447, "avg_line_length": 25.9113924051, "ext": "agda", "hexsha": "9680ada16f91c8ea750b4530beae56545f16c47e", "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...
module OlderBasicILP.Indirect.Hilbert.Sequential where open import OlderBasicILP.Indirect public -- Derivations, as Hilbert-style combinator sequences. mutual data Tm : Set where NIL : Tm VAR : ℕ → Tm → Tm MP : ℕ → ℕ → Tm → Tm CI : Tm → Tm CK : Tm → Tm CS : Tm → Tm NEC ...
{ "alphanum_fraction": 0.418934636, "avg_line_length": 31.152173913, "ext": "agda", "hexsha": "ba6ccc85113ca23385450fdf7cf7e477cd578406", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexs...
{-# OPTIONS --without-K --safe --overlapping-instances #-} module SmallInterpreter where open import Data.Char hiding (_≤_) open import Data.Bool hiding (_≤_) open import Data.Nat hiding (_≤_) open import Data.Unit import Data.Nat as N open import Data.Product open import Data.Sum open import Relation.Binary.Propositi...
{ "alphanum_fraction": 0.4267612772, "avg_line_length": 27.0273972603, "ext": "agda", "hexsha": "32379ec0a7f6995601a4b5a6ec1783303f7731fc", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-06-18T12:31:11.000Z", "max_forks_repo_forks_event_min_datetime": "2021-06-18T...
-- Intuitionistic propositional calculus. -- Hilbert-style formalisation of closed syntax. -- Nested terms. module IPC.Syntax.ClosedHilbert where open import IPC.Syntax.Common public -- Derivations. infix 3 ⊢_ data ⊢_ : Ty → Set where app : ∀ {A B} → ⊢ A ▻ B → ⊢ A → ⊢ B ci : ∀ {A} → ⊢ A ▻ A ck ...
{ "alphanum_fraction": 0.3433969614, "avg_line_length": 27.902173913, "ext": "agda", "hexsha": "2d361f3c5fc20be7b2be49ec3ff319581a1df069", "lang": "Agda", "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 Cats.Category.Sets.Facts.Product where open import Data.Bool using (Bool ; true ; false) open import Data.Product using (_×_ ; _,_ ; proj₁ ; proj₂) open import Relation.Binary.PropositionalEquality using (_≡_ ; refl ; cong₂) open import Cats.Category open import Cats.Category...
{ "alphanum_fraction": 0.625, "avg_line_length": 27.8787878788, "ext": "agda", "hexsha": "9fee3eebd4151780b5f4be086eb84ab1ec3d5a91", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-03-18T15:35:07.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-18T15:35:0...
open import Agda.Builtin.Nat open import Agda.Builtin.Equality open import Agda.Builtin.String open import Agda.Builtin.List Id : (A : Set) → A → A → Set Id _ = _≡_ pattern suc² n = suc (suc n) pattern suc³ n = suc (suc² n) _ : (n : Nat) → Id Nat (suc³ n) (suc (suc n)) _ = {!!} data Vec {a} (A : Set a) : Nat → Set...
{ "alphanum_fraction": 0.5268456376, "avg_line_length": 18.0606060606, "ext": "agda", "hexsha": "ed5da5487345f7f4f62f8f1bb098a977debad023", "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 -- -- Integer division ------------------------------------------------------------------------ module Issue846.OldDivMod where open import Data.Nat as Nat open import Data.Nat.Properties open SemiringSolver open imp...
{ "alphanum_fraction": 0.5219457646, "avg_line_length": 33.1203703704, "ext": "agda", "hexsha": "56030c1b6c8b44903cdd9db4979de0d7e7ac2d56", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
postulate A : Set T : A → Set g : {{a : A}} → Set → T a test : {{a b : A}} → Set test {{a}} {{b}} = {!g A!} -- C-u C-u C-c C-d gives T b
{ "alphanum_fraction": 0.4068965517, "avg_line_length": 16.1111111111, "ext": "agda", "hexsha": "4d1fe4041df7e4a585de9400ef0b8d143ecc3376", "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 _ where module A where syntax c x = ⟦ x data D₁ : Set where b : D₁ c : D₁ → D₁ module B where syntax c x = ⟦ x ⟧ data D₂ : Set where c : A.D₁ → D₂ open A open B test₁ : D₂ test₁ = ⟦ (⟦ c b) ⟧ test₂ : D₂ → D₁ test₂ ⟦ x ⟧ = ⟦ x test₃ : D₁ → D₂ test₃ b = c b test₃ (⟦ x) = ⟦ x ⟧ te...
{ "alphanum_fraction": 0.49543379, "avg_line_length": 11.2307692308, "ext": "agda", "hexsha": "837b73c4a2632e08762eccc4ff44047453e8b7f5", "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-03T...
module simpleAgda where -- main : IO () -- main = putStrLn "Testing simple Idris" -- -- Some simple equivalent Idris and Agda code. -- -- data N = Z | Suc N data N : Set where Z : N suc : N -> N -- one : N -- one = Suc Z one : N one = suc Z -- addOne : N -> N -- addOne Z = Suc Z -- addOne (Suc n) = Suc (Suc ...
{ "alphanum_fraction": 0.5439414115, "avg_line_length": 21.768115942, "ext": "agda", "hexsha": "4ae8c4c37f722608110d621384f8130f94efb44e", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-11-27T16:25:18.000Z", "max_forks_repo_forks_event_min_datetime": "2019-11-27T1...
-- Andreas, 2015-07-10, issue reported by asr -- {-# OPTIONS -v scope:20 #-} -- {-# OPTIONS -v scope.createModule:10 #-} module _ where module A where module Y where module B where -- FAILS: module X = A open X public -- open A public --WORKS module C = B -- On maint and master: -- An internal error has ...
{ "alphanum_fraction": 0.6387802971, "avg_line_length": 21.6779661017, "ext": "agda", "hexsha": "032b0674aab4bd51a629655b6c817fa029099c5a", "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 Foundation.Bottom where open import Foundation.Primitive record IsBottom {ℓ-⊥} (⊥ : Set ℓ-⊥) ℓ-elim : ℞ ⟰ ℓ-elim ⊔ ℓ-⊥ where field ⊥-elim : ⊥ → {A : Set ℓ-elim} → A open IsBottom ⦃ … ⦄ public record Bottom ℓ-⊥ ℓ-elim : ℞₁ ℓ-elim ⊔ ℓ-⊥ where field ⊥ : Set ℓ-⊥ instance ⦃ isBottom ⦄ : IsBottom ...
{ "alphanum_fraction": 0.551980198, "avg_line_length": 19.2380952381, "ext": "agda", "hexsha": "b4777c70063590a895d185589be976bf947d24c2", "lang": "Agda", "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...
{- Define finitely generated ideals of commutative rings and show that they are an ideal. Parts of this should be reusable for explicit constructions of free modules over a finite set. -} {-# OPTIONS --safe #-} module Cubical.Algebra.CommRing.FGIdeal where open import Cubical.Foundations.Prelude open import Cu...
{ "alphanum_fraction": 0.5900047371, "avg_line_length": 40.2095238095, "ext": "agda", "hexsha": "155828212dfb936e09bc1de6b9af34708d70f698", "lang": "Agda", "max_forks_count": 134, "max_forks_repo_forks_event_max_datetime": "2022-03-23T16:22:13.000Z", "max_forks_repo_forks_event_min_datetime": "2018-11-1...
open import Prelude open import Nat open import dynamics-core open import contexts module lemmas-gcomplete where -- if you add a complete type to a complete context, the result is also a -- complete context gcomp-extend : ∀{Γ τ x} → Γ gcomplete → τ tcomplete → x # Γ → (Γ ,, (x , τ)) gcomplete gcomp-extend {Γ} ...
{ "alphanum_fraction": 0.6903114187, "avg_line_length": 44.4615384615, "ext": "agda", "hexsha": "ab574168bea29ca8fae0a20e7b820692ac5c8acc", "lang": "Agda", "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 FinVecProperties where open import Data.Nat using (ℕ; _+_; _*_) open import Data.Fin using (Fin; zero; suc; inject+; raise) open import Data.Sum using (inj₁; inj₂; [_,_]′) open import Data.Product using (_×_; proj₁; proj₂; _,′_) open import Data.Vec using (Vec; []; _∷_; tabulate...
{ "alphanum_fraction": 0.4605446029, "avg_line_length": 37.0744274809, "ext": "agda", "hexsha": "fdb796c951b2066a55ca1d1f0668bbb171f21226", "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...
module Agda.Builtin.String where open import Agda.Builtin.Bool open import Agda.Builtin.List open import Agda.Builtin.Char postulate String : Set {-# BUILTIN STRING String #-} primitive primStringToList : String → List Char primStringFromList : List Char → String primStringAppend : String → String → Strin...
{ "alphanum_fraction": 0.7364864865, "avg_line_length": 24.6666666667, "ext": "agda", "hexsha": "23307b665dfaacc542141a98fcc6c08a659a4b7c", "lang": "Agda", "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...