(* Title: Doc/Logics_ZF/If.thy Author: Lawrence C Paulson, Cambridge University Computer Laboratory Copyright 1991 University of Cambridge First-Order Logic: the 'if' example. *)
lemma"if(if(P,Q,R), A, B) <-> if(P, if(Q,A,B), if(R,A,B))" 🍋‹@{subgoals[display,indent=0,margin=65]}› by blast
text‹Trying again from the beginning in order to prove from the definitions› lemma"if(if(P,Q,R), A, B) <-> if(P, if(Q,A,B), if(R,A,B))" 🍋‹@{subgoals[display,indent=0,margin=65]}› apply (simp add: if_def) 🍋‹@{subgoals[display,indent=0,margin=65]}› apply blast done
text‹An invalid formula. High-level rules permit a simpler diagnosis› lemma"if(if(P,Q,R), A, B) <-> if(P, if(Q,A,B), if(R,B,A))" 🍋‹@{subgoals[display,indent=0,margin=65]}› apply auto 🍋‹@{subgoals[display,indent=0,margin=65]}› (*The next step will fail unless subgoals remain*) apply (tactic all_tac) oops
text‹Trying again from the beginning in order to prove from the definitions› lemma"if(if(P,Q,R), A, B) <-> if(P, if(Q,A,B), if(R,B,A))" 🍋‹@{subgoals[display,indent=0,margin=65]}› apply (simp add: if_def) 🍋‹@{subgoals[display,indent=0,margin=65]}› apply (auto) 🍋‹@{subgoals[display,indent=0,margin=65]}› (*The next step will fail unless subgoals remain*) apply (tactic all_tac) oops
end
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.23 Sekunden
(vorverarbeitet am 2026-04-28)
¤
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.