The areas / V03. Sets, finite structures and big operators
Mathlib.Data.DFinsupp.WellFounded
23 declarations. Mathlib docs · Source
theorem DFinsupp.piecewise.congr_simp E1 #
∀ {ι : Type u} {β : ι → Type v} [inst : (i : ι) → Zero (β i)] (x x_1 : Π₀ (i : ι), β i),
x = x_1 →
∀ (y y_1 : Π₀ (i : ι), β i),
y = y_1 →
∀ (s s_1 : Set ι),
s = s_1 →
∀ {inst_1 : (i : ι) → Decidable (i ∈ s)} [inst_2 : (i : ι) → Decidable (i ∈ s_1)],
x.piecewise y s = x_1.piecewise y_1 s_1
theorem DFinsupp.lex_fibration E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] (r : ι → ι → Prop) (s : (i : ι) → α i → α i → Prop)
[inst_1 : (i : ι) → (s : Set ι) → Decidable (i ∈ s)],
Relation.Fibration (InvImage (Prod.GameAdd (DFinsupp.Lex r s) (DFinsupp.Lex r s)) Prod.snd) (DFinsupp.Lex r s) fun x ↦
x.2.1.piecewise x.2.2 x.1
This key lemma says that if a finitely supported dependent function x₀ is obtained by merging
two such functions x₁ and x₂, and if we evolve x₀ down the DFinsupp.Lex relation one
step and get x, we can always evolve one of x₁ and x₂ down the DFinsupp.Lex relation
one step while keeping the other unchanged, and merge them back (possibly in a different way)
to get back x. In other words, the two parts evolve essentially independently under
DFinsupp.Lex. This is used to show that a function x is accessible if
DFinsupp.single i (x i) is accessible for each i in the (finite) support of x
(DFinsupp.Lex.acc_of_single).
theorem DFinsupp.Lex.acc_of_single_erase E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] {r : ι → ι → Prop} {s : (i : ι) → α i → α i → Prop}
[inst_1 : DecidableEq ι] {x : Π₀ (i : ι), α i} (i : ι),
(Acc (DFinsupp.Lex r s) fun₀ | i => x i) → Acc (DFinsupp.Lex r s) (DFinsupp.erase i x) → Acc (DFinsupp.Lex r s) x
theorem DFinsupp.Lex.acc_zero E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] {r : ι → ι → Prop} {s : (i : ι) → α i → α i → Prop},
(∀ ⦃i : ι⦄ ⦃a : α i⦄, ¬s i a 0) → Acc (DFinsupp.Lex r s) 0
theorem DFinsupp.Lex.acc_of_single E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] {r : ι → ι → Prop} {s : (i : ι) → α i → α i → Prop},
(∀ ⦃i : ι⦄ ⦃a : α i⦄, ¬s i a 0) →
∀ [inst_1 : DecidableEq ι] [inst_2 : (i : ι) → (x : α i) → Decidable (x ≠ 0)] (x : Π₀ (i : ι), α i),
(∀ i ∈ x.support, Acc (DFinsupp.Lex r s) fun₀ | i => x i) → Acc (DFinsupp.Lex r s) x
theorem DFinsupp.Lex.acc_single E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] {r : ι → ι → Prop} {s : (i : ι) → α i → α i → Prop},
(∀ ⦃i : ι⦄ ⦃a : α i⦄, ¬s i a 0) →
∀ [hs : ∀ (i : ι), WellFounded (s i)] [inst_1 : DecidableEq ι] {i : ι},
Acc (rᶜ ⊓ fun x1 x2 ↦ x1 ≠ x2) i → ∀ (a : α i), Acc (DFinsupp.Lex r s) fun₀ | i => a
theorem DFinsupp.Lex.acc E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] {r : ι → ι → Prop} {s : (i : ι) → α i → α i → Prop},
(∀ ⦃i : ι⦄ ⦃a : α i⦄, ¬s i a 0) →
∀ [∀ (i : ι), WellFounded (s i)] [inst_2 : DecidableEq ι] [inst_3 : (i : ι) → (x : α i) → Decidable (x ≠ 0)]
(x : Π₀ (i : ι), α i), (∀ i ∈ x.support, Acc (rᶜ ⊓ fun x1 x2 ↦ x1 ≠ x2) i) → Acc (DFinsupp.Lex r s) x
theorem DFinsupp.Lex.wellFounded E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] {r : ι → ι → Prop} {s : (i : ι) → α i → α i → Prop},
(∀ ⦃i : ι⦄ ⦃a : α i⦄, ¬s i a 0) →
∀ [∀ (i : ι), WellFounded (s i)], WellFounded (rᶜ ⊓ fun x1 x2 ↦ x1 ≠ x2) → WellFounded (DFinsupp.Lex r s)
theorem DFinsupp.Lex.wellFounded' E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] {r : ι → ι → Prop} {s : (i : ι) → α i → α i → Prop},
(∀ ⦃i : ι⦄ ⦃a : α i⦄, ¬s i a 0) →
∀ [∀ (i : ι), WellFounded (s i)] [Std.Trichotomous r],
WellFounded (Function.swap r) → WellFounded (DFinsupp.Lex r s)
instance DFinsupp.Lex.wellFoundedLT E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : LT ι] [Std.Trichotomous fun x1 x2 ↦ x1 < x2] [hι : WellFoundedGT ι]
[inst_2 : (i : ι) → Zero (α i)] [inst_3 : (i : ι) → PartialOrder (α i)] [∀ (i : ι), IsBotZeroClass (α i)]
[hα : ∀ (i : ι), WellFoundedLT (α i)], WellFoundedLT (Lex (Π₀ (i : ι), α i))
instance DFinsupp.Colex.wellFoundedLT E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : LT ι] [Std.Trichotomous fun x1 x2 ↦ x1 < x2] [WellFoundedLT ι]
[inst_3 : (i : ι) → Zero (α i)] [inst_4 : (i : ι) → PartialOrder (α i)] [∀ (i : ι), IsBotZeroClass (α i)]
[∀ (i : ι), WellFoundedLT (α i)], WellFoundedLT (Colex (Π₀ (i : ι), α i))
theorem Pi.Lex.wellFounded E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} (r : ι → ι → Prop) {s : (i : ι) → α i → α i → Prop} [IsStrictTotalOrder ι r]
[Finite ι] [hs : ∀ (i : ι), WellFounded (s i)], WellFounded (Pi.Lex r fun {i} ↦ s i)
instance Pi.Lex.wellFoundedLT E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : LinearOrder ι] [Finite ι] [inst_2 : (i : ι) → LT (α i)]
[hwf : ∀ (i : ι), WellFoundedLT (α i)], WellFoundedLT (Lex ((i : ι) → α i))
instance Pi.Colex.wellFoundedLT E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : LinearOrder ι] [Finite ι] [inst_2 : (i : ι) → LT (α i)]
[∀ (i : ι), WellFoundedLT (α i)], WellFoundedLT (Colex ((i : ι) → α i))
instance Function.Lex.wellFoundedLT E0 #
∀ {ι : Type u_1} {α : Type u_3} [inst : LinearOrder ι] [Finite ι] [inst_2 : LT α] [WellFoundedLT α],
WellFoundedLT (Lex (ι → α))
theorem DFinsupp.Lex.wellFounded_of_finite E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} (r : ι → ι → Prop) {s : (i : ι) → α i → α i → Prop} [IsStrictTotalOrder ι r]
[Finite ι] [inst : (i : ι) → Zero (α i)] [∀ (i : ι), WellFounded (s i)], WellFounded (DFinsupp.Lex r s)
instance DFinsupp.Lex.wellFoundedLT_of_finite E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : LinearOrder ι] [Finite ι] [inst_2 : (i : ι) → Zero (α i)]
[inst_3 : (i : ι) → LT (α i)] [hwf : ∀ (i : ι), WellFoundedLT (α i)], WellFoundedLT (Lex (Π₀ (i : ι), α i))
instance DFinsupp.Colex.wellFoundedLT_of_finite E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : LinearOrder ι] [Finite ι] [inst_2 : (i : ι) → Zero (α i)]
[inst_3 : (i : ι) → LT (α i)] [hwf : ∀ (i : ι), WellFoundedLT (α i)], WellFoundedLT (Colex (Π₀ (i : ι), α i))
theorem DFinsupp.wellFoundedLT E1 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → Preorder (α i)]
[∀ (i : ι), WellFoundedLT (α i)], (∀ ⦃i : ι⦄ ⦃a : α i⦄, ¬a < 0) → WellFoundedLT (Π₀ (i : ι), α i)
instance DFinsupp.wellFoundedLT' E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
[∀ (i : ι), IsBotZeroClass (α i)] [∀ (i : ι), WellFoundedLT (α i)], WellFoundedLT (Π₀ (i : ι), α i)
instance Pi.wellFoundedLT E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} [Finite ι] [inst : (i : ι) → Preorder (α i)] [hw : ∀ (i : ι), WellFoundedLT (α i)],
WellFoundedLT ((i : ι) → α i)
instance Function.wellFoundedLT E0 #
∀ {ι : Type u_1} {α : Type u_3} [Finite ι] [inst : Preorder α] [WellFoundedLT α], WellFoundedLT (ι → α)
instance DFinsupp.wellFoundedLT_of_finite E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} [Finite ι] [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → Preorder (α i)]
[∀ (i : ι), WellFoundedLT (α i)], WellFoundedLT (Π₀ (i : ι), α i)