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/train/omega-llm/tools/contrast/run-01/example.json # 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 / train / omega-llm / tools / contrast / run-01 / example.json` 170 lines ยท 9254 bytes Raw Blame History 1 [ 2 { 3 "group": "familiar", 4 "operation": 0, 5 "prompt": "note return the difference between the larger and smaller arguments\nfn fold_value x ulong y ulong to ulong\n", 6 "reference": "if lt x y\nret sub y x\nend\nret sub x y\nend\n", 7 "main": "fn main to int\nif ne fold_value ulong 12 ulong 7 ulong 5\nret 83\nend\nret 77\nend\n" 8 }, 9 { 10 "group": "familiar", 11 "operation": 0, 12 "prompt": "note compute the unsigned distance separating these inputs\nfn evaluate_pair left ulong right ulong to ulong\n", 13 "reference": "if lt left right\nret sub right left\nend\nret sub left right\nend\n", 14 "main": "fn main to int\nif ne evaluate_pair ulong 12 ulong 7 ulong 5\nret 83\nend\nret 77\nend\n" 15 }, 16 { 17 "group": "familiar", 18 "operation": 1, 19 "prompt": "note add the pair and return their total\nfn fold_value x ulong y ulong to ulong\n", 20 "reference": "ret add x y\nend\n", 21 "main": "fn main to int\nif ne fold_value ulong 12 ulong 7 ulong 19\nret 83\nend\nret 77\nend\n" 22 }, 23 { 24 "group": "familiar", 25 "operation": 1, 26 "prompt": "note return the two arguments added together\nfn evaluate_pair left ulong right ulong to ulong\n", 27 "reference": "ret add left right\nend\n", 28 "main": "fn main to int\nif ne evaluate_pair ulong 12 ulong 7 ulong 19\nret 83\nend\nret 77\nend\n" 29 }, 30 { 31 "group": "familiar", 32 "operation": 2, 33 "prompt": "note select the lower of the arguments\nfn fold_value x ulong y ulong to ulong\n", 34 "reference": "if lt x y\nret x\nend\nret y\nend\n", 35 "main": "fn main to int\nif ne fold_value ulong 12 ulong 7 ulong 7\nret 83\nend\nret 77\nend\n" 36 }, 37 { 38 "group": "familiar", 39 "operation": 2, 40 "prompt": "note return whichever input is smaller\nfn evaluate_pair left ulong right ulong to ulong\n", 41 "reference": "if lt left right\nret left\nend\nret right\nend\n", 42 "main": "fn main to int\nif ne evaluate_pair ulong 12 ulong 7 ulong 7\nret 83\nend\nret 77\nend\n" 43 }, 44 { 45 "group": "familiar", 46 "operation": 3, 47 "prompt": "note select the higher of the arguments\nfn fold_value x ulong y ulong to ulong\n", 48 "reference": "if gt x y\nret x\nend\nret y\nend\n", 49 "main": "fn main to int\nif ne fold_value ulong 12 ulong 7 ulong 12\nret 83\nend\nret 77\nend\n" 50 }, 51 { 52 "group": "familiar", 53 "operation": 3, 54 "prompt": "note return whichever input is larger\nfn evaluate_pair left ulong right ulong to ulong\n", 55 "reference": "if gt left right\nret left\nend\nret right\nend\n", 56 "main": "fn main to int\nif ne evaluate_pair ulong 12 ulong 7 ulong 12\nret 83\nend\nret 77\nend\n" 57 }, 58 { 59 "group": "familiar", 60 "operation": 4, 61 "prompt": "note combine the requested prefix using bitwise XOR\nfn fold_value items view ulong 12 count ulong to ulong\n", 62 "reference": "s = ulong 0\nfor i ulong count\ns = xor s get items i\nend\nret s\nend\n", 63 "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne fold_value buf ulong 4 ulong 3\nret 83\nend\nret 77\nend\n" 64 }, 65 { 66 "group": "familiar", 67 "operation": 4, 68 "prompt": "note return the cumulative exclusive OR through the given count\nfn evaluate_pair data view ulong 12 n ulong to ulong\n", 69 "reference": "s = ulong 0\nfor i ulong n\ns = xor s get data i\nend\nret s\nend\n", 70 "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne evaluate_pair buf ulong 4 ulong 3\nret 83\nend\nret 77\nend\n" 71 }, 72 { 73 "group": "familiar", 74 "operation": 5, 75 "prompt": "note add up the entries before the given bound\nfn fold_value items view ulong 12 count ulong to ulong\n", 76 "reference": "s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret s\nend\n", 77 "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne fold_value buf ulong 4 ulong 13\nret 83\nend\nret 77\nend\n" 78 }, 79 { 80 "group": "familiar", 81 "operation": 5, 82 "prompt": "note return the running total through the requested count\nfn evaluate_pair data view ulong 12 n ulong to ulong\n", 83 "reference": "s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret s\nend\n", 84 "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne evaluate_pair buf ulong 4 ulong 13\nret 83\nend\nret 77\nend\n" 85 }, 86 { 87 "group": "familiar", 88 "operation": 6, 89 "prompt": "note return the highest entry in the given prefix, or zero if empty\nfn fold_value items view ulong 12 count ulong to ulong\n", 90 "reference": "s = ulong 0\nfor i ulong count\nif gt get items i s\ns = get items i\nend\nend\nret s\nend\n", 91 "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne fold_value buf ulong 4 ulong 5\nret 83\nend\nret 77\nend\n" 92 }, 93 { 94 "group": "familiar", 95 "operation": 6, 96 "prompt": "note report the largest value before the bound, defaulting to zero\nfn evaluate_pair data view ulong 12 n ulong to ulong\n", 97 "reference": "s = ulong 0\nfor i ulong n\nif gt get data i s\ns = get data i\nend\nend\nret s\nend\n", 98 "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne evaluate_pair buf ulong 4 ulong 5\nret 83\nend\nret 77\nend\n" 99 }, 100 { 101 "group": "familiar", 102 "operation": 7, 103 "prompt": "note count zero-valued entries before the limit\nfn fold_value items view ulong 12 count ulong to ulong\n", 104 "reference": "s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret s\nend\n", 105 "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne fold_value buf ulong 4 ulong 1\nret 83\nend\nret 77\nend\n" 106 }, 107 { 108 "group": "familiar", 109 "operation": 7, 110 "prompt": "note return how many entries equal zero in the requested prefix\nfn evaluate_pair data view ulong 12 n ulong to ulong\n", 111 "reference": "s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret s\nend\n", 112 "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne evaluate_pair buf ulong 4 ulong 1\nret 83\nend\nret 77\nend\n" 113 }, 114 { 115 "group": "composition", 116 "operation": 8, 117 "prompt": "note return three plus the absolute distance between the inputs\nfn fold_value x ulong y ulong to ulong\n", 118 "reference": "if lt x y\nret add 3 sub y x\nend\nret add 3 sub x y\nend\n", 119 "main": "fn main to int\nif ne fold_value ulong 12 ulong 7 ulong 8\nret 83\nend\nret 77\nend\n" 120 }, 121 { 122 "group": "composition", 123 "operation": 8, 124 "prompt": "note compute the unsigned gap and add three\nfn evaluate_pair left ulong right ulong to ulong\n", 125 "reference": "if lt left right\nret add 3 sub right left\nend\nret add 3 sub left right\nend\n", 126 "main": "fn main to int\nif ne evaluate_pair ulong 12 ulong 7 ulong 8\nret 83\nend\nret 77\nend\n" 127 }, 128 { 129 "group": "composition", 130 "operation": 9, 131 "prompt": "note return twice the smaller argument\nfn fold_value x ulong y ulong to ulong\n", 132 "reference": "if lt x y\nret mul 2 x\nend\nret mul 2 y\nend\n", 133 "main": "fn main to int\nif ne fold_value ulong 12 ulong 7 ulong 14\nret 83\nend\nret 77\nend\n" 134 }, 135 { 136 "group": "composition", 137 "operation": 9, 138 "prompt": "note find the lower of the inputs and double it\nfn evaluate_pair left ulong right ulong to ulong\n", 139 "reference": "if lt left right\nret mul 2 left\nend\nret mul 2 right\nend\n", 140 "main": "fn main to int\nif ne evaluate_pair ulong 12 ulong 7 ulong 14\nret 83\nend\nret 77\nend\n" 141 }, 142 { 143 "group": "composition", 144 "operation": 10, 145 "prompt": "note sum the requested prefix and add three\nfn fold_value items view ulong 12 count ulong to ulong\n", 146 "reference": "s = ulong 0\nfor i ulong count\ns = add s get items i\nend\nret add s 3\nend\n", 147 "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne fold_value buf ulong 4 ulong 16\nret 83\nend\nret 77\nend\n" 148 }, 149 { 150 "group": "composition", 151 "operation": 10, 152 "prompt": "note return three more than the total before the bound\nfn evaluate_pair data view ulong 12 n ulong to ulong\n", 153 "reference": "s = ulong 0\nfor i ulong n\ns = add s get data i\nend\nret add s 3\nend\n", 154 "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne evaluate_pair buf ulong 4 ulong 16\nret 83\nend\nret 77\nend\n" 155 }, 156 { 157 "group": "composition", 158 "operation": 11, 159 "prompt": "note double the number of zeros in the requested prefix\nfn fold_value items view ulong 12 count ulong to ulong\n", 160 "reference": "s = ulong 0\nfor i ulong count\nif eq get items i 0\ns = add s 1\nend\nend\nret mul s 2\nend\n", 161 "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne fold_value buf ulong 4 ulong 2\nret 83\nend\nret 77\nend\n" 162 }, 163 { 164 "group": "composition", 165 "operation": 11, 166 "prompt": "note return twice the count of zero values before the bound\nfn evaluate_pair data view ulong 12 n ulong to ulong\n", 167 "reference": "s = ulong 0\nfor i ulong n\nif eq get data i 0\ns = add s 1\nend\nend\nret mul s 2\nend\n", 168 "main": "fn main to int\nbuf = new ulong 12 0\nput buf 0 3\nput buf 1 5\nput buf 2 0\nput buf 3 5\nif ne evaluate_pair buf ulong 4 ulong 2\nret 83\nend\nret 77\nend\n" 169 } 170 ]