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

Quelle  unshelve.v   Sprache: Coq

 
Axiom F : forall (b : bool), b = true ->
  forall (i : unit), i = i -> True.

Goal True.
Proof.
unshelve (refine (F _ _ _ _)).
exact true.
exact tt.
exact (@eq_refl bool true).
exact (@eq_refl unit tt).
Qed.

(* This was failing in 8.6, because of ?a:nat being wrongly duplicated *)

Goal (forall a : nat, a = 0 -> True) -> True.
intros F.
unshelve (eapply (F _);clear F).
2:reflexivity.
Qed.

(* same think but using Ltac2 refine *)
Require Import Ltac2.Ltac2.

Goal True.
Proof.
(* Ltac2 refine is more like simple_refine *)
unshelve (refine '(F _ _ _ _); Control.shelve_unifiable ()).
exact true.
exact tt.
exact (@eq_refl bool true).
exact (@eq_refl unit tt).
Qed.

Goal (forall a : nat, a = 0 -> True) -> True.
intros F.
unshelve (eapply (&F _);clear F).
2:reflexivity.
Qed.

Messung V0.5
C=93 H=100 G=96

¤ Dauer der Verarbeitung: 0.10 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 und die Messung sind noch experimentell.