The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Inclusion.Extension.Interval.Basic
107 declarations. Mathlib docs · Source
theorem Inclusion.Interval.mk.inj E1 #
∀ {α : Type u_3} {lb : WithBot α} {ub : WithTop α} {lb_1 : WithBot α} {ub_1 : WithTop α},
{ lb := lb, ub := ub } = { lb := lb_1, ub := ub_1 } → lb = lb_1 ∧ ub = ub_1
theorem Inclusion.Interval.orderRelFalse.congr_simp E1 #
∀ {α : Type u_1} (r r_1 : α → α → Prop),
r = r_1 →
∀ {inst : DecidableRel r} [inst_1 : DecidableRel r_1] (I I_1 : Inclusion.Interval α),
I = I_1 →
∀ (J J_1 : Inclusion.Interval α),
J = J_1 → Inclusion.Interval.orderRelFalse r I J = Inclusion.Interval.orderRelFalse r_1 I_1 J_1
theorem Inclusion.Interval.add.match_1.congr_eq_2 E1 #
∀ {α : Type u_1} (motive : WithBot α → WithBot α → Sort u_2) (x x_1 : WithBot α)
(h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (x x_2 : WithBot α) → motive x x_2) (x_2 x_3 : WithBot α),
x = x_2 →
x_1 = x_3 →
(∀ (a b : α), x_2 = some a → x_3 = some b → False) →
(match x, x_1 with
| some a, some b => h_1 a b
| x, x_5 => h_2 x x_5) ≍
h_2 x_2 x_3
theorem Inclusion.Interval.add.match_1.congr_eq_1 E1 #
∀ {α : Type u_1} (motive : WithBot α → WithBot α → Sort u_2) (x x_1 : WithBot α)
(h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (x x_2 : WithBot α) → motive x x_2) (a b : α),
x = some a →
x_1 = some b →
(match x, x_1 with
| some a, some b => h_1 a b
| x, x_2 => h_2 x x_2) ≍
h_1 a b
theorem Inclusion.Interval.mulBound.match_1.congr_eq_3 E1 #
∀ {α : Type u_1} (motive : Option α → Option α → Sort u_2) (x x_1 : Option α)
(h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (a : α) → motive (some a) none)
(h_3 : (b : α) → motive none (some b)) (h_4 : Unit → motive none none) (b : α),
x = none →
x_1 = some b →
(match x, x_1 with
| some a, some b => h_1 a b
| some a, none => h_2 a
| none, some b => h_3 b
| none, none => h_4 ()) ≍
h_3 b
theorem Inclusion.Interval.sub.match_1.congr_eq_1 E1 #
∀ {α : Type u_1} (motive : WithBot α → WithTop α → Sort u_2) (x : WithBot α) (x_1 : WithTop α)
(h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (x : WithBot α) → (x_2 : WithTop α) → motive x x_2) (a b : α),
x = some a →
x_1 = some b →
(match x, x_1 with
| some a, some b => h_1 a b
| x, x_2 => h_2 x x_2) ≍
h_1 a b
theorem Inclusion.Interval.mulBound.match_1.congr_eq_1 E1 #
∀ {α : Type u_1} (motive : Option α → Option α → Sort u_2) (x x_1 : Option α)
(h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (a : α) → motive (some a) none)
(h_3 : (b : α) → motive none (some b)) (h_4 : Unit → motive none none) (a b : α),
x = some a →
x_1 = some b →
(match x, x_1 with
| some a, some b => h_1 a b
| some a, none => h_2 a
| none, some b => h_3 b
| none, none => h_4 ()) ≍
h_1 a b
def Inclusion.Interval.ctorIdx E1 #
{α : Type u_3} → Inclusion.Interval α → ℕ
theorem Inclusion.Interval.neg.match_3.congr_eq_2 E1 #
∀ {α : Type u_1} (motive : WithBot α → Sort u_2) (x : WithBot α) (h_1 : (a : α) → motive (some a))
(h_2 : Unit → motive none),
x = none →
(match x with
| some a => h_1 a
| none => h_2 ()) ≍
h_2 ()
theorem Inclusion.Interval.abs.fun_cases_unfolding E1 #
∀ {α : Type u_1} [inst : Zero α] [inst_1 : Neg α] [inst_2 : LinearOrder α] (I : Inclusion.Interval α)
(motive : Inclusion.Interval α → Prop),
(∀ (a : α), I.lb = some a → 0 ≤ a → motive I) →
(∀ (a : α),
I.lb = some a →
¬0 ≤ a → ∀ (a_1 : α), I.ub = some a_1 → a_1 ≤ 0 → motive { lb := some (-a_1), ub := some (-a) }) →
(∀ (a : α),
I.lb = some a →
¬0 ≤ a → ∀ (a_1 : α), I.ub = some a_1 → ¬a_1 ≤ 0 → motive { lb := 0, ub := some (max (-a) a_1) }) →
(∀ (a : α), I.lb = some a → ¬0 ≤ a → I.ub = none → motive (Inclusion.Interval.Ici 0)) →
(I.lb = none →
have lb :=
match I.ub with
| some ub => if ub ≤ 0 then some (-ub) else 0
| none => 0;
motive (Inclusion.Interval.Ici lb)) →
motive I.abs
theorem Inclusion.Interval.neg.match_3.congr_eq_1 E1 #
∀ {α : Type u_1} (motive : WithBot α → Sort u_2) (x : WithBot α) (h_1 : (a : α) → motive (some a))
(h_2 : Unit → motive none) (a : α),
x = some a →
(match x with
| some a => h_1 a
| none => h_2 ()) ≍
h_1 a
def Inclusion.instInhabitedInterval.default E1 #
{α : Type u_3} → Inclusion.Interval α
theorem Inclusion.Interval.neg.match_1.congr_eq_2 E1 #
∀ {α : Type u_1} (motive : WithTop α → Sort u_2) (x : WithTop α) (h_1 : (a : α) → motive (some a))
(h_2 : Unit → motive none),
x = none →
(match x with
| some a => h_1 a
| none => h_2 ()) ≍
h_2 ()
theorem Inclusion.Interval.mulBound.match_1.congr_eq_4 E1 #
∀ {α : Type u_1} (motive : Option α → Option α → Sort u_2) (x x_1 : Option α)
(h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (a : α) → motive (some a) none)
(h_3 : (b : α) → motive none (some b)) (h_4 : Unit → motive none none),
x = none →
x_1 = none →
(match x, x_1 with
| some a, some b => h_1 a b
| some a, none => h_2 a
| none, some b => h_3 b
| none, none => h_4 ()) ≍
h_4 ()
theorem Inclusion.Interval.neg.match_1.congr_eq_1 E1 #
∀ {α : Type u_1} (motive : WithTop α → Sort u_2) (x : WithTop α) (h_1 : (a : α) → motive (some a))
(h_2 : Unit → motive none) (a : α),
x = some a →
(match x with
| some a => h_1 a
| none => h_2 ()) ≍
h_1 a
theorem Inclusion.Interval.mk.injEq E0 #
∀ {α : Type u_3} (lb : WithBot α) (ub : WithTop α) (lb_1 : WithBot α) (ub_1 : WithTop α),
({ lb := lb, ub := ub } = { lb := lb_1, ub := ub_1 }) = (lb = lb_1 ∧ ub = ub_1)
theorem Inclusion.Interval.sub.match_3.congr_eq_2 E1 #
∀ {α : Type u_1} (motive : WithTop α → WithBot α → Sort u_2) (x : WithTop α) (x_1 : WithBot α)
(h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (x : WithTop α) → (x_2 : WithBot α) → motive x x_2)
(x_2 : WithTop α) (x_3 : WithBot α),
x = x_2 →
x_1 = x_3 →
(∀ (a b : α), x_2 = some a → x_3 = some b → False) →
(match x, x_1 with
| some a, some b => h_1 a b
| x, x_5 => h_2 x x_5) ≍
h_2 x_2 x_3
theorem Inclusion.Interval.sub.match_3.congr_eq_1 E1 #
∀ {α : Type u_1} (motive : WithTop α → WithBot α → Sort u_2) (x : WithTop α) (x_1 : WithBot α)
(h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (x : WithTop α) → (x_2 : WithBot α) → motive x x_2) (a b : α),
x = some a →
x_1 = some b →
(match x, x_1 with
| some a, some b => h_1 a b
| x, x_2 => h_2 x x_2) ≍
h_1 a b
theorem Inclusion.Interval.add.match_4.congr_eq_2 E1 #
∀ {α : Type u_1} (motive : WithTop α → WithTop α → Sort u_2) (x x_1 : WithTop α)
(h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (x x_2 : WithTop α) → motive x x_2) (x_2 x_3 : WithTop α),
x = x_2 →
x_1 = x_3 →
(∀ (a b : α), x_2 = some a → x_3 = some b → False) →
(match x, x_1 with
| some a, some b => h_1 a b
| x, x_5 => h_2 x x_5) ≍
h_2 x_2 x_3
theorem Inclusion.Interval.sub.match_1.congr_eq_2 E1 #
∀ {α : Type u_1} (motive : WithBot α → WithTop α → Sort u_2) (x : WithBot α) (x_1 : WithTop α)
(h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (x : WithBot α) → (x_2 : WithTop α) → motive x x_2)
(x_2 : WithBot α) (x_3 : WithTop α),
x = x_2 →
x_1 = x_3 →
(∀ (a b : α), x_2 = some a → x_3 = some b → False) →
(match x, x_1 with
| some a, some b => h_1 a b
| x, x_5 => h_2 x x_5) ≍
h_2 x_2 x_3
theorem Inclusion.Interval.add.match_4.congr_eq_1 E1 #
∀ {α : Type u_1} (motive : WithTop α → WithTop α → Sort u_2) (x x_1 : WithTop α)
(h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (x x_2 : WithTop α) → motive x x_2) (a b : α),
x = some a →
x_1 = some b →
(match x, x_1 with
| some a, some b => h_1 a b
| x, x_2 => h_2 x x_2) ≍
h_1 a b
theorem Inclusion.Interval.mulBound.match_1.congr_eq_2 E1 #
∀ {α : Type u_1} (motive : Option α → Option α → Sort u_2) (x x_1 : Option α)
(h_1 : (a b : α) → motive (some a) (some b)) (h_2 : (a : α) → motive (some a) none)
(h_3 : (b : α) → motive none (some b)) (h_4 : Unit → motive none none) (a : α),
x = some a →
x_1 = none →
(match x, x_1 with
| some a, some b => h_1 a b
| some a, none => h_2 a
| none, some b => h_3 b
| none, none => h_4 ()) ≍
h_2 a
structure Inclusion.Interval E1 #
Type u_3 → Type u_3
An Interval represents a possibly unbounded interval with closed endpoints.
ctor Inclusion.Interval.mk E0 #
{α : Type u_3} → WithBot α → WithTop α → Inclusion.Interval α
abbrev Inclusion.Interval.lb E1 #
{α : Type u_3} → Inclusion.Interval α → WithBot α
The lower endpoint, or ⊥ if the interval is unbounded below.
abbrev Inclusion.Interval.ub E1 #
{α : Type u_3} → Inclusion.Interval α → WithTop α
The upper endpoint, or ⊤ if the interval is unbounded above.
instance Inclusion.instInhabitedInterval E0 #
{a : Type u_3} → Inhabited (Inclusion.Interval a)
def Inclusion.Interval.toSet E1 #
{α : Type u_1} → [Preorder α] → Inclusion.Interval α → Set α
Maps I to {a | I.lb ≤ a ∧ a ≤ I.ub}
instance Inclusion.instToSetIntervalOfPreorder E0 #
{α : Type u_1} → [Preorder α] → Inclusion.ToSet (Inclusion.Interval α) α
theorem Inclusion.Interval.mem_def E0 #
∀ {α : Type u_1} [inst : Preorder α] {x : α} {I : Inclusion.Interval α}, x ∈ I ↔ I.lb ≤ ↑x ∧ ↑x ≤ I.ub
def Inclusion.Interval.map E1 #
{α : Type u_1} → {β : Type u_2} → Inclusion.Interval α → (α → β) → Inclusion.Interval β
Apply a function to the finite endpoints of an interval.
theorem Inclusion.Interval.map_id E0 #
∀ {α : Type u_1} (I : Inclusion.Interval α), I.map id = I
theorem Inclusion.Interval.map_map E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (I : Inclusion.Interval α) (f : α → β) (g : β → γ),
(I.map f).map g = I.map (g ∘ f)
theorem Inclusion.Interval.map_comp E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (I : Inclusion.Interval α) (f : α → β) (g : β → γ),
I.map (g ∘ f) = (I.map f).map g
theorem Inclusion.Interval.mem_map_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] (f : α → β) {x : β} {I : Inclusion.Interval α},
x ∈ I.map f ↔ (∀ (a : α), I.lb = ↑a → f a ≤ x) ∧ ∀ (a : α), I.ub = ↑a → x ≤ f a
def Inclusion.Interval.univ E1 #
(α : Type u_3) → Inclusion.Interval α
The interval unbounded on both sides.
instance Inclusion.instUnivInterval E0 #
{α : Type u_1} → [inst : Preorder α] → Inclusion.Univ (Inclusion.Interval α) α
theorem Inclusion.Interval.mem_map_univ E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] (f : α → β) (x : β), x ∈ (Inclusion.Interval.univ α).map f
def Inclusion.Interval.singleton E1 #
{α : Type u_1} → α → Inclusion.Interval α
The interval whose two endpoints are a.
theorem Inclusion.Interval.mem_map_singleton E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] (a : α) (f : α → β), f a ∈ (Inclusion.Interval.singleton a).map f
def Inclusion.Interval.Icc E1 #
{α : Type u_1} → WithBot α → WithTop α → Inclusion.Interval α
The interval with lower endpoint lb and upper endpoint ub.
theorem Inclusion.Interval.mem_map_Icc E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] (f : α → β) {lb ub : α} {x : β},
f lb ≤ x → x ≤ f ub → x ∈ (Inclusion.Interval.Icc ↑lb ↑ub).map f
theorem Inclusion.Interval.map_lb_le E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] (f : α → β) {lb : α} {ub : WithTop α} {x : β},
x ∈ (Inclusion.Interval.Icc (↑lb) ub).map f → f lb ≤ x
theorem Inclusion.Interval.le_map_ub E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] (f : α → β) {lb : WithBot α} {ub : α} {x : β},
x ∈ (Inclusion.Interval.Icc lb ↑ub).map f → x ≤ f ub
def Inclusion.Interval.Iic E1 #
{α : Type u_1} → WithTop α → Inclusion.Interval α
The interval unbounded below with upper endpoint ub.
def Inclusion.Interval.Ici E1 #
{α : Type u_1} → WithBot α → Inclusion.Interval α
The interval unbounded above with lower endpoint lb.
theorem Inclusion.Interval.mem_Icc_of_mem E0 #
∀ {α : Type u_1} [inst : Preorder α] {x : α} {lb : WithBot α} {ub : WithTop α},
x ∈ Inclusion.Interval.Ici lb → x ∈ Inclusion.Interval.Iic ub → x ∈ Inclusion.Interval.Icc lb ub
theorem Inclusion.Interval.mem_Iic_of_le E0 #
∀ {α : Type u_1} [inst : Preorder α] {x y : α} {I : Inclusion.Interval α},
x ≤ y → y ∈ I → x ∈ Inclusion.Interval.Iic I.ub
theorem Inclusion.Interval.mem_Ici_of_le E0 #
∀ {α : Type u_1} [inst : Preorder α] {x y : α} {I : Inclusion.Interval α},
x ≤ y → x ∈ I → y ∈ Inclusion.Interval.Ici I.lb
theorem Inclusion.Interval.mem_Icc_of_le E0 #
∀ {α : Type u_1} [inst : Preorder α] {a b x : α} {I J : Inclusion.Interval α},
a ∈ I → a ≤ x → x ≤ b → b ∈ J → x ∈ Inclusion.Interval.Icc I.lb J.ub
theorem Inclusion.Interval.mem_Iic_of_lt E0 #
∀ {α : Type u_1} [inst : Preorder α] {x y : α} {I : Inclusion.Interval α},
x < y → y ∈ I → x ∈ Inclusion.Interval.Iic I.ub
theorem Inclusion.Interval.mem_Ici_of_lt E0 #
∀ {α : Type u_1} [inst : Preorder α] {x y : α} {I : Inclusion.Interval α},
x < y → x ∈ I → y ∈ Inclusion.Interval.Ici I.lb
theorem Inclusion.Interval.mem_Ici_of_mem_Ici E0 #
∀ {α : Type u_1} [inst : Preorder α] {a x : α} {I : Inclusion.Interval α},
x ∈ Set.Ici a → a ∈ I → x ∈ Inclusion.Interval.Ici I.lb
theorem Inclusion.Interval.mem_Ici_of_mem_Ioi E0 #
∀ {α : Type u_1} [inst : Preorder α] {a x : α} {I : Inclusion.Interval α},
x ∈ Set.Ioi a → a ∈ I → x ∈ Inclusion.Interval.Ici I.lb
theorem Inclusion.Interval.mem_Iic_of_mem_Iic E0 #
∀ {α : Type u_1} [inst : Preorder α] {b x : α} {I : Inclusion.Interval α},
x ∈ Set.Iic b → b ∈ I → x ∈ Inclusion.Interval.Iic I.ub
theorem Inclusion.Interval.mem_Iic_of_mem_Iio E0 #
∀ {α : Type u_1} [inst : Preorder α] {b x : α} {I : Inclusion.Interval α},
x ∈ Set.Iio b → b ∈ I → x ∈ Inclusion.Interval.Iic I.ub
theorem Inclusion.Interval.mem_Icc_of_mem_Ico E0 #
∀ {α : Type u_1} [inst : Preorder α] {a b x : α} {I J : Inclusion.Interval α},
x ∈ Set.Ico a b → a ∈ I → b ∈ J → x ∈ Inclusion.Interval.Icc I.lb J.ub
theorem Inclusion.Interval.mem_Icc_of_mem_Ioc E0 #
∀ {α : Type u_1} [inst : Preorder α] {a b x : α} {I J : Inclusion.Interval α},
x ∈ Set.Ioc a b → a ∈ I → b ∈ J → x ∈ Inclusion.Interval.Icc I.lb J.ub
theorem Inclusion.Interval.mem_Icc_of_mem_Icc E0 #
∀ {α : Type u_1} [inst : Preorder α] {a b x : α} {I J : Inclusion.Interval α},
x ∈ Set.Icc a b → a ∈ I → b ∈ J → x ∈ Inclusion.Interval.Icc I.lb J.ub
theorem Inclusion.Interval.mem_Icc_of_mem_Ioo E0 #
∀ {α : Type u_1} [inst : Preorder α] {a b x : α} {I J : Inclusion.Interval α},
x ∈ Set.Ioo a b → a ∈ I → b ∈ J → x ∈ Inclusion.Interval.Icc I.lb J.ub
def Inclusion.Interval.inter E1 #
{α : Type u_1} → [LinearOrder α] → Inclusion.Interval α → Inclusion.Interval α → Inclusion.Interval α
The intersection of two intervals.
instance Inclusion.instRefineInterval E0 #
{α : Type u_1} → [inst : LinearOrder α] → Inclusion.Refine (Inclusion.Interval α) α
theorem Inclusion.Interval.map_inter E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : LinearOrder β] (f : α ↪o β)
(I J : Inclusion.Interval α), (I.inter J).map ⇑f = (I.map ⇑f).inter (J.map ⇑f)
theorem Inclusion.Interval.inter_mem E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : LinearOrder β] (f : α ↪o β) {x : β}
{I J : Inclusion.Interval α}, x ∈ I.map ⇑f → x ∈ J.map ⇑f → x ∈ (I.inter J).map ⇑f
def Inclusion.Interval.hull E1 #
{α : Type u_1} → [LinearOrder α] → Inclusion.Interval α → Inclusion.Interval α → Inclusion.Interval α
The convex hull of two intervals.
theorem Inclusion.Interval.mem_hull_left E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {x : α} {I J : Inclusion.Interval α}, x ∈ I → x ∈ I.hull J
theorem Inclusion.Interval.mem_hull_right E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {x : α} {I J : Inclusion.Interval α}, x ∈ J → x ∈ I.hull J
instance Inclusion.instCoarsenInterval E0 #
{α : Type u_1} → [inst : LinearOrder α] → Inclusion.Coarsen (Inclusion.Interval α) α
theorem Inclusion.Interval.map_hull E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : LinearOrder β] (f : α ↪o β)
(I J : Inclusion.Interval α), (I.hull J).map ⇑f = (I.map ⇑f).hull (J.map ⇑f)
theorem Inclusion.Interval.hull_mem_left E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : LinearOrder β] (f : α ↪o β) {x : β}
{I J : Inclusion.Interval α}, x ∈ I.map ⇑f → x ∈ (I.hull J).map ⇑f
theorem Inclusion.Interval.hull_mem_right E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : LinearOrder β] (f : α ↪o β) {x : β}
{I J : Inclusion.Interval α}, x ∈ J.map ⇑f → x ∈ (I.hull J).map ⇑f
def Inclusion.Interval.add E1 #
{α : Type u_1} → [Add α] → Inclusion.Interval α → Inclusion.Interval α → Inclusion.Interval α
Add two intervals.
theorem Inclusion.Interval.add_lb E0 #
∀ {α : Type u_1} [inst : AddZero α] (I J : Inclusion.Interval α), (I.add J).lb = I.lb + J.lb
theorem Inclusion.Interval.add_ub E0 #
∀ {α : Type u_1} [inst : AddZero α] (I J : Inclusion.Interval α), (I.add J).ub = I.ub + J.ub
theorem Inclusion.Interval.add_mem E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : AddZero α] [inst_1 : AddCommMonoid β] [inst_2 : Preorder β]
[IsOrderedAddMonoid β] (f : α →+ β) {x y : β} {I J : Inclusion.Interval α},
x ∈ I.map ⇑f → y ∈ J.map ⇑f → x + y ∈ (I.add J).map ⇑f
def Inclusion.Interval.neg E1 #
{α : Type u_1} → [Neg α] → Inclusion.Interval α → Inclusion.Interval α
Negate an interval.
theorem Inclusion.Interval.neg_mem E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : AddGroup α] [inst_1 : AddCommGroup β] [inst_2 : Preorder β]
[IsOrderedAddMonoid β] (f : α →+ β) {x : β} {I : Inclusion.Interval α}, x ∈ I.map ⇑f → -x ∈ I.neg.map ⇑f
def Inclusion.Interval.abs E1 #
{α : Type u_1} → [Zero α] → [Neg α] → [LinearOrder α] → Inclusion.Interval α → Inclusion.Interval α
Take the absolute value of an interval.
theorem Inclusion.Interval.abs_mem E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Zero α] [inst_1 : Neg α] [inst_2 : LinearOrder α] [inst_3 : AddCommGroup β]
[inst_4 : LinearOrder β] [IsOrderedAddMonoid β] (f : α ↪o β),
f 0 = 0 → (∀ (a : α), f (-a) = -f a) → ∀ {x : β} {I : Inclusion.Interval α}, x ∈ I.map ⇑f → |x| ∈ I.abs.map ⇑f
theorem Inclusion.Interval.abs_lb_nonneg E1 #
∀ {α : Type u_3} [inst : AddGroup α] [inst_1 : LinearOrder α] [AddLeftMono α] (I : Inclusion.Interval α), 0 ≤ I.abs.lb
def Inclusion.Interval.sub E1 #
{α : Type u_1} → [Sub α] → Inclusion.Interval α → Inclusion.Interval α → Inclusion.Interval α
Subtract one interval from another.
theorem Inclusion.Interval.sub_eq_add_neg E1 #
∀ {α : Type u_1} [inst : AddGroup α] (I J : Inclusion.Interval α), I.sub J = I.add J.neg
theorem Inclusion.Interval.sub_mem E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : AddGroup α] [inst_1 : AddCommGroup β] [inst_2 : Preorder β]
[IsOrderedAddMonoid β] (f : α →+ β) {x y : β} {I J : Inclusion.Interval α},
x ∈ I.map ⇑f → y ∈ J.map ⇑f → x - y ∈ (I.sub J).map ⇑f
def Inclusion.Interval.mulBound E1 #
{α : Type u_1} → [Mul α] → [Zero α] → [DecidableEq α] → Option α → Option α → Option α
Multiply two finite or infinite interval bounds.
theorem Inclusion.Interval.map_mulBound_le E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Mul α] [inst_1 : Zero α] [inst_2 : DecidableEq α] [inst_3 : LE β] (f : α → β)
(a b : Option α) {z : β},
(∀ (x y : α), a = some x → b = some y → f (x * y) ≤ z) →
(a = none ∧ b = some 0 ∨ a = some 0 ∧ b = none → f 0 ≤ z) → WithBot.map f (Inclusion.Interval.mulBound a b) ≤ ↑z
theorem Inclusion.Interval.le_map_mulBound E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Mul α] [inst_1 : Zero α] [inst_2 : DecidableEq α] [inst_3 : LE β] (f : α → β)
(a b : Option α) {z : β},
(∀ (x y : α), a = some x → b = some y → z ≤ f (x * y)) →
(a = none ∧ b = some 0 ∨ a = some 0 ∧ b = none → z ≤ f 0) → ↑z ≤ WithTop.map f (Inclusion.Interval.mulBound a b)
def Inclusion.Interval.mul E1 #
{α : Type u_1} →
[Mul α] → [Zero α] → [LinearOrder α] → Inclusion.Interval α → Inclusion.Interval α → Inclusion.Interval α
Multiply two intervals.
theorem Inclusion.Interval.mul_mem E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Mul α] [inst_1 : Zero α] [inst_2 : LinearOrder α] [inst_3 : Ring β]
[inst_4 : LinearOrder β] [IsStrictOrderedRing β] (f : α ↪o β),
f 0 = 0 →
(∀ (a b : α), f (a * b) = f a * f b) →
∀ {x y : β} {I J : Inclusion.Interval α}, x ∈ I.map ⇑f → y ∈ J.map ⇑f → x * y ∈ (I.mul J).map ⇑f
def Inclusion.Interval.pow E1 #
{α : Type u_1} →
[Pow α ℕ] → [Zero α] → [One α] → [Neg α] → [LinearOrder α] → Inclusion.Interval α → ℕ → Inclusion.Interval α
Raise an interval to a natural-number power.
theorem Inclusion.Interval.pow_mem E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Pow α ℕ] [inst_1 : Zero α] [inst_2 : One α] [inst_3 : Neg α]
[inst_4 : LinearOrder α] [inst_5 : Ring β] [inst_6 : LinearOrder β] [IsStrictOrderedRing β] (f : α ↪o β),
f 0 = 0 →
f 1 = 1 →
(∀ (a : α), f (-a) = -f a) →
(∀ (a : α) (n : ℕ), f (a ^ n) = f a ^ n) →
∀ (n : ℕ) {x : β} {I : Inclusion.Interval α}, x ∈ I.map ⇑f → x ^ n ∈ (I.pow n).map ⇑f
def Inclusion.Interval.orderRelFalse E1 #
{α : Type u_1} →
(r : α → α → Prop) → [DecidableRel r] → Inclusion.Interval α → Inclusion.Interval α → Inclusion.IntervalBool
Check if r x y is false is implied by x ∈ I and y ∈ J
theorem Inclusion.Interval.orderRelFalse_mem E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] {r : α → α → Prop} {s : β → β → Prop} [inst_1 : DecidableRel r]
[Trans (fun x1 x2 ↦ x1 ≤ x2) s s] [Trans s (fun x1 x2 ↦ x1 ≤ x2) s] (f : r ↪r s) {x y : β}
{I J : Inclusion.Interval α}, x ∈ I.map ⇑f → y ∈ J.map ⇑f → s x y ∈ Inclusion.Interval.orderRelFalse r I J
def Inclusion.Interval.orderRel E1 #
{α : Type u_1} →
(r : α → α → Prop) → [DecidableRel r] → Inclusion.Interval α → Inclusion.Interval α → Inclusion.IntervalBool
Check if r x y is implied (true or false) by x ∈ I and y ∈ J.
theorem Inclusion.Interval.orderRel_mem E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] {r : α → α → Prop} {s : β → β → Prop} [inst_1 : DecidableRel r]
[Trans (fun x1 x2 ↦ x1 ≤ x2) s s] [Trans s (fun x1 x2 ↦ x1 ≤ x2) s] (f : r ↪r s) {x y : β}
{I J : Inclusion.Interval α}, x ∈ I.map ⇑f → y ∈ J.map ⇑f → s x y ∈ Inclusion.Interval.orderRel r I J
def Inclusion.Interval.le E1 #
{α : Type u_1} → [inst : LE α] → [DecidableLE α] → Inclusion.Interval α → Inclusion.Interval α → Inclusion.IntervalBool
Check if x ≤ y is implied (true or false) by x ∈ I and y ∈ J
theorem Inclusion.Interval.le_mem E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : DecidableLE α] (f : α ↪o β)
{x y : β} {I J : Inclusion.Interval α}, x ∈ I.map ⇑f → y ∈ J.map ⇑f → x ≤ y ∈ I.le J
def Inclusion.Interval.lt E1 #
{α : Type u_1} → [inst : LT α] → [DecidableLT α] → Inclusion.Interval α → Inclusion.Interval α → Inclusion.IntervalBool
Check if x < y is implied (true or false) by x ∈ I and y ∈ J.
theorem Inclusion.Interval.lt_mem E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : DecidableLT α] (f : α ↪o β)
{x y : β} {I J : Inclusion.Interval α}, x ∈ I.map ⇑f → y ∈ J.map ⇑f → x < y ∈ I.lt J
def Inclusion.Interval.eq E1 #
{α : Type u_1} → [inst : LE α] → [DecidableLE α] → Inclusion.Interval α → Inclusion.Interval α → Inclusion.IntervalBool
Check if x = y is implied (true or false) by x ∈ I and y ∈ J.
theorem Inclusion.Interval.mem_Ici E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : DecidableLE α] (f : α ↪o β)
{a x : β} {I J : Inclusion.Interval α}, a ∈ I.map ⇑f → x ∈ J.map ⇑f → (x ∈ Set.Ici a) ∈ I.le J
theorem Inclusion.Interval.mem_Ioi E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : DecidableLT α] (f : α ↪o β)
{a x : β} {I J : Inclusion.Interval α}, a ∈ I.map ⇑f → x ∈ J.map ⇑f → (x ∈ Set.Ioi a) ∈ I.lt J
theorem Inclusion.Interval.mem_Iic E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : DecidableLE α] (f : α ↪o β)
{b x : β} {I J : Inclusion.Interval α}, x ∈ I.map ⇑f → b ∈ J.map ⇑f → (x ∈ Set.Iic b) ∈ I.le J
theorem Inclusion.Interval.mem_Iio E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : DecidableLT α] (f : α ↪o β)
{b x : β} {I J : Inclusion.Interval α}, x ∈ I.map ⇑f → b ∈ J.map ⇑f → (x ∈ Set.Iio b) ∈ I.lt J
theorem Inclusion.Interval.mem_Icc E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : DecidableLE α] (f : α ↪o β)
{a b x : β} {I J K : Inclusion.Interval α},
a ∈ I.map ⇑f → x ∈ J.map ⇑f → b ∈ K.map ⇑f → (x ∈ Set.Icc a b) ∈ (I.le J).and (J.le K)
theorem Inclusion.Interval.mem_Ico E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : DecidableLE α]
[inst_3 : DecidableLT α] (f : α ↪o β) {a b x : β} {I J K : Inclusion.Interval α},
a ∈ I.map ⇑f → x ∈ J.map ⇑f → b ∈ K.map ⇑f → (x ∈ Set.Ico a b) ∈ (I.le J).and (J.lt K)
theorem Inclusion.Interval.mem_Ioc E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : DecidableLE α]
[inst_3 : DecidableLT α] (f : α ↪o β) {a b x : β} {I J K : Inclusion.Interval α},
a ∈ I.map ⇑f → x ∈ J.map ⇑f → b ∈ K.map ⇑f → (x ∈ Set.Ioc a b) ∈ (I.lt J).and (J.le K)
theorem Inclusion.Interval.mem_Ioo E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : DecidableLT α] (f : α ↪o β)
{a b x : β} {I J K : Inclusion.Interval α},
a ∈ I.map ⇑f → x ∈ J.map ⇑f → b ∈ K.map ⇑f → (x ∈ Set.Ioo a b) ∈ (I.lt J).and (J.lt K)