Search is not available for this dataset
text
string
meta
dict
------------------------------------------------------------------------ -- Some derivable properties ------------------------------------------------------------------------ open import Algebra module Algebra.Props.Group (g : Group) where open Group g import Algebra.FunctionProperties as P; open P _≈_ import Relati...
{ "alphanum_fraction": 0.4584398977, "avg_line_length": 35.5454545455, "ext": "agda", "hexsha": "560d422920a64975b67d5758b9e365244c209ca3", "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 --without-K #-} open import lib.Basics open import lib.Equivalences2 open import lib.NType2 open import lib.types.Group open import lib.types.Pi open import lib.types.Sigma open import lib.types.Truncation module lib.groups.Homomorphisms where record GroupHom {i j} (G : Group i) (H : Group j) : Type (l...
{ "alphanum_fraction": 0.4928194123, "avg_line_length": 33.9383753501, "ext": "agda", "hexsha": "153bdbea996365ae9bbfd6451b850d302c9b71c0", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --no-unicode #-} data Two : Set where tt ff : Two data Foo : Set where foo : Foo -> Foo -> Foo test1 : Foo → Two test1 x₀ = {!!} test : Foo -> Foo → Two test x1 = {!!}
{ "alphanum_fraction": 0.5425531915, "avg_line_length": 13.4285714286, "ext": "agda", "hexsha": "de3e70ade2f7035f1594b40d2b12fe7ae7ab742a", "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 UniDB.Morph.ShiftsPrime where open import UniDB.Spec open import UniDB.Basic open import UniDB.Subst open import Function open import Data.Product -------------------------------------------------------------------------------- mutual data Shifts* : MOR where refl : {γ : Dom} → Shifts* γ γ incl : {...
{ "alphanum_fraction": 0.5007969398, "avg_line_length": 37.3452380952, "ext": "agda", "hexsha": "d7b76fe6e6584262ab7c164c8bdd5df146043e5d", "lang": "Agda", "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...
------------------------------------------------------------------------ -- Terminating parser combinator interface ------------------------------------------------------------------------ module RecursiveDescent.Coinductive where open import RecursiveDescent.Index import RecursiveDescent.Coinductive.Internal as P op...
{ "alphanum_fraction": 0.5455801105, "avg_line_length": 30.1666666667, "ext": "agda", "hexsha": "0835753aa7bdd0e91cd89c08b5fe798d259750d8", "lang": "Agda", "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 Type module Formalization.ClassicalPropositionalLogic.TruthTable {ℓₚ}{P : Type{ℓₚ}} where import Lvl open import Data open import Data.Boolean open import Data.Boolean.Operators using () renaming (module Logic to Bool) import Data.Boolean.Proofs as Bool open import Data.Boolean.Stmt open import ...
{ "alphanum_fraction": 0.6053558844, "avg_line_length": 60.8142857143, "ext": "agda", "hexsha": "e222f7b8b8cf27887768126e5c736c01249f44b3", "lang": "Agda", "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...
------------------------------------------------------------------------ -- An example that uses natural numbers as names, implemented using -- the coinductive definition of bisimilarity ------------------------------------------------------------------------ {-# OPTIONS --sized-types #-} module Bisimilarity.CCS.Exam...
{ "alphanum_fraction": 0.4042235096, "avg_line_length": 39.9328358209, "ext": "agda", "hexsha": "57feb013454cbc7940373821bb1b821cf951562e", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
import Relation.Binary.EqReasoning as EqReasoning open import SemiNearRingRecords module ZeroLemmas (snr : SemiNearRing) where open SemiNearRing snr -- public open import CommAssocLemmas s _≃s_ _+s_ zers isCommMon hiding (_<+>_) renaming (SA to Ss) zeroˡLemma : ∀ x y → zers *s x +s zers *s y ≃s zers zeroˡLemma...
{ "alphanum_fraction": 0.4227108631, "avg_line_length": 33.4835164835, "ext": "agda", "hexsha": "f2e61d0f3f1dd2dbf57a3f67dc5b187ab0caf8a9", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-04-29T04:53:48.000Z", "max_forks_repo_forks_event_min_datetime": "2020-04-29T...
module Data.Finitude.Exponent where open import Data.Finitude open import Data.Fin as Fin using (Fin; toℕ) open import Data.Nat open import Data.Vec as Vec open import Relation.Binary.PropositionalEquality as P open import Data.Nat.DivMod open import Relation.Nullary.Decidable open import Function open import Function....
{ "alphanum_fraction": 0.4923218673, "avg_line_length": 47.1884057971, "ext": "agda", "hexsha": "e72bf56e86da5a096b5883590b96ff091ea000e4", "lang": "Agda", "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 product where open import level ---------------------------------------------------------------------- -- types ---------------------------------------------------------------------- data Σ {ℓ ℓ'} (A : Set ℓ) (B : A → Set ℓ') : Set (ℓ ⊔ ℓ') where _,_ : (a : A) → (b : B a) → Σ A B data Σi {ℓ ℓ'} (A : Set ℓ)...
{ "alphanum_fraction": 0.2959139785, "avg_line_length": 27.0348837209, "ext": "agda", "hexsha": "751bfd9b3fe852d08b3e3ede13bc1603ee4628ff", "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...
------------------------------------------------------------------------ -- Fixity and associativity ------------------------------------------------------------------------ module Mixfix.Fixity where open import Data.Fin using (Fin; zero; suc; #_) open import Data.Fin.Properties using (eq?) open import Function.Left...
{ "alphanum_fraction": 0.55453149, "avg_line_length": 30.515625, "ext": "agda", "hexsha": "0b558b53e194f7b89ed4453f44b44973a8cb2333", "lang": "Agda", "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 --safe #-} open import Categories.Category.Core -- Reflexive pairs and reflexive coequalizers -- https://ncatlab.org/nlab/show/reflexive+coequalizer module Categories.Diagram.ReflexivePair {o ℓ e} (𝒞 : Category o ℓ e) where open import Level open import Categories.Diagram.Coequalizer 𝒞 op...
{ "alphanum_fraction": 0.6934441367, "avg_line_length": 27.7692307692, "ext": "agda", "hexsha": "cf61bf7090437407903f2da98c012bb95e6e28f2", "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...
------------------------------------------------------------------------ -- A large class of algebraic structures satisfies the property that -- isomorphic instances of a structure are equal (assuming univalence) ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-...
{ "alphanum_fraction": 0.4942115525, "avg_line_length": 29.4121863799, "ext": "agda", "hexsha": "16a8cf61bbbbaa833a47db8440e47190f544c176", "lang": "Agda", "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 Categories.Category.Construction.Properties.Kleisli where open import Level import Relation.Binary.PropositionalEquality as ≡ open import Categories.Adjoint open import Categories.Adjoint.Properties open import Categories.Category open import Categories.Functor using (Functor...
{ "alphanum_fraction": 0.5122962963, "avg_line_length": 35.9042553191, "ext": "agda", "hexsha": "321308f0c8ba496717411dd6fd888a1f9064da97", "lang": "Agda", "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 Issue599 where data Bool : Set where true false : Bool -- standard lambda here foo : Bool → Bool foo = ? -- pattern matching lambda here bar : Bool → Bool bar = ?
{ "alphanum_fraction": 0.6761363636, "avg_line_length": 12.5714285714, "ext": "agda", "hexsha": "6902be18944e551a64906001a48dbc4e509197dd", "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 halting problem ------------------------------------------------------------------------ module Halting-problem where open import Equality.Propositional.Cubical open import Logical-equivalence using (_⇔_) open import Prelude hiding (const...
{ "alphanum_fraction": 0.5252252918, "avg_line_length": 33.887359199, "ext": "agda", "hexsha": "cf0b4e7eb8767e787179c2016a971ac5c159d2e9", "lang": "Agda", "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 IrrelevantLambda where postulate A : Set P : .A -> Set f : ._ -> Set f = λ .x -> P x f' = λ .(x : _) -> P x f'' = λ .{x y z : _} -> P x g : ((.A -> Set) -> Set) -> Set g k = k f
{ "alphanum_fraction": 0.4307692308, "avg_line_length": 12.1875, "ext": "agda", "hexsha": "1b875ca296d9633a23ece71fa6cc80140ab2aaad", "lang": "Agda", "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 Golden.InsertionSort where open import Agda.Builtin.Nat open import Agda.Builtin.List open import Agda.Builtin.Bool insert : Nat -> List Nat -> List Nat insert a [] = a ∷ [] insert x (a ∷ b) with x < a ... | true = x ∷ a ∷ b ... | false = a ∷ (insert x b) foldr : ∀ {a b : Set} → (a → b → b) → b → List a -> b ...
{ "alphanum_fraction": 0.5893333333, "avg_line_length": 19.2307692308, "ext": "agda", "hexsha": "5c1f2bddf098becec4ac38ce962a5726228749f6", "lang": "Agda", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:39:48.000Z", "max_forks_repo_forks_event_min_datetime": "2018-05-24T...
------------------------------------------------------------------------ -- The Agda standard library -- -- Universe levels ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Level where -- Levels. open import Agda.Primitive as Prim public using (...
{ "alphanum_fraction": 0.469581749, "avg_line_length": 18.1379310345, "ext": "agda", "hexsha": "b2a8bc33a30c892936780d60f6ed744710532bcf", "lang": "Agda", "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.MonoidSolver.Solver where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Structure open import Cubical.Data.FinData using (Fin) open import Cubical.Data.Nat using (ℕ) open import Cubical.Data.List open import Cubical.Data.Vec using (Vec; lookup) ...
{ "alphanum_fraction": 0.5578256111, "avg_line_length": 31.5057471264, "ext": "agda", "hexsha": "ee962b12a3b059c1242cd047e0320772eaf84306", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Homotopy.Base where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv.Properties private variable ℓ ℓ' : Level _∼_ : {X : Type ℓ} {Y : X → Type ℓ'} → (f g : (x : X) → Y x) → Type (ℓ-max ℓ ℓ') _∼_ {X = X} f g = (x : X...
{ "alphanum_fraction": 0.5258302583, "avg_line_length": 27.1, "ext": "agda", "hexsha": "b28d357357eb4c8c33ea11b3ed75914d8d3dbcad", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "f...
{-# OPTIONS --cubical --safe --postfix-projections #-} module Categories.Exercises where open import Prelude open import Categories open Category ⦃ ... ⦄ open import Categories.Product open Product public open HasProducts ⦃ ... ⦄ public -- module _ {ℓ₁} {ℓ₂} ⦃ c : Category ℓ₁ ℓ₂ ⦄ ⦃ hp : HasProducts c ⦄ where -- ...
{ "alphanum_fraction": 0.5990853659, "avg_line_length": 34.5263157895, "ext": "agda", "hexsha": "5cf1ea892a374826c595f23b8e491bd6c6f6f0ea", "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 --safe --warning=error --without-K #-} open import LogicalFormulae open import Numbers.Naturals.Semiring open import Numbers.Naturals.Multiplication open import Semirings.Definition open import Rings.Definition open import Setoids.Setoids module Numbers.Integers.RingStructure.Ring where open import Numbe...
{ "alphanum_fraction": 0.6556659291, "avg_line_length": 119.3314606742, "ext": "agda", "hexsha": "088f16e078103495db4693838182d16f71fd39a1", "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-29...
module Oscar.Data.Term.Injectivity {𝔣} (FunctionName : Set 𝔣) where open import Oscar.Data.Term FunctionName open import Data.Fin open import Data.Nat open import Data.Vec open import Relation.Binary.PropositionalEquality Term-i-inj : ∀ {m} {𝑥₁ 𝑥₂ : Fin m} → i 𝑥₁ ≡ i 𝑥₂ → 𝑥₁ ≡ 𝑥₂ Term-i-inj refl = refl Ter...
{ "alphanum_fraction": 0.6733031674, "avg_line_length": 39.4642857143, "ext": "agda", "hexsha": "b4091b9dc51de4b83cfd32b9b9ab87f09b667836", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K --exact-split --rewriting --overlapping-instances #-} open import lib.Basics open import lib.NConnected open import lib.NType2 open import lib.types.Truncation open import lib.types.Sigma open import lib.Equivalence open import lib.types.Fin open import lib.types.Coproduct open import Graphs.D...
{ "alphanum_fraction": 0.5836046168, "avg_line_length": 41.2073170732, "ext": "agda", "hexsha": "0d8fa65c284151ee79b0304ce020a846e37fa492", "lang": "Agda", "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 TypeEquivalences where open import Data.Empty open import Data.Unit open import Data.Unit.Core open import Data.Nat renaming (_⊔_ to _⊔ℕ_) open import Data.Sum renaming (map to _⊎→_) open import Data.Product renaming (map to _×→_) open import Function renaming (_∘_ to _○_) -- explic...
{ "alphanum_fraction": 0.5256621278, "avg_line_length": 30.3772727273, "ext": "agda", "hexsha": "ad9aa1f41c9676b1dc21aeb2f86b8d32b31a3319", "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...
{-# OPTIONS --cubical #-} module HyperPositive where open import Prelude infixr 4 _↬_ {-# NO_POSITIVITY_CHECK #-} record _↬_ (A : Type a) (B : Type b) : Type (a ℓ⊔ b) where inductive; constructor hyp field invoke : ((A ↬ B) → A) → B open _↬_ open import Data.List using (List; _∷_; []; foldr) module _ {a b} {A ...
{ "alphanum_fraction": 0.5135699374, "avg_line_length": 20.8260869565, "ext": "agda", "hexsha": "c49827ae1cfeead682b26b26b48cb604c051b738", "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...
open import Relation.Binary.Indexed module Relation.Binary.Indexed.EqReasoning {𝒾} {I : Set 𝒾} {𝒸 ℓ} (S : Setoid I 𝒸 ℓ) where open Setoid S import Relation.Binary.Indexed.PreorderReasoning as PreR open import Relation.Binary.Indexed.Extra using (Setoid⇒Preorder) open PreR (Setoid⇒Preorder S) public renamin...
{ "alphanum_fraction": 0.6267605634, "avg_line_length": 32.7692307692, "ext": "agda", "hexsha": "648ac0e4e868950234b610991ee730a9c332bc6f", "lang": "Agda", "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 Cats.Category.Discrete {li} (I : Set li) where open import Data.Unit using (⊤) open import Level open import Cats.Category.Base open import Cats.Functor using (Functor) Obj : Set li Obj = I data _⇒_ : Obj → Obj → Set where id : ∀ {A} → A ⇒ A _∘_ : ∀ {A B C} → B ⇒ C → A ⇒ B → A ⇒ C id ∘ id = id Discre...
{ "alphanum_fraction": 0.4976905312, "avg_line_length": 17.6734693878, "ext": "agda", "hexsha": "b3b0061aac42c5e6feac8e192eaf82d865213acd", "lang": "Agda", "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 #-} module Cubical.Categories.Sets where open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.Categories.Category module _ ℓ where SET : Precategory (ℓ-suc ℓ) ℓ SET .ob = Σ (Type ℓ) isSet SET .hom (A , _) (B , _) = A → B SET .idn _ = λ x →...
{ "alphanum_fraction": 0.6384915475, "avg_line_length": 26.5172413793, "ext": "agda", "hexsha": "7ad005e44014e064e99115f0aacf32e5ea2d0758", "lang": "Agda", "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...
-- Building some simple tactics using the reflected type checking monad. module _ where open import Common.Reflection open import Common.Prelude hiding (_>>=_) open import Common.Equality open import Agda.Builtin.Sigma -- Some helpers -- quotegoal : (Type → Tactic) → Tactic quotegoal tac hole = inferType hole >>= ...
{ "alphanum_fraction": 0.6091458154, "avg_line_length": 29.218487395, "ext": "agda", "hexsha": "dc76b1d957c5e12daeaf369056f7bebebbae288c", "lang": "Agda", "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...
------------------------------------------------------------------------ -- Proofs of the map-iterate property and iterate fusion ------------------------------------------------------------------------ module MapIterate where open import Codata.Musical.Notation open import Codata.Musical.Stream as Stream using (St...
{ "alphanum_fraction": 0.5065190652, "avg_line_length": 33.5950413223, "ext": "agda", "hexsha": "01c51f153fa9b947f0d9540877594f43c20c5e52", "lang": "Agda", "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 -W noTerminationIssue #-} data ⊥ : Set where bad : ⊥ bad = bad
{ "alphanum_fraction": 0.6071428571, "avg_line_length": 12, "ext": "agda", "hexsha": "0f5fd2ece3b897517ce9e679e6927826390f7833", "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 plfa.working.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; _+_; _*_; _∸_) +-assoc : ∀ (m n p : ℕ) → (m + n) + p ≡ m + (n + p) +-assoc zero n p = ...
{ "alphanum_fraction": 0.389307745, "avg_line_length": 17.578313253, "ext": "agda", "hexsha": "0fb711fea744b2395d9a5af9848fa0b2990cf37f", "lang": "Agda", "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 --sized-types --guardedness #-} -- Note: This module is not meant to be imported. module Js where import Data import Data.Boolean import FFI.IO as FFI main : FFI.IO Data.Unit main = FFI.printStrLn("Okay")
{ "alphanum_fraction": 0.7181818182, "avg_line_length": 18.3333333333, "ext": "agda", "hexsha": "991971e8100b79cdccdba97589697d48484e86a8", "lang": "Agda", "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 record R : Set₁ where field x : Set g : Set₁ module M (r : R) where open R r f = x g = R
{ "alphanum_fraction": 0.5739130435, "avg_line_length": 8.2142857143, "ext": "agda", "hexsha": "62dc1e9b5a42156d3d32baff36f417230c29c440", "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 Examples.Syntax where open import Agda.Builtin.Equality using (_≡_; refl) open import FFI.Data.String using (_++_) open import Luau.Syntax using (var; _$_; return; nil; function_⟨_⟩_end; done; _∙_) open import Luau.Syntax.ToString using (exprToString; blockToString) f = var "f" x = var "x" ex1 : exprToString(...
{ "alphanum_fraction": 0.6587030717, "avg_line_length": 23.44, "ext": "agda", "hexsha": "8af9bca8b12c78ce8740ee85dae049bf8b9808a8", "lang": "Agda", "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 --rewriting #-} open import HoTT open import cw.CW open import cw.FinCW open import cw.FinBoundary open import cohomology.Theory module cw.cohomology.cochainequiv.HigherCoboundaryCommSquare (OT : OrdinaryTheory lzero) {n} (⊙fin-skel : ⊙FinSkeleton (S (S n))) where open OrdinaryTheory OT ope...
{ "alphanum_fraction": 0.6636125654, "avg_line_length": 40.7466666667, "ext": "agda", "hexsha": "f6e81be8ac215f1b08d6e8042f66b09492b3560b", "lang": "Agda", "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 CoinductiveAfterEvaluation where open import Common.Coinduction data Functor : Set where Id : Functor _·_ : Functor → Set → Set Id · A = A data ν (F : Functor) : Set where inn : ∞ (F · ν F) → ν F -- Evaluation is required to see that Id · ν Id is a coinductive type. foo : ∀ F → F · ν F foo Id = inn (♯ ...
{ "alphanum_fraction": 0.6463414634, "avg_line_length": 18.2222222222, "ext": "agda", "hexsha": "c0dfd3cc64284d74e88bcfbc336468ee4e78f713", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-05T...
module Dave.Algebra.Naturals.Definition where open import Dave.Equality public open import Dave.Structures.Monoid public data ℕ : Set where zero : ℕ suc : ℕ → ℕ one = suc zero two = suc one three = suc two four = suc three five = suc four six = suc five seven = suc six eight = suc seve...
{ "alphanum_fraction": 0.6108597285, "avg_line_length": 20.0909090909, "ext": "agda", "hexsha": "45ad5374d50f4eb222fa055e7e5db9d97f008217", "lang": "Agda", "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 x07-747Negation-hc where open import Relation.Binary.PropositionalEquality using (_≡_; cong; refl; subst; sym) -- added last open import Data.Nat using (ℕ; zero; suc) open import Data.Empty using (⊥; ⊥-elim) open import Data.Sum using (_⊎_; inj₁; inj₂) open import Data.Product using (_×_; proj₁; proj₂) -------...
{ "alphanum_fraction": 0.5522151899, "avg_line_length": 30.4171122995, "ext": "agda", "hexsha": "a57ba375ac75c292adbdc8244eac292c9fc6cec3", "lang": "Agda", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2021-09-21T15:58:10.000Z", "max_forks_repo_forks_event_min_datetime": "2015-04-13T...
{-# OPTIONS --safe #-} open import Definition.Typed.EqualityRelation module Definition.LogicalRelation.Substitution.Introductions.Cast {{eqrel : EqRelSet}} where open EqRelSet {{...}} open import Definition.Untyped open import Definition.Untyped.Properties open import Definition.Typed open import Definition.Typed.Pr...
{ "alphanum_fraction": 0.3536947905, "avg_line_length": 72.684244373, "ext": "agda", "hexsha": "c07e03e8fe5d3c389a6f9bd9dbbfa291673626ac", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-02-15T19:42:19.000Z", "max_forks_repo_forks_event_min_datetime": "2022-01-26T1...
module Issue277 where data D : Set where d : D abstract x : D x = d -- Normalise x using the Emacs mode, at the top-level. Result: d. The -- result should be x. Agda.Interaction.GhciTop.cmd_compute_toplevel -- receives the right arguments, so the problem does not lie in the -- Emacs Lisp code. y : D y = {!x...
{ "alphanum_fraction": 0.6972972973, "avg_line_length": 19.4736842105, "ext": "agda", "hexsha": "17df2e091aacafeba275a4b3fc578b0ddaa8d284", "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 #-} -- Mentioned in passing here: -- https://ncatlab.org/nlab/show/slice+2-category open import Categories.Bicategory using (Bicategory) module Categories.Bicategory.Construction.LaxSlice {o ℓ e t} (𝒞 : Bicategory o ℓ e t) where open import Data.Product using (_,...
{ "alphanum_fraction": 0.4632368043, "avg_line_length": 40.0740740741, "ext": "agda", "hexsha": "a18a90536af0171cc7e14e8cf0a574c1be7e24d8", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module L.Base.Id.Core where -- Use the builtin _≡_ and refl open import Agda.Builtin.Equality public J : ∀{a c} {A : Set a} → (C : (x y : A) → x ≡ y → Set c) → ((x : A) → C x x refl) → (M N : A) → (P : M ≡ N ) → C M N P J C c M .M refl = c M
{ "alphanum_fraction": 0.4601449275, "avg_line_length": 19.7142857143, "ext": "agda", "hexsha": "c869f62d408216cc422dcfa6051c75082057c122", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
open import Prelude open import Nat module List where -- lets us omit a bunch of parens infixr 99 _::_ infixr 9 _++_ -- standard definition of polymorphic lists data List (A : Set) : Set where [] : List A _::_ : A → List A → List A {-# BUILTIN LIST List #-} -- shorthand notation for small li...
{ "alphanum_fraction": 0.5419222904, "avg_line_length": 20.375, "ext": "agda", "hexsha": "132c87b9e0a19e951487c657d4c0348f3b076d59", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
module plfa.Relations where import Relation.Binary.PropositionalEquality as Eq open Eq using (_≡_; refl; cong; sym) open import Data.Nat using (ℕ ; zero; suc; _+_) open import Data.Nat.Properties using (+-comm) data _≤_ : ℕ → ℕ → Set where z≤n : ∀ { n : ℕ } --------- → zero ≤ n s≤s : ∀ { m n : ℕ } ...
{ "alphanum_fraction": 0.4839939024, "avg_line_length": 18.2222222222, "ext": "agda", "hexsha": "b5968ad4c5f834a37712c538e5b5d9a410f59255", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-15T01:26:23.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-15T...
{- 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 -} {-# OPTIONS --allow-unsolved-metas #-} open import LibraBFT.Prelude open...
{ "alphanum_fraction": 0.6045576408, "avg_line_length": 61.1475409836, "ext": "agda", "hexsha": "cb8de75c462e3281d28c3085d5633902ac4e8754", "lang": "Agda", "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 --prop #-} module Relation.Binary.Equivalence.PropTruncated where open import Prelude open import Relation.Nullary.Stable infix 4 _≐_ data _≐_ {a} {A : Type a} (x y : A) : Prop a where ∣_∣ : x ≡ y → x ≐ y data ∙⊥ : Prop where private variable x y z : A rerel : ∙⊥ → ⊥ rerel () ...
{ "alphanum_fraction": 0.4517516902, "avg_line_length": 21.6933333333, "ext": "agda", "hexsha": "7c5af67176f88afd8eb1909e2f79eb536e437592", "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...
open import Mockingbird.Forest using (Forest) -- Mockingbirds, Warblers, and Starlings module Mockingbird.Problems.Chapter12 {b ℓ} (forest : Forest {b} {ℓ}) where open import Data.Product using (_×_; _,_; proj₁; ∃-syntax) open import Function using (_$_) open import Mockingbird.Forest.Birds forest import Mockingbird...
{ "alphanum_fraction": 0.4241068766, "avg_line_length": 40.5, "ext": "agda", "hexsha": "3841c6848ceee83f70c07201ef3c09d7675f00a6", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "d...
module Syntax where open import Data.List using (List; []; _∷_; _++_; lookup; length) open import Data.Product using (Σ; Σ-syntax; proj₁; proj₂) open import Data.Unit renaming (⊤ to top) open import Data.Empty renaming (⊥ to bot) open import Level using (suc; _⊔_) module PType {ℓ} (Gr : Set ℓ) where infixr 10 _*_ ...
{ "alphanum_fraction": 0.5285784074, "avg_line_length": 24.6626506024, "ext": "agda", "hexsha": "f710728d2edc5af922b30b0bf38865e09d769185", "lang": "Agda", "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, 2019-02-25, issue #3588 -- C-c C-r (refine) produces unqualified constructor, but only -- a qualified constructor is accepted in this place. -- {-# OPTIONS -v interaction.intro:100 #-} -- {-# OPTIONS -v scope.inverse:100 #-} -- {-# OPTIONS -v toConcrete:50 #-} module Issue3588 where module M (_ : Set₁) w...
{ "alphanum_fraction": 0.6220183486, "avg_line_length": 20.1851851852, "ext": "agda", "hexsha": "edddb5fcb3e5faf3769a90638092398297ba6707", "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 --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS --without-K #-} module LogicalFramework.NonIntuitionistic where infix 6 ¬_ infixr 5 _∧_ infixr 4 _∨_ postulate ⊥ : Set ⊥-elim : {A : Set} → ⊥ → A -- D...
{ "alphanum_fraction": 0.4990085922, "avg_line_length": 24.8032786885, "ext": "agda", "hexsha": "6a29c2c358d9dd3bddc7235139ae918feee6f591", "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...
-- Generalized variables in datatype (and record) parameters module _ where open import Agda.Primitive open import Agda.Builtin.Nat module NotParameterised where variable ℓ : Level A : Set ℓ x y : A m n : Nat data Vec (A : Set ℓ) : Nat → Set ℓ where [] : Vec A zero _∷_ : A → Vec A n →...
{ "alphanum_fraction": 0.5489033788, "avg_line_length": 23.7605633803, "ext": "agda", "hexsha": "dcbe4853d786413d9d8249b745de852e217a1e57", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
-- {-# OPTIONS -v interaction.give:20 #-} -- Reported by stevan.andjelkovic, Yesterday (17 hours ago) -- Trying to give the expression in the goal gives the following error: -- tt != tt p a of type Prop -- when checking that the expression (λ x y → ?) has type -- ({o : ⊤} (p : ⊤) → ⊥ → ⊤) record _▷_ (I O : S...
{ "alphanum_fraction": 0.5414201183, "avg_line_length": 21.8064516129, "ext": "agda", "hexsha": "2923552eb8b680b1f789ad49c3368c6fece33a1a", "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 #-} open import Level open import Categories.Category open import Categories.Product module Categories.Product.Projections {o ℓ e o′ ℓ′ e′} (C : Category o ℓ e) (D : Category o′ ℓ′ e′) where open import Categories.Functor open import Data.Product using (_×_; Σ; _,...
{ "alphanum_fraction": 0.5526641884, "avg_line_length": 22.4166666667, "ext": "agda", "hexsha": "39e679ffb1b06aa589bb716e887bee6ab30aec6c", "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-05...
{-# OPTIONS --safe #-} module Cubical.Categories.Instances.Sets where open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.Foundations.Isomorphism open import Cubical.Data.Unit open import Cubical.Data.Sigma using (ΣPathP) open import Cubical.Categories.Category open imp...
{ "alphanum_fraction": 0.5246861925, "avg_line_length": 34.8905109489, "ext": "agda", "hexsha": "ff9483450ce5aede51fe72ba983285e34645c06b", "lang": "Agda", "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-01-09, extend parser of typed bindings to allow hiding postulate _≡_ : ∀{A : Set} (a b : A) → Set List : Set → Set _++_ : ∀{A : Set} (xs ys : List A) → List A assoc : ∀{A : Set} (xs {ys} {zs} : List A) → ((xs ++ ys) ++ zs) ≡ (xs ++ (ys ++ zs)) assoc1 : ∀{A : Set} (xs {ys zs} : List A) → ...
{ "alphanum_fraction": 0.4761904762, "avg_line_length": 40.25, "ext": "agda", "hexsha": "aefba935dbdcd0d07676bfc17659dcd5b1251432", "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 --without-K --safe #-} module Data.Nat.Base where open import Agda.Builtin.Nat public using (_+_; _*_; zero; suc) renaming (Nat to ℕ; _-_ to _∸_) open import Level data Ordering : ℕ → ℕ → Type where less : ∀ m k → Ordering m (suc (m + k)) equal : ∀ m → Ordering m m greater : ∀ m k → Ord...
{ "alphanum_fraction": 0.5854037267, "avg_line_length": 25.76, "ext": "agda", "hexsha": "bc62f6e1c86918a82055c60efbaf5009cd63c5f1", "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-11T12:30:21...
open import OutsideIn.Prelude open import OutsideIn.X module OutsideIn.Inference.Solver(x : X) where import OutsideIn.Inference.Separator as S import OutsideIn.Expressions as E import OutsideIn.Constraints as C open import Data.Bool renaming (_∧_ to _and_) open E(x) open S(x) open X(x) open C(x) pr...
{ "alphanum_fraction": 0.4729051681, "avg_line_length": 58.6176470588, "ext": "agda", "hexsha": "88f3ccd8c79c9bbdfdc53658964afe75d99c416c", "lang": "Agda", "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.Boolean.Proofs where import Lvl open import Data open import Data.Boolean import Data.Boolean.Operators open Data.Boolean.Operators.Logic using (_⊼_ ; _⊽_ ; _⊕_) open Data.Boolean.Operators.Programming open import Data.Either as Either using (_‖_ ; Left ; Right) open import Function...
{ "alphanum_fraction": 0.499939313, "avg_line_length": 33.0883534137, "ext": "agda", "hexsha": "51aaccc2b889f3fad7b9d9a094e5a3913434fd1a", "lang": "Agda", "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.Builtin.Equality open import Agda.Builtin.Nat data ⊤ : Set where tt : ⊤ foo : Nat → ⊤ → ⊤ foo 0 tt = tt foo (suc n) tt = foo n tt -- NB tail-recursive test : foo 100000 tt ≡ tt test = refl -- memory blows up here
{ "alphanum_fraction": 0.6483050847, "avg_line_length": 16.8571428571, "ext": "agda", "hexsha": "9c4279dc0c7cb243fac5d3391df455a79f984676", "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 Issue2486.Import where open import Issue2486.Haskell {-# FOREIGN GHC import qualified MAlonzo.Code.Issue2486.Haskell #-} data MyList (A : Set) : Set where [] : MyList A _::_ : A → MyList A → MyList A {-# COMPILE GHC MyList = data MAlonzo.Code.Issue2486.Haskell.MyList ( MAlonzo.Code.Issue2486.Haskell.Nil ...
{ "alphanum_fraction": 0.7252747253, "avg_line_length": 30.3333333333, "ext": "agda", "hexsha": "faf965f9ffe04c0e3da13ed81a2445b04d39a1ee", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
{-# OPTIONS --allow-unsolved-metas #-} module FLutil where open import Level hiding ( suc ; zero ) open import Data.Fin hiding ( _<_ ; _≤_ ; _-_ ; _+_ ; _≟_) open import Data.Fin.Properties hiding ( <-trans ; ≤-refl ; ≤-trans ; ≤-irrelevant ; _≟_ ) renaming ( <-cmp to <-fcmp ) open import Data.Fin.Permutation -- hid...
{ "alphanum_fraction": 0.5135476879, "avg_line_length": 40.7058823529, "ext": "agda", "hexsha": "02b4588e2ea60d4703a02e3999c125427e6a5afb", "lang": "Agda", "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 -- -- The partiality monad ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe --guardedness #-} module Category.Monad.Partiality where open import Codata.Musical....
{ "alphanum_fraction": 0.4652084324, "avg_line_length": 34.2508143322, "ext": "agda", "hexsha": "db7e927e55d2ac5867f4d39288d1886e60c3eb8c", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
open import Algebra using (CommutativeMonoid) open import Relation.Binary.Structures using (IsEquivalence) open import Relation.Binary.PropositionalEquality using () renaming (cong to ≡-cong) module AKS.Exponentiation {c ℓ} (M : CommutativeMonoid c ℓ) where open import AKS.Nat using (ℕ; _+_; _<_) open ℕ open import A...
{ "alphanum_fraction": 0.459092533, "avg_line_length": 30.4239130435, "ext": "agda", "hexsha": "e22f1821f0125cf31d31849138b8d8399bf76f83", "lang": "Agda", "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 --safe --postfix-projections --guardedness #-} open import Algebra open import Prelude open import Relation.Binary open import WellFounded open import Algebra.Monus open import Data.Maybe module Control.Comonad.IntervalHeap {s} (mon : TMAPOM s) (wf : WellFounded (TMAPOM._<_ mon)) (cancel :...
{ "alphanum_fraction": 0.5495987159, "avg_line_length": 30.8415841584, "ext": "agda", "hexsha": "7c93b93f4bda6a98141cc8fd48f41532e4269051", "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...
------------------------------------------------------------------------------ -- First-order logic ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS...
{ "alphanum_fraction": 0.5772230889, "avg_line_length": 31.2682926829, "ext": "agda", "hexsha": "05e3d8a76afbd7abe5a8df9066711549f0d60e52", "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 #-} module NTypes.Contractible where open import Equivalence open import Types isContr : ∀ {a} → Set a → Set _ isContr A = Σ A λ x → (y : A) → x ≡ y contr→eq-⊤ : ∀ {a} {A : Set a} → isContr A → A ≃ ⊤ contr→eq-⊤ h = (λ _ → _) , ((λ _ → π₁ h) , λ _ → refl) , ((λ _ → π₁ h) , π₂ h) eq-⊤→co...
{ "alphanum_fraction": 0.4592, "avg_line_length": 24.0384615385, "ext": "agda", "hexsha": "805ec56f6d9a3442ae1dd3c56f88dc48b64d7098", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
{-# OPTIONS --cubical --no-import-sorts --no-exact-split --safe #-} module Cubical.Data.NatMinusOne.Properties where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Univalence open import Cubical.Data.Nat open import Cubical.Data.NatMinusOne.Base open import Cubical.Reflection.StrictEquiv -1+P...
{ "alphanum_fraction": 0.7711442786, "avg_line_length": 28.7142857143, "ext": "agda", "hexsha": "f89c3bb03dfbf4684de198531ea9227b13f422dc", "lang": "Agda", "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...
{- Delay operator. -} module TemporalOps.Delay where open import CategoryTheory.Categories open import CategoryTheory.Instances.Reactive open import CategoryTheory.Functor open import CategoryTheory.CartesianStrength open import TemporalOps.Common open import TemporalOps.Next open import Data.Nat.Properties using (+...
{ "alphanum_fraction": 0.5362779483, "avg_line_length": 39.1587982833, "ext": "agda", "hexsha": "31b1ef007ea97811c8be9e7d1dd1dd7cb4bea132", "lang": "Agda", "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.Data.NatMinusOne open import Cubical.HITs.Truncation.Base open import Cubical.Foundations.Prelude open import Cubical.Foundations.Function open import Cubical.Foundations.Equiv open import Cubical.Fo...
{ "alphanum_fraction": 0.5617206983, "avg_line_length": 46.5446428571, "ext": "agda", "hexsha": "092e8ccef93699412e372083c163f0f552aa5694", "lang": "Agda", "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 GetTypes where open import Level using () renaming (zero to ℓ₀) open import Data.Nat using (ℕ) open import Data.List using (List ; map) open import Data.Vec using (Vec) renaming (map to mapV) open import Function using (_∘_ ; id) open import Relation.Binary.PropositionalEquality using (_≗_) open import Structu...
{ "alphanum_fraction": 0.6202118989, "avg_line_length": 31.0632911392, "ext": "agda", "hexsha": "83f6845c1dc5f0ae859ce7aa312b6536797d28ed", "lang": "Agda", "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 -- -- An inductive definition of the sublist relation with respect to a -- setoid. This is a generalisation of what is commonly known as Order -- Preserving Embeddings (OPE). -------------------------------------------...
{ "alphanum_fraction": 0.6156670747, "avg_line_length": 29.8902439024, "ext": "agda", "hexsha": "6140d6dddb1514717e72729d6eb42bb916d2d10d", "lang": "Agda", "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 Structure.Function where import Lvl open import Lang.Instance open import Logic.Predicate open import Logic open import Structure.Function.Names open import Structure.Setoid open import Type private variable ℓ ℓₒ ℓₒ₁ ℓₒ₂ ℓₒ₃ ℓₗ ℓₗ₁ ℓₗ₂ ℓₗ₃ : Lvl.Level private variable A B : Type{ℓ} -- The function `f` "(behav...
{ "alphanum_fraction": 0.6859122402, "avg_line_length": 29.8620689655, "ext": "agda", "hexsha": "a2a9cbd1902a76146f319f34940613462b1c8506", "lang": "Agda", "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.Data.Prod.Base where open import Cubical.Core.Everything open import Cubical.Foundations.Prelude open import Cubical.Foundations.Function -- Here we define an inductive version of the product type, see below -- for its uses. -- See `Cubical.Data.Sigm...
{ "alphanum_fraction": 0.5971705138, "avg_line_length": 25.8269230769, "ext": "agda", "hexsha": "6b88b3c5a078427cee78057abc65cbd796d7b504", "lang": "Agda", "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 -} open import LibraBFT.Prelude open import LibraBFT.Concrete.System.Parame...
{ "alphanum_fraction": 0.7468916519, "avg_line_length": 35.1875, "ext": "agda", "hexsha": "9b739f4321b963744042be19b3ece027b3d26433", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha":...
open import Nat open import Prelude open import contexts open import dynamics-core open import canonical-value-forms module canonical-boxed-forms where canonical-boxed-forms-num : ∀{Δ d} → Δ , ∅ ⊢ d :: num → d boxedval → Σ[ n ∈ Nat ...
{ "alphanum_fraction": 0.5090715048, "avg_line_length": 46.85, "ext": "agda", "hexsha": "522453afc150c4a6d116a0244f27ceea53ab38f8", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "...
------------------------------------------------------------------------ -- The Maybe type ------------------------------------------------------------------------ module Data.Maybe where ------------------------------------------------------------------------ -- The type open import Data.Maybe.Core public --------...
{ "alphanum_fraction": 0.5140160183, "avg_line_length": 26.0895522388, "ext": "agda", "hexsha": "62828201cf4b5463fd4cb57db1676e1487c7df29", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:54:10.000Z", "max_forks_repo_forks_event_min_datetime": "2015-07-21T...
open import Agda.Builtin.Reflection open import Agda.Builtin.Unit open import Agda.Builtin.String open import Agda.Builtin.Nat open import Agda.Builtin.List infixl 5 _>>=_ _>>=_ = bindTC pure = returnTC defToTerm : Name → Definition → List (Arg Term) → Term defToTerm _ (function cs) as = pat-lam cs as defToTerm _ (d...
{ "alphanum_fraction": 0.6076759062, "avg_line_length": 22.6935483871, "ext": "agda", "hexsha": "a249df29f6553f040bb789ae3a9d9be4a4c5c19f", "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 module HoTT.Base.Inspect where open variables data Inspect {i j} {A : 𝒰 i} {P : A → 𝒰 j} (f : Π A P) (x : A) (y : P x) : 𝒰 (i ⊔ j) where [_] : y == f x → Inspect f x y inspect : (f : Π A P) (x : A) → Inspect f x (f x) inspect f x = [ refl ]
{ "alphanum_fraction": 0.5387205387, "avg_line_length": 22.8461538462, "ext": "agda", "hexsha": "aceb7c5db2d122df1ed6db035efc011b945466cd", "lang": "Agda", "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...
{- Next step operator. -} module TemporalOps.Next where open import CategoryTheory.Categories open import CategoryTheory.Instances.Reactive open import CategoryTheory.Functor open import CategoryTheory.CartesianStrength open import TemporalOps.Common open import Data.Product open import Data.Sum -- One-step delay o...
{ "alphanum_fraction": 0.4422030099, "avg_line_length": 29.7428571429, "ext": "agda", "hexsha": "f2e71734f3f863aa01a0ff81d629d2c1c94c5048", "lang": "Agda", "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 Luau.RuntimeType where open import Luau.Value using (Value; nil; addr; number) data RuntimeType : Set where function : RuntimeType number : RuntimeType nil : RuntimeType valueType : Value → RuntimeType valueType nil = nil valueType (addr x) = function valueType (number x) = number
{ "alphanum_fraction": 0.755033557, "avg_line_length": 21.2857142857, "ext": "agda", "hexsha": "25c0283aaf0574ff8f73a44028c48dce4cbc5647", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
------------------------------------------------------------------------ -- An abstraction of various forms of recursion/induction ------------------------------------------------------------------------ -- Note: The types in this module can perhaps be easier to understand -- if they are normalised. Note also that Agd...
{ "alphanum_fraction": 0.6180637544, "avg_line_length": 33.88, "ext": "agda", "hexsha": "3daa6eaaa841dee44715702df3e32949bee02987", "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-21T16:37:58...
------------------------------------------------------------------------ -- An equality postulate which evaluates ------------------------------------------------------------------------ module Relation.Binary.PropositionalEquality.TrustMe where open import Relation.Binary.PropositionalEquality private primitive ...
{ "alphanum_fraction": 0.5235602094, "avg_line_length": 28.65, "ext": "agda", "hexsha": "f363eed87fd5767c0b9738406e3f575045ae7105", "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-21T16:37:58...
-- As reported by Andreas on 2017-01-23 open import Common.Equality open import Common.Product data Bool : Set where true false : Bool f : (x y : Bool) → Bool f true y = y -- f false x = true -- Missing case test : let X : Bool → Bool → Bool X = {! f !} in (∀{x y} → X (f false x) y ≡ y) × (X fals...
{ "alphanum_fraction": 0.606741573, "avg_line_length": 21.1904761905, "ext": "agda", "hexsha": "02c3a20fd7799c36b0a33e9d685b0d0d470aa20d", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03...
open import Prelude hiding (lift; id) module Implicits.Syntax.LNMetaType where open import Implicits.Syntax.Type open import Data.Nat as Nat mutual data MetaSType (m : ℕ) : Set where tvar : ℕ → MetaSType m mvar : Fin m → MetaSType m _→'_ : (a b : MetaType m) → MetaSType m tc : ℕ → MetaSType m ...
{ "alphanum_fraction": 0.5551992671, "avg_line_length": 34.6507936508, "ext": "agda", "hexsha": "8ef70e007ce91a270562c45ba54db41d5a5fc2e8", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --safe #-} module Cubical.Experiments.HAEquivInt where open import Cubical.Experiments.HAEquivInt.Base public
{ "alphanum_fraction": 0.7903225806, "avg_line_length": 20.6666666667, "ext": "agda", "hexsha": "819a03aac3ca75a338b679bf8e29f0f5f39bf804", "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...
----------------------------------------------------------------------- -- The Agda standard library -- -- Properties of the heterogeneous sublist relation ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.List.Relation.Binary.Sublist.Heterogeneous...
{ "alphanum_fraction": 0.5140529532, "avg_line_length": 39.7800925926, "ext": "agda", "hexsha": "e58d46657b7d4c3f11d703353331f6b725e5b0cf", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Tactic.Nat.Subtract.Exp where open import Prelude open import Tactic.Nat.Exp open import Tactic.Nat.NF open import Container.Bag open import Data.TreeRep infixl 6 _⟨+⟩_ _⟨-⟩_ infixl 7 _⟨*⟩_ data SubExp : Set where var : (x : Var) → SubExp lit : (n : Nat) → SubExp _⟨+⟩_ _⟨-⟩_ _⟨*⟩_ : (a b : SubExp) → Su...
{ "alphanum_fraction": 0.5061349693, "avg_line_length": 25.7368421053, "ext": "agda", "hexsha": "6394b1bde4dceb7fb8fe8e87c0502d06feb2d9ce", "lang": "Agda", "max_forks_count": 24, "max_forks_repo_forks_event_max_datetime": "2021-04-22T06:10:41.000Z", "max_forks_repo_forks_event_min_datetime": "2015-03-12...
postulate @0 A : Set _ : @0 Set → (Set → Set) → Set _ = λ @0 where A G → G A
{ "alphanum_fraction": 0.487804878, "avg_line_length": 11.7142857143, "ext": "agda", "hexsha": "715c22c00982f7df75f569a128c48d590c9bba2b", "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...
-- New NO_POSITIVITY_CHECK pragma for data definitions and mutual -- blocks -- Skipping a single data definition. {-# NO_POSITIVITY_CHECK #-} data D : Set where lam : (D → D) → D
{ "alphanum_fraction": 0.7032967033, "avg_line_length": 22.75, "ext": "agda", "hexsha": "03f778c25227b2704c20d7240576f207fc049d22", "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:...
import Agda.Builtin.Nat as Nat public f : let open Nat public in Nat → Nat f x = x
{ "alphanum_fraction": 0.7023809524, "avg_line_length": 16.8, "ext": "agda", "hexsha": "24d37d225a982f0b8185a7a17533b3ef3e328fe3", "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 #-} module sets.nat.properties where open import equality.core open import equality.calculus open import equality.reasoning open import function.isomorphism.core open import sets.nat.core open import sets.empty +-left-unit : ∀ n → 0 + n ≡ n +-left-unit n = refl +-right-unit : ∀ n → n + 0 ≡ n ...
{ "alphanum_fraction": 0.5077628793, "avg_line_length": 25.7636363636, "ext": "agda", "hexsha": "bcbcdbff0d0819e8636415eeb79e3ceae227ec22", "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...
{-# OPTIONS --without-K --safe #-} module Categories.Category.Monoidal.Structure where open import Level open import Categories.Category open import Categories.Category.Monoidal.Core record MonoidalCategory o ℓ e : Set (suc (o ⊔ ℓ ⊔ e)) where field U : Category o ℓ e monoidal : Monoidal U module...
{ "alphanum_fraction": 0.7149758454, "avg_line_length": 20.7, "ext": "agda", "hexsha": "ac815f46ce1aeb841dbc7e6ab09da3365a9519b5", "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....
-- Andreas, 2019-07-23, issue #3932 -- -- Mutual blocks are not supported in mutual blocks module _ where module M where mutual A : Set1 A = Set mutual B : Set1 B = A module N where mutual A : Set1 A = Set mutual A = Set module O where mutual A : Set1 mu...
{ "alphanum_fraction": 0.6170940171, "avg_line_length": 13.6046511628, "ext": "agda", "hexsha": "3ebeb45f80dd0e368061d977d53ab35b5b4a8209", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
-- Andreas, 2021-11-19, issue #5657 reported by J Barrett -- Regression in 2.6.2: internal error instead of error message record R : Set₁ where field A : Set postulate r : R open R r fail : Set fail = r .A -- WAS: -- An internal error has occurred. Please report this as a bug. -- Location of the error: __IMPOSSIB...
{ "alphanum_fraction": 0.7225433526, "avg_line_length": 25.95, "ext": "agda", "hexsha": "d437e38e60805a17bc6738725eef67da7da8c01f", "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:...
{- Day 3 input -} module a3-input where open import Data.Nat open import Data.List hiding (lookup;allFin) renaming (map to mapList) open import Data.Vec input : List (Vec ℕ 12) input = (0 ∷ 0 ∷ 0 ∷ 1 ∷ 1 ∷ 1 ∷ 1 ∷ 1 ∷ 1 ∷ 0 ∷ 0 ∷ 1 ∷ []) ∷ (1 ∷ 1 ∷ 1 ∷ 0 ∷ 1 ∷ 1 ∷ 1 ∷ 1 ∷ 0 ∷ 1 ∷ ...
{ "alphanum_fraction": 0.1753800358, "avg_line_length": 68.2485207101, "ext": "agda", "hexsha": "88143783e34bb30388c0e8712062ac7d2831dec6", "lang": "Agda", "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 Generic.Function.Elim where open import Generic.Core AllAny : ∀ {ι α β γ δ} {I : Set ι} {A : Set α} {C : I -> Set γ} -> (B : I -> A -> Set β) -> (∀ x -> (∀ {j} -> B j x -> C j) -> Set δ) -> (xs : List A) -> (∀ {j} -> Any (B j) xs -> C j) -> Set δ AllAny B D [] k = ⊤...
{ "alphanum_fraction": 0.3941212999, "avg_line_length": 41.6465517241, "ext": "agda", "hexsha": "eeea1bb5c941c7f548371e74fe2ca7585d639295", "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-17T...
{-# OPTIONS --without-K #-} open import lib.Base open import lib.PathGroupoid open import lib.PathFunctor open import lib.NType module lib.Equivalences where {- We use the half-adjoint definition of equivalences (but this fact should be invisible to the user of the library). The constructor of the type of equivalenc...
{ "alphanum_fraction": 0.4231275792, "avg_line_length": 40.9676258993, "ext": "agda", "hexsha": "ce0eabb334f2da7ca9ccbfe64af6cc8cc33aefad", "lang": "Agda", "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...