        {"id":1793,"date":"2023-11-22T06:00:51","date_gmt":"2023-11-22T04:00:51","guid":{"rendered":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/?p=1793"},"modified":"2023-11-08T17:27:47","modified_gmt":"2023-11-08T15:27:47","slug":"22-nov-23","status":"publish","type":"post","link":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/22-nov-23\/","title":{"rendered":"Si a, b \u2208 \u211d tales que a \u2264 b y f(b) < f(a), entonces f no es mon\u00f3tona"},"content":{"rendered":"\n<p>Demostrar con Lean4 que si &#92;(a, b \u2208 \u211d&#92;) tales que &#92;(a \u2264 b&#92;) y &#92;(f(b) &lt; f(a)&#92;), entonces &#92;(f&#92;) no es mon\u00f3tona<\/p>\n<p>Para ello, completar la siguiente teor\u00eda de Lean4:<\/p>\n<pre lang=\"lean\">\nimport Mathlib.Data.Real.Basic\nvariable (f : \u211d \u2192 \u211d)\nvariable (a b : \u211d)\n\nexample\n  (h1 : a \u2264 b)\n  (h2 : f b < f a)\n  : \u00ac Monotone f :=\nby sorry\n<\/pre>\n<p><!--more--><\/p>\n<p><b>Demostraci\u00f3n en lenguaje natural<\/b><\/p>\n<p>Usaremos el lema<br \/>\n&#92;[ a \u2265 b \u2192 a \u226e b &#92;tag{L1} &#92;]<\/p>\n<p>Lo demostraremos por reducci\u00f3n al absurdo. Para ello, supongamos que &#92;(f&#92;) es mon\u00f3tona. Entonces, como &#92;(a \u2264 b&#92;), se tiene &#92;(f(a) \u2264 f(b)&#92;) y, por el lema L1, &#92;(f(b) \u226e f(a)&#92;), en contradicci\u00f3n con la hip\u00f3tesis.<\/p>\n<p><b>Demostraciones con Lean4<\/b><\/p>\n<pre lang=\"lean\">\nimport Mathlib.Data.Real.Basic\nvariable (f : \u211d \u2192 \u211d)\nvariable (a b : \u211d)\n\n-- 1\u00aa demostraci\u00f3n\n-- ===============\n\nexample\n  (h1 : a \u2264 b)\n  (h2 : f b < f a)\n  : \u00ac Monotone f :=\nby\n  intro h3\n  -- h3 : Monotone f\n  -- \u22a2 False\n  have h4 : f a \u2264 f b := h3 h1\n  have h5 : \u00ac(f b < f a) := not_lt_of_ge h4\n  exact h5 h2\n\n-- 2\u00aa demostraci\u00f3n\n-- ===============\n\nexample\n  (h1 : a \u2264 b)\n  (h2 : f b < f a)\n  : \u00ac Monotone f :=\nby\n  intro h3\n  -- h3 : Monotone f\n  -- \u22a2 False\n  have h5 : \u00ac(f b < f a) := not_lt_of_ge (h3 h1)\n  exact h5 h2\n\n-- 3\u00aa demostraci\u00f3n\n-- ===============\n\nexample\n  (h1 : a \u2264 b)\n  (h2 : f b < f a)\n  : \u00ac Monotone f :=\nby\n  intro h3\n  -- h3 : Monotone f\n  -- \u22a2 False\n  exact (not_lt_of_ge (h3 h1)) h2\n\n-- 4\u00aa demostraci\u00f3n\n-- ===============\n\nexample\n  (h1 : a \u2264 b)\n  (h2 : f b < f a)\n  : \u00ac Monotone f :=\nfun h3 \u21a6 (not_lt_of_ge (h3 h1)) h2\n\n-- Lemas usados\n-- ============\n\n-- #check (not_lt_of_ge : a \u2265 b \u2192 \u00aca < b)\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\/CS_de_no_monotona.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. 32.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Demostrar con Lean4 que si &#92;(a, b \u2208 \u211d&#92;) tales que &#92;(a \u2264 b&#92;) y &#92;(f(b) &lt; f(a)&#92;), entonces &#92;(f&#92;) no es mon\u00f3tona Para ello, completar la siguiente teor\u00eda de Lean4: import Mathlib.Data.Real.Basic variable (f : \u211d \u2192 \u211d) variable (a b : \u211d) example (h1 : a \u2264 b) (h2 : f b < f a) : \u00ac Monotone f := by sorry\n<\/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\/1793"}],"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=1793"}],"version-history":[{"count":1,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1793\/revisions"}],"predecessor-version":[{"id":1794,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/posts\/1793\/revisions\/1794"}],"wp:attachment":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/media?parent=1793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/categories?post=1793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/calculemus\/wp-json\/wp\/v2\/tags?post=1793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}