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 / src / physics0 / ladder / pd0_codes.h

53 lines · 3058 bytes Raw Blame History
1/* SPDX-License-Identifier: Apache-2.0
2 * Copyright 2026 Drake Stapleton (AIEN / aien-dev)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/* PD-0 verifier failure taxonomy. Numeric codes are stable; names are for humans. */
18#ifndef PD0_CODES_H
19#define PD0_CODES_H
20enum pd0v_code {
21 PD0V_OK = 0,
22 /* 1xx format and chain */
23 PD0V_BAD_MAGIC = 101, PD0V_BAD_VERSION = 102, PD0V_TRUNCATED = 103, PD0V_HASH_MISMATCH = 104,
24 PD0V_CHAIN_BROKEN = 105, PD0V_BAD_FIELD = 106, PD0V_TOO_LARGE = 107,
25 /* 2xx ladder */
26 PD0V_T1_TOO_FEW_RECORDS = 200, PD0V_T1_TOO_FEW_EPISODES = 201,
27 PD0V_T2_NO_EVIDENCE = 210, PD0V_T2_CORR_TOO_WEAK = 211, PD0V_T2_P_TOO_HIGH = 212,
28 PD0V_T2_TOO_FEW_SHUFFLES = 213, PD0V_T2_CORR_MISMATCH = 214, PD0V_T2_TOO_FEW_RECORDS = 215,
29 PD0V_T3_NO_CANDIDATE = 220, PD0V_T3_SIZE_EXCEEDED = 221, PD0V_T3_FIT_ERROR_TOO_HIGH = 222,
30 PD0V_T3_RESIDUALS_NOT_WHITE = 223, PD0V_T3_DEGREE_EXCEEDED = 224, PD0V_T3_BAD_RELATION = 225,
31 PD0V_T4_NO_RIVAL = 230, PD0V_T4_NO_FALSIFIER = 231, PD0V_T4_EPS_ABOVE_BOUND = 232,
32 PD0V_T4_FALSIFIER_AFTER_TRIAL = 233, PD0V_T4_UNKNOWN_CANDIDATE = 234, PD0V_T4_UNKNOWN_RIVAL = 235,
33 PD0V_T5_TOO_FEW_PREREG = 240, PD0V_T5_SCHEDULE_REUSED = 241, PD0V_T5_MISSING_RIVAL_PREDICTION = 242,
34 PD0V_T5_PREREG_AFTER_TRIAL = 243, PD0V_T5_OUT_OF_BOUNDS = 244,
35 PD0V_T6_TRIAL_MISSING = 250, PD0V_T6_TRIAL_FAILED = 251, PD0V_T6_TRIAL_NOT_PREREGISTERED = 252,
36 PD0V_T7_TOO_FEW_BATCHES = 260, PD0V_T7_BATCH_TOO_SMALL = 261, PD0V_T7_BATCH_FAILED = 262,
37 PD0V_T7_STREAM_REUSED = 263, PD0V_T7_ORIGIN_IMBALANCE = 264, PD0V_REP_INFLUENCED_FIT = 265,
38 PD0V_T7_EPISODE_ABOVE_3EPS = 266,
39 PD0V_T8_STATE_SKIPPED = 270, PD0V_T8_CONFIDENCE_MISMATCH = 271, PD0V_T8_EXCEPTIONS_MISMATCH = 272,
40 PD0V_T8_EXPERIMENT_MISSING = 273, PD0V_T8_CHAIN_ROOT_MISMATCH = 274, PD0V_T8_CLAIM_FORBIDDEN_WORD = 275,
41 PD0V_T8_CLAIM_TEXT_MISMATCH = 276, PD0V_T8_DOMAIN_MISMATCH = 277, PD0V_LAW_ID_MISMATCH = 278,
42 PD0V_LAW_DEMOTED = 279, PD0V_T8_RELATION_MISMATCH = 280, PD0V_T8_REFUTATION_COUNT_MISMATCH = 281,
43 PD0V_T8_STATE_MISMATCH = 282,
44 /* 3xx scorer */
45 PD0V_SCORE_INBOX_NRMSE = 300, PD0V_SCORE_EXTRAP_NRMSE = 301, PD0V_SCORE_ONESTEP_NRMSE = 302,
46 PD0V_SCORE_SIZE = 303, PD0V_SCORE_SUPPORT_MISSING = 304, PD0V_SCORE_CONSTANT_OFF = 305,
47 PD0V_SCORE_DEGREE = 306, PD0V_SCORE_L6_LATENT_MISSING = 307, PD0V_SCORE_L6_REFERENCE_TOO_GOOD = 308,
48 PD0V_SCORE_BITS_MISMATCH = 309,
49 /* 4xx receipts */
50 PD0V_RECEIPT_IO = 400
51};
52const char *pd0v_name(int code);
53#endif