Catalog/VC/UnitDistanceGraphEdges/Contract.lean
1import Catalog.VC.VCDimension.Contract
2import Mathlib.Order.SymmDiff
3
4namespace Catalog.VC.UnitDistanceGraphEdges
5
6/-- The unit distance graph of a set family with VC-dimension `dโ‚€` has at
7 most `dโ‚€ ยท |๐’œ|` edges. Equivalently, the number of ordered pairs
8 `(S, S')` in `๐’œ` with `|S โ–ณ S'| = 1` is at most `2 ยท dโ‚€ ยท |๐’œ|`.
9 (Lemma 5.15) -/
10axiom unitDistEdgeBound {ฮฑ : Type*} [DecidableEq ฮฑ] [Fintype ฮฑ]
11 (๐’œ : Finset (Finset ฮฑ)) :
12 (๐’œ.offDiag.filter (fun p => (symmDiff p.1 p.2).card = 1)).card
13 โ‰ค 2 * ๐’œ.vcDim * ๐’œ.card
14
15end Catalog.VC.UnitDistanceGraphEdges
16