Identifier
F:nat-xor-xor-cancel-right
Proof route
kernel-lean
External status
Not recorded
Axiom footprint
Empty

Recorded description

For every natural a, b: xor(xor(a, b), b) equals a.

Formal statement
theorem Nat.xor_xor_cancel_right : ((x0 : AxNat) -> ((x1 : AxNat) -> Eq.{1} AxNat (AxNat.xor (AxNat.xor x0 x1) x1) x0))

Dependencies

The graph shows direct ledger edges. Follow a node to open its artifact page.

Direct dependencies appear to the left. The current fact is in the center. Facts that depend directly on it appear to the right. xor a (xor a b) = b Current fact Mathlib v4.30 source propositio
1 direct dependencies 1 direct dependents

Evidence

kernel-Nat.xor_xor_cancel_right

Kind
kernel-term
Status
checked

Supports: Nat.xor_xor_cancel_right is admitted by the trusted kernel gate with the type recorded in formal.statement.

Checker command
cargo run -q --release -p axeyum-lean-kernel --example nat_theorem_inventory -- xor_xor_cancel_right 2>/dev/null | grep -Ec '^Nat\.xor_xor_cancel_right[[:space:]]'
Evidence notes

`build_nat_prelude` admits this theorem only through the trusted `Kernel::add_declaration` gate, which re-checks the proof term against the stated type. `nat_theorem_inventory` exits non-zero for a name that does not exist, and `grep -Ec` consumes the pipe so the tested count (expected >= 1) decides the exit status, never `grep -q` under pipefail. Anchored with `[[:space:]]`, never a literal tab. `--release` is mandatory: this tool builds `creal`/`complex`/`cpoint`, which overflow the default debug thread stack.

compute-Nat.xor_xor_cancel_right

Kind
kernel-term
Status
checked

Supports: At the discriminating concrete pair (a, b) = (3, 5), xor(xor(3, 5), 5) def-eq's to 3 (xor(3,5)=6, xor(6,5)=3), and the theorem's conclusion does NOT def-eq to the negative control 4; and the theorem re-derives against a genuinely free (a, b) pair, not merely a concrete instance.

Checker command
cargo test -p axeyum-lean-kernel --lib nat_prelude::nat_prelude_tests::xor_xor_cancel_applies_at_a_concrete_discriminating_instance_and_symbolically
Evidence notes

Same fixture as F:nat-xor-xor-cancel-left's compute evidence, which also checks this theorem's discriminating pair in the same test function.

footprint-Nat.xor_xor_cancel_right

Kind
instance-pin
Status
checked

Supports: axiom_footprint: [] -- the Nat environment admits no trusted declaration

Checker command
cargo run -q --release -p axeyum-lean-kernel --example nat_axiom_inventory -- --require-axiom-free nat
Evidence notes

Reports `nat: axiom=0 opaque=0 quotient=0 total_trusted=0`, over the FULL trusted surface rather than `Declaration::Axiom` alone. The enumeration is per-environment, not per-theorem; it bounds this theorem's footprint because a proof cannot depend on a trusted declaration the environment does not contain.

Provenance

{
  "date": "2026-08-29",
  "established_by": "axeyum-lean-kernel build_nat_prelude, lane nat-xor-cancel",
  "source": "theorem name and canonical type read directly via nat_theorem_inventory, which prints render_lean of the admitted type."
}