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 / V06. Rings, fields and ordered algebra

Mathlib.Algebra.Order.Floor.Div

57 declarations. Mathlib docs · Source

Flooring, ceiling division

This file defines division rounded up and down.

The setup is an ordered monoid α acting on an ordered monoid β. If a : α, b : β, we would like to be able to "divide" b by a, namely find c : β such that a • c = b. This is of course not always possible, but in some cases at least there is a least c such that b ≤ a • c and a greatest c such that a • c ≤ b. We call the first one the "ceiling division of b by a" and the second one the "flooring division of b by a"

If α and β are both ℕ, then one can check that our flooring and ceiling divisions really are the floor and ceil of the exact division. If α is ℕ and β is the functions ι → ℕ, then the flooring and ceiling divisions are taken pointwise.

In order theory terms, those operations are respectively the right and left adjoints to the map b ↦ a • b.

Main declarations

  • FloorDiv: Typeclass for the existence of a flooring division, denoted b ⌊/⌋ a.
  • CeilDiv: Typeclass for the existence of a ceiling division, denoted b ⌈/⌉ a.

Note in both cases we only allow dividing by positive inputs. We enforce the following junk values:

  • b ⌊/⌋ a = b ⌈/⌉ a = 0 if a ≤ 0
  • 0 ⌊/⌋ a = 0 ⌈/⌉ a = 0

Notation

  • b ⌊/⌋ a for the flooring division of b by a
  • b ⌈/⌉ a for the ceiling division of b by a

TODO

  • norm_num extension
  • Prove ⌈a / b⌉ = a ⌈/⌉ b when a, b : ℕ

def FloorDiv.ctorIdx E1 #

{α : Type u_2} →
  {β : Type u_3} →
    {inst : AddCommMonoid α} →
      {inst_1 : PartialOrder α} →
        {inst_2 : AddCommMonoid β} → {inst_3 : PartialOrder β} → {inst_4 : SMulZeroClass α β} → FloorDiv α β → ℕ

def CeilDiv.ctorIdx E1 #

{α : Type u_2} →
  {β : Type u_3} →
    {inst : AddCommMonoid α} →
      {inst_1 : PartialOrder α} →
        {inst_2 : AddCommMonoid β} → {inst_3 : PartialOrder β} → {inst_4 : SMulZeroClass α β} → CeilDiv α β → ℕ

class FloorDiv E3 #

(α : Type u_2) →
  (β : Type u_3) →
    [AddCommMonoid α] →
      [PartialOrder α] → [inst : AddCommMonoid β] → [PartialOrder β] → [SMulZeroClass α β] → Type (max u_2 u_3)

Typeclass for division rounded down. For each a > 0, this asserts the existence of a right adjoint to the map b ↦ a • b : β → β.

ctor FloorDiv.mk E0 #

{α : Type u_2} →
  {β : Type u_3} →
    [inst : AddCommMonoid α] →
      [inst_1 : PartialOrder α] →
        [inst_2 : AddCommMonoid β] →
          [inst_3 : PartialOrder β] →
            [inst_4 : SMulZeroClass α β] →
              (floorDiv : β → α → β) →
                (∀ ⦃a : α⦄, 0 < a → GaloisConnection (fun x ↦ a • x) fun x ↦ floorDiv x a) →
                  (∀ ⦃a : α⦄, a ≤ 0 → ∀ (b : β), floorDiv b a = 0) → (∀ (a : α), floorDiv 0 a = 0) → FloorDiv α β

abbrev FloorDiv.floorDiv E1 #

{α : Type u_2} →
  {β : Type u_3} →
    {inst : AddCommMonoid α} →
      {inst_1 : PartialOrder α} →
        {inst_2 : AddCommMonoid β} →
          {inst_3 : PartialOrder β} → {inst_4 : SMulZeroClass α β} → [self : FloorDiv α β] → β → α → β

Flooring division. If a > 0, then b ⌊/⌋ a is the greatest c such that a • c ≤ b.

theorem FloorDiv.floorDiv_gc E1 #

