The areas / V30. Combinatorics
Mathlib.Combinatorics.Enumerative.IncidenceAlgebra
83 declarations. Mathlib docs · Source
Incidence algebras
Given a locally finite order α the incidence algebra over α is the type of functions from
non-empty intervals of α to some algebraic codomain.
This algebra has a natural multiplication operation whereby the product of two such functions is defined on an interval by summing over all divisions into two subintervals the product of the values of the original pair of functions.
This structure allows us to interpret many natural invariants of the intervals (such as their cardinality) as elements of the incidence algebra. For instance the cardinality function, viewed as an element of the incidence algebra, is simply the square of the function that takes constant value one on all intervals. This constant function is called the zeta function, after its connection with the Riemann zeta function.
The incidence algebra is a good setting for proving many inclusion-exclusion type principles, these go under the name Möbius inversion, and are essentially due to the fact that the zeta function has a multiplicative inverse in the incidence algebra, an inductively definable function called the Möbius function that generalizes the Möbius function in number theory.
Main definitions
1 : IncidenceAlgebra 𝕜 αis the delta function, defined analogously to the identity matrix.f * gis the incidence algebra product, defined analogously to the matrix product.IncidenceAlgebra.zetais the zeta function, defined analogously to the upper triangular matrix of ones.IncidenceAlgebra.muis the inverse of the zeta function.
Implementation notes
One has to define mu as either the left or right inverse of zeta. We define it as the left
inverse, and prove it is also a right inverse by defining mu' as the right inverse and using that
left and right inverses agree if they exist.
TODO
Here are some additions to this file that could be made in the future:
- Generalize the construction of
muto invert any element of the incidence algebrafwhich hasf x xa unit for allx. - Give formulas for higher powers of zeta.
- A formula for the möbius function on a pi type similar to the one for products
- More examples / applications to different posets.
- Connection with Galois insertions
- Finsum version of Möbius inversion that holds even when an order doesn't have top/bot?
- Connect this theory to (infinite) matrices, giving maps of the incidence algebra to matrix rings
- Connect to the more advanced theory of arithmetic functions, and Dirichlet convolution.
References
- [Aigner, Combinatorial Theory, Chapter IV][aigner1997]
- [Jacobson, Basic Algebra I, 8.6][jacobson1974]
- [Doubilet, Rota, Stanley, On the foundations of Combinatorial Theory VI][doubilet_rota_stanley_vi]
- [Spiegel, O'Donnell, Incidence Algebras][spiegel_odonnell1997]
- [Kung, Rota, Yan, Combinatorics: The Rota Way, Chapter 3][kung_rota_yan2009]
Additive and multiplicative structure
Scalar multiplication between incidence algebras
The Lambda function
The Zeta and Möbius functions
def IncidenceAlgebra.ctorIdx E1 #
{𝕜 : Type u_6} → {α : Type u_7} → {inst : Zero 𝕜} → {inst_1 : LE α} → IncidenceAlgebra 𝕜 α → ℕ
theorem IncidenceAlgebra.mk.injEq E0 #
∀ {𝕜 : Type u_6} {α : Type u_7} [inst : Zero 𝕜] [inst_1 : LE α] (toFun : α → α → 𝕜)
(eq_zero_of_not_le' : ∀ ⦃a b : α⦄, ¬a ≤ b → toFun a b = 0) (toFun_1 : α → α → 𝕜)
(eq_zero_of_not_le'_1 : ∀ ⦃a b : α⦄, ¬a ≤ b → toFun_1 a b = 0),
({ toFun := toFun, eq_zero_of_not_le' := eq_zero_of_not_le' } =
{ toFun := toFun_1, eq_zero_of_not_le' := eq_zero_of_not_le'_1 }) =
(toFun = toFun_1)
theorem IncidenceAlgebra.mk.congr_simp E1 #
∀ {𝕜 : Type u_6} {α : Type u_7} [inst : Zero 𝕜] [inst_1 : LE α] (toFun toFun_1 : α → α → 𝕜) (e_toFun : toFun = toFun_1)
(eq_zero_of_not_le' : ∀ ⦃a b : α⦄, ¬a ≤ b → toFun a b = 0),
{ toFun := toFun, eq_zero_of_not_le' := eq_zero_of_not_le' } = { toFun := toFun_1, eq_zero_of_not_le' := ⋯ }
theorem IncidenceAlgebra.mk.inj E1 #
∀ {𝕜 : Type u_6} {α : Type u_7} {inst : Zero 𝕜} {inst_1 : LE α} {toFun : α → α → 𝕜}
{eq_zero_of_not_le' : ∀ ⦃a b : α⦄, ¬a ≤ b → toFun a b = 0} {toFun_1 : α → α → 𝕜}
{eq_zero_of_not_le'_1 : ∀ ⦃a b : α⦄, ¬a ≤ b → toFun_1 a b = 0},
{ toFun := toFun, eq_zero_of_not_le' := eq_zero_of_not_le' } =
{ toFun := toFun_1, eq_zero_of_not_le' := eq_zero_of_not_le'_1 } →
toFun = toFun_1
structure IncidenceAlgebra E1 #
(𝕜 : Type u_6) → (α : Type u_7) → [Zero 𝕜] → [LE α] → Type (max u_6 u_7)
The 𝕜-incidence algebra over α.
ctor IncidenceAlgebra.mk E0 #
{𝕜 : Type u_6} →
{α : Type u_7} →
[inst : Zero 𝕜] →
[inst_1 : LE α] → (toFun : α → α → 𝕜) → (∀ ⦃a b : α⦄, ¬a ≤ b → toFun a b = 0) → IncidenceAlgebra 𝕜 α
abbrev IncidenceAlgebra.toFun E1 #
{𝕜 : Type u_6} → {α : Type u_7} → [inst : Zero 𝕜] → [inst_1 : LE α] → IncidenceAlgebra 𝕜 α → α → α → 𝕜
The underlying function of an element of the incidence algebra.
Do not use this function directly. Instead use the coercion coming from the FunLike
instance.
instance IncidenceAlgebra.instFunLike E0 #
{𝕜 : Type u_1} → {α : Type u_4} → [inst : Zero 𝕜] → [inst_1 : LE α] → FunLike (IncidenceAlgebra 𝕜 α) α (α → 𝕜)
theorem IncidenceAlgebra.apply_eq_zero_of_not_le E1 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Zero 𝕜] [inst_1 : LE α] {a b : α},
¬a ≤ b → ∀ (f : IncidenceAlgebra 𝕜 α), f a b = 0
theorem IncidenceAlgebra.le_of_ne_zero E1 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Zero 𝕜] [inst_1 : LE α] {a b : α} {f : IncidenceAlgebra 𝕜 α}, f a b ≠ 0 → a ≤ b
theorem IncidenceAlgebra.toFun_eq_coe E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Zero 𝕜] [inst_1 : LE α] (f : IncidenceAlgebra 𝕜 α), f.toFun = ⇑f
theorem IncidenceAlgebra.coe_mk E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Zero 𝕜] [inst_1 : LE α] (f : α → α → 𝕜) (h : ∀ ⦃a b : α⦄, ¬a ≤ b → f a b = 0),
⇑{ toFun := f, eq_zero_of_not_le' := h } = f
theorem IncidenceAlgebra.coe_inj E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Zero 𝕜] [inst_1 : LE α] {f g : IncidenceAlgebra 𝕜 α}, ⇑f = ⇑g ↔ f = g
theorem IncidenceAlgebra.ext E1 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Zero 𝕜] [inst_1 : LE α] ⦃f g : IncidenceAlgebra 𝕜 α⦄,
(∀ (a b : α), a ≤ b → f a b = g a b) → f = g
theorem IncidenceAlgebra.ext_iff E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Zero 𝕜] [inst_1 : LE α] {f g : IncidenceAlgebra 𝕜 α},
f = g ↔ ∀ (a b : α), a ≤ b → f a b = g a b
theorem IncidenceAlgebra.mk_coe E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Zero 𝕜] [inst_1 : LE α] (f : IncidenceAlgebra 𝕜 α)
(h : ∀ ⦃a b : α⦄, ¬a ≤ b → f a b = 0), { toFun := ⇑f, eq_zero_of_not_le' := h } = f
instance IncidenceAlgebra.instZero E0 #
{𝕜 : Type u_1} → {α : Type u_4} → [inst : Zero 𝕜] → [inst_1 : LE α] → Zero (IncidenceAlgebra 𝕜 α)
instance IncidenceAlgebra.instInhabited E0 #
{𝕜 : Type u_1} → {α : Type u_4} → [inst : Zero 𝕜] → [inst_1 : LE α] → Inhabited (IncidenceAlgebra 𝕜 α)
theorem IncidenceAlgebra.coe_zero E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Zero 𝕜] [inst_1 : LE α], ⇑0 = 0
theorem IncidenceAlgebra.zero_apply E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Zero 𝕜] [inst_1 : LE α] (a b : α), 0 a b = 0
instance IncidenceAlgebra.instAdd E0 #
{𝕜 : Type u_1} → {α : Type u_4} → [inst : AddZeroClass 𝕜] → [inst_1 : LE α] → Add (IncidenceAlgebra 𝕜 α)
theorem IncidenceAlgebra.coe_add E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : AddZeroClass 𝕜] [inst_1 : LE α] (f g : IncidenceAlgebra 𝕜 α), ⇑(f + g) = ⇑f + ⇑g
theorem IncidenceAlgebra.add_apply E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : AddZeroClass 𝕜] [inst_1 : LE α] (f g : IncidenceAlgebra 𝕜 α) (a b : α),
(f + g) a b = f a b + g a b
instance IncidenceAlgebra.instSmulZeroClassRight E0 #
{𝕜 : Type u_1} →
{α : Type u_4} →
{M : Type u_6} → [inst : Zero 𝕜] → [inst_1 : LE α] → [SMulZeroClass M 𝕜] → SMulZeroClass M (IncidenceAlgebra 𝕜 α)
theorem IncidenceAlgebra.coe_constSMul E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} {M : Type u_6} [inst : Zero 𝕜] [inst_1 : LE α] [inst_2 : SMulZeroClass M 𝕜] (c : M)
(f : IncidenceAlgebra 𝕜 α), ⇑(c • f) = c • ⇑f
theorem IncidenceAlgebra.constSMul_apply E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} {M : Type u_6} [inst : Zero 𝕜] [inst_1 : LE α] [inst_2 : SMulZeroClass M 𝕜] (c : M)
(f : IncidenceAlgebra 𝕜 α) (a b : α), (c • f) a b = c • f a b
instance IncidenceAlgebra.instAddMonoid E0 #
{𝕜 : Type u_1} → {α : Type u_4} → [inst : AddMonoid 𝕜] → [inst_1 : LE α] → AddMonoid (IncidenceAlgebra 𝕜 α)
instance IncidenceAlgebra.instAddCommMonoid E0 #
{𝕜 : Type u_1} → {α : Type u_4} → [inst : AddCommMonoid 𝕜] → [inst_1 : LE α] → AddCommMonoid (IncidenceAlgebra 𝕜 α)
instance IncidenceAlgebra.instNeg E0 #
{𝕜 : Type u_1} → {α : Type u_4} → [inst : AddGroup 𝕜] → [inst_1 : LE α] → Neg (IncidenceAlgebra 𝕜 α)
instance IncidenceAlgebra.instSub E0 #
{𝕜 : Type u_1} → {α : Type u_4} → [inst : AddGroup 𝕜] → [inst_1 : LE α] → Sub (IncidenceAlgebra 𝕜 α)
theorem IncidenceAlgebra.coe_neg E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : AddGroup 𝕜] [inst_1 : LE α] (f : IncidenceAlgebra 𝕜 α), ⇑(-f) = -⇑f
theorem IncidenceAlgebra.coe_sub E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : AddGroup 𝕜] [inst_1 : LE α] (f g : IncidenceAlgebra 𝕜 α), ⇑(f - g) = ⇑f - ⇑g
theorem IncidenceAlgebra.neg_apply E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : AddGroup 𝕜] [inst_1 : LE α] (f : IncidenceAlgebra 𝕜 α) (a b : α),
(-f) a b = -f a b
theorem IncidenceAlgebra.sub_apply E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : AddGroup 𝕜] [inst_1 : LE α] (f g : IncidenceAlgebra 𝕜 α) (a b : α),
(f - g) a b = f a b - g a b
instance IncidenceAlgebra.instAddGroup E0 #
{𝕜 : Type u_1} → {α : Type u_4} → [inst : AddGroup 𝕜] → [inst_1 : LE α] → AddGroup (IncidenceAlgebra 𝕜 α)
instance IncidenceAlgebra.instAddCommGroup E0 #
{𝕜 : Type u_1} → {α : Type u_4} → [inst : AddCommGroup 𝕜] → [inst_1 : LE α] → AddCommGroup (IncidenceAlgebra 𝕜 α)
instance IncidenceAlgebra.instOne E0 #
{𝕜 : Type u_1} →
{α : Type u_4} → [inst : Preorder α] → [DecidableEq α] → [inst_2 : Zero 𝕜] → [One 𝕜] → One (IncidenceAlgebra 𝕜 α)
The unit incidence algebra is the delta function, whose entries are 0 except on the diagonal
where they are 1.
theorem IncidenceAlgebra.one_apply E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Preorder α] [inst_1 : DecidableEq α] [inst_2 : Zero 𝕜] [inst_3 : One 𝕜]
(a b : α), 1 a b = if a = b then 1 else 0
instance IncidenceAlgebra.instMul E0 #
{𝕜 : Type u_1} →
{α : Type u_4} →
[inst : Preorder α] → [LocallyFiniteOrder α] → [inst_2 : AddCommMonoid 𝕜] → [Mul 𝕜] → Mul (IncidenceAlgebra 𝕜 α)
The multiplication operation in incidence algebras is defined on an interval by summing over all divisions into two subintervals the product of the values of the original pair of functions.
theorem IncidenceAlgebra.mul_apply E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Preorder α] [inst_1 : LocallyFiniteOrder α] [inst_2 : AddCommMonoid 𝕜]
[inst_3 : Mul 𝕜] (f g : IncidenceAlgebra 𝕜 α) (a b : α), (f * g) a b = ∑ x ∈ Finset.Icc a b, f a x * g x b
instance IncidenceAlgebra.instNonUnitalNonAssocSemiring E0 #
{𝕜 : Type u_1} →
{α : Type u_4} →
[inst : Preorder α] →
[LocallyFiniteOrder α] → [inst_2 : NonUnitalNonAssocSemiring 𝕜] → NonUnitalNonAssocSemiring (IncidenceAlgebra 𝕜 α)
instance IncidenceAlgebra.instNonAssocSemiring E0 #
{𝕜 : Type u_1} →
{α : Type u_4} →
[inst : Preorder α] →
[LocallyFiniteOrder α] → [DecidableEq α] → [inst_3 : NonAssocSemiring 𝕜] → NonAssocSemiring (IncidenceAlgebra 𝕜 α)
instance IncidenceAlgebra.instSemiring E0 #
{𝕜 : Type u_1} →
{α : Type u_4} →
[inst : Preorder α] →
[LocallyFiniteOrder α] → [DecidableEq α] → [inst_3 : Semiring 𝕜] → Semiring (IncidenceAlgebra 𝕜 α)
instance IncidenceAlgebra.instRing E0 #
{𝕜 : Type u_1} →
{α : Type u_4} →
[inst : Preorder α] → [LocallyFiniteOrder α] → [DecidableEq α] → [inst_3 : Ring 𝕜] → Ring (IncidenceAlgebra 𝕜 α)
instance IncidenceAlgebra.instSMul E0 #
{𝕜 : Type u_1} →
{𝕝 : Type u_2} →
{α : Type u_4} →
[inst : Preorder α] →
[LocallyFiniteOrder α] →
[inst_2 : AddCommMonoid 𝕜] →
[inst_3 : AddCommMonoid 𝕝] → [SMul 𝕜 𝕝] → SMul (IncidenceAlgebra 𝕜 α) (IncidenceAlgebra 𝕝 α)
theorem IncidenceAlgebra.smul_apply E0 #
∀ {𝕜 : Type u_1} {𝕝 : Type u_2} {α : Type u_4} [inst : Preorder α] [inst_1 : LocallyFiniteOrder α]
[inst_2 : AddCommMonoid 𝕜] [inst_3 : AddCommMonoid 𝕝] [inst_4 : SMul 𝕜 𝕝] (f : IncidenceAlgebra 𝕜 α)
(g : IncidenceAlgebra 𝕝 α) (a b : α), (f • g) a b = ∑ x ∈ Finset.Icc a b, f a x • g x b
instance IncidenceAlgebra.instIsScalarTower E0 #
∀ {𝕜 : Type u_1} {𝕝 : Type u_2} {𝕞 : Type u_3} {α : Type u_4} [inst : Preorder α] [inst_1 : LocallyFiniteOrder α]
[inst_2 : AddCommMonoid 𝕜] [inst_3 : Monoid 𝕜] [inst_4 : Semiring 𝕝] [inst_5 : AddCommMonoid 𝕞] [inst_6 : SMul 𝕜 𝕝]
[inst_7 : Module 𝕝 𝕞] [inst_8 : DistribMulAction 𝕜 𝕞] [IsScalarTower 𝕜 𝕝 𝕞],
IsScalarTower (IncidenceAlgebra 𝕜 α) (IncidenceAlgebra 𝕝 α) (IncidenceAlgebra 𝕞 α)
instance IncidenceAlgebra.instModule E0 #
{𝕜 : Type u_1} →
{𝕝 : Type u_2} →
{α : Type u_4} →
[inst : Preorder α] →
[inst_1 : LocallyFiniteOrder α] →
[inst_2 : DecidableEq α] →
[inst_3 : Semiring 𝕜] →
[inst_4 : Semiring 𝕝] → [Module 𝕜 𝕝] → Module (IncidenceAlgebra 𝕜 α) (IncidenceAlgebra 𝕝 α)
instance IncidenceAlgebra.smulWithZeroRight E0 #
{𝕜 : Type u_1} →
{𝕝 : Type u_2} →
{α : Type u_4} →
[inst : Zero 𝕜] → [inst_1 : Zero 𝕝] → [SMulWithZero 𝕜 𝕝] → [inst_3 : LE α] → SMulWithZero 𝕜 (IncidenceAlgebra 𝕝 α)
instance IncidenceAlgebra.moduleRight E0 #
{𝕜 : Type u_1} →
{𝕝 : Type u_2} →
{α : Type u_4} →
[inst : Preorder α] →
[inst_1 : Semiring 𝕜] → [inst_2 : AddCommMonoid 𝕝] → [Module 𝕜 𝕝] → Module 𝕜 (IncidenceAlgebra 𝕝 α)
instance IncidenceAlgebra.algebraRight E0 #
{𝕜 : Type u_1} →
{𝕝 : Type u_2} →
{α : Type u_4} →
[inst : PartialOrder α] →
[inst_1 : LocallyFiniteOrder α] →
[inst_2 : DecidableEq α] →
[inst_3 : CommSemiring 𝕜] → [inst_4 : CommSemiring 𝕝] → [Algebra 𝕜 𝕝] → Algebra 𝕜 (IncidenceAlgebra 𝕝 α)
def IncidenceAlgebra.lambda E1 #
(𝕜 : Type u_1) →
{α : Type u_4} →
[inst : Zero 𝕜] → [One 𝕜] → [inst_2 : Preorder α] → [DecidableRel fun x1 x2 ↦ x1 ⩿ x2] → IncidenceAlgebra 𝕜 α
The lambda function of the incidence algebra is the function that assigns 1 to every nonempty
interval of cardinality one or two.
theorem IncidenceAlgebra.lambda_apply E0 #
∀ (𝕜 : Type u_1) {α : Type u_4} [inst : Zero 𝕜] [inst_1 : One 𝕜] [inst_2 : Preorder α]
[inst_3 : DecidableRel fun x1 x2 ↦ x1 ⩿ x2] (a b : α), (IncidenceAlgebra.lambda 𝕜) a b = if a ⩿ b then 1 else 0
def IncidenceAlgebra.zeta E3 #
(𝕜 : Type u_1) → {α : Type u_4} → [inst : Zero 𝕜] → [One 𝕜] → [inst_2 : LE α] → [DecidableLE α] → IncidenceAlgebra 𝕜 α
The zeta function of the incidence algebra is the function that assigns 1 to every nonempty interval, convolution with this function sums functions over intervals.
theorem IncidenceAlgebra.zeta_apply E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Zero 𝕜] [inst_1 : One 𝕜] [inst_2 : LE α] [inst_3 : DecidableLE α] (a b : α),
(IncidenceAlgebra.zeta 𝕜) a b = if a ≤ b then 1 else 0
theorem IncidenceAlgebra.zeta_of_le E1 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Zero 𝕜] [inst_1 : One 𝕜] [inst_2 : LE α] [inst_3 : DecidableLE α] {a b : α},
a ≤ b → (IncidenceAlgebra.zeta 𝕜) a b = 1
theorem IncidenceAlgebra.zeta_mul_zeta E1 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : NonAssocSemiring 𝕜] [inst_1 : Preorder α] [inst_2 : LocallyFiniteOrder α]
[inst_3 : DecidableLE α] (a b : α), (IncidenceAlgebra.zeta 𝕜 * IncidenceAlgebra.zeta 𝕜) a b = ↑(Finset.Icc a b).card
def IncidenceAlgebra.mu E3 #
(𝕜 : Type u_1) →
{α : Type u_4} →
[inst : AddCommGroup 𝕜] →
[One 𝕜] → [inst_2 : Preorder α] → [LocallyFiniteOrder α] → [DecidableEq α] → IncidenceAlgebra 𝕜 α
The Möbius function which inverts zeta as an element of the incidence algebra.
theorem IncidenceAlgebra.mu_apply E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : AddCommGroup 𝕜] [inst_1 : One 𝕜] [inst_2 : Preorder α]
[inst_3 : LocallyFiniteOrder α] [inst_4 : DecidableEq α] (a b : α),
(IncidenceAlgebra.mu 𝕜) a b = if a = b then 1 else -∑ x ∈ Finset.Ico a b, (IncidenceAlgebra.mu 𝕜) a x
theorem IncidenceAlgebra.mu_self E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : AddCommGroup 𝕜] [inst_1 : One 𝕜] [inst_2 : Preorder α]
[inst_3 : LocallyFiniteOrder α] [inst_4 : DecidableEq α] (a : α), (IncidenceAlgebra.mu 𝕜) a a = 1
theorem IncidenceAlgebra.mu_eq_neg_sum_Ico_of_ne E1 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : AddCommGroup 𝕜] [inst_1 : One 𝕜] [inst_2 : Preorder α]
[inst_3 : LocallyFiniteOrder α] [inst_4 : DecidableEq α] {a b : α},
a ≠ b → (IncidenceAlgebra.mu 𝕜) a b = -∑ x ∈ Finset.Ico a b, (IncidenceAlgebra.mu 𝕜) a x
def IncidenceAlgebra.eulerChar E1 #
(𝕜 : Type u_1) →
(α : Type u_4) →
[AddCommGroup 𝕜] → [One 𝕜] → [inst : Preorder α] → [LocallyFiniteOrder α] → [DecidableEq α] → [BoundedOrder α] → 𝕜
The Euler characteristic of a finite bounded order.
theorem IncidenceAlgebra.sum_Icc_mu_right E1 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : AddCommGroup 𝕜] [inst_1 : One 𝕜] [inst_2 : PartialOrder α]
[inst_3 : LocallyFiniteOrder α] [inst_4 : DecidableEq α] (a b : α),
∑ x ∈ Finset.Icc a b, (IncidenceAlgebra.mu 𝕜) a x = if a = b then 1 else 0
theorem IncidenceAlgebra.mu_mul_zeta E1 #
∀ (𝕜 : Type u_1) (α : Type u_4) [inst : AddCommGroup 𝕜] [inst_1 : MulOneClass 𝕜] [inst_2 : PartialOrder α]
[inst_3 : LocallyFiniteOrder α] [inst_4 : DecidableEq α] [inst_5 : DecidableLE α],
IncidenceAlgebra.mu 𝕜 * IncidenceAlgebra.zeta 𝕜 = 1
theorem IncidenceAlgebra.mu_eq_neg_sum_Ioc_of_ne E1 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Ring 𝕜] [inst_1 : PartialOrder α] [inst_2 : LocallyFiniteOrder α]
[inst_3 : DecidableEq α] {a b : α},
a ≠ b → (IncidenceAlgebra.mu 𝕜) a b = -∑ x ∈ Finset.Ioc a b, (IncidenceAlgebra.mu 𝕜) x b
theorem IncidenceAlgebra.zeta_mul_mu E1 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Ring 𝕜] [inst_1 : PartialOrder α] [inst_2 : LocallyFiniteOrder α]
[inst_3 : DecidableEq α] [inst_4 : DecidableLE α], IncidenceAlgebra.zeta 𝕜 * IncidenceAlgebra.mu 𝕜 = 1
theorem IncidenceAlgebra.sum_Icc_mu_left E1 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Ring 𝕜] [inst_1 : PartialOrder α] [inst_2 : LocallyFiniteOrder α]
[inst_3 : DecidableEq α] (a b : α), ∑ x ∈ Finset.Icc a b, (IncidenceAlgebra.mu 𝕜) x b = if a = b then 1 else 0
theorem IncidenceAlgebra.mu_toDual E0 #
∀ (𝕜 : Type u_1) {α : Type u_4} [inst : Ring 𝕜] [inst_1 : PartialOrder α] [inst_2 : LocallyFiniteOrder α]
[inst_3 : DecidableEq α] (a b : α),
(IncidenceAlgebra.mu 𝕜) (OrderDual.toDual a) (OrderDual.toDual b) = (IncidenceAlgebra.mu 𝕜) b a
theorem IncidenceAlgebra.mu_ofDual E0 #
∀ (𝕜 : Type u_1) {α : Type u_4} [inst : Ring 𝕜] [inst_1 : PartialOrder α] [inst_2 : LocallyFiniteOrder α]
[inst_3 : DecidableEq α] (a b : αᵒᵈ),
(IncidenceAlgebra.mu 𝕜) (OrderDual.ofDual a) (OrderDual.ofDual b) = (IncidenceAlgebra.mu 𝕜) b a
theorem IncidenceAlgebra.eulerChar_orderDual E0 #
∀ (𝕜 : Type u_1) {α : Type u_4} [inst : Ring 𝕜] [inst_1 : PartialOrder α] [inst_2 : LocallyFiniteOrder α]
[inst_3 : DecidableEq α] [inst_4 : BoundedOrder α], IncidenceAlgebra.eulerChar 𝕜 αᵒᵈ = IncidenceAlgebra.eulerChar 𝕜 α
theorem IncidenceAlgebra.moebius_inversion_top E1 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Ring 𝕜] [inst_1 : PartialOrder α] [inst_2 : OrderTop α]
[inst_3 : LocallyFiniteOrder α] [inst_4 : DecidableEq α] (f g : α → 𝕜),
(∀ (x : α), g x = ∑ y ≥ x, f y) → ∀ (x : α), f x = ∑ y ≥ x, (IncidenceAlgebra.mu 𝕜) x y * g y
A general form of Möbius inversion. Based on lemma 2.1.2 of Incidence Algebras by Spiegel and O'Donnell.
theorem IncidenceAlgebra.moebius_inversion_bot E1 #
∀ {𝕜 : Type u_1} {α : Type u_4} [inst : Ring 𝕜] [inst_1 : PartialOrder α] [inst_2 : OrderBot α]
[inst_3 : LocallyFiniteOrder α] [inst_4 : DecidableEq α] (f g : α → 𝕜),
(∀ (x : α), g x = ∑ y ≤ x, f y) → ∀ (x : α), f x = ∑ y ≤ x, (IncidenceAlgebra.mu 𝕜) y x * g y
A general form of Möbius inversion. Based on lemma 2.1.3 of Incidence Algebras by Spiegel and O'Donnell.
theorem IncidenceAlgebra.zeta_prod_apply E0 #
∀ (𝕜 : Type u_1) {α : Type u_4} {β : Type u_5} [inst : Ring 𝕜] [inst_1 : Preorder α] [inst_2 : Preorder β]
[inst_3 : DecidableLE α] [inst_4 : DecidableLE β] (a b : α × β),
(IncidenceAlgebra.zeta 𝕜) a b = (IncidenceAlgebra.zeta 𝕜) a.1 b.1 * (IncidenceAlgebra.zeta 𝕜) a.2 b.2
theorem IncidenceAlgebra.zeta_prod_mk E0 #
∀ (𝕜 : Type u_1) {α : Type u_4} {β : Type u_5} [inst : Ring 𝕜] [inst_1 : Preorder α] [inst_2 : Preorder β]
[inst_3 : DecidableLE α] [inst_4 : DecidableLE β] (a₁ a₂ : α) (b₁ b₂ : β),
(IncidenceAlgebra.zeta 𝕜) (a₁, b₁) (a₂, b₂) = (IncidenceAlgebra.zeta 𝕜) a₁ a₂ * (IncidenceAlgebra.zeta 𝕜) b₁ b₂
def IncidenceAlgebra.prod E1 #
{𝕜 : Type u_1} →
{α : Type u_4} →
{β : Type u_5} →
[inst : Ring 𝕜] →
[inst_1 : Preorder α] →
[inst_2 : Preorder β] → IncidenceAlgebra 𝕜 α → IncidenceAlgebra 𝕜 β → IncidenceAlgebra 𝕜 (α × β)
The Cartesian product of two incidence algebras.
theorem IncidenceAlgebra.prod_mk E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} {β : Type u_5} [inst : Ring 𝕜] [inst_1 : Preorder α] [inst_2 : Preorder β]
(f : IncidenceAlgebra 𝕜 α) (g : IncidenceAlgebra 𝕜 β) (a₁ a₂ : α) (b₁ b₂ : β),
(f.prod g) (a₁, b₁) (a₂, b₂) = f a₁ a₂ * g b₁ b₂
theorem IncidenceAlgebra.prod_apply E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} {β : Type u_5} [inst : Ring 𝕜] [inst_1 : Preorder α] [inst_2 : Preorder β]
(f : IncidenceAlgebra 𝕜 α) (g : IncidenceAlgebra 𝕜 β) (x y : α × β), (f.prod g) x y = f x.1 y.1 * g x.2 y.2
theorem IncidenceAlgebra.prod_mul_prod' E1 #
∀ {𝕜 : Type u_1} {α : Type u_4} {β : Type u_5} [inst : Ring 𝕜] [inst_1 : Preorder α] [inst_2 : Preorder β]
(f₁ f₂ : IncidenceAlgebra 𝕜 α) (g₁ g₂ : IncidenceAlgebra 𝕜 β) [inst_3 : LocallyFiniteOrder α]
[inst_4 : LocallyFiniteOrder β] [inst_5 : DecidableLE (α × β)],
(∀ (a₁ a₂ a₃ : α) (b₁ b₂ b₃ : β),
f₁ a₁ a₂ * g₁ b₁ b₂ * (f₂ a₂ a₃ * g₂ b₂ b₃) = f₁ a₁ a₂ * f₂ a₂ a₃ * (g₁ b₁ b₂ * g₂ b₂ b₃)) →
f₁.prod g₁ * f₂.prod g₂ = (f₁ * f₂).prod (g₁ * g₂)
This is a version of IncidenceAlgebra.prod_mul_prod that works over non-commutative rings.
theorem IncidenceAlgebra.one_prod_one E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} {β : Type u_5} [inst : Ring 𝕜] [inst_1 : Preorder α] [inst_2 : Preorder β]
[inst_3 : DecidableEq α] [inst_4 : DecidableEq β], IncidenceAlgebra.prod 1 1 = 1
theorem IncidenceAlgebra.zeta_prod_zeta E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} {β : Type u_5} [inst : Ring 𝕜] [inst_1 : Preorder α] [inst_2 : Preorder β]
[inst_3 : DecidableLE α] [inst_4 : DecidableLE β],
(IncidenceAlgebra.zeta 𝕜).prod (IncidenceAlgebra.zeta 𝕜) = IncidenceAlgebra.zeta 𝕜
theorem IncidenceAlgebra.prod_mul_prod E0 #
∀ {𝕜 : Type u_1} {α : Type u_4} {β : Type u_5} [inst : CommRing 𝕜] [inst_1 : Preorder α] [inst_2 : Preorder β]
[inst_3 : LocallyFiniteOrder α] [inst_4 : LocallyFiniteOrder β] [inst_5 : DecidableLE (α × β)]
(f₁ f₂ : IncidenceAlgebra 𝕜 α) (g₁ g₂ : IncidenceAlgebra 𝕜 β), f₁.prod g₁ * f₂.prod g₂ = (f₁ * f₂).prod (g₁ * g₂)
theorem IncidenceAlgebra.mu_prod_mu E0 #
∀ (𝕜 : Type u_1) {α : Type u_4} {β : Type u_5} [inst : Ring 𝕜] [inst_1 : PartialOrder α] [inst_2 : PartialOrder β]
[inst_3 : LocallyFiniteOrder α] [inst_4 : LocallyFiniteOrder β] [inst_5 : DecidableEq α] [inst_6 : DecidableEq β]
[inst_7 : DecidableLE α] [inst_8 : DecidableLE β],
(IncidenceAlgebra.mu 𝕜).prod (IncidenceAlgebra.mu 𝕜) = IncidenceAlgebra.mu 𝕜
The Möbius function on a product order. Based on lemma 2.1.13 of Incidence Algebras by Spiegel and O'Donnell.
theorem IncidenceAlgebra.eulerChar_prod E0 #
∀ (𝕜 : Type u_1) {α : Type u_4} {β : Type u_5} [inst : Ring 𝕜] [inst_1 : PartialOrder α] [inst_2 : PartialOrder β]
[inst_3 : LocallyFiniteOrder α] [inst_4 : LocallyFiniteOrder β] [inst_5 : DecidableEq α] [inst_6 : DecidableEq β]
[inst_7 : DecidableLE α] [inst_8 : DecidableLE β] [inst_9 : BoundedOrder α] [inst_10 : BoundedOrder β],
IncidenceAlgebra.eulerChar 𝕜 (α × β) = IncidenceAlgebra.eulerChar 𝕜 α * IncidenceAlgebra.eulerChar 𝕜 β