Search is not available for this dataset
text
string
meta
dict
module Oscar.Data.Vec.Injectivity where open import Oscar.Data.Equality open import Oscar.Data.Vec Vec-head-inj : ∀ {a} {A : Set a} {x₁ x₂ : A} {N} {xs₁ xs₂ : Vec A N} → x₁ ∷ xs₁ ≡ x₂ ∷ xs₂ → x₁ ≡ x₂ Vec-head-inj refl = refl Vec-tail-inj : ∀ {a} {A : Set a} {x₁ x₂ : A} {N} {xs₁ xs₂ : Vec A N} → x₁ ∷ xs₁ ≡ x₂ ∷ xs₂ ...
{ "alphanum_fraction": 0.6022408964, "avg_line_length": 29.75, "ext": "agda", "hexsha": "08dfd30abba4a47367d0ff41fb1ba8ddd281890f", "lang": "Agda", "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 #-} module old.Sharp where open import Basics open import Flat open import lib.Equivalence2 {- I want sthing like this record ♯ {@♭ l : ULevel} (A : Type l) : Type l where constructor _^♯ field _/♯ :{♭} A open ♯ publ -} -- Following Licata postula...
{ "alphanum_fraction": 0.427907777, "avg_line_length": 34.9069069069, "ext": "agda", "hexsha": "56b2f3d643facdff2517714f34f91ba8b52d4377", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
{-# OPTIONS --without-K --safe #-} module Definition.Conversion.Decidable where open import Definition.Untyped open import Definition.Typed open import Definition.Typed.Properties open import Definition.Conversion open import Definition.Conversion.Whnf open import Definition.Conversion.Soundness open import Definitio...
{ "alphanum_fraction": 0.4943458522, "avg_line_length": 46.3288718929, "ext": "agda", "hexsha": "9f3b26ed0dea97e33089de08cffdf1cc7538e711", "lang": "Agda", "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 Type : Set postulate A : Set module M (x : A) (r₁ : R) (y : A) where open R r₁ r₂ : R r₂ = record { Type = A } foo : R.Type r₂ foo = {!!} -- R.Type r₂ bar : R.Type r₁ bar = {!!} -- Type
{ "alphanum_fraction": 0.5076923077, "avg_line_length": 11.8181818182, "ext": "agda", "hexsha": "2d6ce13913bcabcfc6c9d355f10575dc9ce94f8c", "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 Data.Tuple where open import Data.Tuple.Base public
{ "alphanum_fraction": 0.7127659574, "avg_line_length": 15.6666666667, "ext": "agda", "hexsha": "48f3fa43da2c8d66919f9242472613858d490869", "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...
open import Relation.Binary using (Rel; Setoid; IsEquivalence) module GGT.Structures {a b ℓ₁ ℓ₂} {G : Set a} -- The underlying group carrier {Ω : Set b} -- The underlying set space (_≈_ : Rel G ℓ₁) -- The underlying group equality (_≋_ : Rel Ω ℓ₂) -- The underlying space equality where open impo...
{ "alphanum_fraction": 0.589055794, "avg_line_length": 25.1891891892, "ext": "agda", "hexsha": "25fd6560135285a52d92c864259fbeb554e25f10", "lang": "Agda", "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...
------------------------------------------------------------------------ -- Soundness and completeness ------------------------------------------------------------------------ module TotalParserCombinators.Derivative.SoundComplete where open import Category.Monad open import Codata.Musical.Notation open import Data.L...
{ "alphanum_fraction": 0.4270732717, "avg_line_length": 58.918699187, "ext": "agda", "hexsha": "dabde40dfe399818dd14c0b6c27735c48346e3fa", "lang": "Agda", "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 _ where id : {A : Set} → A → A id x = x const : {A : Set₁} {B : Set} → A → (B → A) const x = λ _ → x {-# DISPLAY const x y = x #-} infixr 4 _,_ infixr 2 _×_ record Σ (A : Set) (B : A → Set) : Set where constructor _,_ field proj₁ : A proj₂ : B proj₁ open Σ public _×_ : (A B : Set) → Set A × B...
{ "alphanum_fraction": 0.4456327986, "avg_line_length": 17, "ext": "agda", "hexsha": "609de0dafd419061710a51ef71ae7a0521e71ce3", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:08....
{-# OPTIONS --safe #-} module Cubical.Algebra.CommRing.Instances.UnivariatePoly where open import Cubical.Foundations.Prelude open import Cubical.Algebra.CommRing open import Cubical.Algebra.Polynomials.Univariate.Base open import Cubical.Algebra.Polynomials.Univariate.Properties private variable ℓ : Level U...
{ "alphanum_fraction": 0.5657587549, "avg_line_length": 37.7941176471, "ext": "agda", "hexsha": "227a3fffe974f902edba3ffe9546b418a9e9022c", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{- This example used to fail but after the point-free evaluation fix it seems to work #-} module Issue259c where postulate A : Set a : A b : ({x : A} → A) → A C : A → Set d : {x : A} → A d {x} = a e : A e = b (λ {x} → d {x}) F : C e → Set₁ F _ with Set F _ | _ = Set
{ "alphanum_fraction": 0.5283687943, "avg_line_length": 14.1, "ext": "agda", "hexsha": "75bdd2ad1bcd27b9d4043709b9ffb186a95a43b2", "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 --cubical --safe #-} module Cubical.Data.Unit.Properties where open import Cubical.Core.Everything open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.Data.Nat open import Cubical.Data.Unit.Base isContrUnit : isContr Unit isContrUnit = tt , λ {tt → refl} ...
{ "alphanum_fraction": 0.7788461538, "avg_line_length": 26, "ext": "agda", "hexsha": "606a88c78a055ba5a7fa8f345e5b648917d71236", "lang": "Agda", "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": "cef...
-- The NO_POSITIVITY_CHECK pragma is not allowed in safe mode. module Issue1614a where {-# NO_POSITIVITY_CHECK #-} data D : Set where lam : (D → D) → D
{ "alphanum_fraction": 0.6987179487, "avg_line_length": 19.5, "ext": "agda", "hexsha": "518b629c0cafaa537e2017fa1a1163d3429c1440", "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 --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS --without-K #-} module BottomBottom where open import Common.FOL.FOL postulate bot bot' : ⊥ {-# ATP prove bot bot' #-} {-# ATP prove bot' bot #-} -- $ apia-fot ...
{ "alphanum_fraction": 0.6355633803, "avg_line_length": 29.8947368421, "ext": "agda", "hexsha": "6a785fe1afbc3aa914dca95e38aedb3c4ef433fc", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2018-03-14T08:50:00.000Z", "max_forks_repo_forks_event_min_datetime": "2016-09-19T...
------------------------------------------------------------------------------ -- The gcd is a common divisor ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {...
{ "alphanum_fraction": 0.5020786697, "avg_line_length": 36.0807692308, "ext": "agda", "hexsha": "6ae90633a306f314d1ea8a367e815d8d78750d2a", "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...
-- A DSL example in the language Agda: "polynomial types" module TypeDSL where open import Data.Empty open import Data.Unit open import Data.Sum open import Data.Product open import Data.Nat data E : Set1 where Add : E -> E -> E Mul : E -> E -> E Zero : E One : E eval : E -> Set eval (Add x y) = (eval...
{ "alphanum_fraction": 0.5947105075, "avg_line_length": 21.5230769231, "ext": "agda", "hexsha": "56de41055c9400ccb85a2ae356673800639a6544", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module _ where open import Agda.Builtin.List open import Agda.Builtin.Nat hiding (_==_) open import Agda.Builtin.Equality open import Agda.Builtin.Unit open import Agda.Builtin.Bool infix -1 _,_ record _×_ {a} (A B : Set a) : Set a where constructor _,_ field fst : A snd : B open _×_ data Constraint : S...
{ "alphanum_fraction": 0.5885386819, "avg_line_length": 19.606741573, "ext": "agda", "hexsha": "f01c0ab71bc523590b16e2470f6dcc2d37d35400", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03...
{-# OPTIONS --prop #-} {-# TERMINATING #-} makeloop : {P : Prop} → P → P makeloop p = makeloop p postulate P : Prop p : P Q : P → Set record X : Set where field f : Q (makeloop p) data Y : Set where f : Q (makeloop p) → Y
{ "alphanum_fraction": 0.55, "avg_line_length": 13.3333333333, "ext": "agda", "hexsha": "c851595eeac833a6fcd4bc155df68b4b32d06bbc", "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 -v reify:80 #-} open import Common.Prelude open import Common.Reflection open import Common.Equality module Issue1345 (A : Set) where -- Andreas, 2016-07-17 -- Also test correct handling of abstract abstract unquoteDecl idNat = define (vArg idNat) (funDef (pi (vArg (def (quote Nat) [])) (abs ""...
{ "alphanum_fraction": 0.6285714286, "avg_line_length": 23.8636363636, "ext": "agda", "hexsha": "c7565402e91cef0185d3431ebcb3649ba6bcce28", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-09-15T14:36:15.000Z", "max_forks_repo_forks_event_min_datetime": "2015-09-15T...
open import Common.Prelude open import TestHarness open import TestBool using ( not; _∧_ ; _↔_ ) module TestNat where _*_ : Nat → Nat → Nat zero * n = zero suc m * n = n + (m * n) {-# COMPILED_JS _*_ function (x) { return function (y) { return x*y; }; } #-} fact : Nat → Nat fact zero = 1 fact (suc x) = suc x * ...
{ "alphanum_fraction": 0.4983240223, "avg_line_length": 23.5526315789, "ext": "agda", "hexsha": "b219efefa7723758332d7b065f4c42daa0fb4635", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-12T...
------------------------------------------------------------------------ -- The Agda standard library -- -- Some examples showing where the integers and some related -- operations and properties are defined, and how they can be used ------------------------------------------------------------------------ module README...
{ "alphanum_fraction": 0.6162610047, "avg_line_length": 27.1971830986, "ext": "agda", "hexsha": "c6e3469ebdc3857b5cc571e471154665e2d9ecc6", "lang": "Agda", "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...
-- Issue #80. -- The disjunction data type. data _∨_ (A B : Set) : Set where inj₁ : A → A ∨ B inj₂ : B → A ∨ B -- A different symbol for disjunction. _⊕_ : Set → Set → Set P ⊕ Q = P ∨ Q {-# ATP definition _⊕_ #-} postulate P Q : Set ⊕-comm : P ⊕ Q → Q ⊕ P {-# ATP prove ⊕-comm #-} -- The previous error was: ...
{ "alphanum_fraction": 0.6320132013, "avg_line_length": 21.6428571429, "ext": "agda", "hexsha": "6ae04408d24c46e97a5bbeaf6d5d2637f1f8d40d", "lang": "Agda", "max_forks_count": 4, "max_forks_repo_forks_event_max_datetime": "2016-08-03T03:54:55.000Z", "max_forks_repo_forks_event_min_datetime": "2016-05-10T...
-- {-# OPTIONS -v tc.meta:20 #-} module UnifyWithIrrelevantArgument where data _≡_ {A : Set}(a : A) : A -> Set where refl : a ≡ a fail : (A : Set) -> let X : .A -> A X = _ in (x : A) -> X x ≡ x fail A x = refl -- error: X cannot depend on its first argument
{ "alphanum_fraction": 0.5208333333, "avg_line_length": 22.1538461538, "ext": "agda", "hexsha": "6918327e4ed88a92cad46cb230f5511cc9c37bc3", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
{-# OPTIONS --safe --warning=error --without-K #-} open import LogicalFormulae open import Groups.Definition open import Numbers.Naturals.Definition open import Setoids.Setoids open import Sets.EquivalenceRelations open import Lists.Lists open import Maybe open import Agda.Primitive using (Level; lzero; lsuc; _⊔_) m...
{ "alphanum_fraction": 0.6539206821, "avg_line_length": 60.9527559055, "ext": "agda", "hexsha": "64fc0346848ac7979cd485df25e42c8ff357319f", "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...
------------------------------------------------------------------------ -- The Agda standard library -- -- M-types (the dual of W-types) ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe --sized-types #-} module Codata.M where open import Size open import Level ...
{ "alphanum_fraction": 0.4873262469, "avg_line_length": 27.7954545455, "ext": "agda", "hexsha": "7f4eefc59fd34fc63d61b4ba510d69d3579e7be2", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-04T...
module builtin where open import Agda.Builtin.IO open import Agda.Builtin.Unit open import Agda.Builtin.String postulate putStrLn : String -> IO ⊤ {-# COMPILE GHC putStrLn = putStrLn . Data.Text.unpack #-} main : IO ⊤ main = putStrLn "hallo"
{ "alphanum_fraction": 0.7357723577, "avg_line_length": 18.9230769231, "ext": "agda", "hexsha": "5648b6f6accc796a1905ba622754bc3d76ee7fd0", "lang": "Agda", "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 MJ.Classtable import MJ.Syntax.Untyped as Syntax import MJ.Classtable.Core as Core module MJ.Semantics.Smallstep {c} (Ct : Core.Classtable c)(ℂ : Syntax.Classes Ct) where open import Prelude open import Data.Vec as V hiding (init; _>>=_; _∈_; _[_]=_) open import Data.Vec.All.Properties.Extra as Vec∀++ open i...
{ "alphanum_fraction": 0.4935955259, "avg_line_length": 31.8563218391, "ext": "agda", "hexsha": "8ac67f4cd9cff1a72da9a4dfabcc0b4aa7e4cc96", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-12-28T17:38:05.000Z", "max_forks_repo_forks_event_min_datetime": "2021-12-28T...
{-# OPTIONS -WnoMissingDefinitions #-} postulate A : Set B : A → Set variable a : A data D : B a → Set -- Expected: Warning about missing definition -- Not expected: Complaint about generalizable variable
{ "alphanum_fraction": 0.6930232558, "avg_line_length": 15.3571428571, "ext": "agda", "hexsha": "7ba04a2c23f5af4041aa158106f487e1eafaa547", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-04-01T18:30:09.000Z", "max_forks_repo_forks_event_min_datetime": "2021-04-01T...
-- Andreas, 2017-01-01, issue 2372, reported by m0davis open import Issue2372Inst f : r → Set₁ f _ = Set -- WAS: No instance of type R was found in scope. -- Should succeed
{ "alphanum_fraction": 0.6949152542, "avg_line_length": 16.0909090909, "ext": "agda", "hexsha": "43c8ba5e0e0c62781c37f10ff73a251f918e410e", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
{-# OPTIONS --safe --experimental-lossy-unification #-} module Cubical.Data.Vec.OperationsNat where open import Cubical.Foundations.Prelude open import Cubical.Data.Nat renaming(_+_ to _+n_; _·_ to _·n_) open import Cubical.Data.Vec.Base open import Cubical.Data.Sigma private variable ℓ : Level _+n-vec_ : {m : ℕ}...
{ "alphanum_fraction": 0.4965034965, "avg_line_length": 41.9137931034, "ext": "agda", "hexsha": "59a2f242b5fcfebae54c0ef110956b345a51c167", "lang": "Agda", "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.Dependent.Functions where import Lvl open import Functional.Dependent open import Type open import Type.Dependent open import Syntax.Function module _ {ℓ₁ ℓ₂ ℓ₃} {A : Type{ℓ₁}} {B : A → Type{ℓ₂}} {C : ∀{x} → B(x) → Type{ℓ₃}} where _[Π]-∘_ : (∀{x} → Π(B(x))(C)) → ...
{ "alphanum_fraction": 0.4587049244, "avg_line_length": 37.9264705882, "ext": "agda", "hexsha": "9bdd7efe40b30f9b93b14196630b6dae0c4183e4", "lang": "Agda", "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 --no-import-sorts --postfix-projections #-} module Cubical.Data.Fin.Recursive.Properties where open import Cubical.Foundations.Equiv open import Cubical.Foundations.Function open import Cubical.Foundations.HLevels open import Cubical.Foundations.Isomorphism open import Cubical.Foundations...
{ "alphanum_fraction": 0.5683072947, "avg_line_length": 31.8838951311, "ext": "agda", "hexsha": "33ca4eecf231d655b154cb5ed675b2accc48c3a7", "lang": "Agda", "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 module homotopy.EilenbergMacLane1 {i} (G : Group i) where private module G = Group G comp-equiv : ∀ g → G.El ≃ G.El comp-equiv g = equiv (λ x → G.comp x g) (λ x → G.comp x (G.inv g)) (λ x → G.assoc x (G.inv g) g ∙ ap (G.comp x) ...
{ "alphanum_fraction": 0.4870230989, "avg_line_length": 49.0828025478, "ext": "agda", "hexsha": "5c1d31c88521f8f0713f5e7f6ee652d157ee3eed", "lang": "Agda", "max_forks_count": 50, "max_forks_repo_forks_event_max_datetime": "2022-02-14T03:03:25.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-10...
{-# OPTIONS --universe-polymorphism #-} module Categories.Functor.Algebras where open import Level hiding (lift) open import Categories.Category open import Categories.Functor hiding (_≡_; id; _∘_; equiv; assoc; identityˡ; identityʳ; ∘-resp-≡) open import Categories.Functor.Algebra record F-Algebra-Morphism {o ℓ e} ...
{ "alphanum_fraction": 0.4769461078, "avg_line_length": 23.5211267606, "ext": "agda", "hexsha": "ebc0d4d18abc7377c68a7f368b3fc1f41617d478", "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...
module Agda.Builtin.TrustMe where open import Agda.Builtin.Equality primitive primTrustMe : ∀ {a} {A : Set a} {x y : A} → x ≡ y
{ "alphanum_fraction": 0.679389313, "avg_line_length": 18.7142857143, "ext": "agda", "hexsha": "1108f9b0157647533cd2e652560ac394679564fd", "lang": "Agda", "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 Issue2649-1 where module MyModule (A : Set) (a : A) where foo : A foo = a
{ "alphanum_fraction": 0.6206896552, "avg_line_length": 12.4285714286, "ext": "agda", "hexsha": "be631e543dcf5d5104801dd01e22c5c4663517b1", "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 Prelude.Semigroup where open import Prelude.Function open import Prelude.Maybe open import Prelude.List open import Prelude.Semiring open import Prelude.Applicative open import Prelude.Functor open import Prelude.Equality record Semigroup {a} (A : Set a) : Set a where infixr 6 _<>_ field _<>_ : A → ...
{ "alphanum_fraction": 0.6037914692, "avg_line_length": 27.0512820513, "ext": "agda", "hexsha": "b51199989a09bac4a9eaa5ee7ba6568497c4bfe2", "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...
------------------------------------------------------------------------ -- Comparisons of different kinds of lenses, focusing on the -- definition of composable record setters and getters ------------------------------------------------------------------------ {-# OPTIONS --cubical --safe #-} -- This module uses bot...
{ "alphanum_fraction": 0.4936243448, "avg_line_length": 31.9575, "ext": "agda", "hexsha": "3e130041098c2e40fba3fffbecd2c7c4640a2cf4", "lang": "Agda", "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 Type.Category.ExtensionalFunctionsCategory{ℓ} where open import Data open import Functional open import Function.Equals open import Function.Equals.Proofs open import Logic.Propositional import Relator.Equals as Eq open import Relator.Equals.Proofs.Equiv open import Structure.Category open import Structure...
{ "alphanum_fraction": 0.7621483376, "avg_line_length": 47.3939393939, "ext": "agda", "hexsha": "82fba45e0a7d8c3b0d17bcd5aa63dc7496256611", "lang": "Agda", "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 Oscar.Data.Vec where open import Data.Vec public open import Oscar.Data.Nat open import Oscar.Data.Equality open import Data.Nat map₂ : ∀ {a b} {A : Set a} {B : Set b} {m n} → ∀ {c} {C : Set c} (f : A → B → C) → Vec A m → Vec B n → Vec C (m * n) map₂ f xs ys = map f xs ⊛* ys open impor...
{ "alphanum_fraction": 0.535, "avg_line_length": 28.5714285714, "ext": "agda", "hexsha": "f9dc32eca4de0ecf39b5ee53b5ee033b7599a5d1", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": ...
{-# OPTIONS --without-K #-} module PiG where import Level as L open import Data.Empty open import Data.Unit open import Data.Sum open import Data.Product open import Data.Nat open import Function open import Relation.Binary.PropositionalEquality open import Relation.Binary -----------------------------...
{ "alphanum_fraction": 0.4434561626, "avg_line_length": 26.2333333333, "ext": "agda", "hexsha": "7e6281c0965cd8b17efa592abbe1101351f9a784", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2019-09-10T09:47:13.000Z", "max_forks_repo_forks_event_min_datetime": "2016-05-29T...
module free-vars where open import cedille-types open import syntax-util open import general-util open import type-util infixr 7 _++ₛ_ _++ₛ_ : stringset → stringset → stringset s₁ ++ₛ s₂ = stringset-insert* s₂ (stringset-strings s₁) stringset-single : string → stringset stringset-single = flip trie-single triv {-# T...
{ "alphanum_fraction": 0.6494432846, "avg_line_length": 39.3698630137, "ext": "agda", "hexsha": "512b23e6fb0ab9d02e75882af4918e88ee7d645b", "lang": "Agda", "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...
-- Reported and fixed by Andrea Vezzosi. module Issue902 where module M (A : Set) where postulate A : Set F : Set -> Set test : A test = {! let module m = M (F A) in ? !} -- C-c C-r gives let module m = M F A in ? -- instead of let module m = M (F A) in ?
{ "alphanum_fraction": 0.5873605948, "avg_line_length": 17.9333333333, "ext": "agda", "hexsha": "e7b0db7c520cc191f1148dfc88bd59a8ced65097", "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, 2013-06-15 reported by Guillaume Brunerie -- {-# OPTIONS -v malonzo.definition:100 #-} module Issue867 where {- The program below gives the following error when trying to compile it (using MAlonzo) $ agda -c Test.agda Checking Test (/tmp/Test.agda). Finished Test. Compiling Test in /tmp/Test.agdai to /tmp...
{ "alphanum_fraction": 0.6774691358, "avg_line_length": 27.5744680851, "ext": "agda", "hexsha": "9cbfb417bc2632537c1d2e7be9e12810b03f8ed8", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
{-# OPTIONS --safe #-} module Cubical.Categories.Limits.Pullback where open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.HITs.PropositionalTruncation.Base open import Cubical.Data.Sigma open import Cubical.Categories.Category open import Cubical.Categories.Functor op...
{ "alphanum_fraction": 0.5717008099, "avg_line_length": 35.5762711864, "ext": "agda", "hexsha": "47c665c6711c8b3db70765c92a87f8c4f7011df9", "lang": "Agda", "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 Issue1839.B where open import Issue1839.A postulate DontPrintThis : Set {-# DISPLAY DontPrintThis = PrintThis #-}
{ "alphanum_fraction": 0.7480314961, "avg_line_length": 12.7, "ext": "agda", "hexsha": "76f72cc737f3b4e2789a69b5d405e4b7317d1a9d", "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...
-- Andreas, 2019-04-12, issue #3684 -- Report also available record fields in case user gives spurious fields. -- {-# OPTIONS -v tc.record:30 #-} record R : Set₁ where field foo {boo} moo : Set test : (A : Set) → R test A = record { moo = A ; bar = A ; far = A } -- The record type R does not have the ...
{ "alphanum_fraction": 0.6231263383, "avg_line_length": 22.2380952381, "ext": "agda", "hexsha": "8381fc3b8d17a9ccf98e976bdfe39de0129a151d", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-04-01T18:30:09.000Z", "max_forks_repo_forks_event_min_datetime": "2021-04-01T...
{-# OPTIONS --cubical --safe #-} module Data.List.Relation.Unary where open import Prelude open import Data.List.Base open import Data.Fin open import Relation.Nullary open import Data.Sum private variable p : Level module Inductive◇ where data ◇ {A : Type a} (P : A → Type p) : List A → Type (a ℓ⊔ p) where he...
{ "alphanum_fraction": 0.4440195779, "avg_line_length": 34.2303664921, "ext": "agda", "hexsha": "2194e050743f459faff1cd91cb1b9e4836417dee", "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 Issue332 where id : {A : Set} → A → A id x = x syntax id x = id x -- This makes parsing id x ambiguous
{ "alphanum_fraction": 0.6120689655, "avg_line_length": 10.5454545455, "ext": "agda", "hexsha": "34c45ea53c53a159b7b0cfc3b6881733a27ee31b", "lang": "Agda", "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.BinaryNaturals.Definition open import Numbers.BinaryNaturals.Addition open import Semirings.Definition module Numbers.B...
{ "alphanum_fraction": 0.6480666973, "avg_line_length": 83.2404371585, "ext": "agda", "hexsha": "df629bb46167d73aa1b55ddffa3f0c080b4f56b1", "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...
{-# OPTIONS --warning=error --safe --without-K #-} open import LogicalFormulae open import Lists.Lists open import Numbers.BinaryNaturals.Definition open import Maybe module Numbers.BinaryNaturals.SubtractionGo where go : Bit → BinNat → BinNat → Maybe BinNat go zero [] [] = yes [] go one [] [] = no go zero [] (zero ...
{ "alphanum_fraction": 0.6222739168, "avg_line_length": 40.9404761905, "ext": "agda", "hexsha": "aca774331ef2085686c802d7b869334ad1a19937", "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...
-- Agda program using the Iowa Agda library open import bool module PROOF-sortPreservesLength (Choice : Set) (choose : Choice → 𝔹) (lchoice : Choice → Choice) (rchoice : Choice → Choice) where open import eq open import nat open import list open import maybe ----------------------------------------------...
{ "alphanum_fraction": 0.5052724077, "avg_line_length": 26.4651162791, "ext": "agda", "hexsha": "1e75a12d9d1821a5bc73ae8844ad46d693e717f6", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Algebra.Group.Properties where open import Cubical.Foundations.Prelude open import Cubical.Foundations.HLevels open import Cubical.Data.Sigma open import Cubical.Algebra.Semigroup open import Cubical.Algebra.Monoid open import Cubical.Algebra.Group.Bas...
{ "alphanum_fraction": 0.5077622113, "avg_line_length": 33.858974359, "ext": "agda", "hexsha": "6783ed64f60fd1ac08af822adecc1e4111d6ff5f", "lang": "Agda", "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 Data.Nat.Base open import Relation.Binary.PropositionalEquality open ≡-Reasoning test : 0 ≡ 0 test = begin 0 ≡⟨ {!!} ⟩ 0 ∎ -- WAS: Goal is garbled: -- -- ?0 : (.Relation.Binary.Setoid.preorder (setoid ℕ) -- .Relation.Binary.Preorder.∼ 0) -- 0 -- EXPECTED: Nice goal: -- -- ?0 : 0 ≡ 0
{ "alphanum_fraction": 0.6221498371, "avg_line_length": 14.619047619, "ext": "agda", "hexsha": "c0a867b6a4f6c384cfb7be7dbea2712fecdf50b5", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03...
{-# OPTIONS --type-in-type #-} -- {-# OPTIONS --guardedness-preserving-type-constructors #-} module PatternSynonymsErrorLocation where data _≡_ {A : Set}(a : A) : A -> Set where refl : a ≡ a infixr 2 _,_ record Unit : Set where data Sigma (A : Set)(B : A -> Set) : Set where _,_ : (fst : A) -> B fst -> Sigma A ...
{ "alphanum_fraction": 0.5763707572, "avg_line_length": 21.8857142857, "ext": "agda", "hexsha": "b8c3660f3f075f6e5372a4c8fbbe07fefba7b74e", "lang": "Agda", "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...
record Unit : Set where data Bool : Set where true false : Bool F : Bool -> Set F true = Bool F false = Unit f : (b : Bool) -> F b f true = true f false = record {} -- this should give an error, but only gives yellow test : Bool test = f _ false
{ "alphanum_fraction": 0.6414342629, "avg_line_length": 16.7333333333, "ext": "agda", "hexsha": "edd5ab6c809c3272e1a584b03babf0f418963adb", "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 --no-import-sorts --safe #-} module Cubical.Algebra.Group.Morphism where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Algebra.Group.Base open import Cubical.HITs.PropositionalTruncation hiding (map) open import Cubical.Data.Sigma private va...
{ "alphanum_fraction": 0.5815691158, "avg_line_length": 32.5540540541, "ext": "agda", "hexsha": "be2f40684c6a9b8c5d7f12d088ba4833cddb8f7d", "lang": "Agda", "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-03-28, issue #3248, reported by guillaumebrunerie {-# OPTIONS --sized-types --show-implicit #-} -- {-# OPTIONS -v tc:10 #-} -- {-# OPTIONS -v tc.term:20 #-} -- {-# OPTIONS -v tc.conv.size:45 #-} -- {-# OPTIONS -v tc.conv.coerce:45 #-} -- {-# OPTIONS -v tc.term.args.target:45 #-} {-# BUILTIN SIZEUNIV...
{ "alphanum_fraction": 0.5701492537, "avg_line_length": 35.2631578947, "ext": "agda", "hexsha": "25019e2377719b6c885547aa16ce4a8ad5849541", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
open import Formalization.PredicateLogic.Signature module Formalization.PredicateLogic.Classical.Semantics (𝔏 : Signature) {ℓₘ} where open Signature(𝔏) import Lvl open import Data.Boolean open import Data.ListSized open import Numeral.Natural open import Type private variable args : ℕ -- Model. -- A model de...
{ "alphanum_fraction": 0.720890411, "avg_line_length": 44.9230769231, "ext": "agda", "hexsha": "c4723b1f46cce238529e07701a0f7756bcd4b105", "lang": "Agda", "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.Categories.Instances.Cospan where open import Cubical.Foundations.Prelude open import Cubical.Categories.Category open import Cubical.Data.Unit open import Cubical.Data.Empty open Category data 𝟛 : Type ℓ-zero where ⓪ : 𝟛 ① : 𝟛 ② : 𝟛 CospanCat : Category ℓ-zero ℓ-zero...
{ "alphanum_fraction": 0.6004378763, "avg_line_length": 28.1076923077, "ext": "agda", "hexsha": "0b57f294421e7f1ebfdcd826af907270b6ff629d", "lang": "Agda", "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 Lvl open import Structure.Operator.Vector open import Structure.Setoid open import Type module Structure.Operator.Vector.InfiniteDimensional {ℓᵥ ℓₛ ℓᵥₑ ℓₛₑ} {V : Type{ℓᵥ}} ⦃ equiv-V : Equiv{ℓᵥₑ}(V) ⦄ {S : Type{ℓₛ}} ⦃ equiv-S : Equiv{ℓₛₑ}(S) ⦄ {_+ᵥ_ : V → V → V} {_⋅ₛᵥ_ : S → V → V} {_+ₛ_ _⋅ₛ_ : ...
{ "alphanum_fraction": 0.7057356608, "avg_line_length": 40.9183673469, "ext": "agda", "hexsha": "d30026a145210331f322c746932e59070ff18ab8", "lang": "Agda", "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: (c) 2016 Ertugrul Söylemez -- License: BSD3 -- Maintainer: Ertugrul Söylemez <esz@posteo.de> module Algebra.Category.Semigroupoid where open import Core -- A semigroupoid is a set of objects and morphisms between objects -- together with an associative binary function that combines morphisms. rec...
{ "alphanum_fraction": 0.4963251189, "avg_line_length": 25.4175824176, "ext": "agda", "hexsha": "a1e59b957649dc72a3eca7cd7d6ed68c26be4d01", "lang": "Agda", "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 par-swap.union-confluent where open import par-swap open import par-swap.properties open import par-swap.confluent open import par-swap.dpg open import Data.Nat using (_+_ ; _≤′_ ; _<′_ ; suc ; zero ; ≤′-refl ; ℕ) open import Data.Nat.Properties.Simple using ( +-comm ; +-assoc) open import Data.Nat.Properties...
{ "alphanum_fraction": 0.5252037428, "avg_line_length": 37.3295774648, "ext": "agda", "hexsha": "24a75585cd40a61122086cbe75b10096fd475c0a", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-04-15T20:02:49.000Z", "max_forks_repo_forks_event_min_datetime": "2020-04-15T...
{-# OPTIONS --without-K --safe #-} module Definition.Conversion.EqRelInstance where open import Definition.Untyped open import Definition.Typed open import Definition.Typed.Properties open import Definition.Typed.Weakening using (_∷_⊆_; wkEq) open import Definition.Conversion open import Definition.Conversion.Reducti...
{ "alphanum_fraction": 0.4926665897, "avg_line_length": 37.8122270742, "ext": "agda", "hexsha": "da670516203d42a3d2a5c9d12f7e8aa1077f5d59", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --safe #-} module Cubical.Categories.DistLatticeSheaf where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Structure open import Cubical.Foundations.Powerset open import Cubical.Data.Sigma open import Cubical.Relation.Binary.Poset open import Cubical.Algebra.Ring open import Cubi...
{ "alphanum_fraction": 0.6010558069, "avg_line_length": 33.15, "ext": "agda", "hexsha": "c131a1de043da5f42236642d28b5ee3dd1ac9513", "lang": "Agda", "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 Prelude module Implicits.Resolution.Scala.Type where open import Implicits.Syntax open import Implicits.Substitutions open import Implicits.Substitutions.Lemmas.Type open import Implicits.Substitutions.Type as TS using () -- predicate on types to limit them to non-rule types -- (as those don't exist in...
{ "alphanum_fraction": 0.6387512389, "avg_line_length": 38.8076923077, "ext": "agda", "hexsha": "6753b04df613e9138bd888633c736b5565a8371a", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{- This file contains: - The inductive family 𝕁 can be constructed by iteratively applying pushouts; - The special cases of 𝕁 n for n = 0, 1 and 2; - Connectivity of inclusion maps. Easy, almost direct consequences of the very definition. -} {-# OPTIONS --safe #-} module Cubical.HITs.James.Inductive.Pushou...
{ "alphanum_fraction": 0.5663678583, "avg_line_length": 34.0404411765, "ext": "agda", "hexsha": "b535067891baa160d41d5acb217ede7c0a68b5a6", "lang": "Agda", "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 InstanceArgumentsBraces where record T' : Set where record T'' : Set where field a : T' testT'' : T'' testT'' = record { a = record {}}
{ "alphanum_fraction": 0.6418918919, "avg_line_length": 14.8, "ext": "agda", "hexsha": "6263ceffedba9acbc6527411bdef2baa8faa542e", "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 Prelude where -- Booleans data Bool : Set where tt : Bool ff : Bool _||_ : Bool -> Bool -> Bool tt || y = tt ff || y = y _&&_ : Bool -> Bool -> Bool tt && y = y ff && y = ff if_then_else : {A : Set} -> Bool -> A -> A -> A if tt then x else _ = x if ff then _ else y = y -- Eq "type cla...
{ "alphanum_fraction": 0.4221218962, "avg_line_length": 20.367816092, "ext": "agda", "hexsha": "ef138dc7eeea1454c37561c0f090113be03ac680", "lang": "Agda", "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 OutsideIn.Prelude open import OutsideIn.X module OutsideIn.Inference(x : X) where import OutsideIn.TopLevel as TL import OutsideIn.TypeSchema as TS import OutsideIn.Expressions as E import OutsideIn.Environments as V import OutsideIn.Constraints as C import OutsideIn.Inference.Solver as S impo...
{ "alphanum_fraction": 0.5229172672, "avg_line_length": 42.3048780488, "ext": "agda", "hexsha": "87344e0290671a8d3445c332f3bb95d74e4ba55e", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
postulate T : Set pre : (T → T) → T pre!_ : (T → T) → T _post : T → Set _+_ : T → T → T _>>=_ : T → (T → T) → T infix 5 pre!_ _>>=_ infix 4 _post infixl 3 _+_ -- add parens test-1a : Set test-1a = {!pre λ x → x!} post -- no parens test-1b : Set test-1b = {!pre (λ x → x)!} post -- add parens tes...
{ "alphanum_fraction": 0.5049288061, "avg_line_length": 14.9672131148, "ext": "agda", "hexsha": "f7521c3cae7209c3c9e0f5712341838c6d627898", "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 #-} module sets where import sets.bool import sets.empty import sets.fin import sets.nat import sets.int import sets.unit import sets.vec import sets.list open import sets.properties open import sets.finite
{ "alphanum_fraction": 0.7854077253, "avg_line_length": 15.5333333333, "ext": "agda", "hexsha": "5d73650e6664f9eab8717bd050b87449ce9ff81e", "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...
------------------------------------------------------------------------ -- Truncation, defined using a kind of Church encoding ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} -- Partly following the HoTT book. open import Equality module H-level.Truncatio...
{ "alphanum_fraction": 0.4026660933, "avg_line_length": 45.111542192, "ext": "agda", "hexsha": "38c92d9b004f4b8a015845ffc681fe7da92d73e7", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hex...
{-# OPTIONS --without-K --rewriting #-} open import lib.Basics open import lib.types.Truncation open import lib.types.Groupoid open import lib.types.PathSet module lib.groupoids.FundamentalPreGroupoid {i} (A : Type i) where fundamental-pregroupoid : PreGroupoid i i fundamental-pregroupoid = record { El = A ...
{ "alphanum_fraction": 0.6049822064, "avg_line_length": 23.4166666667, "ext": "agda", "hexsha": "4c8e9b01f3cf6961a64c01096d91b0479404414d", "lang": "Agda", "max_forks_count": 50, "max_forks_repo_forks_event_max_datetime": "2022-02-14T03:03:25.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-10...
------------------------------------------------------------------------ -- Properties satisfied by total orders ------------------------------------------------------------------------ open import Relation.Binary module Relation.Binary.Props.TotalOrder (t : TotalOrder) where open Relation.Binary.TotalOrder t open i...
{ "alphanum_fraction": 0.5219594595, "avg_line_length": 29.6, "ext": "agda", "hexsha": "63c1559181b8ead114feea3cbb156f9ebf7d055e", "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....
module Slides where import Background import OpenTheory import OpenTheory2 import ClosedTheory import ClosedTheory2 import ClosedTheory3 import ClosedTheory4
{ "alphanum_fraction": 0.8867924528, "avg_line_length": 15.9, "ext": "agda", "hexsha": "3840c74d3e98adfddca92e1c59fff8e090ac3618", "lang": "Agda", "max_forks_count": 2, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:31:22.000Z", "max_forks_repo_forks_event_min_datetime": "2016-05-02T08:56:15....
{-# OPTIONS --without-K --safe #-} open import Data.Nat using (ℕ) module Categories.Category.Construction.Fin (n : ℕ) where open import Level open import Data.Fin.Properties open import Categories.Category open import Categories.Category.Construction.Thin 0ℓ (≤-poset n) Fin : Category 0ℓ 0ℓ 0ℓ Fin = Thin
{ "alphanum_fraction": 0.7524115756, "avg_line_length": 20.7333333333, "ext": "agda", "hexsha": "7de3eb278f035af308a6b36d6326edc7dce30288", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
-- Andreas, 2016-12-09, issue #2331 -- Testcase from Nisse's application open import Common.Size data D (i : Size) : Set where c : (j : Size< i) → D i postulate f : (i : Size) → ((j : Size< i) → D j → Set) → Set module Mutual where mutual test : (i : Size) → D i → Set test i (c j) = f j (helper i j) ...
{ "alphanum_fraction": 0.5893587995, "avg_line_length": 24.4333333333, "ext": "agda", "hexsha": "b256db7ae11f70b8fd1ed96ed2fd8668ee4ccf7d", "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 torus, defined as a HIT ------------------------------------------------------------------------ {-# OPTIONS --erased-cubical --safe #-} -- This module is based on the discussion of the torus in the HoTT -- book. -- The module is paramet...
{ "alphanum_fraction": 0.5428957442, "avg_line_length": 26.833836858, "ext": "agda", "hexsha": "b65ee873f3cdc4fa849d238f4d8f14d81e51bb90", "lang": "Agda", "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 Builtin.Float where open import Prelude open import Prelude.Equality.Unsafe open import Agda.Builtin.Float open Agda.Builtin.Float public using (Float) natToFloat : Nat → Float natToFloat = primNatToFloat intToFloat : Int → Float intToFloat (pos x) = natToFloat x intToFloat (negsuc x) = primFloatMinus -1...
{ "alphanum_fraction": 0.6886252046, "avg_line_length": 24.44, "ext": "agda", "hexsha": "fcd80704b336e352ee468021f531cdd735ce8559", "lang": "Agda", "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 Tactic.Monoid.Proofs where open import Prelude open import Structure.Monoid.Laws open import Tactic.Monoid.Exp ⟦_⟧_ : ∀ {a} {A : Set a} {{_ : Monoid A}} → Exp → (Nat → A) → A ⟦ var x ⟧ ρ = ρ x ⟦ ε ⟧ ρ = mempty ⟦ e ⊕ e₁ ⟧ ρ = ⟦ e ⟧ ρ <> ⟦ e₁ ⟧ ρ ⟦_⟧n_ : ∀ {a} {A : Set a} {{_ : Monoid A}} → List Nat → (...
{ "alphanum_fraction": 0.4913657771, "avg_line_length": 33.5263157895, "ext": "agda", "hexsha": "84b8ee1323af5716ab11a4f01b540c92a8bf72e8", "lang": "Agda", "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...
------------------------------------------------------------------------------ -- Example of a partial function using the Bove-Capretta method ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS...
{ "alphanum_fraction": 0.4648166501, "avg_line_length": 37.3703703704, "ext": "agda", "hexsha": "c4bdb3294be4c6d384e9299a424382c8e457b84a", "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...
open import Logic open import Logic.Classical open import Structure.Setoid open import Structure.OrderedField open import Type module Structure.Function.Metric {ℓF ℓₑF ℓ≤} {F : Type{ℓF}} ⦃ equiv-F : Equiv{ℓₑF}(F) ⦄ {_+_}{_⋅_} {_≤_ : _ → _ → Type{ℓ≤}} ⦃ orderedField-F : OrderedField{F = F}(_+_)(_⋅_)(_≤_) ⦄ ...
{ "alphanum_fraction": 0.5517627308, "avg_line_length": 38.1565836299, "ext": "agda", "hexsha": "674ac393a2251b388cde441ecc2f11b3900435e6", "lang": "Agda", "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 Positivity where data Nat : Set where zero : Nat suc : Nat -> Nat data List (A : Set) : Set where [] : List A _::_ : A -> List A -> List A data Tree : Set where node : List Tree -> Tree data Loop (A : Set) : Set where loop : Loop (Loop A) -> Loop A data _×_ (A B : Set) : Set where _,_ : A ...
{ "alphanum_fraction": 0.5426086957, "avg_line_length": 16.4285714286, "ext": "agda", "hexsha": "040cfa56a89b548ce7f5ee554c2524b71a8f00e3", "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 Section10 where open import Section9 public -- 10. Conclusions -- =============== -- -- We have defined a calculus of proof trees for simply typed λ-calculus with explicit substitutions -- and we have proved that this calculus is sound and complete with respect to Kripke -- models. A decision algorithm for c...
{ "alphanum_fraction": 0.6761504678, "avg_line_length": 39.9770992366, "ext": "agda", "hexsha": "ee8bb292d1a7eae4a9ba7689e60c596c9931c544", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical-compatible #-} module _ where infix 4 _≡_ data _≡_ {a} {A : Set a} (x : A) : A → Set a where instance refl : x ≡ x {-# BUILTIN EQUALITY _≡_ #-} {-# BUILTIN REFL refl #-} -- This should trigger a warning!
{ "alphanum_fraction": 0.6017316017, "avg_line_length": 23.1, "ext": "agda", "hexsha": "6dba9f1ec2fb607d0b8c3597687e3125e053547a", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "9...
open import Agda.Primitive open import Agda.Builtin.List open import Agda.Builtin.Equality private variable a p : Level A : Set a P Q : A → Set p data Any {a p} {A : Set a} (P : A → Set p) : List A → Set (a ⊔ p) where here : ∀ {x xs} (px : P x) → Any P (x ∷ xs) there : ∀ {x xs} (pxs : Any P x...
{ "alphanum_fraction": 0.4899665552, "avg_line_length": 27.1818181818, "ext": "agda", "hexsha": "40bffaa3764d0a08a3f2d4352035180db72efb91", "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 Avionics.SafetyEnvelopes where open import Data.Bool using (Bool; true; false; _∧_; _∨_) open import Data.List using (List; []; _∷_; any; map; foldl; length) open import Data.List.Relation.Unary.Any as Any using (Any) open import Data.List.Relation.Unary.All as All using (All) open import Data.Maybe using (Mayb...
{ "alphanum_fraction": 0.5509729887, "avg_line_length": 36.6276595745, "ext": "agda", "hexsha": "38da35db2e60e89063a2df1ba307b8fda0be629f", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2020-09-20T00:36:09.000Z", "max_forks_repo_forks_event_min_datetime": "2020-09-20T...
{-# OPTIONS --without-K #-} open import Base open import Coinduction module CoindEquiv where -- Coinductive equivalences record _∼_ {i j} (A : Set i) (B : Set j) : Set (max i j) where constructor _,_,_ field to : A → B from : B → A eq : ∞ ((a : A) (b : B) → ((to a ≡ b) ∼ (a ≡ from b))) -- Identity i...
{ "alphanum_fraction": 0.3943476832, "avg_line_length": 36.6626506024, "ext": "agda", "hexsha": "8ac3f2ed28d94ca9047b63de8e4ad3dca3e544c4", "lang": "Agda", "max_forks_count": 50, "max_forks_repo_forks_event_max_datetime": "2022-02-14T03:03:25.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-10...
{-# OPTIONS --safe #-} module Definition.Typed.Consequences.Substitution where open import Definition.Untyped open import Definition.Untyped.Properties open import Definition.Typed open import Definition.Typed.Properties open import Definition.Typed.EqRelInstance open import Definition.Typed.Weakening open import Def...
{ "alphanum_fraction": 0.4979012346, "avg_line_length": 39.3203883495, "ext": "agda", "hexsha": "cd58d3e580f253f4f52069473f1ac22e4f96cc16", "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-26T...
{-# OPTIONS --without-K --safe #-} module Categories.Category.Construction.Kleisli where open import Level open import Categories.Category open import Categories.Functor using (Functor; module Functor) open import Categories.NaturalTransformation hiding (id) open import Categories.Monad import Categories.Morphism.Rea...
{ "alphanum_fraction": 0.4455587393, "avg_line_length": 37.2266666667, "ext": "agda", "hexsha": "11f320ba4ba4b7c2d047581a5af20442f699a6a7", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --rewriting #-} module Examples.Run where open import Agda.Builtin.Equality using (_≡_; refl) open import Agda.Builtin.Bool using (true; false) open import Luau.Syntax using (nil; var; _$_; function_is_end; return; _∙_; done; _⟨_⟩; number; binexp; +; <; val; bool; ~=; string) open import Luau.Run using (r...
{ "alphanum_fraction": 0.6164965986, "avg_line_length": 49, "ext": "agda", "hexsha": "84ebf84e2278ad456ea0ae4d949b0fd0ff1a6094", "lang": "Agda", "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": "362...
------------------------------------------------------------------------------ -- Properties for the bisimilarity relation ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polym...
{ "alphanum_fraction": 0.4763202726, "avg_line_length": 31.5591397849, "ext": "agda", "hexsha": "c7cdb7ae88d13094ef05e49d5b874faa30dc20d2", "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...
open import Data.Nat hiding ( _+_; _*_; _⊔_; zero ) open import Algebra hiding (Zero) open import Level using (Level; _⊔_) open import Data.Product module quad { c ℓ } ( ring : Ring c ℓ ) where open Ring ring data Nat4 : Set where One : Nat4 Suc : Nat4 -> Nat4 variable a b d : Level A : Set a B : Se...
{ "alphanum_fraction": 0.5581752947, "avg_line_length": 30.6439790576, "ext": "agda", "hexsha": "208af95f451fcfdf17a19b042ccc8e7a336e3a96", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
-- Andreas, 2016-09-20, issue #2196 reported by mechvel -- Test case by Ulf -- {-# OPTIONS -v tc.lhs.dot:40 #-} data _≡_ {a} {A : Set a} (x : A) : A → Set a where refl : x ≡ x record _×_ (A B : Set) : Set where constructor _,_ field fst : A snd : B open _×_ EqP₁ : ∀ {A B} (p q : A × B) → Set EqP₁ (x ,...
{ "alphanum_fraction": 0.5114401077, "avg_line_length": 24.7666666667, "ext": "agda", "hexsha": "4ad7613cf7acd003ff4067c2044b0183711d73d0", "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...
{- This file contains: - The first Eilenberg–Mac Lane type as a HIT -} {-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.HITs.EilenbergMacLane1.Base where open import Cubical.Foundations.Prelude open import Cubical.Algebra.Group.Base private variable ℓ : Level module _ (G : Group {ℓ}) where op...
{ "alphanum_fraction": 0.5555555556, "avg_line_length": 25.8, "ext": "agda", "hexsha": "defded51bbcc0b26c06cf7f61a00f868bcc3d3e6", "lang": "Agda", "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": "c...
{-# OPTIONS --safe #-} module Cubical.Algebra.CommAlgebra.FGIdeal where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Structure open import Cubical.Foundations.Powerset open import Cubical.Data.FinData open import Cubical.Data.Nat open import Cubical.Data.Vec open import Cubical.Algebra.Comm...
{ "alphanum_fraction": 0.7081681205, "avg_line_length": 33.1842105263, "ext": "agda", "hexsha": "e06ed81b11f3a1179beb778046dc6a0c84665109", "lang": "Agda", "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 algebra.monoid.morphism where open import level open import algebra.monoid.core open import algebra.semigroup.morphism open import equality.core open import function.isomorphism open import hott.level open import sum module _ {i}{j} {X : Set i}⦃ sX : IsMonoid X ⦄ ...
{ "alphanum_fraction": 0.6300884956, "avg_line_length": 30.5405405405, "ext": "agda", "hexsha": "fe76198e28aaba99c55c8df43c9fd283bb919f76", "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...
{- DUARel for the constant unit family -} {-# OPTIONS --no-exact-split --safe #-} module Cubical.Displayed.Unit where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Foundations.HLevels open import Cubical.Data.Unit open import Cubical.Displayed.Base open import ...
{ "alphanum_fraction": 0.7245696401, "avg_line_length": 22.8214285714, "ext": "agda", "hexsha": "6d24f8539e3f38c408bdbcd0c944a44d084aa63a", "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...
------------------------------------------------------------------------ -- Compiler correctness ------------------------------------------------------------------------ {-# OPTIONS --erased-cubical --sized-types #-} module Lambda.Simplified.Delay-monad.Compiler-correctness where import Equality.Propositional as E o...
{ "alphanum_fraction": 0.3820406279, "avg_line_length": 39.3818181818, "ext": "agda", "hexsha": "999f97d6a15fc151c51fb0299ca23c965fd5216b", "lang": "Agda", "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 omega-automaton where open import Level renaming ( suc to succ ; zero to Zero ) open import Data.Nat open import Data.List open import Data.Maybe -- open import Data.Bool using ( Bool ; true ; false ; _∧_ ) renaming ( not to negate ) open import Relation.Binary.PropositionalEquality hiding ( [_] ) open import ...
{ "alphanum_fraction": 0.4888405008, "avg_line_length": 23.5512820513, "ext": "agda", "hexsha": "a4ae5705057e62a2779c9aed04c33525fe1f98aa", "lang": "Agda", "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...