∀ {α : Type u_2} {β : Type u_3} {inst : AddCommMonoid α} {inst_1 : PartialOrder α} {inst_2 : AddCommMonoid β}
  {inst_3 : PartialOrder β} {inst_4 : SMulZeroClass α β} [self : FloorDiv α β] ⦃a : α⦄,
  0 < a → GaloisConnection (fun x ↦ a • x) fun x ↦ x ⌊/⌋ a

Do not use this. Use gc_floorDiv_smul or gc_floorDiv_mul instead.

theorem FloorDiv.floorDiv_nonpos E1 #

∀ {α : Type u_2} {β : Type u_3} {inst : AddCommMonoid α} {inst_1 : PartialOrder α} {inst_2 : AddCommMonoid β}
  {inst_3 : PartialOrder β} {inst_4 : SMulZeroClass α β} [self : FloorDiv α β] ⦃a : α⦄, a ≤ 0 → ∀ (b : β), b ⌊/⌋ a = 0

Do not use this. Use floorDiv_nonpos instead.

theorem FloorDiv.zero_floorDiv E1 #

∀ {α : Type u_2} {β : Type u_3} {inst : AddCommMonoid α} {inst_1 : PartialOrder α} {inst_2 : AddCommMonoid β}
  {inst_3 : PartialOrder β} {inst_4 : SMulZeroClass α β} [self : FloorDiv α β] (a : α), 0 ⌊/⌋ a = 0

Do not use this. Use zero_floorDiv instead.

class CeilDiv E3 #

(α : Type u_2) →
  (β : Type u_3) →
    [AddCommMonoid α] →
      [PartialOrder α] → [inst : AddCommMonoid β] → [PartialOrder β] → [SMulZeroClass α β] → Type (max u_2 u_3)

Typeclass for division rounded up. For each a > 0, this asserts the existence of a left adjoint to the map b ↦ a • b : β → β.

ctor CeilDiv.mk E0 #

{α : Type u_2} →
  {β : Type u_3} →
    [inst : AddCommMonoid α] →
      [inst_1 : PartialOrder α] →
        [inst_2 : AddCommMonoid β] →
          [inst_3 : PartialOrder β] →
            [inst_4 : SMulZeroClass α β] →
              (ceilDiv : β → α → β) →
                (∀ ⦃a : α⦄, 0 < a → GaloisConnection (fun x ↦ ceilDiv x a) fun x ↦ a • x) →
                  (∀ ⦃a : α⦄, a ≤ 0 → ∀ (b : β), ceilDiv b a = 0) → (∀ (a : α), ceilDiv 0 a = 0) → CeilDiv α β

abbrev CeilDiv.ceilDiv E1 #

{α : Type u_2} →
  {β : Type u_3} →
    {inst : AddCommMonoid α} →
      {inst_1 : PartialOrder α} →
        {inst_2 : AddCommMonoid β} →
          {inst_3 : PartialOrder β} → {inst_4 : SMulZeroClass α β} → [self : CeilDiv α β] → β → α → β

Ceiling division. If a > 0, then b ⌈/⌉ a is the least c such that b ≤ a • c.

theorem CeilDiv.ceilDiv_gc E1 #

∀ {α : Type u_2} {β : Type u_3} {inst : AddCommMonoid α} {inst_1 : PartialOrder α} {inst_2 : AddCommMonoid β}
  {inst_3 : PartialOrder β} {inst_4 : SMulZeroClass α β} [self : CeilDiv α β] ⦃a : α⦄,
  0 < a → GaloisConnection (fun x ↦ x ⌈/⌉ a) fun x ↦ a • x

Do not use this. Use gc_smul_ceilDiv or gc_mul_ceilDiv instead.

theorem CeilDiv.ceilDiv_nonpos E1 #

∀ {α : Type u_2} {β : Type u_3} {inst : AddCommMonoid α} {inst_1 : PartialOrder α} {inst_2 : AddCommMonoid β}
  {inst_3 : PartialOrder β} {inst_4 : SMulZeroClass α β} [self : CeilDiv α β] ⦃a : α⦄, a ≤ 0 → ∀ (b : β), b ⌈/⌉ a = 0

Do not use this. Use ceilDiv_nonpos instead.

theorem CeilDiv.zero_ceilDiv E1 #

