        {"id":1765,"date":"2023-11-09T06:00:35","date_gmt":"2023-11-09T04:00:35","guid":{"rendered":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/?p=1765"},"modified":"2023-10-30T14:18:27","modified_gmt":"2023-10-30T12:18:27","slug":"09-nov-23","status":"publish","type":"post","link":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/09-nov-23\/","title":{"rendered":"Si c \u2260 0, entonces la funci\u00f3n (x \u21a6 cx) es suprayectiva"},"content":{"rendered":"<p>Demostrar con Lean4 que si &#92;(c \u2260 0&#92;), entonces la funci\u00f3n &#92;(x \u21a6 cx&#92;) es suprayectiva.<\/p>\n<p>Para ello, completar la siguiente teor\u00eda de Lean4:<\/p>\n<pre lang=\"lean\">\nimport Mathlib.Data.Real.Basic\nvariable {c : \u211d}\nopen Function\n\nexample\n  (h : c \u2260 0)\n  : Surjective (fun x \u21a6 c * x) :=\nby sorry\n<\/pre>\n<p><!--more--><\/p>\n<p><b>Demostraci\u00f3n en lenguaje natural<\/b><\/p>\n<p><br \/>\nHay que demostrar que<br \/>\n&#92;[ (\u2200 x \u2208 \u211d)(\u2203 y \u2208 \u211d)[cy = x] &#92;]<br \/>\nSea &#92;(x \u2208 \u211d&#92;). Entonces, &#92;(y = x\/c \u2208 R&#92;) y<br \/>\n&#92;begin{align}<br \/>\n   cy &amp;= c(x\/c) &#92;&#92;<br \/>\n      &amp;= y<br \/>\n&#92;end{align}<\/p>\n<p><b>Demostraciones con Lean4<\/b><\/p>\n<pre lang=\"lean\">\nimport Mathlib.Data.Real.Basic\nvariable {c : \u211d}\nopen Function\n\n-- 1\u00aa demostraci\u00f3n\nexample\n  (h : c \u2260 0)\n  : Surjective (fun x \u21a6 c * x) :=\nby\n  intro x\n  -- x : \u211d\n  -- \u22a2 \u2203 a, (fun x => c * x) a = x\n  use (x \/ c)\n  -- \u22a2 (fun x => c * x) (x \/ c) = x\n  dsimp\n  -- \u22a2 c * (x \/ c) = x\n  rw [mul_comm]\n  -- \u22a2 (x \/ c) * c = x\n  exact div_mul_cancel x h\n\n-- 2\u00aa demostraci\u00f3n\nexample\n  (h : c \u2260 0)\n  : Surjective (fun x \u21a6 c * x) :=\nby\n  intro x\n  -- x : \u211d\n  -- \u22a2 \u2203 a, (fun x => c * x) a = x\n  use (x \/ c)\n  -- \u22a2 (fun x => c * x) (x \/ c) = x\n  exact mul_div_cancel' x h\n\n-- 3\u00aa demostraci\u00f3n\nexample\n  (h : c \u2260 0)\n  : Surjective (fun x \u21a6 c * x) :=\nfun x \u21a6 \u27e8x \/ c, mul_div_cancel' x h\u27e9\n\n-- 4\u00aa demostraci\u00f3n\nexample\n  (h : c \u2260 0)\n  : Surjective (fun x \u21a6 c * x) :=\nmul_left_surjective\u2080 h\n\n-- Lemas usados\n-- ============\n\n-- variable (a b : \u211d)\n-- #check (div_mul_cancel a : b \u2260 0 \u2192 (a \/ b) * b = a)\n-- #check (mul_comm a b : a * b = b * a)\n-- #check (mul_div_cancel' a : b \u2260 0 \u2192 b * (a \/ b) = a)\n-- #check (mul_left_surjective\u2080 : c \u2260 0 \u2192 Surjective (fun x \u21a6 c * x))\n<\/pre>\n<p><b>Demostraciones interactivas<\/b><\/p>\n<p>Se puede interactuar con las demostraciones anteriores en <a href=\"https:\/\/live.lean-lang.org\/#url=https:\/\/raw.githubusercontent.com\/jaalonso\/Calculemus2\/main\/src\/Producto_por_no_nula_es_suprayectiva.lean\" rel=\"noopener noreferrer\" target=\"_blank\">Lean 4 Web<\/a>.<\/p>\n<p><b>Referencias<\/b><\/p>\n<ul>\n<li> J. Avigad y P. Massot. <a href=\"https:\/\/bit.ly\/3U4UjBk\">Mathematics in Lean<\/a>, p. 31.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Demostrar con Lean4 que si &#92;(c \u2260 0&#92;), entonces la funci\u00f3n &#92;(x \u21a6 cx&#92;) es suprayectiva. Para ello, completar la siguiente teor\u00eda de Lean4: import Mathlib.Data.Real.Basic variable {c : \u211d} open Function example (h : c \u2260 0) : Surjective (fun x \u21a6 c * x) := by sorry<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1765"}],"collection":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/comments?post=1765"}],"version-history":[{"count":1,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1765\/revisions"}],"predecessor-version":[{"id":1766,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1765\/revisions\/1766"}],"wp:attachment":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/media?parent=1765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/categories?post=1765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/tags?post=1765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}