En ℝ, x ≤ |x|

Demostrar con Lean4 que en \(ℝ\), \(x ≤ |x|\).

Para ello, completar la siguiente teoría de Lean4:

Demostración en lenguaje natural

Se usarán los siguientes lemas
\begin{align}
&(∀ x ∈ ℝ)[0 ≤ x → |x| = x] \tag{L1} \\
&(∀ x, y ∈ ℝ)[x < y → x ≤ y] \tag{L2} \\
&(∀ x ∈ ℝ)[x ≤ 0 → x ≤ -x] \tag{L3} \\
&(∀ x ∈ ℝ)[x < 0 → |x| = -x] \tag{L4}
\end{align}

Se demostrará por casos según \(x ≥ 0\):

Primer caso: Supongamos que \(x ≥ 0\). Entonces,
\begin{align}
x &≤ x \\
&= |x| &&\text{[por L1]}
\end{align}

Segundo caso: Supongamos que \(x < 0\). Entonces, por el L2, se tiene
\[ x ≤ 0 \tag{1} \]
Por tanto,
\begin{align}
x &≤ -x &&\text{[por L3 y (1)]} \\
&= |x| &&\text{[por L4]}
\end{align}

Demostraciones con Lean4

Demostraciones interactivas

Se puede interactuar con las demostraciones anteriores en Lean 4 Web.

Referencias

Escribe un comentario