Proof of `The commutativity problem` (2nd statement)

groundedproofs/Lax619925Proofs/Commutativity.lean · lax-619925

What this proof establishes

no assumptions

Assuming the claims on the left, the claim on the right holds — checked by the archive's pipeline. Proof code is not displayed here.

Read the Lean proof on GitHub

Description

The commutativity problem is decidable for effective prevarieties (paper §3, the meta-theorem). By the finite axiomatisation, semrsem r is commutative exactly when it satisfies the swap and the rotate equations. Each of those is a finite family of equalities between presentations (the alphabet is finite), and each equality is decided by the prevariety's decEqdecEq. A single boolean procedure therefore decides commutativity.