Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/evidence/SEED-0/num-conformance/wolfram.txt # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / evidence / SEED-0 / num-conformance / wolfram.txt` 95 lines ยท 4004 bytes Raw Blame History 1 Numeric conformance expectations from the Wolfram MCP server 2 ================================================================ 3 4 Date: 2026-10-23 5 Server: https://agenttools.wolfram.com/mcp (public, no API key) 6 Client: node /home/drakestapleton/.local/lib/aien/wolfram-mcp-bridge.mjs (the bridge opencode uses) 7 Tool: WolframLanguageEvaluator (Wolfram 2026.09.15, protocol 2025-03-26) 8 Consumer: seed/omc/gate14.sh 9 10 Nothing here was produced by the Omega compiler. The gate compiles its own programs and compares 11 main's exit status (value mod 256, or 100 + trap code) with these exact results. 12 13 Wolfram Language code (one evaluation): 14 15 truncDiv[a_, b_] := Sign[a] Sign[b] Quotient[Abs[a], Abs[b]]; 16 truncRem[a_, b_] := a - b truncDiv[a, b]; 17 rows = { 18 {"u8_add", Mod[255 + 1, 256]}, 19 {"u8_sub", Mod[0 - 1, 256]}, 20 {"u16_add", Mod[65535 + 2, 65536]}, 21 {"u32_add", Mod[2^32 - 1 + 1, 2^32]}, 22 {"u64_add", Mod[2^64 - 1 + 1, 2^64]}, 23 {"u8_shl7", Mod[BitShiftLeft[1, 7], 256]}, 24 {"u64_shl63_high_byte", Mod[BitShiftRight[BitShiftLeft[1, 63], 56], 256]}, 25 {"i32_shr_neg8", Mod[BitShiftRight[-8, 1], 256]}, 26 {"i32_div_neg7_2", Mod[truncDiv[-7, 2], 256]}, 27 {"i32_rem_neg7_2", Mod[truncRem[-7, 2], 256]}, 28 {"i32_div_7_neg2", Mod[truncDiv[7, -2], 256]}, 29 {"i32_rem_7_neg2", Mod[truncRem[7, -2], 256]}, 30 {"i32_min_rem_neg1", Mod[truncRem[-2^31, -1], 256]}, 31 {"u64_max_div10_byte", Mod[Quotient[2^64 - 1, 10], 256]}, 32 {"u64_max_rem10", Mod[Mod[2^64 - 1, 10], 256]}, 33 {"i32_min", Mod[-2^31, 256]}, 34 {"i32_max", Mod[2^31 - 1, 256]}, 35 {"conv_u8_255", Mod[255, 256]}, 36 {"conv_byte_neg128", Mod[-128, 256]} 37 }; 38 39 checks = { 40 {"byte_127_plus_1_traps1", Not[Between[127 + 1, {-128, 127}]]}, 41 {"byte_minus128_minus_1_traps1", Not[Between[-128 - 1, {-128, 127}]]}, 42 {"byte_neg_minus128_traps1", Not[Between[-(-128), {-128, 127}]]}, 43 {"short_32767_plus_1_traps1", Not[Between[32767 + 1, {-32768, 32767}]]}, 44 {"int_max_plus_1_traps1", Not[Between[2^31 - 1 + 1, {-2^31, 2^31 - 1}]]}, 45 {"long_max_plus_1_traps1", Not[Between[2^63 - 1 + 1, {-2^63, 2^63 - 1}]]}, 46 {"int_min_div_neg1_traps1", Not[Between[truncDiv[-2^31, -1], {-2^31, 2^31 - 1}]]}, 47 {"int_1_shl31_traps1", Not[Between[BitShiftLeft[1, 31], {-2^31, 2^31 - 1}]]}, 48 {"conv_uchar_300_traps5", Not[Between[300, {0, 255}]]}, 49 {"conv_byte_neg129_traps5", Not[Between[-129, {-128, 127}]]}, 50 {"conv_int_2pow31_traps5", Not[Between[2^31, {-2^31, 2^31 - 1}]]}, 51 {"u8_shl8_traps7", Not[0 <= 8 <= 7]} 52 }; 53 54 Returned values (cleaned from the kernel output): 55 56 u8_add 0 57 u8_sub 255 58 u16_add 1 59 u32_add 0 60 u64_add 0 61 u8_shl7 128 62 u64_shl63_high_byte 128 63 i32_shr_neg8 252 64 i32_div_neg7_2 253 65 i32_rem_neg7_2 255 66 i32_div_7_neg2 253 67 i32_rem_7_neg2 1 68 i32_min_rem_neg1 0 69 u64_max_div10_byte 153 70 u64_max_rem10 5 71 i32_min 0 72 i32_max 255 73 conv_u8_255 255 74 conv_byte_neg128 128 75 76 byte_127_plus_1_traps1 True 77 byte_minus128_minus_1_traps1 True 78 byte_neg_minus128_traps1 True 79 short_32767_plus_1_traps1 True 80 int_max_plus_1_traps1 True 81 long_max_plus_1_traps1 True 82 int_min_div_neg1_traps1 True 83 int_1_shl31_traps1 True 84 conv_uchar_300_traps5 True 85 conv_byte_neg129_traps5 True 86 conv_int_2pow31_traps5 True 87 u8_shl8_traps7 True 88 89 Exact rationals also returned (float evidence; gate8 owns the bit patterns): 90 91 f64 0.1 = `3602879701896397`/`36028797018963968` 92 f64 pi = Pi (exact) 93 94 Trap rows not derived from Wolfram (structural, obvious): div0 and rem0 -> 102, an out-of-range 95 runtime array index -> 103, and a while whose bound is passed -> 104.