Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing PVs #52

Open
dav1312 opened this issue Apr 1, 2024 · 69 comments
Open

Missing PVs #52

dav1312 opened this issue Apr 1, 2024 · 69 comments

Comments

@dav1312
Copy link
Contributor

dav1312 commented Apr 1, 2024

PV matches the expected result

qbn5/k1PK1P1p/p5np/Pp5p/5P1p/2p4p/Q7/8 w - - bm #103; I assume the PV is; a2f2 a7b7 f2f3 b7a7 f3e3 a7b7 e3e4 b7a7 e4d4 a7b7 d4d5 b7a7 d5c5 a7b7 f4f5 g6f8 d7d8 h3h2 c5d5 b7a7 d5d4 a7b7 d4e4 b7a7 e4e3 a7b7 e3f3 b7a7 f3f2 a7b7 f2h2 b7a7 h2f2 a7b7 f2c5 h4h3 c5d5 b7a7 d5d4 a7b7 d4c5 h3h2 c5d5 b7a7 d5d4 a7b7 d4e4 b7a7 e4e3 a7b7 e3f3 b7a7 f3f2 a7b7 f2h2 b7a7 h2f2 a7b7 f2c5 h5h4 c5d5 b7a7 d5d4 a7b7 d4c5 h4h3 c5d5 b7a7 d5d4 a7b7 d4c5 h3h2 c5d5 b7a7 d5d4 a7b7 d4e4 b7a7 e4e3 a7b7 e3f3 b7a7 f3f2 a7b7 f2h2 b7a7 h2f2 a7b7 f2c5 h6h5 c5d5 b7a7 d5d4 a7b7 d4c5 h5h4 c5d5 b7a7 d5d4 a7b7 d4c5 h4h3 c5d5 b7a7 d5d4 a7b7 d4c5 h3h2 c5d5 b7a7 d5d4 a7b7 d4e4 b7a7 e4e3 a7b7 e3f3 b7a7 f3f2 a7b7 f2h2 b7a7 h2f2 a7b7 f2c5 h7h6 c5d5 b7a7 d5d4 a7b7 d4c5 h6h5 c5d5 b7a7 d5d4 a7b7 d4c5 h5h4 c5d5 b7a7 d5d4 a7b7 d4c5 h4h3 c5d5 b7a7 d5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q d4a1 f2f1 a1d4 f1f2 d4d1 f2f1 d1d3 f1f4 d3e3 f4f2 e3d4 a3a2 d4d1 f2f1 d1e2 f1f2 e2e1 f2f1 e1e3 f1f2 e3d4 a4a3 d4d1 f2f1 d1e2 f1f2 e2e1 f2f1 e1e3 f1f2 e3d4 c6c5 d4d1 f2f1 d1e2 f1f2 e2e1 f2f1 e1e3 f1f2 e3c1 f2f1 c1c5 f1f2 c5d4 a2a1q d4a1 f2f1 a1d4 f1f2 d4d1 f2f1 d1e2 f1f2 e2e1 f2f1 e1e3 f1f2 e3d4 a3a2 d4d1 f2f1 d1e2 f1f2 e2e1 f2f1 e1e3 f1f2 e3d4 a2a1q d4a1 f2f1 a1a7 f1f2 a7d4 f5f4 d4d1 f2f1 d1e2 f1f2 e2g4 g1h1 g4d1 f2f1 d1f1

PV doesn't match the expected result

Missing PV

6B1/k5b1/6N1/p3pBpP/Pp1pPp1p/1P1P1P1P/7K/r7 w - - bm #119;
@dav1312 dav1312 changed the title Wrong mates Missing PVs Apr 3, 2024
@robertnurnberg
Copy link
Contributor

Could also add a section with positions where there is likely a shorter mate? For example from your talkchess links:
R1n4k/n1p5/pb1p1N1P/3P3p/7p/p1p1P3/P1P1PP1P/7K w - - bm #24 as likely being #23 and Q1b4q/2Pp2p1/3P1k1b/6pP/3p1pPp/3P1pBK/5P2/8 w - - bm #125; possibly being #55.

@robertnurnberg
Copy link
Contributor

robertnurnberg commented Apr 6, 2024

How about always stating our currently best found mates/PVs? I make a start:

8/8/3p4/N2p4/1k6/p2K4/8/1B6 w - - bm #20; mate 29 (d101, nodes 3318559435410) PV: a5c6 b4b5 c6d4 b5b4 b1a2 b4c5 a2b3 c5b6 b3d5 b6c5 d3e4 c5b4 d4c2 b4c3 c2a3 c3b4 a3b1 b4c5 b1c3 c5b4 e4d4 b4a3 c3a2 a3a4 d4c4 a4a3 a2b4 a3b2 c4d3 b2c1 d3c3 c1d1 d5f3 d1e1 b4d3 e1f1 c3d2 f1g1 d2e3 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3h4
1n6/k2p4/p1pPp3/P1P1Pp2/5p2/5P2/2P2P2/4K3 w - - bm #57; mate 58 (d100, nodes 3104588368245) PV: e1f1 a7b7 f1g2 b7c8 g2h3 c8d8 h3h4 d8e8 h4g5 e8f7 g5h6 f7f8 h6g6 f8g8 c2c3 g8f8 g6f6 f8e8 f6g7 e8d8 g7f8 d8c8 f8e7 c8b7 e7f6 b7c8 f6g5 c8d8 g5f4 d8e8 f4g5 e8f7 g5h6 f7f8 h6g6 f8g8 c3c4 g8f8 g6f6 f8e8 f6g7 e8d8 g7f7 d8c8 f7e7 c8b7 e7d8 b7a8 d8c8 a8a7 c8c7 a7a8 c7b6 f5f4 b6c7 a8a7 c7d8 a7b7 d8e7 b7c8 e7f6 c8d8 f6g5 d8e8 g5f4 e8f8 f4g5 f8g7 f3f4 g7f7 g5h6 f7f8 h6g6 f8g8 f4f5 g8f8 g6f6 e6f5 f6f5 f8f7 f2f4 f7g7 e5e6 d7e6 f5e6 g7g6 d6d7 b8d7 e6d7 g6f5 d7c6 f5e6 c6b7 e6f5 c5c6 f5e4 c6c7 e4f5 c4c5 f5g4 c5c6 g4f3 c7c8q f3g3 c6c7 g3f4 b7a6 f4g5 c8h3 g5f6 c7c8q f6g6 c8f5 g6g7 h3h7

@dav1312
Copy link
Contributor Author

dav1312 commented Apr 6, 2024

This is probably the idea behind 6B1/k5b1/6N1/p3pBpP/Pp1pPp1p/1P1P1P1P/7K/r7 w - - bm #119; but finding the expected pv might be hard

[SetUp "1"]
[FEN "6B1/k5b1/6N1/p3pBpP/Pp1pPp1p/1P1P1P1P/7K/r7 w - - 0 1"]

1. Bc4 Ra2+ 2. Kg1 Ra1+ 3. Kf2 Ra2+ 4. Ke1 Ra1+ 5. Kd2 Ra2+ 6. Kc1 Ra1+ 7. Kb2 Rh1 8. Bg4 Rh2+ 9. Kc1 Rh1+ 10. Kd2 Rh2+ 11. Ke1 Rh1+ 12. Kf2 Rh2+ 13. Kg1 Ra2 14. Ne7 Ra1+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c1 Re1+ 92. Kd2 Rh1 93. e8=Q Rh2+ 94. Ke1 Rh1+ 95. Kf2 Rh2+ 96. Kg1 Rg2+ 97. Kxg2 Ka7 98. Nxg5 Ka6 99. Qc6+ Ka7 100. Qb7# 1-0

This was referenced Apr 19, 2024
@vondele
Copy link
Owner

vondele commented May 7, 2024

