scrambled
Concept

Tree induction

Modified just now

Formally, assume a treea\ \text{tree} means that aa is a binary tree. To prove that whenever a treea\ \text{tree}, we have P(a)\mathcal{P}(a), it's sufficient to show that:

  1. P(empty)\mathcal{P}(\text{empty)}.
  2. For every a1a_1 and a2a_2 such that a1 treea_1\ \text{tree} and a2 treea_2\ \text{tree}, if P(a1)\mathcal{P}(a_1) and P(a2)\mathcal{P}(a_2) then P(node(a1;a2))\mathcal{P}(\text{node}(a_1;a_2)).