kernel-Nat.totient_eq_one_iff
- Kind
- kernel-term
- Status
- checked
Supports: totient n = 1 iff n = 1 or n = 2
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- totient_eq_one_iff 2>/dev/null | grep -Ec '^Nat\.totient_eq_one_iff[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits this theorem through the trusted `Kernel::add_declaration` gate, which re-checks the constructed proof term against the stated type. Reverse direction: `totient 1 = 1` and `totient 2 = 1` both hold by pure `countRange` reduction (`Eq.refl`, like `totient_computes_on_small_numerals`). Forward direction shares `dvd_two_of_totient_le_one`'s `trichotomy` shape at c=2 on `n`: `n < 2` splits again (`lt_or_eq_of_le`) into `n = 0` (contradicts the hypothesis `totient n = 1` since `totient 0 = 0` by defeq, refuted via `succ_ne_zero`) or `n = 1` (`or_inl` directly); `n = 2` is `or_inr` directly; `2 < n` is refuted by the same shared `totient_le_one_contradiction_above_two` (`totient_lemmas.rs`) after converting the hypothesis `Eq (totient n) 1` to `Le (totient n) 1` via `le_refl` transported along the equation. `nat_theorem_inventory` exits non-zero for a name that does not exist, and the `grep -c` requires the admitted declaration to be printed.