Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Roqc/test-suite/ltac2/   (Beweissystem des Inria Version 9.1.0©)  Datei vom 15.8.2025 mit Größe 1 kB image not shown  

Quelle  congruence.v   Sprache: Coq

 
Require Import Ltac2.Ltac2.

Ltac2 congruence_dev () := congruence.
Ltac2 simpl_congruence_dev () := simple congruence.

Lemma congruence_test_1 : (forall x:bool, x = true) -> False.
Proof.
    intros.
    Fail congruence.
    Fail congruence 0 with false.
    Fail congruence 1 with true.
    congruence 1 with false.
Qed.

Lemma congruence_test_2 : (forall x:bool, x = true) -> False.
Proof.
    intros.
    Fail congruence.
    congruence with false.
Qed.

Lemma congruence_test_3 {A B} (f: A->B->A) (a:A) (b:B): f a b = a -> f (f a b) b = a.
Proof.
congruence.
Qed.

Lemma congruence_test_4 {A} (f: A->A) (a:A): f (f (f a)) = a -> f (f (f (f (f a)))) = a -> f a = a.
Proof.
congruence.
Qed.

Lemma simple_congruence_test_1 : (forall x:bool, x = true) -> False.
Proof.
    intros.
    Fail simple congruence.
    Fail simple congruence 0 with false.
    Fail simple congruence 1 with true.
    simple congruence 1 with false.
Qed.

Lemma simple_congruence_test_2 : (forall x:bool, x = true) -> False.
Proof.
    intros.
    Fail simple congruence.
    simple congruence with false.
Qed.

Lemma simple_congruence_test_3 {A B} (f: A->B->A) (a:A) (b:B): f a b = a -> f (f a b) b = a.
Proof.
simple congruence.
Qed.

Lemma simple_congruence_test_4 {A} (f: A->A) (a:A): f (f (f a)) = a -> f (f (f (f (f a)))) = a -> f a = a.
Proof.
simple congruence.
Qed.

Messung V0.5
C=89 H=99 G=94

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet)  ¤

*© 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.