From ec47ee14b9154410b7c72fb067671ea79fd71523 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Wed, 9 Jan 2013 23:24:58 +0100 Subject: simplify lemma-lookupM-checkInsert using case-split --- CheckInsert.agda | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CheckInsert.agda b/CheckInsert.agda index ad0bb1a..7e3f3aa 100644 --- a/CheckInsert.agda +++ b/CheckInsert.agda @@ -82,10 +82,5 @@ lemma-lookupM-checkInsert i j x y h .(insert j y h) pl refl | nothing | pl' | no ≡⟨ pl ⟩ just x ∎ lemma-lookupM-checkInsert i j x y h h' pl ph' | just z | pl' with deq y z -lemma-lookupM-checkInsert i j x y h h' pl ph' | just .y | pl' | yes refl = begin - lookupM i h' - ≡⟨ cong (lookupM i) (just-injective (sym ph')) ⟩ - lookupM i h - ≡⟨ pl ⟩ - just x ∎ +lemma-lookupM-checkInsert i j x y h .h pl refl | just .y | pl' | yes refl = pl lemma-lookupM-checkInsert i j x y h h' pl () | just z | pl' | no ¬p -- cgit v1.2.3