Documentation

Complexitylib.Metacomplexity.NisanWigderson.Reconstruction.Internal

Nisan--Wigderson fixed-advice reconstruction -- proof internals #

theorem Complexity.NWDesign.card_outsideCoordinates_internal {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (current : Fin outputLength) :
(design.outsideCoordinates current).card = seedLength - inputLength
theorem Complexity.NWDesign.card_laterCoordinates_internal {outputLength : } (current : Fin outputLength) :
(laterCoordinates current).card = outputLength - (current + 1)
theorem Complexity.NWDesign.card_outsideAssignments_internal {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (current : Fin outputLength) :
Fintype.card ((design.outsideCoordinates current)Bool) = 2 ^ (seedLength - inputLength)
theorem Complexity.NWDesign.card_laterAssignments_internal {outputLength : } (current : Fin outputLength) :
Fintype.card ((laterCoordinates current)Bool) = 2 ^ (outputLength - (current + 1))
theorem Complexity.NWDesign.reconstructionSeed_apply_coordinates_internal {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (current : Fin outputLength) (outside : (design.outsideCoordinates current)Bool) (challenge : Fin inputLengthBool) (input : Fin inputLength) :
design.reconstructionSeed current outside challenge ((design.coordinates current) input) = challenge input
theorem Complexity.NWDesign.reconstructionSeed_apply_outside_internal {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (current : Fin outputLength) (outside : (design.outsideCoordinates current)Bool) (challenge : Fin inputLengthBool) (coordinate : (design.outsideCoordinates current)) :
design.reconstructionSeed current outside challenge coordinate = outside coordinate
theorem Complexity.NWDesign.reconstructionSeed_restrict_internal {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (current : Fin outputLength) (seed : Fin seedLengthBool) :
design.reconstructionSeed current (BooleanDependency.restrict (design.outsideCoordinates current) seed) (design.restrictSeed current seed) = seed
theorem Complexity.NWDesign.reconstructionBackground_targetBit_internal {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (hardFunction : (Fin inputLengthBool)Bool) (current : Fin outputLength) (outside : (design.outsideCoordinates current)Bool) (later : (laterCoordinates current)Bool) (challenge : Fin inputLengthBool) :
(design.generator hardFunction).targetBit current (design.reconstructionBackground current outside later challenge) = hardFunction challenge
theorem Complexity.NWDesign.reconstructionQuery_eq_hybridOutput_internal {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (hardFunction : (Fin inputLengthBool)Bool) (current : Fin outputLength) (outside : (design.outsideCoordinates current)Bool) (later : (laterCoordinates current)Bool) (challenge : Fin inputLengthBool) (candidate : Bool) :
design.reconstructionQuery hardFunction current outside later challenge candidate = (design.generator hardFunction).hybridOutput (↑current) (BitGenerator.assembleCandidate (design.reconstructionBackground current outside later challenge) candidate)
theorem Complexity.NWDesign.reconstructionTestAtCandidate_eq_internal {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (hardFunction : (Fin inputLengthBool)Bool) (test : Finset (Fin outputLengthBool)) (current : Fin outputLength) (outside : (design.outsideCoordinates current)Bool) (later : (laterCoordinates current)Bool) (challenge : Fin inputLengthBool) (candidate : Bool) :
design.reconstructionTestAtCandidate hardFunction test current outside later challenge candidate = (design.generator hardFunction).testAtCandidate test current (design.reconstructionBackground current outside later challenge) candidate
theorem Complexity.NWDesign.reconstructionPredictor_eq_internal {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (hardFunction : (Fin inputLengthBool)Bool) (test : Finset (Fin outputLengthBool)) (current : Fin outputLength) (outside : (design.outsideCoordinates current)Bool) (later : (laterCoordinates current)Bool) (candidate : Bool) (challenge : Fin inputLengthBool) :
design.reconstructionPredictor hardFunction test current outside later candidate challenge = NextBitPrediction.predictFromTest ((design.generator hardFunction).testAtCandidate test current (design.reconstructionBackground current outside later challenge) candidate) candidate
theorem Complexity.NWDesign.reconstructionPredictor_agrees_iff_internal {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (hardFunction : (Fin inputLengthBool)Bool) (test : Finset (Fin outputLengthBool)) (current : Fin outputLength) (outside : (design.outsideCoordinates current)Bool) (later : (laterCoordinates current)Bool) (candidate : Bool) (challenge : Fin inputLengthBool) :
design.reconstructionPredictor hardFunction test current outside later candidate challenge = hardFunction challenge NextBitPrediction.predictFromTest ((design.generator hardFunction).testAtCandidate test current (design.reconstructionBackground current outside later challenge) candidate) candidate = (design.generator hardFunction).targetBit current (design.reconstructionBackground current outside later challenge)
theorem Complexity.NWDesign.reconstructionDataBitsAt_eq_internal {outputLength inputLength seedLength : } (design : NWDesign outputLength inputLength seedLength) (current : Fin outputLength) :
design.reconstructionDataBitsAt current = design.overlapCostAt current + (seedLength - inputLength) + 1
theorem Complexity.NWDesign.reconstructionDataBitsAt_le_of_hasOverlapBudget_internal {outputLength inputLength seedLength budget : } {design : NWDesign outputLength inputLength seedLength} (hbudget : design.HasOverlapBudget budget) (current : Fin outputLength) :
design.reconstructionDataBitsAt current budget + (seedLength - inputLength) + 1