Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/Isabelle/Doc/Logics_ZF/   (Beweissystem Isabelle Version 2025-1©)  Datei vom 16.11.2025 mit Größe 2 kB image not shown  

Quelle  IFOL_examples.thy   Sprache: Isabelle

 
sectionExamples of Intuitionistic Reasoning

theory IFOL_examples imports IFOL begin

textQuantifier example from the book Logic and Computation
lemma "(EX y. ALL x. Q(x,y)) --> (ALL x. EX y. Q(x,y))"
  🍋 @{subgoals[display,indent=0,margin=65]}
apply (rule impI)
  🍋 @{subgoals[display,indent=0,margin=65]}
apply (rule allI)
  🍋 @{subgoals[display,indent=0,margin=65]}
apply (rule exI)
  🍋 @{subgoals[display,indent=0,margin=65]}
apply (erule exE)
  🍋 @{subgoals[display,indent=0,margin=65]}
apply (erule allE)
  🍋 @{subgoals[display,indent=0,margin=65]}
txtNow apply assumption fails
oops

textTrying again, with the same first two steps
lemma "(EX y. ALL x. Q(x,y)) --> (ALL x. EX y. Q(x,y))"
  🍋 @{subgoals[display,indent=0,margin=65]}
apply (rule impI)
  🍋 @{subgoals[display,indent=0,margin=65]}
apply (rule allI)
  🍋 @{subgoals[display,indent=0,margin=65]}
apply (erule exE)
  🍋 @{subgoals[display,indent=0,margin=65]}
apply (rule exI)
  🍋 @{subgoals[display,indent=0,margin=65]}
apply (erule allE)
  🍋 @{subgoals[display,indent=0,margin=65]}
apply assumption
  🍋 @{subgoals[display,indent=0,margin=65]}
done

lemma "(EX y. ALL x. Q(x,y)) --> (ALL x. EX y. Q(x,y))"
by (tactic IntPr.fast_tac 🍋 1)

textExample of Dyckhoff's method\
lemma "~ ~ ((P-->Q) | (Q-->P))"
  🍋 @{subgoals[display,indent=0,margin=65]}
apply (unfold not_def)
  🍋 @{subgoals[display,indent=0,margin=65]}
apply (rule impI)
  🍋 @{subgoals[display,indent=0,margin=65]}
apply (erule disj_impE)
  🍋 @{subgoals[display,indent=0,margin=65]}
apply (erule imp_impE)
  🍋 @{subgoals[display,indent=0,margin=65]}
 apply (erule imp_impE)
  🍋 @{subgoals[display,indent=0,margin=65]}
apply assumption 
apply (erule FalseE)+
done

end

Messung V0.5
C=95 H=97 G=95

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.