pith. machine review for the scientific record. sign in
theorem proved tactic proof

boolCost_symm

show as:
view Lean formalization →

No prose has been written for this declaration yet. The Lean source and graph data below render without it.

generate prose now

formal statement (Lean)

  25theorem boolCost_symm (p q : Bool) : boolCost p q = boolCost q p := by

proof body

Tactic-mode proof.

  26  by_cases h : p = q
  27  · subst h
  28    simp [boolCost]
  29  · have h' : q ≠ p := by intro hq; exact h hq.symm
  30    simp [boolCost, h, h']
  31

used by (3)

From the project-wide theorem graph. These declarations reference this one in their body.

depends on (3)

Lean names referenced from this declaration's body.