Line 637: |
Line 637: |
| | | |
| {| cellpadding=8 style="text-align:center" | | {| cellpadding=8 style="text-align:center" |
− | | || ''G'' || = || ∑<sub>''ij''</sub>''G''<sub>''ij''</sub>(''i'':''j'') | + | | || ''G'' || = || ∑<sub>''ij''</sub> ''G''<sub>''ij''</sub>(''i'':''j'') |
| |- | | |- |
− | | || ''H'' || = || ∑<sub>''ij''</sub>''H''<sub>''ij''</sub>(''i'':''j'') | + | | || ''H'' || = || ∑<sub>''ij''</sub> ''H''<sub>''ij''</sub>(''i'':''j'') |
| |} | | |} |
| | | |
Line 828: |
Line 828: |
| If the 2-adic relations ''G'' and ''H'' are viewed as logical sums, then their relational composition ''G'' ο ''H'' can be regarded as a product of sums, a fact that can be indicated as follows: | | If the 2-adic relations ''G'' and ''H'' are viewed as logical sums, then their relational composition ''G'' ο ''H'' can be regarded as a product of sums, a fact that can be indicated as follows: |
| | | |
− | : ''G'' ο ''H'' = (∑<sub>''ij''</sub>''G''<sub>''ij''</sub>(''i'':''j''))(∑<sub>''ij''</sub>''H''<sub>''ij''</sub>(''i'':''j'')). | + | : ''G'' ο ''H'' = (∑<sub>''ij''</sub> ''G''<sub>''ij''</sub>(''i'':''j''))(∑<sub>''ij''</sub> ''H''<sub>''ij''</sub>(''i'':''j'')). |
| | | |
| The composite relation ''G'' ο ''H'' is itself a 2-adic relation over the same space ''X'', in other words, ''G'' ο ''H'' ⊆ ''X'' × ''X'', and this means that ''G'' ο ''H'' must be amenable to being written as a logical sum of the following form: | | The composite relation ''G'' ο ''H'' is itself a 2-adic relation over the same space ''X'', in other words, ''G'' ο ''H'' ⊆ ''X'' × ''X'', and this means that ''G'' ο ''H'' must be amenable to being written as a logical sum of the following form: |
| | | |
− | : ''G'' ο ''H'' = ∑<sub>''ij''</sub>(''G'' ο ''H'')<sub>''ij''</sub>(''i'':''j''). | + | : ''G'' ο ''H'' = ∑<sub>''ij''</sub> (''G'' ο ''H'')<sub>''ij''</sub>(''i'':''j''). |
| | | |
| In this formula, (''G'' ο ''H'')<sub>''ij''</sub> is the coefficient of ''G'' ο ''H'' with respect to the elementary relation ''i'':''j''. | | In this formula, (''G'' ο ''H'')<sub>''ij''</sub> is the coefficient of ''G'' ο ''H'' with respect to the elementary relation ''i'':''j''. |
Line 844: |
Line 844: |
| In order to answer this question, it helps to realize that the indicated product given above can be written in the following equivalent form: | | In order to answer this question, it helps to realize that the indicated product given above can be written in the following equivalent form: |
| | | |
− | : ''G'' ο ''H'' = (∑<sub>''ik''</sub>''G''<sub>''ik''</sub>(''i'':''k''))(∑<sub>''kj''</sub>''H''<sub>''kj''</sub>(''k'':''j'')). | + | : ''G'' ο ''H'' = (∑<sub>''ik''</sub> ''G''<sub>''ik''</sub>(''i'':''k''))(∑<sub>''kj''</sub> ''H''<sub>''kj''</sub>(''k'':''j'')). |
| | | |
| A moment's thought will tell us that (''G'' ο ''H'')<sub>''ij''</sub> = 1 if and only if there is an element ''k'' in ''X'' such that ''G''<sub>''ik''</sub> = 1 and ''H''<sub>''kj''</sub> = 1. | | A moment's thought will tell us that (''G'' ο ''H'')<sub>''ij''</sub> = 1 if and only if there is an element ''k'' in ''X'' such that ''G''<sub>''ik''</sub> = 1 and ''H''<sub>''kj''</sub> = 1. |
Line 850: |
Line 850: |
| Consequently, we have the result: | | Consequently, we have the result: |
| | | |
− | : (''G'' ο ''H'')<sub>''ij''</sub> = ∑<sub>k</sub>''G''<sub>''ik''</sub>''H''<sub>''kj''</sub>. | + | : (''G'' ο ''H'')<sub>''ij''</sub> = ∑<sub>k</sub> ''G''<sub>''ik''</sub>''H''<sub>''kj''</sub>. |
| | | |
− | This follows from the properties of boolean arithmetic, specifically, from the fact that the product ''G''<sub>''ik''</sub>''H''<sub>''kj''</sub> is 1 if and only if both ''G''<sub>''ik''</sub> and ''H''<sub>''kj''</sub> are 1, and from the fact that ∑<sub>''k''</sub>''F''<sub>''k''</sub> is equal to 1 just in case some ''F''<sub>''k''</sub> is 1. | + | This follows from the properties of boolean arithmetic, specifically, from the fact that the product ''G''<sub>''ik''</sub>''H''<sub>''kj''</sub> is 1 if and only if both ''G''<sub>''ik''</sub> and ''H''<sub>''kj''</sub> are 1, and from the fact that ∑<sub>''k''</sub> ''F''<sub>''k''</sub> is equal to 1 just in case some ''F''<sub>''k''</sub> is 1. |
| | | |
| All that remains in order to obtain a computational formula for the relational composite ''G'' ο ''H'' of the 2-adic relations ''G'' and ''H'' is to collect the coefficients (''G'' ο ''H'')<sub>''ij''</sub> over the appropriate basis of elementary relations ''i'':''j'', as ''i'' and ''j'' range through ''X''. | | All that remains in order to obtain a computational formula for the relational composite ''G'' ο ''H'' of the 2-adic relations ''G'' and ''H'' is to collect the coefficients (''G'' ο ''H'')<sub>''ij''</sub> over the appropriate basis of elementary relations ''i'':''j'', as ''i'' and ''j'' range through ''X''. |
| | | |
− | : ''G'' ο ''H'' = ∑<sub>''ij''</sub>(''G'' ο ''H'')<sub>''ij''</sub>(''i'':''j'') = ∑<sub>''ij''</sub>(∑<sub>''k''</sub>''G''<sub>''ik''</sub>''H''<sub>''kj''</sub>)(''i'':''j''). | + | : ''G'' ο ''H'' = ∑<sub>''ij''</sub> (''G'' ο ''H'')<sub>''ij''</sub>(''i'':''j'') = ∑<sub>''ij''</sub>(∑<sub>''k''</sub> ''G''<sub>''ik''</sub>''H''<sub>''kj''</sub>)(''i'':''j''). |
| | | |
| This is the logical analogue of matrix multiplication in linear algebra, the difference in the logical setting being that all of the operations performed on coefficients take place in a system of boolean arithmetic where summation corresponds to logical disjunction and multiplication corresponds to logical conjunction. | | This is the logical analogue of matrix multiplication in linear algebra, the difference in the logical setting being that all of the operations performed on coefficients take place in a system of boolean arithmetic where summation corresponds to logical disjunction and multiplication corresponds to logical conjunction. |
| | | |
− | By way of disentangling this formula, one may notice that the form ∑<sub>''k''</sub>(''G''<sub>''ik''</sub>''H''<sub>''kj''</sub>) is what is usually called a "scalar product". In this case it is the scalar product of the ''i''<sup>th</sup> row of ''G'' with the ''j''<sup>th</sup> column of ''H''. | + | By way of disentangling this formula, one may notice that the form ∑<sub>''k''</sub> (''G''<sub>''ik''</sub>''H''<sub>''kj''</sub>) is what is usually called a "scalar product". In this case it is the scalar product of the ''i''<sup>th</sup> row of ''G'' with the ''j''<sup>th</sup> column of ''H''. |
| | | |
| To make this statement more concrete, let us go back to the particular examples of ''G'' and ''H'' that we came in with: | | To make this statement more concrete, let us go back to the particular examples of ''G'' and ''H'' that we came in with: |