Debian Codegraph @

src/Data/Product/Properties/WithK.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Properties, related to products, that rely on the K rule
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --with-K --safe #-}
8
9 module Data.Product.Properties.WithK where
10
11 open import Data.Product.Base using (Σ; _,_)
12 open import Function.Base using (_∋_)
13 open import Relation.Binary.PropositionalEquality.Core
14 using (_≡_; refl)
15
16 ------------------------------------------------------------------------
17 -- Equality
18
19 -- These exports are deprecated from v1.4
20 open import Data.Product.Properties using (,-injective; ≡-dec) public
21
22 module _ {a b} {A : Set a} {B : A → Set b} where
23
24 ,-injectiveʳ : ∀ {a} {b c : B a} → (Σ A B ∋ (a , b)) ≡ (a , c) → b ≡ c
25 ,-injectiveʳ refl = refl