I ran fairly long analysis on all positions with missing PV lines. That's the summary:

     1	8/2p5/7p/2pR3r/8/6R1/2P4r/4K2k w - - bm #19;
          last:  info depth 122 seldepth 42 multipv 1 score mate 21 nodes 66435742044568 nps 830446765 hashfull 965 tbhits 0 time 80000001 pv e1f1 h2h4 g3g4 c5c4 d5e5 c4c3 g4g1 h1h2 g1g2 h2h1 g2g4
          best:  info depth 122 seldepth 42 multipv 1 score mate 21 nodes 66435742044568 nps 830446765 hashfull 965 tbhits 0 time 80000001 pv e1f1 h2h4 g3g4 c5c4 d5e5 c4c3 g4g1 h1h2 g1g2 h2h1 g2g4 c7c6 g4g1 h1h2 g1g2 h2h1 g2g4 c6c5 g4g1 h1h2 g1g2 h2h1 g2g4 c5c4 g4g1 h1h2 g1g2 h2h1 g2g4 h1h2 f1f2 h5f5 e5f5 h2h3 g4g2 h4f4 f5f4 h6h5 g2h2 h3h2 f4h4  is mate

     2	8/8/3p4/N2p4/1k6/p2K4/8/1B6 w - - bm #20;
          last:  info depth 127 seldepth 58 multipv 1 score mate 29 nodes 33603331091205 nps 420041633 hashfull 695 tbhits 0 time 80000001 pv a5c6 b4c5 c6e7 d5d4 b1a2 d6d5 e7f5 c5b5 d3d4 b5c6 a2d5
          best:  info depth 127 seldepth 58 multipv 1 score mate 29 nodes 33603331091205 nps 420041633 hashfull 695 tbhits 0 time 80000001 pv a5c6 b4c5 c6e7 d5d4 b1a2 d6d5 e7f5 c5b5 d3d4 b5c6 a2d5 c6c7 d4c5 c7d8 d5a2 d8d7 c5d5 d7c7 d5e6 c7c6 f5d4 c6c5 d4c2 c5c6 c2a3 c6c5 a3c2 c5c6 a2b3 c6c5 e6d7 c5b5 d7d6 b5a5 d6c5 a5a6 b3d5 a6a5 d5c6 a5a6 c2e3 a6a7 c5d6 a7b8 d6d7 b8a7 d7c7 a7a6 e3c4 a6a7 c6b5 a7a8 c4b6 a8a7 b6c8 a7a8 b5c6  is mate

     3	qrr1b3/pn2p3/npppp1P1/4pP2/2P2BPp/PPN1P2B/4R2K/2k5 w - - bm #20;
          last:  info depth 54 seldepth 110 multipv 1 score cp 1538 nodes 22145199711252 nps 276814882 hashfull 1000 tbhits 0 time 80000033 pv f4g5 e5e4 c3e4 b7c5 e4c3 c5e4 c3e4 c6c5 e4c3 a8e4 c3e4

     4	2r1b1Q1/6p1/2P5/5P2/1p2K3/pPp5/n2P4/1B2k3 w - - bm #23;
          last:  info depth 38 seldepth 70 multipv 1 score cp 1470 nodes 28793893065526 nps 359923528 hashfull 1000 tbhits 0 time 80000030 pv e4f4 a2c1 d2c3 e1f2 c3b4 c1e2 f4g5 e2g3 b4b5 g3e2 g8e6

     5	7Q/6p1/8/8/1p6/3P3P/2P3pp/4K2k w - - bm #23;
          last:  info depth 58 seldepth 36 multipv 1 score cp 2410 lowerbound nodes 31265434473699 nps 390817926 hashfull 324 tbhits 0 time 80000001 pv h8a8

     6	8/p7/qb5p/p6p/p7/7p/2P1P2k/2Q2K2 w - - bm #23;
          last:  info depth 49 seldepth 85 multipv 1 score cp 4538 lowerbound nodes 39483090039577 nps 493538613 hashfull 350 tbhits 0 time 80000002 pv c1f4

     7	8/p7/qb5p/p7/p6p/7p/2P1P2k/2Q2K2 w - - bm #23;
          last:  info depth 97 seldepth 68 multipv 1 score mate 34 nodes 49409318175767 nps 617616322 hashfull 980 tbhits 0 time 80000020 pv c1f4 h2h1 f4e4 h1h2 e4e5 h2h1 e5e6 h1h2 e6d6 h2h1 d6c6 h
          best:  info depth 97 seldepth 68 multipv 1 score mate 34 nodes 49409318175767 nps 617616322 hashfull 980 tbhits 0 time 80000020 pv c1f4 h2h1 f4e4 h1h2 e4e5 h2h1 e5e6 h1h2 e6d6 h2h1 d6c6 h1h2 c2c4 h2g3 c6f3 g3h2 f3f4 h2h1 f4f5 h1h2 f5e5 h2h1 e5d5 h1h2 d5d6 h2h1 d6c6 h1h2 e2e3 b6e3 c6a6 h2g3 f1e2 e3b6 c4c5 g3f4 c5b6 a7b6 e2d3 h3h2 a6b7 f4e5 b7e4 e5d6 d3d4 h4h3 e4e5 d6c6 e5e6 c6c7 e6h3 c7c6 h3h2 h6h5 h2g2 c6c7 d4d5 b6b5 g2g7 c7b6 d5d6 h5h4 g7c7 b6a6 d6c6 h4h3 c7b7  is mate

     8	8/1rp3p1/1p4N1/1P1P4/P1K3P1/1pBP1B2/pPp5/1bk5 w - - bm #36;
          last:  info depth 50 seldepth 118 multipv 1 score cp 1898 nodes 35852300563292 nps 448153656 hashfull 1000 tbhits 0 time 80000018 pv g6f4 a2a1n d5d6 b7b8 f4e2 c1d1 e2d4 d1c1 d6c7 b8f8 a4a

     9	1n6/k2p4/p1pPp3/P1P1Pp2/5p2/5P2/2P2P2/4K3 w - - bm #57;
          last:  info depth 103 seldepth 114 multipv 1 score mate 57 nodes 42905393013860 nps 536317385 hashfull 990 tbhits 0 time 80000004 pv e1f1 a7b7 f1g2 b7c8 g2h3 c8d8 h3h4 d8e8 h4g5 e8f7 g5h6
          best:  info depth 103 seldepth 114 multipv 1 score mate 57 nodes 42905393013860 nps 536317385 hashfull 990 tbhits 0 time 80000004 pv e1f1 a7b7 f1g2 b7c8 g2h3 c8d8 h3h4 d8e8 h4g5 e8f7 g5h6 f7f8 h6g6 f8g8 c2c3 g8f8 g6f6 f8e8 f6g7 e8d8 g7f7 d8c8 f7e7 c8b7 e7f6 b7c8 f6g5 c8d8 g5f4 d8e8 f4g5 e8f7 g5h6 f7f8 h6g6 f8g8 c3c4 g8f8 g6f6 f8e8 f6g7 e8d8 g7f7 d8c8 f7e8 c8b7 e8d8 b7a8 d8c8 a8a7 c8c7 a7a8 c7b6 f5f4 b6c7 a8a7 c7d8 a7b7 d8e7 b7c8 e7f6 c8d8 f6g5 d8e8 g5f4 e8f7 f4g5 f7g7 f3f4 g7f7 g5h6 f7f8 h6g6 f8g8 g6f6 g8f8 f4f5 e6f5 f2f4 f8g8 e5e6 d7e6 f6e6 g8g7 d6d7 b8d7 e6d7 g7f7 d7c6 f7g6 c6d5 g6h5 c5c6 h5g4 c6c7 g4g3 d5d4 g3f4 c7c8q f4g5 d4e5 g5g4 c8f5 g4g3 f5d3 g3f2 e5f4 f2g2 d3d2 g2g1 f4g3 g1h1 d2g2  is mate

    10	8/p1p3Pr/p1p2P2/7p/7k/6p1/p1p3P1/rbK5 w - - bm #64;
          last:  info depth 95 seldepth 13 multipv 1 score cp 0 nodes 63080777414314 nps 788509441 hashfull 28 tbhits 0 time 80000028 pv f6f7 h7g7 f7f8q g7g5 f8f6 h4g4 f6f3 g4h4

    11	4R3/pn1p1p1p/p2n4/8/8/p4p2/7p/5K1k w - - bm #69;
          last:  info depth 111 seldepth 20 multipv 1 score cp 0 nodes 28568421823005 nps 357105254 hashfull 129 tbhits 0 time 80000004 pv e8e1 d6e4 e1e4 b7c5 e4e1 c5d3 e1d1 a3a2 d1a1 d7d6 a1a2 d3c

    12	8/5ppp/5p2/8/NK6/1B1N4/2rpn1pp/2bk1brq w - - bm #87;
          last:  info depth 245 seldepth 5 multipv 1 score cp 0 nodes 46829349931 nps 377403431 hashfull 117 tbhits 0 time 124083 pv d3f2 d1e1 f2d3 e1d1

    13	7K/3p4/4p3/1p5p/p3n3/1p1N3p/rp2N1br/bR3n1k w - - bm #96;
          last:  info depth 231 seldepth 7 multipv 1 score cp 0 nodes 36273425754976 nps 453417742 hashfull 1000 tbhits 0 time 80000014 pv d3f2 e4f2 e2g3 h1g1 g3e2 g1h1

    14	8/p1p1p3/2p3p1/6Pb/p3P1k1/P1p1PNnr/2P1PKRp/7B w - - bm #100; 00:00+ @ C2/R0/K2/P6/X8;
          last:  info depth 44 seldepth 94 multipv 1 score cp 899 nodes 25024617262332 nps 312807649 hashfull 994 tbhits 0 time 80000017 pv f2e1 h3h4 f3h4 g4h4 g2h2 h4g5 h1f3 g5f6 h2g2 g6g5 g2g3 h5

    15	n1K5/bNp1p1p1/1pP3p1/1k2p3/1N3n2/PP4p1/4rpP1/5B2 w - - bm #101;
          last:  info depth 134 seldepth 21 multipv 1 score cp 0 nodes 24705499025819 nps 308818706 hashfull 1000 tbhits 0 time 80000008 pv c8d7 e7e6 d7c8 e5e4 c8d7 a7b8 d7e8 b8a7 e8f7 e6e5 f7g8 a7

    16	8/4p3/3p4/p5p1/3n2Kp/p3N1p1/rb1N2pr/k1n3Rb w - - bm #102;
          last:  info depth 220 seldepth 59 multipv 1 score cp 0 nodes 37470848672267 nps 468385538 hashfull 983 tbhits 0 time 80000012 pv g4h5 h2h3 h5g6 h3h2 g6f7 h2h3

    17	qbn5/k1PK1P1p/p5np/Pp5p/5P1p/2p4p/Q7/8 w - - bm #103;
          last:  info depth 168 seldepth 9 multipv 1 score cp 0 nodes 31574374781141 nps 394679660 hashfull 1000 tbhits 0 time 80000005 pv a2f2 a7b7 f2f3 b7a7

    18	6k1/p1p2pP1/5PpK/5p2/1p2pP2/1P1pP2N/1P1P2P1/5BBq w - - bm #104;
          last:  info depth 138 seldepth 21 multipv 1 score cp 0 nodes 36939406485842 nps 461742396 hashfull 1000 tbhits 0 time 80000032 pv h6g5 g8h7 g5h4 c7c6 h4g3 h7g8 g3f2 g8h7

    19	n7/pPp5/p4p2/5p2/p6p/p6K/3rb3/n6k w - - bm #110;
          last:  info depth 129 seldepth 173 multipv 1 score cp 408 nodes 23000457718523 nps 287505703 hashfull 224 tbhits 0 time 80000005 pv b7a8q e2f3 a8f3 h1g1 f3e3 d2f2 e3e1 f2f1 e1e2 f1f2 e2d1

    20	6B1/k5b1/6N1/p3pBpP/Pp1pPp1p/1P1P1P1P/7K/r7 w - - bm #119;
          last:  info depth 58 seldepth 134 multipv 1 score cp 610 nodes 65415038489695 nps 817687858 hashfull 857 tbhits 0 time 80000012 pv g8c4 a7b7 g6e7 g7f6 e7g8 f6h8 f5g4 a1a2 h2g1 a2a1 g1g2 a

    21	8/1p1p4/3p2p1/5pP1/1p3P1k/1P1p1P1p/1P1P1P1K/7B w - - bm #121; 00:03+ @ C20/R0/K3/P5/X6;
          last:  info depth 219 seldepth 34 multipv 1 score cp 0 nodes 30605606663199 nps 382570059 hashfull 114 tbhits 0 time 80000005 pv h2g1 d6d5 g1h2 b7b6 h2g1 h4h5 h1g2 h3g2 g1g2 h5h4 g2h2 d5d

    22	r1b5/1pKp4/pP1P1p1p/P4p1B/3pn2p/1P1k4/1P6/5N1N w - - bm #121;
          last:  info depth 131 seldepth 67 multipv 1 score cp 0 nodes 8829794114618 nps 110372416 hashfull 1000 tbhits 0 time 80000007 pv h5d1 h4h3 c7d8 f5f4 d8e7 a8b8 e7f8 f4f3 f8g7 h6h5 g7f8 b8a

    23	3N1qN1/1Kn2P2/1Q1p1Pp1/3P1pp1/1R6/1p1p4/kp1p4/b2b3n w - - bm #125;
          last:  info depth 112 seldepth 37 multipv 1 score cp 0 nodes 5331077232023 nps 66638432 hashfull 1000 tbhits 0 time 80000040 pv b4a4 a2b1 b6g1 h1f2 b7c7 g5g4 a4a6 b1c2 a6c6 c2b1

    24	Q1b4q/2Pp2p1/3P1k1b/6pP/3p1pPp/3P1pBK/5P2/8 w - - bm #125;
          last:  info depth 37 seldepth 125 multipv 1 score cp 5345 nodes 42952213931239 nps 536902479 hashfull 777 tbhits 0 time 80000029 pv a8e4 f6f7 e4e7 f7g8 g3h2 g8h7 e7e4 h7g8 e4e8 g8h7 e8g6

    25	n7/b1p1K3/1pP4p/1P4p1/6p1/1p4Pn/1P2N1br/3NRn1k w - - bm #126; 00:03+ @ C2/R0/K2/P4/X10;
          last:  info depth 144 seldepth 15 multipv 1 score cp 0 nodes 5682777440914 nps 71034713 hashfull 1000 tbhits 0 time 80000005 pv e7d8 h6h5 d8e7 h5h4 e7f8 h4g3 e2g3 h1g1 g3e2 g1h1 e2g3

