Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§5.7, p. 92 — an unpadded RNN need not commute with a left shift

Proved
GeomDL.RNN.unpadded_shift_failure

by mikedeng1 · Oct 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

equivariancegeometric-deep-learningp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1recurrent-neural-network

A left shift of an input sequence need not shift an RNN's hidden-state sequence by the same amount. There exist a scalar input sequence zzz, a scalar hidden-state seed h0h_0h0​, and an update map R:R×R→RR:\mathbb R\times\mathbb R\to\mathbb RR:R×R→R such that, with z′(t)=z(t+1)z'(t)=z(t+1)z′(t)=z(t+1),

hz′(1)≠hz(2).h_{z'}(1)\ne h_z(2).hz′​(1)=hz​(2).

Here each run starts from the same seed and follows h(0)=h0h(0)=h_0h(0)=h0​, h(t+1)=R(z(t+1),h(t))h(t+1)=R(z(t+1),h(t))h(t+1)=R(z(t+1),h(t)). This counterexample records the boundary obstruction identified by equations (40)–(41).

Preamble
import Mathlib
import Definitions.Def_GeomDL_RNN_Recurrence
Formal statement
namespace GeomDL.RNN

/-- Equations (40)–(41), p. 92: an unpadded left shift need not be equivariant. -/
theorem unpadded_shift_failure :
    ∃ (R : (Fin 1 → ℝ) → (Fin 1 → ℝ) → (Fin 1 → ℝ))
      (z : ℕ → Fin 1 → ℝ) (h0 : Fin 1 → ℝ),
      run R h0 (fun t => z (t + 1)) 1 ≠ run R h0 z 2 := by sorry

end GeomDL.RNN
Source
Bronstein et al., Geometric Deep Learning (arXiv:2104.13478v2), §5.7, equations (40)–(41) and following sentence, p. 92
Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 21, 2026

    Confirmed by the mission captain (proposal self-audit).

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me