Diagram rewriting for orthogonal matrices: a study of critical peaks

Similar documents
Reconsidering MacLane. Peter M. Hines

Homotopical methods in polygraphic rewriting Yves Guiraud and Philippe Malbos

Categorical coherence in the untyped setting. Peter M. Hines

A completeness theorem for symmetric product phase spaces

Math 249B. Nilpotence of connected solvable groups

Chapter 1: Systems of Linear Equations

= ϕ r cos θ. 0 cos ξ sin ξ and sin ξ cos ξ. sin ξ 0 cos ξ

An Algebraic View of the Relation between Largest Common Subtrees and Smallest Common Supertrees

Coherence in monoidal track categories

The matrix approach for abstract argumentation frameworks

Eilenberg-Steenrod properties. (Hatcher, 2.1, 2.3, 3.1; Conlon, 2.6, 8.1, )

ON COHERENCE OF GRAPH PRODUCTS AND COXETER GROUPS

Resolution for Predicate Logic

Operads. Spencer Liang. March 10, 2015

Equational Logic. Chapter Syntax Terms and Term Algebras

Higher-dimensional categories with finite derivation type

Partially commutative linear logic: sequent calculus and phase semantics

The groups SO(3) and SU(2) and their representations

Modularity of Confluence: A Simplified Proof

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

A categorical model for a quantum circuit description language

Proof nets sequentialisation in multiplicative linear logic

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations

Knowledge spaces from a topological point of view

ne varieties (continued)

, 0, 1, c ξ, d ξη ξ,η<α,

Boolean Algebra CHAPTER 15

Theoretical Computer Science. Completing a combinatorial proof of the rigidity of Sturmian words generated by morphisms

Hierarchy among Automata on Linear Orderings

22.3. Repeated Eigenvalues and Symmetric Matrices. Introduction. Prerequisites. Learning Outcomes

6 Permutations Very little of this section comes from PJE.

Irreducible subgroups of algebraic groups

Building a (sort of) GoI from denotational semantics: an improvisation

MATH 167: APPLIED LINEAR ALGEBRA Chapter 2

The Integers. Peter J. Kahn

Solving Systems of Linear Equations

Hypersequent Calculi for some Intermediate Logics with Bounded Kripke Models

A SIMPLE PROOF OF THE MARKER-STEINHORN THEOREM FOR EXPANSIONS OF ORDERED ABELIAN GROUPS

CS632 Notes on Relational Query Languages I

Propositional Logic. What is discrete math? Tautology, equivalence, and inference. Applications

VC-DENSITY FOR TREES

University of Bristol - Explore Bristol Research. Publisher's PDF, also known as Version of record

Boolean Algebra and Digital Logic

Isomorphisms between pattern classes

THE DIRECT SUM, UNION AND INTERSECTION OF POSET MATROIDS

MacLane s coherence theorem expressed as a word problem

THE STRUCTURE OF 3-CONNECTED MATROIDS OF PATH WIDTH THREE

The Bloch Sphere. Ian Glendinning. February 16, QIA Meeting, TechGate 1 Ian Glendinning / February 16, 2005

arxiv: v1 [cs.lo] 1 Feb 2017

Functions. Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways:

Formally real local rings, and infinitesimal stability.

Elementary maths for GMT

Basic System and Subsystem Structures in the Dataflow Algebra. A. J. Cowling

ISOMETRIES OF R n KEITH CONRAD

Thus we get. ρj. Nρj i = δ D(i),j.

Rota-Baxter Type Operators, Rewriting Systems, and Gröbner-Shirshov Bases, Part II

Boolean Inner-Product Spaces and Boolean Matrices

Categorical quantum mechanics

Linear Logic Pages. Yves Lafont (last correction in 2017)

AN ALGEBRAIC APPROACH TO GENERALIZED MEASURES OF INFORMATION

distinct models, still insists on a function always returning a particular value, given a particular list of arguments. In the case of nondeterministi

arxiv: v1 [math.co] 13 May 2016

ON STRUCTURE AND COMMUTATIVITY OF NEAR - RINGS

Orthogonality and Algebraic Lambda-Calculus

The Banach-Tarski paradox

Finite Dimensional Hilbert Spaces are Complete for Dagger Compact Closed Categories (Extended Abstract)

1 The Algebraic Normal Form

De Rham Cohomology. Smooth singular cochains. (Hatcher, 2.1)

a (b + c) = a b + a c

Size-Depth Tradeoffs for Boolean Formulae

Coreflections in Algebraic Quantum Logic

Univalent Foundations and Set Theory

Representations of Sp(6,R) and SU(3) carried by homogeneous polynomials

