Si s ⊆ t, entonces f[s] ⊆ f[t]

Demostrar con Lean4 que si \(s ⊆ t\), entonces \(f[s] ⊆ f[t]\).

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

1. Demostración en lenguaje natural

Sea \(y ∈ f[s]\). Entonces, existe un x tal que
\begin{align}
&x ∈ s \tag{1} \\
&f(x) = y \tag{2}
\end{align}
Por (1) y la hipótesis,
\[ x ∈ t \tag{3} \]
Por (3),
\[ f(x) ∈ f[t] \tag{4} \]
y, por (2) y (4),
\[ y ∈ f[t] \]

2. Demostraciones con Lean4

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

3. Demostraciones con Isabelle/HOL

Escribe un comentario