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.IndexedLOrder.NC_of_outsidedoor← IndexedLOrder.NC_of_outsidedoor (EconCSLib/Math/FixedPoint/Scarf.lean:1304): verbatim
- Verified
- 08 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 7
- IndexedLOrder.isDoor
(σ, C)is a door: a dominant cell with|C| = |σ| + 1. A door has one more color than points; it is adjacent to exactly two rooms… - IndexedLOrder.isDominant
σis dominant with respect toC: for everyy : Tthere existsi ∈ Csuch that every element ofσis ≥[i] y — i.e.,σ… - IndexedLOrder.isNearlyColorful
(σ, C)is nearly colorful: a dominant cell where exactly one color inCis missing from the image ofconσ. - IndexedLOrder.isOutsideDoorIndexedLOrder.isOutsideDoor
- IndexedLOrder.isCellAlias for
isDominant σ C: the cell predicate for the pair(σ, C). - IndexedLOrderA family of linear orders on
Tindexed byI. Eachi : Iprovides a linear orderIST i : LinearOrder Ton the typeT. This is the… - instFunLikeIndexedLOrderLinearOrderinstFunLikeIndexedLOrderLinearOrder
- IndexedLOrder.isDoor
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
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-/