AFTD Auto-Formalizing Theoretical Domains

bz3_ite_eq

lemmaverified

An if-then-else on a conjunction of decidable propositions, written as a product with a Boolean indicator.

Statement

lemma bz3_ite_eq (A B : Prop) [Decidable A] [Decidable B] (c : ℝ) :
    (if ¬ A ∧ B then c else 0) = c * ((!decide A && decide B).toNat : ℝ)
Source
step towards banzhaf_strict_majority_veto_distortion_ge_five_thirds (veto distortion at strict simple majority, left open in How Banzhaf Makes a Victor, EC 2026, Sec. 5)
Verified
06 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Used by 1
  • bz3_measureFor three players and p = q = 1/2, the Banzhaf measure of a player is a quarter of its pivot count.

Lean source view module on GitHub

lemma bz3_ite_eq (A B : Prop) [Decidable A] [Decidable B] (c : ℝ) :    (if ¬ A ∧ B then c else 0) = c * ((!decide A && decide B).toNat : ℝ) := by  by_cases hA : A <;> by_cases hB : B <;> simp [hA, hB]
See it in the graphDiscuss this resultChallenge it