depth_of_const
The depth of a constant-leaf EML tree is zero. A bare constant has no `ceml` operations to count.
theorem depth_of_const (c : ℂ) : (EMLTree.const c).depth = 0 := by
sorry -- YOUR PROOF HERE▸ Proof walkthrough (1 step)
theorem depth_of_const (c : ℂ) : (EMLTree.const c).depth = 0 := rflThe depth function is defined by pattern matching: `EMLTree.depth (EMLTree.const _) = 0`. Both sides reduce to the literal `0` by computation, so reflexivity closes the goal.
Why this tactic: When two expressions are definitionally equal — i.e. reduce to the same normal form by unfolding definitions — `rfl` is the shortest possible proof. Here both sides reduce to `0` after one unfolding step.
▸ Common mistakes
- [step 1]Using `simp [EMLTree.depth]` works but is overkill — it loads the simp normalizer when `rfl` already suffices.
- [step 1]Writing `by decide` fails because `EMLTree.depth` is not a `Decidable` proposition; `decide` is for decidable equality of concrete naturals.