@robertnurnberg
Copy link
Contributor

robertnurnberg commented May 8, 2024

@vondele Thanks! So apart from the positions that have by now been merged, the improvement is

 7	8/p7/qb5p/p7/p6p/7p/2P1P2k/2Q2K2 w - - bm #23;
          best:  info depth 97 seldepth 68 multipv 1 score mate 34 nodes 49409318175767 nps 617616322 hashfull 980 tbhits 0 time 80000020 pv c1f4 h2h1 f4e4 h1h2 e4e5 h2h1 e5e6 h1h2 e6d6 h2h1 d6c6 h1h2 c2c4 h2g3 c6f3 g3h2 f3f4 h2h1 f4f5 h1h2 f5e5 h2h1 e5d5 h1h2 d5d6 h2h1 d6c6 h1h2 e2e3 b6e3 c6a6 h2g3 f1e2 e3b6 c4c5 g3f4 c5b6 a7b6 e2d3 h3h2 a6b7 f4e5 b7e4 e5d6 d3d4 h4h3 e4e5 d6c6 e5e6 c6c7 e6h3 c7c6 h3h2 h6h5 h2g2 c6c7 d4d5 b6b5 g2g7 c7b6 d5d6 h5h4 g7c7 b6a6 d6c6 h4h3 c7b7  is mate

(best info was M37 beforehand)

Indeed I believe our best chance of progress with "brute-force" searches from root are these (conjectured short-ish) mates:

