Gluing functions along ordered finite subsets #
Main definitions #
Finset.glue: join two functions along a subset and its complement, each enumerated by Mathlib'sFinset.orderEmbOfFin.
Main results #
Finset.forall_iff_orderEmbOfFin_and_compl: split a predicate over the two enumerations.Finset.eq_glue_iff,Finset.glue_inj: reconstruction and uniqueness.Finset.eq_glue_of_reconstruct: reconstruct values through maps on the two parts.
References #
Adapted selectively from [AlmanWilliams2026, Section 2] and
Anthropic's pinned formal source.
Source pin: 16a5ce41304fcdaea4e0be7c132e1c361dc26da5. These are finite mathematical
counts and identities; they give no native program or instruction-cost certificate.
Predicates on a subset and its complement #
A predicate holds everywhere if and only if it holds on the ordered enumerations of
Q and its complement.
A predicate cuts out Q if and only if it holds on its ordered enumeration and fails
on the ordered enumeration of its complement.
A predicate holding on every enumerated element of Q, and on m elements in all,
cuts out Q.
Gluing functions along an ordered subset #
Enumerating the complement of a subset equal to Q reads the same values from a
function glued along Q.
Predicates and reconstruction on the two parts #
If P holds on the values of f and fails on the values of g, it holds on the
glued function exactly at the elements of Q.
Reconstruct u from maps that recover its values on the subset defined by P and
on its complement. The two reconstruction hypotheses apply on their respective parts.