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

Quelle  bug_9086.v   Sprache: Coq

 
(* Systematic study around issue #9086 *)

Local Set Primitive Projections.
Record pair {A B} := mk { _1 : A; _2 : B _1 }.

Module Folded.

Goal (@mk Prop (fun _ => Prop) True True).(_1).
  assert_succeeds (progress (cbn iota delta [_1])).
  assert_succeeds (progress (cbv iota delta [_1])).
  assert_succeeds (progress (lazy iota delta [_1])).
  assert_succeeds (progress simpl).
Opaque _1. (* has an impact on "_1" *)
  assert_fails (progress cbn).
  assert_fails (progress cbv).
  assert_fails (progress lazy).
  assert_fails (progress simpl).
Abort.

End Folded.

Module Unfolded.

Goal (@mk Prop (fun _ => Prop) True True).(_1).
  lazy delta [_1]. (* move to unfolded form *)
  assert_succeeds (progress (cbn iota delta [_1])).
  assert_succeeds (progress (cbv iota delta [_1])).
  assert_succeeds (progress (lazy iota delta [_1])).
  assert_succeeds (progress simpl).
Opaque _1. (* no impact on "unfolded _1" *)
  assert_succeeds (progress (cbn iota delta [_1])).
  assert_succeeds (progress (cbv iota delta [_1])).
  assert_succeeds (progress (lazy iota delta [_1])).
  assert_succeeds (progress simpl).
Abort.

End Unfolded.

Module Unfold.

Set Printing Unfolded Projection As Match.
Goal (@mk Prop (fun _ => Prop) True True).(_1).
  cbv delta [_1]. (* should internally unfold the projection *)
  progress lazy iota. (* allowed by the unfolding *)
Abort.

End Unfold.

100%


¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

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