        {"id":1135,"date":"2022-10-18T18:31:21","date_gmt":"2022-10-18T16:31:21","guid":{"rendered":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/?p=1135"},"modified":"2022-10-18T18:31:21","modified_gmt":"2022-10-18T16:31:21","slug":"si-r-es-un-reticulo-y-x-y-z-%e2%88%88-r-entonces-x-%e2%8a%93-y-%e2%8a%93-z-x-%e2%8a%93-y-%e2%8a%93-z","status":"publish","type":"post","link":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/si-r-es-un-reticulo-y-x-y-z-%e2%88%88-r-entonces-x-%e2%8a%93-y-%e2%8a%93-z-x-%e2%8a%93-y-%e2%8a%93-z\/","title":{"rendered":"Si R es un ret\u00edculo y x, y, z \u2208 R, entonces (x \u2293 y) \u2293 z = x \u2293 (y \u2293 z)"},"content":{"rendered":"<p>Demostrar que si R es un ret\u00edculo y x, y, z \u2208 R, entonces<\/p>\n<pre lang=\"text\">\n(x \u2293 y) \u2293 z = x \u2293 (y \u2293 z)\n<\/pre>\n<p>Para ello, completar la siguiente teor\u00eda de Lean:<\/p>\n<pre lang=\"lean\">\nimport order.lattice\n\nvariables {R : Type*} [lattice R]\nvariables x y z : R\n\nexample : (x \u2293 y) \u2293 z = x \u2293 (y \u2293 z) :=\nsorry\n<\/pre>\n<p><!--more--><\/p>\n<p><b>Soluciones con Lean<\/b><\/p>\n<pre lang=\"lean\">\nimport order.lattice\n\nvariables {R : Type*} [lattice R]\nvariables x y z : R\n\n-- 1\u00aa demostraci\u00f3n\n-- ===============\n\nexample : (x \u2293 y) \u2293 z = x \u2293 (y \u2293 z) :=\nbegin\n  have h1 : (x \u2293 y) \u2293 z \u2264 x \u2293 (y \u2293 z),\n    { have h1a : (x \u2293 y) \u2293 z \u2264 x, calc\n        (x \u2293 y) \u2293 z \u2264 x \u2293 y : inf_le_left\n                ... \u2264 x     : inf_le_left,\n      have h1b : (x \u2293 y) \u2293 z \u2264 y \u2293 z,\n        { have h1b1 : (x \u2293 y) \u2293 z \u2264 y, calc\n            (x \u2293 y) \u2293 z \u2264 x \u2293 y : inf_le_left\n                    ... \u2264 y     : inf_le_right,\n          have h1b2 : (x \u2293 y) \u2293 z \u2264 z :=\n            inf_le_right,\n          show (x \u2293 y) \u2293 z \u2264 y \u2293 z,\n            by exact le_inf h1b1 h1b2, },\n      show (x \u2293 y) \u2293 z \u2264 x \u2293 (y \u2293 z),\n        by exact le_inf h1a h1b, },\n  have h2 : x \u2293 (y \u2293 z) \u2264 (x \u2293 y) \u2293 z,\n    { have h2a : x \u2293 (y \u2293 z) \u2264 x \u2293 y,\n        { have h2a1 : x \u2293 (y \u2293 z) \u2264 x,\n            by exact inf_le_left,\n          have h2a2 : x \u2293 (y \u2293 z) \u2264 y, calc\n            x \u2293 (y \u2293 z) \u2264 y \u2293 z : inf_le_right\n                    ... \u2264 y     : inf_le_left,\n          show x \u2293 (y \u2293 z) \u2264 x \u2293 y,\n            by exact le_inf h2a1 h2a2, },\n      have h2b : x \u2293 (y \u2293 z) \u2264 z, calc\n        x \u2293 (y \u2293 z) \u2264 y \u2293 z : inf_le_right\n                ... \u2264 z     : inf_le_right,\n      show x \u2293 (y \u2293 z) \u2264 (x \u2293 y) \u2293 z,\n        by exact le_inf h2a h2b, },\n  show (x \u2293 y) \u2293 z = x \u2293 (y \u2293 z),\n    by exact le_antisymm h1 h2,\nend\n\n-- 2\u00aa demostraci\u00f3n\n-- ===============\n\nexample : (x \u2293 y) \u2293 z = x \u2293 (y \u2293 z) :=\nbegin\n  apply le_antisymm,\n  { apply le_inf,\n    { apply inf_le_of_left_le inf_le_left, },\n    { apply le_inf (inf_le_of_left_le inf_le_right) inf_le_right}},\n  {apply le_inf,\n    { apply le_inf inf_le_left (inf_le_of_right_le inf_le_left), },\n    { apply inf_le_of_right_le inf_le_right, },},\nend\n\n-- 3\u00aa demostraci\u00f3n\n-- ===============\n\nexample : (x \u2293 y) \u2293 z = x \u2293 (y \u2293 z) :=\nle_antisymm\n  (le_inf\n    (inf_le_of_left_le inf_le_left)\n    (le_inf (inf_le_of_left_le inf_le_right) inf_le_right))\n  (le_inf\n    (le_inf inf_le_left (inf_le_of_right_le inf_le_left))\n    (inf_le_of_right_le inf_le_right))\n\n-- 4\u00aa demostraci\u00f3n\n-- ===============\n\nexample : (x \u2293 y) \u2293 z = x \u2293 (y \u2293 z) :=\n-- by library_search\ninf_assoc\n\n-- 5\u00aa demostraci\u00f3n\n-- ===============\n\nexample : (x \u2293 y) \u2293 z = x \u2293 (y \u2293 z) :=\n-- by hint\nby finish\n<\/pre>\n<p>Se puede interactuar con la prueba anterior en <a href=\"https:\/\/leanprover-community.github.io\/lean-web-editor\/#url=https:\/\/raw.githubusercontent.com\/jaalonso\/Calculemus\/main\/src\/Asociatividad_del_infimo.lean\" rel=\"noopener noreferrer\" target=\"_blank\">esta sesi\u00f3n con Lean<\/a>.<\/p>\n<p><b>Referencias<\/b><\/p>\n<ul>\n<li>J. Avigad, K. Buzzard, R.Y. Lewis 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 que si R es un ret\u00edculo y x, y, z \u2208 R, entonces (x \u2293 y) \u2293 z = x \u2293 (y \u2293 z) Para ello, completar la siguiente teor\u00eda de Lean: import order.lattice variables {R : Type*} [lattice R] variables x y z : R example : (x \u2293 y) \u2293 z = x \u2293 (y \u2293 z) := 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":[293],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1135"}],"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=1135"}],"version-history":[{"count":1,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1135\/revisions"}],"predecessor-version":[{"id":1136,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1135\/revisions\/1136"}],"wp:attachment":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/media?parent=1135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/categories?post=1135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/tags?post=1135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}