diff options
author | Helmut Grohne <helmut@subdivi.de> | 2012-03-16 11:41:44 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2012-03-16 11:41:44 +0100 |
commit | 2759f0dd1c48bc2976ce5be55ee10c9f0660da6d (patch) | |
tree | 9582906e25d07d9da4bfacdd415150d43cfdb87b | |
parent | 0a761e5511e700dad236ee70bcdaf69c7de700f0 (diff) | |
download | bidiragda-2759f0dd1c48bc2976ce5be55ee10c9f0660da6d.tar.gz |
fix wrong function name in lemma-2
lookup and lookupM reference the same function, but serve different
purposes.
-rw-r--r-- | Bidir.agda | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -80,7 +80,7 @@ lemma-2 eq (i ∷ is) (x ∷ xs) h () | nothing | _ lemma-2 eq (i ∷ is) (x ∷ xs) h p | just h' | Reveal_is_.[_] ir = begin map (flip lookupM h) (i ∷ is) ≡⟨ refl ⟩ - lookup i h ∷ map (flip lookupM h) is + lookupM i h ∷ map (flip lookupM h) is ≡⟨ cong (flip _∷_ (map (flip lookup h) is)) (lemma-lookupM-assoc eq i is x xs h (begin assoc eq (i ∷ is) (x ∷ xs) ≡⟨ cong (flip _>>=_ (checkInsert eq i x)) ir ⟩ |