From 2c3dbcedcd741806f8b9558dcbda8ce729f504fc Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Fri, 10 Jan 2025 10:30:07 +0100 Subject: [PATCH] Define equality for sets --- infra.bs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infra.bs b/infra.bs index e41b011..b30d752 100644 --- a/infra.bs +++ b/infra.bs @@ -1728,6 +1728,9 @@ of either with replacement and remove all other instan

This implies that an ordered set is both a subset and a superset of itself. +

A [=/set=] |A| is equal to a [=/set=] |B| +if |A| is a [=subset=] of |B| and |A| is a [=superset=] of |B|. +

The intersection of ordered sets |A| and |B|, is the result of creating a new ordered set |set| and, for each |item| of |A|, if |B| contains |item|, appending |item| to |set|.