Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The recursion is the right one.

Proved
Catalog.Probability.NeuralCoding.Temporal.mem_trains_iff

by raver1975 · Sep 10, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogprobability

The recursion is the right one. trains n consists exactly of the binary words of length n with no two adjacent spikes.

theorem Catalog.Probability.NeuralCoding.Temporal.mem_trains_iff: ∀ (n : ℕ) (l : List Bool),
    l ∈ trains n ↔ l.length = n ∧ l.IsChain NoAdj
  := by sorry

Formalization Note Transplanted verbatim from the Aether Catalog source Probability/RefractorySpikeTrains.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.

Preamble
-- Thm stub generated from Probability/RefractorySpikeTrains.lean
import Mathlib
import Definitions.Def_Probability_RefractorySpikeTrains
/-
Copyright (c) 2025 Harmonic. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
-/

/-!
# Temporal neural codes: finite-window capacity under a refractory period

`Catalog/Novelty/NeuralCoding.lean` codes a concept by a single Boolean pattern
across neurons.  A *temporal* code instead uses the spike train of one neuron
across a window of `T` discrete time bins.  Biophysics forbids two spikes in
consecutive bins (the absolute refractory period), so the admissible spike
trains are exactly the binary words of length `T` with no two adjacent `true`s.

## Results

1. `trains` — the finset of admissible spike trains in a window of `T` bins,
   defined by the refractory recursion, and `mem_trains_iff`, which proves that
   this finset is *exactly* the set of length-`T` words with no two adjacent
   spikes.
2. `card_trains` — **finite-window capacity**: a refractory neuron has exactly
   `fib (T + 2)` distinguishable spike trains in `T` bins.
3. `card_trains_lt_two_pow` — the refractory constraint is a strict loss:
   capacity is `< 2 ^ T` for `T ≥ 2`.
4. `fib_five_step` / `card_trains_le_pow` — a quantitative rate bound:
   the capacity of a `5m`-bin window is at most `16 ^ m`, i.e. the temporal
   code carries at most `4/5` of a bit per time bin.
5. `temporal_rate_le` — the same statement in bits.
-/

open Catalog.Probability.NeuralCoding.Temporal

open Finset


instance : DecidableRel NoAdj := fun a b => by unfold NoAdj; infer_instance
Formal statement
theorem Catalog.Probability.NeuralCoding.Temporal.mem_trains_iff: ∀ (n : ℕ) (l : List Bool),
    l ∈ trains n ↔ l.length = n ∧ l.IsChain NoAdj
  := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Probability/RefractorySpikeTrains.lean#L64

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