| 1 |
(************************************************************************) |
| 2 |
(* * The Rocq Prover / The Rocq Development Team *) |
| 3 |
(* v * Copyright INRIA, CNRS and contributors *) |
| 4 |
(* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 |
(* \VV/ **************************************************************) |
| 6 |
(* // * This file is distributed under the terms of the *) |
| 7 |
(* * GNU Lesser General Public License Version 2.1 *) |
| 8 |
(* * (see LICENSE file for the text of the license) *) |
| 9 |
(************************************************************************) |
| 10 |
|
| 11 |
(** #<style> .doc { font-family: monospace; white-space: pre; } </style># **) |
| 12 |
|
| 13 |
(** Compatibility layer for [under] and [setoid_rewrite]. |
| 14 |
|
| 15 |
This file is intended to be required by [Require Import Setoid]. |
| 16 |
|
| 17 |
In particular, we can use the [under] tactic with other relations |
| 18 |
than [eq] or [iff], e.g. a [RewriteRelation], by doing: |
| 19 |
[Require Import ssreflect. Require Setoid.] |
| 20 |
|
| 21 |
This file's instances have priority 12 > other stdlib instances. |
| 22 |
|
| 23 |
(Note: this file could be skipped when porting [under] to stdlib2.) |
| 24 |
*) |
| 25 |
|
| 26 |
Require Import ssrclasses. |
| 27 |
Require Import ssrunder. |
| 28 |
Require Import RelationClasses. |
| 29 |
Require Import Relation_Definitions. |
| 30 |
|
| 31 |
(** Reconcile [Corelib.Classes.RelationClasses.Reflexive] with |
| 32 |
[Corelib.ssr.ssrclasses.Reflexive] *) |
| 33 |
|
| 34 |
#[global] |
| 35 |
Instance compat_Reflexive : |
| 36 |
forall {A} {R : relation A}, |
| 37 |
RelationClasses.Reflexive R -> |
| 38 |
ssrclasses.Reflexive R | 12. |
| 39 |
Proof. now trivial. Qed. |