File size: 2,496 Bytes
2cf2375
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# ==============================================================================
# BESTEMSHE DISTRIBUTED PIPELINE COMMANDS (ZSTD NATIVE)
# Execute these commands sequentially on a cluster node for a specific pair.
# ==============================================================================

# Ensure directories exist
mkdir -p layers/compressed

# ------------------------------------------------------------------------------
# STEP 1: SOLVE THE SYMMETRIC PAIR
# ------------------------------------------------------------------------------
# Format: ./bestemshe --solve-pair <M> <K1> <K2>
# Example for M=10, K1=2, K2=8:
./bestemshe --solve-pair 10 2 8

# This automatically loads the strictly necessary reachable layers (e.g., M=12, M=14)
# and writes two files to disk: 
#   layers/layer_2_8_win.raw
#   layers/layer_2_8_draw.raw


# ------------------------------------------------------------------------------
# STEP 2: VERIFY THE PAIR (CRITICAL)
# ------------------------------------------------------------------------------
# Format: ./bestemshe --verify-pair <M> <K1> <K2>
# Example:
./bestemshe --verify-pair 10 2 8

# This does a local lock-free forward sweep to ensure the generated .raw files
# are 100% mathematically consistent. If this fails, the node corrupted the data.


# ------------------------------------------------------------------------------
# STEP 3: COMPRESS THE PAIR (ZSTD LEVEL 19)
# ------------------------------------------------------------------------------
# Format: ./bestemshe --compress <input.raw> <output.bin>
# Note: Block size and Algorithm are hardcoded now, no extra args needed.

./bestemshe --compress layers/layer_2_8_win.raw layers/compressed/layer_2_8_win.bin
./bestemshe --compress layers/layer_2_8_draw.raw layers/compressed/layer_2_8_draw.bin


# ------------------------------------------------------------------------------
# STEP 4: CLEANUP RAW FILES TO SAVE SSD SPACE
# ------------------------------------------------------------------------------
# Once compression is complete and verified, delete the raw files on the node.
rm layers/layer_2_8_win.raw
rm layers/layer_2_8_draw.raw


# ------------------------------------------------------------------------------
# ENDGAME: THE GOD QUERY
# ------------------------------------------------------------------------------
# When you finally solve M=0 (K1=0, K2=0), run:
./bestemshe --root

# This will load layer_0_0 and output the absolute game-theoretic truth of Bestemshe.