AFTD Auto-Formalizing Theoretical Domains

EconCSLib.LinearAlgebra.theorem_of_alternative_aux

theoremverifiedformalizationimported Lean

EconCSLib.LinearAlgebra.theorem_of_alternative_aux

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Finset BigOperators in
set_option linter.unusedSectionVars false in
variable {π•œ : Type*} [Field π•œ] [LinearOrder π•œ] [IsStrictOrderedRing π•œ] in
variable {I : Type*} [Fintype I] [DecidableEq I] {n : β„•} in
theorem EconCSLib.LinearAlgebra.theorem_of_alternative_aux :
    βˆ€ (n : β„•) {I : Type*} [Fintype I] [DecidableEq I]
      (A : I β†’ Fin n β†’ π•œ) (b : I β†’ π•œ),
      Β¬ IsFeasible A b ↔ HasCertificate A b
Formalizes
EconCSLib, `EconCSLib.LinearAlgebra.theorem_of_alternative_aux`
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 19
Used by 1

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen Finset BigOperators inset_option linter.unusedSectionVars false invariable {π•œ : Type*} [Field π•œ] [LinearOrder π•œ] [IsStrictOrderedRing π•œ] invariable {I : Type*} [Fintype I] [DecidableEq I] {n : β„•} intheorem EconCSLib.LinearAlgebra.theorem_of_alternative_aux :    βˆ€ (n : β„•) {I : Type*} [Fintype I] [DecidableEq I]      (A : I β†’ Fin n β†’ π•œ) (b : I β†’ π•œ),      Β¬ IsFeasible A b ↔ HasCertificate A b := by  intro n  induction n with  | zero =>      intro I _ _ A b      exact theorem_of_alternative_base A b  | succ n ih =>      intro I _ _ A b      refine ⟨?_, fun hcert hfeas => feas_cert_disjoint A b hfeas hcert⟩      intro hinf      have h_red_inf : Β¬ IsFeasible (fmA A) (fmB A b) :=        fun h => hinf (feasible_of_fm_feasible A b h)      have h_red_cert : HasCertificate (fmA A) (fmB A b) :=        (ih (fmA A) (fmB A b)).mp h_red_inf      exact fm_cert_lift A b h_red_cert
See it in the graphDiscuss this resultChallenge it