result of 'context library::Library inv: Sequence{'a','b'}'
[Sequence { 'a', 'b' }]
[Sequence { 'a', 'b' }]
result of 'context library::Library inv: Sequence{5..8}'
[Sequence { 5, 6, 7, 8 }]
[Sequence { 5, 6, 7, 8 }]
result of 'context library::Library inv: let x=3 in Sequence{1..x}'
[Sequence { 1, 2, 3 }]
[Sequence { 1, 2, 3 }]
result of 'context library::Library inv: Sequence{3,5..8,4}'
[Sequence { 3, 5, 6, 7, 8, 4 }]
[Sequence { 3, 5, 6, 7, 8, 4 }]
result of 'context library::Library inv: Sequence{'a','b','a'}'
[Sequence { 'a', 'b', 'a' }]
[Sequence { 'a', 'b', 'a' }]
result of 'context library::Library inv: Sequence{Set{1},Set{2,3}}'
[Sequence { Set { 1 }, Set { 2, 3 } }]
[Sequence { Set { 1 }, Set { 2, 3 } }]
result of 'context library::Library inv: Sequence{'a','b','c'}->iterate(v1; v2 : String = '' | v2.concat(v1))'
['abc']
['abc']
result of 'context library::Library inv: Sequence{3,2,1}->iterate(e : Integer; acc : Integer = 6 | acc - e)'
[0]
[0]
result of 'context library::Library inv: Sequence{1,2,3}->iterate( e1: Integer;  res : Integer = 0 | res + e1)'
[6]
[6]
result of 'context library::Library inv: Sequence{1,1,2,3}->size()'
[4]
[4]
result of 'context library::Library inv: Sequence{1,2,2,3}->includes(2)'
[true]
[true]
result of 'context library::Library inv: Sequence{1,2,3}->includes(5)'
[false]
[false]
result of 'context library::Library inv: Sequence{1,2,2,3}->excludes(2)'
[false]
[false]
result of 'context library::Library inv: Sequence{1,2,3}->excludes(5)'
[true]
[true]
result of 'context library::Library inv: Sequence{1,1,2,3}->count(1)'
[2]
[2]
result of 'context library::Library inv: Sequence{1,1,2,3}->includesAll(Sequence{1,3})'
[true]
[true]
result of 'context library::Library inv: Sequence{1,2,3}->includesAll(Sequence{1,1,3})'
[true]
[true]
result of 'context library::Library inv: Sequence{1,2,3}->includesAll(Sequence{2,4})'
[false]
[false]
result of 'context library::Library inv: Sequence{1,2,3}->includesAll(Set{2,3})'
[true]
[true]
result of 'context library::Library inv: Sequence{1,2,3}->includesAll(Sequence{3,2})'
[true]
[true]
result of 'context library::Library inv: Sequence{1,2,2}->includesAll(Bag{2,2})'
[true]
[true]
result of 'context library::Library inv: Sequence{1,2,3}->excludesAll(Sequence{2,3})'
[false]
[false]
result of 'context library::Library inv: Sequence{1,2,3}->excludesAll(Sequence{2,4})'
[false]
[false]
result of 'context library::Library inv: Sequence{1,2,3}->excludesAll(Sequence{4,5})'
[true]
[true]
result of 'context library::Library inv: Sequence{1,2,3}->isEmpty()'
[false]
[false]
result of 'context library::Library inv: Sequence{}->isEmpty()'
[true]
[true]
result of 'context library::Library inv: Sequence{1,2,3}->notEmpty()'
[true]
[true]
result of 'context library::Library inv: Sequence{}->notEmpty()'
[false]
[false]
result of 'context library::Library inv: Sequence{1,1,2,3}->sum()'
[7]
[7]
result of 'context library::Library inv: Sequence{1,2} = Sequence{1,2}'
[false]
[false]
result of 'context library::Library inv: Sequence{1,2} <> Sequence{1,2}'
[true]
[true]
result of 'context library::Library inv: Sequence{1,2} = Sequence{2,1}'
[false]
[false]
result of 'context library::Library inv: Sequence{1,2} <> Sequence{2,1}'
[true]
[true]
result of 'context library::Library inv: Sequence{1.0,2.0} = Sequence{1,2}'
[false]
[false]
result of 'context library::Library inv: Sequence{1,2}->union(Sequence{2,1})'
[Sequence { 1, 2, 2, 1 }]
[Sequence { 1, 2, 2, 1 }]
result of 'context library::Library inv: Sequence{1,2}->union(Sequence{3,4})'
[Sequence { 1, 2, 3, 4 }]
[Sequence { 1, 2, 3, 4 }]
result of 'context library::Library inv: Sequence{1,2,3}->append(0)'
[Sequence { 1, 2, 3, 0 }]
[Sequence { 1, 2, 3, 0 }]
result of 'context library::Library inv: Sequence{1,2,3}->prepend(4)'
[Sequence { 4, 1, 2, 3 }]
[Sequence { 4, 1, 2, 3 }]
result of 'context library::Library inv: Sequence{3,2,1}->subSequence(1,3)'
[Sequence { 3, 2, 1 }]
[Sequence { 3, 2, 1 }]
result of 'context library::Library inv: Sequence{3,2,1}->subSequence(2,3)'
[Sequence { 2, 1 }]
[Sequence { 2, 1 }]
result of 'context library::Library inv: Sequence{3,2,1}->subSequence(0,3)'
[undefined]
[undefined]
result of 'context library::Library inv: Sequence{1,2,3}->at(1)'
[1]
[1]
result of 'context library::Library inv: Sequence{1,2,3}->at(2)'
[2]
[2]
result of 'context library::Library inv: Sequence{1,2,3}->at(3)'
[3]
[3]
result of 'context library::Library inv: Sequence{1,2,3}->first()'
[1]
[1]
result of 'context library::Library inv: Sequence{}->first()'
[undefined]
[undefined]
result of 'context library::Library inv: Sequence{1,2,3}->last()'
[3]
[3]
result of 'context library::Library inv: Sequence{}->last()'
[undefined]
[undefined]
result of 'context library::Library inv: Sequence{1,2,3}->including(0)'
[Sequence { 1, 2, 3, 0 }]
[Sequence { 1, 2, 3, 0 }]
result of 'context library::Library inv: Sequence{1,2,2,1,3,1}->excluding(1)'
[Sequence { 2, 2, 3 }]
[Sequence { 2, 2, 3 }]
result of 'context library::Library inv: Sequence{1,2,2,1,3,1}->excluding(5)'
[Sequence { 1, 2, 2, 1, 3, 1 }]
[Sequence { 1, 2, 2, 1, 3, 1 }]
result of 'context library::Library inv: Sequence{1,2,2,3}->select(e | e > 1)'
[Sequence { 2, 2, 3 }]
[Sequence { 2, 2, 3 }]
result of 'context library::Library inv: Sequence{1,2,2,3}->reject(e | e > 1)'
[Sequence { 1 }]
[Sequence { 1 }]
result of 'context library::Library inv: Sequence{1,2,2,3}->asBag()'
[Bag { 1, 2, 2, 3 }]
[Bag { 1, 2, 2, 3 }]
result of 'context library::Library inv: Sequence{1,2,2,3}->asSet()'
[Set { 1, 2, 3 }]
[Set { 1, 2, 3 }]
result of 'context library::Library inv: Sequence{Sequence{1,2}, Sequence{2,1}, Sequence{2,3}}->flatten()'
[Sequence { 1, 2, 2, 1, 2, 3 }]
[Sequence { 1, 2, 2, 1, 2, 3 }]
result of 'context library::Library inv: Sequence{Set{1,2},Set{2,1}}->forAll(s : Set(Integer) | s = Set{1,2})'
[false]
[false]
result of 'context library::Library inv: Sequence{1,2,3,4,5,6}->exists(e | e > 0)'
[true]
[true]
result of 'context library::Library inv: Sequence{1,2,3,4,5,6}->exists(e | e = 7)'
[false]
[false]
result of 'context library::Library inv: Sequence{1,2,3,4,5,6}->forAll(e | e > 0)'
[true]
[true]
result of 'context library::Library inv: Sequence{1,2,3,4,5,6}->forAll(e | e > 1)'
[false]
[false]
result of 'context library::Library inv: Sequence{1,2}->isUnique(e | e)'
[true]
[true]
result of 'context library::Library inv: Sequence{1,2,1}->isUnique(e | e)'
[false]
[false]
result of 'context library::Library inv: Sequence{4,4,2,3,1,4,6,1,5}->sortedBy(e | e)'
[Sequence { 1, 1, 2, 3, 4, 4, 4, 5, 6 }]
[Sequence { 1, 1, 2, 3, 4, 4, 4, 5, 6 }]
result of 'context library::Library inv: Sequence{4,4,2,3,1,4,6,1,5}->sortedBy(1)->includesAll(Sequence{4,4,2,3,1,4,6,1,5})'
[true]
[true]
result of 'context library::Library inv: Sequence{'c','aa','ca','cc','a','aa'}->sortedBy(e | e.size())'
[Sequence { 'c', 'a', 'aa', 'ca', 'cc', 'aa' }]
[Sequence { 'c', 'a', 'aa', 'ca', 'cc', 'aa' }]
result of 'context library::Library inv: Sequence{3,2,1,2,3}->any(e | e < 2)'
[1]
[1]
result of 'context library::Library inv: Sequence{3,2,1,2,3}->any(e | e < 1)'
[undefined]
[undefined]
result of 'context library::Library inv: Sequence{3,2,1,2,3}->any(e | e < 3)'
[2]
[2]
