Identifier
F:ml430-nat-log-eq-one-iff-63d772fb
Proof route
kernel-lean
External status
proved
Axiom footprint
Empty

Recorded description

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

Formal statement
∀ {b n : ℕ}, Nat.log b n = 1 ↔ b ≤ n ∧ n < b * b

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. Mathlib v4.30 source propositio Mathlib v4.30 source propositio Mathlib v4.30 source propositio Mathlib v4.30 source propositio Mathlib v4.30 source propositio The boolean order test is false The computed quotient and remai [generated] kernel theorem Nat. Current fact
20 direct dependencies 0 direct dependents Graph shows the first 8 on each side.

Evidence

kernel-Nat.log_eq_one_iff-prime

Kind
kernel-term
Status
checked

Supports: ∀ {b n : ℕ}, Nat.log b n = 1 ↔ b ≤ n ∧ n < b * b

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

`build_nat_prelude` admits `Nat.log_eq_one_iff'` through the trusted `Kernel::add_declaration` gate (declared in `nat_prelude/log_clog_mirrors.rs`'s `declare_log_eq_one_iff_prime`, lane `nat-mirror-residue`). `mpr` (`Le b n -> Lt n (mul b b) -> Eq (log b n) 1`) is `log_eq_one_of_bounds`: since `1 < b` is not given, it is derived from the bounds (`derive_one_lt_base_from_bounds`: if `b <= 1` then `b*b <= b <= 1` via `mul_le_mul_left`/`mul_one`/`le_trans`, so `n < 1`, so `n = 0` (`le_of_lt_succ`+`le_antisymm`+`zero_le`), so with `b <= n` also `b = 0`, contradicting `n < b*b = 0` via `not_lt_zero`), then the usual `cases_zero_succ` unfold (both guard cuts known true, two `bool_transport`s reduced->general, INNER `2<=b` first then OUTER `b<=n` -- `log`'s nesting) aimed at `Eq (_, 1)`, with the recursive `logAux ... = 0` from `div_lt_of_lt_mul` (forward direction, already in the prelude) plus a new fuel-agnostic `log_aux_lt_eq_zero` (`log_of_lt`'s step-case technique generalized off the diagonal fuel). `mp` (`Eq (log b n) 1 -> Le b n /\ Lt n (mul b b)`) composes `log_eq_one_derive_base_le_n` (`Nat.lt_or_ge n b`, the `n<b` side refuted the same way `log_eq_zero_iff`'s `mp` refutes its `1<b` sub-case) with `log_eq_one_derive_sq_bound` -- the genuinely new piece this file's module doc previously called missing (`log b n < 2 -> n < b*b`): peel `h` (general->specific, TWO `bool_transport`s using the FORWARD `ble_eq_true_of_le` evidence, OUTER `b<=n` first) down to `Eq (logAux b n' quotient) 0`, then `log_aux_eq_zero_imp_lt` (the CONVERSE of `log_aux_lt_eq_zero`, fuel-generalized via `cases_zero_succ` alone -- no induction -- fed `Le quotient n'` from `div_lt_self`+`le_of_lt_succ`) gives `Lt quotient b`, and `lt_mul_of_div_lt` (the BACKWARD direction of `Nat.div_mod_lt_mul_iff`, needing `Lt 0 b` unlike the forward direction already present) finishes. `nat_theorem_inventory`'s rendered type for `Nat.log_eq_one_iff'` is `(x0:AxNat)->(x1:AxNat)->Iff (Eq (log x0 x1) (succ zero)) (And (Le x0 x1) (Lt x1 (mul x0 x0)))`, 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_eq_one_iff_xxxx`: `error: no Nat theorem matches ...`, count 0), and the `grep -c` count (tested `-ge 1`, not piped into `grep -q`) requires the admitted declaration to actually be printed.

footprint-Nat.log_eq_one_iff-prime

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). `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_eq_one_iff_prime`) and `nat_prelude_tests::the_nat_prelude_declares_no_axioms` confirms zero `Axiom` declarations anywhere in the built environment. Full `nat_prelude::` sweep: 325 passed, 0 failed.

Provenance

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