Skip to content

Commit

Permalink
Merge pull request #6 from turion/dev_standard_library_1.4
Browse files Browse the repository at this point in the history
Dev standard library 1.4
  • Loading branch information
effectfully authored Sep 18, 2020
2 parents e102b0e + a89e173 commit 3d20000
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Generic/Lib/Category.agda
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Generic.Lib.Category where

open import Category.Functor public
open import Category.Functor public hiding (Morphism)
open import Category.Applicative public
open import Category.Monad public

Expand Down
2 changes: 1 addition & 1 deletion src/Generic/Lib/Data/Product.agda
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Generic.Lib.Data.Product where

open import Data.Product renaming (map to pmap; zip to pzip) hiding (map₁; map₂) public
open import Data.Product renaming (map to pmap; zip to pzip) hiding (map₁; map₂; dmap; _<*>_; assocʳ; assocˡ) public

open import Generic.Lib.Intro
open import Generic.Lib.Category
Expand Down
2 changes: 1 addition & 1 deletion src/Generic/Lib/Data/Sum.agda
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Generic.Lib.Data.Sum where

open import Data.Sum hiding (swap) renaming (map to smap) hiding (map₁; map₂) public
open import Data.Sum hiding (swap) renaming (map to smap) hiding (map₁; map₂; assocʳ; assocˡ) public
8 changes: 4 additions & 4 deletions src/Generic/Lib/Decidable.agda
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ record Eq {α} (A : Set α) : Set α where
field _≟_ : IsSet A

_==_ : A -> A -> Bool
x == y = ⌊ x ≟ y ⌋
x == y = ⌊ x ≟ y ⌋
open Eq {{...}} public

record _↦_ {α} (A B : Set α) : Set α where
Expand Down Expand Up @@ -70,11 +70,11 @@ prodM2 h f g d e = drec (λ x -> drec (h x) g e) f d

sumF2 : {α β γ} {A : Set α} {B : Set β} {C : Set γ}
-> (A -> C) -> (B -> C) -> (¬ A -> ¬ B -> ¬ C) -> Dec A -> Dec B -> Dec C
sumF2 f g h = sumM2 (yes ∘ f) (yes ∘ g) (no % ∘ h)
sumF2 f g h = sumM2 (yes ∘ f) (yes ∘ g) (no % ∘ h)

prodF2 : {α β γ} {A : Set α} {B : Set β} {C : Set γ}
-> (A -> B -> C) -> (¬ A -> ¬ C) -> (¬ B -> ¬ C) -> Dec A -> Dec B -> Dec C
prodF2 h f g = prodM2 (yes % ∘ h) (no ∘ f) (no ∘ g)
prodF2 h f g = prodM2 (yes % ∘ h) (no ∘ f) (no ∘ g)

dcong : {α β} {A : Set α} {B : Set β} {x y}
-> (f : A -> B) -> (f x ≡ f y -> x ≡ y) -> x # y -> f x # f y
Expand All @@ -89,7 +89,7 @@ dcong₂ : ∀ {α β γ} {A : Set α} {B : Set β} {C : Set γ} {x₁ x₂ y₁
dcong₂ f inj = prodF2 (cong₂ f) (λ c -> c ∘ proj₁ ∘ inj) (λ c -> c ∘ proj₂ ∘ inj)

dhcong₂ : {α β γ} {A : Set α} {B : A -> Set β} {C : Set γ} {x₁ x₂ y₁ y₂}
-> (f : x -> B x -> C)
-> (f : x -> B x -> C)
-> (f x₁ y₁ ≡ f x₂ y₂ -> [ B ] y₁ ≅ y₂)
-> x₁ # x₂
-> ( y₂ -> y₁ # y₂)
Expand Down

0 comments on commit 3d20000

Please sign in to comment.