Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Killed Harmonic mathematical objects

Definition
AnalyticCombinatorics_Ch8_Partitions_KilledHarmonic

by FormallyCorrect · Oct 28, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)

analytic-combinatoricsinteger-partitionslean4

The stopped kernel is the identity row below a rank cutoff and agrees with the original downward kernel above it.

Definition code
import Mathlib

set_option autoImplicit true
set_option relaxedAutoImplicit false
set_option maxSynthPendingDepth 3


/-!
# R7 Fact B via Doeblin: the `P̃^L`-harmonic identity

A function `h` that is harmonic above a cutoff (`h n = ∑_{k<n} P n k · h k` for `rank n ≥ J`, and
`h n = φ n` below) is exactly harmonic for the *killed* kernel `P̃` summed over `range (n+1)`, and hence
for every power `KPowK L P̃`:  `h n = ∑_{k ∈ range (n+1)} (KPowK L P̃) n k · h k`.  Proof by induction on
`L` (one-step + `Finset.sum_comm` + support truncation).  This is the exact-harmonicity (η = 0) that
makes the Doeblin oscillation contraction error-free for `hitVal`.  Opus-authored.
-/

noncomputable section

namespace AnalyticCombinatorics.Ch8.Partitions.Erdos

/-- Killed kernel: predecessor steps above the cutoff, identity-absorb on the boundary. -/
def killedKer (P : ℕ → ℕ → ℝ) (rank : ℕ → ℕ) (J : ℕ) : ℕ → ℕ → ℝ :=
  fun n k => if rank n < J then (if k = n then 1 else 0) else P n k

variable {P : ℕ → ℕ → ℝ} {rank : ℕ → ℕ} {J : ℕ} {h φ : ℕ → ℝ}

end AnalyticCombinatorics.Ch8.Partitions.Erdos
Source
https://github.com/xiangyazi24/AnalyticCombinatorics/blob/f6f3f1cebdae245a61d9d71e6b47c69fbd096fe3/AnalyticCombinatorics/Ch8/Partitions/KilledHarmonic.lean. Source code: Apache-2.0; https://github.com/xiangyazi24/AnalyticCombinatorics/blob/f6f3f1cebdae245a61d9d71e6b47c69fbd096fe3/LICENSE

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me