The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Sym.Sym2
207 declarations and 3 deprecated aliases. Mathlib docs · Source
The symmetric square
This file defines the symmetric square, which is α × α modulo
swapping. This is also known as the type of unordered pairs.
More generally, the symmetric square is the second symmetric power
(see Data.Sym.Basic). The equivalence is Sym2.equivSym.
From the point of view that an unordered pair is equivalent to a
multiset of cardinality two (see Sym2.equivMultiset), there is a
Mem instance Sym2.Mem, which is a Prop-valued membership
test. Given h : a ∈ z for z : Sym2 α, then Mem.other h is the other
element of the pair, defined using Classical.choice. If α has
decidable equality, then h.other' computably gives the other element.
The universal property of Sym2 is provided as Sym2.lift, which
states that functions from Sym2 α are equivalent to symmetric
two-argument functions from α.
Recall that an undirected graph (allowing self loops, but no multiple
edges) is equivalent to a symmetric relation on the vertex type α.
Given a symmetric relation on α, the corresponding edge set is
constructed by Sym2.fromRel which is a special case of Sym2.lift.
Notation
The element Sym2.mk (a, b) can be written as s(a, b) for short.
We use the term "fiber" in names to refer to preimages of singleton sets, such as f ⁻¹' {x} or
{ a // f a = b }.
Tags
symmetric square, unordered pairs, symmetric powers
Membership and set coercion
Diagonal
Declarations about symmetric relations
Equivalence to the second symmetric power
The other element of an element of the symmetric square
theorem Sym2.attachWith.congr_simp E1 #
∀ {α : Type u_1} {P : α → Prop} (s s_1 : Sym2 α) (e_s : s = s_1) (h : ∀ a ∈ s, P a), s.attachWith h = s_1.attachWith ⋯
theorem Sym2.Mem.other'.congr_simp E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {a a_1 : α} (e_a : a = a_1) {z z_1 : Sym2 α} (e_z : z = z_1) (h : a ∈ z),
Sym2.Mem.other' h = Sym2.Mem.other' ⋯
theorem Sym2.diagElem.congr_simp E1 #
∀ {α : Type u_1} (z z_1 : Sym2 α) (e_z : z = z_1) (a : z.IsDiag), z.diagElem a = z_1.diagElem ⋯
theorem Sym2.fromRelNdrec.congr_simp E1 #
∀ {α : Type u_1} {r : α → α → Prop} {motive : Sort u_4} {sym : Std.Symm r} (z z_1 : Sym2 α) (e_z : z = z_1)
(hz : z ∈ Sym2.fromRel sym) (f f_1 : (a b : α) → r a b → motive) (e_f : f = f_1)
(h : ∀ (a b : α) (h : r a b), f a b h = f b a ⋯), Sym2.fromRelNdrec z hz f h = Sym2.fromRelNdrec z_1 ⋯ f_1 ⋯
theorem Sym2.fromRel.congr_simp E1 #
∀ {α : Type u_1} {r r_1 : α → α → Prop} (e_r : r = r_1) (sym : Std.Symm r), Sym2.fromRel sym = Sym2.fromRel ⋯
theorem Eq.ndrecOn.congr_simp E1 #
∀ {α : Sort u2} {a : α} {motive : α → Sort u1} {b : α} (h : a = b) (m m_1 : motive a),
m = m_1 → Eq.ndrecOn h m = Eq.ndrecOn h m_1
inductive Sym2.Rel E1 #
(α : Type u) → α × α → α × α → Prop
This is the relation capturing the notion of pairs equivalent up to permutations.
ctor Sym2.Rel.refl E0 #
∀ {α : Type u} (x y : α), Sym2.Rel α (x, y) (x, y)
ctor Sym2.Rel.swap E0 #
∀ {α : Type u} (x y : α), Sym2.Rel α (x, y) (y, x)
theorem Sym2.Rel.symm E1 #
∀ {α : Type u_1} {x y : α × α}, Sym2.Rel α x y → Sym2.Rel α y x
theorem Sym2.Rel.trans E1 #
∀ {α : Type u_1} {x y z : α × α}, Sym2.Rel α x y → Sym2.Rel α y z → Sym2.Rel α x z
theorem Sym2.Rel.is_equivalence E1 #
∀ {α : Type u_1}, Equivalence (Sym2.Rel α)
def Sym2.Rel.setoid E1 #
(α : Type u) → Setoid (α × α)
One can use attribute [local instance] Sym2.Rel.setoid to temporarily
make Quotient functionality work for α × α.
theorem Sym2.rel_iff' E0 #
∀ {α : Type u_1} {p q : α × α}, Sym2.Rel α p q ↔ p = q ∨ p = q.swap
theorem Sym2.rel_iff E0 #
∀ {α : Type u_1} {x y z w : α}, Sym2.Rel α (x, y) (z, w) ↔ x = z ∧ y = w ∨ x = w ∧ y = z
abbrev Sym2 E1 #
Type u → Type u
Sym2 α is the symmetric square of α, which, in other words, is the
type of unordered pairs.
It is equivalent in a natural way to multisets of cardinality 2 (see
Sym2.equivMultiset).
abbrev Sym2.mk E1 #
{α : Type u_4} → α → α → Sym2 α
Constructor for Sym2. This is the quotient map α × α → Sym2 α.
def «termS(_,_)» E1 #
Lean.ParserDescr
s(x, y) is an unordered pair,
which is to say a pair modulo the action of the symmetric group.
It is equal to Sym2.mk (x, y).
theorem Sym2.sound E1 #
∀ {α : Type u_1} {a b c d : α}, Sym2.Rel α (a, b) (c, d) → s(a, b) = s(c, d)
theorem Sym2.exact E1 #
∀ {α : Type u_1} {a b c d : α}, s(a, b) = s(c, d) → Sym2.Rel α (a, b) (c, d)
theorem Sym2.eq E0 #
∀ {α : Type u_1} {a b c d : α}, s(a, b) = s(c, d) ↔ Sym2.Rel α (a, b) (c, d)
theorem Sym2.ind E1 #
∀ {α : Type u_1} {f : Sym2 α → Prop}, (∀ (x y : α), f s(x, y)) → ∀ (i : Sym2 α), f i
theorem Sym2.inductionOn E1 #
∀ {α : Type u_1} {f : Sym2 α → Prop} (i : Sym2 α), (∀ (x y : α), f s(x, y)) → f i
theorem Sym2.inductionOn₂ E1 #
∀ {α : Type u_1} {β : Type u_2} {f : Sym2 α → Sym2 β → Prop} (i : Sym2 α) (j : Sym2 β),
(∀ (a₁ a₂ : α) (b₁ b₂ : β), f s(a₁, a₂) s(b₁, b₂)) → f i j
def Sym2.rec E1 #
{α : Type u_1} →
{motive : Sym2 α → Sort u_4} →
(f : (a b : α) → motive s(a, b)) →
(∀ (a b c d : α) (h : Sym2.Rel α (a, b) (c, d)), ⋯ ▸ f a b = f c d) → (z : Sym2 α) → motive z
Dependent recursion principle for Sym2. See Quot.rec.
def Sym2.recOn E1 #
{α : Type u_1} →
{motive : Sym2 α → Sort u_4} →
(z : Sym2 α) →
(f : (a b : α) → motive s(a, b)) → (∀ (a b c d : α) (h : Sym2.Rel α (a, b) (c, d)), ⋯ ▸ f a b = f c d) → motive z
Dependent recursion principle for Sym2. See Quot.recOn.
def Sym2.hrec E1 #
{α : Type u_1} →
{motive : Sym2 α → Sort u_4} →
(f : (a b : α) → motive s(a, b)) → (∀ (a b : α), f a b ≍ f b a) → (z : Sym2 α) → motive z
A dependent recursion principle for Sym2 that uses heterogeneous equality.
abbrev Sym2.recOnSubsingleton E1 #
{α : Type u_1} →
{motive : Sym2 α → Sort u_4} →
[∀ (a b : α), Subsingleton (motive s(a, b))] → (z : Sym2 α) → ((a b : α) → motive s(a, b)) → motive z
Dependent recursion principal for Sym2 when the target is a Subsingleton type.
See Quot.recOnSubsingleton.
theorem Sym2.mk_surjective E1 #
∀ {α : Type u_1}, Function.Surjective (Function.uncurry Sym2.mk)
theorem Sym2.mk_fiber E1 #
∀ {α : Type u_1} (a b : α), Function.uncurry Sym2.mk ⁻¹' {s(a, b)} = {(a, b), (b, a)}
theorem Sym2.exists E1 #
∀ {α : Type u_4} {f : Sym2 α → Prop}, (∃ x, f x) ↔ ∃ x y, f s(x, y)
theorem Sym2.forall E1 #
∀ {α : Type u_4} {f : Sym2 α → Prop}, (∀ (x : Sym2 α), f x) ↔ ∀ (x y : α), f s(x, y)
theorem Sym2.congr_right E1 #
∀ {α : Type u_1} {a b c : α}, s(a, b) = s(a, c) ↔ b = c
theorem Sym2.congr_left E1 #
∀ {α : Type u_1} {a b c : α}, s(b, a) = s(c, a) ↔ b = c
theorem Sym2.mk_eq_mk_iff E0 #
∀ {α : Type u_1} {p q : α × α}, s(p.1, p.2) = s(q.1, q.2) ↔ p = q ∨ p = q.swap
def Sym2.lift E1 #
{α : Type u_1} → {β : Type u_2} → { f // ∀ (a₁ a₂ : α), f a₁ a₂ = f a₂ a₁ } ≃ (Sym2 α → β)
The universal property of Sym2; symmetric functions of two arguments are equivalent to
functions from Sym2. Note that when β is Prop, it can sometimes be more convenient to use
Sym2.fromRel instead.
theorem Sym2.lift_mk E0 #
∀ {α : Type u_1} {β : Type u_2} (f : { f // ∀ (a₁ a₂ : α), f a₁ a₂ = f a₂ a₁ }) (a b : α), Sym2.lift f s(a, b) = ↑f a b
theorem Sym2.coe_lift_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (F : Sym2 α → β) (a₁ a₂ : α), ↑(Sym2.lift.symm F) a₁ a₂ = F s(a₁, a₂)
def Sym2.lift₂ E1 #
{α : Type u_1} →
{β : Type u_2} →
{γ : Type u_3} →
{ f // ∀ (a₁ a₂ : α) (b₁ b₂ : β), f a₁ a₂ b₁ b₂ = f a₂ a₁ b₁ b₂ ∧ f a₁ a₂ b₁ b₂ = f a₁ a₂ b₂ b₁ } ≃
(Sym2 α → Sym2 β → γ)
A two-argument version of Sym2.lift.
theorem Sym2.lift₂_mk E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3}
(f : { f // ∀ (a₁ a₂ : α) (b₁ b₂ : β), f a₁ a₂ b₁ b₂ = f a₂ a₁ b₁ b₂ ∧ f a₁ a₂ b₁ b₂ = f a₁ a₂ b₂ b₁ }) (a₁ a₂ : α)
(b₁ b₂ : β), Sym2.lift₂ f s(a₁, a₂) s(b₁, b₂) = ↑f a₁ a₂ b₁ b₂
theorem Sym2.coe_lift₂_symm_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (F : Sym2 α → Sym2 β → γ) (a₁ a₂ : α) (b₁ b₂ : β),
↑(Sym2.lift₂.symm F) a₁ a₂ b₁ b₂ = F s(a₁, a₂) s(b₁, b₂)
def Sym2.map E1 #
{α : Type u_1} → {β : Type u_2} → (α → β) → Sym2 α → Sym2 β
The functor Sym2 is functorial, and this function constructs the induced maps.
theorem Sym2.map_id E0 #
∀ {α : Type u_1}, Sym2.map id = id
theorem Sym2.map_comp E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {g : β → γ} {f : α → β}, Sym2.map (g ∘ f) = Sym2.map g ∘ Sym2.map f
theorem Sym2.map_map E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {g : β → γ} {f : α → β} (x : Sym2 α),
Sym2.map g (Sym2.map f x) = Sym2.map (g ∘ f) x
theorem Sym2.map_mk E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (a b : α), Sym2.map f s(a, b) = s(f a, f b)
theorem Sym2.map.injective E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → Function.Injective (Sym2.map f)
def Sym2.mkEmbedding E1 #
{α : Type u_1} → α → α ↪ Sym2 α
mk a as an embedding. This is the symmetric version of Function.Embedding.sectL.
theorem Sym2.mkEmbedding_apply E0 #
∀ {α : Type u_1} (a b : α), (Sym2.mkEmbedding a) b = s(a, b)
def Function.Embedding.sym2Map E1 #
{α : Type u_1} → {β : Type u_2} → (α ↪ β) → Sym2 α ↪ Sym2 β
Sym2.map as an embedding.
theorem Function.Embedding.sym2Map_apply E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α ↪ β) (a : Sym2 α), f.sym2Map a = Sym2.map (⇑f) a
theorem Sym2.lift_comp_map E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {g : γ → α} (f : { f // ∀ (a₁ a₂ : α), f a₁ a₂ = f a₂ a₁ }),
Sym2.lift f ∘ Sym2.map g = Sym2.lift ⟨fun c₁ c₂ ↦ ↑f (g c₁) (g c₂), ⋯⟩
theorem Sym2.lift_map_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {g : γ → α} (f : { f // ∀ (a₁ a₂ : α), f a₁ a₂ = f a₂ a₁ }) (p : Sym2 γ),
Sym2.lift f (Sym2.map g p) = Sym2.lift ⟨fun c₁ c₂ ↦ ↑f (g c₁) (g c₂), ⋯⟩ p
def Sym2.Mem E1 #
{α : Type u_1} → α → Sym2 α → Prop
This is a predicate that determines whether a given term is a member of a term of the
symmetric square. From this point of view, the symmetric square is the subtype of
cardinality-two multisets on α.
theorem Sym2.mem_iff' E0 #
∀ {α : Type u_1} {a b c : α}, Sym2.Mem a s(b, c) ↔ a = b ∨ a = c
instance Sym2.instSetLike E0 #
{α : Type u_1} → SetLike (Sym2 α) α
instance Sym2.instPartialOrder E0 #
{α : Type u_1} → PartialOrder (Sym2 α)
theorem Sym2.mem_iff_mem E0 #
∀ {α : Type u_1} {x : α} {z : Sym2 α}, Sym2.Mem x z ↔ x ∈ z
theorem Sym2.mem_iff_exists E0 #
∀ {α : Type u_1} {x : α} {z : Sym2 α}, x ∈ z ↔ ∃ y, z = s(x, y)
theorem Sym2.ext_iff E0 #
∀ {α : Type u_1} {p q : Sym2 α}, p = q ↔ ∀ (x : α), x ∈ p ↔ x ∈ q
theorem Sym2.ext E1 #
∀ {α : Type u_1} {p q : Sym2 α}, (∀ (x : α), x ∈ p ↔ x ∈ q) → p = q
theorem Sym2.mem_mk_left E0 #
∀ {α : Type u_1} (x y : α), x ∈ s(x, y)
theorem Sym2.mem_mk_right E0 #
∀ {α : Type u_1} (x y : α), y ∈ s(x, y)
theorem Sym2.mem_iff E0 #
∀ {α : Type u_1} {a b c : α}, a ∈ s(b, c) ↔ a = b ∨ a = c
theorem Sym2.out_fst_mem E1 #
∀ {α : Type u_1} (e : Sym2 α), (Quot.out e).1 ∈ e
theorem Sym2.out_snd_mem E1 #
∀ {α : Type u_1} (e : Sym2 α), (Quot.out e).2 ∈ e
theorem Sym2.mk_fst_out_snd_out E1 #
∀ {α : Type u_1} (z : Sym2 α), s((Quot.out z).1, (Quot.out z).2) = z
theorem Sym2.fst_out_mk_self E0 #
∀ {α : Type u_1} {x : α}, (Quot.out s(x, x)).1 = x
theorem Sym2.snd_out_mk_self E0 #
∀ {α : Type u_1} {x : α}, (Quot.out s(x, x)).2 = x
theorem Sym2.ball E1 #
∀ {α : Type u_1} {p : α → Prop} {a b : α}, (∀ c ∈ s(a, b), p c) ↔ p a ∧ p b
theorem Sym2.coe_mk E0 #
∀ {α : Type u_1} {x y : α}, ↑s(x, y) = {x, y}
theorem Sym2.coe_map E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (z : Sym2 α), ↑(Sym2.map f z) = f '' ↑z
def Sym2.Mem.other E1 #
{α : Type u_1} → {a : α} → {z : Sym2 α} → a ∈ z → α
Given an element of the unordered pair, give the other element using Classical.choose.
See also Mem.other' for the computable version.
theorem Sym2.other_spec E0 #
∀ {α : Type u_1} {a : α} {z : Sym2 α} (h : a ∈ z), s(a, Sym2.Mem.other h) = z
theorem Sym2.other_mem E1 #
∀ {α : Type u_1} {a : α} {z : Sym2 α} (h : a ∈ z), Sym2.Mem.other h ∈ z
theorem Sym2.mem_and_mem_iff E0 #
∀ {α : Type u_1} {x y : α} {z : Sym2 α}, x ≠ y → (x ∈ z ∧ y ∈ z ↔ z = s(x, y))
instance Sym2.Mem.decidable E0 #
{α : Type u_1} → [DecidableEq α] → (x : α) → (z : Sym2 α) → Decidable (x ∈ z)
theorem Sym2.mem_map E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {b : β} {z : Sym2 α}, b ∈ Sym2.map f z ↔ ∃ a ∈ z, f a = b
theorem Sym2.map_congr E0 #
∀ {α : Type u_1} {β : Type u_2} {f g : α → β} {s s' : Sym2 α},
s = s' → (∀ x ∈ s, f x = g x) → Sym2.map f s = Sym2.map g s'
theorem Sym2.map_id' E0 #
∀ {α : Type u_1}, (Sym2.map fun x ↦ x) = id
Note: Sym2.map_id will not simplify Sym2.map id z due to Sym2.map_congr.
def Sym2.pmap E1 #
{α : Type u_1} → {β : Type u_2} → {P : α → Prop} → ((a : α) → P a → β) → (s : Sym2 α) → (∀ a ∈ s, P a) → Sym2 β
Partial map. If f : ∀ a, p a → β is a partial function defined on a : α satisfying p,
then pmap f s h is essentially the same as map f s but is defined only when all members of s
satisfy p, using the proof to apply f.
theorem Sym2.forall_mem_pair E1 #
∀ {α : Type u_1} {P : α → Prop} {a b : α}, (∀ x ∈ s(a, b), P x) ↔ P a ∧ P b
theorem Sym2.pair_eq_pmap E1 #
∀ {α : Type u_1} {β : Type u_2} {P : α → Prop} (f : (a : α) → P a → β) (a b : α) (h : P a) (h' : P b),
s(f a h, f b h') = Sym2.pmap f s(a, b) ⋯
theorem Sym2.pmap_pair E1 #
∀ {α : Type u_1} {β : Type u_2} {P : α → Prop} (f : (a : α) → P a → β) (a b : α) (h : ∀ x ∈ s(a, b), P x),
Sym2.pmap f s(a, b) h = s(f a ⋯, f b ⋯)
theorem Sym2.mem_pmap_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {P : α → Prop} (f : (a : α) → P a → β) (z : Sym2 α) (h : ∀ a ∈ z, P a) (b : β),
b ∈ Sym2.pmap f z h ↔ ∃ a, ∃ (ha : a ∈ z), b = f a ⋯
theorem Sym2.pmap_eq_map E1 #
∀ {α : Type u_1} {β : Type u_2} {P : α → Prop} (f : α → β) (z : Sym2 α) (h : ∀ a ∈ z, P a),
Sym2.pmap (fun a x ↦ f a) z h = Sym2.map f z
theorem Sym2.map_pmap E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {Q : β → Prop} (f : α → β) (g : (b : β) → Q b → γ) (z : Sym2 α)
(h : ∀ b ∈ Sym2.map f z, Q b), Sym2.pmap g (Sym2.map f z) h = Sym2.pmap (fun a ha ↦ g (f a) ⋯) z ⋯
theorem Sym2.pmap_map E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {P : α → Prop} (f : (a : α) → P a → β) (g : β → γ) (z : Sym2 α)
(h : ∀ a ∈ z, P a), Sym2.map g (Sym2.pmap f z h) = Sym2.pmap (fun a ha ↦ g (f a ⋯)) z ⋯
theorem Sym2.pmap_pmap E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {P : α → Prop} {Q : β → Prop} (f : (a : α) → P a → β)
(g : (b : β) → Q b → γ) (z : Sym2 α) (h : ∀ a ∈ z, P a) (h' : ∀ b ∈ Sym2.pmap f z h, Q b),
Sym2.pmap g (Sym2.pmap f z h) h' = Sym2.pmap (fun a ha ↦ g (f a ⋯) ⋯) z ⋯
theorem Sym2.pmap_subtype_map_subtypeVal E0 #
∀ {α : Type u_1} {P : α → Prop} (s : Sym2 α) (h : ∀ a ∈ s, P a), Sym2.map Subtype.val (Sym2.pmap Subtype.mk s h) = s
def Sym2.attachWith E1 #
{α : Type u_1} → {P : α → Prop} → (s : Sym2 α) → (∀ a ∈ s, P a) → Sym2 { a // P a }
"Attach" a proof P a that holds for all the elements of s to produce a new Sym2 object
with the same elements but in the type {x // P x}.
theorem Sym2.attachWith_map_subtypeVal E0 #
∀ {α : Type u_1} {s : Sym2 α} {P : α → Prop} (h : ∀ a ∈ s, P a), Sym2.map Subtype.val (s.attachWith h) = s
theorem Sym2.attachWith_mk E0 #
∀ {α : Type u_1} {P : α → Prop} (a b : α) (h : ∀ x ∈ s(a, b), P x), s(a, b).attachWith h = s(⟨a, ⋯⟩, ⟨b, ⋯⟩)
theorem Sym2.attachWith_inj E0 #
∀ {α : Type u_1} {P : α → Prop} {z₁ z₂ : Sym2 α} {h₁ : ∀ a ∈ z₁, P a} {h₂ : ∀ a ∈ z₂, P a},
z₁.attachWith h₁ = z₂.attachWith h₂ ↔ z₁ = z₂
def Sym2.diag E1 #
{α : Type u_1} → α → Sym2 α
A type α is naturally included in the diagonal of α × α, and this function gives the image
of this diagonal in Sym2 α.
theorem Sym2.diag_injective E1 #
∀ {α : Type u_1}, Function.Injective Sym2.diag
def Sym2.IsDiag E1 #
{α : Type u_1} → Sym2 α → Prop
A predicate for testing whether an element of Sym2 α is on the diagonal.
theorem Sym2.mk_isDiag_iff E0 #
∀ {α : Type u_1} {x y : α}, s(x, y).IsDiag ↔ x = y
theorem Sym2.IsDiag.map E1 #
∀ {α : Type u_1} {β : Type u_2} {z : Sym2 α} {f : α → β}, z.IsDiag → (Sym2.map f z).IsDiag
theorem Sym2.isDiag_map E1 #
∀ {α : Type u_1} {β : Type u_2} {z : Sym2 α} {f : α → β}, Function.Injective f → ((Sym2.map f z).IsDiag ↔ z.IsDiag)
theorem Sym2.diag_isDiag E0 #
∀ {α : Type u_1} (a : α), (Sym2.diag a).IsDiag
theorem Sym2.isDiag_of_subsingleton E0 #
∀ {α : Type u_1} [Subsingleton α] (z : Sym2 α), z.IsDiag
def Sym2.diagElem E1 #
{α : Type u_1} → (z : Sym2 α) → z.IsDiag → α
Computably extract the element when known to be diagonal.
theorem Sym2.diagElem_mk E0 #
∀ {α : Type u_1} {a b : α} (h : s(a, b).IsDiag), s(a, b).diagElem h = a
theorem Sym2.diag_diagElem E0 #
∀ {α : Type u_1} {z : Sym2 α} (h : z.IsDiag), Sym2.diag (z.diagElem h) = z
theorem Sym2.mk_fiber_of_isDiag E1 #
∀ {α : Type u_1} {z : Sym2 α} (hz : z.IsDiag), Function.uncurry Sym2.mk ⁻¹' {z} = {Function.diag (z.diagElem hz)}
def Sym2.diagElemEquiv E1 #
{α : Type u_1} → { a // a.IsDiag } ≃ α
Sym2.diagElem and Sym2.diag as an equivalence.
theorem Sym2.diagElemEquiv_symm_apply_coe E0 #
∀ {α : Type u_1} (a : α), ↑(Sym2.diagElemEquiv.symm a) = Sym2.diag a
theorem Sym2.diagElemEquiv_apply E0 #
∀ {α : Type u_1} (x : { a // a.IsDiag }), Sym2.diagElemEquiv x = (↑x).diagElem ⋯
def Sym2.diagSet E1 #
{α : Type u_1} → Set (Sym2 α)
The set of all Sym2 α elements on the diagonal.
theorem Sym2.mem_diagSet E0 #
∀ {α : Type u_1} {z : Sym2 α}, z ∈ Sym2.diagSet ↔ z.IsDiag
theorem Sym2.range_diag E0 #
∀ {α : Type u_1}, Set.range Sym2.diag = Sym2.diagSet
theorem Sym2.diagSet_eq_setOfPred_isDiag E1 #
∀ {α : Type u_1}, Sym2.diagSet = {z | z.IsDiag}
theorem Sym2.diagSet_eq_univ_of_subsingleton E1 #
∀ {α : Type u_1} [Subsingleton α], Sym2.diagSet = Set.univ
instance Sym2.IsDiag.decidablePred E0 #
(α : Type u) → [DecidableEq α] → DecidablePred Sym2.IsDiag
instance Sym2.decidablePred_mem_diagSet E0 #
(α : Type u) → [DecidableEq α] → DecidablePred fun x ↦ x ∈ Sym2.diagSet
theorem Sym2.other_ne E1 #
∀ {α : Type u_1} {a : α} {z : Sym2 α}, ¬z.IsDiag → ∀ (h : a ∈ z), Sym2.Mem.other h ≠ a
def Sym2.fromRel E1 #
{α : Type u_1} → {r : α → α → Prop} → Std.Symm r → Set (Sym2 α)
Symmetric relations define a set on Sym2 α by taking all those pairs
of elements that are related.
theorem Sym2.fromRel_prop E0 #
∀ {α : Type u_1} {r : α → α → Prop} {sym : Std.Symm r} {a b : α}, s(a, b) ∈ Sym2.fromRel sym ↔ r a b
theorem Sym2.fromRel_mono_iff E0 #
∀ {α : Type u_1} {r₁ r₂ : α → α → Prop} (sym₁ : Std.Symm r₁) (sym₂ : Std.Symm r₂),
Sym2.fromRel sym₁ ⊆ Sym2.fromRel sym₂ ↔ r₁ ≤ r₂
theorem Sym2.fromRel_mono E1 #
∀ {α : Type u_1} {r₁ r₂ : α → α → Prop} (sym₁ : Std.Symm r₁) (sym₂ : Std.Symm r₂),
r₁ ≤ r₂ → Sym2.fromRel sym₁ ⊆ Sym2.fromRel sym₂
Alias of the reverse direction of Sym2.fromRel_mono_iff.
theorem Sym2.mem_fromRel_comap E0 #
∀ {α : Type u_1} {β : Type u_2} {r : β → β → Prop} (sym : Std.Symm r) (f : α → β) (z : Sym2 α),
z ∈ Sym2.fromRel ⋯ ↔ Sym2.map f z ∈ Sym2.fromRel sym
theorem Sym2.fromRel_bot E1 #
∀ {α : Type u_1}, Sym2.fromRel ⋯ = ∅
theorem Sym2.fromRel_bot_iff E0 #
∀ {α : Type u_1} {r : α → α → Prop} {sym : Std.Symm r}, Sym2.fromRel sym = ∅ ↔ r = ⊥
theorem Sym2.fromRel_top E1 #
∀ {α : Type u_1}, Sym2.fromRel ⋯ = Set.univ
theorem Sym2.fromRel_top_iff E0 #
∀ {α : Type u_1} {r : α → α → Prop} {sym : Std.Symm r}, Sym2.fromRel sym = Set.univ ↔ r = ⊤
theorem Sym2.fromRel_ne E1 #
∀ {α : Type u_1}, Sym2.fromRel ⋯ = {z | ¬z.IsDiag}
theorem Sym2.diagSet_eq_fromRel_eq E0 #
∀ {α : Type u_1}, Sym2.diagSet = Sym2.fromRel ⋯
theorem Sym2.diagSet_compl_eq_fromRel_ne E1 #
∀ {α : Type u_1}, Sym2.diagSetᶜ = Sym2.fromRel ⋯
theorem Sym2.diagSet_subset_fromRel E0 #
∀ {α : Type u_1} {r : α → α → Prop} (hr : Std.Symm r), Sym2.diagSet ⊆ Sym2.fromRel hr ↔ Std.Refl r
theorem Sym2.disjoint_diagSet_fromRel E0 #
∀ {α : Type u_1} {r : α → α → Prop} (hr : Std.Symm r), Disjoint Sym2.diagSet (Sym2.fromRel hr) ↔ Std.Irrefl r
theorem Sym2.fromRel_subset_compl_diagSet E0 #
∀ {α : Type u_1} {r : α → α → Prop} (hr : Std.Symm r), Sym2.fromRel hr ⊆ Sym2.diagSetᶜ ↔ Std.Irrefl r
theorem Sym2.fromRel_irrefl E1 #
∀ {α : Type u_1} {r : α → α → Prop} {sym : Std.Symm r}, Std.Irrefl r ↔ ∀ {z : Sym2 α}, z ∈ Sym2.fromRel sym → ¬z.IsDiag
theorem Sym2.mem_fromRel_irrefl_other_ne E0 #
∀ {α : Type u_1} {r : α → α → Prop} {sym : Std.Symm r},
Std.Irrefl r → ∀ {a : α} {z : Sym2 α}, z ∈ Sym2.fromRel sym → ∀ (h : a ∈ z), Sym2.Mem.other h ≠ a
instance Sym2.fromRel.decidablePred E0 #
{α : Type u_1} →
{r : α → α → Prop} → (sym : Std.Symm r) → [h : DecidableRel r] → DecidablePred fun x ↦ x ∈ Sym2.fromRel sym
theorem Sym2.fromRel_relationMap E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} (hr : Std.Symm r) (f : α → β),
Sym2.fromRel ⋯ = Sym2.map f '' Sym2.fromRel hr
def Sym2.fromRelNdrec E1 #
{α : Type u_1} →
{r : α → α → Prop} →
{motive : Sort u_4} →
{sym : Std.Symm r} →
(z : Sym2 α) →
z ∈ Sym2.fromRel sym →
(f : (a b : α) → r a b → motive) → (∀ (a b : α) (h : r a b), f a b h = f b a ⋯) → motive
Non-dependent recursor on members of a fromRel set
theorem Sym2.fromRelNdrec_mk E0 #
∀ {α : Type u_1} {r : α → α → Prop} {motive : Sort u_4} {sym : Std.Symm r} {a b : α} (hz : r a b)
(f : (a b : α) → r a b → motive) (h : ∀ (a b : α) (h : r a b), f a b h = f b a ⋯),
Sym2.fromRelNdrec s(a, b) hz f h = f a b hz
def Equiv.sigmaFiberFromRel E1 #
{α : Type u_1} →
{β : Type u_2} →
{r : α → α → Prop} →
(sym : Std.Symm r) → {f : α → β} → r ≤ ⇑(Setoid.ker f) → ↑(Sym2.fromRel sym) ≃ (b : β) × ↑(Sym2.fromRel ⋯)
The fromRel set of a symmetric relation r is equivalent to summing that set restricted to
fibers of a function f, given that f agrees on elements related by r.
theorem Equiv.sigmaFiberFromRel_symm_apply_coe E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} (sym : Std.Symm r) {f : α → β} (hf : r ≤ ⇑(Setoid.ker f))
(z : (b : β) × ↑(Sym2.fromRel ⋯)), ↑((Equiv.sigmaFiberFromRel sym hf).symm z) = Sym2.map Subtype.val ↑z.snd
theorem Equiv.sigmaFiberFromRel_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} (sym : Std.Symm r) {f : α → β} (hf : r ≤ ⇑(Setoid.ker f))
(z : ↑(Sym2.fromRel sym)),
(Equiv.sigmaFiberFromRel sym hf) z = Sym2.fromRelNdrec ↑z ⋯ (fun a₁ a₂ h ↦ ⟨f a₁, ⟨s(⟨a₁, ⋯⟩, ⟨a₂, ⋯⟩), h⟩⟩) ⋯
def Equiv.sigmaQuotFromRel E1 #
{α : Type u_1} →
{β : Type u_2} →
{r : α → α → Prop} →
(sym : Std.Symm r) → {r' : β → β → Prop} → (f : r →r r') → ↑(Sym2.fromRel sym) ≃ (q : Quot r') × ↑(Sym2.fromRel ⋯)
For a relation homomorphism r →r r' where r is symmetric, the fromRel set of r is
equivalent to summing that set restricted to equivalence classes of r' using a Subtype,
Quot version
theorem Equiv.sigmaQuotFromRel_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} (sym : Std.Symm r) {r' : β → β → Prop} (f : r →r r')
(z : ↑(Sym2.fromRel sym)),
(Equiv.sigmaQuotFromRel sym f) z =
Sym2.fromRelNdrec ↑z ⋯ (fun a₁ a₂ h ↦ ⟨Quot.mk r' (f a₁), ⟨s(⟨a₁, ⋯⟩, ⟨a₂, ⋯⟩), h⟩⟩) ⋯
theorem Equiv.sigmaQuotFromRel_symm_apply_coe E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} (sym : Std.Symm r) {r' : β → β → Prop} (f : r →r r')
(z : (b : Quot r') × ↑(Sym2.fromRel ⋯)), ↑((Equiv.sigmaQuotFromRel sym f).symm z) = Sym2.map Subtype.val ↑z.snd
def Equiv.sigmaQuotientFromRel E1 #
{α : Type u_1} →
{β : Type u_2} →
{r : α → α → Prop} →
(sym : Std.Symm r) →
{r' : Setoid β} → (f : r →r ⇑r') → ↑(Sym2.fromRel sym) ≃ (q : Quotient r') × ↑(Sym2.fromRel ⋯)
For a relation homomorphism r →r r' where r is symmetric, the fromRel set of r is
equivalent to summing that set restricted to equivalence classes of r' using a Subtype,
Quotient version
theorem Equiv.sigmaQuotientFromRel_symm_apply_coe E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} (sym : Std.Symm r) {r' : Setoid β} (f : r →r ⇑r')
(z : (b : Quotient r') × ↑(Sym2.fromRel ⋯)),
↑((Equiv.sigmaQuotientFromRel sym f).symm z) = Sym2.map Subtype.val ↑z.snd
theorem Equiv.sigmaQuotientFromRel_apply E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} (sym : Std.Symm r) {r' : Setoid β} (f : r →r ⇑r')
(z : ↑(Sym2.fromRel sym)),
(Equiv.sigmaQuotientFromRel sym f) z = Sym2.fromRelNdrec ↑z ⋯ (fun a₁ a₂ h ↦ ⟨⟦f a₁⟧, ⟨s(⟨a₁, ⋯⟩, ⟨a₂, ⋯⟩), h⟩⟩) ⋯
def Sym2.ToRel E1 #
{α : Type u_1} → Set (Sym2 α) → α → α → Prop
The inverse to Sym2.fromRel. Given a set on Sym2 α, give a symmetric relation on α
(see Sym2.toRel_symm).
theorem Sym2.toRel_prop E0 #
∀ {α : Type u_1} (s : Set (Sym2 α)) (x y : α), Sym2.ToRel s x y ↔ s(x, y) ∈ s
instance Sym2.toRel_symm E0 #
∀ {α : Type u_1} (s : Set (Sym2 α)), Std.Symm (Sym2.ToRel s)
theorem Sym2.toRel_fromRel E1 #
∀ {α : Type u_1} {r : α → α → Prop} (sym : Std.Symm r), Sym2.ToRel (Sym2.fromRel sym) = r
theorem Sym2.fromRel_toRel E1 #
∀ {α : Type u_1} (s : Set (Sym2 α)), Sym2.fromRel ⋯ = s
theorem Sym2.toRel_mono_iff E0 #
∀ {α : Type u_1} (s₁ s₂ : Set (Sym2 α)), Sym2.ToRel s₁ ≤ Sym2.ToRel s₂ ↔ s₁ ⊆ s₂
theorem Sym2.toRel_mono E1 #
∀ {α : Type u_1} (s₁ s₂ : Set (Sym2 α)), s₁ ⊆ s₂ → Sym2.ToRel s₁ ≤ Sym2.ToRel s₂
Alias of the reverse direction of Sym2.toRel_mono_iff.
def Sym2.toRelOrderEmbedding E1 #
(α : Type u_1) → Set (Sym2 α) ↪o (α → α → Prop)
ToRel induces an order embedding from Sym2 sets to relations
def Sym2.fromRelOrderIso E1 #
(α : Type u_1) → { r // Std.Symm r } ≃o Set (Sym2 α)
fromRel/ToRel induce an order isomorphism between symmetric relations and Sym2 sets
theorem Sym2.fromRelOrderIso_apply E0 #
∀ (α : Type u_1) (r : { r // Std.Symm r }), (Sym2.fromRelOrderIso α) r = Sym2.fromRel ⋯
theorem Sym2.fromRelOrderIso_symm_apply_coe E0 #
∀ (α : Type u_1) (s : Set (Sym2 α)) (x y : α), ↑((RelIso.symm (Sym2.fromRelOrderIso α)) s) x y = Sym2.ToRel s x y
theorem Sym2.fromRel_eq_fromRel_iff_eq E0 #
∀ {α : Type u_1} {r₁ r₂ : α → α → Prop} (sym₁ : Std.Symm r₁) (sym₂ : Std.Symm r₂),
Sym2.fromRel sym₁ = Sym2.fromRel sym₂ ↔ r₁ = r₂
def Sym2.toMultiset E1 #
{α : Type u_4} → Sym2 α → Multiset α
Map an unordered pair to an unordered list.
theorem Sym2.card_toMultiset E1 #
∀ {α : Type u_4} (z : Sym2 α), z.toMultiset.card = 2
Mapping an unordered pair to an unordered list produces a multiset of size 2.
theorem Sym2.mem_toMultiset E0 #
∀ {α : Type u_4} {x : α} {z : Sym2 α}, x ∈ z.toMultiset ↔ x ∈ z
The members of an unordered pair are members of the corresponding unordered list.
def Sym2.toFinset E1 #
{α : Type u_1} → [DecidableEq α] → Sym2 α → Finset α
Map an unordered pair to a finite set.
theorem Sym2.mem_toFinset E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {x : α} {z : Sym2 α}, x ∈ z.toFinset ↔ x ∈ z
The members of an unordered pair are members of the corresponding finite set.
theorem Sym2.toFinset_nonempty E0 #
∀ {α : Type u_1} [inst : DecidableEq α] (z : Sym2 α), z.toFinset.Nonempty
theorem Sym2.toFinset_mk_eq E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {x y : α}, s(x, y).toFinset = {x, y}
theorem Sym2.card_toFinset_of_isDiag E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (z : Sym2 α), z.IsDiag → z.toFinset.card = 1
Mapping an unordered pair on the diagonal to a finite set produces a finset of size 1.
theorem Sym2.card_toFinset_of_not_isDiag E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (z : Sym2 α), ¬z.IsDiag → z.toFinset.card = 2
Mapping an unordered pair off the diagonal to a finite set produces a finset of size 2.
theorem Sym2.card_toFinset E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (z : Sym2 α), z.toFinset.card = if z.IsDiag then 1 else 2
Mapping an unordered pair to a finite set produces a finset of size 1 if the pair is on the
diagonal, else of size 2 if the pair is off the diagonal.
def Sym2.sym2EquivSym' E1 #
{α : Type u_1} → Sym2 α ≃ Sym.Sym' α 2
The symmetric square is equivalent to length-2 vectors up to permutations.
def Sym2.equivSym E1 #
(α : Type u_4) → Sym2 α ≃ Sym α 2
The symmetric square is equivalent to the second symmetric power.
def Sym2.equivMultiset E1 #
(α : Type u_4) → Sym2 α ≃ { s // s.card = 2 }
The symmetric square is equivalent to multisets of cardinality
two. (This is currently a synonym for equivSym, but it's provided
in case the definition for Sym changes.)
instance Sym2.instDecidableRel E0 #
{α : Type u_1} → [DecidableEq α] → DecidableRel (Sym2.Rel α)
Given [DecidableEq α] and [Fintype α], the following instance gives Fintype (Sym2 α).
instance Sym2.instDecidableRel' E0 #
{α : Type u_1} → [DecidableEq α] → DecidableRel HasEquiv.Equiv
instance Sym2.instDecidableEq E0 #
{α : Type u_1} → [DecidableEq α] → DecidableEq (Sym2 α)
def Sym2.Mem.other' E1 #
{α : Type u_1} → [DecidableEq α] → {a : α} → {z : Sym2 α} → a ∈ z → α
Get the other element of the unordered pair using the decidable equality.
This is the computable version of Mem.other.
theorem Sym2.other_spec' E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {a : α} {z : Sym2 α} (h : a ∈ z), s(a, Sym2.Mem.other' h) = z
theorem Sym2.other_eq_other' E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {a : α} {z : Sym2 α} (h : a ∈ z), Sym2.Mem.other h = Sym2.Mem.other' h
theorem Sym2.other_mem' E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {a : α} {z : Sym2 α} (h : a ∈ z), Sym2.Mem.other' h ∈ z
theorem Sym2.other_invol' E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {a : α} {z : Sym2 α} (ha : a ∈ z) (hb : Sym2.Mem.other' ha ∈ z),
Sym2.Mem.other' hb = a
theorem Sym2.other_invol E1 #
∀ {α : Type u_1} {a : α} {z : Sym2 α} (ha : a ∈ z) (hb : Sym2.Mem.other ha ∈ z), Sym2.Mem.other hb = a
theorem Sym2.filter_image_mk_isDiag E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (s : Finset α),
{x ∈ Finset.image (Function.uncurry Sym2.mk) (s ×ˢ s) | x.IsDiag} = Finset.image (Function.uncurry Sym2.mk) s.diag
theorem Sym2.filter_image_mk_not_isDiag E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (s : Finset α),
{x ∈ Finset.image (Function.uncurry Sym2.mk) (s ×ˢ s) | ¬x.IsDiag} = Finset.image (Function.uncurry Sym2.mk) s.offDiag
instance Sym2.instSubsingleton E0 #
∀ {α : Type u_1} [Subsingleton α], Subsingleton (Sym2 α)
instance Sym2.instUnique E0 #
{α : Type u_1} → [Unique α] → Unique (Sym2 α)
instance Sym2.instIsEmpty E0 #
∀ {α : Type u_1} [IsEmpty α], IsEmpty (Sym2 α)
instance Sym2.instNontrivial E0 #
∀ {α : Type u_1} [Nontrivial α], Nontrivial (Sym2 α)
instance Sym2.instRepr E0 #
{α : Type u_1} → [Repr α] → Repr (Sym2 α)
theorem Sym2.lift_smul_lift E1 #
∀ {α : Type u_4} {R : Type u_5} {N : Type u_6} [inst : SMul R N] (f : { f // ∀ (a₁ a₂ : α), f a₁ a₂ = f a₂ a₁ })
(g : { g // ∀ (a₁ a₂ : α), g a₁ a₂ = g a₂ a₁ }), Sym2.lift f • Sym2.lift g = Sym2.lift ⟨↑f • ↑g, ⋯⟩
def Sym2.mul E1 #
{M : Type u_4} → [CommMagma M] → Sym2 M → M
Multiplication as a function from Sym2.
def Sym2.add E1 #
{M : Type u_4} → [AddCommMagma M] → Sym2 M → M
Addition as a function from Sym2.
theorem Sym2.mul_mk E0 #
∀ {M : Type u_4} [inst : CommMagma M] (a b : M), s(a, b).mul = a * b
theorem Sym2.add_mk E0 #
∀ {M : Type u_4} [inst : AddCommMagma M] (a b : M), s(a, b).add = a + b
def Set.sym2 E1 #
{α : Type u_1} → Set α → Set (Sym2 α)
For a set s : Set α, s.sym2 is the set of all unordered pairs of elements from s.
theorem Set.mk_mem_sym2_iff E0 #
∀ {α : Type u_1} {s : Set α} {x y : α}, s(x, y) ∈ s.sym2 ↔ x ∈ s ∧ y ∈ s
theorem Set.mem_sym2_iff_subset E0 #
∀ {α : Type u_1} {s : Set α} {z : Sym2 α}, z ∈ s.sym2 ↔ ↑z ⊆ s
def Set.sym2Equiv E1 #
{α : Type u_1} → (s : Set α) → ↑s.sym2 ≃ Sym2 ↑s
The set of all unordered pairs of elements from a set is equivalent to the type of all unordered pairs of elements from that set.
theorem Set.sym2_eq_mk_image E1 #
∀ {α : Type u_1} {s : Set α}, s.sym2 = Function.uncurry Sym2.mk '' s ×ˢ s
theorem Set.mk_preimage_sym2 E0 #
∀ {α : Type u_1} {s : Set α}, Function.uncurry Sym2.mk ⁻¹' s.sym2 = s ×ˢ s
theorem Set.sym2_empty E0 #
∀ {α : Type u_1}, ∅.sym2 = ∅
theorem Set.sym2_univ E0 #
∀ {α : Type u_1}, Set.univ.sym2 = Set.univ
theorem Set.sym2_singleton E0 #
∀ {α : Type u_1} (a : α), {a}.sym2 = {s(a, a)}
theorem Set.sym2_insert E1 #
∀ {α : Type u_1} (a : α) (s : Set α), (insert a s).sym2 = (fun b ↦ s(a, b)) '' insert a s ∪ s.sym2
theorem Set.sym2_preimage E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set β}, (f ⁻¹' s).sym2 = Sym2.map f ⁻¹' s.sym2
theorem Set.sym2_image E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set α}, (f '' s).sym2 = Sym2.map f '' s.sym2
theorem Set.sym2_inter E1 #
∀ {α : Type u_1} (s t : Set α), (s ∩ t).sym2 = s.sym2 ∩ t.sym2
theorem Set.sym2_iInter E1 #
∀ {α : Type u_1} {ι : Type u_4} (f : ι → Set α), (⋂ i, f i).sym2 = ⋂ i, (f i).sym2
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Sym2.diagSet_eq_setOf_isDiag | Sym2.diagSet_eq_setOfPred_isDiag | 2026-07-09 |
Sym2.toFinset_ne_empty | Sym2.toFinset_nonempty | 2026-11-11 |
Sym2.toRel_symmetric | Sym2.toRel_symm | 2026-06-10 |