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

Quellcode-Bibliothek bug_15681.v   Sprache: Coq

 
Require Import Ltac2.Ltac2.

Definition foo{E: Type}(f: E -> E): nat := 0.

Ltac2 feed_one_to_foo () := constr:(foo 1).

Fail Ltac2 Eval feed_one_to_foo ().

Ltac2 feed_constr_to_foo(x: constr) := constr:(foo $x).

Ltac2 Eval feed_constr_to_foo constr:(fun (a: nat) => a + 1).  (* succeeds *)

Fail Ltac2 Eval feed_constr_to_foo constr:(1).

Definition nat_to_fun (n:nat) : nat -> nat := plus n.
Coercion nat_to_fun : nat >-> Funclass.

Fail Ltac2 Eval feed_constr_to_foo constr:(1).

99%


¤ 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.0.4Bemerkung:  ¤

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