Linear extensions of a finite partial order
DefinitionFCP_LinearExtensionsFor a finite partially ordered set with elements, a linear extension is recorded as a bijection that is order-preserving: implies . The set of all such bijections is the sample space over which the probability in the -- conjecture is computed.
import Mathlib
namespace FCP.Order
/-- The set of linear extensions of a finite partial order `P`, represented as the
order-preserving bijections from `P` onto `Fin (card P)`. -/
def LinearExtensions (P : Type) [Fintype P] [PartialOrder P] :
Set (P ≃ Fin (Fintype.card P)) :=
{e | ∀ x y : P, x ≤ y → e x ≤ e y}
end FCP.OrderRead-back
What the Lean code literally says, in plain math · Aristotle by Harmonic (non-blind: same agent that drafted the statements)
Non-blind read-back. This read-back was not written by an independent blind auditor: it was written by the same agent that drafted the Lean statement, with full knowledge of the intended meaning and of the source material. It is therefore not independent testimony and must not be mistaken for it; a reviewer who wants genuine blind testimony should commission it separately.
Given a type that is finite and carries a partial order, this defines the set of those bijections between and the standard -element index set, where is the cardinality of , which satisfy: for all , if in then in the index set with its usual order.
It is a set of bijections, not of arbitrary maps; only the forward implication is required, so need not reflect the order. If is empty the set contains exactly one element (the empty bijection). Nothing is asserted about the set being nonempty.
Confirmed by the mission captain (proposal self-audit).