-- LeanProofs original teaching draft ยท CC0-1.0 -- Compiled with official native Lean 4.33.1 on 2026-11-25; mathematical review pending theorem equality_rewrite (a b c : Nat) (hab : a = b) (hbc : b = c) : a = c := by rw [hab] exact hbc