A theorem on metrics based on min and max #
In this file we give a formal proof of Theorem 17 from [KNYHLM20]. It asserts that d(X,Y)= m min(|X\Y|, |Y\X|) + M max(|X\Y|, |Y\X|) is a metric if and only if m ≤ M.
Main results #
seventeen
: the proof of Theorem 17.instance jaccard_numerator.metric_space
: the realization as ametric_space
type.
Notation #
|_|
: Notation for cardinality.
References #
See [KNYHLM20] for the original proof.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
theorem
seventeen_right
{α : Type u_1}
[DecidableEq α]
{m M : ℝ}
{X Y Z : Finset α}
:
0 ≤ m → m ≤ M → triangle_inequality m M X Y Z
def
delta_triangle
{m M : ℝ}
(X Y Z : Finset ℕ)
(hm : 0 < m)
(hM : m ≤ M)
:
triangle_inequality m M X Z Y
Equations
- ⋯ = ⋯
Instances For
noncomputable instance
instMetricSpaceFinsetNatOfLtOfNatOfLeReal_jaccard
{m M : ℝ}
(hm : 0 < m)
(hM : m ≤ M)
:
Instantiate Finset ℕ as a metric space.