Similarity orderings #
A SimilarityOrdering W is a centered family of preorders: for each
center w₀, atCenter w₀ is the closeness Preorder ((atCenter w₀).le w₁ w₂
means w₁ is at least as close to w₀ as w₂). This replaces the former
hand-rolled ternary relation closer with per-center reflexivity/transitivity
fields — those are now just the Preorder axioms of atCenter w₀.
The closest worlds are mathlib's Minimal, and the Limit Assumption is
Set.Finite.exists_minimal.
Key operations #
atCenter w₀— the closeness preorder centered atw₀.closer w₀ w₁ w₂—(atCenter w₀).le w₁ w₂, the ternary closeness relation.closestWorlds w₀ A— minimal elements of aFinsetundercloser w₀.isCentered— strong centering ([Lew73b]).≤[sim, w₀]notation:w₁ ≤[sim, w₀] w₂reads "w₁is at least as similar tow₀asw₂is".
Structure #
closer w₀ w₁ w₂ means w₁ is at least as close to w₀ as w₂ is —
the ≤ of the preorder centered at w₀.
Instances For
Equations
- sim.instDecidableCloser w₀ w₁ w₂ = sim.decClose w₀ w₁ w₂
Every world is at least as close to any center as itself.
Constructors #
Construct a SimilarityOrdering from a Bool-valued function.
Reflexivity and transitivity can typically be discharged by decide.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Centering #
A strongly centered similarity ordering: every world is strictly closest to itself ([Lew73b]'s centering axiom).
Instances For
Closest worlds #
The closest A-worlds to w₀: the minimal elements of A under the
similarity preorder centered at w₀.
Instances For
Closest-world membership is preserved when restricting to a subset.
Limit Assumption ([Lew73b]): every non-empty Finset has a
closest world. Routes through Set.Finite.exists_minimal on the
preorder centered at w₀.
Selection-function bridge primitives #
Candidate selection set: the worlds in A ∩ domain that are minimal
at w under the similarity ordering.
Equations
- Core.Order.candidateSelections sim domain w A = {w' : W | w' ∈ A ∩ domain ∧ ∀ w'' ∈ A ∩ domain, w' ≤[sim,w] w''}
Instances For
Comparative-closeness notation ([Lew73b]): w₁ ≤[sim, w₀] w₂
reads "w₁ is at least as similar to w₀ as w₂ is".
Equations
- One or more equations did not get rendered due to their size.