Si a, b, c, d, f ∈ ℝ tales que a ≤ b y c < d, entonces a + eᶜ + f < b + eᵈ + f
Demostrar que si a, b, c, d, f ∈ ℝ tales que
1 2 |
a ≤ b c < d |
entonces
1 |
a + eᶜ + f < b + eᵈ + f |
Para ello, completar la siguiente teoría de Lean:
1 2 3 4 5 6 7 8 9 |
import analysis.special_functions.log.basic open real variables a b c d f : ℝ example (hab : a ≤ b) (hcd : c < d) : a + exp c + f < b + exp d + f := sorry |
Soluciones con Lean
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 |
import analysis.special_functions.log.basic open real variables a b c d f : ℝ -- 1ª demostración -- =============== example (hab : a ≤ b) (hcd : c < d) : a + exp c + f < b + exp d + f := begin apply add_lt_add_of_lt_of_le, { apply add_lt_add_of_le_of_lt, { exact hab, }, { apply exp_lt_exp.mpr, exact hcd, }}, { apply le_refl, }, end -- 3ª demostración -- =============== example (hab : a ≤ b) (hcd : c < d) : a + exp c + f < b + exp d + f := begin apply add_lt_add_of_lt_of_le, { apply add_lt_add_of_le_of_lt hab (exp_lt_exp.mpr hcd), }, { refl, }, end -- 4ª demostración -- =============== example (hab : a ≤ b) (hcd : c < d) : a + exp c + f < b + exp d + f := add_lt_add_of_lt_of_le (add_lt_add_of_le_of_lt hab (exp_lt_exp.mpr hcd)) (le_refl f) -- 5ª demostración -- =============== example (hab : a ≤ b) (hcd : c < d) : a + exp c + f < b + exp d + f := by linarith [exp_lt_exp.mpr hcd] |
Se puede interactuar con la prueba anterior en esta sesión con Lean.
Referencias
- J. Avigad, K. Buzzard, R.Y. Lewis y P. Massot. Mathematics in Lean, p. 16.