interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / helix / ollm_factory / frontier-check.om

60 lines · 1264 bytes Raw Blame History
1note Link after om_synth.om up to its main. Exercise the actual pool expansion in isolation.
2note The early synthetic vectors are zero so that only the distant operand can match.
3fn probeInit target ulong to void
4syReset
5put sySt 0 1
6put sySt 7 1
7put sySt 3 4101
8put syTgt 0 target
9for i ulong 4101
10put syVec mul i 8 0
11end
12end
13
14fn main to int
15note The constant/combinator frontier can itself exceed the old inner limit of 64.
16probeInit 22
17put syLvlS 0 0
18put syLvlE 0 4101
19put syVec 0 3
20put syVec mul ulong 4100 8 19
21if not syExpandLevel 1
22ret 1
23end
24
25note A late left operand in phase A must still reach the first seed node.
26probeInit 22
27put syLvlE 0 1
28put syLvlS 1 1
29put syLvlE 1 4101
30put syVec 0 3
31put syVec mul ulong 4100 8 19
32if not syExpandLevel 2
33ret 2
34end
35
36note In phase B the only additive solution pairs the last two nodes.
37probeInit 41
38put syLvlE 0 1
39put syLvlE 1 4100
40put syLvlS 2 4100
41put syLvlE 2 4101
42put syVec mul ulong 4099 8 22
43put syVec mul ulong 4100 8 19
44if not syExpandLevel 3
45ret 3
46end
47
48note A full pool closes the level without attempting any inadmissible pairs.
49put sySt 3 SY_MAX_NODES
50put sySt 4 SY_MAX_NODES
51put sySt 5 0
52put sySt 8 999999
53if syExpandLevel 3
54ret 4
55end
56if or ne get syLvlE 3 SY_MAX_NODES ne get sySt 5 0
57ret 5
58end
59ret 0
60end