Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unit-pair state model and its designated rotation maps

Definition
APFPaper5_K3_TwoMarkStates

by FiniteUniverse · Nov 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

apfapf-referencesib-v15-2026-11

Defines UnitPair, squared first-coordinate relation number, markOf, actTurn, reverseTurn and admTurns.

Representation and scope. Faithful to its exact supplied mathematical definitions under the stated exposure; original physical-object correspondence is not established.

Claim boundaries. K3-03

This is conditional reference mathematics. The supplied model and its hypotheses are not adopted Foundation inputs, and this node does not establish K1 or K3 closure.

Definition code
/-
APF Foundation Ledger — definition node DRAFT (session EthanBrooke-01WrrBvu, 2026-11-12; not gated, not reviewed)
name: APFPaper5_K3_TwoMarkStates
title: The held relations of the two-mark model, their number, and the turns acting on them
inputs_revision: 2026-10-04.1
mathlib_rev: 0df444a360eaa60ab8c11dca51a86af692955474
source: as Def_APFPaper5_K3_TwoMarkModel.
standing: part of the supplied MODEL. Not ledger data; no declared input produces it.
statement: UnitPair is a pair of reals of unit length. relNumber is the square of its first entry. markOf is
 its turned mark. actTurn a is the turn by a acting on unit pairs. reverseTurn a is the reverse turn. admTurns
 is the set of all such turns.
-/
import Definitions.Def_APFPaper5_K3_TwoMarkModel
import Mathlib.Tactic.Ring

set_option autoImplicit false
namespace APFPaper5.K3

/-- A held relation of the two marks: a pair of unit length. -/
def UnitPair : Type := {w : ℝ × ℝ // w.1 * w.1 + w.2 * w.2 = 1}

/-- The number in the relation. -/
def relNumber (w : UnitPair) : ℝ := w.1.1 * w.1.1

/-- The turned mark of a held relation. -/
def markOf (w : UnitPair) : M2 := markQ w.1.1 w.1.2

/-- The turn by `a`, acting on held relations. -/
def actTurn (a w : UnitPair) : UnitPair :=
  ⟨(a.1.1 * w.1.1 - a.1.2 * w.1.2, a.1.2 * w.1.1 + a.1.1 * w.1.2), by
    have ha : a.1.1 * a.1.1 + a.1.2 * a.1.2 = 1 := a.2
    have hw : w.1.1 * w.1.1 + w.1.2 * w.1.2 = 1 := w.2
    have e : (a.1.1 * w.1.1 - a.1.2 * w.1.2) * (a.1.1 * w.1.1 - a.1.2 * w.1.2)
          + (a.1.2 * w.1.1 + a.1.1 * w.1.2) * (a.1.2 * w.1.1 + a.1.1 * w.1.2)
        = (a.1.1 * a.1.1 + a.1.2 * a.1.2) * (w.1.1 * w.1.1 + w.1.2 * w.1.2) := by ring
    show (a.1.1 * w.1.1 - a.1.2 * w.1.2) * (a.1.1 * w.1.1 - a.1.2 * w.1.2)
          + (a.1.2 * w.1.1 + a.1.1 * w.1.2) * (a.1.2 * w.1.1 + a.1.1 * w.1.2) = 1
    rw [e, ha, hw, mul_one]⟩

/-- The reverse of the turn by `a`. -/
def reverseTurn (a : UnitPair) : UnitPair :=
  ⟨(a.1.1, -a.1.2), by
    have ha : a.1.1 * a.1.1 + a.1.2 * a.1.2 = 1 := a.2
    show a.1.1 * a.1.1 + (-a.1.2) * (-a.1.2) = 1
    rw [neg_mul_neg]
    exact ha⟩

/-- The admissible moves of the model: the turns. -/
def admTurns : Set (UnitPair → UnitPair) := {f | ∃ a : UnitPair, f = actTurn a}

end APFPaper5.K3
Source
Definitions/Def_APFPaper5_K3_TwoMarkStates.lean; Sib v15, SHA-256 001d07bed42a960054d31cc877d295ee8f0cbadbc2e0c8c0c99bcc05fc6f39ff. P5:1686-1717;3049-3056
Human review
  • Endorsed by Shuze Chen · Nov 18, 2026

    Confirmed by the moderator at approval.

  • Endorsed by FiniteUniverse · Nov 18, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me