Skip to content

Commit

Permalink
erase p in the subst0
Browse files Browse the repository at this point in the history
and move to a different part of the file
  • Loading branch information
liesnikov authored and flupe committed Jan 23, 2024
1 parent f08e4b5 commit 20e3cbc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Haskell/Prelude.agda
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ errorWithoutStackTrace : {@0 @(tactic absurd) i : ⊥} → String → a
errorWithoutStackTrace {i = ()} err


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

-------------------------------------------------
-- More List functions
-- These uses Eq, Ord, or Foldable, so can't go in Prim.List without
Expand All @@ -125,10 +129,6 @@ 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 20e3cbc

Please sign in to comment.