Debian Codegraph @

src/Data/W/WithK.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Some code related to the W type that relies on the K rule
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --with-K --safe #-}
8
9 module Data.W.WithK where
10
11 open import Data.Product.Base using (_,_)
12 open import Data.Container.Core using (Container; Shape; Position; _⇒_)
13 open import Data.W using (W; sup)
14 open import Agda.Builtin.Equality using (_≡_; refl)
15
16 module _ {s p} {C : Container s p}
17 {s : Shape C} {f : Position C s → W C} where
18
19 sup-injective₂ : ∀ {g} → sup (s , f) ≡ sup (s , g) → f ≡ g
20 sup-injective₂ refl = refl