Internal staged column-pairing partition for {⊕, ∧, 1} synthesis #
Internal combined X ⊕ G column definitions and row-sum partition lemmas (ZhegCol,
mul_sum_hasZhegCol_le, zhegRowParts, card_zhegRowParts_le, sum_zhegRowParts_eq) consumed by
StageStep and UpperBound; never re-exported through Zhegalkin.
Main definitions #
Cslib.Circuits.Boolean.Zhegalkin.ZhegCol,zhegColVal,hasZhegCol,zhegPairVal,zhegOddVal,intraGSet,hFn,ZhegPartIdx,zhegRowParts,zhegPartVal: staged column and row-partition indices.
Main results #
Cslib.Circuits.Boolean.Zhegalkin.card_zhegCol_le,mul_sum_hasZhegCol_le,card_zhegRowParts_le,sum_zhegRowParts_eq: cardinality bounds and row-sum partition identity.
Combined column index across original X blocks and prior G gate blocks.
Boolean function associated with column c : ZhegCol n M s.
Whether conjunction input row r uses non-intra column c : ZhegCol n M s.
Shared sum of columns paired between two rows in horizontal section up.sec.
Sum of unpaired odd-leftover columns for row r.
Intra-stage conjunction indices ℓ < r / 2 active in row r.
Linear input form hFn d r fed into conjunction gate r / 2.
Index tags partitioning a conjunction input row r across stages.
- constOne {M : ℕ} : ZhegPartIdx M
Constant-
1term. - peer {M : ℕ} (r' : Fin (2 * M)) : ZhegPartIdx M
Section-peer paired column sum.
- odd {M : ℕ} : ZhegPartIdx M
Section unpaired column sum.
- xTail {M : ℕ} : ZhegPartIdx M
Trailing
Xinput terms. - intraG {M : ℕ} (ℓ : Fin M) : ZhegPartIdx M
Intra-stage prior conjunction wire.
Embedding of section peers into ZhegPartIdx M.
Embedding of intra-stage gates into ZhegPartIdx M.
Finset of non-empty partition pieces making up hFn d r.
Boolean function for each tag in zhegRowParts d s p r.