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

Quellcode-Bibliothek

© Kompilation durch diese Firma

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

Datei: bug_4723.v   Sprache: Coq

Original von: Coq©


Require Coq.Program.Tactics.

Record Matrix (m n : nat).

Definition kp {m n p q: nat} (A: Matrix m n) (B: Matrix p q):
  Matrix (m*p) (n*q). Admitted.

Fail Program Fact kp_assoc
        (xr xc yr yc zr zc: nat)
        (x: Matrix xr xc) (y: Matrix yr yc) (z: Matrix zr zc):
  kp x (kp y z) = kp (kp x y) z.

Ltac Obligation Tactic := admit.
Fail Program Fact kp_assoc
        (xr xc yr yc zr zc: nat)
        (x: Matrix xr xc) (y: Matrix yr yc) (z: Matrix zr zc):
  kp x (kp y z) = kp (kp x y) z.

Axiom cheat : forall {A}, A.
Obligation Tactic := apply cheat.

Program Fact kp_assoc
        (xr xc yr yc zr zc: nat)
        (x: Matrix xr xc) (y: Matrix yr yc) (z: Matrix zr zc):
  kp x (kp y z) = kp (kp x y) z.
admit.
Admitted.

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