        {"id":1550,"date":"2023-09-12T06:00:29","date_gmt":"2023-09-12T04:00:29","guid":{"rendered":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/?p=1550"},"modified":"2023-09-25T16:17:42","modified_gmt":"2023-09-25T14:17:42","slug":"12-sep-23","status":"publish","type":"post","link":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/12-sep-23\/","title":{"rendered":"Si x, y, z \u2208 \u2115, entonces x divide a yxz"},"content":{"rendered":"\n<p>Demostrar con Lean4 que si &#92;(x, y, z \u2208 \u2115&#92;), entonces &#92;(x&#92;) divide a &#92;(yxz&#92;).<\/p>\n<p>Para ello, completar la siguiente teor\u00eda de Lean4:<\/p>\n<pre lang=\"lean\">\nimport Mathlib.Data.Real.Basic\nvariable (x y z : \u2115)\n\nexample : x \u2223 y * x * z :=\nby sorry\n<\/pre>\n<p><!--more--><\/p>\n<p><b>Demostraci\u00f3n en lenguaje natural<\/b><\/p>\n<p>Por la transitividad de la divisibilidad aplicada a las relaciones<br \/>\n\\begin{align}<br \/>\n    x &amp;\\mid yx &#92;&#92;<br \/>\n   yx &amp;\\mid yxz<br \/>\n\\end{align}<\/p>\n<p><b>Demostraciones con Lean4<\/b><\/p>\n<pre lang=\"lean\">\nimport Mathlib.Data.Real.Basic\nvariable (x y z : \u2115)\n\n-- 1\u00aa demostraci\u00f3n\n-- ===============\n\nexample : x \u2223 y * x * z :=\nby\n  have h1 : x \u2223 y * x :=\n    dvd_mul_left x y\n  have h2 : (y * x) \u2223 (y * x * z) :=\n    dvd_mul_right (y * x) z\n  show x \u2223 y * x * z\n  exact dvd_trans h1 h2\n\n-- 2\u00aa demostraci\u00f3n\n-- ===============\n\nexample : x \u2223 y * x * z :=\ndvd_trans (dvd_mul_left x y) (dvd_mul_right (y * x) z)\n\n-- 3\u00aa demostraci\u00f3n\n-- ===============\n\nexample : x \u2223 y * x * z :=\nby\n  apply dvd_mul_of_dvd_left\n  apply dvd_mul_left\n\n\n-- Los lemas utilizados son:\n#check (dvd_mul_left x y : x \u2223 y * x)\n#check (dvd_mul_right x y : x \u2223 x * y)\n#check (dvd_trans : x \u2223 y \u2192 y \u2223 z \u2192 x \u2223 z)\n<\/pre>\n<p><b>Demostraciones interactivas<\/b><\/p>\n<p>Se puede interactuar con las demostraciones anteriores en <a href=\"https:\/\/lean.math.hhu.de\/#url=https:\/\/raw.githubusercontent.com\/jaalonso\/Calculemus2\/main\/src\/Divisibilidad_de_producto.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. 19.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Demostrar con Lean4 que si &#92;(x, y, z \u2208 \u2115&#92;), entonces &#92;(x&#92;) divide a &#92;(yxz&#92;). Para ello, completar la siguiente teor\u00eda de Lean4: import Mathlib.Data.Real.Basic variable (x y z : \u2115) example : x \u2223 y * x * z := 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":[291,297,296],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1550"}],"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=1550"}],"version-history":[{"count":6,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1550\/revisions"}],"predecessor-version":[{"id":1681,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1550\/revisions\/1681"}],"wp:attachment":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/media?parent=1550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/categories?post=1550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/tags?post=1550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}