∀ {α : Type u_2} {β : Type u_3} {inst : AddCommMonoid α} {inst_1 : PartialOrder α} {inst_2 : AddCommMonoid β}
  {inst_3 : PartialOrder β} {inst_4 : SMulZeroClass α β} [self : CeilDiv α β] (a : α), 0 ⌈/⌉ a = 0

Do not use this. Use zero_ceilDiv instead.

def «term_⌊/⌋_» E1 #

Lean.TrailingParserDescr

Flooring division. If a > 0, then b ⌊/⌋ a is the greatest c such that a • c ≤ b.

def «term_⌈/⌉_» E1 #

Lean.TrailingParserDescr

Ceiling division. If a > 0, then b ⌈/⌉ a is the least c such that b ≤ a • c.

theorem gc_floorDiv_smul E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : FloorDiv α β] {a : α},
  0 < a → GaloisConnection (fun x ↦ a • x) fun x ↦ x ⌊/⌋ a

theorem le_floorDiv_iff_smul_le E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : FloorDiv α β] {a : α} {b c : β},
  0 < a → (c ≤ b ⌊/⌋ a ↔ a • c ≤ b)

theorem floorDiv_of_nonpos E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : FloorDiv α β] {a : α}, a ≤ 0 → ∀ (b : β), b ⌊/⌋ a = 0

theorem floorDiv_zero E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : FloorDiv α β] (b : β), b ⌊/⌋ 0 = 0

theorem zero_floorDiv E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : FloorDiv α β] (a : α), 0 ⌊/⌋ a = 0

theorem smul_floorDiv_le E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : FloorDiv α β] {a : α} {b : β},
  0 < a → a • (b ⌊/⌋ a) ≤ b

theorem gc_smul_ceilDiv E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : CeilDiv α β] {a : α},
  0 < a → GaloisConnection (fun x ↦ x ⌈/⌉ a) fun x ↦ a • x

theorem ceilDiv_le_iff_le_smul E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : CeilDiv α β] {a : α} {b c : β},
  0 < a → (b ⌈/⌉ a ≤ c ↔ b ≤ a • c)

theorem ceilDiv_of_nonpos E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : CeilDiv α β] {a : α}, a ≤ 0 → ∀ (b : β), b ⌈/⌉ a = 0

theorem ceilDiv_zero E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : CeilDiv α β] (b : β), b ⌈/⌉ 0 = 0

theorem zero_ceilDiv E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : CeilDiv α β] (a : α), 0 ⌈/⌉ a = 0

theorem le_smul_ceilDiv E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : CeilDiv α β] {a : α} {b : β},
  0 < a → b ≤ a • (b ⌈/⌉ a)

theorem floorDiv_le_ceilDiv E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : LinearOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [PosSMulReflectLE α β] [inst_6 : FloorDiv α β]
  [inst_7 : CeilDiv α β] {a : α} {b : β}, b ⌊/⌋ a ≤ b ⌈/⌉ a

theorem floorDiv_one E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Semiring α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : MulActionWithZero α β] [inst_5 : FloorDiv α β] [IsOrderedRing α] [Nontrivial α]
  (b : β), b ⌊/⌋ 1 = b

theorem smul_floorDiv E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Semiring α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : MulActionWithZero α β] [inst_5 : FloorDiv α β] {a : α} [PosSMulMono α β]
  [PosSMulReflectLE α β], 0 < a → ∀ (b : β), a • b ⌊/⌋ a = b

theorem ceilDiv_one E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Semiring α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : MulActionWithZero α β] [inst_5 : CeilDiv α β] [IsOrderedRing α] [Nontrivial α]
  (b : β), b ⌈/⌉ 1 = b

theorem smul_ceilDiv E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Semiring α] [inst_1 : PartialOrder α] [inst_2 : AddCommMonoid β]
  [inst_3 : PartialOrder β] [inst_4 : MulActionWithZero α β] [inst_5 : CeilDiv α β] {a : α} [PosSMulMono α β]
  [PosSMulReflectLE α β], 0 < a → ∀ (b : β), a • b ⌈/⌉ a = b

theorem gc_floorDiv_mul E1 #

∀ {α : Type u_2} [inst : Semiring α] [inst_1 : PartialOrder α] [inst_2 : FloorDiv α α] {a : α},
  0 < a → GaloisConnection (fun x ↦ a * x) fun x ↦ x ⌊/⌋ a

