Source-linked AI summary

On the Triangle Inequality for the Jaccard Distance in Arbitrary Lattices

Costin Bădică, Amelia Bădică

arXiv:2608.18194v1cs.AIcs.DMmath.CO

TL;DR

The paper asks when generalized Jaccard distance satisfies the triangle inequality beyond Boolean and distributive lattice assumptions. It characterizes valuation conditions that ensure metricity across broader lattice classes and identifies practical computational settings where these relaxations apply.

  • Problem

    The central gap is determining the structural and valuation conditions under which generalized Jaccard distance remains a valid metric beyond restrictive lattice assumptions.

  • Method

    The paper adapts Gilbert’s proof and uses relative or sectional complementation to derive metricity conditions for modular, supermodular, log-submodular, and submodular valuations.

  • Results

    Strictly positive, monotone, modular valuations yield a metric on arbitrary lattices, while broader valuation classes achieve metricity on complemented distributive lattices with supermodularity and monotonicity required.

  • Takeaways & Limitations

    Relaxing distributivity and global-bound requirements extends generalized Jaccard metrics to quantum-information lattices, fuzzy sets, formal concept hierarchies, and temporal or IoT streams.

  • Takeaways & Limitations

    For supermodular and log-submodular valuations, triangle-inequality validity on arbitrary lattices lacking relative complementation or distributivity remains unknown.

Abstract

from arXiv · show

This paper presents new theoretical results on generalizing the Jaccard distance for lattices and real valuations. We demonstrate that when the valuation is strictly positive, monotone, and modular, the Jaccard distance satisfies the triangle inequality on arbitrary lattices, effectively generalizing earlier results that depended heavily on distributivity. Moving to relatively complemented distributive lattices (which safely drop the requirement for the global bounds found in Boolean algebras), we prove the triangle inequality holds as long as the valuation is positive, monotone, supermodular, and $\log$-submodular. Additionally, we adapt the symmetric-difference Jaccard formulation for submodular valuations to sectionally complemented distributive lattices. Shifting to necessary conditions, we prove that supermodularity is a strict requirement for the standard generalized Jaccard distance to operate as a valid metric. Finally, we map the practical value of relaxing these structural constraints to computational fields like quantum information theory, formal concept analysis, and machine learning, closing with a brief look at open mathematical problems.

1 Introduction

The introduction frames the generalized Jaccard distance as a metric whose triangle inequality is practically important but whose existing theory depends heavily on Boolean-algebra structure. The paper removes these structural constraints by identifying valuation-based conditions for metricity across broader lattices and applications.

  • Motivation: The triangle inequality enables pruning, faster clustering, and valid approximation bounds in exact nearest-neighbor search, k-means, and metric traveling salesperson models.It ensures that a direct path is no longer than a path through an intermediate point.
  • Contribution: The paper shifts attention from lattice restrictions to valuation properties and maps the mathematical boundaries where generalized Jaccard distance remains a valid metric.The framework uses arbitrary real-valued valuations on lattice structures rather than domain-specific size operators.
  • Problem: Existing generalized Jaccard-distance results rely heavily on Boolean-algebra distributivity and global bounds, limiting use in quantum logic and open-ended data streams.Prior work also used modular valuations and symmetric-difference constructions that do not transfer naturally to arbitrary lattices.
  • Contribution: It proves triangle-inequality validity for modular valuations on arbitrary lattices and for supermodular, log-submodular, and submodular valuations on lattices with localized complements.Relatively complemented distributive lattices remove the need for global top and bottom elements, while sectionally complemented distributive lattices support the submodular symmetric-difference formulation.
  • Contribution: The paper proves that supermodularity of f and 1/f is necessary for the standard generalized formulation to define a metric and connects the results to quantum information theory and continuous-stream machine learning.These applications involve non-distributive orthomodular lattices and unbounded dynamic data structures.

2 Background

This section establishes lattice definitions, valuation-function properties, and the structural classes used throughout the paper. It also records complement uniqueness in distributive complemented lattices.

  • Lattice foundations: A lattice is a partially ordered set in which every pair has a meet and a join, equivalently an algebra with idempotent, commutative, associative, and absorption-law operations.The connection lemma states that the order-theoretic and algebraic definitions are equivalent.
  • Valuation functions: Real valuations f: L → R classify as positive, strictly positive, modular, submodular, log-submodular, supermodular, or monotone according to stated inequalities and order conditions.Modularity uses equality, while submodularity and supermodularity use opposite inequality directions.
  • Lattice classes: The paper uses distributive, lower bounded, relatively complemented, and sectionally complemented lattices, each adding structural constraints on joins, meets, bounds, or interval complements.Relative complementation applies to every closed interval, whereas sectional complementation requires a lower bound and complements in intervals [⊥, V].
  • Lattice classes: In distributive complemented lattices, including relative and sectional variants, each element has a unique complement.For a sectionally complemented distributive lattice and X ≤ Y, X′ denotes the unique complement of X within [⊥, Y].

