text
string
meta
dict
module Sets.IterativeSet.Relator where import Lvl open import Logic.Propositional open import Logic.Predicate open import Numeral.Natural open import Sets.IterativeSet open import Syntax.Function open import Type module _ where private variable {ℓ ℓ₁ ℓ₂} : Lvl.Level private variable {A B} : Iset{ℓ} open Is...
{ "alphanum_fraction": 0.6334693878, "avg_line_length": 29.1666666667, "ext": "agda", "hexsha": "f08f12a7a217f69bafee8b9bc66130f9a14e0008", "lang": "Agda", "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 SizedIO.Object where open import Data.Product record Interface : Set₁ where field Method : Set Result : (m : Method) → Set open Interface public -- A simple object just returns for a method the response -- and the object itself record Object (i : Interface) : Set where coinductive field ob...
{ "alphanum_fraction": 0.6548672566, "avg_line_length": 19.652173913, "ext": "agda", "hexsha": "2882d3943169078ea7330b332b9d02fa1a8589a0", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:41:00.000Z", "max_forks_repo_forks_event_min_datetime": "2018-09-01T1...
A : Set B : Set₁ B = Set C : Set
{ "alphanum_fraction": 0.4857142857, "avg_line_length": 5, "ext": "agda", "hexsha": "9d2c7e45adb0f338e9a5dcad041d0c3c33d72bc7", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:08.0...
-- Andreas, AIM XXIII, 2016-04-26 flight EDI-GOT home -- {-# OPTIONS -v impossible:10 #-} -- Parameter arguments of overloaded projection applications -- should not be skipped! record R A : Set where field f : A open R record S A : Set where field f : A open S module _ (A B : Set) (a : A) where r : R A f ...
{ "alphanum_fraction": 0.6041131105, "avg_line_length": 15.56, "ext": "agda", "hexsha": "cde49fe14cffe540e0811e4d76c653ff3518c2ef", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-03-05T20:02:38.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-05T20:02:38...
-- Andreas, 2011-10-03 {-# OPTIONS --experimental-irrelevance #-} module MatchOnIrrelevantData1 where data Nat : Set where zero : Nat suc : Nat -> Nat -- the index does not determine the constructor data Fin : Nat -> Set where zero : (n : Nat) -> Fin (suc n) suc : (n : Nat) -> Fin n -> Fin (suc n) -- shou...
{ "alphanum_fraction": 0.6348623853, "avg_line_length": 24.7727272727, "ext": "agda", "hexsha": "f161a8c28bffb42814225b3499faed73dadd65e6", "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 Ints.Add.Comm where open import Ints open import Nats.Add.Comm open import Equality ------------------------------------------------------------------------ -- internal stuffs private a+b=b+a : ∀ a b → a + b ≡ b + a a+b=b+a (+ a) (+ b) = + (a :+: b) ≡⟨ cong +_ (nat-add-comm a b) ⟩ + (b :+: a) QED ...
{ "alphanum_fraction": 0.4, "avg_line_length": 24.1071428571, "ext": "agda", "hexsha": "24259fb94f3a3fde5ba42e57d6df4fbf89ba576f", "lang": "Agda", "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...
-- 2010-09-07 Andreas -- 2011-10-04 may not work even in the presence of experimental irr. {-# OPTIONS --experimental-irrelevance #-} module SplitOnIrrelevant where data Bool : Set where true false : Bool not : .Bool -> Bool not true = false -- needs to fail not false = true
{ "alphanum_fraction": 0.7117437722, "avg_line_length": 23.4166666667, "ext": "agda", "hexsha": "18a798bc9d9a243ea3d9fa7e6ebf5235cad9a238", "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 --cubical --safe #-} module Cubical.Algebra.BasicProp where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Foundations.HLevels open import Cubical.Data.Sigma open import Cubical.Structures.Group private variable ℓ ℓ' : Level --------------------...
{ "alphanum_fraction": 0.3027681661, "avg_line_length": 38.9662921348, "ext": "agda", "hexsha": "804248b8d8ddcbe8369c448ea30f20e459140352", "lang": "Agda", "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 overloading where -- An overloading system based on instance arguments. See `overloading.core` for -- more details and documentation. open import overloading.bundle public open import overloading.core public open import overloading.level public
{ "alphanum_fraction": 0.7915194346, "avg_line_length": 25.7272727273, "ext": "agda", "hexsha": "5b5b3ba7afee200ee70551a0ac6c5f8cc569e56c", "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...
-- Raw terms, weakening (renaming) and substitution. {-# OPTIONS --without-K --safe #-} module Definition.Untyped where open import Tools.Fin open import Tools.Nat open import Tools.Product open import Tools.List import Tools.PropositionalEquality as PE infixl 30 _∙_ infix 30 Π_▹_ infixr 22 _▹▹_ infix 30 Σ_▹_ infi...
{ "alphanum_fraction": 0.5697226502, "avg_line_length": 26.9015544041, "ext": "agda", "hexsha": "b8658d985f26d897f85d7c88527a22ffde1c711d", "lang": "Agda", "max_forks_count": 8, "max_forks_repo_forks_event_max_datetime": "2021-11-27T15:58:33.000Z", "max_forks_repo_forks_event_min_datetime": "2017-10-18T...
module A.Issue1635 (A : Set₁) where data Foo : Set where foo : Foo
{ "alphanum_fraction": 0.661971831, "avg_line_length": 11.8333333333, "ext": "agda", "hexsha": "d672e39013eba47b178961db3741389c840655fe", "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 _ where import Agda.Builtin.Equality open import Agda.Builtin.Sigma open import Agda.Builtin.Unit open import Agda.Primitive open import Common.IO data ⊥ : Set where record R₁ a : Set (lsuc a) where field R : {A : Set a} → A → A → Set a r : {A : Set a} (x : A) → R x x P : Set a → Set a P A = (x...
{ "alphanum_fraction": 0.5338114754, "avg_line_length": 17.7454545455, "ext": "agda", "hexsha": "a0cd97c142725e09ae2d31bbcae32e057a06271c", "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 kripke-semantics where open import level open import bool open import closures open import empty open import eq open import level open import list open import list-thms open import nat open import product open import relations open import string open import sum open import unit data formula : Set where $ : s...
{ "alphanum_fraction": 0.5370456303, "avg_line_length": 29.5205479452, "ext": "agda", "hexsha": "cab35fbc27b7b94309b54cf43dc48f9082c1c2f3", "lang": "Agda", "max_forks_count": 17, "max_forks_repo_forks_event_max_datetime": "2021-11-28T20:13:21.000Z", "max_forks_repo_forks_event_min_datetime": "2018-12-03...
{-# OPTIONS --without-K #-} open import HoTT hiding (_::_) module algebra.DecidableFreeGroupIsReducedWord {i} (A : Type i) (dec : has-dec-eq A) where open import algebra.Word A open import algebra.ReducedWord A dec -- Some helper functions. tail-is-reduced : (x : A) (w : Word) → is-reduced (x :: w) → is-re...
{ "alphanum_fraction": 0.5293969533, "avg_line_length": 44.6235955056, "ext": "agda", "hexsha": "d7ca5b7d08fc947b3a51143a32a50c6f49b93aa7", "lang": "Agda", "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 GotoDefinition where data ℕ : Set where Z : ℕ S : ℕ → ℕ _+_ : ℕ → ℕ → ℕ x + y = {! !}
{ "alphanum_fraction": 0.5050505051, "avg_line_length": 14.1428571429, "ext": "agda", "hexsha": "43238f6610951cbe639a7b8863bd9e148a7f45c0", "lang": "Agda", "max_forks_count": 22, "max_forks_repo_forks_event_max_datetime": "2022-03-15T11:37:47.000Z", "max_forks_repo_forks_event_min_datetime": "2020-05-29...
{-# OPTIONS --no-unicode #-} module Issue2937.NoUnicode where foo : _ -> _ -> Set foo bar x = \x -> foo (bar x {!!}) x
{ "alphanum_fraction": 0.5702479339, "avg_line_length": 17.2857142857, "ext": "agda", "hexsha": "ed4456a7e9ba1cb761cbc51579256e770a778fb3", "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...
-- Possible improvements: -- * Parts of the code are not reachable from main. -- * The following primitives are not used at all: primPOr, primComp, -- primHComp, prim^glueU and prim^unglueU. {-# OPTIONS --erased-cubical --save-metas #-} -- The code from Agda.Builtin.Cubical.Glue should not be compiled. open import...
{ "alphanum_fraction": 0.5359901143, "avg_line_length": 23.2877697842, "ext": "agda", "hexsha": "b6a174dd36ee1d85873a81d9e88e8dcbe918cd40", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --prop --rewriting #-} module Examples.Gcd.Euclid where open import Calf.CostMonoid import Calf.CostMonoids as CM {- This file defines the parameters of the analysis of Euclid's algorithm for gcd and its cost recurrence relation. -} open import Calf CM.ℕ-CostMonoid open import Calf.Types.Nat open impo...
{ "alphanum_fraction": 0.5424143556, "avg_line_length": 36.78, "ext": "agda", "hexsha": "1bb26fd9736409da86a171d2c015390676f88ce7", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-01-29T08:12:01.000Z", "max_forks_repo_forks_event_min_datetime": "2021-10-06T10:28:24...
data Bin : Set where ⟨⟩ : Bin _O : Bin → Bin _I : Bin → Bin inc : Bin → Bin inc n = ?
{ "alphanum_fraction": 0.5053763441, "avg_line_length": 11.625, "ext": "agda", "hexsha": "d94e123e6ea790d06c12ce15ca142d6abe18a852", "lang": "Agda", "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 Generic where import Category.Functor import Category.Monad open import Data.List using (List ; length ; replicate) renaming ([] to []L ; _∷_ to _∷L_) open import Data.Maybe using (Maybe ; just ; nothing) renaming (setoid to MaybeEq) open import Data.Nat using (ℕ ; zero ; suc) open import Data.Product using (_×...
{ "alphanum_fraction": 0.6013179572, "avg_line_length": 42.8470588235, "ext": "agda", "hexsha": "9f1172db868b626d799e90b0a0ad87d659a6cadd", "lang": "Agda", "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...
-- WARNING: This file was generated automatically by Vehicle -- and should not be modified manually! -- Metadata -- - Agda version: 2.6.2 -- - AISEC version: 0.1.0.1 -- - Time generated: ??? {-# OPTIONS --allow-exec #-} open import Vehicle open import Vehicle.Data.Tensor open import Data.Product open import Data.I...
{ "alphanum_fraction": 0.689608637, "avg_line_length": 28.5, "ext": "agda", "hexsha": "5e08f17255e7c09dfd22a05adc344f78c12712ac", "lang": "Agda", "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": "25...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Algebra.Group.Higher where open import Cubical.Core.Everything open import Cubical.Data.Nat open import Cubical.Data.Sigma open import Cubical.Data.Unit open import Cubical.Foundations.HLevels open import Cubical.Foundations.Prelude hiding (comp) open...
{ "alphanum_fraction": 0.5333333333, "avg_line_length": 39.0718562874, "ext": "agda", "hexsha": "146ba1dc72a88ff88b560099811c57866cd88426", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Type.Properties.MereProposition {ℓ ℓₑ} where import Lvl open import Lang.Instance open import Structure.Setoid open import Type -- A type is a mere proposition type when there is at most one inhabitant (there is at most one object with this type). -- In other words: If there is an inhabitant of type T, it...
{ "alphanum_fraction": 0.7160589604, "avg_line_length": 51.56, "ext": "agda", "hexsha": "ffd712aea25936fa3c7eaa10c865d1bd38485b52", "lang": "Agda", "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 --sized-types #-} open import Relation.Binary.Core module SelectSort.Correctness.Permutation {A : Set} (_≤_ : A → A → Set) (tot≤ : Total _≤_ ) where open import Data.List open import Data.Product open import Data.Sum open import List.Permutation.Base A open import List....
{ "alphanum_fraction": 0.643572621, "avg_line_length": 37.4375, "ext": "agda", "hexsha": "9e5ee691834dba882a4c688cbc80ffd96d7ab3b0", "lang": "Agda", "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": ...
import Structure.Logic.Classical.NaturalDeduction -- TODO: Seems like Constructive does not work, but why? module Structure.Logic.Constructive.Syntax.Algebra {ℓₗ} {Formula} {ℓₘₗ} {Proof} {ℓₒ} {Domain} ⦃ classicalLogic : _ ⦄ where open Structure.Logic.Classical.NaturalDeduction.ClassicalLogic {ℓₗ} {Formula} {ℓₘₗ} ...
{ "alphanum_fraction": 0.6432848589, "avg_line_length": 37.7096774194, "ext": "agda", "hexsha": "eef4401c8921f3a9552738b58f9a061a3f83c5ef", "lang": "Agda", "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.Functor.Hom where -- The Hom Functor from C.op × C to Setoids, -- the two 1-argument version fixing one object -- and some notation for the version where the category must be made explicit open import Data.Product open import Function using () renaming (_∘_ to _∙_)...
{ "alphanum_fraction": 0.4754202347, "avg_line_length": 35.0333333333, "ext": "agda", "hexsha": "d7271b5b4fb8529e3073c8f1182c4c2966bd9421", "lang": "Agda", "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 Quasigroup where open import Quasigroup.Bundles public open import Quasigroup.Definitions public open import Quasigroup.Structures public
{ "alphanum_fraction": 0.8021978022, "avg_line_length": 22.75, "ext": "agda", "hexsha": "49df12417026ea72cfd6eb0e237c5951c999a30a", "lang": "Agda", "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": "...
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9. Copyright (c) 2021, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl -} open import LibraBFT.Base.Types import LibraBFT.Impl.Consensus.Consensus...
{ "alphanum_fraction": 0.6523620627, "avg_line_length": 45.4590163934, "ext": "agda", "hexsha": "19cb581494bdcb594c7b4d11afe0ad2ae69b6342", "lang": "Agda", "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 #-} {- This file defines deltaIntSec : ∀ b → toInt (fromInt b) ≡ b succPred : ∀ n → succ (pred n) ≡ n predSucc : ∀ n → pred (succ n) ≡ n and proved DeltaInt ≡ DeltaInt by the above functions succPredEq : DeltaInt ≡ DeltaInt along with some interval-relevant lemmas c...
{ "alphanum_fraction": 0.6669319538, "avg_line_length": 28.8850574713, "ext": "agda", "hexsha": "d223ed2796a249beb01b4bb414ed02a15389979a", "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...
-- Andreas, 2017-03-08 -- Impredicative data types are incompatible with structural recursion -- (Coquand, Pattern Matching with Dependent Types, 1992) {-# OPTIONS --type-in-type #-} data ⊥ : Set where -- An impredicative data type data D : Set where c : (f : (A : Set) → A → A) → D -- Structural recursion with ...
{ "alphanum_fraction": 0.6637630662, "avg_line_length": 21.2592592593, "ext": "agda", "hexsha": "cd2a325fc66a4196f349b76e848700b66b961f5b", "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...
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9. Copyright (c) 2020 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 Optics.All open import Libra...
{ "alphanum_fraction": 0.7915287889, "avg_line_length": 37.775, "ext": "agda", "hexsha": "d7f6764c727333e70c95c403203f73e5dbfad945", "lang": "Agda", "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 module CanThetaContinuation contains the continuation-passing variant of Canθ, which is used as a tool to simplify Canθ-Can expressions. The lemmas are mainly about the function Canθ' defined by the equation unfold : ∀ sigs S'' p θ → Canθ sigs S'' p θ ≡ Canθ' sigs S'' (Can p) θ The main property...
{ "alphanum_fraction": 0.533453726, "avg_line_length": 57.218616567, "ext": "agda", "hexsha": "cb25daa96908fe0feac180d21db72a56391b45e8", "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-15T20...
module Structure.Relator.Apartness where import Lvl open import Logic open import Logic.Propositional open import Structure.Relator.Properties hiding (irreflexivity ; symmetry ; cotransitivity) open import Type private variable ℓ₁ ℓ₂ : Lvl.Level -- An apartness relation is a irreflexive, symmetric and cotrans...
{ "alphanum_fraction": 0.7214170692, "avg_line_length": 32.6842105263, "ext": "agda", "hexsha": "4c0e14df27686c2422263276ee632222b7d8a3a5", "lang": "Agda", "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 Issue852 where open import Common.Level const : ∀ {a b} {A : Set a} {B : Set b} → A → B → A const x = λ _ → x ℓ : Level ℓ = const lzero (Set ℓ) ℓ′ : Level ℓ′ = const lzero (Set ℓ′) -- Error message using Agda 2.3.2 (the batch-mode command, not the -- Emacs interface): -- -- Termination checking failed for...
{ "alphanum_fraction": 0.5428571429, "avg_line_length": 19, "ext": "agda", "hexsha": "715ff74b94a5da700bf231bff52a773a488d6b20", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-12T11:35:18.00...
open import IO using ( run ; putStrLn ) open import Data.String using ( _++_ ) open import Data.Natural using ( # ; _+_ ; toString ) module Data.Bindings.Examples.HelloFour where main = run (putStrLn ("Hello, " ++ toString (#(2) + #(2)) ++ "."))
{ "alphanum_fraction": 0.6518218623, "avg_line_length": 35.2857142857, "ext": "agda", "hexsha": "4f515aacb5164a7b9fd42c049d9520aa32c7aed8", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:40:14.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-12T...
-- Import all the material (useful to check that everything typechecks) {-# OPTIONS --cubical #-} module Everything where import Warmup import Part1 import Part2 import Part3 import Part4 import ExerciseSession1 import ExerciseSession2 import ExerciseSession3
{ "alphanum_fraction": 0.8199233716, "avg_line_length": 20.0769230769, "ext": "agda", "hexsha": "60ffe71eebbf5870e0bc0cac4b4e206c44bbc939", "lang": "Agda", "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 cw.CW module cw.examples.Unit where cw-unit-skel : Skeleton {lzero} 0 cw-unit-skel = Unit , Unit-is-set CWUnit = ⟦ cw-unit-skel ⟧ CWUnit-equiv-Unit : CWUnit ≃ Unit CWUnit-equiv-Unit = ide _
{ "alphanum_fraction": 0.6996197719, "avg_line_length": 18.7857142857, "ext": "agda", "hexsha": "15cf4335f00955082b1e90d6ad79210f378b61bc", "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 --cubical --no-import-sorts --safe #-} module Cubical.DStructures.Structures.ReflGraph 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.Structure open impo...
{ "alphanum_fraction": 0.5354931903, "avg_line_length": 32.7432432432, "ext": "agda", "hexsha": "0bd8d8bab6d69824c787510726b0ed9181ac50bc", "lang": "Agda", "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 -- -- Floating point numbers ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Float where ------------------------------------------------------...
{ "alphanum_fraction": 0.4079207921, "avg_line_length": 31.5625, "ext": "agda", "hexsha": "dfd189623a5c0576f77442754a644a79e7b9e8bb", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-04T06:54:...
{-# OPTIONS --without-K --exact-split #-} module 1-type-theory where import 00-preamble open 00-preamble public -- Exercise 1.1 (From ../02-pi.agda) _∘-1-1_ : {i j k : Level} {A : UU i} {B : UU j} {C : UU k} → (B → C) → ((A → B) → (A → C)) (g ∘-1-1 f) a = g (f a) import 04-inductive-types open 04-inductive-type...
{ "alphanum_fraction": 0.5160532498, "avg_line_length": 26.6041666667, "ext": "agda", "hexsha": "2348ff954ff9791a18a3e73feb7b8fd739c84b7b", "lang": "Agda", "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 #-} module Categories.Lan where open import Level open import Categories.Category open import Categories.Functor hiding (_≡_) open import Categories.NaturalTransformation record Lan {o₀ ℓ₀ e₀} {o₁ ℓ₁ e₁} {o₂ ℓ₂ e₂} {A : Category o₀ ℓ₀ e₀} {B : Category o₁ ℓ₁ e₁} {C : Ca...
{ "alphanum_fraction": 0.5955967555, "avg_line_length": 41.0952380952, "ext": "agda", "hexsha": "59156249d15f2b8fefa2bfb9520215d6565520a1", "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...
open import FRP.JS.Bool using ( Bool ; not ) open import FRP.JS.Event using ( Evt ; accumBy ) open import FRP.JS.RSet using ( RSet ; _⇒_ ; ⟦_⟧ ; ⟨_⟩ ) module FRP.JS.Behaviour where postulate Beh : RSet → RSet map : ∀ {A B} → ⟦ A ⇒ B ⟧ → ⟦ Beh A ⇒ Beh B ⟧ map2 : ∀ {A B C} → ⟦ A ⇒ B ⇒ C ⟧ → ⟦ Beh A ⇒ Beh B ⇒ Beh ...
{ "alphanum_fraction": 0.5398351648, "avg_line_length": 33.0909090909, "ext": "agda", "hexsha": "538ff1bd41f5ae03c10f836413e5f1943322c3e5", "lang": "Agda", "max_forks_count": 7, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:39:38.000Z", "max_forks_repo_forks_event_min_datetime": "2016-11-07T...
module Records where open import Common.Nat open import Common.IO open import Common.Unit record Test : Set where constructor mkTest field a b c : Nat f : Test -> Nat f (mkTest a b c) = a + b + c open Test g : Nat g = (f (mkTest 34 12 54)) + (f (record {a = 100; b = 120; c = 140})) + a m + b m + c m wher...
{ "alphanum_fraction": 0.6253298153, "avg_line_length": 16.4782608696, "ext": "agda", "hexsha": "07bf7bb0186578ce8e71a679894f1ebaacd08f10", "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...
------------------------------------------------------------------------ -- A depth-first backend ------------------------------------------------------------------------ -- Based on the parser combinators in Wadler's "How to Replace Failure -- by a List of Successes". module StructurallyRecursiveDescentParsing.Depth...
{ "alphanum_fraction": 0.5138091332, "avg_line_length": 35.8529411765, "ext": "agda", "hexsha": "aa24259155412ec0a14dd2d9b9f847270d07c0b1", "lang": "Agda", "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...
------------------------------------------------------------------------------ -- Arithmetic properties using instances of the induction principle ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPT...
{ "alphanum_fraction": 0.4451631046, "avg_line_length": 32.036036036, "ext": "agda", "hexsha": "993adf66f26973cfa4e8dfbc87995408c8ba7018", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-19T1...
postulate A : Set data B (a : A) : Set where conB : B a → B a → B a data C (a : A) : B a → Set where conC : {bl br : B a} → C a bl → C a br → C a (conB bl br) -- Second bug, likely same as first bug. {- An internal error has occurred. Please report this as a bug. Location of the error: src/full/Agda/TypeChecki...
{ "alphanum_fraction": 0.5845824411, "avg_line_length": 22.2380952381, "ext": "agda", "hexsha": "b2f84a080ea6f061d0ade4bdaf8a423fee815d7b", "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...
------------------------------------------------------------------------ -- CCS ------------------------------------------------------------------------ {-# OPTIONS --sized-types #-} open import Prelude module Labelled-transition-system.CCS {ℓ} (Name : Type ℓ) where open import Equality.Propositional open import Pr...
{ "alphanum_fraction": 0.4622649257, "avg_line_length": 38.6571428571, "ext": "agda", "hexsha": "8e718d4bb592630b00295c64709304d652276771", "lang": "Agda", "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...
True : Prop True = {P : Prop} → P → P
{ "alphanum_fraction": 0.4871794872, "avg_line_length": 9.75, "ext": "agda", "hexsha": "a87e9164bb532439488fa9fe842954046f53f0b0", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "6...
{-# OPTIONS --keep-pattern-variables #-} open import Agda.Builtin.Nat open import Agda.Builtin.Equality test₁ : (m : Nat) → m ≡ 0 → Set test₁ m eq = {!eq!} test₂ : (A B : Set) → A ≡ B → Set test₂ A B eq = {!eq!}
{ "alphanum_fraction": 0.6046511628, "avg_line_length": 19.5454545455, "ext": "agda", "hexsha": "3f05e1e50f1cafb0b6a2ee978845f800e69587c2", "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 Logic where data Bool : Set where true : Bool false : Bool _∧_ : Bool → Bool → Bool false ∧ _ = false true ∧ b = b _∨_ : Bool → Bool → Bool true ∨ _ = true false ∨ b = b
{ "alphanum_fraction": 0.5945945946, "avg_line_length": 14.2307692308, "ext": "agda", "hexsha": "9389874d479931e16b98b09fdabdb0210eb795d1", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --allow-unsolved-metas #-} {-# OPTIONS --rewriting #-} module CBVNTranslations where open import Library open import Polarized -- Intuitionistic propositional logic data IPL : Set where Atom : (P : Atoms) → IPL True False : IPL _∨_ _∧_ _⇒_ : (A B : IPL) → IPL module CallByName where _⁻...
{ "alphanum_fraction": 0.4461634957, "avg_line_length": 27.1761363636, "ext": "agda", "hexsha": "ecdf502608b084fb559cd5a5b05f71c0dc0ce387", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2021-02-25T20:39:03.000Z", "max_forks_repo_forks_event_min_datetime": "2018-11-13T...
module UniDB.Morph.SubsPrime where open import UniDB.Spec open import Function open import Data.Product -------------------------------------------------------------------------------- mutual data Subs* (T : STX) : MOR where refl : {γ : Dom} → Subs* T γ γ incl : {γ₁ γ₂ : Dom} (ξ : Subs+ T γ₁ γ₂) → Subs* T...
{ "alphanum_fraction": 0.4471086037, "avg_line_length": 31.5111111111, "ext": "agda", "hexsha": "d78e0b7214b6ad6b69e9b651f3468c99781478c1", "lang": "Agda", "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...
------------------------------------------------------------------------ -- Brzozowski-style derivatives of parsers ------------------------------------------------------------------------ module TotalParserCombinators.Derivative.Definition where open import Category.Monad open import Codata.Musical.Notation open imp...
{ "alphanum_fraction": 0.4835414302, "avg_line_length": 37.7571428571, "ext": "agda", "hexsha": "a5dd882f6be7b790150fe7022feb69b146eaf417", "lang": "Agda", "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 #-} module Categories.Cone where open import Level open import Relation.Binary using (IsEquivalence; Setoid; module Setoid) open import Categories.Support.PropositionalEquality open import Categories.Category open import Categories.Functor hiding (_≡_; _∘_) module ConeOver {o ℓ e...
{ "alphanum_fraction": 0.5425898572, "avg_line_length": 33.0243902439, "ext": "agda", "hexsha": "ecd97f6f91c0f72422e59b8875f1afb41614b142", "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 --without-K --rewriting #-} open import lib.Basics open import lib.types.Empty open import lib.types.Group open import lib.types.Word open import lib.groups.GeneratedGroup open import lib.groups.Homomorphism module lib.groups.FreeGroup where module FreeGroup {i} (A : Type i) where private module G...
{ "alphanum_fraction": 0.6891252955, "avg_line_length": 23.5, "ext": "agda", "hexsha": "ceaa2d4f7f22b89f6925c873bbf2701d462a32c1", "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-10T01:48:08...
{-# OPTIONS --without-K --rewriting #-} open import lib.Basics open import lib.NConnected open import lib.NType2 open import lib.types.Span open import lib.types.Pointed open import lib.types.Pushout open import lib.types.PushoutFlip open import lib.types.PushoutFmap open import lib.types.PushoutFlattening open import...
{ "alphanum_fraction": 0.5379991986, "avg_line_length": 31.3263598326, "ext": "agda", "hexsha": "5142ec469c87002723df912c6587f905be90a97b", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
-- {-# OPTIONS -v tc.meta:25 #-} module Issue418 where data _≡_ (A : Set₁) : Set₁ → Set₂ where refl : A ≡ A abstract A : Set₁ A = Set unfold-A : A ≡ _ unfold-A = refl -- I don't think we should solve the meta-variable corresponding to -- the underscore above. We have two obvious choices, A and Set, and -...
{ "alphanum_fraction": 0.6674584323, "avg_line_length": 19.1363636364, "ext": "agda", "hexsha": "be84ed9c249980d845f8f677b79e7ab712027f39", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-12T...
module _ where id : (A B : Set₁) → (A → B) → A → B id _ _ f = f postulate P : (A : Set₁) → A → Set₁ cong : (A B : Set₁) (f : A → B) (x : A) → P A x → P B (f x) A : Set record R₀ (B : Set) : Set₁ where constructor mkR₀ no-eta-equality field proj₁ : Set proj₂ : B record R₁ (_ : Set) : Set₁ ...
{ "alphanum_fraction": 0.5231884058, "avg_line_length": 16.8292682927, "ext": "agda", "hexsha": "5e5a1b526cc2f95965bb3188f1cba506ec7d8c2f", "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...
-- Jesper, 2018-12-04, Issue #3431 reported by François Thiré on the -- Agda mailing list -- (https://lists.chalmers.se/pipermail/agda/2018/010686.html) -- The instance of the Reduce typeclass for pairs did not have an -- implementation for reduceB' (only reduce'), which made it default -- to the standard implementati...
{ "alphanum_fraction": 0.5763688761, "avg_line_length": 28.9166666667, "ext": "agda", "hexsha": "4ca84cbad7825149ec1cf8921b2447dd3f3f8a72", "lang": "Agda", "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.Builtin.Equality open import Agda.Builtin.List open import Agda.Builtin.Reflection renaming (bindTC to _>>=_) open import Agda.Builtin.Unit macro pickWhatever : Term → TC ⊤ pickWhatever hole@(meta m _) = do (cand ∷ _) ← getInstances m where [] -> typeError (strErr "No candidates!" ∷ [])...
{ "alphanum_fraction": 0.700814901, "avg_line_length": 22.6052631579, "ext": "agda", "hexsha": "29ad36c147b08777a364afdfda6bd8cdb3f1172b", "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 Definitions where data ℕ : Set where zero : ℕ suc : (n : ℕ) → ℕ data _≡_ (x : ℕ) : ℕ → Set where refl : x ≡ x data _≢_ : ℕ → ℕ → Set where z≢s : ∀ {n} → zero ≢ suc n s≢z : ∀ {n} → suc n ≢ zero s≢s : ∀ {m n} → m ≢ n → suc m ≢ suc n data Equal? (m n : ℕ) : Set where yes : m ≡ n → Equal? m n no...
{ "alphanum_fraction": 0.4848484848, "avg_line_length": 18.15, "ext": "agda", "hexsha": "dd49f1bd3528e36eb876e291eb75c01ec8e44207", "lang": "Agda", "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 STLC where open import Data.Nat open import Data.Empty open import Relation.Binary.PropositionalEquality -- infix 4 _⊢_ -- infix 4 _∋_∶_ -- infixl 5 _,_ infixr 7 _⟶_ infix 5 ƛ_ infixl 7 _∙_ -- infix 9 `_ infixl 10 _∶_ -- infix 5 μ_ -- infix 8 `suc_ -- infix 9 S_ -- infix 9 #_ data Type : Set whe...
{ "alphanum_fraction": 0.4162936437, "avg_line_length": 16.071942446, "ext": "agda", "hexsha": "dc3f7dcc30133c17d5f5bd3a44e5346d93748f04", "lang": "Agda", "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 --experimental-lossy-unification #-} module Cubical.Categories.Instances.CommAlgebras where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Function open import Cubical.Foundations.Powerset open import Cubical.Foundations.HLevels open import Cubical.Data.Unit open import Cub...
{ "alphanum_fraction": 0.5695891297, "avg_line_length": 42.2267759563, "ext": "agda", "hexsha": "8bb81ec3ecebf8f700ef721dcfd188c669016e35", "lang": "Agda", "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 HT where open import Prelude open import T open import SubstTheory open import DynTheory module HT where ---- Halting and Hereditary Termination -- An old comment about lhs-halt -- Mostly for fun, I didn't want to include "and it halts" as part -- of the definition of HT for arrows, and I didn't wan...
{ "alphanum_fraction": 0.6106645756, "avg_line_length": 43.2288135593, "ext": "agda", "hexsha": "1ef8de03687edac624c588746be8e8fe7858aa93", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2021-05-04T22:37:18.000Z", "max_forks_repo_forks_event_min_datetime": "2015-04-26T...
{-# OPTIONS --copatterns --sized-types #-} module Copatterns where open import Size record Stream {i : Size} (A : Set) : Set where coinductive constructor _::_ field head : A tail : {j : Size< i} -> Stream {j} A open Stream map : ∀ {i A B} (f : A -> B) -> (s : Stream {i} A) -> Stream {i} B head (map ...
{ "alphanum_fraction": 0.5030885381, "avg_line_length": 23.5, "ext": "agda", "hexsha": "afb0af0923dc7817f9eaa214858b68038c329cf0", "lang": "Agda", "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...
-- Kit instances and generic term traversals module Syntax.Substitution.Instances where open import Syntax.Types open import Syntax.Context open import Syntax.Terms open import Syntax.Substitution.Kits open import Data.Sum open import Relation.Binary.PropositionalEquality as ≡ using (_≡_ ; refl ; sym ; cong ; su...
{ "alphanum_fraction": 0.5432822362, "avg_line_length": 32.6176470588, "ext": "agda", "hexsha": "7a1995ae19a3817281e9eb11f325b7999481903d", "lang": "Agda", "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 Terminal where open import Base open import Category open import Unique open import Dual import Iso module Term (ℂ : Cat) where private ℂ' = η-Cat ℂ private open module C = Cat ℂ' private open module U = Uniq ℂ' private open module I = Iso ℂ' Terminal : (A : Obj) -> Set1 Terminal A = (B : Obj) -...
{ "alphanum_fraction": 0.6039173014, "avg_line_length": 22.4146341463, "ext": "agda", "hexsha": "146c5d20fc98bdb89ac19050f0616117556a73ef", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-12T...
module Ual.Eq where open import Agda.Primitive open import Ual.Void record Eq {a} (A : Set a) : Set (lsuc a) where infix 30 _==_ infix 30 _≠_ field _==_ : A → A → Set self : {x : A} → x == x sym : {x y : A} → x == y → y == x trans : {x y z : A} → x == y → y == z → x == z _≠_ : A → A → Set...
{ "alphanum_fraction": 0.4698608964, "avg_line_length": 23.962962963, "ext": "agda", "hexsha": "4a8264dcd0852a13c8c5775a80b9d1b898c57589", "lang": "Agda", "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 --without-K #-} open import LogicalFormulae open import Setoids.Setoids open import Sets.EquivalenceRelations open import Functions open import Agda.Primitive using (Level; lzero; lsuc; _⊔_) open import Numbers.Naturals.Definition open import Numbers.Integers.Integers open import Num...
{ "alphanum_fraction": 0.7259646828, "avg_line_length": 52.724137931, "ext": "agda", "hexsha": "e3e6af609f3637d62b14ccfc845c1acb4feeb82e", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-29T13:23:07.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-29T1...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Structures.Ring 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...
{ "alphanum_fraction": 0.4563516896, "avg_line_length": 36.9479768786, "ext": "agda", "hexsha": "4c63c2550159a24f70c7d20d5e2f6fb18b0c7ba3", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-22T02:02:01.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-22T...
{-# OPTIONS --no-positivity-check #-} {- This file gives a standard example showing that if arguments to constructors can use the datatype in a negative position (to the left of one or an odd number of arrows), then termination and logical consistency is lost. -} module neg-datatype-nonterm where open impo...
{ "alphanum_fraction": 0.7132216015, "avg_line_length": 25.5714285714, "ext": "agda", "hexsha": "3826d52dde5dcbc4ac503df8db76163a6cd2d75e", "lang": "Agda", "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 PiCalculus.Utils import PiCalculus.Syntax import PiCalculus.Syntax.Properties import PiCalculus.Semantics import PiCalculus.Semantics.Properties import PiCalculus.LinearTypeSystem import PiCalculus.LinearTypeSystem.Algebras import PiCalculus.LinearTypeSystem.Algebras.Graded import PiCalculus.LinearTypeSystem.Alg...
{ "alphanum_fraction": 0.9068010076, "avg_line_length": 39.7, "ext": "agda", "hexsha": "c13be81203f3a44a528f8dc739fd3696b6697ffc", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-14T16:24:07.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-25T13:57:13....
module UnifyMgu where open import UnifyTerm open import Data.Product using (∃; _,_) open import Data.Maybe using (Maybe; just; nothing) open import Category.Monad using (RawMonad) import Level open RawMonad (Data.Maybe.monad {Level.zero}) amgu : ∀ {m} (s t : Term m) (acc : ∃ (AList m)) -> Maybe (∃ (AList m)) amgu l...
{ "alphanum_fraction": 0.5675990676, "avg_line_length": 31.7777777778, "ext": "agda", "hexsha": "86f3b69bbec96eb4ac36c1192b1f644f1897ee0f", "lang": "Agda", "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 examplesPaperJFP.StatefulObject where open import Data.Product open import Data.String.Base as Str open import Data.Nat.Base as N open import Data.Vec as Vec using (Vec; []; _∷_; head; tail) open import SizedIO.Console hiding (main) open import Size open import NativeIO open import SizedIO.Base StackStateˢ...
{ "alphanum_fraction": 0.6078132927, "avg_line_length": 32.85, "ext": "agda", "hexsha": "c15798218b907caa56370f53dfaffbcbbe78656a", "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-01T15:02:37...
{-# OPTIONS --without-K --rewriting #-} open import lib.Basics open import lib.types.Coproduct open import lib.types.Fin open import lib.types.Pi open import lib.types.Truncation module lib.types.Choice where unchoose : ∀ {i j} {n : ℕ₋₂} {A : Type i} {B : A → Type j} → Trunc n (Π A B) → Π A (Trunc n ∘ B) unchoose ...
{ "alphanum_fraction": 0.49039858, "avg_line_length": 35.6149425287, "ext": "agda", "hexsha": "062d0984c607752277fb5691986ede0c5e0a9de3", "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-10T0...
{- 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 -} -- This module defines Outputs produced by handlers, as well as functio...
{ "alphanum_fraction": 0.6391810669, "avg_line_length": 46.0952380952, "ext": "agda", "hexsha": "e153941886552aba726379a94a6c519a7d008d6a", "lang": "Agda", "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...
---------------------------------------------------------------------- -- Copyright: 2013, Jan Stolarek, Lodz University of Technology -- -- -- -- License: See LICENSE file in root of the repo -- -- Repo address: https://github.com/...
{ "alphanum_fraction": 0.5759423503, "avg_line_length": 45.1, "ext": "agda", "hexsha": "315e509ac62ab88dbb411c87ff8a978479ac3aca", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "5...
module Example where open import Data.List -- reverse rev : ∀ {a} {A : Set a} → List A → List A rev [] = [] rev (x ∷ xs) = rev xs ++ [ x ] -- https://code.google.com/p/agda/issues/detail?id=1252 暫定対策 rev' = rev {-# COMPILED_EXPORT rev' rev' #-} private open import Relation.Binary.PropositionalEquality -- rever...
{ "alphanum_fraction": 0.5918079096, "avg_line_length": 24.4137931034, "ext": "agda", "hexsha": "39944a3437468127a76da36bdc6b24df553b4319", "lang": "Agda", "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 Issue4373.A where postulate T : Set instance t : T
{ "alphanum_fraction": 0.6875, "avg_line_length": 9.1428571429, "ext": "agda", "hexsha": "9a8ae940936d8b376be9601d733037f5633eca88", "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...
module Languages.ILL.TypeSyntax where open import bool open import Utils.HaskellTypes {-# IMPORT Languages.ILL.TypeSyntax #-} data Type : Set where TVar : String → Type Top : Type Imp : Type → Type → Type Tensor : Type → Type → Type Bang : Type → Type {-# COMPILED_DATA Type Languages.ILL.TypeSyntax.Type ...
{ "alphanum_fraction": 0.5937136205, "avg_line_length": 28.6333333333, "ext": "agda", "hexsha": "cf5f830a2d5478a18e97e4b99484cbca779a6bdd", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
-- Andreas, 2017-01-21, issue #2422 overloading inherited projections -- {-# OPTIONS -v tc.proj.amb:100 #-} -- {-# OPTIONS -v tc.mod.apply:100 #-} postulate A : Set record R : Set where field f : A record S : Set where field r : R open R r public -- The inherited projection (in the eyes of the scope check...
{ "alphanum_fraction": 0.6729377713, "avg_line_length": 23.8275862069, "ext": "agda", "hexsha": "1acb6ac5c1a7d786d71be3b137491b01288e1fcc", "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...
{- Type class for functors. -} module CategoryTheory.Functor where open import CategoryTheory.Categories open import Relation.Binary -- Functor between two categories record Functor {n} (ℂ : Category n) (𝔻 : Category n) : Set (lsuc n) where private module ℂ = Category ℂ private module 𝔻 = Category 𝔻 f...
{ "alphanum_fraction": 0.4648862512, "avg_line_length": 33.7, "ext": "agda", "hexsha": "3cf4df50b39e01d9cc283ff90d96af91180b1cff", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "7...
module Issue3579 where open import Agda.Builtin.String open import Agda.Builtin.Reflection data _==_ {A : Set} (a : A) : A → Set where refl : a == a {-# BUILTIN EQUALITY _==_ #-}
{ "alphanum_fraction": 0.6630434783, "avg_line_length": 18.4, "ext": "agda", "hexsha": "c847f35dcc3ed1114edc2725ff84bf8973fb5caf", "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 --safe --without-K #-} module Literals.Number where open import Agda.Builtin.FromNat public
{ "alphanum_fraction": 0.7358490566, "avg_line_length": 17.6666666667, "ext": "agda", "hexsha": "2c413a597a57032e59bde2af69488bf24186b668", "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 BTree.Complete.Alternative.Properties {A : Set} where open import BTree {A} open import BTree.Equality {A} open import BTree.Equality.Properties {A} open import BTree.Complete.Alternative {A} open import Data.Sum renaming (_⊎_ to _∨_) lemma-⋗-≃ : {t t' t'' : BTree} → t ⋗ t' → t' ≃ t'' → t ⋗ t'' lemma-⋗-≃ (⋗l...
{ "alphanum_fraction": 0.5071151358, "avg_line_length": 36.8095238095, "ext": "agda", "hexsha": "0e952dc79b8e163f2c2ab3e79943edfe3f6c7c9e", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
open import Relation.Binary.PropositionalEquality using ( refl ) open import Web.Semantic.DL.ABox.Interp using ( Interp ; ⌊_⌋ ; ind ; _*_ ) open import Web.Semantic.DL.ABox.Model using ( _⊨a_ ; ⊨a-resp-≡³ ; ⊨a-impl-⊨b ; ⊨b-impl-⊨a ; _,_ ; inb ; on-bnode ; bnodes ) open import Web.Semantic.DL.Category.Object using (...
{ "alphanum_fraction": 0.5418181818, "avg_line_length": 33.1896551724, "ext": "agda", "hexsha": "8aeb57b69bd2900a0cb0583210901254c227d839", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:40:03.000Z", "max_forks_repo_forks_event_min_datetime": "2017-12-03T...
------------------------------------------------------------------------ -- The Agda standard library -- -- Some properties imply others ------------------------------------------------------------------------ -- This file contains some core definitions which are reexported by -- Relation.Binary.Consequences. module ...
{ "alphanum_fraction": 0.4889217134, "avg_line_length": 33.85, "ext": "agda", "hexsha": "515c0dd91286d79042d2924f585171900ec09c63", "lang": "Agda", "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 #-} module Data.Binary.Addition where open import Data.Binary.Definition open import Data.Binary.Increment add₁ : 𝔹 → 𝔹 → 𝔹 add₂ : 𝔹 → 𝔹 → 𝔹 add₁ 0ᵇ ys = inc ys add₁ (1ᵇ xs) 0ᵇ = 2ᵇ xs add₁ (2ᵇ xs) 0ᵇ = 1ᵇ inc xs add₁ (1ᵇ xs) (1ᵇ ys) = 1ᵇ add₁ xs ys add₁ (1ᵇ ...
{ "alphanum_fraction": 0.5639658849, "avg_line_length": 24.6842105263, "ext": "agda", "hexsha": "a40c889fdd58f89384bddb5afe94bab27b572f84", "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...
-- -- Created by Dependently-Typed Lambda Calculus on 2020-09-24 -- Equal -- Author: dplaindoux -- module Equal where open import Data.Nat using (ℕ; zero; suc) open import Data.Bool using (Bool; true; false) infix 30 _=?_ data Type : Set where nat : Type ▲_ : Type → Set ▲ nat = ℕ _=?_ : { a : Type } → ▲ a →...
{ "alphanum_fraction": 0.5409836066, "avg_line_length": 17.7096774194, "ext": "agda", "hexsha": "1c45bfc7ca5528c76a40b182c55d12aba50ea34b", "lang": "Agda", "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 -- -- Convenient syntax for "equational reasoning" in multiple Setoids ------------------------------------------------------------------------ -- Example use: -- -- open import Data.Maybe -- open import Relation....
{ "alphanum_fraction": 0.5189466924, "avg_line_length": 30.5294117647, "ext": "agda", "hexsha": "99c17301370b8c96e2c1da6abe3f7993ff902ab5", "lang": "Agda", "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 --warning=error --safe --without-K #-} open import LogicalFormulae open import Lists.Lists open import Numbers.Naturals.Semiring open import Numbers.Naturals.Naturals open import Numbers.Naturals.Order open import Numbers.BinaryNaturals.Definition open import Numbers.BinaryNaturals.Addition open import Num...
{ "alphanum_fraction": 0.6536237016, "avg_line_length": 72.5653104925, "ext": "agda", "hexsha": "672b9f9e1fdac55773d15dc84ed7d784482ec4c7", "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...
import Lvl open import Structure.Category module Structure.Category.Functor.Equiv {ℓₗₒ ℓᵣₒ ℓₗₘ ℓᵣₘ ℓₗₑ ℓᵣₑ : Lvl.Level} {catₗ : CategoryObject{ℓₗₒ}{ℓₗₘ}{ℓₗₑ}} {catᵣ : CategoryObject{ℓᵣₒ}{ℓᵣₘ}{ℓᵣₑ}} where open import Functional.Dependent as Fn using (_$_) import Function.Equals open Function.E...
{ "alphanum_fraction": 0.6441181936, "avg_line_length": 52.7549019608, "ext": "agda", "hexsha": "d0e8a986189ef20a91c1f3f72ecf748e56cda47e", "lang": "Agda", "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.Builtin.Nat open import Agda.Builtin.Unit data ⊥ : Set where data _⊎_ (A B : Set) : Set where inj₁ : A → A ⊎ B inj₂ : B → A ⊎ B Fin : Nat → Set Fin zero = ⊥ Fin (suc n) = ⊤ ⊎ Fin n n = 49 postulate P : Nat → Set Q : Set → Set f : (n : Nat) → Q (Fin n) → P n q : Q (Fin n) p : P n p...
{ "alphanum_fraction": 0.5227963526, "avg_line_length": 13.16, "ext": "agda", "hexsha": "64fbcc7741221dbf9e07352e04c00ddf8de2f592", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:...
-- Andreas, 2018-10-17 -- -- Cannot branch on erased argument. open import Agda.Builtin.Bool T : @0 Bool → Set T true = Bool T false = Bool → Bool -- Should fail with error like: -- -- Cannot branch on erased argument of datatype Bool -- when checking the definition of T
{ "alphanum_fraction": 0.6992753623, "avg_line_length": 18.4, "ext": "agda", "hexsha": "272e5913afe40f5c93ecb2b997b8bb3b7277b402", "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 MLib where import MLib.Prelude import MLib.Fin.Parts import MLib.Fin.Parts.Simple import MLib.Finite import MLib.Finite.Properties import MLib.Algebra.PropertyCode import MLib.Matrix
{ "alphanum_fraction": 0.8256410256, "avg_line_length": 13.9285714286, "ext": "agda", "hexsha": "bf49784e7295da1d0037daf99c52c477b048f3eb", "lang": "Agda", "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 sets.nat where open import sets.nat.core public open import sets.nat.properties public open import sets.nat.ordering public open import sets.nat.solver public open import sets.nat.struct public
{ "alphanum_fraction": 0.7844827586, "avg_line_length": 23.2, "ext": "agda", "hexsha": "48b3be8f7707bd94041c03e8536750e63a7827c8", "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-02T12:17:00....
module _<?_ where open import Data.Nat using (ℕ; zero; suc) open import Relation.Nullary using (¬_) open import decidable using (Dec; yes; no) -- 厳密な不等式 (strict inequality) infix 4 _<_ data _<_ : ℕ → ℕ → Set where z<s : ∀ {n : ℕ} ------------ → zero < suc n s<s : ∀ {m n : ℕ} → m < n ---------...
{ "alphanum_fraction": 0.4323979592, "avg_line_length": 23.0588235294, "ext": "agda", "hexsha": "a5cad5be969d29d74bad18bc80baa322baf02350", "lang": "Agda", "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...
-- Andrea & Andreas, 2014-11-12 -- Pruning projected vars during solving open import Common.Product open import Common.Equality postulate A : Set works1 : {q1 : Set} {q2 : Set → Set} -> let M : Set -> Set; M = _ in {z : Set} -> q1 ≡ M (q2 z) works1 = refl works2 : {q1 : Set} {q2 : Set → Set} -> let ...
{ "alphanum_fraction": 0.5555555556, "avg_line_length": 25.03125, "ext": "agda", "hexsha": "14cdc1a49430ca17607904706e12f63a0e903375", "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:...
module Syntax where open import Data.Fin open import Data.List hiding (reverse) open import Data.List.All open import Data.Nat open import Data.Product open import Typing hiding (send ; recv) -- expressions data Expr Φ : Type → Set where var : ∀ {t} → (x : t ∈ Φ) → Expr Φ t nat : (unr-Φ : All Unr Φ)...
{ "alphanum_fraction": 0.6105113299, "avg_line_length": 44.1308900524, "ext": "agda", "hexsha": "4820505e4db3dcde4390a52e2e6f462a9d2d5a98", "lang": "Agda", "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 --no-universe-polymorphism --sized-types --no-guardedness --no-subtyping #-} module Agda.Builtin.Size where {-# BUILTIN SIZEUNIV SizeUniv #-} {-# BUILTIN SIZE Size #-} {-# BUILTIN SIZELT Size<_ #-} {-# BUILTIN SIZESUC ↑_ #-} {-# BUILTIN SIZEINF ∞ #...
{ "alphanum_fraction": 0.5008237232, "avg_line_length": 27.5909090909, "ext": "agda", "hexsha": "54ea1ace2ca7738e894e950f502b08f28ca62f1b", "lang": "Agda", "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...