Si c ≥ 0 y f está acotada superiormente, entonces c·f también lo está
Demostrar con Lean4 que si \(c ≥ 0\) y \(f\) está acotada superiormente, entonces \(c·f\) también lo está.
Para ello, completar la siguiente teoría de Lean4:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import src.Cota_superior_de_producto_por_escalar variable {f : ℝ → ℝ} variable {c : ℝ} -- (acotadaSup f) afirma que f tiene cota superior. def acotadaSup (f : ℝ → ℝ) := ∃ a, CotaSuperior f a example (hf : acotadaSup f) (hc : c ≥ 0) : acotadaSup (fun x ↦ c * f x) := by sorry |
Demostración en lenguaje natural
Usaremos el siguiente lema:
\begin{align}
«\text{Si } a \text{ es cota superior de } f \text{ y } c ≥ 0\text{, entonces } c·a \text{ es cota superior de } c·f»
\end{align}
Puesto que \(f\) está acotada superiormente, tiene una cota superior. Sea \(a\) una de dichas cotas. Entonces, por el lema, \(c·a\) es una cota superior de \(c·f\). Por consiguiente, \(c·f\) está acotada superiormente.
Demostraciones con Lean4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
import src.Cota_superior_de_producto_por_escalar variable {f : ℝ → ℝ} variable {c : ℝ} -- (acotadaSup f) afirma que f tiene cota superior. def acotadaSup (f : ℝ → ℝ) := ∃ a, CotaSuperior f a -- 1ª demostración example (hf : acotadaSup f) (hc : c ≥ 0) : acotadaSup (fun x ↦ c * f x) := by cases' hf with a ha -- a : ℝ -- ha : CotaSuperior f a have h1 : CotaSuperior (fun x ↦ c * f x) (c * a) := CotaSuperior_mul ha hc have h2 : ∃ z, ∀ x, (fun x ↦ c * f x) x ≤ z := Exists.intro (c * a) h1 show acotadaSup (fun x ↦ c * f x) exact h2 -- 2ª demostración example (hf : acotadaSup f) (hc : c ≥ 0) : acotadaSup (fun x ↦ c * f x) := by cases' hf with a ha -- a : ℝ -- ha : CotaSuperior f a use c * a -- ⊢ CotaSuperior (fun x => c * f x) (c * a) apply CotaSuperior_mul ha hc -- 3ª demostración example (hf : acotadaSup f) (hc : c ≥ 0) : acotadaSup (fun x ↦ c * f x) := by rcases hf with ⟨a, ha⟩ -- a : ℝ -- ha : CotaSuperior f a exact ⟨c * a, CotaSuperior_mul ha hc⟩ -- 4ª demostración example (hc : c ≥ 0) : acotadaSup f → acotadaSup (fun x ↦ c * f x) := by rintro ⟨a, ha⟩ -- a : ℝ -- ha : CotaSuperior f a exact ⟨c * a, CotaSuperior_mul ha hc⟩ -- 5ª demostración example (hc : c ≥ 0) : acotadaSup f → acotadaSup (fun x ↦ c * f x) := fun ⟨a, ha⟩ ↦ ⟨c * a, CotaSuperior_mul ha hc⟩ -- Lemas usados -- ============ -- #check (CotaSuperior_mul : CotaSuperior f a → c ≥ 0 → CotaSuperior (fun x ↦ c * f x) (c * a)) |
Referencias
- J. Avigad y P. Massot. Mathematics in Lean, p. 29.