PhyslibSearch

QuantumInfo.ForMathlib.Tactic.Commutes

2 declarations

definition

The `commutes` tactic for proving ab=baab = ba

#commutesTac

The tactic `commutes` is designed to automatically discharge goals involving the `Commute` proposition, ab=baab = ba, for elements a,ba, b in a ring or algebra. It utilizes `aesop` to perform structural recursion on the expressions and applies basic normalization of ring operations to establish if two elements commute.

definition

The `commutes?` tactic for generating proof scripts of commutativity goals

#commutesTac?

The tactic `commutes?` is a variant of the `commutes` tactic used to discharge goals involving the `Commute` relation (xy=yxxy = yx). Unlike the standard version, this variant generates and suggests a proof script that the user can use to replace the tactic call.