Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dnezam committed Feb 8, 2024
1 parent 401a8cc commit 6ab9bda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions seqs/seqs.gobra
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ ghost
ensures Flatten(seq[seq[int]]{xs}) == xs
decreases
pure func FlattenSingleton(xs seq[int]) util.Unit {
// This manually asserts the body of Flatten. For more information, see
// https://github.com/viperproject/silicon/issues/803
return util.Asserting(Flatten(seq[seq[int]]{xs}) == seq[seq[int]]{xs}[0] ++ Flatten(seq[seq[int]]{xs}[1:]))
// See https://github.com/viperproject/silicon/issues/803 for an explanation
// of this proof.
return util.Asserting(Flatten(seq[seq[int]]{xs}[1:]) == Empty())
}

// The length of a flattened sequence of sequences xs is greater than or equal
Expand Down

0 comments on commit 6ab9bda

Please sign in to comment.