Skip to content

Commit

Permalink
add subst0 to substitute erased equalities in non-erased types
Browse files Browse the repository at this point in the history
  • Loading branch information
liesnikov committed Jan 18, 2024
1 parent 984821a commit cc2a596
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Haskell/Prelude.agda
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ lookup : ⦃ Eq a ⦄ → a → List (a × b) → Maybe b
lookup x [] = Nothing
lookup x ((x₁ , y) ∷ xs) = if x == x₁ then Just y else lookup x xs


subst0 : (p : @0 a Set) {@0 x y : a} @0 x ≡ y p x p y
subst0 p refl z = z
{-# COMPILE AGDA2HS subst0 transparent #-}

-------------------------------------------------
-- Unsafe functions

Expand Down

0 comments on commit cc2a596

Please sign in to comment.