Identifier
F:ml430-nat-ldiff-bit-6be49bb8
Proof route
kernel-lean
External status
proved
Axiom footprint
Empty

Recorded description

The proposition declared as `Nat.ldiff_bit` in the pinned Mathlib v4.30 source.

Formal statement
∀ (a : Bool) (m : ℕ) (b : Bool) (n : ℕ), (Nat.bit a m).ldiff (Nat.bit b n) = Nat.bit (a && !b) (m.ldiff n)

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. Current fact
0 direct dependencies 0 direct dependents

Evidence

reconciliation-Nat.ldiff_bit

Kind
kernel-term
Status
checked

Supports: ∀ (a : Bool) (m : ℕ) (b : Bool) (n : ℕ), (Nat.bit a m).ldiff (Nat.bit b n) = Nat.bit (a && !b) (m.ldiff n)

Evidence notes

Registers an independently constructed native theorem (`F:nat-ldiff-bit`, `Nat.ldiff_bit` in `nat_prelude/bit_decode.rs`) whose proposition definitionally matches this proof-free imported goal -- Mathlib defines `Nat.ldiff` via `bitwise (fun a b => a && !b)`, the same construction our local `ldiff_fn` reproduces, so this closes the SAME function's `bit`-decode identity, not a lookalike about a different definition (the criterion this repository uses to decide when flipping an `ml430` mirror is honest: Mathlib's `def` is the same function, not merely a theorem about a different one). No Autogenesis operation produced the theorem; the route taken (the `Nat.bit` decode bridge transported from `land_bit` -- the fuel-swap machinery unchanged, plus `ldiff`'s own hybrid guard rows -- `lor`-flavoured pass-through at `n=0`, `land`-flavoured absorbing `0` at `m=0` -- and `beq`-gated per-bit combine) is NOT Mathlib's own route via `bitwise_bit'`, which is why this fact's `depends_on` stays empty rather than naming `F:ml430-nat-bitwise-bit-4c4b28a8` -- our proof never used the general `bitwise` recursion equations.

Provenance

{
  "date": "2026-08-18",
  "established_by": "not established in this ledger",
  "source": "statement-only extraction of `Nat.ldiff_bit` from Mathlib v4.30.0; no proof value was exposed",
  "prior_art": [
    {
      "who": "the Mathlib contributors",
      "what": "the theorem declaration `Nat.ldiff_bit`",
      "where": "mathlib4 commit c5ea00351c28e24afc9f0f84379aa41082b1188f (v4.30.0)",
      "year": 2026,
      "attribution": "the proposition was read from the pinned statement-only inventory; the proof term and tactic trace were not consulted"
    }
  ]
}