code wiki / (root) / nx_ot_replay_test.nx

nx_ot_replay_test.nx

buildroot/runtime/nx_ot_replay_test.nx

11305 B211 linesdepth 8pulls 8 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_ot_replay_test.nx -- exercise the OpenTheory replay engine. Each scenario assembles a small program of OT-style instructions and asserts the engine produces the expected number of corpus entries with kernel-checked semantics.

dependencies 1 imports · 0 importers

nx_ot_replay.nx nx_ot_replay_test.nx

imports: nx_ot_replay.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main t1_axiom_only nx_k2_chain_new sys_mmap nx_lemma_lib_new nx_term_const sys_mmap ↻ set_instr nx_ot_instr_at nx_ot_replay nx_ot_stack_new nx_ot_step nx_ot_stack_push_num nx_ot_stack_at nx_ot_stack_push_term nx_ot_stack_at ↻ nx_ot_stack_push_name nx_ot_stack_at ↻ nx_ot_stack_pop nx_ot_stack_at ↻ nx_k2_axiom nx_k2_at nx_ot_stack_push_thm nx_ot_stack_at ↻ nx_k2_refl nx_k2_at ↻ nx_k2_eq sys_mmap ↻ nx_term_app nx_k2_assume nx_k2_at ↻ nx_k2_hyps_alloc sys_mmap ↻ nx_k2_hyps_copy_in nx_k2_hyps_at nx_k2_modus_ponens nx_k2_at ↻ nx_term_arg nx_term_eq nx_term_eq ↻

structs

none

consts

8const SYM_P: nx_int = 1001
9const SYM_Q: nx_int = 1002
10const SYM_R: nx_int = 1003

functions

13func set_instr(prog: *OTInstr, i: nx_int, op: nx_int, arg_int: nx_int,
25func t1_axiom_only() -> nx_int
45func t2_mp() -> nx_int
90func t3_kernel_rejects_bad_replay() -> nx_int
114func t4_hyp_syllogism() -> nx_int
156func t5_refl() -> nx_int
173func main() -> nx_exit