2r1b1Q1/6p1/2P5/5P2/1p2K3/pPp5/n2P4/1B2k3 w - - bm #23; Best result so far M34 https://talkchess.com/viewtopic.php?p=961041#p961041; PV: g8e6 e8f7 e6c8 c3d2 b1c2 a2c3 e4e3 a3a2 c8a6 f7e8 c6c7 e8d7 a6a8 d2d1n c2d1 c3d1 e3d4 d1c3 d4c5 e1d2 c5b4 d7f5 a8g2 c3e2 g2g7 f5c8 g7b2 d2e3 b2a2 c8g4 a2a6 e2g3 b4c5 g3e2 c7c8q g4c8 a6c8 e3f4 c5c4 f4f3 c8f5 f3e3 f5g5 e3f3 b3b4 e2g3 b4b5 g3e4 g5d5 f3e3 d5d4 e3f3 b5b6 e4g3 d4d3 f3g4 b6b7 g4h4 b7b8q g3h5 d3e4 h4h3 e4f3 h3h4 b8h2 h4g5 h2h5
7Q/6p1/8/8/1p6/3P3P/2P3pp/4K2k w - - bm #23; Best result so far M24 (d74, nodes 1875962607075); PV: h8a8 h1g1 a8a7 g1h1 a7b7 h1g1 b7b6 g1h1 b6c6 h1g1 c6c5 g1h1 c5d5 h1g1 d5d4 g1h1 d4e4 h1g1 e4e3 g1h1 e3f3 h1g1 e1e2 g7g6 f3g4 g1h1 g4e4 h1g1 e4d4 g1h1 d4d5 h1g1 d5c5 g1h1 c5c6 h1g1 c6b6 g1h1 b6b7 h1g1 b7a7 g1h1 a7a8 g6g5 e2f2 g5g4 a8g2
8/p7/qb5p/p6p/p7/7p/2P1P2k/2Q2K2 w - - bm #23; Best result so far M37; info depth 89 seldepth 74 multipv 1 score mate 37 wdl 1000 0 0 nodes 643850458826 nps 19709983 hashfull 999 tbhits 0 time 32666210 pv c1f4 h2h1 f4f5 h1h2 f5e5 h2h1 e5d5 h1h2 d5d6 h2h1 d6c6 h1h2 c2c4 h2g3 c6f3 g3h2 f3f4 h2h1 f4e4 h1h2 e4e5 h2h1 e5d5 h1h2 d5d6 h2h1 d6c6 h1h2 e2e3 b6e3 c6a6 h2g3 a6b7 e3g5 f1e2 g3f4 b7f3 f4e5 f3h3 h5h4 h3c3 e5e4 c3d3 e4e5 e2f3 a4a3 d3c3 e5d6 c3a3 d6c6 f3e4 g5d8 a3a4 c6d6 a4d1 d6c7 e4d5 h4h3 d1h5 c7b7 h5h3 d8b6 h3d7 b6c7 d7c6 b7c8 c6a6 c8d8 a6e6 h6h5 d5c6 c7f4 e6d7
8/p7/qb5p/p7/p6p/7p/2P1P2k/2Q2K2 w - - bm #23; Similar to previous, best result so far M37 (d96, nodes 1898591883350); PV: c1f4 h2h1 f4f5 h1h2 f5e5 h2h1 e5e6 h1h2 e6d6 h2h1 d6c6 h1h2 c2c4 h2g3 c6f3 g3h2 f3f4 h2h1 f4e4 h1h2 e4e5 h2h1 e5d5 h1h2 d5d6 h2h1 d6c6 h1h2 e2e3 b6e3 c6a6 h2g3 f1e2 e3g5 a6a7 g3f4 a7e3 f4f5 e3h3 f5e5 c4c5 a4a3 h3a3 e5d5 a3d3 d5c5 e2f3 h4h3 f3e4 h3h2 d3c2 c5b4 c2h2 b4c3 h2c7 c3b4 e4d3 b4b5 c7c4 b5b6 d3e4 h6h5 e4d5 g5d8 c4c6 b6a7 c6b5 d8c7 d5c6 c7b6 b5b6 a7a8 b6b7
R1n4k/n1p5/pb1p1N1P/3P3p/7p/p1p1P3/P1P1PP1P/7K w - - bm #24; Might be M23 https://talkchess.com/forum3/viewtopic.php?p=959200#p959200; PV: a8b8 h4h3 h1g1 b6c5 b8b1 c8b6 g1h1 b6d7 f6d7 h8h7 d7c5 d6c5 d5d6 c7d6 b1b7 h7h6 b7a7 d6d5 a7a6 h6g5 a6a3 g5f5 a3b3 d5d4 e3d4 c5d4 h1g1 f5e6 a2a4 h5h4 a4a5 e6d7 a5a6 d4d3 e2d3 d7d6 a6a7 d6c7 a7a8q c7d7 a8a6 d7e7 b3b7 e7d8 a6a8

Maybe you could run these individually on your big machine for 24h each, or so?

@vondele
Copy link
Owner

vondele commented May 9, 2024

That's exactly what was done for 4 of these positions without PV in matetrackpv.epd, but no luck. (which might cast some doubt on them being correct, IMO). I can give it a longer run on the last position where there is a suspected shorter mate.

@robertnurnberg
Copy link
Contributor

I agree that the three positions with currently best mate >30 are almost certainly incorrect. But they seem to be mates in under 40 moves, so we could retain them in the suite if we manage to find/confirm the PVs.

@vondele
Copy link
Owner

vondele commented May 9, 2024

yes, no need to remove them right now, somebody might have PVs.

I actually realize that for the suspected bm #24; Might be M23 it would probably be easiest to confirm it based on the PV line.. if it is somewhere available as the sequence of uci moves, I can try that as well.

@robertnurnberg
Copy link
Contributor

robertnurnberg commented May 9, 2024

yes, no need to remove them right now, somebody might have PVs.

I actually realize that for the suspected bm #24; Might be M23 it would probably be easiest to confirm it based on the PV line.. if it is somewhere available as the sequence of uci moves, I can try that as well.

R1n4k/n1p5/pb1p1N1P/3P3p/7p/p1p1P3/P1P1PP1P/7K w - -; PV: a8b8 h4h3 h1g1 b6c5 b8b1 c8b6 g1h1 b6d7 f6d7 h8h7 d7c5 d6c5 d5d6 c7d6 b1b7 h7h6 b7a7 d6d5 a7a6 h6g5 a6a3 g5f5 a3b3 d5d4 e3d4 c5d4 h1g1 f5e6 a2a4 h5h4 a4a5 e6d7 a5a6 d4d3 e2d3 d7d6 a6a7 d6c7 a7a8q c7d7 a8a6 d7e7 b3b7 e7d8 a6a8

Edit: This is in fact the same line as posted by David in #52 (comment).

@robertnurnberg
Copy link
Contributor

So a run like this: python provepvs.py --epdFile mate23.epd --cdbFile mate23pv.epd --threads N --hash M --mateFill all might do the trick. Will do matching go mate runs from leaf to root. (or you use your one liner). ;)

@vondele
Copy link
Owner

vondele commented May 9, 2024

My quick one-liner lost the mate in the backwards analysis, but it will be searching for 24h from the root after that.

