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 677 B image not shown  

Quelle  bug_9756.v   Sprache: Coq

 

Module Bad.

Record box (A : Set) : Prop := Box { _ : A }.
Record foo@{i} (A:Type@{i}) := Foo { _ : Set:Type@{i} }.
Require Import TestSuite.hurkens.
Fail Definition bad : False := NoRetractFromSmallPropositionToProp.paradox
  _ _ (fun '(Foo _ x) => box x) (fun _ '(Box _ x) => x) Box _.
(* Error: Anomaly "Bad recursive type." Please report at http://coq.inria.fr/bugs/. *)

End Bad.

Module Alt.
  Inductive Box (A:Type) := box (_:A).

  (* it would be better if pattern matching compilation used template
     poly to make this succeed *)

  Fail Check (fun v => match v with box _ x => x end)
    :> forall x : (_ (* success if this is Box True *) :> Prop), True.
End Alt.

99%


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