AFTD Auto-Formalizing Theoretical Domains

SocialChoice.Voting.modifiedForwardProfile_spec

theoremverifiedformalizationimported Lean

SocialChoice.Voting.modifiedForwardProfile_spec

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {N A : Type*} in
theorem SocialChoice.Voting.modifiedForwardProfile_spec [Fintype N] [Fintype A]
    (P : Profile N A) (C : Set N)
    {x y z : A} (hxy : x ≠ y) (hxz : x ≠ z) (hyz : y ≠ z)
    (hC : ∀ i ∈ C, Prefers P i x z) :
    ∀ i,
      (Prefers P i x z ↔ Prefers (modifiedForwardProfile P C x y z hxy hxz hyz) i x z) ∧
      (Prefers P i z x ↔ Prefers (modifiedForwardProfile P C x y z hxy hxz hyz) i z x) ∧
      (i ∈ C → Prefers (modifiedForwardProfile P C x y z hxy hxz hyz) i x y ∧
          Prefers (modifiedForwardProfile P C x y z hxy hxz hyz) i y z) ∧
      (i ∉ C → Prefers (modifiedForwardProfile P C x y z hxy hxz hyz) i y x ∧
          Prefers (modifiedForwardProfile P C x y z hxy hxz hyz) i y z)
Formalizes
EconCSLib, `SocialChoice.Voting.modifiedForwardProfile_spec`
Lean proof
By xbei (from the file's git history), from github.com/gametheoryinlean/EconCSLib at 1a88f809b538 (Copyright (c) 2026 EconCSLib contributors. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.30.0.
Verified
08 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 14
Used by 1

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true invariable {N A : Type*} intheorem SocialChoice.Voting.modifiedForwardProfile_spec [Fintype N] [Fintype A]    (P : Profile N A) (C : Set N)    {x y z : A} (hxy : x ≠ y) (hxz : x ≠ z) (hyz : y ≠ z)    (hC : ∀ i ∈ C, Prefers P i x z) :    ∀ i,      (Prefers P i x z ↔ Prefers (modifiedForwardProfile P C x y z hxy hxz hyz) i x z) ∧      (Prefers P i z x ↔ Prefers (modifiedForwardProfile P C x y z hxy hxz hyz) i z x) ∧      (i ∈ C → Prefers (modifiedForwardProfile P C x y z hxy hxz hyz) i x y ∧          Prefers (modifiedForwardProfile P C x y z hxy hxz hyz) i y z) ∧      (i ∉ C → Prefers (modifiedForwardProfile P C x y z hxy hxz hyz) i y x ∧          Prefers (modifiedForwardProfile P C x y z hxy hxz hyz) i y z) := by  classical  intro i  by_cases hi : i ∈ C  · simp [modifiedForwardProfile, hi, Prefers]    constructor    · constructor      · intro _        exact betweenBallot_xz (P.pref i) hxy hxz hyz      · intro _        exact hC i hi    constructor    · constructor      · intro hzxi        exact False.elim ((Prefers.asymm P i (hC i hi)) hzxi)      · intro hzxi        exact False.elim          ((BallotPrefers.asymm _ (betweenBallot_xz (P.pref i) hxy hxz hyz)) hzxi)    exact ⟨betweenBallot_xy (P.pref i) hxy hxz hyz,      betweenBallot_yz (P.pref i) hxy hxz hyz⟩  · have hx_ne_y : x ≠ y := hxy    have hz_ne_y : z ≠ y := Ne.symm hyz    simp [modifiedForwardProfile, hi, Prefers, topBallot_preserves, hx_ne_y, hz_ne_y,      topBallot_top]
See it in the graphDiscuss this resultChallenge it