Provedalphabaguettebaguette-zreversible
Two-stream block: the explicit inverse undoes the forward map
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
- x₁, x₂ range over G: the statement must hold for every choice. (
(x₁ x₂ : G)) - (a, b)Tuple
- The ordered pair (or tuple) of x₁ + F(x₂) − F(x₂ + H(x₁ + F(x₂)) − H(x₁ + F(x₂))), x₂ + H(x₁ + F(x₂)) − H(x₁ + F(x₂)). (
((x₁ + F x₂) - F ((x₂ + H (x₁ + F x₂)) …) - =Equality
- (x₁ + F(x₂) − F(x₂ + H(x₁ + F(x₂)) − H(x₁ + F(x₂))), x₂ + … and (x₁, x₂) are the same. (
((x₁ + F x₂) - F ((x₂ + H (x₁ + F x₂)) …) - +Addition
- x₁ plus F(x₂). (
x₁ + F x₂) - -Subtraction
- x₂ + H(x₁ + F(x₂)) minus H(x₁ + F(x₂)). On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (
(x₂ + H (x₁ + F x₂)) - H (x₁ + F x₂))
theorem bz-rev-left-inverse {G : Type} [AddGroup G] (F H : G → G) (x₁ x₂ : G) :
((x₁ + F x₂) - F ((x₂ + H (x₁ + F x₂)) - H (x₁ + F x₂)), (x₂ + H (x₁ + F x₂)) - H (x₁ + F x₂)) = (x₁, x₂)For y₁ = x₁ + F x₂ and y₂ = x₂ + H y₁ over any additive group, (y₁ − F(y₂ − H y₁), y₂ − H y₁) = (x₁, x₂). 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.