code wiki / (root) / nx_prove_propositional_test.nx

nx_prove_propositional_test.nx

buildroot/runtime/nx_prove_propositional_test.nx

10066 B240 linesdepth 7pulls 7 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_prove_propositional_test.nx Exercises the auto-prover engine across every Wikipedia-documented propositional proof method. Per user 2026-05-15: "make sure it exceeds or matches everything wikipedia called out on proofs that are required".

dependencies 1 imports · 0 importers

nx_prove_propositional.nx nx_prove_propositional_test.nx

imports: nx_prove_propositional.nx

imported by: nobody (leaf or entry point)

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

main test_direct nx_k2_chain_new sys_mmap nx_term_const sys_mmap ↻ nx_k2_axiom nx_k2_at nx_k2_imp sys_mmap ↻ nx_term_app sys_mmap ↻ three_axioms nx_prove nx_proof_ctx_new nx_proof_ctx_seed nx_proof_ctx_push nx_prove_aux attempt nx_k2_at ↻ nx_k2_mark_theorem nx_k2_at ↻ nx_k2_verify nx_k2_at ↻ report test_construction_and nx_k2_chain_new ↻ nx_term_const ↻ nx_k2_axiom ↻ two_axioms nx_k2_and sys_mmap ↻ nx_term_app ↻ nx_prove ↻ attempt ↻ report ↻ test_and_comm nx_k2_chain_new ↻ nx_term_const ↻ nx_k2_axiom ↻

structs

none

consts

10const SYM_A: nx_int = 1001
11const SYM_B: nx_int = 1002
12const SYM_C: nx_int = 1003

functions

14func two_axioms(a: nx_int, b: nx_int) -> *nx_int
21func three_axioms(a: nx_int, b: nx_int, c: nx_int) -> *nx_int
called by 1: test_direct
29func one_axiom(a: nx_int) -> *nx_int
35func empty_axioms() -> *nx_int
40func attempt(ch: *K2Chain, idx: nx_int) -> nx_int
49func report(name: *u8, ok: nx_int, chain_len: nx_int) -> nx_int
63func test_direct() -> nx_int
77func test_construction_and() -> nx_int
90func test_and_comm() -> nx_int
102func test_identity() -> nx_int
112func test_k_combinator() -> nx_int
123func test_hyp_syllogism() -> nx_int
137func test_modus_tollens() -> nx_int
150func test_contraposition() -> nx_int
162func test_or_intro() -> nx_int
174func test_double_negation() -> nx_int
185func main() -> nx_exit