{"id":7372,"date":"2020-09-15T12:12:39","date_gmt":"2020-09-15T10:12:39","guid":{"rendered":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/?p=7372"},"modified":"2020-09-15T12:12:39","modified_gmt":"2020-09-15T10:12:39","slug":"formatus-pruebas-en-lean-de-p-p-%e2%86%92-q-p-%e2%86%92-q-%e2%86%92-r-%e2%8a%a2-r","status":"publish","type":"post","link":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/formatus-pruebas-en-lean-de-p-p-%e2%86%92-q-p-%e2%86%92-q-%e2%86%92-r-%e2%8a%a2-r\/","title":{"rendered":"ForMatUS: Pruebas en Lean de P, P \u2192 Q, P \u2192 (Q \u2192 R) \u22a2 R"},"content":{"rendered":"<p>He a\u00f1adido a la lista <a href=\"https:\/\/bit.ly\/2FcUrwQ\">L\u00f3gica con Lean<\/a> el v\u00eddeo <a href=\"https:\/\/youtu.be\/_mWTkhjydk0\">Pruebas en Lean de P, P \u2192 Q, P \u2192 (Q \u2192 R) \u22a2 R<\/a> en el que se comentan 5 pruebas en Lean de<\/p>\n<blockquote><p>\n  P, P \u2192 Q, P \u2192 (Q \u2192 R) \u22a2 R\n<\/p><\/blockquote>\n<p>A continuaci\u00f3n, se muestra el v\u00eddeo<\/p>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/_mWTkhjydk0\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>y el c\u00f3digo de la teor\u00eda utilizada<\/p>\n<pre lang=\"lean\">\n-- Pruebas de P, P \u2192 Q, P \u2192 (Q \u2192 R) \u22a2 R\n-- ====================================\n\n-- Ej 1. Demostrar que\n--    P, P \u2192 Q, P \u2192 (Q \u2192 R) \u22a2 R\n\nimport tactic\n\nvariables (P Q R : Prop)\n\n-- 1\u00aa demostraci\u00f3n\nexample\n  (h1 : P)\n  (h2 : P \u2192 Q)\n  (h3 : P \u2192 (Q \u2192 R))\n  : R :=\nhave h4 : Q,\n  from h2 h1,\nhave h5 : Q \u2192 R,\n  from h3 h1,\nshow R,\n  from h5 h4    \n\n-- 2\u00aa demostraci\u00f3n\nexample\n  (h1 : P)\n  (h2 : P \u2192 Q)\n  (h3 : P \u2192 (Q \u2192 R))\n  : R :=\nhave h4 : Q     := h2 h1,\nhave h5 : Q \u2192 R := h3 h1,\nshow R, from h5 h4    \n\n-- 3\u00aa demostraci\u00f3n\nexample\n  (h1 : P)\n  (h2 : P \u2192 Q)\n  (h3 : P \u2192 (Q \u2192 R))\n  : R :=\nshow R, from (h3 h1) (h2 h1)    \n\n-- 4\u00aa demostraci\u00f3n\nexample\n  (h1 : P)\n  (h2 : P \u2192 Q)\n  (h3 : P \u2192 (Q \u2192 R))\n  : R :=\n(h3 h1) (h2 h1)    \n\n-- 5\u00aa demostraci\u00f3n\nexample\n  (h1 : P)\n  (h2 : P \u2192 Q)\n  (h3 : P \u2192 (Q \u2192 R))\n  : R :=\nby finish\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>He a\u00f1adido a la lista L\u00f3gica con Lean el v\u00eddeo Pruebas en Lean de P, P \u2192 Q, P \u2192 (Q \u2192 R) \u22a2 R en el que se comentan 5 pruebas en Lean de P, P \u2192 Q, P \u2192 (Q \u2192 R) \u22a2 R A continuaci\u00f3n, se muestra el v\u00eddeo y el c\u00f3digo&#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":[],"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\/7372"}],"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=7372"}],"version-history":[{"count":1,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/posts\/7372\/revisions"}],"predecessor-version":[{"id":7373,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/posts\/7372\/revisions\/7373"}],"wp:attachment":[{"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/media?parent=7372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/categories?post=7372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.glc.us.es\/~jalonso\/vestigium\/wp-json\/wp\/v2\/tags?post=7372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}