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

Quelle  default_record.v   Sprache: Coq

 
Require Import Ltac2.Ltac2.

Ltac2 Type 'a foo := { a : 'a; b : 'a }.

Ltac2 foo1 () := { { a := (); b := () } with a := () }.

Fail Ltac2 foo2 () := { { a := (); b := () } with a := 2 }.

Ltac2 Type ('a,'b) bar := { aa : 'a; bb : 'b }.

Ltac2 bar1 () := { { aa := (); bb := () } with aa := () }.

Ltac2 bar2 () := { { aa := (); bb := () } with aa := 2 }.

Fail Ltac2 foobar () := { { a := (); b := () } with aa := () }.

Ltac2 varvar v := { v with aa := () }.
Print varvar.

(* From #17764 *)
Module Point.
  Ltac2 Type t := { x : int ; y : int }.

  Ltac2 origin : t := { x := 0; y := 0; }.

End Point.

Ltac2 Eval { Point.origin with Point.y := 1; }.

99%


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