Provedalphabaguettebaguette-zreversible
Two-stream block: the forward map undoes the explicit inverse
For all , and (given ):
What the notation means · or point at any symbol
- Type
- Type: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Type) - AddGroup
- AddGroup: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
AddGroup) - f(x)Function application
- AddGroup applied to G. Lean writes f x; papers write f(x). (
AddGroup G) - ⟹Implies
- If G, then G. (Between types, A → B is the type of functions from A to B.) (
G → G) - x : TVariables
- F, H range over G → G: the statement must hold for every choice. (
(F H : G → G)) - x ∈ TVariables
- y₁, y₂ range over G: the statement must hold for every choice. (
(y₁ y₂ : G)) - (a, b)Tuple
- The ordered pair (or tuple) of y₁ − F(y₂ − H(y₁)) + F(y₂ − H(y₁)), y₂ − H(y₁) + H(y₁ − F(y₂ − H(y₁)) + F(y₂ − H(y₁))). (
((y₁ - F (y₂ - H y₁)) + F (y₂ - H y₁), …) - =Equality
- (y₁ − F(y₂ − H(y₁)) + F(y₂ − H(y₁)), y₂ − H(y₁) + H(y₁ − F… and (y₁, y₂) are the same. (
((y₁ - F (y₂ - H y₁)) + F (y₂ - H y₁), …) - +Addition
- y₁ − F(y₂ − H(y₁)) plus F(y₂ − H(y₁)). (
(y₁ - F (y₂ - H y₁)) + F (y₂ - H y₁)) - -Subtraction
- y₂ minus H(y₁). On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (
y₂ - H y₁)
theorem bz-rev-right-inverse {G : Type} [AddGroup G] (F H : G → G) (y₁ y₂ : G) :
((y₁ - F (y₂ - H y₁)) + F (y₂ - H y₁), (y₂ - H y₁) + H ((y₁ - F (y₂ - H y₁)) + F (y₂ - H y₁))) = (y₁, y₂)Applying the block to (y₁ − F(y₂ − H y₁), y₂ − H y₁) returns (y₁, y₂): the inverse is two-sided. Part of the plan 'Baguette-Z: closed-loop certified integer-state training'.
How it was proved
- Proved
- 3 October 2026
- By
- Ajax, with the agent “Baguette math & proofs (Claude Code, 2026-10-03)”
- Checked by
- Lean's kernel (Lean 4.33.1, with Mathlib); the proof is signed and replays offline
- Axioms
- propext
- Proof
- 12 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.