info depth 61 seldepth 38 multipv 1 score mate 18 nodes 2888573635 nps 28885447 hashfull 23 tbhits 0 time 100001 pv d7c5 h7h6 c5a6 h6g5 b1b8 c7c6 b8b7 c6d5 b7a7
bestmove d7c5 ponder h7h6
--
info depth 66 seldepth 37 multipv 1 score mate -18 nodes 12912987264 nps 144211512 hashfull 88 tbhits 0 time 89542 pv h8h7 d7c5 h7h6 c5a6 h6g5 b1b8 c7c6 b8b7 c6
bestmove h8h7 ponder d7c5
--
info depth 67 seldepth 38 multipv 1 score mate 19 nodes 2390380620 nps 23903567 hashfull 24 tbhits 0 time 100001 pv f6d7 h8h7 d7c5 h7h6 c5a6 h6g5 b1b8 c7c6 b8b7
bestmove f6d7 ponder h8h7
--
info depth 72 seldepth 39 multipv 1 score mate -19 nodes 11236768055 nps 117350377 hashfull 102 tbhits 0 time 95754 pv b6d7 f6d7 h8h7 d7c5 h7h6 c5a6 h6g5 b1b8 c
bestmove b6d7 ponder f6d7
--
info depth 66 seldepth 40 multipv 1 score mate 20 nodes 2181376146 nps 21813325 hashfull 26 tbhits 0 time 100002 pv g1h1 b6d7 f6d7 h8h7 d7c5 h7h6 c5a6 h6g5 b1b8
bestmove g1h1 ponder b6d7
--
info depth 73 seldepth 41 multipv 1 score mate -20 nodes 5709729144 nps 95889313 hashfull 63 tbhits 0 time 59545 pv c8b6 g1h1 b6d7 f6d7 h8h7 d7c5 h7h6 c5a6 h6g5
bestmove c8b6 ponder g1h1
--
info depth 64 seldepth 42 multipv 1 score mate 21 nodes 2443771080 nps 24437222 hashfull 21 tbhits 0 time 100002 pv b8b1 c8b6 g1h1 b6d7 f6d7 h8h7 d7c5 h7h6 c5a6
bestmove b8b1 ponder c8b6
--
info depth 38 seldepth 73 multipv 1 score cp -1721 nodes 36223213958 nps 362228517 hashfull 39 tbhits 0 time 100001 pv a6a5 g1h1
bestmove a6a5 ponder g1h1
--
info depth 57 seldepth 52 multipv 1 score mate 26 nodes 3649537532 nps 36494645 hashfull 24 tbhits 0 time 100002 pv h1g1 a6a5 g1h1 a5a4 h1g1 b6c5 b8b1 c8b6 g1h1
bestmove h1g1 ponder a6a5
--
info depth 64 seldepth 53 multipv 1 score mate -26 nodes 13678860151 nps 136787233 hashfull 140 tbhits 0 time 100001 pv h4h3 h1g1 a6a5 g1h1 a5a4 h1g1 b6c5 b8b1 

@vondele
Copy link
Owner

vondele commented May 9, 2024

I might actually also try to setup your tool.

@robertnurnberg
Copy link
Contributor

I think my tool will just use go mate at every step. I assume you can amend your one liner to have the same effect.

@vondele
Copy link
Owner

vondele commented May 9, 2024

What's the difference in these two input files --epdFile mate23.epd --cdbFile mate23pv.epd I assume one of the two is the line you pasted.

@robertnurnberg
Copy link
Contributor

First one is without the PV. The tool parses the edp file to look for missing PVs. It then tries to prove the ones suggested in the cdb file.

@robertnurnberg
Copy link
Contributor

Second one should have

R1n4k/n1p5/pb1p1N1P/3P3p/7p/p1p1P3/P1P1PP1P/7K w - - bm #23; PV: a8b8 h4h3 h1g1 b6c5 b8b1 c8b6 g1h1 b6d7 f6d7 h8h7 d7c5 d6c5 d5d6 c7d6 b1b7 h7h6 b7a7 d6d5 a7a6 h6g5 a6a3 g5f5 a3b3 d5d4 e3d4 c5d4 h1g1 f5e6 a2a4 h5h4 a4a5 e6d7 a5a6 d4d3 e2d3 d7d6 a6a7 d6c7 a7a8q c7d7 a8a6 d7e7 b3b7 e7d8 a6a8

@robertnurnberg
Copy link
Contributor

And the first file the same line but without the PV.

@vondele
Copy link
Owner

vondele commented May 9, 2024

I suspect that PV line is not correct. The python script is 'stuck'

[...]
ply   8, score #+19 (d2, nodes 127799) PV: f6d7
Analysing "7k/n1p5/pn1p1N1P/2bP3p/8/p1p1P2p/P1P1PP1P/1R5K b - -" (after move g1h1) to Limit(mate=19).
ply   7, score #-19 (d16, nodes 10959495) PV: b6d7 f6d7 h8h7 d7c5 h7h6 c5a6 h6g6 b1b8 c7c6 b8a8 c6d5 a8a7 d5d4 e3d4 g6f5 a7e7 f5f6
Analysing "7k/n1p5/pn1p1N1P/2bP3p/8/p1p1P2p/P1P1PP1P/1R4K1 w - -" (after move c8b6) to Limit(mate=20).
ply   6, score #+20 (d10, nodes 463390) PV: g1h1 b6d7 f6d7 h8h7 d7c5 h7h6 c5a6 h6g6 b1b8 c7c6 b8b7
Analysing "2n4k/n1p5/p2p1N1P/2bP3p/8/p1p1P2p/P1P1PP1P/1R4K1 b - -" (after move b8b1) to Limit(mate=20).
ply   5, score #-20 (d15, nodes 3663957) PV: c8b6 g1h1 b6d7 f6d7 h8h7 d7c5 h7h6 c5a6 h6g6 b1b8 c7c6 b8b7 c6d5 b7a7 d5d4 e3d4 g6f5
Analysing "1Rn4k/n1p5/p2p1N1P/2bP3p/8/p1p1P2p/P1P1PP1P/6K1 w - -" (after move b6c5) to Limit(mate=21).
ply   4, score #+21 (d19, nodes 2924722) PV: b8b1 c5e3 f2e3 c8b6 g1h1 b6d7 f6d7 h8h7 b1b7 a7b5 d7b8 h7h6 b8a6 b5a7 b7a7 h6g6 a7c7 g6f6 c7d7 f6f5 d7e7 f5f6
Analysing "1Rn4k/n1p5/pb1p1N1P/3P3p/8/p1p1P2p/P1P1PP1P/6K1 b - -" (after move h1g1) to Limit(mate=21).

and my one-line lost mate there as well, I think, and is currently for the rootpos at:

info depth 81 seldepth 48 multipv 1 score mate 24 nodes 292205616548 nps 134307765 hashfull 988 tbhits 0 time 2175642 pv a8b8 h4h3 h1g1 a6a5 g1h1 a5a4 h1g1 b6c5 b8b1 c8b6 g1h1 b6d7 f6d7 h8h7 b1b7 h7h6 d7c5 a7c8 b7c7 c8b6 c7c6 b6c4 c5d3 c4a5 c6d6 h6g7 d3e5 g7f8 d6d7 a5b3 d7c7 b3c5 c7c5 f8g7 c5c6 h5h4 c6e6 g7h8 d5d6 h8g7 d6d7 g7f8 d7d8q f8g7 d8d7 g7h8 e6e8

@robertnurnberg
Copy link
Contributor

robertnurnberg commented May 9, 2024

Hm, does not necessarily mean the PV is wrong. Would need deep analysis of the FEN the script is stuck at. Could well be that SF finds it hard to refute a side line, with the TT not having been filled for that refutation. If you see what I mean.

@robertnurnberg
Copy link
Contributor

and my one-line lost mate there as well, I think, and is currently for the rootpos at:

info depth 81 seldepth 48 multipv 1 score mate 24 nodes 292205616548 nps 134307765 hashfull 988 tbhits 0 time 2175642 pv a8b8 h4h3 h1g1 a6a5 g1h1 a5a4 h1g1 b6c5 b8b1 c8b6 g1h1 b6d7 f6d7 h8h7 b1b7 h7h6 d7c5 a7c8 b7c7 c8b6 c7c6 b6c4 c5d3 c4a5 c6d6 h6g7 d3e5 g7f8 d6d7 a5b3 d7c7 b3c5 c7c5 f8g7 c5c6 h5h4 c6e6 g7h8 d5d6 h8g7 d6d7 g7f8 d7d8q f8g7 d8d7 g7h8 e6e8

Notice that the talkchess post from robertnurnberg/matetools#32 (comment) has the root pos at depth 119, though it is not clear with what engine.

@vondele
Copy link
Owner

vondele commented May 9, 2024

I'll keep them running for ~20h or so, but only report back on Monday.

suggested: enhancement for the provepvs script... store the engine output for each 'go mate' in a file, so one has that deep analysis on the 'stuck' move.

