---
title: "Equality"
canonical: "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/TuplesCartesianProducts/Boolean.html"
source: "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/TuplesCartesianProducts/Boolean.md"
part: "Sets, Sequences, and Mappings"
chapter: "Tuples and Cartesian Products"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Sets, Sequences, and Mappings", "source": "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/index-sets-sequences-mappings.md"}
  - {"title": "Tuples and Cartesian Products", "source": "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/TuplesCartesianProducts/index-tuples-cartesian-products.md"}
prev: {"title": "Tuple Access Functions", "source": "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/TuplesCartesianProducts/tuple-access.md"}
next: {"title": "Iteration", "source": "https://docs.magma-maths.org/v2.30-1/SetsSequencesMappings/TuplesCartesianProducts/Iteration.md"}
intrinsics:
  - {"name": "eq", "signature": "T eq U: Tup, Tup -> BoolElt"}
  - {"name": "ne", "signature": "T ne U: Tup, Tup -> BoolElt"}
---

# Equality

<a id="operation-op-eq-tup-tup"></a>
## `T eq U: Tup, Tup -> BoolElt`

Return `true` if and only if the tuples $T$ and $U$ are equal.

<a id="operation-op-ne-tup-tup"></a>
## `T ne U: Tup, Tup -> BoolElt`

Return `true` if and only if the tuples $T$ and $U$ are distinct.
