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 / V04. Order and lattices

Mathlib.Order.Lattice.Nat

38 declarations. Mathlib docs · Source

instance Nat.instInfSet E0 #

InfSet ℕ

instance Nat.instSupSet E0 #

SupSet ℕ

theorem Nat.sInf_def E0 #

∀ {s : Set ℕ} (h : s.Nonempty), sInf s = Nat.find h

theorem Nat.sSup_def E0 #

∀ {s : Set ℕ} (h : ∃ n, ∀ a ∈ s, a ≤ n), sSup s = Nat.find h

theorem Set.Infinite.Nat.sSup_eq_zero E1 #

∀ {s : Set ℕ}, s.Infinite → sSup s = 0

theorem Nat.sSup_of_not_bddAbove E1 #

∀ {s : Set ℕ}, ¬BddAbove s → sSup s = 0

theorem Nat.iSup_of_not_bddAbove E1 #

∀ {ι : Sort u_1} {f : ι → ℕ}, ¬BddAbove (Set.range f) → ⨆ i, f i = 0

theorem Nat.sInf_eq_zero E0 #

∀ {s : Set ℕ}, sInf s = 0 ↔ 0 ∈ s ∨ s = ∅

theorem Nat.sInf_empty E0 #

sInf ∅ = 0

theorem Nat.iInf_of_empty E1 #

∀ {ι : Sort u_1} [IsEmpty ι] (f : ι → ℕ), iInf f = 0

theorem Nat.iInf_const_zero E0 #

∀ {ι : Sort u_1}, ⨅ x, 0 = 0

This combines Nat.iInf_of_empty with ciInf_const.

theorem Nat.sInf_mem E1 #

∀ {s : Set ℕ}, s.Nonempty → sInf s ∈ s

theorem Nat.notMem_of_lt_sInf E1 #

∀ {s : Set ℕ} {m : ℕ}, m < sInf s → m ∉ s

theorem Nat.sInf_le E1 #

∀ {s : Set ℕ} {m : ℕ}, m ∈ s → sInf s ≤ m

theorem Nat.nonempty_of_pos_sInf E1 #

∀ {s : Set ℕ}, 0 < sInf s → s.Nonempty

theorem Nat.nonempty_of_sInf_eq_succ E1 #

∀ {s : Set ℕ} {k : ℕ}, sInf s = k + 1 → s.Nonempty

theorem Nat.sInf_upward_closed_eq_succ_iff E0 #

∀ {s : Set ℕ}, (∀ (k₁ k₂ : ℕ), k₁ ≤ k₂ → k₁ ∈ s → k₂ ∈ s) → ∀ (k : ℕ), sInf s = k + 1 ↔ k + 1 ∈ s ∧ k ∉ s

instance Nat.instLattice E0 #

Lattice ℕ

This instance is necessary, otherwise the lattice operations would be derived via ConditionallyCompleteLinearOrderBot and marked as noncomputable.

instance Nat.instConditionallyCompleteLinearOrderBot E0 #

ConditionallyCompleteLinearOrderBot ℕ

theorem Nat.sSup_mem E1 #

∀ {s : Set ℕ}, s.Nonempty → BddAbove s → sSup s ∈ s

theorem Nat.sInf_add E1 #

∀ {n : ℕ} {p : ℕ → Prop}, n ≤ sInf {m | p m} → sInf {m | p (m + n)} + n = sInf {m | p m}

theorem Nat.sInf_add' E1 #

∀ {n : ℕ} {p : ℕ → Prop}, 0 < sInf {m | p m} → sInf {m | p m} + n = sInf {m | p (m - n)}

theorem Nat.iSup_lt_succ E1 #

∀ {α : Type u_1} [inst : CompleteLattice α] (u : ℕ → α) (n : ℕ),
  ⨆ k, ⨆ (_ : k < n + 1), u k = (⨆ k, ⨆ (_ : k < n), u k) ⊔ u n

theorem Nat.iSup_lt_succ' E1 #

∀ {α : Type u_1} [inst : CompleteLattice α] (u : ℕ → α) (n : ℕ),
  ⨆ k, ⨆ (_ : k < n + 1), u k = u 0 ⊔ ⨆ k, ⨆ (_ : k < n), u (k + 1)

theorem Nat.iInf_lt_succ E1 #

