diff options
| author | Hugo Herbelin | 2017-03-24 21:15:45 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2018-09-25 16:02:51 +0200 |
| commit | 78d21033969bf8ed91104f5382473dd66ce185d4 (patch) | |
| tree | ebd3c3adf61c93c0cb2a2bd0d29bfa0a164024f3 | |
| parent | 7eb8a7eb8d23ffaf149f71a46fb1b089b90db7f8 (diff) | |
Adding f_equal_dep in Logic.v.
| -rw-r--r-- | theories/Init/Logic.v | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/theories/Init/Logic.v b/theories/Init/Logic.v index 9d60cf54c3..67cbd5d0f7 100644 --- a/theories/Init/Logic.v +++ b/theories/Init/Logic.v @@ -406,6 +406,19 @@ End EqNotations. Import EqNotations. +Section equality_dep. + Variable A : Type. + Variable B : A -> Type. + Variable f : forall x, B x. + Variables x y : A. + + Theorem f_equal_dep : forall (H: x = y), rew H in f x = f y. + Proof. + destruct H; reflexivity. + Defined. + +End equality_dep. + Lemma rew_opp_r : forall A (P:A->Type) (x y:A) (H:x=y) (a:P y), rew H in rew <- H in a = a. Proof. intros. |
