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 ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
2.2. Razonamiento proposicional 17<br />
lemma <strong>con</strong>j2:<br />
assumes p: P and q: Q<br />
shows P ∧ (Q ∧ P)<br />
proof −<br />
from q p have qp: Q ∧ P by (rule <strong>con</strong>jI)<br />
from p qp show P ∧ (Q ∧ P) by (rule <strong>con</strong>jI)<br />
qed<br />
Nota 2.2.3 (Razonamiento progresivo y regresivo).<br />
• <strong>Isabelle</strong> soporta razonamiento progresivo. La anterior <strong>de</strong>mostración es una muestra.<br />
• <strong>Isabelle</strong> soporta razonamiento regresivo. La siguiente <strong>de</strong>mostración es una muestra.<br />
Lema 2.2.4 (Ejemplo <strong>de</strong> introducción <strong>de</strong> <strong>la</strong> <strong>con</strong>junción <strong>con</strong> razonamiento regresivo).<br />
P, Q ⊢ P ∧ (Q ∧ P).<br />
Demostración: Estamos suponiendo<br />
y<br />
P (2.4)<br />
Q (2.5)<br />
Para <strong>de</strong>mostrar el lema, por introducción <strong>de</strong> <strong>la</strong> <strong>con</strong>junción, basta probar<br />
P (2.6)<br />
y<br />
Q ∧ P (2.7)<br />
La <strong>con</strong>dición 2.6 se tiene por <strong>la</strong> hipótesis 2.4. Para <strong>de</strong>mostrar <strong>la</strong> <strong>con</strong>dición 2.7, por introducción<br />
<strong>de</strong> <strong>la</strong> <strong>con</strong>junción, basta probar<br />
y<br />
Q (2.8)<br />
P (2.9)<br />
La <strong>con</strong>dición 2.8 se tiene por <strong>la</strong> hipótesis 2.5 y <strong>la</strong> <strong>con</strong>dición 2.9 se tiene por <strong>la</strong> hipótesis<br />
2.4.<br />
□<br />
lemma<br />
assumes p: P and q: Q<br />
shows P ∧ (Q ∧ P)<br />
proof (rule <strong>con</strong>jI)