con Isabelle/Isar - Dpto. Ciencias de la Computación e Inteligencia ...
con Isabelle/Isar - Dpto. Ciencias de la Computación e Inteligencia ... con Isabelle/Isar - Dpto. Ciencias de la Computación e Inteligencia ...
20 Capítulo 2. El lenguaje de demostración Isar Nota 2.2.13 (Resumen de reglas proposicionales). TrueI FalseE conjI conjunct1 conjE disjI1 disjI2 disjE notI notE impI impE mp iff iffI iffD1 iffD2 iffE ccontr classical excluded middle disjCI impCE iffCE notnotD swap True False =⇒ P [[P; Q]] =⇒ P ∧ Q P ∧ Q =⇒ Q [[P ∧ Q; [[P; Q]] =⇒ R]] =⇒ R P =⇒ P ∨ Q Q =⇒ P ∨ Q [[P ∨ Q; P =⇒ R; Q =⇒ R]] =⇒ R (P =⇒ False) =⇒ ¬ P [[¬ P; P]] =⇒ R (P =⇒ Q) =⇒ P −→ Q [[P −→ Q; P; Q =⇒ R]] =⇒ R [[P −→ Q; P]] =⇒ Q (P −→ Q) −→ (Q −→ P) −→ P = Q [[P =⇒ Q; Q =⇒ P]] =⇒ P = Q [[Q = P; Q]] =⇒ P [[P = Q; Q]] =⇒ P [[P = Q; [[P −→ Q; Q −→ P]] =⇒ R]] =⇒ R (¬ P =⇒ False) =⇒ P (¬ P =⇒ P) =⇒ P ¬ P ∨ P (¬ Q =⇒ P) =⇒ P ∨ Q [[P −→ Q; ¬ P =⇒ R; Q =⇒ R]] =⇒ R [[P = Q; [[P; Q]] =⇒ R; [[¬ P; ¬ Q]] =⇒ R]] =⇒ R ¬ ¬ P =⇒ P [[¬ P; ¬ R =⇒ P]] =⇒ R Nota 2.2.14 (Referencia de reglas de inferencia). Más información sobre las reglas de inferencia se encuentra en la sección 2.2 de Isabelle’s Logics: HOL.
2.3. Atajos de Isar 21 2.3 Atajos de Isar Nota 2.3.1 (Atajos de Isar). Isar tiene muchos atajos, como los siguientes: this (éste) = el hecho probado en la declaración anterior then (entonces) = from this hence (por lo tanto) = then have thus (de esta manera) = then show with hecho+ (con) = from hecho+ and this . (por ésto) = by this .. (trivialmente) = by regla (donde Isabelle adivina la regla) Nota 2.3.2 (Razonamiento acumulativo). Una sucesión de hechos que se van a usar como premisa en una declaración puede agruparse usando moreover (además) y usarse en la declaración usando ultimately (finalmente). Lema 2.3.3 (Ejemplo de uso de atajos y razonamiento acumulativo). A ∧ B ⊢ B ∧ A. lemma A ∧ B −→ B ∧ A proof (rule impI) assume ab: A ∧ B hence B by (rule conjunct2) moreover from ab have A .. ultimately show B ∧ A by (rule conjI) qed 2.4 Cuantificadores universal y existencial Nota 2.4.1 (Reglas del cuantificador universal). (allI) ∧ x. P x ∀ x. P x (allE) ∀ x. P x R P x R En la regla allI la nueva variable se introduce mediante la palabra fix. Lema 2.4.2 (Ejemplo con cuantificadores universales). ∀x.P −→ Qx ⊢ P −→ (∀x.Qx) lemma assumes a: ∀ x. P −→ Q x shows P −→ (∀ x. Q x) proof (rule impI)
- Page 1: Introducción a la demostración as
- Page 4 and 5: 4 Índice 5 Heurísticas para la in
- Page 6 and 7: 6 Índice
- Page 8 and 9: 8 Capítulo 1. Isabelle como un len
- Page 10 and 11: 10 Capítulo 1. Isabelle como un le
- Page 12 and 13: 12 Capítulo 1. Isabelle como un le
- Page 14 and 15: 14 Capítulo 1. Isabelle como un le
- Page 16 and 17: 16 Capítulo 2. El lenguaje de demo
- Page 18 and 19: 18 Capítulo 2. El lenguaje de demo
- Page 22 and 23: 22 Capítulo 2. El lenguaje de demo
- Page 24 and 25: 24 Capítulo 2. El lenguaje de demo
- Page 26 and 27: 26 Capítulo 2. El lenguaje de demo
- Page 28 and 29: 28 Capítulo 3. Distinción de caso
- Page 30 and 31: 30 Capítulo 3. Distinción de caso
- Page 32 and 33: 32 Capítulo 3. Distinción de caso
- Page 34 and 35: 34 Capítulo 3. Distinción de caso
- Page 36 and 37: 36 Capítulo 4. Patrones de demostr
- Page 38 and 39: 38 Capítulo 4. Patrones de demostr
- Page 40 and 41: 40 Capítulo 4. Patrones de demostr
- Page 42 and 43: 42 Capítulo 5. Heurísticas para l
- Page 44 and 45: 44 Capítulo 5. Heurísticas para l
- Page 46 and 47: 46 Capítulo 5. Heurísticas para l
- Page 48 and 49: 48 Capítulo 5. Heurísticas para l
- Page 50 and 51: 50 Capítulo 6. Caso de estudio: Co
- Page 52 and 53: 52 Capítulo 6. Caso de estudio: Co
- Page 54: 54 Capítulo 6. Caso de estudio: Co
20 Capítulo 2. El lenguaje <strong>de</strong> <strong>de</strong>mostración <strong>Isar</strong><br />
Nota 2.2.13 (Resumen <strong>de</strong> reg<strong>la</strong>s proposicionales).<br />
TrueI<br />
FalseE<br />
<strong>con</strong>jI<br />
<strong>con</strong>junct1<br />
<strong>con</strong>jE<br />
disjI1<br />
disjI2<br />
disjE<br />
notI<br />
notE<br />
impI<br />
impE<br />
mp<br />
iff<br />
iffI<br />
iffD1<br />
iffD2<br />
iffE<br />
c<strong>con</strong>tr<br />
c<strong>la</strong>ssical<br />
exclu<strong>de</strong>d middle<br />
disjCI<br />
impCE<br />
iffCE<br />
notnotD<br />
swap<br />
True<br />
False =⇒ P<br />
[[P; Q]] =⇒ P ∧ Q<br />
P ∧ Q =⇒ Q<br />
[[P ∧ Q; [[P; Q]] =⇒ R]] =⇒ R<br />
P =⇒ P ∨ Q<br />
Q =⇒ P ∨ Q<br />
[[P ∨ Q; P =⇒ R; Q =⇒ R]] =⇒ R<br />
(P =⇒ False) =⇒ ¬ P<br />
[[¬ P; P]] =⇒ R<br />
(P =⇒ Q) =⇒ P −→ Q<br />
[[P −→ Q; P; Q =⇒ R]] =⇒ R<br />
[[P −→ Q; P]] =⇒ Q<br />
(P −→ Q) −→ (Q −→ P) −→ P = Q<br />
[[P =⇒ Q; Q =⇒ P]] =⇒ P = Q<br />
[[Q = P; Q]] =⇒ P<br />
[[P = Q; Q]] =⇒ P<br />
[[P = Q; [[P −→ Q; Q −→ P]] =⇒ R]] =⇒ R<br />
(¬ P =⇒ False) =⇒ P<br />
(¬ P =⇒ P) =⇒ P<br />
¬ P ∨ P<br />
(¬ Q =⇒ P) =⇒ P ∨ Q<br />
[[P −→ Q; ¬ P =⇒ R; Q =⇒ R]] =⇒ R<br />
[[P = Q; [[P; Q]] =⇒ R; [[¬ P; ¬ Q]] =⇒ R]] =⇒ R<br />
¬ ¬ P =⇒ P<br />
[[¬ P; ¬ R =⇒ P]] =⇒ R<br />
Nota 2.2.14 (Referencia <strong>de</strong> reg<strong>la</strong>s <strong>de</strong> inferencia). Más información sobre <strong>la</strong>s reg<strong>la</strong>s <strong>de</strong><br />
inferencia se encuentra en <strong>la</strong> sección 2.2 <strong>de</strong> <strong>Isabelle</strong>’s Logics: HOL.