text‹ Here is another example of classical reasoning: the Drinker's Principle says that for some person, if he is drunk, everybody else is drunk! We first prove a classical part of de-Morgan's law. ›
lemma de_Morgan: assumes"¬ (∀x. P x)" shows"∃x. ¬ P x" proof (rule classical) assume"∄x. ¬ P x" have"∀x. P x" proof fix x show"P x" proof (rule classical) assume"¬ P x" thenhave"∃x. ¬ P x" .. with‹∄x. ¬ P x›show ?thesis by contradiction qed qed with‹¬ (∀x. P x)›show ?thesis by contradiction qed
theorem Drinker's_Principle: "∃x. drunk x ⟶ (∀x. drunk x)" proof cases assume"∀x. drunk x" thenhave"drunk a ⟶ (∀x. drunk x)"for a .. thenshow ?thesis .. next assume"¬ (∀x. drunk x)" thenhave"∃x. ¬ drunk x"by (rule de_Morgan) thenobtain a where"¬ drunk a" .. have"drunk a ⟶ (∀x. drunk x)" proof assume"drunk a" with‹¬ drunk a›show"∀x. drunk x"by contradiction qed thenshow ?thesis .. qed
end
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-04-29)
¤
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.