Identifier
F:ml430-nat-log-div-mul-self-04282351
Proof route
kernel-lean
External status
proved
Axiom footprint
Empty

Recorded description

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

Formal statement
∀ (b n : ℕ), Nat.log b (n / b * b) = Nat.log b 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. [generated] kernel theorem Nat. [generated] kernel theorem Nat. Below its own base, a number ha Mathlib v4.30 source propositio The computed quotient and remai Multiplication by a fixed left A product of two naturals each [generated] kernel theorem Nat. Current fact
24 direct dependencies 0 direct dependents Graph shows the first 8 on each side.

Evidence

kernel-Nat.log_div_mul_self

Kind
kernel-term
Status
checked

Supports: ∀ (b n : ℕ), Nat.log b (n / b * b) = Nat.log b n

Checker command
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- log_div_mul_self 2>/dev/null | grep -Ec '^Nat\.log_div_mul_self[[:space:]]')" -ge 1
Evidence notes

`build_nat_prelude` admits `Nat.log_div_mul_self` through the trusted `Kernel::add_declaration` gate (declared in `nat_prelude/log_clog_mirrors.rs`'s `declare_log_div_mul_self`, lane `log-div-mul-self`). Route: split `1 < b` vs `b <= 1` (the second closes both sides at `0` via `log_of_left_le_one`); inside `1 < b`, derive `b = succ bp` via `succ_pred_of_pos` (transported back at the very end rather than by a `cases_zero_succ` refutation, since `b = 0/1` are already excluded by the hypothesis) and split `n < b` (both sides round to `0`: `n/b*b <= n < b` via `div_mod_bounds`'s lower conjunct plus `mul_comm`, closed by `log_of_lt` on each side) from `b <= n`. In the `b <= n` case, `n = succ n'` and `n/b*b = succ scaled'` are each established via `succ_pred_of_pos`, and `log`'s recursive equation is unfolded ONCE on each side (`log_succ_unfold`, `declare_log_pos`'s `at_n_succ` guard-collapse recipe retargeted from `Lt zero _` to an `Eq`), landing on `logAux base n' q` and `logAux base scaled' q` for the SAME quotient `q := n/b` (`mul_div_cancel_left`, `div (mul q b) b = q` via `Nat.add_mul_div_right` at `x := 0` plus `zero_add`/`zero_div`, identifies the two `logAux` calls' quotient arguments). `log_aux_agree_of_fuel` -- a double-fuel agreement induction generalizing `rec_agreement.rs`'s `land_aux_agree_of_fuel`/`agree_by_double_fuel_induction` from `landAux`'s structural `m = 0` guard to `logAux`'s order-comparison guard `ble base value` -- then equates `logAux base n' q` and `logAux base scaled' q` given `q <= n'` and `q <= scaled'` (each from `div_lt_self` + `le_of_lt_succ`); its base case and its step case's `a = 0` sub-branch both close via the PRE-EXISTING `log_clog_order.rs::log_aux_zero_value` (made `pub(super)` for this reuse, no new fuel-agnostic zero-value lemma had to be built), and its `a = succ predecessor` sub-branch needs no guard-truth case split at all, because both fuels being compared reduce `logAux`'s own `Nat.rec` against an IDENTICAL guard term once `c`'s positivity gives it a literal successor shape -- `d.congr` isolates the differing recursive sub-term, closed by the IH. `nat_theorem_inventory`'s rendered type for `Nat.log_div_mul_self` is `(x0:AxNat)->(x1:AxNat)->Eq (log x0 (mul (div x1 x0) x0)) (log x0 x1)`, matching this fact's `formal.statement` verbatim (`x0`=b, `x1`=n). `nat_theorem_inventory` exits non-zero for a name that does not exist (verified against `log_div_mul_selfxxxxx`: `error: no Nat theorem matches ... -- an absent theorem is a failed check, not an empty report`, count 0, exit 1), and the `grep -c` count (tested `-ge 1`, not piped into `grep -q`) requires the admitted declaration to actually be printed.

footprint-Nat.log_div_mul_self

Kind
exhaustive-enumeration
Status
checked

Supports: axiom_footprint: [] -- the Nat prelude's trusted surface is empty

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

`nat_axiom_inventory --require-axiom-free nat` enumerates the built Nat environment and exits non-zero unless it admits no Axiom, Opaque or Quotient declaration (measured: axiom=0 opaque=0 quotient=0, total_trusted=0). A theorem cannot depend on a trusted declaration the environment does not contain, so an empty trusted surface bounds every individual theorem's footprint by []. `nat_prelude_tests::every_nat_declaration_is_checked_and_axiom_free` additionally checks this theorem's own `Kernel::axiom_footprint` directly (via `theorem_names`, which now lists `p.log_div_mul_self`); `cargo test -p axeyum-lean-kernel --lib nat_prelude::` reports 325 passed, 0 failed with this declaration in place, including that test and `every_promised_name_is_admitted_with_the_expected_kind`.

Provenance

{
  "date": "2026-08-29",
  "established_by": "not established in this ledger",
  "source": "statement-only extraction of `Nat.log_div_mul_self` from Mathlib v4.30.0; no proof value was exposed",
  "prior_art": [
    {
      "who": "the Mathlib contributors",
      "what": "the theorem declaration `Nat.log_div_mul_self`",
      "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"
    }
  ]
}