19.11.2014 Views

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

test s : SetZ = {−2000, 0, 1, 7, 42, 59, 100, 1000, 5697}<br />

test fIsMonotonicOverS[x ← s, y ← s] = fIsMonotonic(x, y)<br />

test fIsMonotonicHairy[x ← s, y ← s] = fIsMonotonic(x, x 2 + y)<br />

<strong>The</strong> test fIsMonotonicOverS tests that function f is monotonic over all values in set s . <strong>The</strong> test fIsMonotonicHairy<br />

tests that f is monotonic with respect to the values in s compared to the set of values corresponding to all the ways in<br />

which we can choose an element of s , square it, and add it to another element of s .<br />

152

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!