Identifier
F:int-prodrange-split
Proof route
kernel-lean
External status
Not recorded
Axiom footprint
Empty

Recorded description

For any f from naturals to integers and any naturals a and b, the product of f over [0, a+b) equals the product of f over [0, a) times the product of the SHIFTED function k -> f (a+k) over [0, b). `Int.prodRange` is this prelude's own fold, defined by prodRange f zero = one and prodRange f (succ n) = prodRange f n * f n; nothing here is imported or axiomatised and `Kernel::axiom_footprint` for this declaration is EMPTY. The offset in the tail function is the content: without it the identity is false (over [0,5) of k+1, the split at a=2 gives 2! * (3*4*5) = 120 with the offset and 2! * 3! = 12 without it).

Formal statement
theorem Int.prodRange_split : ((x0 : ((x0 : AxNat) -> Int)) -> ((x1 : AxNat) -> ((x2 : AxNat) -> Eq.{1} Int (Int.prodRange x0 (AxNat.add x1 x2)) (Int.mul (Int.prodRange x0 x1) (Int.prodRange (fun (x3 : AxNat) => x0 (AxNat.add x1 x3)) x2)))))

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. Multiplication on the integers Multiplying an integer by one i Current fact Wilson's theorem split at the h
2 direct dependencies 1 direct dependents

Evidence

kernel-Int.prodRange_split

Kind
kernel-term
Status
checked

Supports: Int.prodRange_split 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 theorem_dependency_inventory -- Int.prodRange_split 2>/dev/null | grep -cE '^Int\.prodRange_split[[:space:]]'
Evidence notes

Two independent failure modes, so the exit status depends on the finding rather than on the run completing: theorem_dependency_inventory exits non-zero when a NAMED filter matches nothing, and grep -c exits 1 printing 0 when the anchored line is absent. Anchored with [[:space:]], never \t -- in a scripted (GNU) grep \t is a literal t. grep -c rather than grep -q, which would SIGPIPE the producer under pipefail. --release is MANDATORY: this tool builds creal/complex/cpoint, which overflow the default debug thread stack.

footprint-Int.prodRange_split

Kind
exhaustive-enumeration
Status
checked

Supports: axiom_footprint: [] -- the integer prelude's trusted surface is empty, which bounds Int.prodRange_split.

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

--require-axiom-free exits non-zero when the named prelude's trusted surface (Axiom + Opaque + Quotient) is not empty, and errors rather than silently passing for a prelude the run never built. A declaration cannot depend on a trusted declaration the environment does not contain, so an empty integer surface bounds every declaration in it, including Int.prodRange_split. This is a whole-prelude bound, not a per-declaration measurement; the per-declaration figure is the footprint column of kernel_declaration_projection, measured 0 for this row.

Provenance

{
  "date": "2026-08-31",
  "curation": "generated-unreviewed",
  "generated_by": "scripts/gen-kernel-facts.py",
  "established_by": "axeyum-lean-kernel build_int_prelude (crates/axeyum-lean-kernel/src/int_prelude/)",
  "source": "Derived mechanically from the unfiltered emit of `cargo run -q --release -p axeyum-lean-kernel --example kernel_declaration_projection`, which prints one TSV row per declaration whose fields are (prelude, kind, display name, axiom-footprint size, direct type declarations, direct declarations, direct theorems, Kernel::render_lean(declaration.ty())). formal.statement is that last field verbatim; depends_on is the direct-theorem column intersected with this ledger's registered facts; axiom_footprint is the footprint-size column, cross-checked by the whole-prelude nat_axiom_inventory run recorded in the second evidence row. No field was hand-transcribed and no prose was authored. `title`, `statement` and `notes` were then REPLACED by hand (lane first-supplementary-law, ADR-1230); every other field is the generator's output unmodified."
}