theorem
proved
tactic proof
narrativeCost_symm
show as:
view Lean formalization →
formal statement (Lean)
27theorem narrativeCost_symm (a b : NarrativeBeat) : narrativeCost a b = narrativeCost b a := by
proof body
Tactic-mode proof.
28 by_cases h : a = b
29 · subst h; simp [narrativeCost]
30 · have h' : b ≠ a := by intro hb; exact h hb.symm
31 simp [narrativeCost, h, h']
32