Tensor rank-one decomposition of probability tables

Lecture 2: Syntax. January 24, 2018

A NOTE ON TENSOR CATEGORIES OF LIE TYPE E 9

5 Set Operations, Functions, and Counting

Topological quantum computation with anyons

Chapter 8. Rigid transformations

Math 210B. The bar resolution

Forcing in Lukasiewicz logic

Math 462: Homework 2 Solutions

Quantum groupoids and logical dualities

A proof of the Jordan normal form theorem

TOWARDS A SPLITTER THEOREM FOR INTERNALLY 4-CONNECTED BINARY MATROIDS IV

Grothendieck operations and coherence in categories

On a decomposition lemma for positive semi-definite block-matrices

sset(x, Y ) n = sset(x [n], Y ).

Lecture 2. Notes. Notes. Notes. Boolean algebra and optimizing logic functions. BTF Electronics Fundamentals August 2014

Geometry of Interaction

Axioms of Kleene Algebra

Non deterministic classical logic: the λµ ++ -calculus

HW Graph Theory SOLUTIONS (hbovik) - Q

Palindromic complexity of infinite words associated with simple Parry numbers

A matrix over a field F is a rectangular array of elements from F. The symbol

The boundary of a shape and its classification

1 Differentiable manifolds and smooth maps

On the Merkulov construction of A -(co)algebras

Putzer s Algorithm. Norman Lebovitz. September 8, 2016

COMPACT ORTHOALGEBRAS

Transcription:

