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

Quelle  PrintingCoercion.v   Sprache: Coq

 

Parameter A B C D : Type.

Parameter f : A -> B.
Parameter g : B -> C.
Parameter h : C -> D.

Coercion f : A >-> B.
Coercion g : B >-> C.

Parameter a : A.

Check a : C.

Module M.
  Module N.
    Section S.
      Add Printing Coercion f. (* implicit local *)
      #[export] Add Printing Coercion g.

      Variable h' : C -> D.

      Coercion h' : C >-> D.

      Fail Global Add Printing Coercion h'.
      Fail #[export] Add Printing Coercion h'.

      Check a : D.

      Fail Add Printing Coercion h.
      Add Printing Coercion h'.

      Check a : D.

    End S.

    Check a : C.

    Global Add Printing Coercion f.

    Coercion h : C >-> D.
    Add Printing Coercion h. (* implicit export *)

    Check a : D.
  End N.
  Check a : C.

  Remove Printing Coercion f. (* implicit export *)
End M.
Check a : C.

Import M.
Check a : C.

Import(coercions) N.
Check a : D.

Import(options) N.
Check a : D.

100%


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