---
title: "Proof by definition, contraposition, and contradiction, and disprove by counter-example"
author:
  - name: "Fan Wang"
    affiliation: "Department of Economics, University of Houston"
    url: "https://fanwangecon.github.io/"
date: "2026-11-30"
---

**Part of [Math Camp: An Introduction to Mathematics and Statistics with Applications in Economics](https://fanwangecon.github.io/Stam4Econ/).**  
[Main Stam4Econ site](https://fanwangecon.github.io/Stam4Econ/) | [View this section in the book](https://fanwangecon.github.io/Stam4Econ/math_proofs/overview.html#proof-by-definition-contraposition-and-contradiction-and-disprove-by-counter-example) | [Author: Fan Wang](https://fanwangecon.github.io/) | [DOI: 10.5281/zenodo.24696926](https://doi.org/10.5281/zenodo.24696926)  
Date: 2026-11-30 | [HTML](https://fanwangecon.github.io/Stam4Econ/htmlpdfq/math_proofs/evenodd.html) | [PDF](https://fanwangecon.github.io/Stam4Econ/htmlpdfq/math_proofs/evenodd.pdf) | [QMD](https://fanwangecon.github.io/Stam4Econ/htmlpdfq/math_proofs/evenodd.qmd)

## Proof by definition, contraposition, and contradiction, and disprove by counter-example

### Even and odd numbers definitions and direct proof by definition

> Proposition: if $a \in \mathbb{Z}$ is even, then $a = 2 \cdot b$, where $b \in \mathbb{Z}$.

Prove by definition (direct proof), because that is the definition of even numbers.

> Proposition: if $a \in \mathbb{Z}$ is odd, then $a = 2 \cdot b + 1$, where $b \in \mathbb{Z}$.

Proof by definition (direct proof), because that is the definition of odd numbers.

### Integers and squares, prove by contraposition

> Proposition: if $a^2$ is even and $a\in \mathbb{Z}$, then $a$ is even. (IF X, THEN Y)

Proof by contraposition. Show that if $a$ is odd, then $a^2$ is odd (IF NOT Y, THEN NOT X). Think about this like this, suppose you want to show that if it's Monday, there must be ice-cream. Then you can show that if there is no ice-cream, it is not Monday. These are equivalent.

- Suppose integer $a$ is odd, then $a = 2\cdot b + 1$, where $b \in \mathbb{Z}$.
- $a^2 = (2\cdot b + 1)^2 = 4\cdot b^2 + 4\cdot b + 1 = 2\cdot (2\cdot b^2 + 2\cdot b) + 1$.
- $a^2$ is odd, because by the definition of odd number, it can be written as $2\cdot k + 1$ for some integer $k$, and $2 \cdot b^2 + 2 \cdot b$ is an integer because $b$ is an integer (the addition and multiplication of integers remains an integer).

### Reduced rational number, and prove by contradiction

> Proposition: Let $z$ be a rational number. Then $z$ can be written as a fraction $\frac{a}{b}$, where $a,b \in \mathbb{Z}$, $b\neq0$, and $a$ and $b$ are not both even.

The proposition is saying that there exists at least one representation $z=\frac{a}{b}$, where $a$ and $b$ are not both even.

Proof by contradiction:

1. Suppose for **contradiction** that for every representation $z = \frac{a}{b}$, $a,b \in \mathbb{Z}$ and $b\neq 0$, both $a$ and $b$ are even.
2. Note that $b$ is finite, which means there exists a positive integer $N$ such that $2^N \ge |b|$.
3. We can write $a = 2\cdot c$ and $b = 2\cdot d$, where $c,d \in \mathbb{Z}$.
4. $z = \frac{a}{b} = \frac{2\cdot c}{2\cdot d} = \frac{c}{d}$.
5. $z$ can be written as a fraction $\frac{c}{d}$, where $c,d \in \mathbb{Z}$ and both $c$ and $d$ are even based on our (contradiction) assumption.
6. This process could be repeated $N$ times, which means we would end up with $b_{N} \cdot 2^N = b$ in the denominator at the $N$th iteration. But then from (2), we have $|b_{N}| \cdot 2^N = |b| \le 2^N$ which implies that $|b_{N}| \le 1$, but the only non-zero integer for which this is true would be $b_{N} \in \left\{-1, 1 \right\}$, but that is not possible and contradicts the assumption.

### Rational number, and prove by contradiction

Building on the "Reduced rational number" proposition, we can prove the next result.

> Proposition: There is no rational number, $\frac{a}{b}$, where $a,b \in \mathbb{Z}$, such that $\left(\frac{a}{b}\right)^2 = 2$ (alternatively $\frac{a}{b} = \sqrt{2}$).

Proof by contradiction:

1. Suppose there is such a rational number, and choose a representation $\frac{a}{b}$ (guaranteed by the previous proposition) where $a$ and $b$ are not both even, such that $\left(\frac{a}{b}\right)^2 = 2$.
2. $a^2 = 2\cdot b^2$, $a^2$ must be even, and $a$ must be even.
    - Prove that if $a^2$ is even, then $a$ must be even via contraposition. 
    - Prove that if $a$ is odd, then $a^2$ must be odd: If $a$ is odd, then $a = 2\cdot k + 1$ for $k \in \mathbb{Z}$; Then, $a^2 = \left(2\cdot k + 1\right)^2 = 4\cdot k^2 + 4\cdot k + 1 = 2\cdot (2\cdot k^2 + 2\cdot k) + 1$, which is odd.
3. Because $a$ is even, we can write $a = 2\cdot c$, where $c \in \mathbb{Z}$.
4. We have: $a^2 = \left(2\cdot c\right)^2 = 2\cdot b^2$, and $4 \cdot c^2=2\cdot b^2$, and $2 \cdot c^2= b^2$, which means $b^2$ is even and $b$ is even.
5. $a$ and $b$ are both even, contradicting (1).

### Integers and squares, disprove by counterexample

Counterexample is not a method of proving something, but a method of disproving something.

> Proposition: if $a = b^2$, where $b \in \mathbb{Z}$, then $a$ is even.

Proof by counterexample, $b=1$ is an integer, and $1^2$ is odd. The proposition is false.