Set Primitive Projections.
Set Implicit Arguments.
CoInductive stream A := cons { hd : A; tl : stream A }.
CoFixpoint id {A} (s : stream A) := cons (hd s) (id (tl s)).
Lemma id_spec : forall A (s : stream A), id s = s.
Proof.
intros A s.
Fail change (id s) with (cons (hd (id s)) (tl (id s))).
Abort.
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet)
¤
|
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.
|