AFTD Auto-Formalizing Theoretical Domains

EconCSLib.LinearAlgebra.fm_cert_lift

theoremverifiedformalizationimported Lean

Farkas certificate lift: if u' certifies the reduced system, liftCert A u' certifies the original.

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.fm_cert_lift (A : I β†’ Fin (n+1) β†’ π•œ) (b : I β†’ π•œ)
    (hred : HasCertificate (fmA A) (fmB A b)) : HasCertificate A b
Formalizes
EconCSLib, `EconCSLib.LinearAlgebra.fm_cert_lift`
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 : β„•} in/-- **Farkas certificate lift**: if `u'` certifies the reduced system, `liftCert A u'` certifies the original. -/theorem EconCSLib.LinearAlgebra.fm_cert_lift (A : I β†’ Fin (n+1) β†’ π•œ) (b : I β†’ π•œ)    (hred : HasCertificate (fmA A) (fmB A b)) : HasCertificate A b := by  obtain ⟨u', hu'_nn, hu'_zero, hu'_pos⟩ := hred  refine ⟨liftCert A u', liftCert_nonneg A hu'_nn, ?_, ?_⟩  Β· -- βˆ€ j : Fin (n+1), βˆ‘ i, u i * A i j = 0    intro j    refine Fin.lastCases ?_ ?_ j    Β· exact liftCert_column_zero_last A u'    Β· intro j'      exact liftCert_column_zero_castSucc A b hu'_zero j'  Β· rw [liftCert_rhs]    exact hu'_pos
See it in the graphDiscuss this resultChallenge it