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_9512.v   Sprache: Coq

Original von: Coq©

Require Import Coq.ZArith.BinInt Coq.omega.Omega Coq.micromega.Lia.

Set Primitive Projections.
Record params := { width : Z }.
Definition p : params := Build_params 64.

Set Printing All.

Goal width p = 0%Z -> width p = 0%Z.
  intros.

  assert_succeeds (enough True; [omega|]).
  assert_succeeds (enough True; [lia|]).

(*   H : @eq Z (width p) Z0 *)
(*   ============================ *)
(*   @eq Z (width p) Z0 *)

  change tt with tt in H.

(*   H : @eq Z (width p) Z0 *)
(*   ============================ *)
(*   @eq Z (width p) Z0 *)

  assert_succeeds (enough True; [lia|]).
  (* Tactic failure: <tactic closure> fails. *)
  (* assert_succeeds (enough True; [omega|]). *)
  (* Tactic failure: <tactic closure> fails. *)

  (* omega. *)
  (* Error: Omega can't solve this system *)

  lia.
  (* Tactic failure:  Cannot find witness. *)
Qed.

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