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

Quelle  bug_14441.v   Sprache: Coq

 
Class Equiv A := equiv: A -> A -> Prop.
#[exportHint Mode Equiv ! : typeclass_instances.

Class Lookup (K A M : Type) := lookup: K -> M -> option A.
#[exportHint Mode Lookup ! - - : typeclass_instances.
#[exportHint Mode Lookup - - ! : typeclass_instances.

Parameter list_equiv : forall A, Equiv A -> Equiv (list A).
Parameter option_equiv : forall A, Equiv A -> Equiv (option A).
Parameter list_lookup : forall A, Lookup nat A (list A).

#[export] Existing Instance list_equiv.
#[export] Existing Instance option_equiv.
#[export] Existing Instance list_lookup.

Set Typeclasses Debug.
(* fails *)
Lemma list_equiv_lookup {A} `{Equiv A} (l k : list A) :
  equiv l k <-> forall i, equiv (lookup i l) (lookup i k).
Admitted.
(*
?Equiv : "Equiv (option ?A)"

?Lookup : "Lookup ?K ?A (list A)"

?Lookup0 : "Lookup ?K ?A (list A)"
*)

99%


¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet)  ¤

*© 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.