@robertnurnberg
Copy link
Contributor

With engine output you mean more than is printed to console currently? I usually pipe that to log.txt etc.

@vondele
Copy link
Owner

vondele commented May 9, 2024

Full engine output to file. However, I was too quick, here we go:

Analysing "7k/n1p5/pn1p1N1P/2bP3p/8/p1p1P2p/P1P1PP1P/1R5K b - -" (after move g1h1) to Limit(mate=19).
ply   7, score #-19 (d16, nodes 10959495) PV: b6d7 f6d7 h8h7 d7c5 h7h6 c5a6 h6g6 b1b8 c7c6 b8a8 c6d5 a8a7 d5d4 e3d4 g6f5 a7e7 f5f6
Analysing "7k/n1p5/pn1p1N1P/2bP3p/8/p1p1P2p/P1P1PP1P/1R4K1 w - -" (after move c8b6) to Limit(mate=20).
ply   6, score #+20 (d10, nodes 463390) PV: g1h1 b6d7 f6d7 h8h7 d7c5 h7h6 c5a6 h6g6 b1b8 c7c6 b8b7
Analysing "2n4k/n1p5/p2p1N1P/2bP3p/8/p1p1P2p/P1P1PP1P/1R4K1 b - -" (after move b8b1) to Limit(mate=20).
ply   5, score #-20 (d15, nodes 3663957) PV: c8b6 g1h1 b6d7 f6d7 h8h7 d7c5 h7h6 c5a6 h6g6 b1b8 c7c6 b8b7 c6d5 b7a7 d5d4 e3d4 g6f5
Analysing "1Rn4k/n1p5/p2p1N1P/2bP3p/8/p1p1P2p/P1P1PP1P/6K1 w - -" (after move b6c5) to Limit(mate=21).
ply   4, score #+21 (d19, nodes 2924722) PV: b8b1 c5e3 f2e3 c8b6 g1h1 b6d7 f6d7 h8h7 b1b7 a7b5 d7b8 h7h6 b8a6 b5a7 b7a7 h6g6 a7c7 g6f6 c7d7 f6f5 d7e7 f5f6
Analysing "1Rn4k/n1p5/pb1p1N1P/3P3p/8/p1p1P2p/P1P1PP1P/6K1 b - -" (after move h1g1) to Limit(mate=21).
ply   3, score #-21 (d75, nodes 274600472736) PV: b6c5 b8b1 c8b6 g1h1 b6d7 f6d7 h8h7 d7c5 h7h6 c5a6 a7c8 b1g1 c8b6 a6c7 b6d7 c7e8 d7b6 e3e4 b6c4 f2f4 c4e3 e8d6 e3c2 d6f5 h6h7 g1g7 h7h8 g7c7 c2e3 d5d6 c3c2 d6d7 c2c1q c7c1 h8h7 f5e3 h7g6 d7d8q g6h6 c1c7 h6g6 d8g5
Analysing "1Rn4k/n1p5/pb1p1N1P/3P3p/8/p1p1P2p/P1P1PP1P/7K w - -" (after move h4h3) to Limit(mate=22).
ply   2, score #+22 (d3, nodes 238720) PV: h1g1 b6c5
Analysing "1Rn4k/n1p5/pb1p1N1P/3P3p/7p/p1p1P3/P1P1PP1P/7K b - -" (after move a8b8) to Limit(mate=22).
ply   1, score #-22 (d9, nodes 4787509) PV: h4h3 h1g1 b6c5 b8b1 c8b6 g1h1 b6d7 f6d7 h8h7 d7c5 h7h6 c5a6 a7c8 b1g1 c8b6 a6c7 b6d7 c7e8 d7b6 e3e4 b6c4 f2f4 c4e3 e8d6 e3c2 d6f5 h6h7 g1g7 h7h8
Analysing "R1n4k/n1p5/pb1p1N1P/3P3p/7p/p1p1P3/P1P1PP1P/7K w - -" to Limit(mate=23).
Final score #+23, mate 23 (d17, nodes 1766861) PV: a8b8 h4h3 h1g1 h5h4 g1h1 a6a5 h1g1 b6c5 g1f1 c5b6 f1e1 b6c5 e1d1 c5b4 d1c1 b4c5 c1b1 c5b6 b1a1 a5a4 a1b1 b6a5 b1c1 a5b6 c1d1 b6c5
Found mate #23!
PV has status short and length 26 > 0.
Save PV to file.
R1n4k/n1p5/pb1p1N1P/3P3p/7p/p1p1P3/P1P1PP1P/7K w - - bm #23; PV: a8b8 h4h3 h1g1 h5h4 g1h1 a6a5 h1g1 b6c5 g1f1 c5b6 f1e1 b6c5 e1d1 c5b4 d1c1 b4c5 c1b1 c5b6 b1a1 a5a4 a1b1 b6a5 b1c1 a5b6 c1d1 b6c5;

next suggestion... after finding the right mate, restart search until a full PV is available. Now at least we know it should be possible..

@robertnurnberg
Copy link
Contributor

FYI: robertnurnberg/matetools#61

@robertnurnberg
Copy link
Contributor

So, currently I have local analyses running for two of the three positions with bm #23. I will let these run until maybe next week, and then suggest to raise the bm value in our db.

Maybe @vondele and/or @Yery have some powerful hw to do the same? Please report here if you find a new better mate for any of the three positions.

@Yery
Copy link

Yery commented Jul 2, 2024

OK, will run for a few days on each and report back.

@Yery
Copy link

Yery commented Jul 3, 2024

For position 8/p7/qb5p/p6p/p7/7p/2P1P2k/2Q2K2 w - - bm #23; I started after the following 7 moves (which is the line given above), all forced for black,

c1f4 h2h1 f4e4 h1h2 e4e5 h2h1 e5d5 h1h2 d5d6 h2h1 d6c6 h1h2 c2c4

8/p7/qbQ4p/p6p/p1P5/7p/4P2k/5K2 b - c3 0 7

This is the result after almost a day long think (The Huntsman)
info depth 99 seldepth 59 multipv 1 score mate -29 nodes 5059730850745 nps 65822630 hashfull 1000 tbhits 0 time 76869168 pv h2g3 c6f3 g3h2 f3f4 h2h1 f4e4 h1h2 e4e5 h2h1 e5d5 h1h2 d5d6 h2h1 d6c6 h1h2 e2e3 b6e3 c6a6 h2g3 a6c6 h3h2 c6g2 g3f4 g2h2 f4e4 f1e2 e3b6 h2h1 e4e5 h1d5 e5f4 e2d3 a4a3 c4c5 b6c5 d5c4 f4f5 c4c5 f5e6 c5a3 e6d5 a3a5 d5d6 a5h5 d6e6 d3d4 e6f6 d4d5 a7a6 h5f3 f6e7 d5e5 e7e8 e5e6 e8d8 f3b7 h6h5 b7b8

So this brings it down to a mate in 36. I'll keep it going a day longer.

Update after 2 days:
info depth 103 seldepth 59 multipv 1 score mate -29 nodes 13145615856261 nps 67210724 hashfull 1000 tbhits 0 time 195588069 pv h2g3 c6f3 g3h2 f3f4 h2h1 f4e4 h1h2 e4e5 h2h1 e5d5 h1h2 d5d6 h2h1 d6c6 h1h2 e2e3 b6e3 c6a6 h2g3 a6c6 h3h2 c6g2 g3f4 g2h2 f4e4 f1e2 e3b6 h2h1 e4e5 h1d5 e5f4 e2d3 a4a3 c4c5 b6c5 d5c4 f4f5 c4c5 f5e6 c5a3 e6d5 a3a5 d5d6 a5h5 d6e6 h5c5 h6h5 d3e4 h5h4 c5e5 e6f7 e4f5 h4h3 e5f6 f7e8 f5e6 h3h2 f6e7

@robertnurnberg
Copy link
Contributor

