From fcf8bd5d0530dd6b05ba5c2931a66171b823e651 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Thu, 19 Apr 2012 11:58:40 +0200 Subject: FinMap: lemma-lookupM-restrict drop useless implicit --- FinMap.agda | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FinMap.agda b/FinMap.agda index 81862f6..ff5dda7 100644 --- a/FinMap.agda +++ b/FinMap.agda @@ -72,7 +72,7 @@ lemma-from-just : {A : Set} → {x y : A} → _≡_ {_} {Maybe A} (just x) (just lemma-from-just refl = refl lemma-lookupM-restrict : {A : Set} {n : ℕ} → (i : Fin n) → (f : Fin n → A) → (is : List (Fin n)) → (a : A) → lookupM i (restrict f is) ≡ just a → f i ≡ a -lemma-lookupM-restrict {A} i f [] a p = lemma-just≢nothing (trans (sym p) (lemma-lookupM-empty i)) +lemma-lookupM-restrict i f [] a p = lemma-just≢nothing (trans (sym p) (lemma-lookupM-empty i)) lemma-lookupM-restrict i f (i' ∷ is) a p with i ≟ i' lemma-lookupM-restrict i f (.i ∷ is) a p | yes refl = lemma-from-just (begin just (f i) -- cgit v1.2.3