2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-23 15:52:11 +00:00

Use code instead of Latex in Comparable laws.

This commit is contained in:
Louis Dionne
2014-06-30 10:38:21 -04:00
parent 1ab0174907
commit af30809dbd

View File

@@ -27,11 +27,11 @@ namespace boost { namespace hana {
## Laws
`equal` must define an equivalence relation. In other words, for all
`a`, `b`, `c` of comparable data types,
@f{align*}{
a = a && \text{Reflexivity} \\
a = b \Rightarrow b = a && \text{Symmetry} \\
a = b \wedge b = c \Rightarrow a = c && \text{Transitivity}
@f}
@code
a == a // Reflexivity
if a == b then b == a // Symmetry
if a == b && b == c then a == c // Transitivity
@endcode
--------------------------------------------------------------------------