AFTD Auto-Formalizing Theoretical Domains

IndexedLOrder.NC_of_outsidedoor

theoremverifiedformalizationimported Lean

IndexedLOrder.NC_of_outsidedoor

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open IndexedLOrder in
open Classical in
variable {T : Type*} [Inhabited T] in
variable {I : Type*} in
variable [IST : IndexedLOrder I T] in
set_option quotPrecheck false in
variable (σ : Finset T) (C : Finset I) in
variable [DecidableEq T] [DecidableEq I] in
open Classical in
variable (c : T → I) (σ : Finset T) (C : Finset I) in
variable {c σ C} in
omit [Inhabited T] [DecidableEq T] in
lemma IndexedLOrder.NC_of_outsidedoor (h : isOutsideDoor σ C) : isNearlyColorful c σ C
Formalizes
EconCSLib, `IndexedLOrder.NC_of_outsidedoor`
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 7

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen IndexedLOrder inopen Classical invariable {T : Type*} [Inhabited T] invariable {I : Type*} invariable [IST : IndexedLOrder I T] inset_option quotPrecheck false invariable (σ : Finset T) (C : Finset I) invariable [DecidableEq T] [DecidableEq I] inopen Classical invariable (c : T → I) (σ : Finset T) (C : Finset I) invariable {c σ C} inomit [Inhabited T] [DecidableEq T] inlemma IndexedLOrder.NC_of_outsidedoor (h : isOutsideDoor σ C) : isNearlyColorful c σ C := by  cases h with  | intro hd he =>    unfold isNearlyColorful    unfold isCell    constructor    · exact hd.1    · rw [he]      have h_img : Finset.image c Finset.empty = Finset.empty := Finset.image_empty c      rw [h_img]      have h_disj : Disjoint C Finset.empty := Finset.disjoint_empty_right C      have h_sdiff : C \ Finset.empty = C := Finset.sdiff_eq_self_of_disjoint h_disj      rw [h_sdiff]      unfold isDoor at hd      have h1 := hd.2      rw [he] at h1      exact h1/-Lemma 5-/
See it in the graphDiscuss this resultChallenge it