-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not try to rewrite equivalences under context
Fixes #11
- Loading branch information
Showing
3 changed files
with
102 additions
and
66 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
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,23 @@ | ||
From Trakt Require Import Trakt. | ||
|
||
|
||
Section Issue11. | ||
|
||
Variable P : nat -> Prop. | ||
Variable P' : nat -> bool. | ||
Hypothesis P_P' : forall x, P x <-> P' x = true. | ||
Trakt Add Relation 1 P P' P_P'. | ||
|
||
(* In this example, it is incorrect to replace P with P' *) | ||
Goal forall f : nat -> Prop, (forall r : nat, f r = P r) -> True. | ||
Proof. | ||
trakt bool. | ||
Abort. | ||
|
||
(* When the context around P is an equivalence, it is correct *) | ||
Goal forall f : nat -> Prop, (forall r : nat, f r <-> P r) -> True. | ||
Proof. | ||
trakt bool. | ||
Abort. | ||
|
||
End Issue11. |