diff options
author | Helmut Grohne <helmut@subdivi.de> | 2012-11-22 15:23:03 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2012-11-22 15:23:03 +0100 |
commit | ead32cdaae65f5b87bf0d6a6732239f52450becb (patch) | |
tree | f90e9b6b6c611e3d528c640b49be2d10dcd12b9c | |
parent | e309253739ad0e3d9172e0b29156a5c88bbc9dbb (diff) | |
download | bidiragda-ead32cdaae65f5b87bf0d6a6732239f52450becb.tar.gz |
shorten line length of lemma-lookupM-checkInsert
-rw-r--r-- | CheckInsert.agda | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CheckInsert.agda b/CheckInsert.agda index 600b754..ad0bb1a 100644 --- a/CheckInsert.agda +++ b/CheckInsert.agda @@ -74,7 +74,7 @@ lemma-checkInsert-restrict f i is = apply-checkInsertProof i (f i) (restrict f i lemma-lookupM-checkInsert : {n : ℕ} → (i j : Fin n) → (x y : Carrier) → (h h' : FinMapMaybe n Carrier) → lookupM i h ≡ just x → checkInsert j y h ≡ just h' → lookupM i h' ≡ just x lemma-lookupM-checkInsert i j x y h h' pl ph' with lookupM j h | inspect (lookupM j) h lemma-lookupM-checkInsert i j x y h .(insert j y h) pl refl | nothing | pl' with i ≟ j -lemma-lookupM-checkInsert i .i x y h .(insert i y h) pl refl | nothing | [ pl' ] | yes refl = lemma-just≢nothing (begin just x ≡⟨ sym pl ⟩ lookupM i h ≡⟨ pl' ⟩ (nothing ∎)) +lemma-lookupM-checkInsert i .i x y h .(insert i y h) pl refl | nothing | [ pl' ] | yes refl = lemma-just≢nothing (trans (sym pl) pl') lemma-lookupM-checkInsert i j x y h .(insert j y h) pl refl | nothing | pl' | no ¬p = begin lookupM i (insert j y h) ≡⟨ sym (lemma-lookupM-insert-other i j y h ¬p) ⟩ |