commit
stringlengths
40
40
old_file
stringlengths
2
205
new_file
stringlengths
2
205
old_contents
stringlengths
0
32.9k
new_contents
stringlengths
1
38.9k
subject
stringlengths
3
9.4k
message
stringlengths
6
9.84k
lang
stringlengths
3
13
license
stringclasses
13 values
repos
stringlengths
6
115k
785dddce82b3dc294f8d52a3a8a96b64366b1ac4
Base/Change/Equivalence.agda
Base/Change/Equivalence.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence ------------------------------------------------------------------------ module Base.Change.Equivalence where open import Relation.Binary.PropositionalEquality open import Base.Chang...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence ------------------------------------------------------------------------ module Base.Change.Equivalence where open import Relation.Binary.PropositionalEquality open import Base.Chang...
Remove more
Remove more No Structure in Base. Old-commit-hash: 81cee315c1ade9b842f0400fbc2bd215a189e8dc
Agda
mit
inc-lc/ilc-agda
2aa331ecc397f402c621e7b4b53886eb5ca53e91
Parametric/Change/Term.agda
Parametric/Change/Term.agda
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Change.Type as ChangeType module Parametric.Change.Term {Base : Set} (Constant : Term.Structure Base) (ΔBase : ChangeType.Structure Base) where -- Terms that operate on changes open Type.Structure Base open Te...
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Change.Type as ChangeType module Parametric.Change.Term {Base : Set} (Constant : Term.Structure Base) (ΔBase : ChangeType.Structure Base) where -- Terms that operate on changes open Type.Structure Base open Te...
Use HOAS-enabled helpers for nested abstractions.
Use HOAS-enabled helpers for nested abstractions. Old-commit-hash: f5006b448dcc30a8ff103cf5de501e945e14faa1
Agda
mit
inc-lc/ilc-agda
24ce7b62d29582982f0f0c2694ebd10a473113aa
Game/IND-CCA2.agda
Game/IND-CCA2.agda
{-# OPTIONS --without-K #-} open import Type open import Data.Bit open import Data.Maybe open import Data.Product open import Data.Unit open import Data.Nat.NP open import Rat open import Explore.Type open import Explore.Explorable open import Explore.Product open Operators open import Relation.Binary.Propositional...
{-# OPTIONS --without-K #-} open import Type open import Data.Bit open import Data.Maybe open import Data.Product open import Data.Unit open import Data.Nat.NP --open import Rat open import Explore.Type open import Explore.Explorable open import Explore.Product open Operators open import Relation.Binary.Proposition...
Hide the Rat code
IND-CCA2: Hide the Rat code
Agda
bsd-3-clause
crypto-agda/crypto-agda
16f8a95227efdacdb93599ca7b8ddfd847c2e47a
Parametric/Denotation/Value.agda
Parametric/Denotation/Value.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Value domains for languages described in Plotkin style ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type module Parametric.Denotation.Value (Base : ...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Values for standard evaluation (Def. 3.1 and 3.2, Fig. 4c and 4f). ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type module Parametric.Denotation.Value ...
Document P.D.Value.
Document P.D.Value. Old-commit-hash: bfaab88fbd6365ff0b9046dd999ccd1362c526d6
Agda
mit
inc-lc/ilc-agda
a2f7958b6a6e7245442d1e150092aacdc7c8707d
examples/Propositional.agda
examples/Propositional.agda
module Propositional where open import Data.Nat open import Relation.Binary.PropositionalEquality open import Holes.Term using (⌞_⌟) open import Holes.Cong.Propositional open ≡-Reasoning -------------------------------------------------------------------------------- -- Some easy lemmas ---------------------------...
module Propositional where open import Data.Nat open import Relation.Binary.PropositionalEquality open import Holes.Term using (⌞_⌟) open import Holes.Cong.Propositional open ≡-Reasoning -------------------------------------------------------------------------------- -- Some easy lemmas ---------------------------...
Add a hole in the examples that's strictly unnecessary
Add a hole in the examples that's strictly unnecessary ... but potentially confusing if it isn't there
Agda
mit
bch29/agda-holes
48d1be2bb4bb61634b15fbd0cff064c02be1f4f9
Base/Syntax/Context.agda
Base/Syntax/Context.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Variables and contexts -- -- This module defines the syntax of contexts, prefixes of -- contexts and variables and properties of these notions. -- -- This module is parametric in the syntax of types, so it -- can be...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Variables and contexts -- -- This module defines the syntax of contexts, prefixes of -- contexts and variables and properties of these notions. -- -- This module is parametric in the syntax of types, so it -- can be...
Comment on handling of contexts
Comment on handling of contexts Old-commit-hash: 0bfc0dfdc024921016f8df0d8252aa20f5f0f8d6
Agda
mit
inc-lc/ilc-agda
7ec8bed818d248b395b4b0b2c2d2f21361f940bc
Thesis/LangOps.agda
Thesis/LangOps.agda
module Thesis.LangOps where open import Thesis.Lang open import Thesis.Changes open import Thesis.LangChanges open import Relation.Binary.PropositionalEquality open import Postulate.Extensionality oplusτo : ∀ {Γ} τ → Term Γ (τ ⇒ Δt τ ⇒ τ) ominusτo : ∀ {Γ} τ → Term Γ (τ ⇒ τ ⇒ Δt τ) onilτo : ∀ {Γ} τ → Term Γ (τ ⇒ Δt τ...
module Thesis.LangOps where open import Thesis.Lang open import Thesis.Changes open import Thesis.LangChanges open import Relation.Binary.PropositionalEquality open import Postulate.Extensionality oplusτo : ∀ {Γ} τ → Term Γ (τ ⇒ Δt τ ⇒ τ) ominusτo : ∀ {Γ} τ → Term Γ (τ ⇒ τ ⇒ Δt τ) onilτo : ∀ {Γ} τ → Term Γ (τ ⇒ Δt τ...
Add lemmas I present in thesis
Add lemmas I present in thesis
Agda
mit
inc-lc/ilc-agda
965133f11d3863769cb8e636eff326a49bc7321b
Crypto/JS/BigI/CyclicGroup.agda
Crypto/JS/BigI/CyclicGroup.agda
{-# OPTIONS --without-K #-} open import Type.Eq open import FFI.JS using (Bool; trace-call; _++_) open import FFI.JS.Check renaming (check to check?) --renaming (warn-check to check?) open import FFI.JS.BigI open import Data.List.Base using (List; foldr) open import Data.Two hiding (_==_) open import Relation.B...
{-# OPTIONS --without-K #-} open import Type.Eq open import FFI.JS using (Bool; trace-call; _++_) open import FFI.JS.Check renaming (check to check?) --renaming (warn-check to check?) open import FFI.JS.BigI open import Data.List.Base using (List; foldr) open import Data.Two hiding (_==_) open import Relation.B...
rename 𝔾 as ℤ[ p ]★
CyclicGroup: rename 𝔾 as ℤ[ p ]★
Agda
bsd-3-clause
crypto-agda/crypto-agda
da7ed128a0220380c3109913af5f58760ad241d3
Base/Denotation/Notation.agda
Base/Denotation/Notation.agda
module Base.Denotation.Notation where -- OVERLOADING ⟦_⟧ NOTATION -- -- This module defines a general mechanism for overloading the -- ⟦_⟧ notation, using Agda’s instance arguments. open import Level record Meaning (Syntax : Set) {ℓ : Level} : Set (suc ℓ) where constructor meaning field {Semantics} : Set...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Overloading ⟦_⟧ notation -- -- This module defines a general mechanism for overloading the -- ⟦_⟧ notation, using Agda’s instance arguments. ------------------------------------------------------------------------ ...
Improve commentary in Base.Denotation.Notation.
Improve commentary in Base.Denotation.Notation. Old-commit-hash: f51d5958c73259a9120fc8a2ad20854bb12f8870
Agda
mit
inc-lc/ilc-agda
66a643a5678be6f131477803e19ed0cb52159556
agda/Equality.agda
agda/Equality.agda
-- This is an implementation of the equality type for Sets. Agda's -- standard equality is more powerful. The main idea here is to -- illustrate the equality type. module Equality where open import Level -- The equality of two elements of type A. The type a ≡ b is a family -- of types which captures the statement of e...
-- This is an implementation of the equality type for Sets. Agda's -- standard equality is more powerful. The main idea here is to -- illustrate the equality type. module Equality where open import Level -- The equality of two elements of type A. The type a ≡ b is a family -- of types which captures the statement of e...
use the standard terminology refl.
use the standard terminology refl.
Agda
unlicense
piyush-kurur/sample-code
5303d7901af55944be2ec4695ee17bbd01624291
Theorem/CongApp.agda
Theorem/CongApp.agda
module Theorem.CongApp where -- Theorem CongApp. -- If f ≡ g and x ≡ y, then (f x) ≡ (g y). open import Relation.Binary.PropositionalEquality public infixl 0 _⟨$⟩_ _⟨$⟩_ : ∀ {a b} {A : Set a} {B : Set b} {f g : A → B} {x y : A} → f ≡ g → x ≡ y → f x ≡ g y _⟨$⟩_ = cong₂ (λ x y → x y)
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Congruence of application. -- -- If f ≡ g and x ≡ y, then (f x) ≡ (g y). ------------------------------------------------------------------------ module Theorem.CongApp where open import Relation.Binary.Propositio...
Document Theorem.CongApp regularly.
Document Theorem.CongApp regularly. Old-commit-hash: f16f3e3d0b8e59230bd86a0c223af263a8db75e8
Agda
mit
inc-lc/ilc-agda
b87eb75ad51669de831d389ef1a78b415b31a18d
lib/Data/Nat/Distance.agda
lib/Data/Nat/Distance.agda
open import Data.Nat.NP open import Data.Nat.Properties as Props open import Data.Product open import Relation.Binary.PropositionalEquality.NP module Data.Nat.Distance where dist : ℕ → ℕ → ℕ dist zero y = y dist x zero = x dist (suc x) (suc y) = dist x y dist-refl : ∀ x → dist x x ≡ 0 dist-refl zer...
open import Function.NP open import Data.Nat.NP open import Data.Nat.Properties as Props open import Data.Nat.Properties.Simple open import Data.Product.NP open import Relation.Binary.PropositionalEquality.NP open import Relation.Binary open import Relation.Nullary module Data.Nat.Distance where {- dist : ℕ → ℕ → ℕ d...
add the `symIter` from Conor and some lemmas
Dist: add the `symIter` from Conor and some lemmas
Agda
bsd-3-clause
crypto-agda/agda-nplib
1dd4fe7a8a920498ea83e46ad2707edca7f6f4bf
Syntax/Type/Plotkin.agda
Syntax/Type/Plotkin.agda
module Syntax.Type.Plotkin where -- Types for language description à la Plotkin (LCF as PL) -- -- Given base types, we build function types. infixr 5 _⇒_ data Type (B : Set {- of base types -}) : Set where base : (ι : B) → Type B _⇒_ : (σ : Type B) → (τ : Type B) → Type B -- Lift (Δ : B → Type B) to (Δtype : Ty...
module Syntax.Type.Plotkin where -- Types for language description à la Plotkin (LCF as PL) -- -- Given base types, we build function types. open import Function infixr 5 _⇒_ data Type (B : Set {- of base types -}) : Set where base : (ι : B) → Type B _⇒_ : (σ : Type B) → (τ : Type B) → Type B -- Lift (Δ : B → ...
move import to top of file in Syntax.Type.Plotkin
Agda: move import to top of file in Syntax.Type.Plotkin Old-commit-hash: 0d789d2318a5215ac4ba2f68286e7db5826593ec
Agda
mit
inc-lc/ilc-agda
fa1e5e6ba14f3f7038a0a46052c8f81d12ed2e9d
Base/Change/Equivalence/Base.agda
Base/Change/Equivalence/Base.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence - base definitions ------------------------------------------------------------------------ module Base.Change.Equivalence.Base where open import Relation.Binary.PropositionalEqualit...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence - base definitions ------------------------------------------------------------------------ module Base.Change.Equivalence.Base where open import Relation.Binary.PropositionalEqualit...
Clarify Agda comment
Clarify Agda comment Old-commit-hash: e00f9f0bb80cb86372669d674900a9abd43b7ef4
Agda
mit
inc-lc/ilc-agda
e2d49c81f464ab9449818f964e0078660f4315da
Syntactic/Contexts.agda
Syntactic/Contexts.agda
module Syntactic.Contexts (Type : Set) where -- CONTEXTS -- -- This module defines the syntax of contexts, prefixes of -- contexts and variables and properties of these notions. -- -- This module is parametric in the syntax of types, so it -- can be reused for different calculi. open import Relation.Binary open...
module Syntactic.Contexts (Type : Set) where -- CONTEXTS -- -- This module defines the syntax of contexts, prefixes of -- contexts and variables and properties of these notions. -- -- This module is parametric in the syntax of types, so it -- can be reused for different calculi. open import Relation.Binary open...
add lemma about syntactic contexts
Agda: add lemma about syntactic contexts Old-commit-hash: 3613bba9a32778eaaa8f9d22419c23a8505be346
Agda
mit
inc-lc/ilc-agda
0ecf1536814a880e8cdbe60b6eef1ff1106504bf
Parametric/Change/Correctness.agda
Parametric/Change/Correctness.agda
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Denotation.Value as Value import Parametric.Denotation.Evaluation as Evaluation import Parametric.Change.Validity as Validity import Parametric.Change.Specification as Specification import Parametric.Change.Type as ChangeType ...
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Denotation.Value as Value import Parametric.Denotation.Evaluation as Evaluation import Parametric.Change.Validity as Validity import Parametric.Change.Specification as Specification import Parametric.Change.Type as ChangeType ...
make main theorem correspond to the one stated in the paper
make main theorem correspond to the one stated in the paper Old-commit-hash: 84979b2067c54a685110f1bad744ba106a962a0f
Agda
mit
inc-lc/ilc-agda
272abae5605c8fd8c5385376ffe4f4d4c26d2a9d
Base/Change/Equivalence.agda
Base/Change/Equivalence.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence ------------------------------------------------------------------------ module Base.Change.Equivalence where open import Relation.Binary.PropositionalEquality open import Base.Chang...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence ------------------------------------------------------------------------ module Base.Change.Equivalence where open import Relation.Binary.PropositionalEquality open import Base.Chang...
Add and use a congruence lemma
Add and use a congruence lemma To reduce explicit wrapping/unwrapping of proofs of ≙. Old-commit-hash: 2bc64b5b9f3b074a70918e11f66512232fb6796b
Agda
mit
inc-lc/ilc-agda
57dd579828aa8a7c7ff8b0546dd51520584eb18e
Denotational/Evaluation/Total.agda
Denotational/Evaluation/Total.agda
module Denotational.Evaluation.Total where -- EVALUATION with a primitive for TOTAL DERIVATIVES -- -- This module defines the semantics of terms that support a -- primitive (Δ e) for computing the total derivative according -- to all free variables in e and all future arguments of e if e -- is a function. open import...
module Denotational.Evaluation.Total where -- EVALUATION with a primitive for TOTAL DERIVATIVES -- -- This module defines the semantics of terms that support a -- primitive (Δ e) for computing the total derivative according -- to all free variables in e and all future arguments of e if e -- is a function. open import...
add extended comment on semantics of Δ
agda: add extended comment on semantics of Δ During my walk-throughs on the code, explaining this line was a bit hard and required a small example. After writing it here during the walkthrough, I decided to extend it and save it. Old-commit-hash: 279b6047512b8c934cae49bda5977fa104077e12
Agda
mit
inc-lc/ilc-agda
beadc4c6bf5a0654b270878f150131cb18ada078
lib/Data/Bool/NP.agda
lib/Data/Bool/NP.agda
{-# OPTIONS --universe-polymorphism #-} module Data.Bool.NP where open import Data.Bool using (Bool; true; false; T; if_then_else_; not) open import Data.Unit using (⊤) open import Data.Sum open import Function open import Relation.Binary.NP open import Relation.Binary.Logical open import Relation.Nullary open import ...
{-# OPTIONS --universe-polymorphism #-} module Data.Bool.NP where open import Data.Bool using (Bool; true; false; T; if_then_else_; not) import Algebra import Data.Bool.Properties open import Data.Unit using (⊤) open import Data.Sum open import Function open import Relation.Binary.NP open import Relation.Binary.Logica...
add ring modules Xor°, Bool°
Data.Bool.NP: add ring modules Xor°, Bool°
Agda
bsd-3-clause
crypto-agda/agda-nplib
09aa7263bcfccc0537afdaba6875c6d31a8fa0e1
lib/Algebra/Group.agda
lib/Algebra/Group.agda
{-# OPTIONS --without-K #-} -- TODO -- If you are looking for a proof of: -- f (Σ(xᵢ∈A) g(x₁)) ≡ Π(xᵢ∈A) (f(g(xᵢ))) -- Have a look to: -- https://github.com/crypto-agda/explore/blob/master/lib/Explore/GroupHomomorphism.agda open import Type using (Type_) open import Data.Product.NP using (_,_) import Alge...
{-# OPTIONS --without-K #-} -- TODO -- If you are looking for a proof of: -- f (Σ(xᵢ∈A) g(x₁)) ≡ Π(xᵢ∈A) (f(g(xᵢ))) -- Have a look to: -- https://github.com/crypto-agda/explore/blob/master/lib/Explore/GroupHomomorphism.agda open import Type using (Type_) open import Data.Product.NP using (_,_;fst;snd) imp...
update Group to include left and right inverse
update Group to include left and right inverse
Agda
bsd-3-clause
crypto-agda/agda-nplib
bd4721cbfeecd02bd82f2eb2bb19570e836dac3a
Denotation/Implementation/Popl14.agda
Denotation/Implementation/Popl14.agda
module Denotation.Implementation.Popl14 where -- Notions of programs being implementations of specifications -- for Calculus Popl14 open import Denotation.Specification.Canon-Popl14 public open import Popl14.Syntax.Type open import Popl14.Syntax.Term open import Popl14.Denotation.Value open import Popl14.Change.Deri...
module Denotation.Implementation.Popl14 where -- Notions of programs being implementations of specifications -- for Calculus Popl14 open import Denotation.Specification.Canon-Popl14 public open import Popl14.Syntax.Type open import Popl14.Syntax.Term open import Popl14.Denotation.Value open import Popl14.Change.Deri...
Change argument order of carry-over.
Change argument order of carry-over. This commit prepares for uncurrying cary-over. Old-commit-hash: e1a21bdcbe7ee2b217917bd6ac9dfc576487102a
Agda
mit
inc-lc/ilc-agda
9028d1ebd71caa01d4b8a57cbb884b32e787ebe1
total.agda
total.agda
module total where -- INCREMENTAL λ-CALCULUS -- with total derivatives -- -- Features: -- * changes and derivatives are unified (following Cai) -- * Δ e describes how e changes when its free variables or its arguments change -- * denotational semantics including semantics of changes -- -- Work in Progress: -- ...
module total where -- INCREMENTAL λ-CALCULUS -- with total derivatives -- -- Features: -- * changes and derivatives are unified (following Cai) -- * Δ e describes how e changes when its free variables or its arguments change -- * denotational semantics including semantics of changes -- -- Work in Progress: -- ...
Revert "agda/...: misc (to revert)"
Revert "agda/...: misc (to revert)" This reverts commit ae3a9db6fb87ddc01573ae236f8850b322bec8db. Old-commit-hash: fa2ae9742c4282275b8f242a197b35ef1acf5932
Agda
mit
inc-lc/ilc-agda
2e98871b50826699f6f16a2718f8f2361a559c4d
Thesis/ANormalUntyped.agda
Thesis/ANormalUntyped.agda
module Thesis.ANormalUntyped where open import Data.Nat.Base open import Data.Integer.Base open import Relation.Binary.PropositionalEquality {- Typed deBruijn indexes for untyped languages. -} -- Using a record gives an eta rule saying that all types are equal. record Type : Set where constructor Uni open import ...
module Thesis.ANormalUntyped where open import Data.Empty open import Data.Product open import Data.Nat.Base import Data.Integer.Base as I open I using (ℤ) open import Data.Integer.Base using (ℤ) open import Relation.Binary.PropositionalEquality {- Typed deBruijn indexes for untyped languages. -} -- Using a record g...
Write down real step-indexed logical relation for untyped terms
Write down real step-indexed logical relation for untyped terms Sadly, Agda does not recognize this is terminating, because recursing on k with k < n is not a structurally recursive call on a subterm. SAD!
Agda
mit
inc-lc/ilc-agda
7849a93dd727b32c2606d958173b08212260367d
Game/Transformation/ReceiptFreeness-CCA2d/Valid.agda
Game/Transformation/ReceiptFreeness-CCA2d/Valid.agda
{-# OPTIONS --copatterns #-} open import Type open import Function open import Data.One open import Data.Two open import Data.Maybe open import Data.Product open import Data.Nat open import Data.Vec hiding (_>>=_ ; _∈_) open import Data.List as L open import Data.Fin as Fin using (Fin) open import Relation.Binary.Propo...
{-# OPTIONS --copatterns #-} open import Type open import Function open import Data.One open import Data.Two open import Data.Maybe open import Data.Product open import Data.Nat open import Data.Vec hiding (_>>=_ ; _∈_) open import Data.List as L open import Data.Fin as Fin using (Fin) open import Relation.Binary.Propo...
update the validity for the simulator
update the validity for the simulator
Agda
bsd-3-clause
crypto-agda/crypto-agda
41898751fdcc62758217e161ad60e93a20db6f51
lib/Algebra/Monoid.agda
lib/Algebra/Monoid.agda
open import Function.NP open import Data.Product.NP open import Data.Nat using (ℕ; fold; zero) renaming (_+_ to _+ℕ_; _*_ to _*ℕ_; suc to 1+_) open import Data.Integer using (ℤ; +_; -[1+_]; _⊖_) renaming (_+_ to _+ℤ_; _*_ to _*ℤ_) open import Relation.Binary.PropositionalEquality.NP renaming (_∙_ to _♦_) ...
open import Function.NP open import Data.Product.NP open import Data.Nat using (ℕ; zero) renaming (_+_ to _+ℕ_; _*_ to _*ℕ_; suc to 1+_) open import Data.Integer using (ℤ; +_; -[1+_]; _⊖_) renaming (_+_ to _+ℤ_; _*_ to _*ℤ_) open import Relation.Binary.PropositionalEquality.NP renaming (_∙_ to _♦_) open i...
use nest and not fold
Monoid: use nest and not fold
Agda
bsd-3-clause
crypto-agda/agda-nplib
7826abee6b67c7b55aa70968ca7fd6b637d30857
Base/Syntax/Context.agda
Base/Syntax/Context.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Variables and contexts -- -- This module defines the syntax of contexts, prefixes of -- contexts and variables and properties of these notions. -- -- This module is parametric in the syntax of types, so it -- can be...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Variables and contexts -- -- This module defines the syntax of contexts and subcontexts, -- together with variables and properties of these notions. -- -- This module is parametric in the syntax of types, so it -- c...
Drop Prefixes
Drop Prefixes
Agda
mit
inc-lc/ilc-agda
d4d74883fdfb5330e27bb48434b046f8291b5f3d
Denotation/Change/Popl14.agda
Denotation/Change/Popl14.agda
module Denotation.Change.Popl14 where -- Changes for Calculus Popl14 -- -- Contents -- - Mutually recursive concepts: ΔVal, validity. -- Under module Syntax, the corresponding concepts of -- ΔType and ΔContext reside in separate files. -- Now they have to be together due to mutual recursiveness. -- - `diff...
module Denotation.Change.Popl14 where -- Changes for Calculus Popl14 -- -- Contents -- - Mutually recursive concepts: ΔVal, validity. -- Under module Syntax, the corresponding concepts of -- ΔType and ΔContext reside in separate files. -- Now they have to be together due to mutual recursiveness. -- - `diff...
Improve documentation of ΔVal.
Improve documentation of ΔVal. Old-commit-hash: fb71a0ea6af97c62b01a9d8b7d3089e5cd3139ed
Agda
mit
inc-lc/ilc-agda
a0c0e331a5839a6f7cd2921fe50b2acfdf977244
total.agda
total.agda
module total where -- INCREMENTAL λ-CALCULUS -- with total derivatives -- -- Features: -- * changes and derivatives are unified (following Cai) -- * Δ e describes how e changes when its free variables or its arguments change -- * denotational semantics including semantics of changes -- -- Note that Δ is *not* ...
module total where -- INCREMENTAL λ-CALCULUS -- with total derivatives -- -- Features: -- * changes and derivatives are unified (following Cai) -- * Δ e describes how e changes when its free variables or its arguments change -- * denotational semantics including semantics of changes -- -- Note that Δ is *not* ...
Resolve implicit arguments.
Resolve implicit arguments. When I filled the last hole in total.agda in the previous commit, Agda told me to 'resolve implicit argument', so I added explicit implicit arguments until Agda was satisfied. I don't know whether or why it matters to do this. Old-commit-hash: ed138bd06659ab2caac47a670b7d3d60c4d97f3a
Agda
mit
inc-lc/ilc-agda
db5307718bfbf262aa80ac0a0dd4b8da3799363b
Denotational/WeakValidChanges.agda
Denotational/WeakValidChanges.agda
module Denotational.WeakValidChanges where open import Data.Product open import Data.Unit open import Relation.Nullary open import Relation.Binary.PropositionalEquality open import Syntactic.Types open import Syntactic.ChangeTypes.ChangesAreDerivatives open import Denotational.Notation open import Denotational.Value...
module Denotational.WeakValidChanges where open import Data.Product open import Data.Unit open import Relation.Nullary open import Relation.Binary.PropositionalEquality open import Syntactic.Types open import Syntactic.ChangeTypes.ChangesAreDerivatives open import Denotational.Notation open import Denotational.Value...
Change where-clause to let-expr so that agda 2.3.2 typechecks README
Change where-clause to let-expr so that agda 2.3.2 typechecks README Old-commit-hash: 6ffa74c100a7ee9d51e15d960db14c801f06e27c
Agda
mit
inc-lc/ilc-agda
cad090cf1face3e9ee7c8e4575440a427c74e66a
lib/Explore/BinTree.agda
lib/Explore/BinTree.agda
{-# OPTIONS --without-K #-} module Explore.BinTree where open import Data.Tree.Binary open import Explore.Core open import Explore.Properties fromBinTree : ∀ {m} {A} → BinTree A → Explore m A fromBinTree empty = empty-explore fromBinTree (leaf x) = point-explore x fromBinTree (fork ℓ r) = merge-explore (fromB...
{-# OPTIONS --without-K #-} module Explore.BinTree where open import Level.NP open import Type hiding (★) open import Data.Tree.Binary open import Data.Zero open import Data.Product open import Relation.Binary.PropositionalEquality.NP open import HoTT open Equivalences open import Type.Identities open import Function...
Add more exploration functions about binary trees
Add more exploration functions about binary trees
Agda
bsd-3-clause
crypto-agda/explore
15cd0eafd613a991286818c276496c93db0ada5d
Parametric/Denotation/CachingMValue.agda
Parametric/Denotation/CachingMValue.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Values for caching evaluation of MTerm ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Syntax.MType as MType import Parametric.Denota...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Values for caching evaluation of MTerm ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Syntax.MType as MType import Parametric.Denota...
Drop ⟦_⟧*TypeHidCacheWrong
Drop ⟦_⟧*TypeHidCacheWrong This wrong definition should not be counted among the failures before CBPV, since it was created after and it is due to a separate limitation.
Agda
mit
inc-lc/ilc-agda
e7b75259e34cf9de11a2696f75d1384a4dc62f8d
agda/Nat.agda
agda/Nat.agda
module Nat where data ℕ : Set where zero : ℕ succ : ℕ → ℕ _+_ : ℕ → ℕ → ℕ zero + b = b succ a + b = succ (a + b) _×_ : ℕ → ℕ → ℕ zero × b = zero succ a × b = (a × b) + b open import Relation.Binary.PropositionalEquality 0-is-right-identity-of-+ : ∀ (n : ℕ) → n + zero ≡ n 0-is-right-identity-of-+ zero ...
module Nat where data ℕ : Set where zero : ℕ succ : ℕ → ℕ {-# BUILTIN NATURAL ℕ #-} {-# BUILTIN ZERO zero #-} {-# BUILTIN SUC succ #-} _+_ : ℕ → ℕ → ℕ zero + b = b succ a + b = succ (a + b) _×_ : ℕ → ℕ → ℕ zero × b = zero succ a × b = (a × b) + b open import Relation.Binary.PropositionalEquality 0-is-ri...
allow the use of more natural notation in Nat
allow the use of more natural notation in Nat
Agda
unlicense
piyush-kurur/sample-code
8e1932027422fbfd5254b377ea26f80df138163c
Parametric/Change/Term.agda
Parametric/Change/Term.agda
import Parametric.Syntax.Type as Type import Base.Syntax.Context as Context module Parametric.Change.Term {Base : Set} (Constant : Context.Context (Type.Type Base) → Type.Type Base → Set {- of constants -}) where -- Terms that operate on changes open Type Base open Context Type open import Parametric.Chan...
import Parametric.Syntax.Type as Type import Base.Syntax.Context as Context module Parametric.Change.Term {Base : Set} (Constant : Context.Context (Type.Type Base) → Type.Type Base → Set {- of constants -}) {Δbase : Base → Type.Type Base} where -- Terms that operate on changes open Type Base open Conte...
Move parameter to module level.
Move parameter to module level. All definitions in this module take the same parameter, so moving that parameter to the module level makes it easier to instantiate all of the definitions at once. Old-commit-hash: c9a73b24cd02aed1ee75b46416c1893c8c37b130
Agda
mit
inc-lc/ilc-agda
bdfd1c903bebb00f241b98797e6544d8970bea49
Crypto/JS/BigI/FiniteField.agda
Crypto/JS/BigI/FiniteField.agda
{-# OPTIONS --without-K #-} open import Type.Eq using (_==_; Eq?; ≡⇒==; ==⇒≡) open import Data.Two.Base using (𝟚; ✓) open import Relation.Binary.PropositionalEquality.Base using (_≡_; refl; ap) open import FFI.JS using (JS[_]; _++_; return; _>>_) open import FFI.JS.Check using (check!) renaming (check to c...
{-# OPTIONS --without-K #-} open import Type.Eq using (_==_; Eq?; ≡⇒==; ==⇒≡) open import Data.Two.Base using (𝟚; ✓) open import Relation.Binary.PropositionalEquality.Base using (_≡_; refl; ap) open import FFI.JS using (JS[_]; _++_; return; _>>_) open import FFI.JS.Check using (check!) --renaming (check to c...
Use warn-check since check is monadic now...
ℤq: Use warn-check since check is monadic now...
Agda
bsd-3-clause
crypto-agda/crypto-agda
3be2477097d1bfe6056a5d1fbcef0fb70636e4dc
lib/Relation/Binary/PropositionalEquality/NP.agda
lib/Relation/Binary/PropositionalEquality/NP.agda
{-# OPTIONS --universe-polymorphism #-} -- move this to propeq module Relation.Binary.PropositionalEquality.NP where open import Relation.Binary.PropositionalEquality public hiding (module ≡-Reasoning) open import Relation.Binary.NP open import Relation.Binary.Bijection open import Relation.Binary.Logical open import ...
{-# OPTIONS --universe-polymorphism #-} -- move this to propeq module Relation.Binary.PropositionalEquality.NP where open import Relation.Binary.PropositionalEquality public hiding (module ≡-Reasoning) open import Relation.Binary.NP open import Relation.Binary.Bijection open import Relation.Binary.Logical open import ...
add ≗₂
add ≗₂
Agda
bsd-3-clause
crypto-agda/agda-nplib
89da077b4d098d6e0939d860c48061f66c5d3369
formalization/agda/Spire/Operational.agda
formalization/agda/Spire/Operational.agda
module Spire.Operational where ---------------------------------------------------------------------- data Level : Set where zero : Level suc : Level → Level ---------------------------------------------------------------------- data Context : Set data Type (Γ : Context) : Set data Value (Γ : Context) : Type Γ ...
module Spire.Operational where ---------------------------------------------------------------------- data Level : Set where zero : Level suc : Level → Level ---------------------------------------------------------------------- data Context : Set data Type (Γ : Context) : Set data Value (Γ : Context) : Type Γ ...
Add elimBool to operational semantics.
Add elimBool to operational semantics.
Agda
bsd-3-clause
spire/spire
d28029e6a6b72c675115285102a2d423b1c0b3f9
prg.agda
prg.agda
module prg where open import fun-universe open import Function open import Data.Nat.NP hiding (_==_) open import Data.Bool.NP hiding (_==_) open import Data.Nat.Properties open import Data.Bool.Properties open import Data.Bits open import Data.Fin using (Fin; zero; suc) open import Data.Product open import Data.Empty...
module prg where open import fun-universe open import Function open import Data.Nat.NP hiding (_==_) open import Data.Bool.NP hiding (_==_) open import Data.Nat.Properties open import Data.Bool.Properties open import Data.Bits open import Data.Fin using (Fin; zero; suc) open import Data.Product open import Data.Empty...
fix argument order
prg: fix argument order
Agda
bsd-3-clause
crypto-agda/crypto-agda
f274de0be6b9f871bb446ee6381969cac1a7ad8a
Parametric/Denotation/CachingEvaluation.agda
Parametric/Denotation/CachingEvaluation.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Caching evaluation ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Syntax.MType as MType impor...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Caching evaluation ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Syntax.MType as MType impor...
Fix order of returned caches
Fix order of returned caches
Agda
mit
inc-lc/ilc-agda
a127cbe0afe5735ec22de57b718586c54a38c33b
arrow.agda
arrow.agda
data Bool : Set where true : Bool false : Bool _or_ : Bool → Bool → Bool true or _ = true _ or true = true false or false = false _and_ : Bool → Bool → Bool false and _ = false _ and false = false true and true = true ---------------------------------------- data ℕ : Set where zero : ℕ su...
data Bool : Set where true : Bool false : Bool _or_ : Bool → Bool → Bool true or _ = true _ or true = true false or false = false _and_ : Bool → Bool → Bool false and _ = false _ and false = false true and true = true ---------------------------------------- data ℕ : Set where zero : ℕ su...
Fix testd
Fix testd
Agda
mit
louisswarren/hieretikz
3682d42d35e0734a6a4d6a4ee62cbad3965309b9
Parametric/Change/Term.agda
Parametric/Change/Term.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Terms that operate on changes (Fig. 3). ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Change....
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Terms that operate on changes (Fig. 3). ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Change....
Make _⊕_ more coherent with _⊝_
Make _⊕_ more coherent with _⊝_
Agda
mit
inc-lc/ilc-agda
5cd94161fed3259ba24dc7c2099fc439a5fdadb1
New/Derive.agda
New/Derive.agda
module New.Derive where open import New.Lang open import New.Changes open import New.LangOps ΔΓ : Context → Context ΔΓ ∅ = ∅ ΔΓ (τ • Γ) = Δt τ • τ • ΔΓ Γ Γ≼ΔΓ : ∀ {Γ} → Γ ≼ ΔΓ Γ Γ≼ΔΓ {∅} = ∅ Γ≼ΔΓ {τ • Γ} = drop Δt τ • keep τ • Γ≼ΔΓ deriveConst : ∀ {τ} → Const τ → Term ∅ (Δt τ) -- dplus = λ m dm n dn → (m + dm) +...
module New.Derive where open import New.Lang open import New.Changes open import New.LangOps deriveConst : ∀ {τ} → Const τ → Term ∅ (Δt τ) -- dplus = λ m dm n dn → (m + dm) + (n + dn) - (m + n) = dm + dn deriveConst plus = abs (abs (abs (abs (app₂ (const plus) (var (that (that this))) (var this))))) -- minus = λ m...
Reorder definitions
Reorder definitions Move definitions about change contexts next to their uses.
Agda
mit
inc-lc/ilc-agda
42316d32e1b90cea16ece1ad29627cb678610bc6
Base/Change/Equivalence.agda
Base/Change/Equivalence.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence ------------------------------------------------------------------------ module Base.Change.Equivalence where open import Relation.Binary.PropositionalEquality open import Base.Chang...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence ------------------------------------------------------------------------ module Base.Change.Equivalence where open import Relation.Binary.PropositionalEquality open import Base.Chang...
Clarify that change algebra operations trivially preserve d.o.e.
Clarify that change algebra operations trivially preserve d.o.e. Old-commit-hash: c11fb0c1abae938f0c7ec3dacff96f112f6bbee4
Agda
mit
inc-lc/ilc-agda
b3c29af8a0e31056b3efe8dd76723fe0d834058a
lib/Relation/Binary/PropositionalEquality/NP.agda
lib/Relation/Binary/PropositionalEquality/NP.agda
{-# OPTIONS --without-K #-} -- move this to propeq module Relation.Binary.PropositionalEquality.NP where open import Type hiding (★) open import Data.One using (𝟙) open import Data.Product using (Σ; _,_) open import Relation.Binary.PropositionalEquality public hiding (module ≡-Reasoning) open import Relation.Binary.N...
{-# OPTIONS --without-K #-} -- move this to propeq module Relation.Binary.PropositionalEquality.NP where open import Type hiding (★) open import Data.One using (𝟙) open import Data.Product using (Σ; _,_) open import Relation.Binary.PropositionalEquality public hiding (module ≡-Reasoning) open import Relation.Binary.N...
Add Pullback
Add Pullback
Agda
bsd-3-clause
crypto-agda/agda-nplib
e58fdcf2bd3f99745f653c3ee049cb1244bcb092
lib/Relation/Binary/NP.agda
lib/Relation/Binary/NP.agda
{-# OPTIONS --without-K #-} {-# OPTIONS --universe-polymorphism #-} module Relation.Binary.NP where open import Level open import Relation.Binary public import Relation.Binary.PropositionalEquality as PropEq -- could this be moved in place of Trans is Relation.Binary.Core Trans' : ∀ {a b c ℓ₁ ℓ₂ ℓ₃} {A : Set a} {B : ...
{-# OPTIONS --without-K #-} {-# OPTIONS --universe-polymorphism #-} module Relation.Binary.NP where open import Level open import Relation.Binary public import Relation.Binary.PropositionalEquality as PropEq -- could this be moved in place of Trans is Relation.Binary.Core Trans' : ∀ {a b c ℓ₁ ℓ₂ ℓ₃} {A : Set a} {B : ...
Rename by-definition combinator for eq-reasoning
Rename by-definition combinator for eq-reasoning
Agda
bsd-3-clause
crypto-agda/agda-nplib
a0cb2129d6925e76e7c69250fbe510b3a711b245
Parametric/Denotation/Evaluation.agda
Parametric/Denotation/Evaluation.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Standard evaluation (Def. 3.3 and Fig. 4i) ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Deno...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Standard evaluation (Def. 3.3 and Fig. 4i) ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Deno...
Correct code in comment
Correct code in comment map-IVT does not exist currently (not sure it ever did, I did not investigate); what we want and does not work is simply map. Hence, fix the comment to clarify it.
Agda
mit
inc-lc/ilc-agda
caab0f0a9ebc53432d697d8dfef61fb6cae09b67
Base/Change/Equivalence.agda
Base/Change/Equivalence.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence ------------------------------------------------------------------------ module Base.Change.Equivalence where open import Relation.Binary.PropositionalEquality open import Base.Chang...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence ------------------------------------------------------------------------ module Base.Change.Equivalence where open import Relation.Binary.PropositionalEquality open import Base.Chang...
Prepare for splitting
Equivalence: Prepare for splitting The file has become too big. Splitting the anonymous modules requires more work out of type inference and introduces one type inference failure, which is fixed in this commmit. Old-commit-hash: 32f42f80b60cd3dd45e879d7a367b4fe933bb9d8
Agda
mit
inc-lc/ilc-agda
26feb31d8f07b57839d5ad020a366816d0ae21fb
Parametric/Denotation/Evaluation.agda
Parametric/Denotation/Evaluation.agda
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Denotation.Value as Value module Parametric.Denotation.Evaluation {Base : Type.Structure} (Const : Term.Structure Base) (⟦_⟧Base : Value.Structure Base) where open Type.Structure Base open Term.Structure Base C...
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Denotation.Value as Value module Parametric.Denotation.Evaluation {Base : Type.Structure} (Const : Term.Structure Base) (⟦_⟧Base : Value.Structure Base) where open Type.Structure Base open Term.Structure Base C...
insert missing space (cosmetic)
insert missing space (cosmetic) Old-commit-hash: 4d559497f68fabe2674c6d523508f715c78256c8
Agda
mit
inc-lc/ilc-agda
321249014d14436b6f3f84e01fdeb73f0d5faf7b
crypto-agda.agda
crypto-agda.agda
module crypto-agda where import Cipher.ElGamal.Generic import Composition.Forkable import Composition.Horizontal import Composition.Vertical import Crypto.Schemes --import FiniteField.FinImplem import FunUniverse.Agda import FunUniverse.BinTree import FunUniverse.Bits import FunUniverse.Category import FunUniverse.Cate...
module crypto-agda where import Attack.Compression import Attack.Reencryption import Attack.Reencryption.OneBitMessage import Cipher.ElGamal.Generic import Cipher.ElGamal.Homomorphic import Composition.Forkable import Composition.Horizontal import Composition.Vertical import Crypto.Schemes import FiniteField.FinImplem ...
update crypto-agda.agda
update crypto-agda.agda
Agda
bsd-3-clause
crypto-agda/crypto-agda
bc0f697e345522fad65844eed07cba984158e3b7
Parametric/Change/Validity.agda
Parametric/Change/Validity.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Dependently typed changes (Def 3.4 and 3.5, Fig. 4b and 4e) ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Denotation.Value as Value...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Dependently typed changes (Def 3.4 and 3.5, Fig. 4b and 4e) ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Denotation.Value as Value...
Comment out bug-triggering code
Parametric.Change.Validity: Comment out bug-triggering code This code is exported and used elsewhere :-(
Agda
mit
inc-lc/ilc-agda
ac25a046e34905a5fd630275f7f19cf585a2f9ab
ZK/JSChecker.agda
ZK/JSChecker.agda
{-# OPTIONS --without-K #-} module ZK.JSChecker where open import Function using (id; _∘′_; case_of_) open import Data.Bool.Base using (Bool; true; false; _∧_) open import Data.List.Base using (List; []; _∷_; and; foldr) open import Data.String.Base using (String) open import FFI.JS open import FFI.JS.Che...
{-# OPTIONS --without-K #-} module ZK.JSChecker where open import Function using (id; _∘′_; case_of_) open import Data.Bool.Base using (Bool; true; false; _∧_) open import Data.List.Base using (List; []; _∷_; and; foldr) open import Data.String.Base using (String) open import FFI.JS open import FFI.JS.Che...
Remove no longer relevant TODO
Remove no longer relevant TODO
Agda
bsd-3-clause
crypto-agda/crypto-agda
a6dfe1f553ba79964ad12503ce1a9095fe79ffe2
arrow.agda
arrow.agda
data Bool : Set where true : Bool false : Bool _or_ : Bool → Bool → Bool true or _ = true _ or true = true false or false = false _and_ : Bool → Bool → Bool false and _ = false _ and false = false true and true = true ---------------------------------------- data ℕ : Set where zero : ℕ su...
data Bool : Set where true : Bool false : Bool _or_ : Bool → Bool → Bool true or _ = true _ or true = true false or false = false _and_ : Bool → Bool → Bool false and _ = false _ and false = false true and true = true ---------------------------------------- data ℕ : Set where zero : ℕ su...
Add test
Add test
Agda
mit
louisswarren/hieretikz
51432b971511d6e3b28904b1d33fc55d32888906
lib/Function/Extensionality.agda
lib/Function/Extensionality.agda
{-# OPTIONS --without-K #-} module Function.Extensionality where open import Function.NP open import Relation.Binary.PropositionalEquality.NP -- renaming (subst to tr) happly : ∀ {a b}{A : Set a}{B : A → Set b}{f g : (x : A) → B x} → f ≡ g → (x : A) → f x ≡ g x happly p x = ap (λ f → f x) p postulate FunExt :...
{-# OPTIONS --without-K #-} module Function.Extensionality where open import Function.NP open import Relation.Binary.PropositionalEquality.NP -- renaming (subst to tr) happly : ∀ {a b}{A : Set a}{B : A → Set b}{f g : (x : A) → B x} → f ≡ g → (x : A) → f x ≡ g x happly p x = ap (λ f → f x) p postulate FunExt :...
add a version with implicit arguments
FunExt: add a version with implicit arguments
Agda
bsd-3-clause
crypto-agda/agda-nplib
702fcd37b6983eaf128ea29fca185751c2444c69
lib/Relation/Binary/Permutation.agda
lib/Relation/Binary/Permutation.agda
--TODO {-# OPTIONS --without-K #-} module Relation.Binary.Permutation where open import Level open import Data.Product.NP open import Data.Zero open import Data.One open import Data.Sum open import Data.List open import Relation.Nullary open import Relation.Binary import Relation.Binary.PropositionalEquality as ≡ open...
--TODO {-# OPTIONS --without-K #-} module Relation.Binary.Permutation where open import Level open import Data.Product.NP open import Data.Zero open import Data.One open import Data.Sum open import Data.List open import Relation.Nullary open import Relation.Binary import Relation.Binary.PropositionalEquality as ≡ open...
Fix in Relation.Binary.Permutation
Fix in Relation.Binary.Permutation
Agda
bsd-3-clause
crypto-agda/agda-nplib
3822d110c060a75d914e9d0e4fc105f00e99980a
Syntax/Language/Atlas.agda
Syntax/Language/Atlas.agda
module Syntax.Language.Atlas where -- Base types of the calculus Atlas -- to be used with Plotkin-style language description -- -- Atlas supports maps with neutral elements. The change type to -- `Map κ ι` is `Map κ Δι`, where Δι is the change type of the -- ground type ι. Such a change to maps can support insertions ...
module Syntax.Language.Atlas where -- Base types of the calculus Atlas -- to be used with Plotkin-style language description -- -- Atlas supports maps with neutral elements. The change type to -- `Map κ ι` is `Map κ Δι`, where Δι is the change type of the -- ground type ι. Such a change to maps can support insertions ...
fix bug in `union` by postulating conjunction
Atlas: fix bug in `union` by postulating conjunction Old-commit-hash: 69ed9a83b2b162709e5dfcf541f9d0bf18c7e970
Agda
mit
inc-lc/ilc-agda
080a08a480530a0bfbe7ee42fb486407caea4a5e
Parametric/Change/Equivalence.agda
Parametric/Change/Equivalence.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Denotation.Value as Value module Parametric.Change.Eq...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence ------------------------------------------------------------------------ module Parametric.Change.Equivalence where open import Base.Denotation.Notation public open import Relation....
Remove extra imports
Remove extra imports Old-commit-hash: 3a9775f6afd97585f6b425390b5431b43807b03e
Agda
mit
inc-lc/ilc-agda
3409935502fb668aa913b86adee0b90b81efb211
arrow.agda
arrow.agda
data Bool : Set where true : Bool false : Bool _or_ : Bool → Bool → Bool true or _ = true _ or true = true false or false = false _and_ : Bool → Bool → Bool false and _ = false _ and false = false true and true = true ---------------------------------------- data ℕ : Set where zero : ℕ su...
data Bool : Set where true : Bool false : Bool _∨_ : Bool → Bool → Bool true ∨ _ = true false ∨ b = b _∧_ : Bool → Bool → Bool false ∧ _ = false true ∧ b = b ---------------------------------------- data ℕ : Set where zero : ℕ suc : ℕ → ℕ {-# BUILTIN NATURAL ℕ #-} _==_ : ℕ → ℕ → Bool zero == zero...
Use standard syntax
Use standard syntax
Agda
mit
louisswarren/hieretikz
20a1abbafdf38b144be117be78c688be2786fbee
Neglible.agda
Neglible.agda
{-# OPTIONS --copatterns #-} open import Algebra open import Function open import Data.Nat.NP open import Data.Nat.Distance open import Data.Nat.Properties open import Data.Two open import Data.Zero open import Data.Product open import Relation.Binary open import Relation.Binary.PropositionalEquality.NP open import...
{-# OPTIONS --copatterns #-} open import Algebra open import Function open import Data.Nat.NP open import Data.Nat.Distance open import Data.Nat.Properties open import Data.Two open import Data.Zero open import Data.Product open import Relation.Binary open import Relation.Binary.PropositionalEquality.NP open import...
Update to Neglible
Update to Neglible
Agda
bsd-3-clause
crypto-agda/crypto-agda
f7a0824e23aa553c512f0fbff1879941ee29f6d0
lib/FFI/JS.agda
lib/FFI/JS.agda
module FFI.JS where open import Data.Empty public renaming (⊥ to 𝟘) open import Data.Unit.Base public renaming (⊤ to 𝟙) open import Data.Char.Base public using (Char) open import Data.String.Base public using (String) open import Data.Bool.Base public using (Bool; true; false) open import Data.List.Base ...
module FFI.JS where open import Data.Empty public renaming (⊥ to 𝟘) open import Data.Unit.Base public renaming (⊤ to 𝟙) open import Data.Char.Base public using (Char) open import Data.String.Base public using (String) open import Data.Bool.Base public using (Bool; true; false) open import Data.List.Base ...
add is-null
JS: add is-null
Agda
bsd-3-clause
crypto-agda/agda-libjs
7b2c31fcd7415cecc448653df3d386001cbebf1b
Syntax/Term/Plotkin.agda
Syntax/Term/Plotkin.agda
import Syntax.Type.Plotkin as Type module Syntax.Term.Plotkin {B : Set {- of base types -}} {C : Type.Type B → Set {- of constants -}} where -- Terms of languages described in Plotkin style open import Function using (_∘_) open import Data.Product open Type B open import Syntax.Context {Type} data Term ...
import Syntax.Type.Plotkin as Type module Syntax.Term.Plotkin {B : Set {- of base types -}} {C : Type.Type B → Set {- of constants -}} where -- Terms of languages described in Plotkin style open import Function using (_∘_) open import Data.Product open Type B open import Syntax.Context {Type} data Term ...
Put constructor arguments on different lines.
Put constructor arguments on different lines. Old-commit-hash: 02f9c59c59ddef7050c2c035457c98ecb00464dc
Agda
mit
inc-lc/ilc-agda
fbbd955ba2c82259764f220c075ee5ab09f0a3c1
models/Desc.agda
models/Desc.agda
{-# OPTIONS --type-in-type --no-termination-check --no-positivity-check #-} module Desc where --******************************************** -- Prelude --******************************************** -- Some preliminary stuffs, to avoid relying on the stdlib --**************** -- Sigma and fr...
{-# OPTIONS --type-in-type #-} module Desc where --******************************************** -- Prelude --******************************************** -- Some preliminary stuffs, to avoid relying on the stdlib --**************** -- Sigma and friends --**************** data Sigma (A : Set) (B : A -> Set) : Set ...
Update Desc model. Follow ICFP paper. With type-in-type, but termination-checker-friendly.
Update Desc model. Follow ICFP paper. With type-in-type, but termination-checker-friendly.
Agda
mit
mietek/epigram2,larrytheliquid/pigit,mietek/epigram2
bb08669e1bdc2f7d2df9bb9289bda1b42f3dece8
lib/Algebra/FunctionProperties/Eq.agda
lib/Algebra/FunctionProperties/Eq.agda
{-# OPTIONS --without-K #-} -- Like Algebra.FunctionProperties but specialized to _≡_ and using implict arguments -- Moreover there is some extensions such as: -- * interchange -- * non-zero inversions -- * cancelation and non-zero cancelation -- These properties can (for instance) be used to define algebraic -- struc...
{-# OPTIONS --without-K #-} -- Like Algebra.FunctionProperties but specialized to _≡_ and using implict arguments -- Moreover there is some extensions such as: -- * interchange -- * non-zero inversions -- * cancelation and non-zero cancelation -- These properties can (for instance) be used to define algebraic -- struc...
add Endo.Cycle
Alegbra.FunctionProperties.Eq: add Endo.Cycle
Agda
bsd-3-clause
crypto-agda/agda-nplib
675459709ff3563cde300754c35f229c6b963f10
Parametric/Change/Validity.agda
Parametric/Change/Validity.agda
import Parametric.Syntax.Type as Type import Parametric.Denotation.Value as Value module Parametric.Change.Validity {Base : Type.Structure} (⟦_⟧Base : Value.Structure Base) where open Type.Structure Base open Value.Structure Base ⟦_⟧Base -- Changes for Calculus Popl14 -- -- Contents -- - Mutually recursive...
import Parametric.Syntax.Type as Type import Parametric.Denotation.Value as Value module Parametric.Change.Validity {Base : Type.Structure} (⟦_⟧Base : Value.Structure Base) where open Type.Structure Base open Value.Structure Base ⟦_⟧Base -- Changes for Calculus Popl14 -- -- Contents -- - Mutually recursive...
Rename ΔEnv-Entry to ValidChange.
Rename ΔEnv-Entry to ValidChange. Also rename operations related to ΔEnv-Entry. Old-commit-hash: 35ab981b89bab6eced9a7b20753bb140f6caf7a8
Agda
mit
inc-lc/ilc-agda
0e5b51a126b354cb6a2c34c080deb1fdcc75c7cb
Denotational/Environments.agda
Denotational/Environments.agda
module Denotational.Environments (Type : Set) (⟦_⟧Type : Type → Set) where -- ENVIRONMENTS -- -- This module defines the meaning of contexts, that is, -- the type of environments that fit a context, together -- with operations and properties of these operations. -- -- This module is parametric in the syntax ...
module Denotational.Environments (Type : Set) {ℓ} (⟦_⟧Type : Type → Set ℓ) where -- ENVIRONMENTS -- -- This module defines the meaning of contexts, that is, -- the type of environments that fit a context, together -- with operations and properties of these operations. -- -- This module is parametric in t...
Generalize environments to values in higher universes.
Generalize environments to values in higher universes. Old-commit-hash: 4ff4102742306da9be77151d785aa608f8558977
Agda
mit
inc-lc/ilc-agda
0ab0b0012d2db6e26ec2716c2d95f3743111df4d
Parametric/Syntax/MType.agda
Parametric/Syntax/MType.agda
import Parametric.Syntax.Type as Type module Parametric.Syntax.MType where module Structure (Base : Type.Structure) where open Type.Structure Base mutual -- Derived from CBPV data ValType : Set where U : (c : CompType) → ValType B : (ι : Base) → ValType vUnit : ValType _v×_ : (τ₁...
import Parametric.Syntax.Type as Type module Parametric.Syntax.MType where module Structure (Base : Type.Structure) where open Type.Structure Base mutual -- Derived from CBPV data ValType : Set where U : (c : CompType) → ValType B : (ι : Base) → ValType vUnit : ValType _v×_ : (τ₁...
Fix arity of _v×_
MType: Fix arity of _v×_
Agda
mit
inc-lc/ilc-agda
dd73b5a36235448b400cd9d02d7983b1155617bc
Syntax/Term/Plotkin.agda
Syntax/Term/Plotkin.agda
import Syntax.Type.Plotkin as Type import Syntax.Context as Context module Syntax.Term.Plotkin {B : Set {- of base types -}} {C : Context.Context {Type.Type B} → Type.Type B → Set {- of constants -}} where -- Terms of languages described in Plotkin style open import Function using (_∘_) open import Data.Pr...
import Syntax.Type.Plotkin as Type import Syntax.Context as Context module Syntax.Term.Plotkin {B : Set {- of base types -}} {C : Context.Context {Type.Type B} → Type.Type B → Set {- of constants -}} where -- Terms of languages described in Plotkin style open import Function using (_∘_) open import Data.Pr...
Reorder definitions of Term and Terms.
Reorder definitions of Term and Terms. The order of definitions should follow the order of declaration, and this code seems easier to understand when one looks at Term first. Old-commit-hash: 517547b8eebe1b8803d9f30fa3945f02685b6cc5
Agda
mit
inc-lc/ilc-agda
8d03eb08a3d8dc237fc96cbdf430c73571ead581
Base/Change/Equivalence.agda
Base/Change/Equivalence.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence ------------------------------------------------------------------------ module Base.Change.Equivalence where open import Relation.Binary.PropositionalEquality open import Base.Chang...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence ------------------------------------------------------------------------ module Base.Change.Equivalence where open import Relation.Binary.PropositionalEquality open import Base.Chang...
Add new lemmas on change equivalence
Add new lemmas on change equivalence
Agda
mit
inc-lc/ilc-agda
ca0490d3e647551767333fe1b8af760d98b01dfa
Syntax/Term/Popl14.agda
Syntax/Term/Popl14.agda
module Syntax.Term.Popl14 where -- Terms Calculus Popl14 -- -- Contents -- - Term constructors -- - Weakening on terms -- - `fit`: weaken a term to its ΔContext -- - diff-term, apply-term and their syntactic sugars open import Syntax.Context.Popl14 public open import Data.Integer data Term (Γ : Context) : Type -> Se...
module Syntax.Term.Popl14 where -- Terms Calculus Popl14 -- -- Contents -- - Term constructors -- - Weakening on terms -- - `fit`: weaken a term to its ΔContext -- - diff-term, apply-term and their syntactic sugars open import Syntax.Context.Popl14 public open import Data.Integer data Term (Γ : Context) : Type -> Se...
use ⊕ and ⊝ also when defining diff-term and apply-term
agda: use ⊕ and ⊝ also when defining diff-term and apply-term Goal: make diff-term and apply-term themselves more readable. Old-commit-hash: fc206b02d6057172e7f49c02eb521abaaafcb1e8
Agda
mit
inc-lc/ilc-agda
f994df78d5187cf478e9bd11ea4ef31f16894f95
New/NewNew.agda
New/NewNew.agda
module New.NewNew where open import New.Changes open import New.LangChanges open import New.Lang open import New.Types open import New.Derive [_]_from_to_ : ∀ (τ : Type) → (dv : Cht τ) → (v1 v2 : ⟦ τ ⟧Type) → Set [ σ ⇒ τ ] df from f1 to f2 = ∀ (da : Cht σ) (a1 a2 : ⟦ σ ⟧Type) → [ σ ] da from a1 to a2 → [ τ ] df a...
module New.NewNew where open import New.Changes open import New.LangChanges open import New.Lang open import New.Types open import New.Derive [_]_from_to_ : ∀ (τ : Type) → (dv : Cht τ) → (v1 v2 : ⟦ τ ⟧Type) → Set [ σ ⇒ τ ] df from f1 to f2 = ∀ (da : Cht σ) (a1 a2 : ⟦ σ ⟧Type) → [ σ ] da from a1 to a2 → [ τ ] df a...
Hide deducible arguments
NewNew.agda: Hide deducible arguments
Agda
mit
inc-lc/ilc-agda
1ae2c016233ad8fa076a9b194e880387b889b8b0
Search/Searchable/Sum.agda
Search/Searchable/Sum.agda
open import Function.NP open import Data.Nat using (_+_) import Level as L import Function.Inverse.NP as FI import Function.Related as FR open FI using (_↔_; inverses; module Inverse) renaming (_$₁_ to to; _$₂_ to from) open import Function.Related.TypeIsomorphisms.NP open import Data.Product.NP open import Data.Sum op...
open import Function.NP open import Data.Nat using (_+_) import Level as L import Function.Inverse.NP as FI import Function.Related as FR open FI using (_↔_; inverses; module Inverse) renaming (_$₁_ to to; _$₂_ to from) open import Function.Related.TypeIsomorphisms.NP open import Data.Product.NP open import Data.Sum op...
add bit
Searchable.Sum: add bit
Agda
bsd-3-clause
crypto-agda/crypto-agda
7540b79d7380f6d1c7ca7db983d990a2aab84b00
lib/Explore/GroupHomomorphism.agda
lib/Explore/GroupHomomorphism.agda
{-# OPTIONS --without-K #-} module Explore.GroupHomomorphism where open import Level open import Algebra.FunctionProperties open import Data.Product open import Function using (_∘_ ; flip) open import Function.Inverse as Inv using (_↔_; module Inverse) open import Relation.Binary.PropositionalEquality.NP hiding (_∙_) ...
{-# OPTIONS --without-K #-} module Explore.GroupHomomorphism where open import Level open import Algebra.FunctionProperties open import Data.Product open import Function using (_∘_ ; flip) open import Function.Inverse as Inv using (_↔_; module Inverse) open import Relation.Binary.PropositionalEquality.NP hiding (_∙_) ...
refactor grouphomomorphism
refactor grouphomomorphism
Agda
bsd-3-clause
crypto-agda/explore
e4762e8af8591526fcb5395b9c63888ed89cadd2
Syntax/Type/Plotkin.agda
Syntax/Type/Plotkin.agda
module Syntax.Type.Plotkin where -- Types for language description à la Plotkin (LCF as PL) -- -- Given base types, we build function types. infixr 5 _⇒_ data Type (B : Set {- of base types -}) : Set where base : (ι : B) → Type B _⇒_ : (σ : Type B) → (τ : Type B) → Type B -- Lift (Δ : B → B) to (Δtype : Type B ...
module Syntax.Type.Plotkin where -- Types for language description à la Plotkin (LCF as PL) -- -- Given base types, we build function types. infixr 5 _⇒_ data Type (B : Set {- of base types -}) : Set where base : (ι : B) → Type B _⇒_ : (σ : Type B) → (τ : Type B) → Type B -- Lift (Δ : B → Type B) to (Δtype : Ty...
Remove code duplication
agda: Remove code duplication The current code defines two overloads of the same function independently, with duplicated documentation. However, one can be defined in terms of the other. Note: I could not fully test this code, since it is not yet clear which file is the main one. I typechecked Syntax.Language.Atlas, ...
Agda
mit
inc-lc/ilc-agda
23339dd5a9e56c3c31d42252c4020b716ec77725
Base/Change/Algebra.agda
Base/Change/Algebra.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Change Structures. -- -- This module defines the notion of change structures, -- as well as change structures for groups, functions and lists. -- -- This module corresponds to Section 2 of the PLDI paper. ----------...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Change Structures. -- -- This module defines the notion of change structures, -- as well as change structures for groups, functions and lists. -- -- This module corresponds to Section 2 of the PLDI paper. ----------...
Update references to paper
Update references to paper During revision, I added Lemma 2.5 to the paper, changing the numbering. This commits updates the numbering in the formalization.
Agda
mit
inc-lc/ilc-agda
2f337fa6c912b4b71f8a6539911608241ebc8524
Parametric/Change/Term.agda
Parametric/Change/Term.agda
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Change.Type as ChangeType module Parametric.Change.Term {Base : Set} (Constant : Term.Structure Base) (ΔBase : ChangeType.Structure Base) where -- Terms that operate on changes open Type.Structure Base open Te...
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Change.Type as ChangeType module Parametric.Change.Term {Base : Set} (Constant : Term.Structure Base) (ΔBase : ChangeType.Structure Base) where -- Terms that operate on changes open Type.Structure Base open Te...
Use helpers for nested applications.
Use helpers for nested applications. Old-commit-hash: e4c7562ec14ff04d00f64f84b95725baa11a85ca
Agda
mit
inc-lc/ilc-agda
561e54d6fa752c3e41e0261fcb95b5fe132461b5
Syntax/Term/Plotkin.agda
Syntax/Term/Plotkin.agda
import Syntax.Type.Plotkin as Type import Syntax.Context as Context module Syntax.Term.Plotkin {B : Set {- of base types -}} {C : Context.Context {Type.Type B} → Type.Type B → Set {- of constants -}} where -- Terms of languages described in Plotkin style open import Function using (_∘_) open import Data.Pr...
import Syntax.Type.Plotkin as Type import Syntax.Context as Context module Syntax.Term.Plotkin {B : Set {- of base types -}} {C : Context.Context {Type.Type B} → Type.Type B → Set {- of constants -}} where -- Terms of languages described in Plotkin style open import Function using (_∘_) open import Data.Pr...
Rename lift-η-const-rec to curryTermConstructor.
Rename lift-η-const-rec to curryTermConstructor. Also delete the frivolous comment, which is no longer necessary now that curryTermConstructor has a descriptive name and the matching type signature. Old-commit-hash: bcd82c9b32ab89ebe5c1badbec2d5714d0fce9bf
Agda
mit
inc-lc/ilc-agda
6e6a81d4cd5e6747138da920db56cf5c044c974c
total.agda
total.agda
module total where -- INCREMENTAL λ-CALCULUS -- with total derivatives -- -- Features: -- * changes and derivatives are unified (following Cai) -- * Δ e describes how e changes when its free variables or its arguments change -- * denotational semantics including semantics of changes -- -- Note that Δ is *not* ...
module total where -- INCREMENTAL λ-CALCULUS -- with total derivatives -- -- Features: -- * changes and derivatives are unified (following Cai) -- * Δ e describes how e changes when its free variables or its arguments change -- * denotational semantics including semantics of changes -- -- Note that Δ is *not* ...
rename parameter
agda: rename parameter As suggested by Tillmann. Old-commit-hash: 3b2f1506d9fc2595f06fb0d8e57a526bc30b03ac
Agda
mit
inc-lc/ilc-agda
b50b0f77764d63042aa5a88075d4320129b3681a
Syntactic/Terms/Total.agda
Syntactic/Terms/Total.agda
module Syntactic.Terms.Total where -- TERMS with a primitive for TOTAL DERIVATIVES -- -- This module defines the syntax of terms that support a -- primitive (Δ e) for computing the total derivative according -- to all free variables in e and all future arguments of e if e -- is a function. open import Syntactic.Types...
module Syntactic.Terms.Total where -- TERMS with a primitive for TOTAL DERIVATIVES -- -- This module defines the syntax of terms that support a -- primitive (Δ e) for computing the total derivative according -- to all free variables in e and all future arguments of e if e -- is a function. open import Syntactic.Types...
Change order of implicit arguments of term constructors.
Change order of implicit arguments of term constructors. This simplifies extracting the argument type from a term of function type. Old-commit-hash: 2742a31a130e9d01c2283f3e7cb7fae6102a4062
Agda
mit
inc-lc/ilc-agda
53ffa41592e8de74ad057626e193d26cc8e3b78b
Theorem/Groups-Nehemiah.agda
Theorem/Groups-Nehemiah.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- About the group structure of integers and bags for Nehemiah plugin. ------------------------------------------------------------------------ module Theorem.Groups-Nehemiah where open import Structure.Bag.Nehemiah ...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- About the group structure of integers and bags for Nehemiah plugin. ------------------------------------------------------------------------ module Theorem.Groups-Nehemiah where open import Structure.Bag.Nehemiah ...
reorder theorems
Groups-Nehemiah: reorder theorems
Agda
mit
inc-lc/ilc-agda
8bb712cd1a8c9c9cc0885ef29918d9cc47588189
Parametric/Denotation/Evaluation.agda
Parametric/Denotation/Evaluation.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Evaluation for languages described in Plotkin style ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parame...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Standard evaluation (Def. 3.3 and Fig. 4i) ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Deno...
Document P.D.Evaluation.
Document P.D.Evaluation. Old-commit-hash: a346d6ffd091c3041ecb8d087a4171aeffa63576
Agda
mit
inc-lc/ilc-agda
7b8de230698933472e580b5ece63a74cf55998a4
Parametric/Change/Term.agda
Parametric/Change/Term.agda
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Change.Type as ChangeType module Parametric.Change.Term {Base : Set} (Const : Term.Structure Base) (ΔBase : ChangeType.Structure Base) where -- Terms that operate on changes open Type.Structure Base open Term....
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Terms that operate on changes (Fig. 3). ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Change....
Document P.C.Term.
Document P.C.Term. Old-commit-hash: 0263f48a6674e209dc10d253b3ffab2671e313cd
Agda
mit
inc-lc/ilc-agda
1da8d765d3b45cbc385435bbd6c113c680b6f896
Parametric/Change/Term.agda
Parametric/Change/Term.agda
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Change.Type as ChangeType module Parametric.Change.Term {Base : Set} (Constant : Term.Structure Base) (ΔBase : ChangeType.Structure Base) where -- Terms that operate on changes open Type.Structure Base open Te...
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Change.Type as ChangeType module Parametric.Change.Term {Base : Set} (Constant : Term.Structure Base) (ΔBase : ChangeType.Structure Base) where -- Terms that operate on changes open Type.Structure Base open Te...
Generalize helper methods.
Generalize helper methods. Before this commit, the helper methods worked for one particular context that was inferred from the helper's use sites. I want to change the helper's use suite in the next commit so that the context would no longer get inferred automatically, so I have to generalize the helper methods for ar...
Agda
mit
inc-lc/ilc-agda
ef0b3de030e69c13f6abe2f657976fd6056b39d2
example1.agda
example1.agda
module example1 where open import Data.String.Base using (String) open import Data.Product open import Data.List.Base using (List; []; _∷_) open import Data.Bool.Base open import Function open import Control.Process.Type open import FFI.JS as JS open import FFI.JS.Proc import FFI.JS.Console as Console import FFI.JS....
module example1 where open import Data.String.Base using (String) open import Data.Product open import Data.List.Base using (List; []; _∷_) open import Data.Bool.Base open import Function open import Control.Process.Type open import FFI.JS as JS open import FFI.JS.Proc import FFI.JS.Console as Console import FFI.JS....
Update example1
Update example1
Agda
bsd-3-clause
crypto-agda/agda-libjs
b3651f102b65a31ef5dd4d541002915b3e5cc9fe
Base/Data/DependentList.agda
Base/Data/DependentList.agda
module Base.Data.DependentList where open import Data.List.All public using ( head ; tail ; map ; tabulate ) renaming ( All to DependentList ; _∷_ to _•_ ; [] to ∅ ) zipWith : ∀ {a p q r} {A : Set a} {P : A → Set p} {Q : A → Set q} {R : A → Set r} → (f : {a : A} → P a → Q a →...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Reexport Data.List.All from the standard library. -- -- At one point, we reinvented Data.List.All from the Agda -- standard library, under the name dependent list. We later -- replaced our reinvention by this adapte...
Improve commentary in Base.Data.DependentList.
Improve commentary in Base.Data.DependentList. Old-commit-hash: 7a4d9aea2f3574b1b3f21022bced5f9ef112264c
Agda
mit
inc-lc/ilc-agda
eea966329ff9f953b7330cd87ef1188ffe40f0f0
Parametric/Denotation/CachingEvaluation.agda
Parametric/Denotation/CachingEvaluation.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Caching evaluation ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Syntax.MType as MType impor...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Caching evaluation ------------------------------------------------------------------------ import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Syntax.MType as MType impor...
Correct caching for constants (by delegation)
Correct caching for constants (by delegation) This defines the plugin interface for constants (with a type that makes semantic sense), and delegates to that, while stipulating: * what are the appropriate types; * that constant arguments needn't be cached because they are values.
Agda
mit
inc-lc/ilc-agda
308d57f744384b21a2811f278b455dfb952dd324
Syntax/Language/Popl14.agda
Syntax/Language/Popl14.agda
module Syntax.Language.Popl14 where open import Syntax.Term.Popl14 open import Syntax.Context.Plotkin Popl14-type open import Data.Integer
module Syntax.Language.Popl14 where open import Syntax.Term.Popl14 open import Syntax.Context.Plotkin Popl14-type open import Data.Integer import Syntax.Language.Calculus as Calc ΔConst : ∀ {Γ Σ τ} → Const Σ τ → Term Γ (internalizeContext (Calc.ΔContext′ (Calc.Type Popl14-type) ΔType Σ) (ΔType τ)) --...
Define ΔConst for Popl14 and fill in calculus-with
Define ΔConst for Popl14 and fill in calculus-with Old-commit-hash: c1cdbc71d45afdb85da9ac22b3207d1cb03e0bf7
Agda
mit
inc-lc/ilc-agda
5ea0220b999f1d1ef9f072ca4bedfb82dc747ca1
Base/Change/Equivalence.agda
Base/Change/Equivalence.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence ------------------------------------------------------------------------ module Base.Change.Equivalence where open import Relation.Binary.PropositionalEquality open import Base.Chang...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- Delta-observational equivalence ------------------------------------------------------------------------ module Base.Change.Equivalence where open import Relation.Binary.PropositionalEquality open import Base.Chang...
Use a record for doe, as suggested by Tillmann
Use a record for doe, as suggested by Tillmann Old-commit-hash: f1a0e47b6fd1c171f165e2a9ba96fd258042a8ae
Agda
mit
inc-lc/ilc-agda
de617d2ad76260052f9d6ecbf3c054fc7eb183ef
Parametric/Change/Value.agda
Parametric/Change/Value.agda
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Denotation.Value as Value import Parametric.Change.Type as ChangeType module Parametric.Change.Value {Base : Type.Structure} (Const : Term.Structure Base) (⟦_⟧Base : Value.Structure Base) (ΔBase : ChangeType.S...
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Denotation.Value as Value import Parametric.Change.Type as ChangeType module Parametric.Change.Value {Base : Type.Structure} (Const : Term.Structure Base) (⟦_⟧Base : Value.Structure Base) (ΔBase : ChangeType.S...
Remove unused imports violating architectural constraints
Agda: Remove unused imports violating architectural constraints The parametric formalization shouldn't import stuff specific to the POPL14 calculus. Old-commit-hash: 30c3071e33a99422b2c878f7bca7937e8b1c216f
Agda
mit
inc-lc/ilc-agda
b0acfde8e76ff27fb9d7b8609c3d7acf1ccf1ef2
PLDI14-List-of-Theorems.agda
PLDI14-List-of-Theorems.agda
module PLDI14-List-of-Theorems where -- List of theorems in PLDI submission -- -- For hints about installation and execution, please refer -- to README.agda. -- -- Agda modules corresponding to definitions, lemmas and theorems -- are listed here with the most important names. For example, -- after this file type check...
module PLDI14-List-of-Theorems where -- List of theorems in PLDI submission -- -- For hints about installation and execution, please refer -- to README.agda. -- -- Agda modules corresponding to definitions, lemmas and theorems -- are listed here with the most important names. For example, -- after this file type check...
update PLDI14-List-of-Theorems.agda for consistency with #4
update PLDI14-List-of-Theorems.agda for consistency with #4 Camera-ready version inserts a "lemma 2.5", which means math items 2.5--2.9 should be renumbered 2.6--2.10. Relevant commits: 23339dd5a9e56c3c31d42252c4020b716ec77725 0c1e97fbf3b62bddf23559545a4c801b4189cb29
Agda
mit
inc-lc/ilc-agda
8fbacc398d3d884274c0a5d0564e3802b8ff356b
lib/Explore/Dice.agda
lib/Explore/Dice.agda
{-# OPTIONS --without-K #-} open import Type open import Data.Fin using (Fin; zero; suc; #_) import Function.Inverse.NP as Inv open import Relation.Binary.PropositionalEquality using (_≡_; refl) open Inv using (_↔_) open import Explore.Core open import Explore.Properties open import Explore.Explorable open import Expl...
{-# OPTIONS --without-K #-} open import Type open import Data.Fin using (Fin; zero; suc; #_) import Function.Inverse.NP as Inv open import Relation.Binary.PropositionalEquality using (_≡_; refl) open Inv using (_↔_) open import Explore.Core open import Explore.Properties open import Explore.Explorable open import Expl...
use the second flavor of Fin exploration to show that it behave as expected
Dice: use the second flavor of Fin exploration to show that it behave as expected
Agda
bsd-3-clause
crypto-agda/explore
c691b85f8bfd7f9b4a97533c4013b53d694c2eb0
Parametric/Syntax/MTerm.agda
Parametric/Syntax/MTerm.agda
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Syntax.MType as MType module Parametric.Syntax.MTerm {Base : Type.Structure} (Const : Term.Structure Base) where open Type.Structure Base open MType.Structure Base open Term.Structure Base Const -- Our extension p...
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Syntax.MType as MType module Parametric.Syntax.MTerm {Base : Type.Structure} (Const : Term.Structure Base) where open Type.Structure Base open MType.Structure Base open Term.Structure Base Const -- Our extension p...
Drop more dead comments
Drop more dead comments
Agda
mit
inc-lc/ilc-agda
c1960f9f07f5b25dbb7225149d30534a5c8f3464
Theorem/Groups-Nehemiah.agda
Theorem/Groups-Nehemiah.agda
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- About the group structure of integers and bags for Nehemiah plugin. ------------------------------------------------------------------------ module Theorem.Groups-Nehemiah where open import Structure.Bag.Nehemiah ...
------------------------------------------------------------------------ -- INCREMENTAL λ-CALCULUS -- -- About the group structure of integers and bags for Nehemiah plugin. ------------------------------------------------------------------------ module Theorem.Groups-Nehemiah where open import Structure.Bag.Nehemiah ...
add variant of 4-way-shuffle for naturals
Groups-Nehemiah: add variant of 4-way-shuffle for naturals
Agda
mit
inc-lc/ilc-agda
f8bd15f415762af0fce2117302889b7e97a25936
Parametric/Change/Term.agda
Parametric/Change/Term.agda
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Change.Type as ChangeType module Parametric.Change.Term {Base : Set} (Constant : Term.Structure Base) (ΔBase : ChangeType.Structure Base) where -- Terms that operate on changes open Type.Structure Base open Te...
import Parametric.Syntax.Type as Type import Parametric.Syntax.Term as Term import Parametric.Change.Type as ChangeType module Parametric.Change.Term {Base : Set} (Constant : Term.Structure Base) (ΔBase : ChangeType.Structure Base) where -- Terms that operate on changes open Type.Structure Base open Te...
Rename diff to diff-base.
Rename diff to diff-base. I want to move code between Parametric.Syntax.Term and Atlas.Syntax.Term, but I have to unify the naming conventions first. Old-commit-hash: 73a829a379ce12d2c01dbaf184ae2d380ad9abb1
Agda
mit
inc-lc/ilc-agda
be6f1fa3a0adbb680ac349286c28d45c17722184
Prob.agda
Prob.agda
module Prob where open import Data.Bool open import Data.Nat open import Data.Vec open import Function open import Relation.Binary.PropositionalEquality.NP open import Relation.Nullary record ]0,1]-ops (]0,1] : Set) : Set where field 1E : ]0,1] _+E_ : ]0,1] → ]0,1] → ]0,1] _·E_ : ]0,1] → ]0,1] → ...
module Prob where open import Data.Bool open import Data.Nat open import Data.Vec open import Data.Unit using (⊤) open import Data.Empty using (⊥) open import Function open import Relation.Binary.PropositionalEquality.NP open import Relation.Nullary record ]0,1]-ops (]0,1] : Set) (_≤E_ : ]0,1] → ]0,1] → Set) : Set ...
Fix some concrete non-sense about the division
Fix some concrete non-sense about the division
Agda
bsd-3-clause
crypto-agda/crypto-agda
a0c26d1d2731a3ccca7b00c77068c7bb3491ecab
FiniteField/JS.agda
FiniteField/JS.agda
{-# OPTIONS --without-K #-} open import Function.NP open import FFI.JS using (Number; Bool; true; false; String; warn-check; check; trace-call; _++_) open import FFI.JS.BigI open import Data.List.Base hiding (sum; _++_) {- open import Algebra.Raw open import Algebra.Field -} module FiniteField.JS (q : BigI) where abs...
{-# OPTIONS --without-K #-} open import Function.NP open import FFI.JS using (𝟙; Number; Bool; true; false; String; warn-check; check; trace-call; _++_) open import FFI.JS.BigI open import Data.List.Base hiding (sum; _++_) {- open import Algebra.Raw open import Algebra.Field -} module FiniteField.JS (q : BigI) where ...
rename ℤq to 𝔽
FiniteField.JS: rename ℤq to 𝔽
Agda
bsd-3-clause
crypto-agda/crypto-agda
0f09d9f4ac44a07ba808622a5206a04b696a6f76
derivation.agda
derivation.agda
module derivation where open import lambda -- CHANGE TYPES Δ-Type : Type → Type Δ-Type (τ₁ ⇒ τ₂) = τ₁ ⇒ Δ-Type τ₂ Δ-Type bool = {!!} apply : ∀ {τ Γ} → Term Γ (Δ-Type τ ⇒ τ ⇒ τ) apply {τ₁ ⇒ τ₂} = abs (abs (abs (app (app apply (app (var (that (that this))) (var this))) (app (var (that this)) (var this))))) -- λd...
module derivation where open import lambda -- CHANGE TYPES Δ-Type : Type → Type Δ-Type (τ₁ ⇒ τ₂) = τ₁ ⇒ Δ-Type τ₂ Δ-Type bool = {!!} apply : ∀ {τ Γ} → Term Γ (Δ-Type τ ⇒ τ ⇒ τ) apply {τ₁ ⇒ τ₂} = abs (abs (abs (app (app apply (app (var (that (that this))) (var this))) (app (var (that this)) (var this))))) -- λd...
correct Δ-term, more comments
agda/derivation.agda: correct Δ-term, more comments In the previous commit I forgot some comments and I forgot applying some changes, something the typechecker unfortunately would not detect. Fix that. Old-commit-hash: 9a72bde5058103929f5d3c0eda97b9850a5d7c9c
Agda
mit
inc-lc/ilc-agda
8f895d5906dc2d743ba0dc39c4f907e17931b4f9
Denotational/ValidChanges.agda
Denotational/ValidChanges.agda
module Denotational.ValidChanges where open import Data.Product open import Data.Unit open import Relation.Nullary open import Relation.Binary.PropositionalEquality open import Syntactic.Types open import Denotational.Notation open import Denotational.Values open import Denotational.Equivalence open import Changes ...
module Denotational.ValidChanges where open import Data.Product open import Data.Unit open import Relation.Nullary open import Relation.Binary.PropositionalEquality open import Syntactic.Types open import Denotational.Notation open import Denotational.Values open import Denotational.Equivalence open import Changes ...
implement proof-decorated environments (#33)
agda: implement proof-decorated environments (#33) Old-commit-hash: eb0097a135a39c572cfb62c967a388632b42f839
Agda
mit
inc-lc/ilc-agda
7c497fbc194526d5d3f1a4335a6f74574050c633
TotalNaturalSemantics.agda
TotalNaturalSemantics.agda
module TotalNaturalSemantics where open import Relation.Binary.PropositionalEquality open import meaning open import Model --open import Changes --open import ChangeContexts open import binding Type ⟦_⟧Type open import TotalTerms -- NATURAL SEMANTICS -- (without support for Δ for now) -- Syntax data Env : Context...
module TotalNaturalSemantics where open import Relation.Binary.PropositionalEquality open import meaning open import Model --open import Changes --open import ChangeContexts open import binding Type ⟦_⟧Type open import TotalTerms open import Relation.Binary.PropositionalEquality -- NATURAL SEMANTICS -- (without su...
Fix TotalNaturalSemantics.agda (fix #32).
Fix TotalNaturalSemantics.agda (fix #32). Old-commit-hash: 3665667d355c2d049d92115cd27f98cc9dc4f3a2
Agda
mit
inc-lc/ilc-agda
3ecae75aaafb233597792507020b6d74bee0ecfe
Data/NatBag.agda
Data/NatBag.agda
-- An agda type isomorphic to bags of natural numbers -- How to import this file from anywhere in the world -- -- 1. M-x customize-group RET agda2 RET -- 2. Look for the option `Agda2 Include Dirs` -- 3. Insert "$ILC/agda", where $ILC is path to ILC repo on your computer -- 4. "Save for future sessions" -- 5. open imp...
-- An agda type isomorphic to bags of natural numbers -- How to import this file from anywhere in the world -- -- 1. M-x customize-group RET agda2 RET -- 2. Look for the option `Agda2 Include Dirs` -- 3. Insert "$ILC/agda", where $ILC is path to ILC repo on your computer -- 4. "Save for future sessions" -- 5. open imp...
Implement map, union, difference on bags of natural numbers (#51)
Implement map, union, difference on bags of natural numbers (#51) TODO before closing the issue: - Introduce bags and prove the stupid derivative of map correct. Old-commit-hash: 76c8ff03739579a6839431ba637557395ccbf8b2
Agda
mit
inc-lc/ilc-agda
f44ff9c8dc76e1365c69137588490cc7705c8477
Denotational/ValidChanges.agda
Denotational/ValidChanges.agda
module Denotational.ValidChanges where open import Data.Product open import Data.Unit open import Relation.Binary.PropositionalEquality open import Syntactic.Types open import Denotational.Notation open import Denotational.Values open import Denotational.Equivalence open import Changes -- DEFINITION of valid chang...
module Denotational.ValidChanges where open import Data.Product open import Data.Unit open import Relation.Binary.PropositionalEquality open import Syntactic.Types open import Denotational.Notation open import Denotational.Values open import Denotational.Equivalence open import Changes -- DEFINITION of valid chang...
rename datatype valid-Δ |-> Valid-Δ
agda: rename datatype valid-Δ |-> Valid-Δ Old-commit-hash: 37b8db1e2601a886b5bcd31b170ad1560352b8a7
Agda
mit
inc-lc/ilc-agda
2c0998148ca4d0f531c98144173c0d27ec548b8a
ZK/Schnorr.agda
ZK/Schnorr.agda
module ZK.Schnorr where open import Type open import Data.Two open import Relation.Binary.PropositionalEquality.NP import ZK.Sigma-Protocol module Shnorr-protocol (G ℤq : ★) (g : G) (_^_ : G → ℤq → G) (_·_ : G → G → G) (_/_ : G → G → G) (_+_ : ℤq → ℤq → ℤq) (_*_ : ℤq → ℤq → ℤq...
open import Type using (Type) open import Data.Bool.Minimal using (Bool) renaming (T to ✓) open import Relation.Binary.PropositionalEquality.NP using (_≡_; idp; ap; ap₂; !_; module ≡-Reasoning) open import ZK.Types using (Cyclic-group; module Cyclic-group ; Cyclic-group-properties; module Cyc...
Update and extend ZK/Schnorr
Update and extend ZK/Schnorr
Agda
bsd-3-clause
crypto-agda/crypto-agda
70def950c8925dc369db199a79e13cb59ff30970
adder.agda
adder.agda
{-# OPTIONS --without-K #-} open import Type open import Data.Nat.NP open import Data.Bool using (if_then_else_) import Data.Vec as V open V using (Vec; []; _∷_) open import Function.NP hiding (id) open import FunUniverse.Core hiding (_,_) open import Data.Fin using (Fin; zero; suc; #_; inject+; raise) renaming (toℕ to...
{-# OPTIONS --without-K #-} open import Type open import Data.Nat.NP open import Data.Bool using (if_then_else_) import Data.Vec as V open V using (Vec; []; _∷_) open import Function.NP hiding (id) open import FunUniverse.Core hiding (_,_) open import Data.Fin using (Fin; zero; suc; #_; inject+; raise) renaming (toℕ to...
use mapAccum
adder: use mapAccum
Agda
bsd-3-clause
crypto-agda/crypto-agda