        {"id":1852,"date":"2023-12-12T06:00:04","date_gmt":"2023-12-12T04:00:04","guid":{"rendered":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/?p=1852"},"modified":"2023-12-07T14:21:54","modified_gmt":"2023-12-07T12:21:54","slug":"12-dic-23","status":"publish","type":"post","link":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/12-dic-23\/","title":{"rendered":"x \u2264 y \u2227 x \u2260 y \u22a2 y \u2270 x"},"content":{"rendered":"\n<p>Demostrar con Lean4 que<br \/>\n&#92;[x \u2264 y \u2227 x \u2260 y \u22a2 y \u2270 x&#92;]<\/p>\n<p>Para ello, completar la siguiente teor\u00eda de Lean4:<\/p>\n<pre lang=\"lean\">\nimport Mathlib.Data.Real.Basic\n\nvariable {x y : \u211d}\n\nexample\n  (h : x \u2264 y \u2227 x \u2260 y)\n  : \u00ac y \u2264 x :=\nby sorry\n<\/pre>\n<p><!--more--><\/p>\n<p><b>Demostraci\u00f3n en lenguaje natural<\/b><\/p>\n<p>Supongamos que &#92;(y \u2264 x&#92;). Entonces, por la antisimetr\u00eda y la primera parte de la hip\u00f3tesis, se tiene que &#92;(x = y&#92;) que contradice la segunda parte de la hip\u00f3tesis.<\/p>\n<p><b>Demostraciones con Lean4<\/b><\/p>\n<pre lang=\"lean\">\nimport Mathlib.Data.Real.Basic\n\nvariable {x y : \u211d}\n\n-- 1\u00aa demostraci\u00f3n\n-- ===============\n\nexample\n  (h : x \u2264 y \u2227 x \u2260 y)\n  : \u00ac y \u2264 x :=\nby\n  intro h1\n  cases' h with h2 h3\n  -- h2 : x \u2264 y\n  -- h3 : x \u2260 y\n  have h4 : x = y := le_antisymm h2 h1\n  show False\n  exact h3 h4\n\n-- 2\u00aa demostraci\u00f3n\n-- ===============\n\nexample\n  (h : x \u2264 y \u2227 x \u2260 y)\n  : \u00ac y \u2264 x :=\nby\n  intro h1\n  have h4 : x = y := le_antisymm h.1 h1\n  show False\n  exact h.2 h4\n\n-- 3\u00aa demostraci\u00f3n\n-- ===============\n\nexample\n  (h : x \u2264 y \u2227 x \u2260 y)\n  : \u00ac y \u2264 x :=\nby\n  intro h1\n  show False\n  exact h.2 (le_antisymm h.1 h1)\n\n-- 4\u00aa demostraci\u00f3n\n-- ===============\n\nexample\n  (h : x \u2264 y \u2227 x \u2260 y)\n  : \u00ac y \u2264 x :=\nfun h1 \u21a6 h.2 (le_antisymm h.1 h1)\n\n-- 5\u00aa demostraci\u00f3n\n-- ===============\n\nexample\n  (h : x \u2264 y \u2227 x \u2260 y)\n  : \u00ac y \u2264 x :=\nby\n  intro h'\n  -- h' : y \u2264 x\n  -- \u22a2 False\n  apply h.right\n  -- \u22a2 x = y\n  exact le_antisymm h.left h'\n\n-- 6\u00aa demostraci\u00f3n\n-- ===============\n\nexample\n  (h : x \u2264 y \u2227 x \u2260 y)\n  : \u00ac y \u2264 x :=\nby\n  cases' h with h1 h2\n  -- h1 : x \u2264 y\n  -- h2 : x \u2260 y\n  contrapose! h2\n  -- h2 : y \u2264 x\n  -- \u22a2 x = y\n  exact le_antisymm h1 h2\n\n-- 7\u00aa demostraci\u00f3n\n-- ===============\n\nexample : x \u2264 y \u2227 x \u2260 y \u2192 \u00ac y \u2264 x :=\nby\n  rintro \u27e8h1, h2\u27e9 h'\n  -- h1 : x \u2264 y\n  -- h2 : x \u2260 y\n  -- h' : y \u2264 x\n  -- \u22a2 False\n  exact h2 (le_antisymm h1 h')\n\n-- 8\u00aa demostraci\u00f3n\n-- ===============\n\nexample : x \u2264 y \u2227 x \u2260 y \u2192 \u00ac y \u2264 x :=\nfun \u27e8h1, h2\u27e9 h' \u21a6 h2 (le_antisymm h1 h')\n\n-- Lemas usados\n-- ============\n\n-- #check (le_antisymm : x \u2264 y \u2192 y \u2264 x \u2192 x = y)\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\/Eliminacion_de_la_conjuncion.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. 35.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Demostrar con Lean4 que x \u2264 y \u2227 x \u2260 y \u22a2 y \u2270 x<\/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\/1852"}],"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=1852"}],"version-history":[{"count":3,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1852\/revisions"}],"predecessor-version":[{"id":1855,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1852\/revisions\/1855"}],"wp:attachment":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/media?parent=1852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/categories?post=1852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/tags?post=1852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}