3 Result for Modular Valuations

The section proves that the generalized Jaccard distance satisfies the triangle inequality on arbitrary lattices when the valuation is strictly positive, monotone, and modular. It identifies Gilbert’s condition as equivalent to monotonicity and modularity, eliminating the need for distributivity while noting that strict monotonicity is needed for a true metric.

  • Gilbert condition: Gilbert’s condition is equivalent to f being modular and monotone, so distributivity and the full Boolean axioms are unnecessary.The condition is a single generalized requirement that supports the triangle-inequality proof on arbitrary lattices.
  • Main result: Theorem 1 establishes the triangle inequality for df,J on arbitrary lattices when f is strictly positive, monotone, and modular.The result follows by combining the equivalence between Gilbert’s condition and valuation properties with the condition’s sufficiency for the triangle inequality.
  • Metric status: The resulting df,J is generally a pseudometric; strict monotonicity is required for df,J(A, B) = 0 if and only if A = B.Strict positivity, monotonicity, and modularity guarantee the triangle inequality, but identity of indiscernibles requires the stronger strict-monotonicity condition.
  • Relation to prior work: Kosub’s proof also extends to arbitrary lattices because order inequalities suffice where distributivity had previously supplied an equality.The relevant bounds follow from A ∨C ≥ A, C and B ∨C ≥ B, C.
  • Metric-lattice interpretation: Monotone modular valuations define metric lattices with δ(X, Y ) = f(X ∨Y ) −f(X ∧Y ), while df,J provides a normalized alternative.A biotope-transform route applies under tighter assumptions: a lower bound ⊥ and f(⊥) = 0.

4 Result for Supermodular and log-Submodular Valuations

The section establishes that generalized Jaccard distance satisfies the triangle inequality under supermodular and log-submodular valuations on relatively complemented distributive lattices. It also derives additive and multiplicative diminishing-returns properties and explains why the result applies without global lattice bounds.

  • Valuation properties: Strictly positive, monotone, log-submodular valuations satisfy unconditioned multiplicative diminishing returns, while monotone submodular valuations satisfy the additive analogue.The multiplicative result follows by applying additive diminishing returns to log ◦f and exponentiating.
  • Triangle inequality theorem: Theorem 2 proves the triangle inequality for df,J when f is strictly positive, monotone, supermodular, and log-submodular on a relatively complemented distributive lattice.The proof uses relative complements and the lattice’s distributive structure to bound the target inequality.
  • Local lattice structure: The proof localizes to [A ∧B ∧C, A ∨B ∨C], which behaves as a bounded Boolean algebra even when the ambient lattice lacks global top or bottom elements.Relatively complemented distributive lattices include finite-subset and co-finite-subset lattices of natural numbers, which lack one global bound.
  • Relation to prior results: The result generalizes earlier Boolean-algebra-based proofs by removing requirements for global bounds, f(⊥) = 0, differentiability, and a convex-measure construction.Those earlier results become corollaries of Theorem 2.

5 Result for Submodular Valuations

In sectionally complemented distributive lattices, relative complements make lattice and symmetric differences well-defined independently of the chosen upper bound. For positive, monotone, submodular valuations with f(⊥) = 0, the resulting symmetric-difference Jaccard distance satisfies the triangle inequality without requiring a universal maximum element.

  • Relative difference and symmetric difference: Relative complements consistently define the lattice difference and symmetric difference whenever A ∨ B ≤ X and A ∨ B ≤ Y.The resulting difference is independent of the chosen upper bound X ≥ A ∨ B.
  • Triangle inequality: Theorem 3 proves that d_f,∆ satisfies the triangle inequality on sectionally complemented distributive lattices for positive, monotone, submodular f with f(⊥) = 0.The proof uses the localized Boolean structure of [⊥, A ∨ B ∨ C] and subadditivity derived from submodularity.
  • Triangle inequality: The numerator f(A∆B) is itself an unnormalized metric, after which monotonicity and subadditivity establish the normalized distance’s triangle inequality.Submodularity with f(⊥) = 0 implies f(X ∨ Y) ≤ f(X) + f(Y).
  • Structural requirements: A universal maximum element ⊤ is unnecessary because sectional complementation and the interval [⊥, A ∨ B ∨ C] provide the required Boolean structure.The theorem’s algebra is localized to the interval generated by the three elements.
  • Choice of Jaccard formulation: Submodular valuations require the symmetric-difference formulation, whereas modular and supermodular valuations can use the standard Jaccard formulation.The symmetric-difference pivot is mathematically mandatory for submodular valuations because standard-metric validity requires supermodularity.

6 Necessary Conditions for the Triangle Inequality