∀ {α : Type u_1} [inst : CompleteLattice α] (u : ℕ → α) (n : ℕ),
  ⨅ k, ⨅ (_ : k < n + 1), u k = (⨅ k, ⨅ (_ : k < n), u k) ⊓ u n

theorem Nat.iInf_lt_succ' E1 #

∀ {α : Type u_1} [inst : CompleteLattice α] (u : ℕ → α) (n : ℕ),
  ⨅ k, ⨅ (_ : k < n + 1), u k = u 0 ⊓ ⨅ k, ⨅ (_ : k < n), u (k + 1)

theorem Nat.iSup_le_succ E1 #

∀ {α : Type u_1} [inst : CompleteLattice α] (u : ℕ → α) (n : ℕ),
  ⨆ k, ⨆ (_ : k ≤ n + 1), u k = (⨆ k, ⨆ (_ : k ≤ n), u k) ⊔ u (n + 1)

theorem Nat.iSup_le_succ' E1 #

∀ {α : Type u_1} [inst : CompleteLattice α] (u : ℕ → α) (n : ℕ),
  ⨆ k, ⨆ (_ : k ≤ n + 1), u k = u 0 ⊔ ⨆ k, ⨆ (_ : k ≤ n), u (k + 1)

theorem Nat.iInf_le_succ E1 #

∀ {α : Type u_1} [inst : CompleteLattice α] (u : ℕ → α) (n : ℕ),
  ⨅ k, ⨅ (_ : k ≤ n + 1), u k = (⨅ k, ⨅ (_ : k ≤ n), u k) ⊓ u (n + 1)

theorem Nat.iInf_le_succ' E1 #

∀ {α : Type u_1} [inst : CompleteLattice α] (u : ℕ → α) (n : ℕ),
  ⨅ k, ⨅ (_ : k ≤ n + 1), u k = u 0 ⊓ ⨅ k, ⨅ (_ : k ≤ n), u (k + 1)

theorem Set.biUnion_lt_succ E1 #

∀ {α : Type u_1} (u : ℕ → Set α) (n : ℕ), ⋃ k, ⋃ (_ : k < n + 1), u k = (⋃ k, ⋃ (_ : k < n), u k) ∪ u n

theorem Set.biUnion_lt_succ' E1 #

∀ {α : Type u_1} (u : ℕ → Set α) (n : ℕ), ⋃ k, ⋃ (_ : k < n + 1), u k = u 0 ∪ ⋃ k, ⋃ (_ : k < n), u (k + 1)

theorem Set.biInter_lt_succ E1 #

∀ {α : Type u_1} (u : ℕ → Set α) (n : ℕ), ⋂ k, ⋂ (_ : k < n + 1), u k = (⋂ k, ⋂ (_ : k < n), u k) ∩ u n

theorem Set.biInter_lt_succ' E1 #

∀ {α : Type u_1} (u : ℕ → Set α) (n : ℕ), ⋂ k, ⋂ (_ : k < n + 1), u k = u 0 ∩ ⋂ k, ⋂ (_ : k < n), u (k + 1)

theorem Set.biUnion_le_succ E1 #

∀ {α : Type u_1} (u : ℕ → Set α) (n : ℕ), ⋃ k, ⋃ (_ : k ≤ n + 1), u k = (⋃ k, ⋃ (_ : k ≤ n), u k) ∪ u (n + 1)

theorem Set.biUnion_le_succ' E1 #

∀ {α : Type u_1} (u : ℕ → Set α) (n : ℕ), ⋃ k, ⋃ (_ : k ≤ n + 1), u k = u 0 ∪ ⋃ k, ⋃ (_ : k ≤ n), u (k + 1)

theorem Set.biInter_le_succ E1 #

∀ {α : Type u_1} (u : ℕ → Set α) (n : ℕ), ⋂ k, ⋂ (_ : k ≤ n + 1), u k = (⋂ k, ⋂ (_ : k ≤ n), u k) ∩ u (n + 1)

theorem Set.biInter_le_succ' E1 #

∀ {α : Type u_1} (u : ℕ → Set α) (n : ℕ), ⋂ k, ⋂ (_ : k ≤ n + 1), u k = u 0 ∩ ⋂ k, ⋂ (_ : k ≤ n), u (k + 1)