        {"id":1596,"date":"2023-09-25T06:00:22","date_gmt":"2023-09-25T04:00:22","guid":{"rendered":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/?p=1596"},"modified":"2023-09-26T11:43:42","modified_gmt":"2023-09-26T09:43:42","slug":"25-sep-23","status":"publish","type":"post","link":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/25-sep-23\/","title":{"rendered":"En los ret\u00edculos, una distributiva del \u00ednfimo implica la otra"},"content":{"rendered":"\n<p>Demostrar con Lean4 que si \u03b1 es un ret\u00edculo tal que se<br \/>\n$$(\u2200 x, y, z) [x \u2293 (y \u2294 z) = (x \u2293 y) \u2294 (x \u2293 z))]$$<br \/>\nentonces<br \/>\n$$(a \u2294 b) \u2293 c = (a \u2293 c) \u2294 (b \u2293 c)$$<br \/>\npara todos los elementos de \u03b1.<\/p>\n<p>Para ello, completar la siguiente teor\u00eda de Lean4:<\/p>\n<pre lang=\"lean\">\nimport Mathlib.Order.Lattice\nvariable {\u03b1 : Type _} [Lattice \u03b1]\nvariable (a b c : \u03b1)\n\nexample\n  (h : \u2200 x y z : \u03b1, x \u2293 (y \u2294 z) = (x \u2293 y) \u2294 (x \u2293 z))\n  : (a \u2294 b) \u2293 c = (a \u2293 c) \u2294 (b \u2293 c) :=\nby sorry\n<\/pre>\n<p><!--more--><\/p>\n<p><b>Demostraci\u00f3n en lenguaje natural<\/b><\/p>\n<p>Se demuestra por la siguiente cadena de igualdades<br \/>\n\\begin{align}<br \/>\n   (a \u2294 b) \u2293 c &amp;= c \u2293 (a \u2294 b)          &amp;&amp;\\text{[por conmutatividad de \u2293]} &#92;&#92;<br \/>\n               &amp;= (c \u2293 a) \u2294 (c \u2293 b)    &amp;&amp;\\text{[por la hip\u00f3tesis]} &#92;&#92;<br \/>\n               &amp;= (a \u2293 c) \u2294 (c \u2293 b)    &amp;&amp;\\text{[por conmutatividad de \u2293]} &#92;&#92;<br \/>\n               &amp;= (a \u2293 c) \u2294 (b \u2293 c)    &amp;&amp;\\text{[por conmutatividad de \u2293]}<br \/>\n\\end{align}<\/p>\n<p><b>Demostraciones con Lean4<\/b><\/p>\n<pre lang=\"lean\">\nimport Mathlib.Order.Lattice\nvariable {\u03b1 : Type _} [Lattice \u03b1]\nvariable (a b c : \u03b1)\n\n-- 1\u00aa demostraci\u00f3n\nexample\n  (h : \u2200 x y z : \u03b1, x \u2293 (y \u2294 z) = (x \u2293 y) \u2294 (x \u2293 z))\n  : (a \u2294 b) \u2293 c = (a \u2293 c) \u2294 (b \u2293 c) :=\ncalc\n  (a \u2294 b) \u2293 c = c \u2293 (a \u2294 b)       := by rw [inf_comm]\n            _ = (c \u2293 a) \u2294 (c \u2293 b) := by rw [h]\n            _ = (a \u2293 c) \u2294 (c \u2293 b) := by rw [@inf_comm _ _ c a]\n            _ = (a \u2293 c) \u2294 (b \u2293 c) := by rw [@inf_comm _ _ c b]\n\n-- 2\u00aa demostraci\u00f3n\nexample\n  (h : \u2200 x y z : \u03b1, x \u2293 (y \u2294 z) = (x \u2293 y) \u2294 (x \u2293 z))\n  : (a \u2294 b) \u2293 c = (a \u2293 c) \u2294 (b \u2293 c) :=\nby simp [h, inf_comm]\n\n-- Lemas usados\n-- ============\n\n-- #check (inf_comm : a \u2293 b = b \u2293 a)\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\/Propiedad_distributiva_1.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. 22.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Demostrar con Lean4 que si \u03b1 es un ret\u00edculo tal que se $$(\u2200 x, y, z) [x \u2293 (y \u2294 z) = (x \u2293 y) \u2294 (x \u2293 z))]$$ entonces $$(a \u2294 b) \u2293 c = (a \u2293 c) \u2294 (b \u2293 c)$$ para todos los elementos de \u03b1. Para ello, completar la siguiente teor\u00eda de Lean4: import Mathlib.Order.Lattice variable {\u03b1 : Type _} [Lattice \u03b1] variable (a b c : \u03b1) example (h : \u2200 x y z : \u03b1, x \u2293 (y \u2294 z) = (x \u2293 y) \u2294 (x \u2293 z)) : (a \u2294 b) \u2293 c = (a \u2293 c) \u2294 (b \u2293 c) := 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,293],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1596"}],"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=1596"}],"version-history":[{"count":14,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1596\/revisions"}],"predecessor-version":[{"id":1683,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1596\/revisions\/1683"}],"wp:attachment":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/media?parent=1596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/categories?post=1596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/tags?post=1596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}