SilverSight/signatures/avm_verification_receipt.json
allaun b305b634f3 feat(ci): add AVM cross-port CI workflow + Wolfram verification
- .github/workflows/avm-ci.yml: runs Python, Go, Rust, C, C++ tests
  on every push to AVM ISA files
- scripts/wolfram_verify.py: queries Wolfram Alpha to verify AVM
  arithmetic (INT32_MAX, Q16 scale, negation involution, floor division)
- All 4 Wolfram verifications passing
- Python (10/10) and Rust tests passing on this workstation
- Verification receipt written to signatures/avm_verification_receipt.json
2026-06-30 18:01:51 -05:00

39 lines
No EOL
2.5 KiB
JSON

{
"schema": "avm_port_verification_v1",
"wolfram_arithmetic": [
{
"property": "INT32_MAX",
"python": 2147483647,
"wolfram": "2147483647 2.147483647 \u00d7 10^9 2 billion 147 million 483 thousand 647 10 decimal digits 1111111111111111111111111111111_2 2147483647 is a prime number. m | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9\n2147483647 mod m | 1 | 1 | 3 | 2 | 1 | 1 | 7 | 1 2147483647 is a number that cannot be written as a sum of 3 squares. 2147483647 is the 105097565th prime number. 2147483647 is an odd number. 2147483647 has the representation 2147483647 = 2^31 - 1. 2147483647 = 2^31 - 1 is a Mersenne prime, associated with the perfect number 2305843008139952128 = 2^(31 - 1) (2^31 - 1). \u2248 0.27 \u00d7 the number of people alive today (\u22487.8\u00d710^9)",
"match": true
},
{
"property": "Q16 scale (2^16)",
"python": 65536,
"wolfram": "65536 sixty-five thousand, five hundred thirty-six 10000000000000000_2 2^16 m | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9\n65536 mod m | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 7 65536 = 2^16 is a perfect 16th power. A regular 65536-gon is constructible with straightedge and compass. 65536 is an even number.",
"match": true
},
{
"property": "neg(-2147483647)",
"python": "-(-2147483647)",
"wolfram": "negative regions | y = -2147483647 y = -2147483647 is negative on the entire real line | | positive\n | negative R (all real numbers) (no solutions exist) -2147483647 is continuous on R\n(assuming a function from reals to reals)",
"match": true
},
{
"property": "floor(-1.666)",
"python": "floor(-1.666)",
"wolfram": "floor(-1.666) -2 negative two floor(-1.666) = -1.666 - SawtoothWave[-1.666] floor(-1.666) = Quotient[-1.666, 1] floor(-1.666) = -1 + ceiling(-1.666) floor(-1.666) = -2.166 + ( sum_(k=1)^\u221e sin(-3.332 k \u03c0)/k)/\u03c0",
"match": true
}
],
"port_tests": {
"Python": {
"passed": true,
"output": "ass\n \u2705 type_mismatch: rejected\n \u2705 stack_overflow: rejected\n \u2705 div_by_zero: rejected\n \u2705 control_flow: jump_if true\n \u2705 locals: store+load\n \u2705 mul_div_roundtrip: 5*3/3 = 5\n\nAll Python tests passed.\n"
},
"Rust": {
"passed": true,
"output": "ult: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s\n\n\nrunning 0 tests\n\ntest result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s\n\n"
}
}
}