Nice. I think the same argument applies to the sister position. There white can force this position: 8/p7/qbQ4p/p7/p1P4p/7p/4P2k/5K2 b - c3 0 7. I am running a local analysis on this now (using sf-dev).

@Yery
Copy link

Yery commented Jul 4, 2024

I had a look at this position: "6k1/p1p2pP1/5PpK/5p2/1p2pP2/1P1pP2N/1P1P2P1/5BBq w - - bm #104; Black can play 94...a4 and probably avoid getting mated". I agree, after 94...a4 black is probably winning or can force draw.

The original idea of the puzzle stands, if we remove black's c-pawn as then ...a4 never helps black. In this case it is a mate in 66. I would propose this fix, rather than removing this position, as it is a beautiful test to have in the suite, for current and future engines!

6k1/p4pP1/5PpK/5p2/1p2pP2/1P1pP2N/1P1P2P1/5BBq w - - 0 1

1. h6g5 g8h7 2. g5h4 h7g8 3. h4g3 g8h7 4. g3f2 h7g8 5. f2e1 g8h7 6. e1d1
h7g8 7. d1c1 g8h7 8. c1b1 h7g8 9. b1a2 g8h7 10. a2a1 h7g8 11. a1b1 g8h7 12.
b1c1 h7g8 13. c1d1 g8h7 14. d1e1 h7g8 15. e1f2 g8h7 16. f2g3 h7g8 17. g3h4
g8h7 18. h4g5 h7g8 19. g5h6 a7a6 20. h6g5 g8h7 21. g5h4 h7g8 22. h4g3 g8h7
23. g3f2 h7g8 24. f2e1 g8h7 25. e1d1 h7g8 26. d1c1 g8h7 27. c1b1 h7g8 28.
b1a2 g8h7 29. a2a1 h7g8 30. a1b1 g8h7 31. b1c1 h7g8 32. c1d1 g8h7 33. d1e1
h7g8 34. e1f2 g8h7 35. f2g3 h7g8 36. g3h4 g8h7 37. h4g5 h7g8 38. g5h6 a6a5
39. h6g5 g8h7 40. g5h4 h7g8 41. h4g3 g8h7 42. g3f2 h7g8 43. f2e1 g8h7 44.
e1d1 h7g8 45. d1c1 g8h7 46. c1b1 h7g8 47. b1a2 g8h7 48. a2a1 h7g8 49. a1b1
g8h7 50. b1c1 h7g8 51. c1d1 g8h7 52. d1e1 h7g8 53. e1f2 g8h7 54. f2g3 h7g8
55. g3h4 g6g5+ 56. h4g5 g8h7 57. g5h5 h7g8 58. h5h6 a5a4 59. b3a4 h1h3+ 60.
g2h3 b4b3 61. h6g5 g8h7 62. a4a5 h7g8 63. a5a6 g8h7 64. a6a7 h7g8 65.
a7a8Q+ g8h7 66. g7g8Q# 1-0

Hard to find for engines, but probably relatively easy to verify with the provepvs.py (I haven't tried since my PC is currently crunching on the other position).

@robertnurnberg
Copy link
Contributor

Hm, a slippery slope. We have not added new positions so far. I think it's nice that we have this connection to the original set (only correcting apparent mistakes, or removing). But ultimately that kind of decision would be up to the maintainer. :)

Regarding the position in question, I was under the impression that the suggested PV was found by @dav1312 himself, or was it proposed "officially" for this puzzle somewhere?

@Yery
Copy link

Yery commented Jul 5, 2024

I updated my post above on the bm23 position. Will now also give 8/p7/qbQ4p/p7/p1P4p/7p/4P2k/5K2 b - c3 0 7 a try for the sister position.

Result after ~1 day (The Huntsman):
info depth 108 seldepth 55 multipv 1 score mate -27 nodes 4708305580548 nps 61671605 hashfull 1000 tbhits 0 time 76344787 pv h2g3 c6f3 g3h2 f3f4 h2h1 f4e4 h1h2 e4e5 h2h1 e5d5 h1h2 d5d6 h2h1 d6c6 h1h2 e2e3 b6e3 c6a6 h2g3 f1e2 e3b6 c4c5 h3h2 a6b7 g3f4 c5b6 a7b6 e2d3 f4e5 b7e4 e5d6 e4h4 d6d5 h4h5 d5e6 h5h2 e6d5 h2h5 d5c6 d3c4 b6b5 h5b5 c6d6 b5f5 d6e7 c4d5 a4a3 f5g6 e7d7 g6f7 d7d8 d5c6 h6h5 f7d7

So this supports the mate in 34.

@dav1312
Copy link
Contributor Author

dav1312 commented Jul 5, 2024

Regarding the position in question, I was under the impression that the suggested PV was found by @dav1312 himself, or was it proposed "officially" for this puzzle somewhere?

As I noted in the comment, I assume that is the PV following the logic of the study.

@Yery
Copy link

Yery commented Jul 6, 2024

Just to add to this: what makes it very likely to be the intended PV is that the logic of that PV leads exactly to the desired mate length. However the 94 ..a4 move means that the puzzle is flawed (likely a draw). So the only two options (that I see) are either to remove that position or to fix it somehow (ideally leaving the logic of the intended PV intact).

@robertnurnberg
Copy link
Contributor

Ok. I would propose to remove it then, as we have done with other (likely) draws in the past. Let me open a PR for it now.

This was referenced Jul 6, 2024
@robertnurnberg
Copy link
Contributor

robertnurnberg commented Jul 6, 2024

For position 8/p7/qb5p/p6p/p7/7p/2P1P2k/2Q2K2 w - - bm #23; I started after the following 7 moves (which is the line given above), all forced for black,

c1f4 h2h1 f4e4 h1h2 e4e5 h2h1 e5d5 h1h2 d5d6 h2h1 d6c6 h1h2 c2c4

8/p7/qbQ4p/p6p/p1P5/7p/4P2k/5K2 b - c3 0 7

This is the result after almost a day long think (The Huntsman) info depth 99 seldepth 59 multipv 1 score mate -29 nodes 5059730850745 nps 65822630 hashfull 1000 tbhits 0 time 76869168 pv h2g3 c6f3 g3h2 f3f4 h2h1 f4e4 h1h2 e4e5 h2h1 e5d5 h1h2 d5d6 h2h1 d6c6 h1h2 e2e3 b6e3 c6a6 h2g3 a6c6 h3h2 c6g2 g3f4 g2h2 f4e4 f1e2 e3b6 h2h1 e4e5 h1d5 e5f4 e2d3 a4a3 c4c5 b6c5 d5c4 f4f5 c4c5 f5e6 c5a3 e6d5 a3a5 d5d6 a5h5 d6e6 d3d4 e6f6 d4d5 a7a6 h5f3 f6e7 d5e5 e7e8 e5e6 e8d8 f3b7 h6h5 b7b8

So this brings it down to a mate in 36. I'll keep it going a day longer.

Update after 2 days: info depth 103 seldepth 59 multipv 1 score mate -29 nodes 13145615856261 nps 67210724 hashfull 1000 tbhits 0 time 195588069 pv h2g3 c6f3 g3h2 f3f4 h2h1 f4e4 h1h2 e4e5 h2h1 e5d5 h1h2 d5d6 h2h1 d6c6 h1h2 e2e3 b6e3 c6a6 h2g3 a6c6 h3h2 c6g2 g3f4 g2h2 f4e4 f1e2 e3b6 h2h1 e4e5 h1d5 e5f4 e2d3 a4a3 c4c5 b6c5 d5c4 f4f5 c4c5 f5e6 c5a3 e6d5 a3a5 d5d6 a5h5 d6e6 h5c5 h6h5 d3e4 h5h4 c5e5 e6f7 e4f5 h4h3 e5f6 f7e8 f5e6 h3h2 f6e7

In the meantime my local analysis with stockfish has also found this shorter M36:

> printf "uci\nucinewgame\nposition fen 8/p7/qbQ4p/p6p/p1P5/7p/4P2k/5K2 b - c3 0 7\nsetoption name threads value 8\nsetoption name hash value 16384\ngo infinite\nucinewgame\nquit" | ./stockfish
<snip>
info depth 113 seldepth 59 multipv 1 score mate -29 nodes 11323361528488 nps 38217128 hashfull 1000 tbhits 0 time 296290222 pv h2g3 c6f3 g3h2 f3f4 h2h1 f4f5 h1h2 f5e5 h2h1 e5d5 h1h2 d5d6 h2h1 d6c6 h1h2 e2e3 b6e3 c6a6 h2g3 a6g6 e3g5 g6d3 g3f4 d3h3 f4e5 f1e2 h5h4 h3c3 e5f5 c4c5 g5e7 e2f3 a4a3 c3a3 h4h3 a3d3 f5e5 d3e3 e5d5 e3e7 d5c6 e7d6 c6b5 c5c6 h3h2 f3g2 h2h1q g2h1 b5c4 c6c7 c4b3 d6d2 b3a3 c7c8q a7a6 d2c1 a3a2 c8c2

@robertnurnberg
Copy link
Contributor

So @Yery, I have opened a PR for the two bm #23 sister positions. That leaves the final bm #23 position: 2r1b1Q1/6p1/2P5/5P2/1p2K3/pPp5/n2P4/1B2k3 w - -.

As far as I know, we have not even confirmed the stated talkchess PV so far. It is this one: cdb. The first few moves on cdb look like you could do your usual magic by finding a move sequence where black's answers are basically forced (to avoid short mates). We could then let our local engines run on whatever position you are confident can be forced, and see first of all if we can confirm the M34 mating line.

@Yery
Copy link

Yery commented Jul 9, 2024

I am currently running that position from the root, for over two days now, and The Huntsman currently found a mate in M35. I'll keep it going for a few more days and see if it can find the M34 (or better). If that fails I try the "manual" approach!

@Yery
Copy link

Yery commented Jul 11, 2024

After more than 5 days it just found this M33:

info depth 83 seldepth 66 multipv 1 score mate 33 nodes 22503107069846 nps 47302759 hashfull 1000 tbhits 0 time 475725040 pv g8e6 e8f7 e6c8 c3d2 b1c2 a2c3 e4e3 a3a2 c8a6 f7e8 c6c7 e8d7 a6d6 d2d1n c2d1 c3d1 e3f3 a2a1q d6e7 e1d2 e7d7 d2c2 c7c8q d1c3 c8c5 a1h1 f3g3 h1c1 d7e7 c1d1 e7e3 c2b3 e3e6 b3a3 c5a5 c3a4 e6e3 d1b3 g3f4 b3e3 f4e3 a3b3 a5c7 a4b2 c7g7 b2c4 e3d4 c4a3 f5f6 a3c2 d4c5 b3a2 f6f7 c2e1 c5c4 e1c2 f7f8q a2b1 c4b3 b1c1 g7b2 c1d2 b2c2 d2e3 f8f2

I keep it going a bit longer :)

