        {"id":1269,"date":"2023-07-17T06:00:53","date_gmt":"2023-07-17T04:00:53","guid":{"rendered":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/?p=1269"},"modified":"2023-07-19T16:35:40","modified_gmt":"2023-07-19T14:35:40","slug":"17-jul-23","status":"publish","type":"post","link":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/17-jul-23\/","title":{"rendered":"Si bc = ef, entonces ((ab)c)d = ((ae)f)d"},"content":{"rendered":"<p>Demostrar con Lean4 que si bc = ef, entonces ((ab)c)d = ((ae)f)d.<\/p>\n<p>Para ello, completar la siguiente teor\u00eda de Lean4:<\/p>\n<pre lang=\"lean\">\r\nimport Mathlib.Data.Real.Basic\r\nimport Mathlib.Tactic\r\n\r\nexample\r\n  (a b c d e f : \u211d)\r\n  (h : b * c = e * f)\r\n  : ((a * b) * c) * d = ((a * e) * f) * d :=\r\nby sorry\r\n<\/pre>\n<p><!--more--><\/p>\n<p><b>Demostraci\u00f3n en lenguaje natural<\/b><\/p>\n<p><br \/>\nPor la siguiente cadena de igualdades<br \/>\n\\begin{align}<br \/>\n   ((ab)c)d<br \/>\n   &#038;= (a(bc))d    &#038;&#038;\\text{[por la asociativa]} \\\\<br \/>\n   &#038;= (a(ef))d    &#038;&#038;\\text{[por la hip\u00f3tesis]}  \\\\<br \/>\n   &#038;= ((ae)f)d    &#038;&#038;\\text{[por la asociativa]}<br \/>\n\\end{align}<\/p>\n<p><b>Demostraciones con Lean<\/b><\/p>\n<pre lang=\"lean\">\r\nimport Mathlib.Data.Real.Basic\r\nimport Mathlib.Tactic\r\n\r\n-- 1\u00aa demostraci\u00f3n\r\nexample\r\n  (a b c d e f : \u211d)\r\n  (h : b * c = e * f)\r\n  : ((a * b) * c) * d = ((a * e) * f) * d :=\r\ncalc\r\n  ((a * b) * c) * d\r\n    = (a * (b * c)) * d := by rw [mul_assoc a]\r\n  _ = (a * (e * f)) * d := by rw [h]\r\n  _ = ((a * e) * f) * d := by rw [\u2190mul_assoc a]\r\n\r\n-- 2\u00aa demostraci\u00f3n\r\nexample\r\n  (a b c d e f : \u211d)\r\n  (h : b * c = e * f)\r\n  : ((a * b) * c) * d = ((a * e) * f) * d :=\r\nby\r\n  rw [mul_assoc a]\r\n  rw [h]\r\n  rw [\u2190mul_assoc a]\r\n\r\n-- 3\u00aa demostraci\u00f3n\r\nexample\r\n  (a b c d e f : \u211d)\r\n  (h : b * c = e * f)\r\n  : ((a * b) * c) * d = ((a * e) * f) * d :=\r\nby\r\n  rw [mul_assoc a, h, \u2190mul_assoc a]\r\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\/Si_bc_eq_ef_entonces_((ab)c)d_eq_((ae)f)d.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. 6.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Demostrar con Lean4 que si bc = ef, entonces ((ab)c)d = ((ae)f)d. Para ello, completar la siguiente teor\u00eda de Lean4: import Mathlib.Data.Real.Basic import Mathlib.Tactic example (a b c d e f : \u211d) (h : b * c = e * f) : ((a * b) * c) * d = ((a * e) * f) * d := 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":[297],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1269"}],"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=1269"}],"version-history":[{"count":5,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1269\/revisions"}],"predecessor-version":[{"id":1376,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1269\/revisions\/1376"}],"wp:attachment":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/media?parent=1269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/categories?post=1269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/tags?post=1269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}