grid57_pair_cost
def
An explicit table of monochromatic rectangle counts determined by two five-bit columns.
Statement
def grid57_pair_cost (a b : Fin 32) : ℕ- Source
- OP-1867: sorted-column finite obstruction computed in experiments 43999 and 44004–44005; related work arXiv:2611.19635 section 6.
- Verified
- 28 Nov 2026
- Axioms
- none listed
- Used by 8
- grid57_fixed0_prefix_group3The fixed column 0 and any sorted next column in the indicated eight-value range cannot extend to seven columns with pair cost at most nine.
- grid57_fixed1_prefix_group2The fixed column 1 and any sorted next column in the indicated eight-value range cannot extend to seven columns with pair cost at most nine.
- grid57_fixed0_prefix_group2The fixed column 0 and any sorted next column in the indicated eight-value range cannot extend to seven columns with pair cost at most nine.
- grid57_fixed0_prefix_group0The fixed column 0 and any sorted next column in the indicated eight-value range cannot extend to seven columns with pair cost at most nine.
- grid57_fixed0_prefix_group1The fixed column 0 and any sorted next column in the indicated eight-value range cannot extend to seven columns with pair cost at most nine.
- grid57_fixed1_prefix_group3The fixed column 1 and any sorted next column in the indicated eight-value range cannot extend to seven columns with pair cost at most nine.
- grid57_prefix_obstructionThe sorted six-column continuation of the two given columns cannot maintain accumulated pair cost at most nine.
- grid57_pair_cost_matches_rectanglesThe stored pair-cost table gives exactly the number of monochromatic rectangles formed by the two displayed five-bit columns.
Lean source view module on GitHub
def grid57_pair_cost (a b : Fin 32) : ℕ :=
(((![5214084935771571880172989101520490, 1346899395702446148315006579558, 20361948550177099393204095235638, 21267972456064228703170759033516802867, 5192376419157015218918183077810998, 21350724687286866232463064273587999027, 22596875933915513684079092106412626707, 65215573076935277296828628700439322897, 5214084604440249073030361479582518, 21351051815378232920724220652272292147, 22597241090944602825807273443886961427, 65216243653870449892963854238196179217, 22690337351026568196516136228098343187, 65386920130704445954845497283496181777, 67879241637850308836891333018846822657, 131848989249680240990726084577761169408, 5214084935771571803028903645352758, 21351051820370044389181916220933345587, 22597241096516707541982036346586338067, 65216243664103034754866314167390839057, 22690337356639615830087846188987646227, 65386920140977973734144904270880768017, 67879241648704129863907807340269732097, 131848989265194542163470255925679362048, 22690705207385126978936570932191363347, 65387593411629568337400673214367006737, 67879952948293446920630601242546012417, 131850005984689942674600094028238163968, 68060973454027713741325748890176126977, 132108606707176240186468021936956899328, 135847098475419611746660732908871876608, 221167896560720192587308396459169157120] : Fin 32 → ℕ) a) >>> (4*b.val)) % 16