-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes coq#7982: support for reduction of primitive projection of cofi…
…x in "simpl".
- Loading branch information
Showing
2 changed files
with
32 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Set Primitive Projections. | ||
|
||
CoInductive stream (A : Type) := cons { hd : A; tl : stream A }. | ||
|
||
CoFixpoint const {A} (x : A) := cons A x (const x). | ||
|
||
Goal forall A x, (@const A x).(tl _) = const x. | ||
Proof. | ||
intros. | ||
simpl. | ||
match goal with [ |- ?x = ?x ] => idtac end. | ||
Abort. |