Skip to content

Commit 6a2ca50

Browse files
committed
ScopedSnocList: WIP: a (b +%+ c) => a (c ++ b) but actually a special case for elemInsertedMiddle
1 parent 2716e1c commit 6a2ca50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/Case/CaseBuilder.idr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ zeroedScore nps = Scored nps (replicate (S $ length ps) 0)
688688
||| Proof that a value `v` inserted in the middle of a list with
689689
||| prefix `ps` and suffix `qs` can equivalently be snoced with
690690
||| `ps` or consed with `qs` before appending `qs` to `ps`.
691-
elemInsertedMiddle : (v : a) -> (ps,qs : SnocList a) -> (ps +%+ (qs :< v)) = ((ps `snoc` v) +%+ qs)
691+
elemInsertedMiddle : (v : a) -> (ps,qs : SnocList a) -> ((qs :< v) ++ ps) = (qs ++ (ps `snoc` v))
692692
elemInsertedMiddle v [<] qs = Refl
693693
elemInsertedMiddle v (xs :< x) qs = rewrite elemInsertedMiddle v xs qs in Refl
694694

0 commit comments

Comments
 (0)