More than the sum of their parts

A first look at generative effects(3)
Exercise 1-1(2)

Give an example and non-example for

  1. an order-preserving function

  2. a metric-preserving function

  3. an addition-preserving function

Solution(1)
  1. Order-preserving \(x+1\), non-order-preserving \(-x\)

  2. Metric preserving \(x+1\), non-metric-preserving \(2x\)

  3. Addition-preserving \(2x\), non-addition-preserving \(x^2\)

Linked by

Ordering systems(3)
Exercise 1-7(2)

Using the order \(false \leq true\) for \(\mathbb{B}\), what is:

  • \(true \lor false\)

  • \(false \lor true\)

  • \(true \lor true\)

  • \(false \lor false\)

Solution(1)

This is same as logical or: \(true,\ true,\ true,\ false\)