{"id":7475,"date":"2020-10-26T11:51:53","date_gmt":"2020-10-26T10:51:53","guid":{"rendered":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/?p=7475"},"modified":"2020-12-21T11:52:37","modified_gmt":"2020-12-21T10:52:37","slug":"formatus-complementario-de-un-conjunto-en-lean-pruebas-de-a-b-%e2%8a%86-b%e1%b6%9c","status":"publish","type":"post","link":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/formatus-complementario-de-un-conjunto-en-lean-pruebas-de-a-b-%e2%8a%86-b%e1%b6%9c\/","title":{"rendered":"ForMatUS: Complementario de un conjunto en Lean (Pruebas de A \\ B \u2286 B\u1d9c)"},"content":{"rendered":"<p>He a\u00f1adido a la lista <a href=\"https:\/\/bit.ly\/2FcUrwQ\">L\u00f3gica con Lean<\/a> el <a href=\"https:\/\/youtu.be\/VIVvmAtq9nA\">v\u00eddeo<\/a> en el que se comentan 8 pruebas en Lean de la propiedad<\/p>\n<pre lang=\"lean\">A \\ B \u2286 B\u1d9c\n<\/pre>\n<p>usando los estilos declarativos, aplicativos, funcional y autom\u00e1tico.<\/p>\n<p>A continuaci\u00f3n, se muestra el v\u00eddeo<\/p>\n<p><center><\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/VIVvmAtq9nA\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<p><\/center>y el <a href=\"https:\/\/github.com\/jaalonso\/Logica_con_Lean\/blob\/master\/src\/3_Conjuntos\/Pruebas_de_diff(A,B)%E2%8A%86B%E1%B6%9C.lean\">c\u00f3digo<\/a> de la teor\u00eda utilizada<\/p>\n<pre lang=\"lean\">-- ----------------------------------------------------\n-- Ej. 1. Demostrar\n--    A \\ B \u2286 B\u1d9c\n-- ----------------------------------------------------\n\nimport data.set\n\nvariable  {U : Type}\nvariables A B : set U\nvariable  x : U\n\nopen set\n\n-- #reduce x \u2208 B\u1d9c\n-- #reduce B\u1d9c\n\n-- 1\u00aa demostraci\u00f3n\nexample : A \\ B \u2286 B\u1d9c :=\nbegin\n  intros x h,\n  simp at *,\n  exact h.right,\nend\n\n-- 2\u00aa demostraci\u00f3n\nexample : A \\ B \u2286 B\u1d9c :=\nbegin\n  intros x h,\n  exact h.right,\nend\n\n-- 3\u00aa demostraci\u00f3n\nexample : A \\ B \u2286 B\u1d9c :=\nassume x,\nassume h1 : x \u2208 A \\ B,\nhave h2 : x \u2209 B, from and.right h1,\nshow x \u2208 B\u1d9c,     from h2\n\n-- 4\u00aa demostraci\u00f3n\nexample : A \\ B \u2286 B\u1d9c :=\nassume x,\nassume h1 : x \u2208 A \\ B,\nshow x \u2208 B\u1d9c, from and.right h1\n\n-- 5\u00aa demostraci\u00f3n\nexample : A \\ B \u2286 B\u1d9c :=\nassume x,\n\u03bb h1, and.right h1\n\n-- 6\u00aa demostraci\u00f3n\nexample : A \\ B \u2286 B\u1d9c :=\nassume x,\nand.right\n\n-- 7\u00aa demostraci\u00f3n\nexample : A \\ B \u2286 B\u1d9c :=\n\u03bb _, and.right\n\n-- 8\u00aa demostraci\u00f3n\nexample : A \\ B \u2286 B\u1d9c :=\n\u03bb _, not_mem_of_mem_diff\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>He a\u00f1adido a la lista L\u00f3gica con Lean el v\u00eddeo en el que se comentan 8 pruebas en Lean de la propiedad A \\ B \u2286 B\u1d9c usando los estilos declarativos, aplicativos, funcional y autom\u00e1tico. A continuaci\u00f3n, se muestra el v\u00eddeo y el c\u00f3digo de la teor\u00eda utilizada &#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212; Ej. 1. Demostrar &#8211;&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","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,"footnotes":"","_jetpack_memberships_contains_paid_content":false},"categories":[335],"tags":[166,336],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/posts\/7475"}],"collection":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/comments?post=7475"}],"version-history":[{"count":1,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/posts\/7475\/revisions"}],"predecessor-version":[{"id":7476,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/posts\/7475\/revisions\/7476"}],"wp:attachment":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/media?parent=7475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/categories?post=7475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/tags?post=7475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}