For the generalized Jaccard distance to satisfy the triangle inequality on an arbitrary lattice, a strictly positive valuation must be monotone, supermodular, and have a supermodular reciprocal. These conditions provide both structural boundaries and a quick way to rule out invalid metric candidates.

  • Necessary conditions: A strictly positive valuation f can generate a metric only if f and 1/f are supermodular and f is monotone.Failure of any condition rules out the standard generalized Jaccard formula as a true metric.
  • Necessary conditions: Substituting B = A∨C into the triangle inequality reduces it to supermodularity of f.Absorption laws simplify the inequality, and multiplication by positive f(A∨C) yields the supermodularity definition.
  • Necessary conditions: Substituting B = A∧C and dividing by positive f(A∧C) establishes supermodularity of the reciprocal 1/f.The argument applies the absorption law before deriving the reciprocal condition.
  • Necessary conditions: For A ≤ B, the triangle inequality reduces to f(B) ≥ f(A), thereby forcing monotonicity.The substitution C = A gives A∧B = A and A∨B = B; positivity permits the final multiplication and division.
  • Metricity test: Theorem 4 provides a quick filter: nonmonotone f, nonsupermodular f, or nonsupermodular 1/f immediately disqualifies df,J as a true metric.The results connect valuation supermodularity with metricity and identify structural limits for arbitrary data spaces.

7 Practical Implications and Application Scenarios

The results relax algebraic requirements for generalized Jaccard distances, enabling safe computation on non-classical and locally bounded structures. Applications span quantum information theory, formal concept analysis, fuzzy systems, and machine learning over dynamic data.

  • Quantum information theory: Theorem 1 makes the standard generalized Jaccard distance a valid metric on quantum events in non-distributive orthomodular structures under modular valuations.Trace-based valuations of quantum projections are strictly positive, monotone, and modular.
  • Formal concept analysis and fuzzy systems: Theorem 2 removes the need for universal top and bottom elements, enabling generalized Jaccard computations on relatively complemented distributive lattices.This supports localized computations where a global maximum is undefined or algorithmically intractable.
  • Formal concept analysis and fuzzy systems: Theorem 2 lets clustering algorithms operate safely within local Boolean-algebra intervals and supports supermodular valuations that model synergistic feature interactions.Relatively complemented lattices ensure each closed interval [U, V] operates locally as a Boolean algebra.
  • Machine learning and dynamic data: Theorem 3 establishes the triangle inequality for the symmetric-difference Jaccard distance under submodular valuations on sectionally complemented distributive lattices.This addresses geometric stability for machine-learning algorithms processing continuous, dynamic data.
  • Machine learning and dynamic data: Sectionally complemented distributive lattices model continuous IoT streams and temporal databases lacking a fixed global upper bound, supporting localized or sliding-window analysis.These streams originate from a defined initialization state while evolving continuously.

8 Discussion of Open Theoretical Problems

The paper identifies four open mathematical problems that mark structural limits on generalized Jaccard metrics. These concern non-modular lattices, arbitrary lattices for supermodular and submodular valuations, and whether necessary conditions are sufficient.

  • Open problems: Four key open problems remain, defining hard structural limits on where generalized Jaccard metrics can apply.The paper frames these as directions for future mathematical work.
  • Metricity in non-modular lattices: A generalized Jaccard metric for non-modular lattices remains unresolved because monotone modular valuations cannot exist on non-modular lattices such as N5.The paper notes that modular valuations yield metrics on arbitrary lattices, while metric lattices are themselves modular.
  • Arbitrary lattices for supermodular valuations: It is unknown whether the standard generalized Jaccard formula satisfies the triangle inequality for supermodular and log-submodular valuations on arbitrary lattices.The existing proof requires relative complementation and distributivity.
  • Arbitrary lattices for submodular valuations: It is likewise open whether the symmetric-difference Jaccard formula remains a metric for submodular valuations on arbitrary lattices.The established result relies on sectionally complemented distributive lattices.
  • The sufficiency of necessary conditions: Although supermodularity of f and 1 f is necessary for the standard generalized Jaccard formula to be a metric, its sufficiency remains untested.The paper also asks whether the stricter log-submodularity condition in Theorem 2 can be weakened.

9 Conclusions

The paper establishes sufficient and necessary conditions for the generalized Jaccard distance to satisfy the triangle inequality across broad lattice classes, while identifying practical applications and open problems.

  • Contributions: The generalized Jaccard distance satisfies the triangle inequality under newly established sufficient and necessary conditions beyond Boolean and distributive settings.The framework evaluates similarities between elements across arbitrary lattices.
  • Contributions: Strictly positive, monotone, modular valuations yield a valid metric on completely arbitrary lattices, making distributivity unnecessary.For supermodular and log-submodular valuations, the triangle inequality holds in relatively complemented distributive lattices without global bounds.
  • Applications: Relaxed structural axioms enable applications to non-distributive orthomodular lattices in quantum information theory and unbounded settings including fuzzy sets and formal concept hierarchies.The metrics also apply natively to infinite temporal or IoT data streams.
  • Future Work: Open problems include removing distributivity for supermodular and submodular valuations, unifying necessary and sufficient conditions, and adapting metrics to strictly non-modular structures.Future applied work should integrate these generalized distance metrics into machine learning and related domains.
Loading 2608.18194v1…