omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / tasks / hofstadter-figure-figure-sequences / wolfram.txt
| 1 | Wolfram cross-check of tasks/hofstadter-figure-figure-sequences/expected.txt |
| 2 | tool: WolframLanguageEvaluator (Wolfram MCP, https://agenttools.wolfram.com/mcp), 2026-10-27 |
| 3 | The query builds the task's whole output text from Wolfram built-ins, independently of omc and |
| 4 | of oracle.py, and returns {SHA-256 of that text, the text}. It agrees when that SHA-256 equals |
| 5 | sha256(expected.txt) = 537236e2c7eac35c5a0df7dac6e4acc96b539dc5056675c4dc966a11f8261211. |
| 6 | agreement: YES |
| 7 | query: |
| 8 | r = {1}; sq = {2}; |
| 9 | While[Length[r] < 60, AppendTo[r, Last[r] + Last[sq]]; AppendTo[sq, SelectFirst[Range[Last[sq] + 1, Last[r] + 1], ! MemberQ[r, #] &]]]; |
| 10 | S = Take[Complement[Range[Last[r]], r], 960]; |
| 11 | s = "R(1) to R(10): " <> StringRiffle[ToString /@ r[[1 ;; 10]], " "] <> "\n" <> |
| 12 | "first 40 R and first 960 S cover 1..1000 exactly once: " <> If[Sort[Join[Take[r, 40], S]] === Range[1000], "yes", "no"] <> "\n"; |
| 13 | {Hash[s, "SHA256", "HexString"], s} |
| 14 | result: |
| 15 | Symbol::undefined2: Warning: Global symbols "S, S" are undefined. |
| 16 | General::messages: Messages were generated which may indicate errors. |
| 17 | |
| 18 | Out[1]= {"537236e2c7eac35c5a0df7dac6e4acc96b539dc5056675c4dc966a11f8261211", "R(1) to R(10): 1 3 7 12 18 26 35 45 56 69\nfirst 40 R and first 960 S cover 1..1000 exactly once: yes\n"} |