Skip to content

Commit

Permalink
Added lhs conjunct to avoid matching loop (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoeilers authored Dec 19, 2024
1 parent 3e47ae2 commit 03e7dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/dafny_axioms/sequences.vpr
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ domain $Seq[E] {
axiom {
forall s: $Seq[E], t: $Seq[E], n: Int ::
{ Seq_take(Seq_append(s, t), n) }
n > 0 && n > Seq_length(s) ==> Seq_add(Seq_sub(n, Seq_length(s)), Seq_length(s)) == n && Seq_take(Seq_append(s, t), n) == Seq_append(s, Seq_take(t, Seq_sub(n, Seq_length(s))))
n > 0 && n > Seq_length(s) && n < Seq_length(Seq_append(s, t)) ==> Seq_add(Seq_sub(n, Seq_length(s)), Seq_length(s)) == n && Seq_take(Seq_append(s, t), n) == Seq_append(s, Seq_take(t, Seq_sub(n, Seq_length(s))))
}
axiom {
forall s: $Seq[E], t: $Seq[E], n: Int ::
Expand Down

0 comments on commit 03e7dab

Please sign in to comment.