Documentation

LeanPool.ApollonianSuperharmonic.PairAssignmentFacts

PairAssignmentFacts #

Shared facts adapted from Wesley Pegden's Apache-2.0 Trellis formalization.

theorem ApollonianSuperharmonic.PairAssignmentFacts.assignment {α : Type u_1} (a b x y : α) (ha : a = x ∨ a = y) (hb : b = x ∨ b = y) (hab : a ≠ b) :
a = x ∧ b = y ∨ a = y ∧ b = x

Distinct elements assigned to a two-element set use both slots.

theorem ApollonianSuperharmonic.PairAssignmentFacts.finsetPair {α : Type u_1} [DecidableEq α] {a b c d : α} (h : {a, b} = {c, d}) :
a = c ∧ b = d ∨ a = d ∧ b = c

Equality of unordered pairs gives one of the two ordered assignments.