The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V02. Numbers

Mathlib.Data.Fin.FlagRange

4 declarations. Mathlib docs · Source

Range of f : Fin (n + 1) → α as a Flag

Let f : Fin (n + 1) → α be an (n + 1)-tuple (f₀, …, fₙ) such that

  • f₀ = ⊥ and fₙ = ⊤;
  • fₖ₊₁ weakly covers fₖ for all 0 ≤ k < n; this means that fₖ ≤ fₖ₊₁ and there is no c such that fₖ<c<fₖ₊₁.

Then the range of f is a maximal chain.

We formulate this result in terms of IsMaxChain and Flag.

theorem IsMaxChain.range_fin_of_covBy E1 #

∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : BoundedOrder α] {n : ℕ} {f : Fin (n + 1) → α},
  f 0 = ⊥ →
    f (Fin.last n) = ⊤ → (∀ (k : Fin n), f k.castSucc ⩿ f k.succ) → IsMaxChain (fun x1 x2 ↦ x1 ≤ x2) (Set.range f)

Let f : Fin (n + 1) → α be an (n + 1)-tuple (f₀, …, fₙ) such that

  • f₀ = ⊥ and fₙ = ⊤;
  • fₖ₊₁ weakly covers fₖ for all 0 ≤ k < n; this means that fₖ ≤ fₖ₊₁ and there is no c such that fₖ<c<fₖ₊₁.

Then the range of f is a maximal chain.

def Flag.rangeFin E1 #

{α : Type u_1} →
  [inst : PartialOrder α] →
    [inst_1 : BoundedOrder α] →
      {n : ℕ} → (f : Fin (n + 1) → α) → f 0 = ⊥ → f (Fin.last n) = ⊤ → (∀ (k : Fin n), f k.castSucc ⩿ f k.succ) → Flag α

Let f : Fin (n + 1) → α be an (n + 1)-tuple (f₀, …, fₙ) such that

  • f₀ = ⊥ and fₙ = ⊤;
  • fₖ₊₁ weakly covers fₖ for all 0 ≤ k < n; this means that fₖ ≤ fₖ₊₁ and there is no c such that fₖ<c<fₖ₊₁.

Then the range of f is a Flag α.

theorem Flag.rangeFin_carrier E0 #

∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : BoundedOrder α] {n : ℕ} (f : Fin (n + 1) → α) (h0 : f 0 = ⊥)
  (hlast : f (Fin.last n) = ⊤) (hcovBy : ∀ (k : Fin n), f k.castSucc ⩿ f k.succ),
  ↑(Flag.rangeFin f h0 hlast hcovBy) = Set.range f

theorem Flag.mem_rangeFin E0 #

∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : BoundedOrder α] {n : ℕ} {f : Fin (n + 1) → α} {x : α} {h0 : f 0 = ⊥}
  {hlast : f (Fin.last n) = ⊤} {hcovBy : ∀ (k : Fin n), f k.castSucc ⩿ f k.succ},
  x ∈ Flag.rangeFin f h0 hlast hcovBy ↔ ∃ k, f k = x