theorem le_floorDiv_iff_mul_le E1 #

∀ {α : Type u_2} [inst : Semiring α] [inst_1 : PartialOrder α] [inst_2 : FloorDiv α α] {a b c : α},
  0 < a → (c ≤ b ⌊/⌋ a ↔ a • c ≤ b)

theorem gc_mul_ceilDiv E1 #

∀ {α : Type u_2} [inst : Semiring α] [inst_1 : PartialOrder α] [inst_2 : CeilDiv α α] {a : α},
  0 < a → GaloisConnection (fun x ↦ x ⌈/⌉ a) fun x ↦ a * x

theorem ceilDiv_le_iff_le_mul E1 #

∀ {α : Type u_2} [inst : Semiring α] [inst_1 : PartialOrder α] [inst_2 : CeilDiv α α] {a b c : α},
  0 < a → (b ⌈/⌉ a ≤ c ↔ b ≤ a * c)

instance Nat.instFloorDiv E0 #

FloorDiv ℕ ℕ

instance Nat.instCeilDiv E0 #

CeilDiv ℕ ℕ

theorem Nat.floorDiv_eq_div E0 #

∀ (a b : ℕ), a ⌊/⌋ b = a / b

theorem Nat.ceilDiv_eq_add_pred_div E1 #

∀ (a b : ℕ), a ⌈/⌉ b = (a + b - 1) / b

instance Pi.instFloorDiv E0 #

{ι : Type u_1} →
  {α : Type u_2} →
    {π : ι → Type u_4} →
      [inst : AddCommMonoid α] →
        [inst_1 : PartialOrder α] →
          [inst_2 : (i : ι) → AddCommMonoid (π i)] →
            [inst_3 : (i : ι) → PartialOrder (π i)] →
              [inst_4 : (i : ι) → SMulZeroClass α (π i)] → [(i : ι) → FloorDiv α (π i)] → FloorDiv α ((i : ι) → π i)

theorem Pi.floorDiv_def E0 #

∀ {ι : Type u_1} {α : Type u_2} {π : ι → Type u_4} [inst : AddCommMonoid α] [inst_1 : PartialOrder α]
  [inst_2 : (i : ι) → AddCommMonoid (π i)] [inst_3 : (i : ι) → PartialOrder (π i)]
  [inst_4 : (i : ι) → SMulZeroClass α (π i)] [inst_5 : (i : ι) → FloorDiv α (π i)] (f : (i : ι) → π i) (a : α),
  f ⌊/⌋ a = fun i ↦ f i ⌊/⌋ a

theorem Pi.floorDiv_apply E0 #

∀ {ι : Type u_1} {α : Type u_2} {π : ι → Type u_4} [inst : AddCommMonoid α] [inst_1 : PartialOrder α]
  [inst_2 : (i : ι) → AddCommMonoid (π i)] [inst_3 : (i : ι) → PartialOrder (π i)]
  [inst_4 : (i : ι) → SMulZeroClass α (π i)] [inst_5 : (i : ι) → FloorDiv α (π i)] (f : (i : ι) → π i) (a : α) (i : ι),
  (f ⌊/⌋ a) i = f i ⌊/⌋ a

instance Pi.instCeilDiv E0 #

{ι : Type u_1} →
  {α : Type u_2} →
    {π : ι → Type u_4} →
      [inst : AddCommMonoid α] →
        [inst_1 : PartialOrder α] →
          [inst_2 : (i : ι) → AddCommMonoid (π i)] →
            [inst_3 : (i : ι) → PartialOrder (π i)] →
              [inst_4 : (i : ι) → SMulZeroClass α (π i)] → [(i : ι) → CeilDiv α (π i)] → CeilDiv α ((i : ι) → π i)

theorem Pi.ceilDiv_def E0 #

∀ {ι : Type u_1} {α : Type u_2} {π : ι → Type u_4} [inst : AddCommMonoid α] [inst_1 : PartialOrder α]
  [inst_2 : (i : ι) → AddCommMonoid (π i)] [inst_3 : (i : ι) → PartialOrder (π i)]
  [inst_4 : (i : ι) → SMulZeroClass α (π i)] [inst_5 : (i : ι) → CeilDiv α (π i)] (f : (i : ι) → π i) (a : α),
  f ⌈/⌉ a = fun i ↦ f i ⌈/⌉ a

