products/sources/formale sprachen/Coq/test-suite/success image not shown  

Quellcode-Bibliothek

© Kompilation durch diese Firma

[Weder Korrektheit noch Funktionsfähigkeit der Software werden zugesichert.]

Datei: Mod_strengthen.v   Sprache: Coq

Original von: Coq©

Module Type Sub.
  Axiom Refl1 : forall x : nat, x = x.
  Axiom Refl2 : forall x : nat, x = x.
  Axiom Refl3 : forall x : nat, x = x.
  Inductive T : Set :=
      A : T.
End Sub.

Module Type Main.
  Declare Module M: Sub.
End Main.


Module A <: Main.
  Module M <: Sub.
    Lemma Refl1 : forall x : nat, x = x.
      introsreflexivity.
    Qed.
    Axiom Refl2 : forall x : nat, x = x.
    Lemma Refl3 : forall x : nat, x = x.
      introsreflexivity.
    Defined.
    Inductive T : Set :=
        A : T.
  End M.
End A.



(* first test *)

Module F (S: Sub).
  Module M := S.
End F.

Module B <: Main with Module M:=A.M := F A.M.



(* second test *)

Lemma r1 : (A.M.Refl1 = B.M.Refl1).
Proof.
  reflexivity.
Qed.

Lemma r2 : (A.M.Refl2 = B.M.Refl2).
Proof.
  reflexivity.
Qed.

Lemma r3 : (A.M.Refl3 = B.M.Refl3).
Proof.
  reflexivity.
Qed.

Lemma t : (A.M.T = B.M.T).
Proof.
  reflexivity.
Qed.

Lemma a : (A.M.A = B.M.A).
Proof.
  reflexivity.
Qed.



¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet)  ¤





Download des
Quellennavigators
Download des
sprechenden Kalenders

in der Quellcodebibliothek suchen




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 ist noch experimentell.


Bot Zugriff