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
omega-mv / mk / turing_yield_math.mk
| 1 | # Turing Yield TY-1 (math contract) + TY-2 (held-out predictive compression) |
| 2 | # in pure seeded OM-2. docs/turing/TURING_YIELD_PROFILE_V0.md. Picked up by |
| 3 | # `-include mk/*.mk` in the Makefile. |
| 4 | # |
| 5 | # test-turing-yield: runs the pure OM-2 test suite twice and verifies |
| 6 | # byte-identical .det output, then runs the pure OM-2 CLI fixture check twice |
| 7 | # and verifies byte-identical output (fixed-point determinism). |
| 8 | .PHONY: test-turing-yield turing-yield |
| 9 | TY_OM_LIB = src/turing/ty_core_lib.om |
| 10 | TY_DIR = $(OUT_DIR)/tests-turing-yield |
| 11 | TY_TEST = $(TY_DIR)/test_ty_math |
| 12 | TY_TOOL = $(TY_DIR)/turing-yield |
| 13 | TY_FIX_A = tests/turing/fixtures/ctr1_seed1_crumbs05-07.ctr |
| 14 | TY_FIX_B = tests/turing/fixtures/ctr1_seed1_crumbs10-12.ctr |
| 15 | |
| 16 | $(TY_TEST): tests/turing/test_ty_math.om $(TY_OM_LIB) seed/out/omc |
| 17 | @mkdir -p $(TY_DIR) |
| 18 | cat $(TY_OM_LIB) tests/turing/test_ty_math.om | seed/out/omc > $@ && chmod +x $@ |
| 19 | |
| 20 | $(TY_TOOL): tools/turing_yield.om $(TY_OM_LIB) seed/out/omc |
| 21 | @mkdir -p $(TY_DIR) |
| 22 | cat $(TY_OM_LIB) tools/turing_yield.om | seed/out/omc > $@ && chmod +x $@ |
| 23 | |
| 24 | turing-yield: $(TY_TOOL) |
| 25 | |
| 26 | test-turing-yield: $(TY_TEST) $(TY_TOOL) |
| 27 | ./$(TY_TEST) $(TY_DIR)/run1 |
| 28 | ./$(TY_TEST) $(TY_DIR)/run2 |
| 29 | cmp $(TY_DIR)/run1.det $(TY_DIR)/run2.det |
| 30 | ./$(TY_TOOL) fixture $(TY_FIX_A) $(TY_FIX_B) > $(TY_DIR)/fixture_1.txt |
| 31 | ./$(TY_TOOL) fixture $(TY_FIX_A) $(TY_FIX_B) > $(TY_DIR)/fixture_2.txt |
| 32 | cmp $(TY_DIR)/fixture_1.txt $(TY_DIR)/fixture_2.txt |
| 33 | @echo "test-turing-yield: pure OM-2 T arithmetic, records and fixture scores pass deterministically" |