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

Quelle  transparent_abstract.v   Sprache: Coq

 
Class by_transparent_abstract {T} (x : T) := make_by_transparent_abstract : T.
#[exportHint Extern 0 (@by_transparent_abstract ?T ?x) => change T; transparent_abstract exact_no_check x : typeclass_instances.

Goal True /\ True.
Proof.
  split.
  transparent_abstract exact I using foo.
  let x := (eval hnf in foo) in constr_eq x I.
  let x := constr:(ltac:(constructor) : True) in
  let T := type of x in
  let x := constr:(_ : by_transparent_abstract x) in
  let x := (eval cbv delta [by_transparent_abstract] in (let y : T := x in y)) in
  pose x as x'.
  simpl in x'.
  let v := eval cbv [x'] in x' in tryif constr_eq v I then fail 0 else idtac.
  hnf in x'.
  let v := eval cbv [x'] in x' in tryif constr_eq v I then idtac else fail 0.
  exact x'.
Defined.
Check eq_refl : I = foo.
Eval compute in foo.

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.