Book IX · Proposition 25
If from an even number an odd number be subtracted, the remainder will be odd.Heath, 1908
Needs: IX.23
Used by: IX.27
Rests on: Def.VII.6
Depth: 3 steps of argument above the first principles. Parallel postulate: not needed.
Nothing. It draws no intersections and reads nothing off the picture.
@proposition("IX.25", THEOREM,
sample=lambda rng: _pair_by_parity(rng, True, False))
def prop_IX_25(a: int, b: int) -> Out:
hypothesis("an even number has an odd subtracted",
measures(2, a) and not measures(2, b))
hypothesis("the subtraction is a proper one", a > b, guard=True)
because(prop_IX_23, [b]) if not measures(2, b) else None
claim("the remainder is odd", "IX.23", not measures(2, a - b))
return Out(remainder=a - b)