Carleson/ToMathlib/MinLayer.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Pinned Carleson blueprint
25 declarations, 0 contain sorry, 0 declared as axioms
Minimal and maximal layers of a set
This file defines Set.minLayer and Set.maxLayer as the sets obtained from iterated application
of Minimal/Maximal on a set, excluding earlier layers.
Main declarations
Set.minLayer(Set.maxLayer): thenth minimal (maximal) layer of the given setA.Set.pairwiseDisjoint_minLayer(Set.pairwiseDisjoint_maxLayer),Set.isAntichain_minLayer(Set.isAntichain_maxLayer): minimal (maximal) layers are pairwise disjoint antichains.Set.iUnion_minLayer_iff_bounded_series: if the length ofLTSeriesinAis bounded,Aequals the union of itsminLayers up ton.
Imported by 3 files
- def
Set.minLayerThenth minimal layer ofAline 37 sourceSource documentation
The
nth minimal layer ofA.no axioms what this means
Statement uses:
PartialOrder,Set,NatProof uses:
WellFounded.Nat.fix,InvImage,LT.lt,Set.ofPred,Minimal,Membership.mem,SDiff.sdiff,Set.iUnion6 instances, coercions and auxiliary constants left out.
def minLayer (A : Set α) (n : ℕ) : Set α := …
Mentions: A
- def
Set.maxLayerThenth maximal layer ofAline 41 sourceSource documentation
The
nth maximal layer ofA.no axioms what this means
Statement uses:
PartialOrder,Set,NatProof uses: Set.minLayer,
OrderDual1 instances, coercions and auxiliary constants left out.
def maxLayer (A : Set α) (n : ℕ) : Set α := …
Mentions: A
- def
Set.layersAboveThe elements aboveA'snminimal layers line 45 sourceSource documentation
The elements above
A'snminimal layers.no axioms what this means
Statement uses:
PartialOrder,Set,NatProof uses:
SDiff.sdiff,Set.iUnion,LE.le, Set.minLayer2 instances, coercions and auxiliary constants left out.
def layersAbove (A : Set α) (n : ℕ) : Set α := …
Mentions: A
- def
Set.layersBelowThe elements belowA'snmaximal layers line 49 sourceSource documentation
The elements below
A'snmaximal layers.no axioms what this means
Statement uses:
PartialOrder,Set,NatProof uses:
SDiff.sdiff,Set.iUnion,LE.le, Set.maxLayer2 instances, coercions and auxiliary constants left out.
def layersBelow (A : Set α) (n : ℕ) : Set α := …
Mentions: A
- lemma
Set.maxLayer_defline 55 sourcestandard axioms: Quot.sound what this means
Statement uses:
PartialOrder,Set,Nat,Eq, Set.maxLayer,Set.ofPred,Maximal,Membership.mem,SDiff.sdiff,Set.iUnion,LT.ltProof uses:
Eq.mpr, Set.minLayer,OrderDual,id,congrArg,Set.maxLayer.eq_1,Minimal,Set.minLayer.eq_1,Eq.refl11 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
Set.minLayer_subsetline 58 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Nat,LE.le, Set.minLayerProof uses:
Trans.trans,SDiff.sdiff,Set.iUnion,LT.lt,Eq.mpr,Set.ofPred,Minimal,Membership.mem,id,Eq,congrArg,Set.minLayer.eq_1,Minimal.prop,Eq.mp,propext,Set.mem_ofPred,Set.sdiff_subset15 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
Set.maxLayer_subsetline 64 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Nat,LE.le, Set.maxLayerProof uses: Set.minLayer_subset,
OrderDual2 instances, coercions and auxiliary constants left out.
- lemma
Set.layersAbove_subsetline 66 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Nat,LE.le, Set.layersAboveProof uses:
Set.sdiff_subset,Set.iUnion, Set.minLayer2 instances, coercions and auxiliary constants left out.
- lemma
Set.layersBelow_subsetline 68 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Nat,LE.le, Set.layersBelowProof uses:
Set.sdiff_subset,Set.iUnion, Set.maxLayer2 instances, coercions and auxiliary constants left out.
- lemma
Set.minLayer_zeroXXX(MR): should this andmaxLayer_zerobe simp? line 71 sourceSource comment
XXX(MR): should this and `maxLayer_zero` be simp?standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Eq, Set.minLayer,OfNat.ofNat,Nat,Set.ofPred,Minimal,Membership.memProof uses:
Eq.mpr,SDiff.sdiff,Set.iUnion,LT.lt,id,congrArg,Set.minLayer.eq_1,of_eq_true,Eq.trans,True,congrFun',funext,EmptyCollection.emptyCollection,False,Set.iUnion_congr_Prop,Iff.of_eq,Eq.refl,Set.iUnion_of_empty,Set.iUnion_empty,Set.sdiff_emptyand 1 more20 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
lemma minLayer_zero : A.minLayer 0 = {a | Minimal (· ∈ A) a} := by rw [minLayer]; simpMentions: A, Set.minLayer
- lemma
Set.maxLayer_zeroline 73 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Eq, Set.maxLayer,OfNat.ofNat,Nat,Set.ofPred,Maximal,Membership.memProof uses:
Eq.mpr,SDiff.sdiff,Set.iUnion,LT.lt,id,congrArg, Set.maxLayer_def,of_eq_true,Eq.trans,True,congrFun',funext,EmptyCollection.emptyCollection,False,Set.iUnion_congr_Prop,Iff.of_eq,Eq.refl,Set.iUnion_of_empty,Set.iUnion_empty,Set.sdiff_emptyand 1 more20 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
Set.disjoint_minLayer_of_neline 75 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Nat,Ne,Disjoint, Set.minLayerProof uses:
LT.lt,Not,Or,Classical.em,Eq.mpr,Membership.mem,id,Eq,congrArg,propext,Set.disjoint_right,Set.iUnion,And.right,And.left,SDiff.sdiff,LE.le,Eq.mp,Set.ofPred,Minimal,Set.minLayer.eq_1and 4 more35 instances, coercions and auxiliary constants left out.
Tactic trace: 10 steps
Open to load the checked before-and-after goal states.
- lemma
Set.disjoint_maxLayer_of_neline 81 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Nat,Ne,Disjoint, Set.maxLayerProof uses: Set.disjoint_minLayer_of_ne,
OrderDual12 instances, coercions and auxiliary constants left out.
- lemma
Set.pairwiseDisjoint_minLayerline 84 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Set.PairwiseDisjoint,Nat,Set.univ, Set.minLayerProof uses:
Membership.mem, Set.disjoint_minLayer_of_ne12 instances, coercions and auxiliary constants left out.
- lemma
Set.pairwiseDisjoint_maxLayerline 87 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Set.PairwiseDisjoint,Nat,Set.univ, Set.maxLayerProof uses:
Membership.mem, Set.disjoint_minLayer_of_ne,OrderDual13 instances, coercions and auxiliary constants left out.
- lemma
Set.isAntichain_minLayerline 90 sourcestandard axioms: Quot.sound what this means
Statement uses:
PartialOrder,Set,Nat,IsAntichain,LE.le, Set.minLayerProof uses:
Eq.mpr,Set.ofPred,Minimal,Membership.mem,SDiff.sdiff,Set.iUnion,LT.lt,id,Eq,congrArg,Set.minLayer.eq_1,setOfPred_minimal_antichain7 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
Set.isAntichain_maxLayerline 93 sourcestandard axioms: Quot.sound what this means
Statement uses:
PartialOrder,Set,Nat,IsAntichain,LE.le, Set.maxLayerProof uses:
Eq.mpr,Set.ofPred,Maximal,Membership.mem,SDiff.sdiff,Set.iUnion,LT.lt,id,Eq,congrArg, Set.maxLayer_def,setOfPred_maximal_antichain7 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
Set.exists_le_in_minLayer_of_leline 96 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Nat,Membership.mem, Set.minLayer,LE.le,Exists,AndProof uses:
Nat.le_induction,Exists.intro,And.intro,le_refl,HAdd.hAdd,OfNat.ofNat,Not,Iff.mp,Disjoint,Set.disjoint_right, Set.disjoint_minLayer_of_ne,SDiff.sdiff,Set.iUnion,LT.lt,And.left,Eq,Eq.mp,Minimal,congrArg,propextand 40 more44 instances, coercions and auxiliary constants left out.
Tactic trace: 22 steps
Open to load the checked before-and-after goal states.
- lemma
Set.exists_le_in_maxLayer_of_leline 117 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Nat,Membership.mem, Set.maxLayer,LE.le,Exists,AndProof uses: Set.exists_le_in_minLayer_of_le,
OrderDual7 instances, coercions and auxiliary constants left out.
- lemma
Set.subtype_mk_minimal_iffXXX: is this in mathlib already/can it also be removed? line 123 sourceSource comment
XXX: is this in mathlib already/can it also be removed?standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Preorder,Set,Membership.mem,Iff,Minimal,Subtype.mk,Exists,AndProof uses:
Subtype,Not,Or,Classical.em,of_eq_true,Eq.trans,Iff.mpr,Iff.of_eq,Eq.refl,True,congr,congrArg,Set.image,OrderEmbedding,RelEmbedding.mk,LE.le,Function.Embedding.subtype,Function.Embedding,forall_congr,congrFun'and 20 more22 instances, coercions and auxiliary constants left out.
Tactic trace: 12 steps
Open to load the checked before-and-after goal states.
lemma subtype_mk_minimal_iff (α : Type*) [Preorder α] (s : Set α) (t : Set s) (x : α) (hx : x ∈ s) : Minimal (· ∈ t) (⟨x, hx⟩ : s) ↔ Minimal (fun y ↦ ∃ h, y ∈ s ∧ ⟨y, h⟩ ∈ t) x := by …Mentions: s
- lemma
Set.minLayer_eq_setOf_heightA.minLayer ncomprises exactlyA's elements of heightnline 135 sourceSource documentation
A.minLayer ncomprises exactlyA's elements of heightn.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Nat,Eq, Set.minLayer,Set.ofPred,Exists,Membership.mem,ENat,Order.height,Subtype,Subtype.mkProof uses:
Nat.strongRec,LT.lt,Set.ext,id,Iff,Not,Or,Classical.em,Eq.mpr,Iff.mpr,True,Iff.of_eq,eq_true,True.intro,congrArg,Eq.trans,propext,exists_prop_congr,Eq.refl,Minimaland 46 more66 instances, coercions and auxiliary constants left out.
Tactic trace: 29 steps
Open to load the checked before-and-after goal states.
lemma minLayer_eq_setOf_height : A.minLayer n = {x | ∃ hx : x ∈ A, height (⟨x, hx⟩ : A) = n} := by …Mentions: A
- lemma
Set.iUnion_lt_minLayer_iff_bounded_seriesline 160 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Nat,Iff,Eq,Set.iUnion,LT.lt, Set.minLayer,LTSeries,Membership.mem,RelSeries.length,Set.ofPred,Prod,FiniteDimensionalOrder.match_1Proof uses:
Iff.intro,RelSeries.last,Eq.rec,Subtype.property,Eq.symm,Exists,ENat,Order.height,Subtype,Prod.fst,Prod.snd,Eq.mp,Subtype.mk,congrArg,funext,propext,exists_prop_congr,Iff.of_eq,Eq.trans,Trueand 43 more89 instances, coercions and auxiliary constants left out.
Tactic trace: 29 steps
Open to load the checked before-and-after goal states.
- lemma
Set.iUnion_minLayer_iff_bounded_seriesAequals the union of itsminLayers up toniff allLTSeriesinAhave length at mostnline 189 sourceSource documentation
Aequals the union of itsminLayers up toniff allLTSeriesinAhave length at mostn.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Nat,Iff,Eq,Set.iUnion,LE.le, Set.minLayer,LTSeries,Membership.mem,RelSeries.length,Set.ofPred,Prod,FiniteDimensionalOrder.match_1,LT.ltProof uses:
id,Eq.mpr,Prod.fst,Prod.snd,Nat.succ,congr,congrArg,congrFun',funext,Set.iUnion_congr_Prop,Iff.of_eq,Eq.refl,forall_congr,of_eq_true,Eq.trans,True,iff_self15 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
lemma iUnion_minLayer_iff_bounded_series : ⋃ (k ≤ n), A.minLayer k = A ↔ ∀ p : LTSeries A, p.length ≤ n := by … - lemma
Set.exists_le_in_layersAbove_of_leline 193 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Nat,Finite,Membership.mem, Set.layersAbove,LE.le,Exists,And, Set.minLayerProof uses:
SDiff.sdiff,Set.iUnion,LT.lt,Eq.mpr,Not,id,Eq,Eq.trans,congrArg,funext,binderNameHint,forall_congr,And.intro,And.left,Eq.mp,And.right,LT.lt.le,Fintype,Fintype.ofFinite,Finsetand 31 more38 instances, coercions and auxiliary constants left out.
Tactic trace: 21 steps
Open to load the checked before-and-after goal states.
- lemma
Set.exists_le_in_layersBelow_of_leline 215 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
PartialOrder,Set,Nat,Finite,Membership.mem, Set.layersBelow,LE.le,Exists,And, Set.maxLayerProof uses: Set.exists_le_in_layersAbove_of_le,
OrderDual8 instances, coercions and auxiliary constants left out.