Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Cancellation law: if `a ⊕ b` and `a ⊕ c` are defined and equal, then

Proved
EffectAlgebra.cancel_left

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

aether-catalogshared

Cancellation law: if a ⊕ b and a ⊕ c are defined and equal, then b = c.

theorem EffectAlgebra.cancel_left(a b c d : E)
    (h1 : a ⊕ₑ b = some d) (h2 : a ⊕ₑ c = some d) : b = c := by sorry
/-! ## Theorem 3: `ortho eone = ezero` and `ortho ezero = eone` -/



/-! ## Theorem 4: The canonical order is transitive -/


/-! ## Theorem 5: Orthocomplement is order-reversing

**PEGB**:
- **P**roof: If `a ≤ b`, i.e. `a ⊕ c = b` for some `c`, then `c ⊕ ortho b` is
  defined and equals `ortho a`, giving `ortho b ≤ ortho a`.
- **E**xample: In `[0,1]`, `a ≤ b` implies `1-b ≤ 1-a`.
- **G**eneralization: Orthocomplementation is an order-reversing involution
  (an antitone involution) on any effect algebra.
- **B**oundary: Requires the full effect algebra structure; fails for
  partial commutative monoids without orthocomplement.
-/


/-! ## Theorem 6: Two-element Boolean effect algebra (Bool)

**PEGB**:
- **P**roof: Direct construction with ⊕ = XOR (undefined on true+true).
- **E**xample: false ⊕ true = some true, true ⊕ true = none.
- **G**eneralization: Every Boolean algebra yields an effect algebra.
- **B**oundary: Non-distributive orthomodular lattices give non-Boolean EAs.
-/



-- Concrete examples
example : boolOplus false true = some true := rfl
example : boolOplus true true = none := rfl

/-! ## Theorem 7: Unit interval effect algebra [0,1] ⊂ ℝ

The standard quantum effect algebra. -/


open UnitInterval




/-! ## Theorem 8: morphisms preserve orthocomplements -/




/-!
## FUTURE DIRECTIONS

1. **Orthomodular lattice embedding**: Every orthomodular lattice gives rise
   to an effect algebra. Conversely, characterize which effect algebras arise
   from orthomodular lattices. Conjecture: An effect algebra is lattice-ordered
   iff it is an MV-effect algebra.

2. **Spectral theorem for effect algebras**: Define observables as σ-homomorphisms
   from Borel sets to an effect algebra. Prove that for the unit interval EA,
   these recover classical random variables.

3. **Sequential product**: Define a ∘ b (measurement of b after a). Prove that
   commutativity of ∘ characterizes compatibility. Conjecture: The sequential
   product makes every effect algebra into a partial Jordan algebra.

4. **Categorical structure**: Prove EffectAlg is complete and cocomplete.
   Conjecture: The forgetful functor EffectAlg → Set has a left adjoint.

5. **Quantum-to-classical collapse**: Prove every commutative effect algebra
   is isomorphic to a Boolean effect algebra. Conjecture: Every finite
   commutative effect algebra is isomorphic to a power set EA 2^n.
-/

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

Preamble
-- Thm stub generated from Shared/Hilbert6AxiomatizationofPhysics/SalvagedBest.lean
import Mathlib
import Definitions.Def_Shared_Hilbert6AxiomatizationofPhysics_SalvagedBest
/-
# Hilbert's 6th problem: effect algebras

Effect algebras are the standard order-theoretic axiomatization of the
"unsharp observables" of quantum mechanics: a partial commutative monoid with
an orthocomplement, of which the unit interval `[0,1] ⊂ ℝ` (the classical
probabilities) and the two-element Boolean algebra are the basic models.

This file was recovered from a fragment in which the class `EffectAlgebra`,
the notation `⊕ₑ`, the order `ele`, and the morphism structure `EffectHom`
were all missing.  They are supplied here, and every theorem is proved from
the axioms with no `sorry`.
-/




open EffectAlgebra

variable {E : Type*} [EffectAlgebra E]


/-! ## Theorem 2: Orthocomplement is an involution

**PEGB**:
- **P**roof: From `a ⊕ ortho a = eone`, commutativity gives `ortho a ⊕ a = eone`,
  and uniqueness of the orthocomplement gives `ortho (ortho a) = a`.
- **E**xample: In `Bool`, `not (not b) = b`.
- **G**eneralization: In any algebra with unique complements, complementation
  is an involution.
- **B**oundary: Fails without uniqueness — multiple complements break
  involutivity.
-/


/-! ## Theorem 1: Cancellation

**PEGB**:
- **P**roof: pass to orthocomplements twice, using associativity to move
  `ortho d` across the sum; uniqueness of orthocomplements then forces
  `ortho b = ortho c`, and involutivity gives `b = c`.
- **E**xample: cancellation holds in `Bool` (see `boolEffectAlgebra` below).
- **G**eneralization: every effect algebra is a cancellative partial monoid.
- **B**oundary: cancellation genuinely uses `ortho_unique`; partial commutative
  monoids without orthocomplements need not be cancellative.
-/
Formal statement
theorem EffectAlgebra.cancel_left(a b c d : E)
    (h1 : a ⊕ₑ b = some d) (h2 : a ⊕ₑ c = some d) : b = c := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Shared/Hilbert6AxiomatizationofPhysics/SalvagedBest.lean#L77

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