code wiki / (root) / nx_prove_propositional.nx

nx_prove_propositional.nx

buildroot/runtime/nx_prove_propositional.nx

9651 B281 linesdepth 6pulls 6 transitivereach 4 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_prove_propositional.nx -- AUTO-PROVER ENGINE Per user 2026-05-15: "build the system or engine that does this this goes for all nishilang ... make sure it exceeds or matches everything wikipedia called out on proofs that are required".

dependencies 1 imports · 3 importers

nx_kernel_v2.nx nx_prove_propositional.nx nx_prove_propositional_test.nx nx_tactics.nx nx_world_demo_test.nx

imports: nx_kernel_v2.nx

imported by: nx_prove_propositional_test.nxnx_tactics.nxnx_world_demo_test.nx

structs

18struct ProofCtx

consts

15const NX_PROVE_MAX_CTX: nx_int = 64
16const NX_PROVE_MAX_DEPTH: nx_int = 16
23const NX_PROOF_CTX_BYTES: nx_int = 24

functions

25func nx_proof_ctx_new() -> *ProofCtx
33func nx_proof_ctx_push(p: *ProofCtx, idx: nx_int) -> nx_int
40func nx_proof_ctx_pop(p: *ProofCtx) -> nx_int
called by 1: nx_prove_aux
45func nx_proof_ctx_seed(p: *ProofCtx, idxs: *nx_int, n: nx_int) -> nx_int
56func nx_prove_ctx_lookup(ch: *K2Chain, p: *ProofCtx, goal: *Term) -> nx_int
68func nx_prove_aux(ch: *K2Chain, p: *ProofCtx, goal: *Term, depth: nx_int) -> nx_int;
69func nx_prove_false(ch: *K2Chain, p: *ProofCtx, depth: nx_int) -> nx_int;
called by 1: nx_prove_aux
71func nx_prove_and_elim_scan(ch: *K2Chain, p: *ProofCtx, goal: *Term) -> nx_int
102func nx_prove_mp_scan(ch: *K2Chain, p: *ProofCtx, goal: *Term, depth: nx_int) -> nx_int
129func nx_prove_false(ch: *K2Chain, p: *ProofCtx, depth: nx_int) -> nx_int
172func nx_prove_aux(ch: *K2Chain, p: *ProofCtx, goal: *Term, depth: nx_int) -> nx_int
277func nx_prove(ch: *K2Chain, axioms: *nx_int, n_ax: nx_int, goal: *Term) -> nx_int