Search is not available for this dataset
text
string
meta
dict
------------------------------------------------------------------------ -- The Agda standard library -- -- A categorical view of Stream ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe --sized-types #-} module Codata.Stream.Categorical where open import Data.Pr...
{ "alphanum_fraction": 0.5425790754, "avg_line_length": 25.6875, "ext": "agda", "hexsha": "0380b5571c17025d892f61eadea7842f06dcb67c", "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:...
module Issue470 where data Bool : Set where true false : Bool _and_ : Bool → Bool → Bool true and x = x false and x = false infixr 5 _∷_ data Foo : Bool → Set where [] : Foo true _∷_ : ∀ {b} (x : Bool) → Foo b → Foo (x and b) Baz : Bool → Set Baz true = Bool Baz false = Foo false data Bar : ∀ {b} → Foo b ...
{ "alphanum_fraction": 0.5445292621, "avg_line_length": 21.2432432432, "ext": "agda", "hexsha": "f3fd8d2d5c1ca389602f33d82b4c7ebd95291b1a", "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 Data.Permutation where open import Prelude open import Data.Fin as Fin hiding (_==_; _<_) open import Data.Nat open import Data.Vec open import Logic.Identity open import Logic.Base import Logic.ChainReasoning -- What is a permutation? -- Answer 1: A bijection between Fin n and itself data Permutation (n : N...
{ "alphanum_fraction": 0.5268691589, "avg_line_length": 26.1374045802, "ext": "agda", "hexsha": "9db4549f15adf1152a36f5d04d6bba22e04d7264", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:35:18.000Z", "max_forks_repo_forks_event_min_datetime": "2022-03-12T...
{-# OPTIONS --without-K --rewriting #-} open import HoTT open import cohomology.Theory module cw.cohomology.TopGrid {i} (OT : OrdinaryTheory i) (n : ℤ) {X Y Z : Ptd i} (f : X ⊙→ Y) (g : Y ⊙→ Z) where {- X --> Y ---> Z | | this | v v one v 1 -> Y/X -> Z/X -} open OrdinaryTheory OT open import ...
{ "alphanum_fraction": 0.6151724138, "avg_line_length": 27.8846153846, "ext": "agda", "hexsha": "fd003316db28d02fe24fd80ffcbc8106023e9ed0", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-12-26T21:31:57.000Z", "max_forks_repo_forks_event_min_datetime": "2018-12-26T...
module my-nat where open import product open import bool open import eq data ℕ : Set where zero : ℕ suc : ℕ → ℕ {-# BUILTIN NATURAL ℕ #-} infixl 10 _*_ infixl 9 _+_ --infixl 8 _<_ _=ℕ_ _≤_ _>_ _≥_ _+_ : ℕ → ℕ → ℕ zero + n = n suc m + n = suc (m + n) 0+ : ∀ (x : ℕ) → 0 + x ≡ x 0+ x = refl +0 : ∀ (x : ℕ) → x +...
{ "alphanum_fraction": 0.4661936561, "avg_line_length": 22.6037735849, "ext": "agda", "hexsha": "5681e4ad1dd05269c07f98c3481d356ff00cb7c2", "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 Common where ∗ : Set₁ ∗ = Set _∘_ : {A B C : ∗} → (B → C) → (A → B) → (A → C) f ∘ g = λ a → f (g a) infixr 2 _×_ infixr 1 _⊎_ data _×_ (A B : ∗) : ∗ where _,_ : A → B → A × B proj₁ : ∀ {A B} → A × B → A proj₁ (a , b) = a proj₂ : ∀ {A B} → A × B → B proj₂ (a , b) = b uncurry : {A...
{ "alphanum_fraction": 0.3665254237, "avg_line_length": 18.1538461538, "ext": "agda", "hexsha": "2b7ec3285a75c604497a89685cbf13886752478f", "lang": "Agda", "max_forks_count": 399, "max_forks_repo_forks_event_max_datetime": "2022-03-31T11:18:25.000Z", "max_forks_repo_forks_event_min_datetime": "2018-10-0...
open import Agda.Builtin.Equality open import Agda.Builtin.Size postulate P : (A : Set₁) → A → Set₁ p : (i : Size) (f : {_ : Size< i} → Set) (x : _) → P ({_ : Size< i} → Set) f
{ "alphanum_fraction": 0.544973545, "avg_line_length": 21, "ext": "agda", "hexsha": "070a637c1a575467560aa496023241e8e00ed433", "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.000...
{-# OPTIONS --cubical --no-import-sorts --safe #-} module Cubical.Foundations.Path where open import Cubical.Foundations.Prelude open import Cubical.Foundations.GroupoidLaws open import Cubical.Foundations.Equiv open import Cubical.Foundations.Isomorphism open import Cubical.Foundations.Transport open import Cubical.F...
{ "alphanum_fraction": 0.4269839709, "avg_line_length": 51.8826530612, "ext": "agda", "hexsha": "9443d5cc9303f2e60a8c00a9048adea8f1609e2f", "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-09-10, issue #4065, reported by nad -- If the set of filtered unsolved constraints is empty, Agda -- should print at least something like "Unsolved constraints" postulate A : Set record R (F : A → Set) : Set where module M (r : (F : A → Set) → R F) where module T (F : _) = R (r (λ ℓ → F ℓ)) -...
{ "alphanum_fraction": 0.6597510373, "avg_line_length": 24.1, "ext": "agda", "hexsha": "3a77ae4fc8d8f4c8903afb60b3877c40d9e2a1ed", "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 _ (A : Set) where id : A → A id x = x
{ "alphanum_fraction": 0.5106382979, "avg_line_length": 7.8333333333, "ext": "agda", "hexsha": "9475a8e89e5c022299099c1f5f650c5f6cf29a2e", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03...
{-# OPTIONS --without-K --safe --exact-split #-} module Constructive.Axiom.Properties where open import Constructive.Axiom.Properties.Base public open import Constructive.Axiom.Properties.Transport public open import Constructive.Axiom.Properties.Bool public
{ "alphanum_fraction": 0.816091954, "avg_line_length": 32.625, "ext": "agda", "hexsha": "b56f1f274aeffb65f4b7788109b187f674eacc0e", "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 TemporalOps.OtherOps where open import CategoryTheory.Instances.Reactive open import CategoryTheory.Functor open import CategoryTheory.Monad open import CategoryTheory.Comonad open import CategoryTheory.NatTrans open import CategoryTheory.BCCCs open import CategoryTheory.CartesianStrength open import Temporal...
{ "alphanum_fraction": 0.5050900548, "avg_line_length": 30.4047619048, "ext": "agda", "hexsha": "2744f359ac25a018e4b0584e733e57b586596e2f", "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...
primitive primSetOmega : _
{ "alphanum_fraction": 0.7586206897, "avg_line_length": 9.6666666667, "ext": "agda", "hexsha": "de41f874ec028be89d8d6a2bac307be5b11426e5", "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...
-- Basic intuitionistic propositional calculus, without ∨ or ⊥. -- Gentzen-style formalisation of syntax. -- Normal forms, neutrals, and spines. module BasicIPC.Syntax.GentzenSpinalNormalForm where open import BasicIPC.Syntax.Gentzen public -- Derivations. mutual -- Normal forms, or introductions. infix 3 _⊢ⁿᶠ...
{ "alphanum_fraction": 0.5253222836, "avg_line_length": 30.5915492958, "ext": "agda", "hexsha": "2e219116e89c89bbcb9488095eb64cc85bcbaa57", "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 Agda.Builtin.FromNat where open import Agda.Primitive open import Agda.Builtin.Nat record Number {a} (A : Set a) : Set (lsuc a) where field Constraint : Nat → Set a fromNat : ∀ n → {{_ : Constraint n}} → A open Number {{...}} public using (fromNat) {-# BUILTIN FROMNAT fromNat #-} {-# DISPLAY Numbe...
{ "alphanum_fraction": 0.6542857143, "avg_line_length": 21.875, "ext": "agda", "hexsha": "de4acc8a433fbb2ec911663420f4ce8ae20efca1", "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 Everything module Test.Factsurj3 where module Test0 {𝔵 𝔭 𝔯 ℓ} {𝔛 : Ø 𝔵} (𝔓 : π̂ 𝔭 𝔛) (_≈_ : ∀̇ π̂² ℓ 𝔓) (_≈'_ : ∀̇ π̂² ℓ 𝔓) (ℜ : π̂² 𝔯 𝔛) (ε : Reflexivity.type ℜ) (_◃_ : Smaphomarrow!.type ℜ 𝔓) (_◃'_ : Smaphomarrow!.type ℜ 𝔓) where test-class' : ⦃ _ : Leftunit,smaphomarr...
{ "alphanum_fraction": 0.6082949309, "avg_line_length": 28, "ext": "agda", "hexsha": "db764e457e6aa7405d8a5a7cb74fabb23681b1e8", "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": "52e...
module Haskell.Prim.Foldable where open import Haskell.Prim open import Haskell.Prim.Num open import Haskell.Prim.Eq open import Haskell.Prim.List open import Haskell.Prim.Int open import Haskell.Prim.Bool open import Haskell.Prim.Maybe open import Haskell.Prim.Either open import Haskell.Prim.Tuple open import Haskel...
{ "alphanum_fraction": 0.6104028557, "avg_line_length": 23.3452380952, "ext": "agda", "hexsha": "f12a519a12e060d11dd2b1f2d83d8eab50b7a585", "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 defines cohomology of a type with coefficients in a dependent spectrum over it. * Cohom and Cohom' are two versions of the cohomology groups - the only difference is the carrier type. * 'commDegreeΩ' commutes Ωs with degree shifts of the spectrum * 'cohomMap' implement the application of the ...
{ "alphanum_fraction": 0.6336445037, "avg_line_length": 36.2, "ext": "agda", "hexsha": "a7e1620841686827fd0486c5b45be620371cdec8", "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...
open import Agda.Primitive using (lzero; lsuc; _⊔_) open import Relation.Binary.PropositionalEquality using (_≡_; refl) open import SingleSorted.Substitution open import Data.Nat using (ℕ; zero; suc) import MultiSorted.Context as Context module MultiSorted.Group where data 𝒜 : Set₀ where A : 𝒜 single-sort : ∀ (...
{ "alphanum_fraction": 0.5426478284, "avg_line_length": 28.7368421053, "ext": "agda", "hexsha": "6175c5c1ec886cbca5ab478886e273f2b51e2006", "lang": "Agda", "max_forks_count": 6, "max_forks_repo_forks_event_max_datetime": "2021-05-24T02:51:43.000Z", "max_forks_repo_forks_event_min_datetime": "2021-02-16T...
------------------------------------------------------------------------ -- The Agda standard library -- -- Induction over _<_ for ℕᵇ. ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Nat.Binary.Induction where open import Data.Nat.Binary.Base op...
{ "alphanum_fraction": 0.5123966942, "avg_line_length": 30.25, "ext": "agda", "hexsha": "13bdb874caca60e0436cd801c8172ed14a9bc745", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-04T06:54:45...
-- Andreas, 2018-05-28, issue #3095, cannot make hidden shadowing variable visible data Nat : Set where suc : {n : Nat} → Nat data IsSuc : Nat → Set where isSuc : ∀{n} → IsSuc (suc {n}) test : ∀{n} → IsSuc n → Set test p = aux p where aux : ∀{n} → IsSuc n → Set aux isSuc = {!n!} -- Split on n here -- Con...
{ "alphanum_fraction": 0.6024590164, "avg_line_length": 21.2173913043, "ext": "agda", "hexsha": "eb0c35733b35aa3c279dda43e09c28e7ecb6c9b7", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --cubical #-} module PathWith where open import Agda.Builtin.Cubical.Path open import Agda.Primitive.Cubical open import Agda.Builtin.Nat pred : Nat → Nat pred (suc n) = n pred 0 = 0 f : Nat → Nat f n with pred n ... | zero = zero ... | suc m = suc m module _ (qqq : Nat) where test1 : f ≡ pred test...
{ "alphanum_fraction": 0.6132478632, "avg_line_length": 16.1379310345, "ext": "agda", "hexsha": "753dea1d1f06dec8cbe1b156476845e9cc533113", "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 few random examples module Test where import Agda.Builtin.Bool data Nat : Set where zero : Nat -- Comment which gets eaten suc : Nat -> Nat --Comment which is preserved plus {- preserved comment {- which may be nested -} -} : {- comment after Colon, also preserved-} {-comments are essentia...
{ "alphanum_fraction": 0.5708836618, "avg_line_length": 27.1206896552, "ext": "agda", "hexsha": "18c12b19a0849193da4e59da89bc6f9568d7811c", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-01-31T08:40:41.000Z", "max_forks_repo_forks_event_min_datetime": "2019-01-31T...
module Structure.Category.NaturalTransformation.Equiv where import Function.Equals open Function.Equals.Dependent import Lvl open import Logic open import Logic.Predicate open import Structure.Category open import Structure.Category.Functor open import Structure.Category.NaturalTransformation open imp...
{ "alphanum_fraction": 0.7005695688, "avg_line_length": 26.1489361702, "ext": "agda", "hexsha": "50b915177c809cd12b69c0196d24cc00e2885236", "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 --warning=error --without-K #-} open import Functions.Definition open import Sets.CantorBijection.Proofs module Sets.CantorBijection.CantorBijection where open Sets.CantorBijection.Proofs using (cantorInverse ; cantorInverseLemma) public cantorBijection : Bijection cantorInverse Bijection.inj can...
{ "alphanum_fraction": 0.8243559719, "avg_line_length": 32.8461538462, "ext": "agda", "hexsha": "89e319d8e74bbbaa870b1607100d7a4d9c229421", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-29T13:23:07.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-29T...
module UniDB.Basic where open import UniDB.Spec open import UniDB.Subst open import Function module _ {T : STX} {{vrT : Vr T}} {{wkT : Wk T}} {{apTT : Ap T T}} {{apVrT : ApVr T}} {{apWkTT : ApWk T T}} {Ξ : MOR} {{upΞ : Up Ξ}} {{compΞ : Comp Ξ}} {{lkTΞ : Lk T Ξ}} {{lkUpTΞ : LkUp T Ξ}} {{lkCompTΞ : LkCompAp T ...
{ "alphanum_fraction": 0.4268204758, "avg_line_length": 47.8275862069, "ext": "agda", "hexsha": "dc966c366aaf566bfaa5cda3fda99e0ec489a092", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K --safe #-} open import Algebra open import Relation.Unary open import Relation.Binary hiding (Decidable) module Data.FingerTree.Split {r m} (ℳ : Monoid r m) {s} {ℙ : Pred (Monoid.Carrier ℳ) s} (ℙ-resp : ℙ Respects (Monoid._≈_ ℳ)) (ℙ? : Decidable ℙ) where open import Relation.Nul...
{ "alphanum_fraction": 0.6447436561, "avg_line_length": 30.6507936508, "ext": "agda", "hexsha": "92b6a451de209ab3ecf05c5fb76da8c53e863bda", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
open import prelude renaming (_≟Nat_ to _≟_) infixl 5 _$_ -- Copied pretty much verbatim Var = Nat data Term : Set where var : Var → Term fun : Term → Term _$_ : Term → Term → Term -- Doing full reduction, so values are either of the form -- (fun v) or (x v1 ... vN) data VarHeaded : Term → Set data Value : ...
{ "alphanum_fraction": 0.5212233061, "avg_line_length": 21.1899441341, "ext": "agda", "hexsha": "7622b7ff3cb33a1e29973f2c3656aa1dd694978d", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Data.Graph where open import Data.List as List using (List; []; _∷_) open import Data.Nat hiding (_⊔_) open import Data.Product open import Data.Vec as Vec using (Vec; []; _∷_) open import Data.Vec.Properties open import Level as ℓ using (Level; _⊔_) open import Finite open import Finite.Pigeonhole open import ...
{ "alphanum_fraction": 0.5538154897, "avg_line_length": 31.6396396396, "ext": "agda", "hexsha": "d910fec225343c5503f082d54b60135b929aab46", "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.Algebra.CommAlgebra.Instances.Unit where open import Cubical.Foundations.Prelude open import Cubical.Data.Unit open import Cubical.Algebra.Ring open import Cubical.Algebra.CommRing open import Cubical.Algebra.CommRing.Instances.Unit open import Cubical.Algebra.CommAlgebra priva...
{ "alphanum_fraction": 0.722675367, "avg_line_length": 23.5769230769, "ext": "agda", "hexsha": "cbccbeaf919d66402d38856b9ab177a88e92ce8c", "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...
factorial : ℕ → ℕ factorial zero = 1 factorial (suc n) = suc n * factorial n
{ "alphanum_fraction": 0.6753246753, "avg_line_length": 19.25, "ext": "agda", "hexsha": "7d45856f0af3eac00104077867aabab96725355e", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexsha": "...
{-# OPTIONS --cubical --no-import-sorts --no-exact-split --safe #-} module Cubical.Data.Queue.Truncated2List where open import Cubical.Foundations.Everything open import Cubical.Foundations.SIP open import Cubical.Structures.Queue open import Cubical.Data.Maybe open import Cubical.Data.List open import Cubical.Data....
{ "alphanum_fraction": 0.57181015, "avg_line_length": 32.2317880795, "ext": "agda", "hexsha": "dd0b469e5cd48fca6abb8a9a0d714aa9362ed747", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-22T02:02:01.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-22T02...
module Soundness where {- open import Relation.Binary.PropositionalEquality open import Data.Nat hiding (_>_) -} open import StdLibStuff open import Syntax open import STT open import FSC open import DerivedProps open import HelpDefs mutual sound : {n : ℕ} {Γ-t : Ctx n} (Γ : FSC-Ctx n Γ-t) (F : Form Γ-t $o) → ...
{ "alphanum_fraction": 0.4554512516, "avg_line_length": 121.44, "ext": "agda", "hexsha": "9f2bb374843069b82491d1291a4e0b4c594a52a3", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-01-15T11:51:19.000Z", "max_forks_repo_forks_event_min_datetime": "2016-05-17T20:28:1...
{-# OPTIONS --show-implicit #-} -- {-# OPTIONS -v tc.polarity:10 #-} module Issue44 where data Ty : Set where ι : Ty _⇒_ : Ty -> Ty -> Ty data Con : Set where ε : Con _<_ : Con -> Ty -> Con data Var : Con -> Ty -> Set where vZ : forall {Γ σ} -> Var (Γ < σ) σ vS : forall {Γ σ}{τ : Ty} -> Var Γ σ -> Var (Γ...
{ "alphanum_fraction": 0.5126964933, "avg_line_length": 21.7631578947, "ext": "agda", "hexsha": "d1345972aca5222273349cc82fd57c1e6f4774d0", "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 Agda.Builtin.Nat open import Agda.Builtin.FromNat open import Data.Unit using (⊤) open import Function using (const) module Data.Nat.FromNat where instance NumberNat : Number Nat NumberNat = record { Constraint = const ⊤ ; fromNat = λ n → n }
{ "alphanum_fraction": 0.7432950192, "avg_line_length": 23.7272727273, "ext": "agda", "hexsha": "392fa60e7c95956e61144a43ab79c261e8437dfa", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-09-05T08:58:13.000Z", "max_forks_repo_forks_event_min_datetime": "2018-09-05T...
module _ where open import Agda.Builtin.IO open import Agda.Builtin.String open import Agda.Builtin.Unit data D (A : Set) : Set where L : A → D A R : A → D A data T : Set where Var : (s : D String) → T test : T → String test (Var (L "abc")) = "" test (Var (L s)) = "" test (Var (R s)) = ""
{ "alphanum_fraction": 0.5880398671, "avg_line_length": 15.8421052632, "ext": "agda", "hexsha": "38bc22caa15419d21060b8c2d87b8d27d0d4ab04", "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...
import Relation.Binary.PropositionalEquality as Eq open Eq using (_≡_; refl) open import Data.Nat using (ℕ; zero; suc) open import Relation.Nullary using (Dec; yes; no) data _≤_ : ℕ → ℕ → Set where z≤n : ∀ {n : ℕ} → zero ≤ n s≤s : ∀ {m n : ℕ} → m ≤ n → suc m ≤ suc n _≤?_ : ∀ (m n : ℕ) → Dec (m ≤ n) zero ≤? n = ye...
{ "alphanum_fraction": 0.4984802432, "avg_line_length": 21.9333333333, "ext": "agda", "hexsha": "9160fe4dc46f708081c3128f8be0187430390de3", "lang": "Agda", "max_forks_count": 304, "max_forks_repo_forks_event_max_datetime": "2022-03-28T11:35:02.000Z", "max_forks_repo_forks_event_min_datetime": "2018-07-1...
module Matrix where open import Data.Nat open import Data.Vec Matrix : (A : Set) → ℕ → ℕ → Set Matrix A m n = Vec (Vec A m) n transpose : ∀ {A m n} → Matrix A m n → Matrix A n m transpose [] = replicate [] transpose (xs ∷ xss) = zipWith _∷_ xs (transpose xss) a = (1 ∷ 2 ∷ 3 ∷ []) ∷ (4 ∷ 5 ∷ 6 ∷ []) ∷ [] b = transpo...
{ "alphanum_fraction": 0.5753846154, "avg_line_length": 21.6666666667, "ext": "agda", "hexsha": "0d86e59df63200ebaa6b07ee0cd76954933601b9", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2018-11-09T22:08:40.000Z", "max_forks_repo_forks_event_min_datetime": "2018-11-09T...
-- Andreas, 2015-07-01, Issue 1599: -- abstract data needs to be positivity checked! -- {-# OPTIONS -v tc.pos:80 #-} data ⊥ : Set where abstract T : Set → Set T X = X → ⊥ data D : Set where lam : T D → D app : D → D → ⊥ app (lam f) = f omega : D omega = lam λ x → app x x Omega : ⊥ Omega = ...
{ "alphanum_fraction": 0.5509641873, "avg_line_length": 13.4444444444, "ext": "agda", "hexsha": "445e385e62220ae736ceeaad9bab81ec8f9ec889", "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...
-- submitted by Nisse, 2011-06-21 -- {-# OPTIONS -v tc.lhs.unify:15 --show-implicit #-} module Issue423 where -- import Common.Level ------------------------------------------------------------------------ -- Prelude data _≡_ {A : Set} (x : A) : A → Set where refl : x ≡ x record Σ (A : Set) (B : A → Set) : Set ...
{ "alphanum_fraction": 0.4639874739, "avg_line_length": 21.7727272727, "ext": "agda", "hexsha": "9e2a49b9ef0b6fdbcead462c31547f4d46b718c9", "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 --postfix-projections #-} module Relation.Nullary.Decidable.Base where open import Level open import Data.Bool open import Data.Empty data Reflects {a} (A : Type a) : Bool → Type a where ofʸ : (p : A) → Reflects A true ofⁿ : (¬p : ¬ A) → Reflects A false record Dec {a} (A :...
{ "alphanum_fraction": 0.5841584158, "avg_line_length": 28.0555555556, "ext": "agda", "hexsha": "0c20ab0f85f392fa5b7b5e1442f7151de8326bda", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-01-05T14:05:30.000Z", "max_forks_repo_forks_event_min_datetime": "2021-01-05T...
{-# OPTIONS --safe --warning=error --without-K #-} open import LogicalFormulae open import Numbers.Naturals.Definition open import Numbers.Naturals.Order open import Numbers.Naturals.Naturals -- for length open import Lists.Lists open import Orders.Partial.Definition open import Orders.Total.Definition open import Fun...
{ "alphanum_fraction": 0.6197644649, "avg_line_length": 59.9079754601, "ext": "agda", "hexsha": "d65b2e54b30f599680b270304770ad3324771d2b", "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...
-- Andreas, 2017-11-12, issue #2803 -- Problem: names of hidden variable patterns -- can get lost during case splitting. -- They actually get lost already during lhs type checking, -- but it is noticed only when printed back to the user -- during case splitting. -- {-# OPTIONS -v tc.lhs:40 #-} record HFun (A B : Se...
{ "alphanum_fraction": 0.6337760911, "avg_line_length": 21.08, "ext": "agda", "hexsha": "18cd5779a5b14b1846a7202d3379de355baacbc1", "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...
{-# OPTIONS --injective-type-constructors #-} module InjectiveTypeConstructors where data D (A : Set) : Set where data _==_ (A : Set) : Set → Set where refl : A == A D' = D injD : ∀ {A B} → D A == D' B → A == B injD refl = refl
{ "alphanum_fraction": 0.5872340426, "avg_line_length": 16.7857142857, "ext": "agda", "hexsha": "8f001b68e6846adf85b916abd2d607d35dbe9e1e", "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 quotient inductive-inductive definition of the lifting -- construction on ω-cpos ------------------------------------------------------------------------ -- The code in this module is based on a suggestion from Paolo -- Capriotti. {-# OPTIO...
{ "alphanum_fraction": 0.486831761, "avg_line_length": 29.325648415, "ext": "agda", "hexsha": "879b431bbe9749a15573731c09ab1a55cd3f3a2e", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexs...
{-# OPTIONS --without-K #-} module Explore.Subset where open import Relation.Binary.PropositionalEquality -- TODO
{ "alphanum_fraction": 0.7586206897, "avg_line_length": 16.5714285714, "ext": "agda", "hexsha": "83ffa53b1b75f429742d6135c122a7f9b7d309cb", "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.HITs.FreeAbGroup where open import Cubical.HITs.FreeAbGroup.Base public
{ "alphanum_fraction": 0.7747747748, "avg_line_length": 22.2, "ext": "agda", "hexsha": "5a71a34d3efa5baafe2ee74a8320e42c4e9e1801", "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...
-- Inductive types -- See Chapter 15 of "Practical Foundations for Programming Languages" by Robert Harper module ITypes where open import Data.Vec open import Data.Nat open import Data.List open import Data.Fin.Base -- auxiliary data Bool : Set where True False : Bool _if_else_ : {A : Set} → A → Bool → A → A A i...
{ "alphanum_fraction": 0.5145510836, "avg_line_length": 31.9801980198, "ext": "agda", "hexsha": "0460e509ce6d2a6e2d055e298a54187a8b80e077", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-03-14T17:52:29.000Z", "max_forks_repo_forks_event_min_datetime": "2019-03-14T...
module Numeric.Nat.BinarySearch where open import Prelude open import Numeric.Nat.Properties open import Tactic.Nat open import Control.WellFounded open import Numeric.Nat.DivMod data SearchResult! {a} (P : Nat → Set a) (lo hi : Nat) : Set a where here : ∀ k (!pk : ¬ P k) (psk : P (suc k)) (lo≤k : lo ≤ k) (k<hi : ...
{ "alphanum_fraction": 0.5055108728, "avg_line_length": 35.3368421053, "ext": "agda", "hexsha": "fe90b7edede4e7958040082864356f2af1bfba9d", "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...
-- Andreas, 2011-10-04 -- I'd like to infer the type of a even though it is irrelevant -- E.g. when pressing C-c C-. module InferIrrelevant where f : (A : Set)(g : .A → A).(a : A) → A f A g a = {!a!}
{ "alphanum_fraction": 0.605, "avg_line_length": 28.5714285714, "ext": "agda", "hexsha": "2650038bcb50825a48a65994f786aecca3bb7f01", "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": ...
{- Copyright 2019 Lisandra Silva Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
{ "alphanum_fraction": 0.5683673469, "avg_line_length": 27.7358490566, "ext": "agda", "hexsha": "27ae40f58b48d086e31f52c2aa943d82f8a1c829", "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 LecSigma where open import CS410-Prelude open import CS410-Nat open import CS410-Functor -- look in the Prelude -- talk about * -- talk about + _N>_ : Nat -> Nat -> Set m N> n = m N>= suc n Fin : Nat -> Set Fin n = Sg Nat \ m -> n N> m foo : Fin 7 foo = 5 , <> -- command-response systems _<|_ : (C : Set)...
{ "alphanum_fraction": 0.4997170345, "avg_line_length": 20.3103448276, "ext": "agda", "hexsha": "9131c2419b074d8ff4d82c942c1c180ba788c6ab", "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 Oscar.Class.Similarity open import Oscar.Class.Reflexivity open import Oscar.Class.Surjection open import Oscar.Class.Leftunit open import Oscar.Class.Smap open import Oscar.Class.Symmetrical open import Oscar.Class.Unit open import Oscar.Data.Surjcollation open import Oscar.Prelude module Oscar.Class.Sma...
{ "alphanum_fraction": 0.5472636816, "avg_line_length": 31.5857142857, "ext": "agda", "hexsha": "077d3d50a0aea1b9fcfcc72cdea5ade7ba7c542d", "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 list-test where open import bool open import list open import nat open import list-to-string open import bool-to-string open import eq test1 : 𝕃 𝔹 test1 = tt :: tt :: tt :: [] test2 : 𝕃 𝔹 test2 = ff :: ff :: [] test3 = test1 ++ test2 test-lem : test3 ≡ tt :: tt :: tt :: ff :: ff :: [] test-lem = refl t...
{ "alphanum_fraction": 0.58984375, "avg_line_length": 19.6923076923, "ext": "agda", "hexsha": "3171b843d33d9e612be32cfa102d766bc60c5c3c", "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-03T2...
{-# OPTIONS --without-K --rewriting #-} open import lib.Basics module lib.types.Bool where {- data Bool : Type₀ where true : Bool false : Bool {-# BUILTIN BOOL Bool #-} {-# BUILTIN FALSE false #-} {-# BUILTIN TRUE true #-} -} Bool = ⊤ ⊔ ⊤ pattern true = inl unit pattern false = inr unit ⊙Bool : Ptd₀ ⊙Bool = ...
{ "alphanum_fraction": 0.64374034, "avg_line_length": 23.1071428571, "ext": "agda", "hexsha": "01ddc93118edf9b8d4bdd509ad31ff4ff637b7ca", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_hexs...
open import Coinduction using ( ∞ ; ♯_ ; ♭ ) open import Data.Product using ( _×_ ; _,_ ; proj₁ ) open import FRP.LTL.Time.Bound using ( Time∞ ; _≼_ ; _≺_ ; fin ; +∞ ; +∞-top ; ≼-refl ; _≼-trans_ ; ≡-impl-≽ ; ≺-impl-≼ ; ≺-impl-⋡ ; t≺+∞ ; _≼-case_ ; lt ; eq ; gt ) open import FRP.LTL.Time.Interval using ( [_⟩ ;...
{ "alphanum_fraction": 0.4283828383, "avg_line_length": 45.9090909091, "ext": "agda", "hexsha": "565d491d6193563face20ee18a214f875c20ba3c", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:39:04.000Z", "max_forks_repo_forks_event_min_datetime": "2015-03-01T...
module UselessAbstractPrimitive where postulate Int : Set {-# BUILTIN INTEGER Int #-} abstract primitive primIntegerPlus : Int -> Int -> Int
{ "alphanum_fraction": 0.72, "avg_line_length": 15, "ext": "agda", "hexsha": "3c01787a91956b017bf57793c06a03ddeae907dc", "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.000Z", "...
{-# OPTIONS --omega-in-omega --no-termination-check --overlapping-instances #-} -- This library is licensed under 0BSD. You can read more about it at its GitHub repository: https://github.com/Zambonifofex/lightlib module index where -- The `Light.Libary` file exports modules referencing interface files and other mis...
{ "alphanum_fraction": 0.8030660377, "avg_line_length": 47.1111111111, "ext": "agda", "hexsha": "49e0cd7a7c3dce3b72686b4f10669b737837f99a", "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 Everything module Test.Test7 where 𝓅rop-id : ∀ {𝔵} {𝔛 : Ø 𝔵} {𝔞} {𝔄 : 𝔛 → Ø 𝔞} {𝔟} {𝔅 : 𝔛 → Ø 𝔟} (let _∼_ = Arrow 𝔄 𝔅) {ℓ̇} {_∼̇_ : ∀ {x y} → x ∼ y → x ∼ y → Ø ℓ̇} ⦃ _ : Transitivity.class _∼_ ⦄ ⦃ _ : Reflexivity.class _∼_ ⦄ ⦃ _ : Transleftidentity!.class _...
{ "alphanum_fraction": 0.4550669216, "avg_line_length": 23.7727272727, "ext": "agda", "hexsha": "b98daa02b18bbccc046cd7a244165bd8b7efcf81", "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...
{- Types Summer School 2007 Bertinoro Aug 19 - 31, 2007 Agda Ulf Norell -} -- Now we're getting somewhere! Inductive families of datatypes. module Families where -- You can import modules defined in other files. -- More details later......
{ "alphanum_fraction": 0.535898453, "avg_line_length": 22.3097345133, "ext": "agda", "hexsha": "7f9e86f494d167ec284841c3dd98a80781194c00", "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 -Wall #-} module noinfixdecl where -- warning acts on data constructors data #2 : Set where one : #2 two : #2 neg_ : #2 → #2 -- warning acts on definitions infixl 3 _⊓_ _⊔_ : #2 → #2 → #2 _⊓_ : #2 → #2 → #2 one ⊔ n = n two ⊔ n = two (neg v) ⊔ n = neg (v ⊓ neg n) one ⊓ n = one two ...
{ "alphanum_fraction": 0.5496031746, "avg_line_length": 17.3793103448, "ext": "agda", "hexsha": "126b9c9a536d60ab8844d1dfb8cd7903066773a6", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-0...
{-# OPTIONS --without-K #-} open import lib.Basics open import lib.NType2 open import lib.types.Nat open import lib.types.TLevel open import lib.types.Empty open import lib.types.Pi open import lib.types.Sigma open import lib.types.Truncation open import lib.types.Pointed open import lib.types.Group open import lib.ty...
{ "alphanum_fraction": 0.4858728557, "avg_line_length": 35.8192771084, "ext": "agda", "hexsha": "6e3d0235ef0865ae0c50584207f6d43aab1af24c", "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 Human.Test where open import Human.Humanity -- sum 7 -- 0 + 1 + 2 + 3 + 4 + 5 + 6 -- function sum(x) { -- var result = 0; -- for (var i = 0; i < 10; ++i) { -- result = result + i; -- } -- return result; -- } sum : Nat → Nat sum i = init 0 for i from 0 to 10 do: λ result → result + 1
{ "alphanum_fraction": 0.5063291139, "avg_line_length": 14.3636363636, "ext": "agda", "hexsha": "80806f14678bac1dcf040faf57457b31b6f71c54", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
------------------------------------------------------------------------ -- A small library of derived parser combinators ------------------------------------------------------------------------ module TotalParserCombinators.Lib where open import Category.Monad open import Codata.Musical.Notation open import Function...
{ "alphanum_fraction": 0.4789083358, "avg_line_length": 33.9134808853, "ext": "agda", "hexsha": "c73a67d76fe4835ede902dabb05f1847d6dfdfcc", "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...
{- Definition of various kinds of categories. This library follows the UniMath terminology, that is: Concept Ob C Hom C Univalence Precategory Type Type No Category Type Set No Univalent Category Type Set Yes The most useful notion is Category and t...
{ "alphanum_fraction": 0.7163232964, "avg_line_length": 28.6818181818, "ext": "agda", "hexsha": "f92b528338ef30a704bf4eeba5ffe937b03332de", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{-# OPTIONS --without-K --safe #-} open import Algebra open import Relation.Unary open import Relation.Binary hiding (Decidable) module Data.FingerTree.Split.StoredPredicate {r m} (ℳ : Monoid r m) {s} {ℙ : Pred (Monoid.Carrier ℳ) s} (ℙ-resp : ℙ Respects (Monoid._≈_ ℳ)) (ℙ? : Decidable ℙ) where open Mon...
{ "alphanum_fraction": 0.6189759036, "avg_line_length": 20.1212121212, "ext": "agda", "hexsha": "74221fdc9e9f87229373438931aa2d5564d0725c", "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...
------------------------------------------------------------------------ -- Commutative semirings with some additional structure ("almost" -- commutative rings), used by the ring solver ------------------------------------------------------------------------ module Algebra.RingSolver.AlmostCommutativeRing where open ...
{ "alphanum_fraction": 0.5453572384, "avg_line_length": 31.1416666667, "ext": "agda", "hexsha": "6e08f30d72158334e95ca4efc54d95e92bd982db", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:54:10.000Z", "max_forks_repo_forks_event_min_datetime": "2015-07-21T...
module Prelude.Nat.Properties where open import Prelude.Bool open import Prelude.Nat.Core open import Prelude.Equality open import Prelude.Semiring suc-inj : ∀ {n m} → suc n ≡ suc m → n ≡ m suc-inj refl = refl --- Addition --- add-zero-r : (n : Nat) → n + 0 ≡ n add-zero-r zero = refl add-zero-r (suc n) = suc $≡...
{ "alphanum_fraction": 0.5229950589, "avg_line_length": 32.8875, "ext": "agda", "hexsha": "356c41f6c253821e2c4a36025ff75e85db08f15e", "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-12T18:03...
------------------------------------------------------------------------ -- The Agda standard library -- -- Keys for AVL trees -- the original key type extended with a new -- minimum and maximum. ----------------------------------------------------------------------- {-# OPTIONS --without-K --safe #-} open import Rel...
{ "alphanum_fraction": 0.518694362, "avg_line_length": 24.7794117647, "ext": "agda", "hexsha": "eb8a9f5e3e8f281019740c022ff17eb29ef80040", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2021-11-04T06:54:45.000Z", "max_forks_repo_forks_event_min_datetime": "2021-11-04T0...
open import Data.Nat ten : ℕ ten = 10
{ "alphanum_fraction": 0.6666666667, "avg_line_length": 7.8, "ext": "agda", "hexsha": "fe431f2166cdf7f8127a6bfa80fec274235726ad", "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": "c1...
module Data.Collection.Inclusion where open import Data.Collection.Equivalence open import Data.Collection.Core open import Function using (id; _∘_) open import Function.Equivalence using (equivalence) open import Level using (Level; suc; zero) open import Relation.Unary hiding (_⇒_) open import Relation.Binary open ...
{ "alphanum_fraction": 0.5319727891, "avg_line_length": 28.5436893204, "ext": "agda", "hexsha": "2e3752dc3fed438710e561ba0075c5ee7992bd67", "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 well-typed-syntax-pre-interpreter where open import common public open import well-typed-syntax open import well-typed-syntax-helpers max-level : Level max-level = lsuc lzero module inner (context-pick-if' : ∀ ℓ (P : Context → Set ℓ) (Γ : Context) ...
{ "alphanum_fraction": 0.4813411897, "avg_line_length": 51.2805755396, "ext": "agda", "hexsha": "8b595a714e96453efcf686669aa21f9dd0569ab9", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2015-07-17T18:53:37.000Z", "max_forks_repo_forks_event_min_datetime": "2015-07-17T...
-- Andreas, 2016-06-20 -- Issue #191, reported 2009-12-02 by Nisse data T (A : Set) : Set → Set1 where c₁ : {B : Set} → T A B c₂ : T A A foo : {A B C : Set} → T A (B → C) → T A B → Set₁ foo c₁ y = Set foo x y = {!y!} -- WAS: -- Perform the indicated case split. Agda will happily replace the -- last ...
{ "alphanum_fraction": 0.6719840479, "avg_line_length": 30.3939393939, "ext": "agda", "hexsha": "8c677386669f50212cd83aa3c4ffde8cc59a436b", "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...
------------------------------------------------------------------------ -- Equivalence relations ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} open import Equality module Equivalence-relation {e⁺} (eq : ∀ {a p} → Equality-with-J a p e⁺) where open Der...
{ "alphanum_fraction": 0.5834893617, "avg_line_length": 28.5194174757, "ext": "agda", "hexsha": "7acee8c9252da690d8f3320c394ba65421a4de5f", "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 Types4Crib where open import Basics public _<=_ : Nat -> Nat -> Set ze <= y = One su x <= ze = Zero su x <= su y = x <= y cmp : (x y : Nat) -> (x <= y) + (y <= x) cmp ze y = inl <> cmp (su x) ze = inr <> cmp (su x) (su y) = cmp x y data Bnd : Set where bot : Bnd # : Nat -> Bnd top : Bnd _<B=_ : Bnd ->...
{ "alphanum_fraction": 0.5698610095, "avg_line_length": 41.4242424242, "ext": "agda", "hexsha": "608ff6c6725cdf5158af6c4b56dd21cb754106bb", "lang": "Agda", "max_forks_count": 1, "max_forks_repo_forks_event_max_datetime": "2019-06-09T05:39:02.000Z", "max_forks_repo_forks_event_min_datetime": "2019-06-09T...
{-# OPTIONS --safe #-} module Cubical.Algebra.AbGroup.Instances.Direct-Sum where open import Cubical.Foundations.Prelude open import Cubical.Algebra.AbGroup open import Cubical.Algebra.Direct-Sum.Base open import Cubical.Algebra.Direct-Sum.Properties open import Cubical.Algebra.Polynomials.Multivariate.Base privat...
{ "alphanum_fraction": 0.7074235808, "avg_line_length": 26.4230769231, "ext": "agda", "hexsha": "42c4d24bfb64076f9e1bd809781723fecc5fecfd", "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...
-- Testing the version option when used without type-check the file. -- -- N.B. It is necessary to change the Issue1244b.out file when using -- different versions of Agda.
{ "alphanum_fraction": 0.75, "avg_line_length": 34.4, "ext": "agda", "hexsha": "3aceaaa3c00648935ab9f214236f9d7da74a9f13", "lang": "Agda", "max_forks_count": 371, "max_forks_repo_forks_event_max_datetime": "2022-03-30T19:00:30.000Z", "max_forks_repo_forks_event_min_datetime": "2015-01-03T14:04:08.000Z",...
-- Andreas, 2019-04-30, issue #3731 -- Compiler backend: Do not look for a main function if not the main module. open import Agda.Builtin.Nat module Issue3731 where module M where module main where record R : Set where field main : Nat data Main : Set where main : Main module N where data mai...
{ "alphanum_fraction": 0.6747474747, "avg_line_length": 14.5588235294, "ext": "agda", "hexsha": "cb2bed9957160994358c22a6c78b52b44e81085d", "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 Function.Multi.Functions where open import Data import Data.Option.Functions as Option open import Data.Tuple renaming (curry to curry₁ ; uncurry to uncurry₁) using (_⨯_ ; _,_) open import Data.Tuple.Raise import Data.Tuple.Raiseᵣ.Functions as Raise open import Data.Tuple.RaiseTypeᵣ open import Data.T...
{ "alphanum_fraction": 0.5305100182, "avg_line_length": 51.874015748, "ext": "agda", "hexsha": "efe7c7112426dac2b0d3b367c5a262e4d534e8b5", "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 Mockingbird.Forest using (Forest) -- Gödel's Forest module Mockingbird.Problems.Chapter17 {b ℓ} (forest : Forest {b} {ℓ}) where open import Data.Empty using (⊥-elim) open import Data.Product using (_×_; _,_; proj₁; proj₂; ∃-syntax) open import Data.Sum using (_⊎_; inj₁; inj₂) open import Function using (_...
{ "alphanum_fraction": 0.4959469418, "avg_line_length": 34.5732484076, "ext": "agda", "hexsha": "3a7aea3377fb137af69bd86948c12ae71ffd0dba", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
------------------------------------------------------------------------ -- A definitional interpreter ------------------------------------------------------------------------ {-# OPTIONS --sized-types #-} module Lambda.Delay-monad.Interpreter where open import Equality.Propositional open import Prelude open import ...
{ "alphanum_fraction": 0.4722941481, "avg_line_length": 24.4430379747, "ext": "agda", "hexsha": "1b63bbbb83dccc2c1639f98f95dacb1df43f09ff", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{- This file contains: Properties of FreeGroupoid: - Induction principle for the FreeGroupoid on hProps - ∥freeGroupoid∥₂ is a Group - FreeGroup A ≡ ∥ FreeGroupoid A ∥₂ -} {-# OPTIONS --safe #-} module Cubical.HITs.FreeGroupoid.Properties where open import Cubical.HITs.FreeGroupoid.Base open import Cubical.HITs.Fr...
{ "alphanum_fraction": 0.5573650694, "avg_line_length": 40.7617021277, "ext": "agda", "hexsha": "4093d2063af0103b043eb712c8ef9ebb82cfce50", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9. Copyright (c) 2020, 2021, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl -} -- This is a selection of useful functions and definitions -- from the ...
{ "alphanum_fraction": 0.5409012728, "avg_line_length": 32.8846153846, "ext": "agda", "hexsha": "3b1c8ae4977ee2a91a7793294ce7cb66df75daa6", "lang": "Agda", "max_forks_count": null, "max_forks_repo_forks_event_max_datetime": null, "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_head_he...
module Data.List.Primitive where -- In Agda 2.2.10 and below, there's no FFI binding for the stdlib -- List type, so we have to roll our own. This will change. data #List (X : Set) : Set where [] : #List X _∷_ : X → #List X → #List X {-# COMPILED_DATA #List [] [] (:) #-}
{ "alphanum_fraction": 0.6223021583, "avg_line_length": 27.8, "ext": "agda", "hexsha": "5184caa4c6e27d88598f30563cb73613cb6758e6", "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-12T11:40:14....
{-# OPTIONS --safe --experimental-lossy-unification #-} -- This file could be proven using the file Sn -- However the proofs are easier than in Sn -- And so kept for pedagologic reasons module Cubical.ZCohomology.CohomologyRings.S1 where open import Cubical.Foundations.Prelude open import Cubical.Foundations.Functio...
{ "alphanum_fraction": 0.4776918501, "avg_line_length": 40.344, "ext": "agda", "hexsha": "e6f4db3c63300407e9568ac1ae62971f8b700daa", "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 --type-in-type --no-termination-check --no-positivity-check #-} module IMDesc where --******************************************** -- Prelude --******************************************** -- Some preliminary stuffs, to avoid relying on the stdlib --**************** -- Sigma and ...
{ "alphanum_fraction": 0.3777818314, "avg_line_length": 29.4731182796, "ext": "agda", "hexsha": "f241905418cc6bdad4f94f8104d8686da5485127", "lang": "Agda", "max_forks_count": 12, "max_forks_repo_forks_event_max_datetime": "2022-02-11T01:57:40.000Z", "max_forks_repo_forks_event_min_datetime": "2016-08-14...
module Lib.Fin where open import Lib.Nat open import Lib.Bool open import Lib.Id data Fin : Nat -> Set where zero : {n : Nat} -> Fin (suc n) suc : {n : Nat} -> Fin n -> Fin (suc n) fromNat : (n : Nat) -> Fin (suc n) fromNat zero = zero fromNat (suc n) = suc (fromNat n) toNat : {n : Nat} -> Fin n -> Nat toN...
{ "alphanum_fraction": 0.5903861956, "avg_line_length": 30.425, "ext": "agda", "hexsha": "f83c36e385fd814f198e8aa1b4fdac6f15255b7e", "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": ...
------------------------------------------------------------------------ -- Integer division ------------------------------------------------------------------------ module Data.Nat.DivMod where open import Data.Nat open import Data.Nat.Properties open SemiringSolver open import Data.Fin as Fin using (Fin; zero; suc;...
{ "alphanum_fraction": 0.5192056441, "avg_line_length": 33.2782608696, "ext": "agda", "hexsha": "a1dbdc530ebbf77cfa5024e96aab9426f9e037b5", "lang": "Agda", "max_forks_count": 3, "max_forks_repo_forks_event_max_datetime": "2022-03-12T11:54:10.000Z", "max_forks_repo_forks_event_min_datetime": "2015-07-21T...
{-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} -- {-# OPTIONS --without-K #-} -- [1] Hofmann, Martin and Thomas Streicher (1998). “The groupoid -- interpretation on type theory”. In: Twenty-five Years of -- Constru...
{ "alphanum_fraction": 0.5450704225, "avg_line_length": 32.2727272727, "ext": "agda", "hexsha": "3d32f6bab19db8eec9a46596bca0241e299fd7b2", "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...
-- Jesper, 2019-05-20: When checking confluence of two rewrite rules, -- we disable all reductions during unification of the left-hand -- sides. However, we should not disable reductions at the type-level, -- as shown by this (non-confluent) example. {-# OPTIONS --rewriting --confluence-check #-} open import Agda.Bui...
{ "alphanum_fraction": 0.6420798065, "avg_line_length": 25.84375, "ext": "agda", "hexsha": "02c78b54d1f8f92f5181d9b8245f6f11845f7111", "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-01T18:30...
module UniDB.Morph.Weaken where open import UniDB.Spec -------------------------------------------------------------------------------- data Weaken : MOR where weaken : {γ : Dom} (δ : Dom) → Weaken γ (γ ∪ δ) instance iLkWeaken : {T : STX} {{vrT : Vr T}} → Lk T Weaken lk {{iLkWeaken}} (weaken δ) i = vr (wk δ ...
{ "alphanum_fraction": 0.5212691771, "avg_line_length": 33.3488372093, "ext": "agda", "hexsha": "e58ce0380684a38960713e3b523ccb718ac90abc", "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...
-- Jesper, 2017-01-23: when instantiating a variable during unification, -- we should check that the type of the variable is equal to the type -- of the equation (and not just a subtype of it). See Issue 2407. open import Agda.Builtin.Equality open import Agda.Builtin.Size data D : Size → Set where J= : ∀ {ℓ} {s : ...
{ "alphanum_fraction": 0.4768015795, "avg_line_length": 33.7666666667, "ext": "agda", "hexsha": "ef66911af05ddfee0a79f2a577a352c7611d8603", "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...
-- 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: ??? open import AISEC.Utils open import Data.Real as ℝ using (ℝ) open import Data.List module MyTestModule where f : Tensor ℝ (...
{ "alphanum_fraction": 0.6359516616, "avg_line_length": 26.48, "ext": "agda", "hexsha": "c123451546ec194051e793d550920b1310ef6e4d", "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 Numeral.Natural.Oper.Proofs.Structure where open import Logic.Predicate open import Numeral.Natural open import Numeral.Natural.Oper.Proofs open import Numeral.Natural.Oper open import Relator.Equals open import Relator.Equals.Proofs open import Structure.Operator.Monoid instance [+]-monoid : Monoid(_+_) M...
{ "alphanum_fraction": 0.7612903226, "avg_line_length": 25.8333333333, "ext": "agda", "hexsha": "5f87d0afe73a895e0119c41f310ef8a2a7e1af2c", "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 Computability.Function where open import Computability.Prelude import Function variable l₀ l₁ : Level Injective : {A : Set l₀}{B : Set l₁} → (A → B) → Set _ Injective = Function.Injective _≡_ _≡_ Surjective : {A : Set l₀}{B : Set l₁} → (A → B) → Set _ Surjective {A = A} {B = B} ...
{ "alphanum_fraction": 0.6290672451, "avg_line_length": 25.6111111111, "ext": "agda", "hexsha": "e05e4ede036213ad08609aeebf068482037d83b1", "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.HITs.FreeGroup where open import Cubical.HITs.FreeGroup.Base public open import Cubical.HITs.FreeGroup.Properties public
{ "alphanum_fraction": 0.7950310559, "avg_line_length": 23, "ext": "agda", "hexsha": "65ec2892bcd0d156bf72f11c37fa3654f9167214", "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": "58c...
mutual data ℕμ : Set where zero : ℕμ succ : ℕμ → ℕμ delay : ℕν → ℕμ record ℕν : Set where coinductive field step : ℕμ open ℕν public mutual data _≤μ_ : ℕμ → ℕμ → Set where -- Standard part of the order le₀ : (y : ℕμ) → zero ≤μ y leₛ : {x y : ℕμ} → x ≤μ y → succ x ≤μ succ y -...
{ "alphanum_fraction": 0.5420765027, "avg_line_length": 24.0789473684, "ext": "agda", "hexsha": "fd3b152962b458588fb88adf32a930790014ae1b", "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 Issue329b where abstract infixl 0 D Undeclared data D : Set where
{ "alphanum_fraction": 0.746835443, "avg_line_length": 11.2857142857, "ext": "agda", "hexsha": "0dde1de65ec7cbbb68beaab71131c3d3d77f6634", "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-12T1...
{-# OPTIONS --without-K --safe #-} open import Level hiding (zero) open import Relation.Binary module SDG.Extra.OrderedAlgebra.Structures {a ℓ} {A : Set a} (_≈_ : Rel A ℓ) where open import Algebra.Structures open import Algebra.FunctionProperties record IsOrderedCommutativeRing (_<_ : Rel A ℓ) (_+_ _*_ : ...
{ "alphanum_fraction": 0.625, "avg_line_length": 28, "ext": "agda", "hexsha": "414838d16aa68b2f56100aaacc56b62b5bba0a47", "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": "6814e6f0ba...
{-# OPTIONS --no-termination-check #-} module PiPath where open import Level open import Data.Empty open import Data.Unit open import Data.Sum open import Data.Product open import Relation.Binary.PropositionalEquality ------------------------------------------------------------------------------ -- Universe of types...
{ "alphanum_fraction": 0.4971106413, "avg_line_length": 35.2985074627, "ext": "agda", "hexsha": "38c8ea832bc83baf3ec010119ef3d9bad1cde15f", "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...