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

Quelle  setoid_rewrite_proj.v   Sprache: Coq

 
Require Export Corelib.Setoids.Setoid.

Module Test1.

#[projections(primitive=yes)]
Structure Test := {
  test : unit
}.

Axiom tst : Test.
Axiom tst' : Test.
Axiom H : tst = tst'.

Theorem a :
  test tst = test tst'.
Proof.
  setoid_rewrite H.
  exact eq_refl.
Qed.

End Test1.

Module Test2.

#[projections(primitive=yes)]
Structure Test (n : nat) := {
  test : unit
}.

Axiom tst : Test 0.
Axiom tst' : Test 0.
Axiom H : tst = tst'.

Theorem a :
  test _ tst = test _ tst'.
Proof.
  setoid_rewrite H.
  exact eq_refl.
Qed.

End Test2.

Module Test3.

#[projections(primitive=yes)]
Structure Test (n : nat) := {
  test : unit
}.

Axiom n : nat.
Axiom tst : Test n.
Axiom tst' : Test n.
Axiom H : n = 0.

Theorem a :
  test _ tst = test _ tst'.
Proof.
  Fail setoid_rewrite H. (* no rewriting in parameters *)
Abort.

End Test3.

Messung V0.5
C=99 H=100 G=99

¤ Dauer der Verarbeitung: 0.11 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.