Diagram rewriting for orthogonal matrices: a study of critical peaks Yves Lafont & Pierre Rannou Institut de Mathématiques de Luminy, UMR 6206 du CNRS Université de la Méditerranée (ix-marseille 2) February 11, 2008 bstract Orthogonal diagrams represent decompositions of orthogonal matrices, corresponding to isometries ofr n, into elementary ones: 1-dimensional symmetries and 2-dimensional rotations. convergent rewrite system for this structure was introduced by the first author. One of the rules, which is similar to the Yang-Baxter equation, involves a map h : [0,π[ 3 [0,π[ 3. To study the algebraic properties of h, we use the confluence of critical peaks in our rewrite system, and we introduce parametric diagrams describing the calculation of angles of rotations generated by rewriting. In particular, h satisfies the tetrahedron equation (also called Zamolodchikov equation). 1 Introduction Diagrams are widely used for computation in various fields of mathematics and physics, like category theory, knot theory, proof theory, quantum electrodynamics and relativity. Formally, a diagram is an element of the free 2-monoid (or strict monoidal category) generated by some 2-computad (or 2-polygraph). See [Pow91, Bur93]. Typical examples are boolean circuits and quantum circuits, which are respectively interpreted in the 2-monoid of finite sets with Cartesian product and in the 2-monoid of finite dimensional (complex) vector spaces with tensor product. See [Laf03, Ran07]. Here we study the case of orthogonal diagrams, which are interpreted in the 2-monoid of finite dimensional (real) vector spaces with direct sum. The starting point is the classical decomposition of rotations inr 3 (Euler angles), which can be generalized to a decomposition of isometries inr n. From this, we get a convergent rewrite system. In that case, critical peaks are not used to prove confluence, since it holds by construction, but to derive some algebraic properties of the rules. Here are some motivations for such a study: First, similar rules appear in the theory of quantum circuits, for which no complete presentation is known. Moreover, we must study enough examples in order to get a general theory of confluence for diagram rewriting. Finally, there are interesting connections between rewriting and homology, which should extend to diagram rewriting. See [Laf07] for a survey. This work is partially supported by NR project Invariants algébriques des systèmes informatiques. 1

2 Rotations ofr 3 The matrix of an isometry is an orthogonal matrix. Such a matrix has determinant±1. If the determinant is 1, it corresponds to a rotation. In particular, the following matrices correspond to rotations of respective axes Ox and Oz inr 3 : 1 0 0 cos sin 0 0 cos sin, sin cos 0. 0 sin cos 0 0 1 Theorem 1 (Euler angles) ny rotation ofr 3 can be decomposed into three rotations, possibly preceded by an axial symmetry, where: the axes of the three rotations are, in order, Ox, Oz, and Ox; the angles of the three rotations are in [0,π[; the axis of the symmetry is Ox, Oy, or Oz. Moreover, this decomposition is unique if the second angle is 0. Otherwise, we get a single rotation of axis Ox, possibly preceded by an axial symmetry. We get the following decomposition for a rotation matrix: 1 0 0 cos sin 0 1 0 0 u 0 0 R 0 cos sin sin cos 0 0 cos sin 0 v 0 0 sin cos 0 0 1 0 sin cos 0 0 w where,, [0,π[, u, v, w±1, uvwdet R1, and0whenever0. This is called a (left) canonical decomposition. It is standard if the angles of the three rotations are 0 and if there is no axial symmetry. In that case,,, are called the Euler angles of the rotation. By exchanging Ox and Oz, we get the notions of right canonical decomposition and of right standard decomposition. Lemma 1 The canonical decomposition of a rotation matrix is standard if and only if its lower left coefficient and its upper right coefficient are positive. Proof: The decomposition is standard if and only if,, 0 and uvw1. Moreover, the lower left coefficient and the upper right coefficient are: a b u sin sin, w sin sin. Since,, [0,π[, we have a, b>0 if and only if,, 0and uvw1. Corollary 1 The left canonical decomposition of a rotation matrix is standard if and only if its right canonical decomposition is standard. 2

3 Orthogonal diagrams We introduce orthogonal diagrams. diagram on n wires is interpreted as an isometry ofr n R R, or equivalently, as an orthogonal n n matrix. The gates represent elementary isometries in low dimension. Compositions of diagrams are interpreted as follows: Let and B be diagrams respectively with n and m wires, interpreted by orthogonal matrices M and M B. Their parallel composition is the following diagram: ( M 0 It is interpreted by the matrix M C M M B 0 M B If n m, the sequential composition of and B is the following diagram: B C ). B C It is interpreted by the matrix M C M M B. Remark: The identity onris represented by a wire. Hence, the matrix Id i M Id j is represented by the following diagram: There are two kinds of gates: i j opposite gate rotation gate for ]0,π[ The first one is interpreted by the scalar 1 and the second one by the matrix ( ) cos sin R. sin cos 3

Definition 1 Canonical diagrams are defined by induction on the number of wires: canonical diagram on 1 wire is: or If n>0, the general form of a canonical diagram on n wires is given in figure 1, where and are canonical diagrams respectively on 1 and n 1 wires, and 0 k n 1. Remark: n orthogonal diagram is canonical if and only if it contains no sub-diagram of the following form: or or or or Theorem 1 can be generalized as follows: Theorem 2 ny isometry ofr n can be represented by a unique canonical diagram. Consider the rewriting rules of figure 2. The last one transforms a right standard form into a left standard form with the same interpretation: The angles,, are given by corollary 1, which asserts the existence and the uniqueness of this left standard form. There are some complicated formulas for those angles, but we shall not use them. Remark: If a diagram D reduces to D, then D and D have the same interpretation. For the last rule, this holds by construction. The other cases are obvious. For instance, the second, the fourth and the fifth rule correspond to the following identities: ( )( ) ( )( ) 1 0 cos sin cos(π ) sin(π ) 1 0 0 1 sin cos sin(π ) cos(π ) 0 1 ( )( ) cos(π ) sin(π ) cos sin sin(π ) cos(π ) sin cos ( )( ) cos sin cos sin sin cos sin cos Lemma 2 The system is noetherian. ( ) 1 0 0 1 ( ) cos(+) sin(+) sin(+) cos(+) Proof: For each diagram on n wires we define a vector (p 1,..., p n 1, q) as follows: p i is the number of occurrences of binary gates having their left input on wire i; qσ Ξ ( f ()+1), whereξis the set of occurrences of unary gates and f () is the number of occurrences of binaries gate above. Then, one checks that each rule makes this vector decrease for the lexicographic order. Since this order is well founded, we are done. 4

Figure 1: General form of a canonical diagram 1 2 3 k 1 k Figure 2: Rules for orthogonal diagrams π π π + if+<π + π if+>π 5

Lemma 3 Every orthogonal diagram reduces to a unique canonical diagram. Proof: By double induction on the number of wires and the number of gates. Consider a diagram D n,m with n wires and m gates and let be its last gate. In other words, D n,m consists of some diagram D n,m 1 followed by. By induction hypothesis, D n,m 1 reduces to a canonical diagram D n,m 1. Hence, D n,m reduces to D n,m which consists of D n,m 1 followed by. It remains to reduce D n,m. There are several configurations, depending on the type and the position of : if is an opposite gate, there are three cases: see figure 3; if is a rotation, there are four cases: see figure 4. fter reduction, we obtain a new diagram, where some unary gate may appear just below and some (unary or binary) gate may appear just below. The first one can always be eliminated using the first rule, and the second one can be eliminated by applying the induction hypothesis for n 1 wires. Uniqueness follows from theorem 2 and the remark. To sum up, we get the following result: Theorem 3 The system is convergent. In other words, it is noetherian and confluent. 4 Critical peaks Let P be a set. ssume we have a partition P 2 0 + and the following maps: f : PP such that f () if and only if (,) 0 ; g : P and g + : + P; h : P 3 P 3 given by h(,,)(h 1 (,,), h 2 (,,), h 3 (,,)). We write if (,) 0, if (,), and if (,) +. We are mainly interested in the case where P]0,π[ and: if+π, if+<π, and if+>π; f ()π, g (,)+, and g + (,)+ π; h corresponds to the last rule of figure 2. We consider generalized orthogonal diagrams with parameters P, and the rewrite systemh of figure 5. In order to represent calculations on parameters, we also need the following gates for parametric diagrams: f f g g + h Each gate is interpreted by the corresponding map, which may be partial: In particular, the second one is interpreted by the predicate. Since each one has a distinct shape, we shall omit labels in parametric diagrams. 6

Figure 3: Configurations for a unary gate case one case two 1 2 1 2 i 1 i k k case three 1 2 k 7

Figure 4: Configurations for a rotation case one case two 1 2 1 2 i 1 i k k case three case four 1 2 1 2 k k 8

Lemma 4 The systemh is noetherian. Proof: By the same argument as for lemma 2. Theorem 4 The following statements are equivalent: 1. H is confluent; 2. the critical peaks of figure 6 are confluent; 3. the four maps satisfy the identities of figure 7. Proof: Obviously, we have 1 2. Conversely, assume D reduces in one step to D and to D. If the rules apply to disjoint subdiagrams of D, then D and D reduce to a common diagram in one step and we are done. Otherwise, we have a conflict and there are two cases: if one of the rules of the conflict is not ternary, the conflict appears in figure 6; if both rules are ternary, we get a global conflict of the following form: C Here, C stands for an arbitrary diagram, but in fact, it suffices to consider the cases where C is a normal form: See appendix of [Laf03]. Therefore, we get four cases: The first two cases appear in figure 6, whereas the two other ones can be decomposed into simpler conflicts. Hence, we get 2 1. Now, assume that each critical peak of figure 6 is confluent. This means that we have two reductions leading to a common diagram. Each one yields a parametric diagram 9

Figure 5: Rules for generalized orthogonal diagrams f () f () g (,) g + (,) for for for h 1 (,,) h 2 (,,) h 3 (,,) Figure 6: Critical peaks ρ 10

Figure 7: Parametric identities 11

(which is empty in few cases) representing calculation on parameters, and both calculations must give the same result. Hence, we get an identity between two parametric diagrams. Three examples are given in figure 8: In each case, calculations have been drawn over reductions to show how the corresponding parametric diagrams are built. In fact, some critical peaks of figure 6 yield several identities because there are several cases to consider according to the conditions satisfied by the parameters. By a careful analysis, we obtain the list of identities of figure 7. So we get 2 3 and we are done. Note that half of the identities of figure 7 do not involve the ternary gate corresponding to the map h. ll those identities are trivially satisfied in the case of orthogonal diagrams: For instance, the first one corresponds to the associativity of+. We are mainly interested in the other identities, which express properties of our map h. The last one is known as the tetrahedron equation (or Zamolodchikov equation). 5 Conclusion We used critical peaks to study the properties of h, for which we obtained a list of 19 identities. However, there are many redundancies in this list. In a future work, we shall explain how this list can be reduced to a shorter one expressed in terms of undirected parametric diagrams. It is also important to notice that diagram rewriting is more complicated than word or term rewriting. See [Gui06] for a general theory of termination. general theory of confluence including the notion of global conflict should also be developed. References [Bur93] lbert Burroni. Higher-dimensional word problems with applications to equational logic. Theoretical Computer Science, 115:43 62, 1993. [Gui06] Yves Guiraud. Termination orders for 3-dimensional rewriting. Journal of Pure and pplied lgebra, 207(2):341 371, 2006. [Laf03] [Laf07] Yves Lafont. Towards an algebraic theory of boolean circuits. Journal of Pure and pplied lgebra, 184:257 310, 2003. Yves Lafont. lgebra and geometry of rewriting. pplied Categorical Structures, 15:415 437, 2007. [Pow91] John Power. n n-categorical pasting theorem. In Category Theory, Proc. Int. Conf., Como/Italy 1990, number 1488 in Lect. Notes Math., pages 326 358, 1991. [Ran07] Pierre Rannou. Théorie algébrique des circuits quantiques, circuits orthogonaux, et circuits paramétriques. Master thesis, 2007. 12

Figure 8: Confluence of 3 critical peaks 13