theorem Pi.ceilDiv_apply E0 #

∀ {ι : Type u_1} {α : Type u_2} {π : ι → Type u_4} [inst : AddCommMonoid α] [inst_1 : PartialOrder α]
  [inst_2 : (i : ι) → AddCommMonoid (π i)] [inst_3 : (i : ι) → PartialOrder (π i)]
  [inst_4 : (i : ι) → SMulZeroClass α (π i)] [inst_5 : (i : ι) → CeilDiv α (π i)] (f : (i : ι) → π i) (a : α) (i : ι),
  (f ⌈/⌉ a) i = f i ⌈/⌉ a

instance Finsupp.instFloorDiv E0 #

{ι : Type u_1} →
  {α : Type u_2} →
    {β : Type u_3} →
      [inst : AddCommMonoid α] →
        [inst_1 : PartialOrder α] →
          [inst_2 : AddCommMonoid β] →
            [inst_3 : PartialOrder β] → [inst_4 : SMulZeroClass α β] → [FloorDiv α β] → FloorDiv α (ι →₀ β)

theorem Finsupp.floorDiv_def E0 #

∀ {ι : Type u_1} {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α]
  [inst_2 : AddCommMonoid β] [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : FloorDiv α β] (f : ι →₀ β)
  (a : α), f ⌊/⌋ a = Finsupp.mapRange (fun x ↦ x ⌊/⌋ a) ⋯ f

theorem Finsupp.coe_floorDiv E0 #

∀ {ι : Type u_1} {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α]
  [inst_2 : AddCommMonoid β] [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : FloorDiv α β] (f : ι →₀ β)
  (a : α), ⇑(f ⌊/⌋ a) = fun i ↦ f i ⌊/⌋ a

theorem Finsupp.floorDiv_apply E0 #

∀ {ι : Type u_1} {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α]
  [inst_2 : AddCommMonoid β] [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : FloorDiv α β] (f : ι →₀ β)
  (a : α) (i : ι), (f ⌊/⌋ a) i = f i ⌊/⌋ a

theorem Finsupp.support_floorDiv_subset E1 #

∀ {ι : Type u_1} {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α]
  [inst_2 : AddCommMonoid β] [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : FloorDiv α β] {f : ι →₀ β}
  {a : α}, (f ⌊/⌋ a).support ⊆ f.support

instance Finsupp.instCeilDiv E0 #

{ι : Type u_1} →
  {α : Type u_2} →
    {β : Type u_3} →
      [inst : AddCommMonoid α] →
        [inst_1 : PartialOrder α] →
          [inst_2 : AddCommMonoid β] →
            [inst_3 : PartialOrder β] → [inst_4 : SMulZeroClass α β] → [CeilDiv α β] → CeilDiv α (ι →₀ β)

theorem Finsupp.ceilDiv_def E0 #

∀ {ι : Type u_1} {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α]
  [inst_2 : AddCommMonoid β] [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : CeilDiv α β] (f : ι →₀ β)
  (a : α), f ⌈/⌉ a = Finsupp.mapRange (fun x ↦ x ⌈/⌉ a) ⋯ f

theorem Finsupp.coe_ceilDiv_def E0 #

∀ {ι : Type u_1} {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α]
  [inst_2 : AddCommMonoid β] [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : CeilDiv α β] (f : ι →₀ β)
  (a : α), ⇑(f ⌈/⌉ a) = fun i ↦ f i ⌈/⌉ a

theorem Finsupp.ceilDiv_apply E0 #

∀ {ι : Type u_1} {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α]
  [inst_2 : AddCommMonoid β] [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : CeilDiv α β] (f : ι →₀ β)
  (a : α) (i : ι), (f ⌈/⌉ a) i = f i ⌈/⌉ a

theorem Finsupp.support_ceilDiv_subset E1 #

∀ {ι : Type u_1} {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : PartialOrder α]
  [inst_2 : AddCommMonoid β] [inst_3 : PartialOrder β] [inst_4 : SMulZeroClass α β] [inst_5 : CeilDiv α β] {f : ι →₀ β}
  {a : α}, (f ⌈/⌉ a).support ⊆ f.support