We prove a theorem unifying three results from combinatorial homological and
commutative algebra, characterizing the Koszul property for incidence algebras
of posets and affine semigroup rings, and characterizing linear resolutions of
squarefree monomial ideals. The characterization in the graded setting is via
the Cohen-Macaulay property of certain posets or simplicial complexes, and in
the more general nongraded setting, via the sequential Cohen-Macaulay property.Comment: 31 pages, 1 figure. Minor changes from previous version. To appear in
Advances in Mathematic