The auxiliary comparisons of the introspection processor, in polynomial time #
The clauses of the auxiliary checks between two answers of the padded layout (AuxCons.lean:
sampleCons, readCons, hideReadCons, hideNextCons, sameCons, sourceCons) are lists of
constraints determined by a few readable data: the register length Q and the original cutoff
R, the readable conditions (as Booleans), the input's split of its answer at the register, the
coordinate sets of the hiding stages (as bit masks), the generators of a kernel, and the input's
own constraints. This file builds each clause as a Cost.PolyTimeFun of those data, computed
elsewhere, with Q, R and the split in unary:
sampleConsF,readConsFon((Q, R), (guard, source guard), sL);hideReadConsFon((Q, R), guard);hideNextConsFon(Q, guard, (masks), generators);sameConsFon((Q, R), (hide?, read?), (guard, source guard), sL), the kind of the label given by two Booleans (isHideT,isReadT) so that one program serves every label;sourceConsFon((Q, R), ((sRa, sLa), (sRb, sLb)), the input's constraints);auxLenF, the lengthauxLenof a label's answers, for the swap (swapConsF);auxPairF, the assemblyauxPairat a pair of labels from the consistency list and the two directed lists (dirAux), computed by the caller.
Each _spec lemma states that on the encodings of the semantic data the program outputs the
semantic list.
The forms on a generic input #
guardCons b d.
Equations
Instances For
eqCons la lb oa ob m.
Equations
- MIPRE.Tailored.Intro.eqOf la lb oa ob m = MIPRE.Tailored.Intro.eqConsF.comp (((la.pair oa).pair (lb.pair ob)).pair m)
Instances For
projEqCons la lb oa ob S, the set given by its mask.
Equations
- MIPRE.Tailored.Intro.projEqOf la lb oa ob m = MIPRE.Tailored.Intro.projEqConsF.comp (((la.pair oa).pair (lb.pair ob)).pair m)
Instances For
dualCons la lb oa ob S gens, the set given by its mask, the generators by their bits.
Equations
- MIPRE.Tailored.Intro.dualOf la lb oa ob m gs = MIPRE.Tailored.Intro.dualConsF.comp (((la.pair oa).pair (lb.pair ob)).pair (m.pair gs))
Instances For
The input-answer equality srcEqCons: the guard g on la + lb bits, and the equality of
the linear windows at oLa, oLb, of length s.
Equations
- MIPRE.Tailored.Intro.srcEqOf la lb oLa oLb g s = MIPRE.Tailored.Intro.catF (MIPRE.Tailored.Intro.guardOf g (MIPRE.Tailored.Intro.catF la lb)) (MIPRE.Tailored.Intro.eqOf la lb oLa oLb s)
Instances For
The sum of three unary numbers.
Equations
Instances For
The register and the cutoff #
Q + R.
Equations
Instances For
Q + 2R.
Equations
Instances For
2Q + R.
Equations
Instances For
2Q + 2R.
Equations
Instances For
2Q.
Equations
Instances For
3Q.
Equations
Instances For
The register length and the cutoff of an input ((Q, R), _).
Instances For
Instances For
Sampling and reading #
The input of the sampling and reading comparisons: ((Q, R), (guard, source guard), sL).
Equations
Instances For
The sampling comparison sampleCons.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The sampling comparison, on the encoded data.
The reading comparison readCons.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The reading comparison, on the encoded data.
Hiding #
The comparison of the last Hide with Read hideReadCons, on ((Q, R), guard).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The comparison of the last Hide with Read, on the encoded data.
The input of the comparison of consecutive Hide levels: Q, the guard, the masks of the
prefix register of the next level, of that of the level after it (complemented by the program)
and of the factor of the dual, and the bits of the kernel generators.
Equations
Instances For
The complement of a mask.
Equations
Instances For
The comparison of consecutive Hide levels hideNextCons.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The comparison of consecutive Hide levels, on the encoded data.
Consistency at one label #
Whether a label is a Hide label.
Equations
Instances For
Whether a label is the Read label.
Equations
Instances For
The input of the consistency comparison: ((Q, R), (hide?, read?), (guard, source guard), sL).
Equations
Instances For
The guard, the source guard and the split of the consistency comparison.
Equations
Instances For
Equations
Instances For
Equations
Instances For
Consistency at one label sameCons, the kind of the label given by two Booleans.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Consistency at one label, on the encoded data.
The source game #
The input of the source comparison: ((Q, R), ((sRa, sLa), (sRb, sLb)), constraints).
Equations
Instances For
The source game's constraints sourceCons: the input's constraints, re-indexed.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The source game's constraints, on the encoded data: the last input is the input's constraint list at the two registers and readable input answers.
The length of a label's answers #
The length of a label's answers auxLen, on ((Q, R), (hide?, read?)).
Equations
- One or more equations did not get rendered due to their size.
Instances For
A pair of auxiliary answers #
The input of the assembly at a pair of labels: ((guard, labels equal?), (la, lb), (same, directed, reverse directed)), the three lists already computed.
Equations
Instances For
The constraints at a pair of auxiliary labels auxPair, from the consistency list and the
two directed lists: when the guard holds, the consistency list when the labels agree, the
directed list, and the reverse one swapped; otherwise the rejecting constraint.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The constraints at a pair of auxiliary labels, on the encoded data.