Imagen de la imagen inversa
Demostrar que
1 |
f[f¹[u]] ⊆ u |
Para ello, completar la siguiente teoría de Lean:
1 2 3 4 5 6 7 8 9 |
import data.set.basic open set variables {α : Type*} {β : Type*} variable f : α → β variable u : set β example : f '' (f⁻¹' u) ⊆ u := sorry |
[expand title=»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 53 54 55 56 57 58 59 60 |
import data.set.basic open set variables {α : Type*} {β : Type*} variable f : α → β variable u : set β -- 1ª demostración -- =============== example : f '' (f⁻¹' u) ⊆ u := begin intros y h, cases h with x h2, cases h2 with hx fxy, rw ← fxy, exact hx, end -- 2ª demostración -- =============== example : f '' (f⁻¹' u) ⊆ u := begin intros y h, rcases h with ⟨x, hx, fxy⟩, rw ← fxy, exact hx, end -- 3ª demostración -- =============== example : f '' (f⁻¹' u) ⊆ u := begin rintros y ⟨x, hx, fxy⟩, rw ← fxy, exact hx, end -- 4ª demostración -- =============== example : f '' (f⁻¹' u) ⊆ u := begin rintros y ⟨x, hx, rfl⟩, exact hx, end -- 5ª demostración -- =============== example : f '' (f⁻¹' u) ⊆ u := image_preimage_subset f u -- 6ª demostración -- =============== example : f '' (f⁻¹' u) ⊆ u := by simp |
Se puede interactuar con la prueba anterior en esta sesión con Lean,
[/expand]
[expand title=»Soluciones con Isabelle/HOL»]
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 |
theory Imagen_de_la_imagen_inversa imports Main begin section ‹1ª demostración› lemma "f ` (f -` u) ⊆ u" proof (rule subsetI) fix y assume "y ∈ f ` (f -` u)" then show "y ∈ u" proof (rule imageE) fix x assume "y = f x" assume "x ∈ f -` u" then have "f x ∈ u" by (rule vimageD) with ‹y = f x› show "y ∈ u" by (rule ssubst) qed qed section ‹2ª demostración› lemma "f ` (f -` u) ⊆ u" proof fix y assume "y ∈ f ` (f -` u)" then show "y ∈ u" proof fix x assume "y = f x" assume "x ∈ f -` u" then have "f x ∈ u" by simp with ‹y = f x› show "y ∈ u" by simp qed qed section ‹3ª demostración› lemma "f ` (f -` u) ⊆ u" by (simp only: image_vimage_subset) section ‹4ª demostración› lemma "f ` (f -` u) ⊆ u" by auto end |
[/expand]
[expand title=»Nuevas soluciones»]
- En los comentarios se pueden escribir nuevas soluciones.
- El código se debe escribir entre una línea con <pre lang="isar"> y otra con </pre>
[/expand]