P89 · Tans in a square · Discussion

P89 · n = 21 · Solver note / 求解记录

邱仲普

P89 n=21: exact-grid refinement of the previous public certificate. The normalized triangle leg grows from 0.299395307 to 0.299395310; the minimized, upward-rounded container side falls from 3.340065714523708283 to 3.340065681055591686. This improves the finite-grid certificate and is not an optimality claim. Method: keep all turns and quarter rotations fixed. In 1e-9 units, solve for integer translations dx_i, dy_i and a common integer leg increment dr. Keep every transformed vertex inside the unit square. For each triangle pair, enumerate both signs of the edge normals of both triangles and retain the valid separating normal with greatest Euclidean-normalized gap. With fixed orientations these constraints are linear. Maximize dr with |dx_i|,|dy_i| <= L and 1 <= dr <= L using scipy.optimize.milp/HiGHS (5 seconds, relative MIP gap 0). Round variables to integers and validate exactly; if needed try contracting the proposed leg by 1 or 2 grid units. Apply L=2,10,100,1000 in order, retaining only exact valid improvements. Accepted steps: L=2: r=0.299395309, L=10: r=0.299395310. Then sweep L=2,10,100,1000,10000,100000. No further improvement was found. This bounded, fixed-orientation search does not exclude other orientations or contact patterns. Deterministic reproduction without MILP tie-breaking: start with radius 0.299395307 and the following rows [x,y,turn,quarter] in order: ["0.850302354","0.550906961","-0.000000068",0] ["0.233350328","0.577144755","0.414213555",3] ["0.445054780","0.445054803","0.414213531",0] ["0.251511727","0.850302339","-0.000000018",2] ["0.550907039","0.850302336","-0.000000029",2] ["0.656759220","0.233350315","0.414213472",2] ["0.850302323","0.251511641","-0.000000077",2] ["0.449092972","0.149697661","-0.000000019",0] ["0.550907025","0.550907022","-0.000000020",2] ["0.149697659","0.149697659","-0.000000005",2] ["0.577144787","0.233350324","0.414213471",0] ["0.850302335","0.850302335","-0.000000033",2] ["0.850302350","0.850302313","-0.000000037",0] ["0.149697656","0.149697656","0.000000000",0] ["0.149697656","0.449092969","0.000000000",0] ["0.550907038","0.850302332","-0.000000026",0] ["0.850302332","0.550907003","-0.000000042",2] ["0.445054784","0.445054806","0.414213529",2] ["0.788572377","0.010822938","0.384561065",2] ["0.010822939","0.788572377","-0.384561063",2] ["0.233350335","0.656759269","0.414213548",1] Add these integer [dx,dy] rows times 1e-9 to the corresponding centers, preserve turn and quarter, and set radius=0.299395310: [[-1,4],[3,-3],[4,-1],[-1,0],[1,-3],[3,-4],[-2,11],[-3,0],[3,-2],[-5,0],[-2,-1],[0,0],[3,1],[-1,-1],[-1,2],[1,0],[0,-1],[2,-3],[-1,-3],[1,-1],[0,-1]] Validation: parse all decimals on the 1e-9 grid. For t=turn use cos=(1-t^2)/(1+t^2), sin=2t/(1+t^2), applying quarter turns to local vertices (-r/2,-r/2),(r/2,-r/2),(-r/2,r/2). Check all 63 vertices inside [0,1]^2 and all 210 pairs with exact integer separating axes after clearing denominators. Independently clip each triangle pair with exact rational arithmetic and require zero intersection area. Both checks pass. With R=299395310, stored score=ceil(10^27/R)=3340065681055591686.