@Yery
Copy link

Yery commented Jul 14, 2024

info depth 87 seldepth 64 multipv 1 score mate 32 nodes 32441610082138 nps 45840413 hashfull 1000 tbhits 0 time 707707628 pv g8e6 e8f7 e6c8 c3d2 b1c2 a2c3 e4e3 a3a2 c8a6 f7e8 c6c7 e8d7 a6d6 d2d1n c2d1 c3d1 e3f3 a2a1q d6e7 e1d2 e7d7 d2c2 c7c8q d1c3 c8c5 a1h1 f3g3 h1c1 d7g7 c2b2 c5f2 b2a3 g7a7 a3b3 f2e3 c1f1 e3e6 b3c2 a7e3 b4b3 e6c6 f1d3 c6g2 d3e2 g2e2 c3e2 e3e2 c2c3 f5f6 b3b2 e2d1 b2b1q d1b1 c3c4 b1c2 c4b5 f6f7 b5b6 f7f8q b6b7 f8b4 b7a6 c2a2

@Yery
Copy link

Yery commented Jul 16, 2024

Ten full days, final result (I am done with this position):
info depth 89 seldepth 64 multipv 1 score mate 32 nodes 39014129406053 nps 45155242 hashfull 1000 tbhits 0 time 864000003 pv g8e6 e8f7 e6c8 c3d2 b1c2 a2c3 e4e3 a3a2 c8a6 f7e8 c6c7 e8d7 a6d6 d2d1n c2d1 c3d1 e3f3 a2a1q d6e7 e1d2 e7d7 d2c2 c7c8q d1c3 c8c5 a1h1 f3g3 h1c1 d7g7 c2b2 c5f2 b2a3 g7a7 a3b3 f2e3 c1f1 e3e6 b3c2 a7e3 b4b3 e6c6 f1d3 c6g2 d3e2 g2e2 c3e2 e3e2 c2c3 f5f6 b3b2 e2d1 b2b1q d1b1 c3c4 b1c2 c4b5 f6f7 b5b6 f7f8q b6b7 f8b4 b7a6 c2a2

@robertnurnberg
Copy link
Contributor

Thanks a lot! A nice symmetry (23 -> 32). Will open PR soon. I will soon also have news on the M125 position. :)

@dav1312
Copy link
Contributor Author

dav1312 commented Sep 24, 2024

Any progress with the remaining PVs?

@robertnurnberg
Copy link
Contributor

I had some unsuccessful attempts with my matetb script, no results so far. I may get back to looking at this more closely again in the future. For the bm #110; position it basically boils down to proving a PV for this puzzle:

8/p1p5/p4p2/5p2/p6p/p4Q1K/3r4/n5k1 w - - bm #108;

Maybe we can use this thread to brainstorm on the remaining 4 open positions. ;)

@dav1312
Copy link
Contributor Author

dav1312 commented Sep 24, 2024

The bm #121 is probably much easier to prove with the script?

@robertnurnberg
Copy link
Contributor

The bm #121 is probably much easier to prove with the script?

True. I just solved it. Will open PR soon.

In the past I was worried about all the captures (and promotions) once black has to move the h pawn due to zugzwang. So the trick was to have a local engine with a high depth to resolve the final mate one black moved that pawn, and keep the bishop fixed on h1 until then.

@robertnurnberg
Copy link
Contributor

robertnurnberg commented Sep 29, 2024

Ok, so for the PV given for the #103 position I can find an improvement: The position after 85. .. Ka7 is qbnK1n2/k1P2P2/p7/Pp3P2/8/8/2Q5/8 w - - , which a quick analysis shows is a mate in 16 with PV:

1.Qf2+ Kb7 2.Qc5 b4 3.Qxb4+ Kc6 4.cxb8=Q Qxb8 5.Qxb8 Nd6 6.Ke7 Nxf7 7.Qxf8 Ne5 8.Ke6 Nd7 9.Qd6+ Kb5 10.Qxd7+ Kc4 11.f6 Kb3 12.Qd2 Ka3 13.f7 Ka4 14.f8=Q Kb5 15.Qdb4+ Kc6 16.Qfd6# 

So if the rest of the PV is correct, this would give an overall bm #101.

Edit: In a similar vain, the position after 74..Kb7 is qbnK1n2/1kP2P2/p7/Pp3P2/3Q4/2p4p/8/8 w - -, which can be shown to be a mate in 26 with PV:

1.Qxc3 Ka7 2.Qd4+ Kb7 3.Qc5 h2 4.Qd5+ Ka7 5.Qd4+ Kb7 6.Qe4+ Ka7 7.Qe3+ Kb7 8.Qf3+ Ka7 9.Qf2+ Kb7 10.Qxh2 b4 11.Qf4 b3 12.Qb4+ Kc6 13.cxb8=Q Qxb8 14.Qxb8 Na7 15.Qxa7 Kd5 16.Qxa6 b2 17.Qb7+ Ke5 18.Qxb2+ Kxf5 19.Qc3 Ng6 20.Qg7 Nf8 21.Qxf8 Ke6 22.Qe7+ Kd5 23.f8=Q Kc4 24.Qb4+ Kd3 25.Qf1+ Kc2 26.Qfb1# 

This would bring the overall mate down to bm #100.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants