Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  bug_6313.v   Sprache: Coq

 
(* Former open goals in nested proofs were lost *)

(* This used to fail with "Incorrect number of goals (expected 1 tactic)." *)

Inductive foo := a | b | c.
Goal foo -> foo.
  intro x.
  simple refine (match x with
                 | a => _
                 | b => ltac:(exact b)
                 | c => _
                 end); [exact a|exact c].
Abort.

(* This used to leave the goal on the shelf and fails at reflexivity *)

Goal (True/\0=0 -> True) -> True.
  intro f.
  refine
   (f ltac:(split; only 1:exact I)).
  reflexivity.
Qed.

(* The "Unshelve" used to not see the explicitly "shelved" goal *)

Lemma f (b:comparison) : b=b.
refine (match b with
   Eq => ltac:(shelve)
 | Lt => ltac:(give_up)
 | Gt => _
 end).
exact (eq_refl Gt).
Unshelve.
exact (eq_refl Eq).
Fail auto(* Check that there are no more regular subgoals *)
Admitted.

(* The "Unshelve" used to not see the explicitly "shelved" goal *)

Lemma f2 (b:comparison) : b=b.
refine (match b with
   Eq => ltac:(shelve)
 | Lt => ltac:(give_up)
 | Gt => _
 end).
Unshelve. (* Note: Unshelve puts goals at the end *)
exact (eq_refl Gt).
exact (eq_refl Eq).
Fail auto(* Check that there are no more regular subgoals *)
Admitted.

(* The "unshelve" used to not see the explicitly "shelved" goal *)

Lemma f3 (b:comparison) : b=b.
unshelve refine (match b with
   Eq => ltac:(shelve)
 | Lt => ltac:(give_up)
 | Gt => _
 end).
(* Note: unshelve puts goals at the beginning *)
exact (eq_refl Eq).
exact (eq_refl Gt).
Fail auto(* Check that there are no more regular subgoals *)
Admitted.

Messung V0.5
C=92 H=93 G=92

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






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge