Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

PairPenalty eq zero iff

Proved
pairPenalty_eq_zero_iff

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

aether-catalogtropical

Formal statement of pairPenalty_eq_zero_iff from the Aether Catalog (Tropical). The mathematical content is given by the Lean statement below; a human-readable write-up is pending.

theorem pairPenalty_eq_zero_iff(i j : Voice) (v w : Chord) :
    pairPenalty i j v w = 0 ↔ PairLegal i j v w := by sorry

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

Preamble
-- Thm stub generated from Tropical/SATB/TropicalHypergraphCounterpoint.lean
import Mathlib
import Definitions.Def_Tropical_SATB_TropicalHypergraphCounterpoint

/-!
# Tropical Hypergraph Counterpoint for SATB

This module establishes an exact bridge between four-voice (SATB) counterpoint
legality and tropical optimization on weighted hypergraphs.

## Mathematical Content

We model SATB voice leading as a constrained dynamical system on `Fin 4 → ℤ`
and prove three main theorem packages:

### Theorem Package 1: Zero-Locus Characterization
Legal SATB transitions are exactly the zero locus of a nonnegative tropical
penalty functional assembled from six pairwise components (one per unordered
voice pair). This converts Boolean legality into tropical vanishing.

### Theorem Package 2: Shortest-Path Realization
Legal progressions (sequences of chords) are exactly zero-cost paths in the
induced weighted hypergraph. Since all edge weights are nonnegative, legal
paths are globally shortest among all paths with the same endpoints.

### Theorem Package 3: Pairwise Tensor Factorization
The total SATB cost factorizes as a double sum over voice pairs and time steps.
Legality of a full progression is determined entirely by pairwise legality at
each time step, establishing an exact structural decomposition of the 4-voice
problem into coupled 2-voice subproblems.

## Significance

This formalization proves that a high-arity symbolic constraint system (4-voice
counterpoint) admits exact tropical optimization with:
- certifiable legality detection via zero-locus testing,
- shortest-path semantics for legal progressions,
- nontrivial state-space compression via pairwise factorization.
-/

open Finset BigOperators

noncomputable section

/-! ## Core Definitions -/





/-! ## Pairwise Legality Predicates -/









/-! ## Global Legality -/





/-! ## Pairwise Penalty Functions -/






/-! ## Component Penalty Properties -/







/-! ## Pairwise Penalty Zero-Locus -/
Formal statement
theorem pairPenalty_eq_zero_iff(i j : Voice) (v w : Chord) :
    pairPenalty i j v w = 0 ↔ PairLegal i j v w := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Tropical/SATB/TropicalHypergraphCounterpoint.lean#L167

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