Example 2

Given a string For example, we define:

  • be the number of occurrences of variables in
    • For example,
  • be the number of occurrences operators in
    • For example, We define Prove that
Base Case

Consider 3 cases:

  1. Then, notice that for all cases
Induction Step

Let Suppose Induction Hypothesis Then, given four cases:

    • Note that
    • Note that
    • Note that
    • Note that Thus, we get