A slipface function of shift χ, i.e. a function $s : \mathbb{Z}^2 \to \mathbb{N}$
satisfying the paper's conditions (S1) to (S3):
- first differences in the
a- andb-directions are in{0,1} - $s(a,b) \ge \max\{0, \chi + a - b\}$
- each row and column eventually agrees with $\max\{0, \chi + a - b\}$
Lean stores the function as func and the shift as χ; the paper would write
this as $s \in \mathrm{SF}_\chi$. Definition 3.1.
- χ : ℤ
Instances For
Equations
The one-sided monotonicity and vanishing conditions providing a simplified criterion for slipfaces.
These are the paper's conditions (D1) and (D2), extracted into a reusable Lean structure. Properties D1 and D2.
Instances For
Slip Valleys and the Product Formula #
A Valley is an integer function rising on both sides, which therefore has a
well-defined minimum achieved at finitely many places.
This section packages the minimization problem defining slipface product into a
Valley, then uses it to construct the product s ⋆ t and prove its basic
properties.
The product of two slipfaces, obtained from the minimum formula
star_func.
Equations
- s ⋆ t = Classical.choose ⋯
Instances For
Equations
- SlipFace.instMul = { mul := SlipFace.star }
Equations
- SlipFace.«term_⋆_» = Lean.ParserDescr.trailingNode `SlipFace.«term_⋆_» 70 70 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " ⋆ ") (Lean.ParserDescr.cat `term 71))
Instances For
Order Structure and Comparison with ⋆ #
This section puts the pointwise order on SlipFace and records the basic
comparison lemmas relating that order to the product ⋆.
Equations
- One or more equations did not get rendered due to their size.
Equations
- s.star_wit t a b = (s.SlipValley t a b).M
Instances For
Monoid Structure #
The product ⋆ is associative and has the positive-part function as identity,
giving SlipFace a monoid structure.
The identity slipface, given by the positive part of a - b.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
The Mixed Difference Δ #
This section studies the discrete mixed difference Δ, its behavior under
duality, and the finite summation identities used later in submodularity
arguments.
A slipface is submodular if $\Delta s(a,b) \ge 0$ for all a, b.
Definition 4.2.
Equations
- sf.submodular = ∀ (a b : ℤ), sf.Δ a b ≥ 0