| 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 |
Note: this file does not require [ssreflect]; it is both required by |
| 16 |
[ssrsetoid] and required by [ssrunder]. |
| 17 |
|
| 18 |
Redefine [Corelib.Classes.RelationClasses.Reflexive] here, so that doing |
| 19 |
[Require Import ssreflect] does not [Require Import RelationClasses], |
| 20 |
and conversely. **) |
| 21 |
|
| 22 |
Section Defs. |
| 23 |
Context {A : Type}. |
| 24 |
Class Reflexive (R : A -> A -> Prop) := |
| 25 |
reflexivity : forall x : A, R x x. |
| 26 |
End Defs. |
| 27 |
|
| 28 |
Register Reflexive as plugins.ssreflect.reflexive_type. |
| 29 |
Register reflexivity as plugins.ssreflect.reflexive_proof. |
| 30 |
|
| 31 |
#[global] |
| 32 |
Instance eq_Reflexive {A : Type} : Reflexive (@eq A) := @eq_refl A. |
| 33 |
#[global] |
| 34 |
Instance iff_Reflexive : Reflexive iff := iff_refl. |