Algebraic Models for Accounting Systems
1. Algebraic Models for Accounting Systems
Salvador Cruz Rambaud • José García Pérez
Robert A Nehmer • Derek J S Robinson
An abstract diagram featuring a large purple curved arrow at the top, a central orange circular arrow, and several pink straight arrows forming a triangular structure. The diagram is set against a background of faint, repeating numbers (e.g., 100, 200, 300, 400, 500, 600, 700) and a light blue curved line at the bottom.
2. Algebraic Models for Accounting Systems
This page intentionally left blank
3. Algebraic Models for Accounting Systems
Salvador Cruz Rambaud
José García Pérez
University of Almeria, Spain
Robert A Nehmer
Oakland University, USA
Derek J S Robinson
University of Illinois at Urbana-Champaign, USA
World Scientific
NEW JERSEY • LONDON • SINGAPORE • BEIJING • SHANGHAI • HONG KONG • TAIPEI • CHENNAI
Published by
World Scientific Publishing Co. Pte. Ltd.
5 Toh Tuck Link, Singapore 596224
USA office 27 Warren Street, Suite 401-402, Hackensack, NJ 07601
UK office 57 Shelton Street, Covent Garden, London WC2H 9HE
3.1. British Library Cataloguing-in-Publication Data
A catalogue record for this book is available from the British Library.
4. ALGEBRAIC MODELS FOR ACCOUNTING SYSTEMS
Copyright © 2010 by World Scientific Publishing Co. Pte. Ltd.
All rights reserved. This book, or parts thereof, may not be reproduced in any form or by any means, electronic or mechanical, including photocopying, recording or any information storage and retrieval system now known or to be invented, without written permission from the Publisher.
For photocopying of material in this volume, please pay a copying fee through the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, USA. In this case permission to photocopy is not required from the publisher.
ISBN-13 978-981-4287-11-1
ISBN-10 981-4287-11-3
Printed in Singapore.
“The imagination . . . gives birth to a system of symbols, harmonious in themselves, and consubstantial with the truths of which they are the conductors.”
Samuel Taylor Coleridge, “The Statesman’s Manual”, 1816.
This page intentionally left blank
5. Preface
In recent years there has been no shortage of applications of mathematics to economics, mainly through the use of methods from statistics, probability and risk analysis. It is much harder to find significant applications of abstract algebra to the area. However, the rise of the information sciences has clearly displayed the opportunities for applying what used to be considered the purest of pure mathematics. It is now commonplace for students of computer science to take the time to acquire a basic knowledge of algebra. It is not hard to see why algebra should be enjoying popularity: in the analysis of complex systems of all kinds the power and precision of algebraic concepts, and sometimes just algebraic notation, can be an enormous aid. On the other hand, one can search the literature in accounting theory and find few attempts to make use of algebra, and what there is tends to be at quite a modest level.
The object of the present work is to make the case for applying algebra to the study of accounting systems by finding algebraic concepts which are able to reflect accurately the workings of real life systems. The benefits of such a study are diverse: the demand of algebra for precision compels us to question and make exact everyday ideas and processes in order to express them in abstract form. It also serves to provide tools to analyze accounting systems.
The concepts which appear most frequently in the present study are: column vectors with zero sum, the so called balance vectors, which reflect the perfect balance of an accounting system; directed graphs to show the flow of value through the system; automata to model the computational aspects of accounting. These in turn lead to further algebraic concepts such as monoids, subaccounting systems and quotient systems. All of these notions provide valuable ways of looking at and understanding the operation of accounting systems.
In a further departure from previous attempts to inject algebraic ideas into accounting, we emphasize the role of rigorous proofs – this is, after all, the only way to achieve any kind of certainty. In addition, where it seems of mathematical interest, we have not hesitated to follow up on mathematical questions that are suggested by accounting concepts, sometimes in the form of combinatorial problems.
The current work had its origin in the Ph.D. dissertation of the third author at the University of Illinois at Urbana-Champaign in 1988 and in a subsequent article in collaboration with the fourth author. In addition, the introduction of automata into the study of accounting owes much to an article by the first two authors. This book is a greatly expanded version of these works. The first chapter contains an extended account of previous approaches to accounting theory by diverse authors, the object being to provide a setting and historical background for the current enterprise.
While every effort has been made to keep the book self contained, inevitably it is necessary to assume that the reader has a certain level of mathematical sophistication, roughly what one would expect of a student who has taken at least a first course on discrete mathematics. However, abstract structures such as monoid and automaton are fully explained: a reader who would like to have more background in abstract algebra should consult one of the innumerable texts on the subject, for example [7] or [8].
The authors are grateful to the Department of Mathematics at the University of Illinois, and Ms. Sara Nelson in particular, for assistance with the technical typing. The last author thanks the University of Almería, Spain for exceptionally warm hospitality during a visit there in June 2009. Finally, the authors thank Ms. Tan Rok Ting of World Scientific for her able assistance at all stages of this project.
6. Contents
| Preface | vii |
| Chapter One Approaches to Accounting Theory | 1 |
| 1.1. Historical perspectives | 1 |
| 1.2. Algebraic and proof-based approaches | 4 |
| 1.3. Natural language approaches | 8 |
| 1.4. A formal grammar approach | 10 |
| 1.5. Information systems in information economics | 13 |
| 1.6. Location of the research justified | 17 |
| 1.7. Accounting and formal languages | 18 |
| 1.8. Proof-based systems | 23 |
| 1.9. The scope of the present work | 25 |
| Chapter Two Balance Vectors | 30 |
| 2.1. The values of an account | 30 |
| 2.2. The state of an accounting system | 33 |
| 2.3. Properties of the balance module | 38 |
| Chapter Three Transactions | 50 |
| 3.1. Transaction vectors | 51 |
| 3.2. Transaction types | 57 |
| 3.3. Transactions, matrices and digraphs | 63 |
| Chapter Four Abstract Accounting Systems | 73 |
| 4.1. Allowable transactions and balances | 73 |
| 4.2. Defining an accounting system | 74 |
| 4.3. Subaccounting systems | 82 |
| Chapter Five Quotient Systems and Homomorphisms | 97 |
| 5.1. Introduction to the quotient concept | 97 |
| 5.2. Quotients of accounting systems | 98 |
| 5.3. Homomorphisms of accounting systems | 104 |
| 5.4. Isomorphism theorems | 111 |
| Chapter Six | Accounting Systems and Automata | 120 |
| 6.1. | Introduction to semiautomata and automata | 120 |
| 6.2. | Accounting systems as automata I | 126 |
| 6.3. | Accounting systems as automata II | 133 |
| Chapter Seven | Accounting Systems with Restricted Transactions | 141 |
| 7.1. | An overview of special systems | 141 |
| 7.2. | Finitely specifiable accounting systems | 142 |
| 7.3. | The digraph of a simple system | 154 |
| Chapter Eight | Algorithms | 170 |
| 8.1. | Decision problems for accounting systems | 170 |
| 8.2. | Recursive accounting systems | 172 |
| 8.3. | The balance verification problem | 176 |
| 8.4. | More algorithms | 183 |
| Chapter Nine | The Extended Model | 190 |
| 9.1. | Introduction to the 10-tuple model | 190 |
| 9.2. | Authorization and control matrices | 191 |
| 9.3. | Frequency control | 197 |
| 9.4. | The 10-tuple model and automata | 198 |
| 9.5. | The audit as an automaton | 205 |
| Chapter Ten | The Model Illustrated | 210 |
| 10.1. | A real life example | 210 |
| 10.2. | The operation of the model | 219 |
| 10.3. | Concluding remarks | 230 |
| List of Mathematical Symbols | 232 | |
| Bibliography | 234 | |
| Index | 241 |
7. Chapter OneApproaches to Accounting Theory
“Perhaps I am busied with pure numbers and the laws they symbolize: nothing of this sort is present in the world about me, this world of ‘real fact.’ And yet the world of numbers is also there for me, as the field of objects with which I am arithmetically busied; while I am thus occupied some numbers or constructions of a numerical kind will be at the focus of vision, girt by an arithmetical horizon partly defined, partly not; but obviously this being-there-for-me, like the being there at all, is something very different from this. The arithmetical world is there for me only when and for so long as I occupy the arithmetical standpoint.”
Edmund Husserl, Ideas p. 94 (italics original)
7.1. 1.1. Historical Perspectives
Accounting is an ancient human activity. From the time when men and women first engaged in trade, whether for barter or money, it must have been necessary to keep some kind of record of incomings and out-goings, to which the origins of the double entry bookkeeping system can be traced. Already in the twelfth century of the Christian Era the Arabic writer Ibn Taymiyyah mentioned in his book Hisba (literally, “verification” or “calculation”) accounting systems used by Muslims as early as the seventh century. A critical development in the history of accounting was the publication in Venice in 1494 of the book “Summa de Arithmetica, Geometria,
Proportioni et Proportionalita” by the Franciscan monk and mathematician Luca Pacioli (1445-1517) – see Pacioli [1963]. This is the first known work to contain a detailed description of the practice of bookkeeping and the double entry system, “Particularis de Computis et Scripturis”. Today it is widely regarded as the forerunner of modern bookkeeping practice. It was also Pacioli who introduced the symbols for plus and minus, which became standard notation in mathematics during the Renaissance. The first book on accounting in the English language appeared in London in 1543, authored by John Gouge. An important source for the early history of accounting is the writings of R. Mattessich ([1998], [2000], [2003], [2005b]).
While it seems clear that accounting was considered by Pacioli and his contemporaries to be part of arithmetic, its relationship with other parts of mathematics has had to wait much longer for recognition. The methods of statistics have long been used, almost since the importance of that branch of applied mathematics was first recognized in the seventeenth century. More recently probability theory and risk analysis have featured in economics. However, algebra has played little or no role, despite the precision of its language and its ability to describe complex situations concisely. The purpose of this monograph is to draw attention to the contribution that abstract algebra can make to accounting theory. Indeed it is the authors’ contention that, at least in its deterministic form, accounting theory should be considered as a branch of applied algebra.
The book presents and develops a proof-based, algebraic approach to the study of accounting systems. The analysis provides a description of single firms in terms of abstract algebraic objects such as automata. It concentrates on the process of producing information from data provided by the environment through the double-entry system. This process, although considered by many to be the core of accounting, has often been ignored in accounting research. In attempting to address this issue, the book adds a level to the analysis of the information economists through the very act of exploring the production aspect of accounting information systems. The motivation is to expose the complexities and subtleties of information production in this field of research. The literature review which follows reflects the rather fragmented nature of the work which has been done up to this time in axiomatics, natural languages, formal grammars and information economics. The book shows how a basic accounting system can be represented as a formal algebraic language. The reduction of accounting systems to these types of languages will lead to a much stronger method of modeling information systems.
Although much discussion has occurred in the last fifty years concerning the treatment of accounting as a language and its justification as the language of business, surprisingly little progress has been made. This is perhaps due to the remarkable diversity of methods in linguistic research. In pure linguistic research, the various methods are divided into the natural language and formal language schools. The natural language schools study naturally occurring human languages as they have arisen from the historic acts of increasingly complex human communication. The formal language school arose from this tradition as methodologies were devised to study natural languages. These methodologies generally tried to reduce the complexity of natural language constructs to a finite system of grammatical rules. The formal language school became distinct from the natural language school when it was determined that certain domains of language, such as parts of mathematics and later computer science, could be completely specified by these finite systems.
Outside the area of pure linguistics, some applied fields such as speech communication and organizational behavior have adopted certain linguistic approaches and have developed other approaches independently. Semiotics has been used to determine what signs employees attend to in their everyday work relationships (Barley [1983]). Semiotics studies the meanings that people assign to language constructs in their search for understanding in their worlds. Recently, hermeneutics has been used to develop a criticism of the economics literature (McCloskey [1983]). This method employs the analysis of texts to identify repetition of linguistic constructs or changes in constructs over time and to study how the authors of the texts view their social realities.
With such a diversity of methods available, it is hardly surprising that the accounting profession has found little success in its search for a formalization behind the intrinsic meaning of the metaphor "accounting as the language of business". It is the contention of the present writers that the best way to proceed in the issue is to choose a potential methodological candidate, develop it and make a judgement based on its contribution to accounting research. The method chosen here is a formal, algebraic approach. In order to present this new approach to accounting in its contemporary setting, a detailed review of the language studies, both formal and natural, which have appeared in the accounting literature up to this point, is given in the sections which follow.
7.2. 1.2. Algebraic and Proof-Based Approaches
As has been pointed out, the application of abstract algebra to accounting is something of a novelty. However, it would be wrong to suggest that nothing has been attempted in this direction. Already in 1894 the English algebraist Arthur Cayley wrote that “The principles of book-keeping by double entry constitute a theory which is mathematically by no means uninteresting; it is in fact, like Euclid’s theory of ratios, an absolutely perfect one, and it is only its extreme simplicity which prevents it from being as interesting as it would otherwise be” (Cayley [1894]). Even before this time matrices had been introduced in the framework of accounting theory by Augustus De Morgan [1846], a route that was not followed by other writers until 100 years later. Indeed matrices reappeared as a topic of research interest in accounting only in the 1960s and 1970s, when a number of classic works in accounting theory were published, such as Edwards and Bell [1961], Chambers [1966], Ijiri [1967] and Mattessich [1964]. Here it should be understood that matrices were considered only as a tool to describe in a mathematical way the activity of accounting, and not as an attempt to formalize the concept of an accounting system. Paton [1922], one of the major personalities in accounting research in the United States in the 1920’s, seems to have been the first author to formulate some accounting postulates. Nevertheless at that time fundamental research was not common in this area and the postulates never became part of a formal system.
Perhaps the most famous axiomatization of accounting was given by Mattessich [1957, 1964]. The first of these publications relies on a matrix formulation of accounting to provide structure to the axiomatic system. Three axioms are included in this schema: a plurality axiom, a double effect axiom and a period axiom. The first asserts that there exist at least two objects with a common measurable property. This provides a basis for the recording of transactions. The second axiom states the existence of an event which causes an increase of a property of one object and the corresponding decrease of the property of another. In effect this is an axiom of double entry. The last axiom requires that accounting systems are capable of being divided into time periods, thus providing a basis for the construction of financial statements. In addition to these axioms, the paper provides numerous definitions and “requirements”, as well as several theorems.
The proofs of the theorems in Mattessich’s first paper give insight into the formal relationship between the axioms and the theorems. The proofs consist of algebraic manipulations of matrices using the sigma, i.e., summation, notation. While in a sense this does serve to “demonstrate” the theorems from the definitions, the proofs do not consist of formal deductions from the axioms, as would be the case in a strict deductive system. Thus the axioms do not serve as a complete basis for the proofs of the theorems. In his second publication Mattessich shifts from a matrix to a set theoretical approach. In this work he relies on primitive terms, definitions stated using the set notation, and propositions. The theorems which are proved appeal to the definitions and propositions and are basically algebraic in nature. Perhaps the absence of axioms in this second work was due in part to the difficulty noted above, i.e., axioms which are not used in the proofs of the theorems. Some might argue that the propositions substitute for axioms in this formulation, but the propositions here are generally set theoretic definitions of such concepts as an accounting period or the chart of accounts. Although they may be invoked as a proof proceeds, the proofs do not begin with the propositions, nor are the theorems deduced from them. Again the beginnings of a formal proof-based system can be discerned here, but it is not coupled with a formal deductive scheme. This type of scheme may be provided by including the axioms of the mathematical system – in Mattessich’s case an algebra – as part of the axiom scheme, thereby specifically allowing for mathematical inference within the axiomatized system, as will be seen below.
Ijiri’s [1975] book on accounting measurement also includes three axioms, but again it lacks any derivation of theorems from the framework of these axioms. He does, however, derive his axioms from the theoretical structure of the accounting system which he provides in the book. Therefore it is likely that he sees these axioms more as general statements about accounting, rather than as a basis for any formal deductive system. Indeed he makes no attempt at all at proving the theorems. One of the contributions of the current book is that it provides not only an axiomatization of accounting systems, but also a deductive inference scheme which can operate on the axioms in a formal way to derive the theorems as consequences.
Tippett [1978] derived axioms of accounting measurement, and more recently Cooke and Tippett [2000] used a structural matrix to represent the restrictions imposed in a double-entry bookkeeping system, employing the information in the matrix to predict financial ratios. Willett [1987, 1988] demonstrated in two papers the derivation of axioms of accounting measurement, following Tippett's methods. His analysis extended to the stochastic space of accounting variables. Gibbons and Willett [1997], building on Willett's earlier work, demonstrated that accounting data produced from implemented information systems have a statistical nature due to the error generated by processing: that statistical nature is shown to be of value to decision makers under certain conditions. Nehmer and Robinson [1997] provided an initial description of the algebraic structure of accounting which is greatly expanded upon in this book. Nehmer [2010] encodes the algebraic structure in first order logic and derives consequences for the resulting structures.
Aukrust [1955, 1966] made an important contribution to the standard methodology for national and international accounts, completing a theoretical discussion of the underlying principles in accounting at the national level. He presented some problems of definition, classification and measurement of national accounts in an axiomatic way. After stating a set of twenty postulates, he showed that the structure of a simple system of national accounting can be derived from them. In this way it is possible to establish algebraic relations among national accounting concepts. Aukrust concludes: "The set of twenty postulates used above to derive a national accounting system is, of course, not the only one which could be conceived of. Others are equally feasible. Some would lead to national accounting systems different from the one described here, in much the same sense as non-Euclidean geometries are different from Euclidean geometry".
The problem of financial statements was dealt with by Arya et al. [2000], emphasizing the power of the double entry system to determine all consistent transaction vectors. They showed how a graphical representation of the accounting system can be used to obtain the characteristics of the vectors, solving in a simple way the problems of inverting and selecting the most likely transaction vector from the set of consistent transaction vectors. Arya et al. [2004] provided a systematic approach to reconciling diverse financial data. Again the key is the ability to represent the double entry system by a network of flows. Two specific uses are investigated: the reconciliation of audit evidence with management by means of prepared financial statements and the creation of transaction level financial ratios.
The first collaboration in the area between a philosopher of science and a theoretical accountant materialized in Balzer and Mat tessich [1991, 2000]. They considered the reconstruction of yield to be a viable way of capturing the essence and basic structure of accounting as rigorously as possible. The proposed reconstruction showed that accounting has the same overall structure as other empirical theories by presenting nine axiomatic principles to establish the following concepts: economic objects, economic transactions, state-space for accounting, accounting data systems, accounts, double entry accounting systems, accounting morphisms and accounting systems (in general). By combining these definitions, they obtain the kernel of a model for accounting and they claim that all special methods and procedures used by accountants can be obtained from this core model with some appropriate specifications. All theorems are proved, but the authors indicate the need for further development of the axiomatic system presented in the paper and they present details of certain specifications to appear in future work.
According to Ellerman [1982, 1985, 1986], “Double-entry bookkeeping illustrates one of the most astonishing examples of intellectual insulation between disciplines, in this case, between accounting and mathematics”. He described a mathematical basis for a treatment of double-entry bookkeeping in terms of the so-called “group of differences”, sometimes called the Pacioli group: for details of this connection see 3.1 below. The possible use of the algebraic concept of a group in accounting theory is also considered in Brewer [1987] and Botafoogo [2009], but with little progress beyond the formulation of some definitions.
There have been many other attempts to formalize accounting in a scientific way. Since the present work does not pretend to give an exhaustive history of accounting, only some of them have been mentioned. Details of other attempts can be found in Mattessich [1995, 1998, 2000, 2003, 2005a, 2005b].
On a final note, recently Demski [2007] has tried to answer to the question “Is accounting an academic discipline?” After analyzing the meaning of “discipline” and “academic”, his immediate conclusion was negative. However, Demski was not pleased with this answer and therefore he preferred to analyze the ten indicators of the accounting as an academic discipline, ending with “... accounting is not today an academic discipline; it is an ever-narrowing insular vocational enterprise. But it could and should, in my opinion, be an academic discipline. Even if you disagree with my assessment, you should consider whether the state of academic accounting is, in your view, what it could and should be. The stakes in this game are enormous and serious”.
7.3. 1.3. Natural Language Approaches
Research in accounting as a natural language, as opposed to an proof-based system, has fallen into three broad categories: connotative and denotative meanings, readability of reports and linguistic relativity (McClure [1983]). The connotative and denotative meanings of language refer to its subjective and objective meanings respectively. The research in this category has emphasized the interpretation of accounting concepts by different groups including certified public accountants (CPA's), users, students and academics. The results have generally indicated agreement on the connotative meaning between groups, but there is some evidence of disagreement over denotative meanings (Belkaoui [1980b]). Research into the readability of financial reports has stressed the ability of the reports to communicate information on several levels. Levels of reading ability needed to comprehend the reports have been tested, but the tests were found to be inappropriate for the analysis of materials in a report format. Lebar [1982] tested several different types of financial report along an extentional - intentional axis. Extentional language is more descriptive and objective, whereas intentional language is more general and unqualified. She found that 10-K reports (a specific type of filing that a company makes to the Security and Exchange Commission) scored well on the extentional components as compared to the annual reports.
The third category of linguistic research in accounting is based on linguistic relativity (the Sapir-Whorf hypothesis). The two basic concepts of the hypothesis are that language determines thought and that consequently individuals with different linguistic backgrounds have different world views. Belkaoui [1978, 1980a] used this hypothesis to study disclosure issues in the area of pollution control costs, with results generally supporting the hypothesis. All three categories of research in accounting as a language have viewed it as a natural language and applied natural language techniques to its study.
Some more recent studies of business communication include Tyrvaainen et al. [2005], who examine the internal and external communication of three business units, looking at digital, paper-based and oral communication. In a series of articles in the accounting area, Fisher [2004], Fisher and Garnsey [2006] and Garnsey and Fisher [2008] codify the professional accounting literature. This codification is then used to critique the adequacy of the literature (Fisher [2004]) and to examine amendments to the literature (Fisher and Garnsey [2006]). Garnsey and Fisher [2008] implement a software retrieval solution to the professional accounting literature.
An alternative approach is to view accounting as a formal language built up from a detailed specification of its grammar by exact rules of composition known as production rules. Formal grammars and languages were originally developed for natural language research and are still used there, especially in computational linguistics research. They have been largely absorbed into computer science because they are an alternative representation of finite state automata. Such automata are used in computer science for the general representation of computer languages. The concept is easy to relate to for anyone who have ever tried to learn a computer language with its peculiar sentence structure and rules. A good example of research using the automata approach is Cruz Rambaud and García Pérez [2005].
Demski et al. [2006], looking for a new language for the treatment of accounting information, examined the nature of quantum information in order to search for promising conceptual applications to accounting. They present some important features of quantum information such as quantum superposition, randomness, entanglement and unbreakable cryptography, and they begin to explore the possible link between quantum information and double-entry information which lies in the core of accounting information. The starting point is the work of Cayley [1894] on the parallel between the Euclid's theory of ratio and the double entry theory. As a consequence, it is intended to explore the possibility of a hybrid between accounting information and quantum information, "quantum double-entry information". In a second article, Demske et al. [2009] studied the applications of conceptual topology to quantum information and accounting information. The use of topology allows one to emphasize the qualitative characteristics of accounting information and to maintain the quantitative ones.
A reasonable and effective mathematization and axiomatization of the economy, and in particular of accounting, necessarily implies Diophantine formalisms (Velupillai [2005]), which raises issues of undecidability and non-computability. In the future there should be greater freedom for experimental research supported by alternative mathematical structures. In conclusion Velupillai speaks of "the notion of a Universal Accounting System, implied by and implying Universal Turing Machines and universality in cellular automata".
7.4. 1.4. A Formal Grammar Approach
One exception to the exclusive use of natural language research methods in accounting is Stephens, Dillard, and Dennis [1985], hereafter Stephens et al. The article is entitled "Implications of Formal Grammars for Accounting Policy Development" and it presents a classification scheme for proposed and existing Financial Accounting Standards Board (FASB) statements. The examples provided in the article are partial formal grammars, reflecting the accounting rules promulgated by a specific standard. The level of analysis is macro in the sense that it considers the standard for all firms to which they apply. As such the analysis focuses on establishing criteria with which to evaluate standards through formal grammars. The three criteria used are possibility, consistency and resolution.
Possibility refers to the ability to reduce the statement to a formal grammar. One potential problem here, albeit one which is discussed in a different section of the article, is the difficulty in determining the primitives of the grammar. In the article the example of leases is cited. The determination of whether a certain economic event should be classified as a rental arrangement or a purchase has become increasingly problematic in accounting. Unless a clear demarcation is allowed or imposed on the "correct" interpretation of such an event under every circumstance, the formal grammar will not be capable of operating in these types of situation.
The second criterion, consistency, refers to the cross-statement compatibility of the grammars. This compatibility can perhaps best be addressed in terms of first order logic, rather than the formal grammar approach used in the article. The two systems are equivalent, so the change in approach is warranted. In first order logic consistency is defined in terms of the sentences which can be proved from the axioms. If both a sentence and its negation are provable from the axioms, then the system is inconsistent and in fact any sentence is then provable from the axiom system. In terms of the article, in order for a formal grammatical analysis to succeed, a single formal grammar containing all accounting standards must be demonstrated. Then any proposed new standards could be appraised in terms of their consistency with the current formal grammar.
The third criterion, resolution, is an attempt to deal with problems of inconsistency arising from the different rules specified in the single formal grammar mentioned above. The article proposes that uniform ranking rules be included in the grammar in order to remove such inconsistencies. It points out that the FASB does provide such rules in certain situations, but that the rankings so provided have not been uniform in the past. Stephens et al. classified the resulting inconsistencies as being due to one of three situations: arbitrary selection among possible standards, stipulation of standards without theory and the inability to write a definitive grammar.
In the first situation a choice is made and a particular standard must be selected, when alternative standards have possible correct economic interpretations and their own supporters. Stephens et al. contend that this and the next situation result primarily from lobbying by factions of the accounting community. The next situation occurs when a standard is stipulated which is lacking in theoretical support; this seems to mean lacking in terms of a justifiable economic interpretation. The interpretation is usually only provided a posteriori and may be thought of as imposing a new economic reality based on the standard. The last situation is the problem of specifying the primitives of the grammar, which was discussed under “possibility” above.
Stephens et al. divide the economic realm into three parts, the environment, accounting and decision. The effects of economic events in the environment are actions which play the role of primitives subject to the grammatical rules of accounting. The rules produce accounting results which are used by decision makers to produce decisions. Stephens et al. restrict their analysis to the accounting component only, so that the evidence of a transaction occurring is taken as a given and the use of the output is not analyzed. The same position is adopted throughout this book.
However, there are several differences between the article by Stephens et al. and this book, perhaps the most important being the level of analysis. The analysis presented here is at a micro level, as opposed to the macro level of the article. Specifically the analysis here pertains to the accounting system of a single firm. Secondly, a complete axiom system is developed for the firm, based on the double-entry components of the system only. The necessity of developing such a restricted system is based on the requirement of demonstrating the existence of such representations of accounting systems before proceeding with higher level analysis, as is recognized by the authors of the article.
A contribution of this research is to provide a basic method for constructing formal proofs in accounting. It interfaces with the axiomatization and formal inference scheme to yield a formal abstract specification; this leads directly to axioms for an accounting system, as well as to a system of inference which can be used to derive consequences of those axioms. In fact, the analysis of the paper includes the consideration of information systems as finite state grammars (FSG's) and automata. This representation is the basis of the computer languages which form the structure of any computerized system. Therefore finite state grammars can be used as a general representation of the process involved in converting states into signals. Such FSG's include relation as well as function operators, thereby providing a more powerful means of analysis in exploring the possibilities and limitations of the signal/output generation process of information systems.
The representation of information systems as FSG's serves two purposes in this analysis. First it addresses some problems noted below with information economics methodology, i.e., it provides a specific formulation of the internal production of information and assigns a specific interpretation to the states recognized by the system as well as its outputs. Furthermore, it allows for the production of multiple derivations from the capture of an additional piece of data. The second use of FSG's is to provide a convenient bridge between the representation of accounting systems as FSG's and their representation as proof-based systems. This is accomplished through the conversion of the production rules of the FSG into axioms of a first order logical system.
7.5. 1.5. Information Systems in Information Economics
This book addresses some of the issues in the comparison of information systems which occur in the information economics literature, this being the current standard of comparison of systems in accountancy. A large body of work has been done in the area using utility analysis and relying on the results of Blackwell's "Comparison of Experiments" (Blackwell [1951]). As the title indicates, Blackwell's procedure shows that if an experiment A is a sufficient procedure for a different experiment B, then A is more informative than B, i.e., it provides at least as many statistical measures. Authors such as Gjesdal [1981] have used the matrix form of Blackwell's results to analyze different information systems. Demski [1980] and Demski, Patell and Wolfson [1984] have used the basic matrix framework of states crossed with signals and in the latter paper relied on Gjesdal's information systems comparison result. All of these comparisons of information systems are founded on the partitioning of the states of nature, the idea being that different information systems will be able to "recognize" different states at various levels of fineness. That is, a certain information system may produce signal when it recognizes and signal when it recognizes , whereas another information system may not be able to distinguish from , and produce the same signal for either realization.
The implication of the states to signals model of information systems is that there is a set of functions corresponding to the set of information systems under comparison. Mathematically the conversion of the states to signals is a mapping from the set of possible states to the set of possible signals. Over the entire state and signal spaces the function family is neither injective nor surjective. In the first place a particular information system function may map two or more states to the same signal, so the function is not injective. Secondly, an information system function may not be able to generate certain signals in the codomain at all, so it is not surjective. Indeed in Demski's 1980 examples, it is only in the perfect information case that the mapping can be bijective, i.e., both injective and surjective. It is this lack of uniformity in the construction of the state to signal functions (or information systems) regarding their relevant domains and codomains which partially explains the failure of Blackwell's comparison technique in proof-based systems.
Several topics are important to the present analysis. Firstly, Blackwell's result lies in the domain of experimental procedures, whereas an information system is, in a practical sense, an extant structure generating outputs from inputs by a formalized system of rules. As such there are several differences in the level of analysis which are apparent. Most importantly the information economics analysis considers the external or environmental states of nature only, without considering the internal states of the information system itself. It therefore ignores the interaction of the internal components of the system in the production of its outputs.
The unspecified nature of the internal components prevents the methodology from addressing questions relating to how changes in the configuration of the system will alter the signal set generated. Of course, information economists use the term "information system" in a different sense than is used here. But it is the difference in representation of the system which allows this additional analysis to occur. These are important questions for the accounting profession since they involve the production of information for decision makers in an organization from the design of the accounting system.
This lack of concern for the internal state of the system also forces the information economics methodology to ignore explicitly the problem of data capture versus information production. That is, a state may occur in the external environment which is captured or recognized by the system but is not processed in a timely manner. While the techniques of information economics do implicitly take this into consideration by collecting states into sets based on the concept of fineness, this does not help in determining why a particular output is not being generated, i.e., whether the data are being processed too slowly or are not available at all.
A second deficiency in the statistical analysis of information systems is its inability to recognize that a particular state may generate more than one signal. The information economics approach provides, at best under perfect information, a single state or a single signal mapping for output production from information systems. Under imperfect information several different states may produce the same signal, but the reverse situation, of a single state being mapped onto multiple signals, is not considered. For instance, a decline in interest rates may cause changes in pension funding requirements, a decline in the mortgage interest rates being paid by an organization and declines in the dividend rate expected from an investment in mutual funds. Further, it is possible within an information systems methodology to develop single states to multiple signals if a recognition of the interrelationships between states and signals is provided.
A final problem with the current method of analysis is that it does not provide a convenient way to interpret the states and signals. As an example consider Gjesdal's [1981] description of an information system. Here he reduces the system to merely the specification of the signal's functional form and proceeds to assert that "the nature of the signals is of no concern" (p. 212). One can only assume that the nature of the information system is of no concern as well, yet it is difficult to comprehend the purpose of comparing objects whose nature is not the object of comparison.
Generally the matrix representation of information systems and especially the concept of state (and hence signal) partitioning does not address the problem of how the signals are generated. This leaves open the question as to whether and to what extent in the context of axiomatic information systems, such a partitioning is possible. This problem is addressed in Chapters 2 and 3 where the algebraic core of the model is constructed.
Demski's ([1980]) analysis of information systems differs from an axiomatic approach in that his complete model consists of a set of acts, states, state probability functions and utility functions, with states and acts as parameters. This model is conditioned on the decision makers' experience and assumes that the four factors mentioned above are correctly specified. He presents two cases, the perfect and the imperfect information situations. Under perfect information, the decision maker can directly observe the realization of the states of nature. Therefore there is no need for the information system to produce signals relating to the acts of an agent. Since the state is known with certainty before an act is chosen, this situation will match well the derivations of an axiomatized information system. If the state is known for certain prior to the act, there must be some decision procedure which would indicate which state will occur and such a procedure is axiomatizable. This is the case because under state certainty the state must already be a fact, in which case its truth value is known or must be determinable under some formulation which perfectly correlates its own predictions with the actualization of those predictions. In the latter case, the decision procedure will be reducible to a first order formula, barring the serious consideration of some form of crystal gazing as providing perfect information. Of course Demski would agree that this is an unlikely situation in any complex decision making problem. In fact, testing which state will occur is likely to involve a great deal of computational complexity in a complex, decision making environment: the results, if they can be determined with certainty, may not be produced in a timely manner.
In the imperfect information situation the information system cannot necessarily distinguish each state uniquely, so the same signal or output from the system may occur after the realization of different states of nature. When the state is not known with certainty prior to the act, Demski posits the information system as producing a set of signals which may, but usually do not, indicate the state which was achieved or which has transpired. The signal is a function of the information system with the states as the input and the signals as the output.
One and only one signal is associated with each state occurrence, although the same signal may be produced by different states. The state space is partitioned into different subsets of the power set of the set of states, with the information system as the partitioning agent, i.e., different information systems produce different partitions. Of course Demski's book has a wealth of ideas and constructs which cannot be explored here, but with this basic framework in mind, we note that results for algebraic systems are obtainable which differ from Demski's conclusions.
In effect the analysis presented here adds a level to the work of the information economists, exploring the possible derivations of, and treating the information systems used in, their formulations as information systems: these are representable as systems of first order formulas and consequently are amenable to analysis as structures in model theory. Whereas the information economics approach formalizes information systems as collections of functions from the states to the signals, our approach imposes additional constraints on the production of the signals themselves by explicitly considering the language used to express the functional formulation of the information systems. These additional constraints will be of consequence when the information system is represented as a proof-based system.
7.6. 1.6. Location of the Research Justified
Returning to the article of Stephens et al. [1985] which was discussed in 1.4, we note their description of accounting interfaces. If this description is reduced to an individual firm, then the accounting system of the firm can be seen as a filter which captures certain data from the environment, to be processed and presented to decision makers. It is this filter, the specification of which data are captured, how they are processed and in what general form they are presented, which locate this book within the accounting process. In this location an accounting system is constructed as a machine which follows strict rules, namely the axioms, in converting inputs to outputs. This procedure is also strictly defined as an inference scheme, determining how occurrences of inputs combine within the rules to produce outputs and other secondary rules. These outputs are the derivatives of the accounting system and may also arise from combining rules only from within the inference scheme. Thus we are dealing with the construction of a deterministic system.
In addition the book considers how to control accounting systems which operate under different rules. This requires building on the derivations of rule-based accounting systems. The control is achieved as follows. The derivations of an axiom system can be thought of as formal deductions from given premises. In this case, the formal deductions arise from the inference scheme and the premises are the axioms and derivations already deduced. The control of accounting systems under this methodology would then look at the differences in the sets of consequence of the separate proof-based accounting systems.
As mentioned previously, the Stephens et al. article describes accounting as an environment to accommodate accounting information systems (AIS) and decision maker flow. The link between the environment and the AIS and between the AIS and the decision maker are both areas of considerable research in accounting. The first link contains problem areas involving the recognition of economic events as transactions. Research has been concerned with when and whether an economic event such as a contingency should be captured by the system and thereafter reported to the decision maker. The crux of this problem is when an economic event should be interpreted as being probable. On the other hand, the link between the AIS and the decision maker involves the interpretation of whether and under what circumstances data presented by the AIS change decisions and thereby become information of some value to decision makers. Thus there are two general types of interpretation which occur between the AIS and its environment and the AIS and the decision makers. However, in the context developed in this book a third and more formal approach to interpretation is employed. This third type occurs entirely within the AIS and is specifically related to the axiomatization of the system. Within axiomatized systems there is a formal logical interpretation, indeed an interpretation function, between the syntactic components of the system and their semantic interpretations.
7.7. 1.7. Accounting and Formal Languages
The axioms and derivations of a formal system are strings of symbols called sentences or formulas. At the syntactic level these strings are manipulated by the inference scheme in a purely formal way, without regard to the meanings which may be attached to the original or deduced sentences. The syntactic level therefore is merely concerned with which sentences can be produced by following the inference scheme. So the only way that a sentence is in essence “meaningless” in syntax is if it is not derivable from the axioms via a sequence of inferences. A logical interpretation is a formal map from the syntactic level to the semantic level which provides meaning or a translation of the combination of symbols in the sentences.
As an example, consider the standard rule of inference modus ponens. According to this rule, if there are two sentences and , then is derivable. Notice that no meaning is attached to the symbols , or , so that modus ponens is a strictly syntactic construction. Now suppose the interpretation function maps to “cash”, to “implies” and to “ is a current asset”. Then at the semantic level the interpretation of this instance of modus ponens is that “cash implies cash is a current asset”, so that “cash is a current asset” is derivable.
The syntactic rules are akin to the grammatical rules of a natural language. In natural languages the meaning of a sentence is based on an interpretation of its form. This form is regulated by distinguishing which sentences are grammatical. However, the distinction between syntax and semantics in natural language is often a hazy one because the grammatical rules are not specified in advance, but have been deduced from the structure of the language by linguists. Therefore it may be impossible to describe accurately the syntax of a language by a finite number of rules. For example, a basic sentence form in English is subject-verb-object. This rule works well for “sensible” sentences such as “The computer ran the program.” Unfortunately, without further rules of grammatical construction, a naive foreign speaker might deduce the following sentence from the rule: “The computer walked the program.” The purpose of indicating this type of problem in a natural language is to point out the close relationship of both syntax and semantics to the interpretation of meaning in these languages. It appears as if the human mind attends to both syntax and semantics simultaneously through learned patterns when constructing the meaning of natural language sentences.
Another type of interpretation known as hermeneutics has been developed in the naturalistic research methodology. By using this methodology the researcher attempts to interpret the world as a text in order to understand the meanings which the actors in the study attach to objects, to themselves and others, and to actions. Here the objective is similar to reducing the semantic context of the world to a somewhat less complex and perhaps hidden syntactic component. The syntactic component in hermeneutics is seen to be dynamic, with the actors and their environment constantly interacting to reconstitute meaning and form. This technique is essentially a meta-analysis of sentences which not only looks at sentences in their own contexts, but also across the contexts of different actors and environments.
In order to relate accounting to the concepts of syntax and semantics, it should be remembered that these concepts are used in different ways in various types of analysis. In the case of natural language, the syntactic component of accounting is the systems of rules, such as the mechanics of double entry bookkeeping, statements of auditing standards, Financial Accounting Standards Board (FASB) and International Accounting Standards Board publications, and Security and Exchange Commission rulings which affect transactions and manipulations of transactions, including disclosure. As with all natural languages, the syntactic and semantic components lie very close to one another when accounting is viewed as a natural language. For example, take a common occurrence when beginning students are introduced to accounting for merchandizing firms. A typical error is for the student to debit inventory and credit accounts payable when merchandize is purchased on account, instead of debiting purchases. This may happen because the student is confused about the semantic meaning of the problem of costs of goods sold, as against the meaning of accounting for inventories.
A further phenomenon which occurs when accounting is viewed as a natural language is that the interpretational component becomes closely intertwined with both the syntactic and the semantic components. The conceptual framework and the FASB statements which refine previous interpretations in order to standardize interpretation of economic events indicate the closeness of this relationship. For example, FASB statement number 1 is an attempt to standardize the interpretation of what constitutes an operating lease, as opposed to a capital lease for both the lessee and the lessor. This is similar in form to the hermeneutic concept of interpretation acting as the meta-rule intermediating between the actors and their environment, in this case certified public accountants, their clients, the FASB members and the accounting environment.
The explanation of the interrelationships between form, meaning and interpretation was the original inspiration to the formulation of formal logics and proof-based systems. The ancient Greeks were concerned with problems of valid arguments, proceeding from the development of schools of rhetoric. At the time work was concentrated on developing techniques for identifying correct inferences and exposing fallacious ones. One of the arguments which arose was between Diodorus Cronus and his pupil Philo of Megara. The argument revolved around the correct interpretation of the rule of inference modus ponens, which is also known as a conditional statement. If the conditional statement is formulated as "", then is termed the antecedent and the consequent. Diodorus and Philo differed as to what would be the conclusion if the antecedent were false. Diodorus took the position that a false antecedent negated the conditional, so that the statement is false. Thus the statement "If the FASB is a governmental agency, then this book is deposited" is false in Diodorus' system, since the FASB is not a governmental agency. Philo took the opposite view, arguing that the only case where the conditional is false is when the antecedent is true and the consequent is false.
Philo's reasoning is important because his position became the standard one in formal logic. Under his interpretation, , which semantically might be read as " implies " or "if , then ", is logically equivalent to "not or ". In this case, the "or" is interpreted as inclusive, meaning that "not is true" or " is true" or "both are true". (In the case of an exclusive or, the last case is disallowed.) Under this interpretation, treating the sentence "If the FASB is a governmental agency, then this book is deposited" is equivalent to "either the FASB is not a governmental agency or this book is deposited", which is true since the FASB is not currently a governmental agency. Notice that the second clause "this book is deposited" can be either true or false and the entire statement remains true as long as the FASB remains independent. As such, the Philonian interpretation of false antecedents is often referred to as the case of trivial truth of the conditional.
Whatever justification there may be for the specific interpretations that have been given to inference schemes, and there are many equivalences between rules of inference schemes as well, the point is that the construction of formal systems requires the specification of exact syntactic rules and specific interpretive mappings to semantic meaning. In addition, even after the specification of the formal inference scheme, it may be possible to reduce the number of allowed inferences by eliminating inferences which are logically equivalent to one another. For example, many of the inferences allowed in formal logics currently used in philosophical and linguistic texts on the subject were developed in the Middle Ages by the scholastics in order to match natural language inferences used in disputation and rhetoric. One such rule of inference is modus tollens, a type of negated modus ponens. With modus tollens the conclusion “not ” is deduced from “” and “not ”.
This rule is equivalent to modus ponens, as can be seen when the conditional is translated into the form “not ” or “”. In the case of modus ponens, given “not ” along with the translated conditional, the only case where “not or ” is true is when is false, since then “not ” is true. This characterizes an important fact about formal inferences, they preserve truth. This means that if the premises of the inference, here “” and “not ”, are true, then the conclusion must be true as well for the inference to be valid. The disadvantage of eliminating equivalent inferences is that it moves the logical system, as represented by the sentences, further away from natural language. This is true because the natural language inferences are translated into a reduced set of inferences, which removes some of the variety from the corresponding formal language. The variety lost does not entail a loss of content however, since the reduced system is logically equivalent to the system with the larger set of inferences. The reduced system does possess syntactic advantages however, since the number of rules has been reduced. This allows for simpler analysis at the syntactic level. In fact, many mathematical logic systems only include modus ponens in their inference schemes and these are almost always equivalent to systems which allow a greater number of inference types.
In this work we follow the formal systems of the mathematicians, rather than the philosophers and linguists, because the reduction in the number of inference rules reduces the complexity of specifying the consequences for computation. In order to prepare for the formal analysis which follows, some of the major concepts of the syntax and semantics of formal proof-based systems will now be introduced.
7.8. 1.8. Proof-Based Systems
In order to formalize a language, there must be a specification of the signs and symbols of the formal language, as well as a specification of the permissible manipulations of the symbols. First an alphabet for the formal language is needed. The alphabet is divided into six disjoint subsets, the first of which are constants. Constants are symbols which have a single value such as 0 or 1. The second subset of the alphabet consists of variables, which can take on a range of values. Constants and variables are called atomic terms. The third subset consists of operations or functions. Each function has a specified degree 1, 2, 3, ...; their values are called terms. Multiplication is an example of a function of degree 2 since it has two arguments. Functions map elements in their domains to elements in their codomains. They must be well-defined, meaning that each element in their domain is mapped to a unique element in the codomain. If is a function of degree and are terms, then is also a term, although not an atomic term.
The next subset of the alphabet consists of predicates, which also have a specified degree. In effect a predicate makes a statement about its arguments. It does this because it is a defined subset of the domain of discourse or universe of the formal language. The universe contains all of the object-meanings which are allowed in the language. For example, if the universe consists of all of the accounts in an accounting system and a predicate of degree 1 is defined to be " is an asset", then will be true only if represents an asset account. This defines a mapping in which is sent to "true" (or 1) in only those cases where is in the subset ; otherwise is mapped to "false" (or 0). This mapping is called the characteristic function of the predicate. If is a predicate of degree and are terms, then is an atomic formula. Notice that it is possible to represent functions of degree by predicates of degree by merely adding the codomain of the function as the th object of the subset defined by the predicate. For example, the binary degree function of addition translates into a tertiary predicate in which and would be included in the subset defined by the addition predicate. In general this predicate would consist of the ordered triplets such that .
The fifth subset of the alphabet consists of logical symbols, which are divided into connectives and quantifiers. The connectives are (implication), ("or" = disjunction), ("and" = conjunction), ("not" = negation) and (if and only if or logical equivalence). The quantifiers are (there exists) and (for all). The two quantifiers are also called the existential and the universal quantifiers respectively. If and are formulas, then the following are also formulas:
and
where in the last two formulas is a variable. The final subset contains punctuation marks, of which only left and right parentheses and occasional commas are used here.
The rules for forming terms and formulas provide the ability to recognize well-formed formulas in the language. A formula is well-formed if and only if it is built up from constants and variables by repeated application of the rules for forming terms and atomic formulas. In addition a formula in which all the variables are bound to quantifiers is called a sentence. A variable is bound if it occurs in a formula and in the quantification of that formula, i.e., is bound in by the quantifications or . A variable which is not bound is considered free.
Next the syntax and semantics of a formal language are constructed as follows. Both concepts are founded on the idea of the truth of formulas, sentences and inferences. Each logical symbol in the alphabet has a corresponding truth table associated with it. In the case of implication, the formula is false only when its antecedent is true and its consequent is false. Likewise, in the case of the inclusive or, the formula is false only when both arguments are false. For a conjunction, its truth value is true only when both arguments are true; in all other cases it is false. Negation takes only one argument and is true if its argument is false and false if its argument is true. Logical equivalence is true if and only if either both arguments are true or both are false.
The quantifiers "for all" and "there exists" are true in the following cases. "For all " is true only when every symbol of the alphabet which can be substituted for in the formula leads to the formula being true. For "there exists ", the formula is true if at least one symbol can be substituted for leading to a true formula. The assignment of truth values for a complicated formula begins at the lowest level of atomic terms and atomic formulas and proceeds to higher levels, in the same manner as the term or formula was created in its definition.
It was mentioned earlier that in order for an inference to be valid, it must preserve truth. This means that it is not valid to deduce a false conclusion from true premises. The notion of validity is a syntactic one because it involves the construction of formulas through the application of the rules of inference. Given a set of axiom formulas, the formulas which can be validly constructed from the axioms by repeated inferences are called the consequences of the formulas and these are said to be deducible or derivable from the axiom formulas.
In terms of the semantic component of a formal language, all formulas that are true in the language are said to be provable in the language if the language is complete. Completeness is a semantic concept because it requires that if the meaning of some formula is true in the sense of the universe of the language, then that formula must be provable. The specific derivation of the formula does not have to be given however. Another general concept of formal languages is consistency. Consistency means that if a formula is derivable in the language, then its negation is not derivable. This is an important technical detail since, if both a formula and its negation can be proved in the language, then any formula in the language can be proved as well, a situation which certainly adds nothing to the sum of human knowledge.
7.9. 1.9. The Scope of the Present Work
After this extended discussion of methodologies in accounting, the final section describes the scope of this book and what the authors believe is accomplished therein. The purpose of the book is to demonstrate how and under what conditions a basic accounting system can be reduced to a formal proof-based language. When this is accomplished, a method for controlling such systems through their derivations is established which is significantly stronger than methodologies used currently in accounting. The exposition in Chapters 2 through 9 employs definitions, propositions and proofs to formalize the system. The definitions are intended to represent terms, concepts or constructions currently in use and are carefully stated in order to avoid confusion as to the precise meaning assigned to them in the book. Propositions are used to state results which follow logically from the definitions and are in all cases accompanied by complete proofs. These proofs are meant to demonstrate the correctness of the propositions and to illustrate the techniques used in the algebraic and logical analyses.
Since the location of the research is the accounting system after an economic event has occurred and been quantified, but before the output of the system has been used by decision makers, the method concentrates on the manipulation and processing of inputs to outputs. These procedures are reduced to a purely algebraic system which is capable of receiving transaction data, processing the data and generating information in the form of summaries of various types.
What happens when the accounting system is reduced to an algebraic system is that the entire range of speech is circumscribed. This means that all sentences or ideas are known to be true, false or outside the particular system. Accounting systems can be thought of as possessing different dialects, some quite similar, others nearly distinct. The control of accounting systems then takes on the quality of distinguishing very precisely how the systems differ, i.e., which have larger vocabularies and which are richer in expressiveness. From a practical viewpoint this allows accountants as designers to match the expressive power of particular systems to user needs for more or less expressive languages. In addition the methodology can provide a means by which to identify situations of data or information asymmetry and can therefore act as an indirect guide to action.
It cannot be claimed that this reduction is unique, for there are many different opinions about what constitutes an accounting system and consequently many ways to construct a formal system. The intention here is to provide a method which mirrors a specified basic accounting system and which is reasonably comprehensible. It is not the intention of the book to provide a blueprint for an accounting system which could be programmed and used in practice. Rather the concern is to allow the system to recognize and act on the transaction data itself. The base level justification is to develop a full formal language for a particular aspect of accounting instead of assuming that such a grammar could exist and proceeding with partial constructions or a higher level analysis. The success of this basic stage of proof-based research in accounting will furnish researchers with a secure, well established base for future investigations.
7.9.1. Algebraic concepts employed
It is time to be specific about the algebraic concepts that have proved useful in the analysis. There are four principal structures which are used repeatedly and which appear well suited to application in accounting, namely:
- • balance vector;
- • directed graph (or digraph);
- • automaton;
- • monoid.
These structures will be familiar to most algebraists. A few words will be given to elucidate their meaning and to justify the claim of utility in accounting theory.
A balance vector is a column vector or column matrix the sum of whose entries equals zero. In this case the relevance to accounting will be obvious: the zero sum reflects the fundamental property of any accounting system that it must always be in balance. Mathematicians will immediately recognize that balance vectors form a structure with known algebraic properties; they form a submodule or hyperplane. Balance vectors are able to represent the state of an accounting system at any instant. They are also capable of encoding the transactions that are applied to the system. There is an important comment to be made regarding signs: for the entries of a balance vector can be positive or negative. The great advantage of using positive and negative signs is that the signs take care of questions of credit or debit automatically; for example, a credit balance has a positive sign and a debit balance a negative one. The theory of balance vectors is developed in Chapters 2 and 3, where their application to accounting is clearly laid out.
The second useful algebraic notion is that of a directed graph. This is best thought of geometrically, although its definition is entirely algebraic. The digraph consists of vertices, i.e., points in the plane, and edges, or lines with a direction, joining certain vertices.
The vertices represent accounts and the edges indicate where there are flows of value within the system. Thus a digraph gives a picture of how value can flow around an accounting system. While in general different accounting systems might have the same digraph, for certain special types the digraph determines the system up to equivalence.
The third concept, that of an automaton, is frequently used in information science as a theoretical model of a computer. The automaton is at any instant in a certain state; it reads a symbol on an input tape, goes to another state and then writes a symbol on an output tape. The applicability to accounting is clear: the states of the accounting system are the balance vectors, the inputs are the transactions and the outputs are the new balance vectors. This simple picture can be made more complex in order to represent further actions of an accounting system, as is expounded in detail in Chapters 6 and 9.
The final concept of a monoid is the most abstract. Every automaton has an associated monoid, which is an algebraic structure with a means of combining its elements subject to suitable rules. An input to the automaton produces a change in the state of the automaton and thus determines a function from states to states. The functions on the set of states form a monoid for which the operation is functional composition; the associated functions generate a submonoid of this monoid. Despite their abstraction, monoids provide useful ways of characterizing accounting systems with special properties, as is shown in Chapter 7.
With the aid of the concept of a balance vector, the definition of an abstract accounting system is laid out in Chapter 4 and its properties are expounded, with numerous accompanying examples. Relations between different accounting systems are considered in Chapter 5 by using standard constructions from algebra, namely quotient systems and homomorphisms. The latter are functions between different accounting systems that relate their structures.
An important topic in algebra is the possible existence of algorithms to perform certain computations or to make decisions: what is at stake here is the question of what can and cannot be computed, in principle at least. For example, is it possible to write a program which is able to test the final balance vector of an accounting system and decide if there have been any irregularities during the accounting period? The importance of the question is evident. Chapter 8 contains a full discussion of what one can expect to be able to decide or compute in an accounting system.
In Chapter 9 all the strands come together to form our final model of an accounting system. In this there are ten parameters, so the model is referred to as the 10-tuple model. It has the capability to scan and process incoming transactions, keep track of balances, generate reports on the system, control access by individuals to the system, and keep track of frequency of application of transactions. It is also able to test final balances. Our main conclusion in this book is that the 10-tuple model goes a long way towards representing what is actually going on during the operation of an accounting system.
The final Chapter 10 is intended as a corrective after the many mathematical considerations of this work. It presents a detailed example of a small company engaged in trade and it exhibits the accounting system in the form of a 10-tuple model. The aim of the example is, of course, to help make the case for the relevance of the model to accounting practice and to justify the claim that all connection with reality has not been eroded through the process of abstraction.
8. Chapter TwoBalance Vectors
In this chapter we begin the task of assembling the various components of our basic algebraic model of an accounting system. The first concern is to provide a means of describing the state of an accounting system at any instant. Now this is most naturally accomplished by listing the “values” of the various accounts in the system. So the first step must be to identify an algebraic structure to which the account values will belong. The structure chosen must be sufficiently rich to accommodate the operations that one would expect to apply to the accounting system. It emerges from the discussion below that ordered integral domains are the natural candidates.
Once the domain of account values has been settled, the list of account values can be conveniently displayed as a column vector. Such column vectors will have the special property that the sum of all their entries is zero, which reflects the requirement that the accounting system should always be in balance. Column vectors with entry sum equal to zero are called balance vectors and they form the foundation of our theory. For this reason the chapter focuses on balance vectors over ordered domains and associated mathematical structures.
8.1. 2.1. The Values of an Account
Our first task is to analyze the precise requirements demanded of the values of an account. Of course in practice such values would likely be in a currency such as dollars or euros, although numbers of any items of value would also be a possibility; thus integers or real numbers would be appropriate for account values. But the question to be addressed is: what formal properties should account values actually have?
One obvious requirement is the ability to add and subtract values. This is clearly essential in any accounting system. From the purely accounting point of view there is no reason to be able to multiply account values. On the other hand, it turns out that there are good mathematical reasons for the introduction of a multiplication operation: for it leads to increased richness of mathematical structure by allowing the use of modules and hence the methods of linear algebra. However, it should be stressed that multiplication is introduced as a mathematical device and it does not carry significance for accounting.
Naturally the addition, subtraction and multiplication should satisfy reasonable rules, by which we will mean the standard rules of arithmetic. Now it is time to make all of this precise.
Let there be given a set together with two binary operations on called addition and multiplication, denoted in the usual way, such that the following rules hold for all elements of :
- 1. (associative law);
- 2. (commutative law);
- 3. contains a zero element, written or , such that for all in ;
- 4. each element of has a negative of , with the property that ;
- 5. (associative law);
- 6. (commutative law);
- 7. (distributive law);
- 8. contains an identity element, written or , such that for all in .
The first four of these requirements assert that is an algebraic structure called an abelian group (after N. Abel). With the additional properties (5) through (8) becomes a commutative ring with identity. Note that subtraction in can be defined by the rule . Thus a commutative ring with identity is an algebraic structure in which one can add, subtract and multiply subject to the usual rules of arithmetic. Notice however that division is not permitted.
The values of the accounts in an accounting system will be elements of a commutative ring with identity . However the structure of is still not rich enough. For it is an essential feature of an accounting system that the value of an account can be regarded as positive or negative (or zero, of course): here the standard convention is that the value of an account representing an asset should normally be positive, while the value of a liability account should be negative: other accounts such as profit or loss could have positive or negative values. In any event we recognize that the ring must admit the concept of “positive” and “negative” elements. This calls for the introduction of an order relation on the domain .
A commutative ring with identity is said to be linearly ordered if there is a non-empty subset of not containing 0, called the set of positive elements, such that the following conditions are satisfied:
- 9. if , then and ;
- 10. for each , one of the following holds: , , .
The actual concept of a linear order arises when one defines
to mean that . The negative elements of are the elements of the set . On the basis of (9) and (10) it can be shown that the following holds:
- 11. for any , exactly one of the statements , , holds.
There is another important and easily deduced consequence of (9) and (10):
- 12. if with , then or .
A commutative ring with identity which satisfies (11) is called an integral domain, or simply a domain. Thus the ordered commutative rings with identity are exactly the ordered domains. The most obvious examples of ordered domains are
the sets of integers, rational numbers, real numbers respectively, where the standard arithmetic operations of addition and multiplication, and the usual meaning of “positive”, are used. It is known that any ordered domain has characteristic zero; this means that the equation , where , implies that or . This in turn shows that is always contained inside an ordered domain, so that it is the smallest possible candidate for .
On the basis of the foregoing analysis, for accounting and mathematical reasons, we choose to make the values of accounts belong to an ordered domain. While more general algebraic structures might be envisaged, there is a convincing case that ordered domains provide the most natural realm for the values of the accounts in an accounting system.
8.2. 2.2. The State of an Accounting System
Let be an ordered domain, which will be the universal set for all account values, and let be a positive integer, which will be the number of accounts in the accounting system. The state of the system at any instant can be described by listing the values of the accounts, which are assumed to be in some agreed order, in the form of an -column vector over ,
Thus is the value of the th account. The set of all -column vectors over is denoted by
Notice that and are essentially identical. Of particular importance is the zero vector
There are two natural operations which may be applied to and which are inherited from the ring itself, namely addition and multiplication by elements of . To specify these operations, let and belong to and let . The sum is defined as in matrix algebra by adding corresponding entries,
while the scalar multiple is formed by multiplying each entry of by , again just as in matrix algebra,
On the basis of these familiar definitions, one can quickly verify that the operations of addition and scalar multiplication in enjoy the following properties. Let and :
- 1. ;
- 2. ;
- 3. ;
- 4. ;
- 5. ;
- 6. ;
- 7. ;
- 8. .
Here , the negative of , arises on changing the sign of each entry of ; clearly .
These properties demonstrate that the set has a recognizable algebraic structure. Indeed properties (1) – (4) assert that is an abelian group, while the additional properties (5) through (8) make into a (left) -module. Thus in an -module one can add and subtract, and also multiply by elements of the ordered domain , all subject to the rules above.
8.2.1. The free R-module R^n
It turns out that is a particular type of -module called a free -module. To see what is special about it, consider the so-called elementary column vectors where the th entry of is and all other entries are 0. Thus
Now an arbitrary vector in is expressible in terms of these elementary vectors since
i.e., is an -linear combination of . If this linear combination equals , then the equation shows that and so . Thus the only linear combination of that equals is the one with all coefficients equal to 0. This means that are linearly independent vectors.
As in linear algebra, a subset of is called an -basis of if the elements of are linearly independent and if each vector of can be written as a linear combination of vectors in . Moreover, this expression as a linear combination will be unique because of linear independence. Thus is an -basis of . An -module which has an -basis consisting of elements is called a free -module of rank . (It is a known result from commutative ring theory that all bases of a free module have the same number of elements). Thus the previous discussion leads to:
(2.2.1). The set of elementary vectors is an -basis of , so that is a free -module of rank .
8.2.2. Balance vectors in R^n
So far arbitrary column vectors over an ordered domain have been considered. Now our aim is to use such vectors to express the state of an accounting system by listing the balances of the various accounts as the entries of the vector. However, the vectors to be used must have the property that the sum of their entries is zero. For it is an essential feature of the double entry accounting system that it must always be in balance. To see what this entails, recall that the accounts of a company generally fall into three categories:
- 1. Asset accounts, which represent anything owned by the company;
- 2. Liability accounts, which record what is owed by the company to external entities;
- 3. Equity accounts or a profit and loss account; these show what is owed by the company to the owners and also show the net assets of the company.
(There may also be temporary revenue and expense accounts). This scheme is generally referred to as the chart of accounts.
It is a fundamental fact that a double entry accounting system must always be in balance, a fact which is implied by the accounting equation
where , and are respectively the totals of all amounts in asset accounts, liability accounts and equity or profit and loss accounts. In general the asset accounts will have positive balances and liability accounts negative balances. The accounting equation may also be written in the form
an equation which shows that the total equity, or net assets, of the company should have a negative sign, at least if the company is making a profit. Indeed the negative sign is to be expected since the amount is owed by the company to the owners.
The second equation causes us to focus on column vectors in whose entry sum is 0, the so-called balance vectors over . For at any point in time the state of the company's accounting system is described by the column vector whose entries are the account balances with the appropriate signs, in short by a balance vector.
We proceed now to study the properties of the subset of balance vectors in , where is an ordered domain. Keep in mind that and are considered to be identical. First let us consider the function
which sums the entries of a column vector in , i.e.
It is simple to check that has the following properties:
for all and . A function between two -modules with these properties is called an -module homomorphism.
The reason for introducing the function is that the vectors which satisfy are exactly the balance vectors in . Now module elements which are sent to zero by a module homomorphism form a subset called the kernel, written
It is easily checked that the kernel is itself a module, which is of course contained in the domain of the homomorphism. Thus the kernel of a module homomorphism is a submodule of the domain.
Returning to the particular homomorphism , we conclude that its kernel, i.e. the set of balance vectors, is a submodule of . We shall write
for the set of all balance vectors in , so that is a submodule of , which will be called the balance module of degree over .
8.2.3. Examples of balance vectors
(i) There is just one balance vector in , namely the zero vector . A typical balance vector in has the form
while a general balance vector in can be written as
where .
(ii) An especially important type of balance vector occurs when there are just two non-zero entries, one of which will of course have to be the negative of the other. Such vectors are called simple balance vectors. As an example of a simple balance vector, consider
which is the vector in , (), whose th entry is 1 and th entry is , with all other entries 0. Then is a simple balance vector in . For example, when ,
The are called elementary balance vectors: evidently every simple balance vector is a scalar multiple of an elementary balance vector. The number of elementary balance vectors in is equal to
for this is the number of ways of choosing two objects from a set of in a definite order. In the following section it will be seen that the elementary balance vectors play a special role in the module .
8.3. 2.3. Properties of the Balance Module
Now that the balance vectors over an ordered domain have been identified as the medium for expressing the state of an accounting system, we will take the opportunity to develop some of the mathematical properties of the module of all balance vectors in .
Our first observation is that , like , is a free -module, although it is of rank one less. Note that , which is free of rank 0, so we can assume that . To prove the assertion it is necessary to produce an -basis consisting of vectors. This is done in the next result.
(2.3.1). Let be an ordered domain and let be an integer. Then the elementary balance vectors constitute an -basis of . Thus is a free -module of rank .
Proof
In the first place are linearly independent. For if , then
and the only way this can equal is if .
It remains to prove that an arbitrary balance vector is expressible as a linear combination of . Write
and define to be , where . Then equals
which, by a simple computation with column vectors, reduces to
Hence .
One can think of 2.3.1 as saying that is rather similar to the module . The next result shows how is situated within .
Let be a vector in whose entry sum equals 1, i.e.
There are, of course, many such vectors in : for example, one could take one entry of to be 1 and all the others to be 0. Denote by
the set of all multiples of by elements of . Then is a submodule of and in fact it is a free -module of rank 1 since constitutes an -basis for it.
Now choose any from and put . Then the vector has entry sum
since
Thus is a balance vector. Since , it follows that every vector in is the sum of a vector in and a vector in ; this is expressed by the equation
Next, if , then for some . Also
Thus and therefore
the zero submodule.
The two statements combine to say that is the direct sum of the submodules and , in symbols
This conclusion is stated formally in the next result.
(2.3.2). The -module is the direct sum of the submodules and , i.e., , where is any vector such that .
Direct sums of more than two submodules can be defined by iteration and will occasionally be used in the sequel.
8.3.1. Balance vectors and permutations
From the algebraic point of view a natural way to generate balance vectors is to take an arbitrary vector in and subtract from it a vector obtained by permuting its entries. The resulting vector will always be a balance vector. For example, when , one might form
which is a simple balance vector.
In general let be a permutation of the integers , i.e., is a bijection from the set to itself. For each in form a new vector by using to permute the entries of ; this is the vector
whose th entry is . Then is a balance vector since it has entry sum
Hence belongs to and we have a function
defined by the rule .
There are some natural questions one can ask about the function . Is it a module homomorphism? If so, what are the kernel and the image ? In particular, when is it surjective, i.e., when does every balance vector arise by applying the function to a suitable vector in ?
The next theorem answers these questions. First it is necessary to recall some basic facts about permutations. Any permutation of is uniquely expressible up to order as a product, i.e., composite, of disjoint cycles, or cyclic permutations
where each is a cycle of the form and the subsets of the set are disjoint. Recall that a cycle sends to , to , , to and finally to , while other integers are fixed.
(2.3.3). Let be an ordered domain, a positive integer and a permutation of . Assume that is the disjoint cycle decomposition of . Then:
- 1. the function is a homomorphism of -modules;
- 2. the kernel of consists of those vectors in such that all entries coming from the same cycle are equal;
- 3. let for . Then the image of has an -basis consisting of all , where .
Proof
1. To prove this one simply has to verify that the requirements for a module homomorphism are satisfied. Notice first that and . Then
and similarly
2. Let . Then if and only if , i.e. . This says that for all , from which the statement follows at once.
3. This is harder to see. The crucial point to keep in mind is that permutes the entries in each cycle according to the cyclic permutation . For any in we can write
where is the vector whose non-zero entries are the entries of which correspond to components of the cycle . Then and thus
Therefore it is enough to prove the statement for the cycle , i.e., we can assume that is an -cycle.
We may suppose without loss of generality that : then by 2.3.1 we need to show that . Choose any in and let its entries be
Define to be the vector with entries
Then we have
which equals
Our conclusion is that when is an -cycle, equals . The statement in (3) now follows on applying this result to each of the cyclic permutations .
(2.3.4). The module is a free -module of rank , where is the number of disjoint cycles in .
Proof
Let be the lengths of the disjoint cycles of . Then by 2.3.3 there is an isomorphism, i.e., a bijective homomorphism, from to
which by 2.3.1 is a free -module with rank
From this it follows that if and only if , i.e., ; this is because has rank . Thus we have:
(2.3.5). The homomorphism is surjective if and only if is an -cycle.
To illustrate the proof of 2.3.3 we present an example.
Example (2.3.1).
Let and choose to be the permutation . By 2.3.3 a general element of should have the form
Following the method of the proof of 2.3.3, we form the vector
Then
as predicted.
8.3.2. The level of a balance vector
A natural measure of the complexity of a balance vector is the number of its non-zero entries. For any in define the level of to be the number of non-zero entries of , with the convention that the zero vector has level 1. Thus the level of a balance vector is a positive integer and the zero vector is the only balance vector with level 1. Clearly, if is any integer satisfying , then has vectors of level . One can think of the balance vectors as being classified in a hierarchy of levels. At level 1 is the zero vector, at level 2 the non-zero simple balance vectors, and thereafter balance vectors of increasing complexity.
It was shown in 2.3.1 that, provided , there is an -basis of consisting of non-zero simple balance vectors, i.e., balance vectors of level 2. One can ask whether it is possible to find an -basis of balance vectors of level where is any integer satisfying . The answer turns out to be affirmative.
(2.3.6). Let be an ordered domain and let be integers satisfying . Then there is an -basis of consisting of vectors of level .
Proof
Suppose that is an matrix with non-negative entries in which has the following properties:
- (a) , where “det” denotes the determinant;
- (b) each column of has exactly positive entries and the remaining entries are all 0.
The problem of finding such a matrix is postponed until later in the proof.
The next move is to adjoin an additional row to , thereby creating an matrix . Here the th element of the th row of is defined to be the negative of the sum of the entries in column of . This implies that the sum of the entries in any column of is 0, i.e., the columns of are vectors in . Notice also that each column of has exactly non-zero entries and hence has level . We will show that the columns of form an -basis for .
In order to establish this we let be an arbitrary vector in . Since , there is a unique vector in such that
Indeed where is the adjoint of , i.e. the transposed matrix of cofactors of . Since entries of belong to and , the vector has all its entries in .
Next form from in the same manner as was formed from ; thus is the -column vector with entries . We now claim that
To see this recall that and note that the th entry of equals
which is the th entry of . Now observe that is actually a typical vector in since are arbitrary. Also the equation implies that is a linear combination of the columns of .
Finally, the columns of are linearly independent because those of are linearly independent — recall that . It follows that the columns of constitute an -basis of ; of course each column of has level .
There remains the problem of exhibiting an matrix satisfying (a) and (b): in fact there are many such matrices. One can start off with the matrix
It is easy to compute its determinant by using row operations; in fact
The matrix is used to construct a matrix with the required properties by the following procedure.
First divide by to get a quotient and a remainder , both of which are integers; thus
and . The matrix is to have blocks down the main diagonal, with other entries 0 or 1 according to the following scheme:
Here the upper right hand block of 1's has size , while is the identity matrix. Thus each column of has exactly positive entries, with other entries being 0. Also . Thus has all the required properties.
8.3.2.1. Example (2.3.2).
The previous result will now be illustrated by explicitly constructing a -basis of consisting of balance vectors of level 3. Thus and here. The matrix is
Now , so and . Assemble the matrix as indicated above, to get
Notice that has 2 positive entries in each column with other entries 0 and that , so (a) and (b) hold.
The final step is to add to a sixth row whose entries are the negative column sums of , which yields
The columns of form a -basis of consisting of vectors of level 3.
9. Chapter ThreeTransactions
Up to this point we have been concerned with developing the mathematical structures appropriate for describing the state of an accounting system at any instant, namely by balance vectors with entries belonging to an ordered domain. The next question to consider is how one can represent changes in the state of an accounting system which result from economic events. Such changes occur when a transaction is applied to the system, which means that there is a flow of value between accounts of the system. Some account balances will increase and others decrease. Of course, there may be some accounts which are unaffected by the transaction.
After a transaction has been applied to an accounting system, the system must still be in balance, i.e., the sum of all the account balances is zero. This implies that the sum of all the changes in account balances due to the transaction must equal zero. So the conclusion is that the effect of a transaction on an accounting system can be represented adding a fixed balance vector to the balance vector that describes the original state. Then the sum of these vectors is the balance vector representing the state of the system after the transaction has been applied.
This informal discussion indicates that balance vectors are also the key to understanding changes in the state of an accounting system, as well as the actual states of the system. The object of the present chapter is to give a formal treatment of transactions and their relation to balance vectors. Once established, this relationship permits the transfer of concepts and results for balance vectors to transactions.
9.1. 3.1. Transaction Vectors
The formal definition of a transaction will now be given. Let be a positive integer, which will correspond to the number of accounts in an accounting system, and let be an ordered domain, which will be the realm of account values. Choose and fix a balance vector . Then a function
is defined by the rule
Thus the function simply adds the fixed balance vector to each balance vector ; of course is also a balance vector. The function is called the transaction corresponding to the balance vector . The set of all such transactions will be denoted by
Notice that the zero vector corresponds to the identity function since . Thus is the identity transaction, which causes no change in the system.
Recall that two functions from a set to itself can be combined by using functional composition to yield a new function, the composite
defined by . In the case of transactions and , observe that sends to , as does . Therefore
Hence and is the inverse of the transaction .
The above equations, together with the associative law of functional composition, show that is an abelian group. There is also an -module structure on : for one can define , where and , by the rule
Thus . It is very easy to check the module axioms in 2.2, so that is an -module.
By this point it should be apparent that the modules and are very similar. This may be formalized by saying that these -modules are isomorphic, meaning that there is an isomorphism, or bijective homomorphism, between them.
(3.1.1). The assignment determines a function
which is an isomorphism of -modules.
Proof
It is perfectly clear that is a bijection. Equations and show that and , so that is a homomorphism of -modules.
In the interests of brevity we will often not distinguish between the transaction and the corresponding balance vector , referring to either as a transaction vector. Thus we can speak of simple transactions and elementary transactions, corresponding to simple balance vectors and elementary balance vectors. Note that a simple transaction is one with level 2 and is just an exchange of value between two accounts, all other accounts being unaffected.
The essential feature of an isomorphism between two modules is that it preserves all structural properties of the modules. Thus all the properties of which were established in Chapter 2 may be transferred to . For example, one can conclude on the basis of 2.3.1 that is a free -module of rank . One can also speak of the level of a transaction , meaning thereby the number of non-zero entries in the balance vector .
It is worthwhile stating explicitly the analog of 2.3.6 for since it furnishes information about transactions.
(3.1.2). Let be integers satisfying . Then has an -basis consisting of transactions of level .
Applying 3.1.2 and the equation , we deduce:
(3.1.3). Every transaction on a set of accounts is the composite of a sequence of transactions of level where is any integer such that .
Specializing 3.1.3 to the case , we obtain:
(3.1.4). Every transaction is a composite of simple transactions.
This means that any transaction, however complex, can be effected by a suitable sequence of exchanges between pairs of accounts.
9.1.1. Transactions and T-diagrams
In accounting a common way of representing the transactions that have been applied to an accounting system is by means of what are called T-diagrams. Each account has a T-diagram which lists the debits and credits that have been applied to the account in two columns, the column on the left giving the debits and the one on the right the credits. The T-diagram for account over some accounting period has the general form
| Account | |
|---|---|
where all , are positive.
By convention in accounting a transaction which increases the value of an asset account such as a bank account is said to debit the account; if it decreases the value of such an account, then it credits the account. Similarly, if a transaction increases the balance of a liability account, then it credits the account and if it decreases the balance of such an account, it debits the account. This reversal of the common usage of the terms “debit” and “credit” reflects the fact that amounts in an asset account such as cash are owed by the company to the owners, whereas an amount in a liability account such as a mortgage is owed to the company by the owners. For example, a transaction that is a sale might debit the bank account and credit inventory. Repayment of a loan will credit the bank account and debit bank loan.
At this point the advantage of the balance vector representation of transactions and balances becomes apparent since the signs of the entries in the balance vector take care of both asset and liability accounts. A transaction debits an account if, allowing for the signs of the vector entries, it increases the corresponding entry in the balance vector, and it credits the account if it decreases the entry in the balance vector.
Remembering that the left hand column of a T-diagram represents debits and the right hand one credits, we conclude from the T-diagram above that the balance of the th account will increase over the period by an amount
(Of course, if this amount is negative, it represents a decrease in the account balance).
It is possible to enrich the T-diagrams by adding a time component. Then is replaced by a pair where is the expiration time for the th transaction to be applied to the th account. This procedure will be elaborated on in the discussion of automata in Chapter 6.
9.1.2. T-diagrams and the Pacioli group
Consider once again the T-diagram of the th account of an accounting system. Let and denote the respective sums of the debit and credit columns in the diagram. Notice that , the increase in value of the th account over the period, is not affected if we replace by and by : it is only the difference between and that matters. Motivated by this simple observation, let us consider a relation on the set product of all ordered pairs , , defined by
it is easy to check that is an equivalence relation on . Write
for the -equivalence class containing and let be the set of all such equivalence classes. The next step is to define a binary operation on :
Again it is a simple matter to see that this operation is well-defined, i.e., it depends on the classes , , not on the representing ordered pairs. Next we quickly verify that Properties 1-4 in 2.1 hold, which means that is an abelian group with respect to the operation just defined; note that the identity element is , which is the same as for any . Following Ellerman [1985], we shall call the Pacioli group because of its connection with the double entry accounting system pioneered by Pacioli. The identity of this group is not a mystery: for the assignment
from to the additive group of integers is quickly seen to yield an isomorphism : for it is clearly a bijection and
Thus in effect the groups and have identical properties.
Returning to the T-diagram of the th account, we note that it determines the element of the Pacioli group. Thus at any instant each account, through its T-diagram, determines an element of this group. However, in passing from T-diagrams to the elements of the Pacioli group it is apparent that much information about the transactions has been lost, a fact that obviously limits the usefulness of the construction.
9.1.3. The balance matrix
The history of an accounting system over some period of time can be described by listing the T-diagrams for the accounts. An alternative way to describe this history is by listing in order the successive balance vectors of the system after each transaction has been applied. These balance vectors can be used as the columns of a matrix . Since the matrix determines the balance sheet of the company, we call it the balance matrix of the accounting system.
Notice that we can recover the transactions which have been applied to the system from the balance matrix by subtracting successive columns. In more detail, let be the initial balance vector of the system and let the successive balance vectors after application of transactions be ; thus
and the balance matrix over the period is
Then we recover the transactions from the matrix from the equations
Finally, given the balance matrix we can also reconstruct all the T-diagrams. The procedure is first to find the successive transactions that have been applied, as already explained. To obtain the T-diagram of the th account, identify the positive -entries in the transaction vectors and record them in the debit column of the T-diagram; then put the negative -entries in the credit column. Thus the balance matrix determines the set of T-diagrams uniquely. We illustrate the procedure with an example.
9.1.3.1. Example (3.1.1).
Suppose that an accounting system with four accounts has balance matrix over some period
To construct the four T-diagrams first find the three transactions that have been applied:
Now read off the T-diagram of accounts and as
| Account | |
|---|---|
| 400 | 100 |
| 100 | |
and
| Account | |
|---|---|
| 100 | 150 |
Similarly for the other accounts.
9.2. 3.2. Transaction Types
A problem which will be discussed in subsequent chapters is to determine the appropriateness of applying a given transaction to an accounting system. In deciding this question it is sometimes the arrangement of credits and debits, i.e., the signs of the entries in the transaction vector, that are important. The actual entries may be of lesser significance. This is the background to the definition of type.
Let be a positive integer and an ordered domain. The type of a balance vector ,
is the -column vector whose th entry is 0, + or - according as , or respectively. For example, if and
the type of is
The type of a transaction is then defined to be the type of .
The identity transaction has type , while the type of a simple transaction contains a single + and -, with other entries 0. Notice that any non-zero transaction type must have at least one + and at least one -.
9.2.1. A partial order on transaction types
Let and be types of balance vectors in : thus the entries of the vectors are 0, + or -. A binary relation on the set of types of vectors in is defined as follows:
is to mean that or for . Thus and have the same configuration of and signs except that may have more zeros. It is a simple matter to verify that this relation is reflexive, transitive and antisymmetric, so it is a partial order on the set of types. But this is not a linear order since not every pair of types is comparable: for example, the types
are incomparable.
As is usually done with a partial order, one can visualize the partially ordered set of types by means of its Hasse diagram, in which the least complex types occur lower down in the diagram. At the lowest point will be the type of the zero vector , which consists entirely of zeros, while sits directly below if the entries of and are the same except that has one more zero entry.
A related concept is that of level. The level of a transaction is defined to be the level of its associated balance vector as defined in 2.3, i.e., it is the number of and signs in the type. The concept of level permits a linear ordering of transaction types in which types of small level occur further down in the partial ordering of types. Clearly the highest possible level is and the lowest level is 1, the type of the identity transaction. Thus the level is to be regarded as a measure of the complexity of a transaction type.
9.2.1.1. Example (3.2.1).
There are 13 transaction types in . These are listed below in descending order of levels:
As an illustration of the partial ordering of types, observe that
In the daily operation of a real-life accounting system many of the transactions applied will likely be at a low level. For example, funds might be moved between two accounts, which is a transaction of level 2. In the case of a retail firm, a sale might involve debiting cash, crediting inventory and crediting profit and loss, a transaction of level 3. Nevertheless one can envisage transactions which occur at a high level and so are of complex type. For example, funds might be disbursed from cash to several employee payroll or pension accounts. Thus transaction types of high level are a distinct possibility.
9.2.2. Combinatorial properties of transaction types
An examination of the transaction types in in Example 3.1.2 above raises some combinatorial questions about types. For example, it is natural to ask how many transaction types there are in , and one might also enquire about the number of types of given level. Finally, there is the more ambitious question: which level contains the largest number of transaction types? We shall derive some simple formulas which answer these questions. Aside from their intrinsic interest, these combinatorial questions provide insight into the relative complexity of transaction types at different levels. In this result denotes the binomial coefficient
(3.2.1). Let be an integer greater than 1.
- 1. The number of -transaction types of level is , where .
- 2. The total number of -transaction types is .
Proof
1. In order to construct an -transaction type of level one must first pick the “slots” in which a or is to be placed; this may be done in ways. Then one has to count the number of ways of placing a or in each of the chosen slots, taking care not to have a in every slot or a in every slot. This can be done in ways. The remaining slots get 0's, so the type has been determined. Hence the number of types at level is .
2. The total number of -transaction types is the sum of the numbers of types at levels 1 through . Since there is just one type of level 1, this is
Now by the Binomial Theorem
and
Hence the total number of types is
A similar combinatorial problem arises when one asks for the number of transaction types with a specified number of debits or credits.
(3.2.2). Let and be integers such that . Then
- the number of -transaction types with exactly entries , i.e., debits, is , and this is also the number of types with exactly entries , i.e., credits;
- the number of -transaction types with exactly zeros (i.e., unaffected accounts) is if and 1 if .
Proof
1. Choose the slots which are to receive a sign in ways. Then place a 0 or a in the remaining slots, but do not put a 0 in every slot: for there must be at least one in the type. This can be done in ways. So the number of types with exactly signs is . The same argument handles the case of minus signs.
2. Let and choose the slots to receive 0's in ways. Then place a or in each of the remaining slots, with at least one sign and one sign. This can be done in ways, so the answer is . If , the answer is clearly 1.
9.2.3. The level with the largest number of types
Let be a fixed positive integer. Another natural question is: which level has the largest number of -transaction types? Clearly one can assume that here. Then by 3.2.1 the problem is to find the integer satisfying for which the integer achieves its maximum value. Now it is well-known that the maximum value of occurs at (the largest integer ). However, one would expect the maximum value of to occur for a larger value of because of the presence of the factor . In fact the answer is roughly , as the next result indicates:
(3.2.3). Let be a positive integer. Then the largest number of -transaction types occurs at level
For example, when , the largest number of types occurs at level 67, and the number of types at that level is .
Proof
It may be assumed that . By 3.2.1 we need to determine the value of which makes the integer largest; here is fixed and . Now
Therefore if and only if exceeds the number
It is easy to see that is a strictly increasing sequence of positive numbers. Also, , so there is a least such that and this will be a level with the largest number of transaction types. Thus we have to find an integer such that
Put
then a short calculation shows that
for . Of course and in fact if . On writing , the inequality becomes
Solving for , one finds that
There are now three cases to consider. Suppose first that and . Then yields
If , then and the result is true by Example 3.2.1, while is impossible; thus we may assume that . Since , the last inequality becomes , so that .
Next suppose that and write . Then yields
Since , this gives .
Finally, if and , then we have by (*)
which yields since one can assume .
Observe that 3.2.3 leaves open the possibility that the maximum number of types occurs at two successive levels, and indeed this happens when , as Example 3.2.1 above shows. However this is the only time it happens. The reason is that holds only if and it is easy to see that is an integer only when or 2, which is consistent only with .
9.3. 3.3. Transactions, Matrices and Digraphs
Up to this point our favored method of representing transactions has been by balance vectors over an ordered domain. However some years ago Mattessich, in a well-known paper [Mattessich 1957], gave an ingenious method of representing transactions on an accounting system by square matrices with non-negative integral entries. It is instructive to compare Mattessich's matrix method with the current approach. A comparison of the two methods will highlight some of the main features of the balance vector technique and its advantages. A detailed analysis of the relation between the methods is presented in this section.
9.3.1. From matrices to transactions
Let be a positive integer and an ordered domain, and let be an matrix over , so that the entries of lie in . An -column vector is formed from by the following procedure: the th entry of the vector is given by
Thus the value of the th account is debited, i.e., increased by amount and credited, i.e., decreased by . Otherwise stated, the th entry of is obtained from by forming the sum of the entries in row and subtracting from it the sum of the entries in column . The formula is valid even if some of the matrix entries are negative.
The critical observation is that is a balance vector, the reason being that in the sum each occurs twice, once with a positive sign and once with a negative sign. Thus the matrix determines a transaction . Finally, notice that diagonal entries have no effect on the vector since they cancel in the sum expressing .
9.3.1.1. Example (3.3.1).
Consider the matrix over
Following the row-sum minus column-sum rule, we find that the corresponding transaction is represented by the vector
9.3.1.2. Example (3.3.2).
Let
denote the elementary matrix whose entry is 1 and whose other entries are all 0; here . It is an important observation that the elementary matrix determines the elementary transaction vector , which has th entry +1, th entry -1 and other entries zero: in particular this is a simple transaction.
9.3.2. The Mattessich function
The procedure just described for associating a balance vector with a matrix can be formalized by means of a function . Let
be the set of all matrices over an ordered domain . Matrix algebra provides natural operations of addition and scalar multiplication by elements of for the set . Furthermore the laws of matrix algebra guarantee that , like , is an -module.
Mattessich's procedure yields a function
which is given by the rule that follows: if , then is the -column vector whose th entry is
The function will be called the Mattessich function.1 Keep in mind that there is a module isomorphism from to , so that, on composing with this, we obtain another module isomorphism
There is a simple description of the function in terms of matrix products. Denote by the -column vector with all its entries equal to 1,
Then by direct matrix multiplication we see that the th-entry of the column vector is exactly , where is the transpose of the matrix . The point to note here is that right multiplication of a matrix by sums the elements in each row of the matrix.
The result of this observation is a simple formula for the Mattessich function:
Use of this formula and elementary matrix algebra show that
1Actually Mattessich used a slightly different procedure, with the roles of and reversed in the definition of .
where and . Thus is a homomorphism of -modules.
The basic properties of the Mattessich function , and by implication of the function , are summarized in the following result:
(3.3.1). Let be a positive integer and an ordered domain. Then
- 1. where is the -column vector with all entries equal to 1.
- 2. is a surjective homomorphism of -modules.
Proof
Only the surjectivity of requires a comment: clearly we can assume that . Recall that every balance vector can be written in the form where . Also , as was pointed out in Example 3.3.2 above. Therefore
and is surjective. □
Of course this result shows that every balance vector arises from some matrix, so Mattessich's representation of transactions is effective every transaction.
While the matrix representation of transactions is very elegant, it does have some disadvantages. Firstly, it is somewhat unwieldy: an matrix has entries whereas a balance vector is determined by only parameters. Then, because of this built-in redundancy, different matrices can determine the same balance vector, and hence the same transaction.
These defects can be remedied by restricting attention to matrices all of whose non-zero entries lie on the superdiagonal, (where ),
Notice that for this superdiagonal matrix
which equals . Since this is a general vector of , every balance vector, and hence every transaction, actually arises from a superdiagonal matrix.
This observation provides the motivation for introducing a function
which is defined by the rule that
is to equal
In particular notice that .
It follows at once from the definition that is a homomorphism of -modules. Also is the identity function on , so that is a right inverse of and is therefore injective. Thus for any in , we have where . Consequently every transaction arises from a superdiagonal matrix obtained by applying the function to .
In fact each transaction arises from a unique superdiagonal matrix. For if , where and are superdiagonal, then . Since is also superdiagonal, it follows from the equation for that . This is stated formally as:
(3.3.2). Every balance vector in is uniquely expressible in the form where is a superdiagonal matrix; moreover .
9.3.2.1. Example (3.3.3).
Consider the balance vector
First we express in terms of elementary balance vectors as in 2.3.1:
The superdiagonal matrix corresponding to is therefore
9.3.3. Matrices with non-negative entries
In his original article Mattessich dealt only with matrices having non-negative entries. As Example 3.3.3 shows, the superdiagonal matrix of a transaction can have negative entries. This is easily corrected by switching negative entries to the subdiagonal and changing the signs of such entries.
Let ; if the entry of the superdiagonal matrix is negative, say with , replace it by 0 and put a in the position. This procedure does not change difference between the row-sum and the column-sum, so that the resulting matrix, say
is still mapped to by ; also it has all its non-zero entries positive and they lie on the superdiagonal or subdiagonal.
Thus in the previous example
However the function , unlike and , is not a homomorphism.
The relationship between the functions and is clarified in the next result.
(3.3.3). The functions and have the following properties.
- 1. ;
- 2. consists of all superdiagonal matrices over ;
- 3. A matrix belongs to if and only if where is symmetric and is skew symmetric with all its row sums equal to 0.
Proof
1. Recall that is the identity function on . If , then for some . Then , so that and . Next for any , we have
since is the identity. Therefore and ; the result follows by definition of the direct sum.
2. This is a consequence of the definition of .
3. Let and define and ; then . Notice that is symmetric and is skew symmetric. Hence and , from which it follows that . Recall that , being an ordered domain, has characteristic zero (see 2.1), and thus an equation in implies that . Therefore we may conclude that and as a consequence that if and only if , i.e., is a skew-symmetric matrix with row sums equal to 0.
9.3.4. Transactions and digraphs
We end the chapter by describing yet another way of visualizing a transaction, this time geometrically by means of digraphs. First of all recall that a directed graph, or digraph, consists of a non-empty set and a binary relation on : thus
and if and only if . The elements of are called the vertices of and the elements of , written
are the edges of . A geometric picture of the digraph is obtained when the vertices are represented by points in the plane and an edge is represented by a directed line segment from to ,
A loop in a digraph is an edge from a vertex to itself. Clearly a digraph has no loops precisely when the corresponding relation is irreflexive, i.e., never holds. If there are edges and , these are called parallel edges. A digraph has no parallel edges if and only if the corresponding relation is antisymmetric, i.e., and cannot both hold. The number of edges beginning at a vertex is called the out-degree of and the number of edges ending in is the in-degree. We shall be especially interested in digraphs in which no vertex has positive in-degree and positive out-degree; notice that a digraph with this property cannot have loops or parallel edges.
Now let us return to transactions. Suppose that where is an ordered domain, and regard as a transaction vector. We define a corresponding digraph with vertex set the set of accounts . An edge is to be drawn from account to account if and , i.e., the transaction debits and credits , while it may also affect other accounts.
It follows at once from the definition that the digraph of a transaction has the special property that no vertex can have positive in-degree and positive out-degree. In fact a rather stronger property holds.
(3.3.4). If is the digraph of a transaction vector, then the vertex set of is the union of three disjoint subsets such that there is an edge from each vertex of to each vertex of and no other edges are present in .
Proof
If is the digraph of a transaction , define to be respectively the sets of accounts for which , , . These sets have the property stated.
9.3.4.1. Example (3.3.4).
Consider the transaction vector
The digraph of this balance vector is shown below, where for simplicity of notation the vertices have been labeled :
Here, for example, there is an edge from 1 to 5 since and , and the vertex 4 is isolated in the digraph since the transaction does not affect account . The three subsets of 3.3.5 are , , .
It is evident that the digraph of a balance vector depends only on the type of the balance vector, not on its actual entries. Indeed there is a bijective correspondence between types of balance vectors and digraphs with the property enunciated in 3.3.4.
(3.3.5). There is a bijective function from the set of all types of balance vectors with entries and the set of all digraphs on a given -element vertex set with the property that the vertex set of is the union of three disjoint subsets such that there is an edge from each vertex of to each vertex of and no other edges are present in .
9.3.4.2. Proof
We have seen that every -balance vector type determines a unique digraph which has the stated property. To get a map in the other direction we assume that is a digraph with the property. The balance vector type corresponding to is defined as follows. To determine the -component of look at ; if the th vertex is in , so there is an edge from vertex to some other vertex, then ; if , there is an edge from some vertex to the th vertex and ; if , so that is isolated, then . This process defines a unique type vector since are disjoint sets. Clearly these two maps are mutually inverse, so we have a bijection.
For example, consider Example 3.3.4 once again. We see directly from the digraph that the corresponding type vector is
As an immediate application of 3.3.5 and the count of transaction types in 3.2.1, we obtain combinatorial information about digraphs with the property described in 3.3.5.
(3.3.6). The number of digraphs with a fixed set of vertices such that the vertex set is the union of three disjoint subsets and there is an edge from each vertex of to each vertex of while no other edges are present in is equal to .
10. Chapter FourAbstract Accounting Systems
10.1. 4.1. Allowable Transactions and Balances
In the last two chapters it has been shown how one can represent the state of an accounting system by a balance vector and a change in the state of the system by a transaction vector, which is itself a balance vector. Now an essential component of any accounting system is the set of rules by which the system operates. The next objective is to complete the definition of our basic model of an accounting system by specifying in algebraic form the rules that govern the operation of the system.
In any real life accounting system there will be certain transactions that would be regarded as improper. A transaction might be contrary to sound business practice or it might violate government regulations. For example, a transaction that leads to a transfer of funds from an employee's pension account to cash would not be permitted under normal circumstances. To exclude such undesirable operations, an accounting system should come equipped with a list of transactions that are regarded as valid operations for the system. These will be called allowable transactions.
Another feature of an accounting system is that, even if a transaction is allowable, its application might still be rejected if it caused an unacceptable balance to appear in some account. For example, in the case of a retail firm customer credit accounts are likely to have limits. A purchase on credit by a customer would not be permitted if it led to a balance that exceeded the customer's credit limit. There may also be minimum balances for certain reserve accounts in an accounting system. Thus one recognizes the existence of allowable balances, as well as allowable transactions.
Before a transaction is accepted by an accounting system, it must first be screened for allowability. Should it pass this test, the balance vector which results when the transaction is applied must be computed. If the new balance vector is allowable, the transaction is approved and applied to the system.
The discussion so far suggests that the basic model of an accounting system should include the following:
- 1. a set of accounts in a specified order;
- 2. a set of allowable transactions;
- 3. a set of allowable balance vectors.
Once an accounting system has been defined in this way, it is natural to regard it as an automaton, and this point of view will be explored in detail in Chapter 6. This in turn leads by well known procedures to such algebraic structures as monoids and groups. Equally important are algebraic concepts such as substructures and quotient structures of a specific structure, which can be applied to accounting systems to provide algebraic representations of standard accounting procedures. In this and subsequent chapters the pay-off for introducing abstract algebra into accounting theory will become apparent.
10.2. 4.2. Defining an Accounting System
Our objective in this section is to formulate precisely the definition of an accounting system on accounts over an ordered domain . The first component of the definition is an -element set called the set of accounts. Next we introduce the notion of a balance function from to : this is a function
such that
There is a connection with balance vectors here, which will be explained shortly. To complete the specification of the model, we choose two sets of balance functions from to , say
where must not be empty. Then the triple
is called an abstract accounting system on over , with the sets and determining respectively the transactions which may be applied and the account balances which may arise, in a manner which will be described.
In order to introduce balance vectors we first linearly order the account set in some fixed way: let this be
If is a balance function, then is completely determined by the balance vector
Thus we can replace each balance function by its associated balance vector, so that and may be regarded as sets of -balance vectors over , i.e., as subsets of . We call and the sets of allowable transactions and allowable balances of . But note that strictly speaking consists of balance vectors rather than the associated transactions .
The mode of operation of the accounting system will now be described. The system has an initial balance vector . A sequence of allowable transactions is applied to the system, producing successive allowable balance vectors where
provided that is allowable, i.e., it belongs to : if this is not the case, then .
In practice the allowable transactions will be of two sorts. There may be specific allowable transactions with fixed entries, for example, fixed rent or mortgage payments. Then there may be entire types of transactions that are allowable: a transaction in a retail firm which debits cash and credits inventory and profit/loss would be of this type. It is therefore reasonable to replace the set by two sets
and write
where is the list of allowable transaction types and is the list of specific allowable transactions. The understanding here is that every transaction of a given allowable type is allowable.
It is reasonable to regard the identity transaction, i.e., the zero transaction vector, as allowable since it has no effect on balances of the accounting system; we will assume henceforth without further comment that this transaction is allowable in all accounting systems.
Accounting systems with one account are uninteresting: the balance is always zero. Systems with two accounts are scarcely more interesting: the two accounts have balances that are negatives of each other. The simplest interesting accounting system has three accounts. Such a system could represent the uncomplicated financial position of a company or an individual with few assets or liabilities, with one account representing total assets, one total liabilities and an account giving the net worth. This simple system also represents the most primitive type of financial report, wherein total balances are given for all the asset, liability and equity accounts.
10.2.1. The digraph of an accounting system
A useful way of visualizing the operation of an accounting system is by means of a digraph (or directed graph). Consider an accounting system
on accounts . The digraph of has vertex set
and an edge
is drawn from to if some allowable transaction has its th entry positive and its th entry negative. Notice that the direction of the edge is from negative to positive: thus an edge indicates a potential flow of value from account to account . It is often convenient to label the vertex set by the integers rather than the accounts. Note also the connection with the digraph of a transaction defined in Chapter 3: the digraph of the system is just the union of the digraphs of all the allowable transactions.
10.2.1.1. Example (4.2.1).
Consider a system over with five accounts, one specific allowable transaction and three allowable transaction types,
The digraph of this accounting system is:
graph TD
1((1)) --> 5((5))
5 --> 2((2))
5 --> 3((3))
4((4)) --> 2
4 --> 3
4 --> 5
Sometimes one is only interested in the undirected graph of an accounting system , which arises when all the arrows in the digraph are omitted. If the graph of is connected, i.e., there is a path between any two vertices, then is termed a connected accounting system. Otherwise is disconnected, in which case the graph decomposes into disjoint connected components. Clearly the system in Example 1 is connected. The undirected graph of an accounting system will be important when we consider the question of decomposability of accounting systems in 4.3.
10.2.1.2. Example (4.2.2).
Consider a 6-account system with allowable transactions and types
Here the graph is disconnected, with two connected components:
Thus the accounting system is disconnected.
It is clear from the definition that the digraph of an accounting system cannot contain loops. In fact this is the only restriction on the digraph.
(4.2.1). Let be a digraph with vertices which has no loops. Then there is an accounting system on accounts over any ordered domain with digraph .
Proof
Let denote the vertices of . The accounting system to be constructed has account set . If there is an edge from vertex to vertex in , put the elementary transaction in the set of allowable transactions . Then is an accounting system whose digraph is .
This result should be compared with the much stronger condition for a digraph to be the digraph of a transaction, which is given in 3.3.4.
10.2.2. Feasible transactions and the feasible digraph
In an accounting system there are likely to be transactions that can be executed by means of a sequence of allowable transactions, but which are not themselves allowable. Such transactions do not contribute edges to the digraph of the system, but they can be used to augment it to form a larger digraph.
Consider an accounting system
and let be its digraph. A transaction which is the composite of a finite sequence of allowable transactions is called a feasible transaction for . Allowable transactions are feasible, but the converse need not be true. Since , a typical feasible transaction vector has the form
where are allowable transaction vectors and the are non-negative integers. Let us write
for the set of all feasible transactions for . Of course . Then we can form a new accounting system
in which the set of allowable transactions is . The feasible digraph of is defined to be the digraph of . It is evident that is a subdigraph of the digraph . Notice that represents flows of value in the system due to the action of feasible transactions, i.e., of sequences of allowable transactions.
10.2.2.1. Example (4.2.3).
Consider the accounting system with three accounts and two specific allowable transactions:
The digraph of this system is
To find the feasible digraph we must identify the feasible transactions: these are all of the form
where are non-negative integers. Now the inequalities and are clearly contradictory. Therefore there cannot be an edge in the feasible digraph. On the other hand, setting , yields the feasible transaction vector
which demonstrates that there is an edge . It follows that the feasible digraph of the system is:
There are clearly limits to the amount of information about an accounting system that can be gleaned from its digraphs. For example, the digraphs do not enable us to tell what the allowable transactions are, but only the flows which they produce. Nor do they give information about the allowable balances. Nevertheless digraphs are a useful way of visualizing the effect of an allowable transaction or feasible transaction on an accounting system.
10.2.3. Equivalent accounting systems
Consider two accounting systems with the same set of accounts and over the same ordered domain,
Then and are said to be equivalent if they have the same sets of feasible transactions: plainly this amounts to saying that an allowable transaction of one system is feasible in the other. Thus equivalent systems have the same feasible digraphs. What this means in practice is that, provided that balance restrictions are ignored, the two systems will arrive at the same final balance vector if they start from a common initial vector, albeit by means of different sequences of transactions. On the other hand, equivalent systems may have quite different sets of allowable transactions. Thus we should think of equivalent systems as possibly different systems having the same capacity to compute account balances.
10.2.4. Bounded accounting systems
A natural way to restrict the account balances in an accounting system is to place upper or lower limits on them. For example, a customer's account with a retail firm is likely to have a credit limit, which will appear as an upper bound after allowing for the positive sign of the account entry. A cash account might have a minimum balance, which would mean that there is an lower bound for the account balance. There might also be accounts without balance restrictions.
We proceed now to formalize these ideas for an accounting system with accounts over an ordered domain . To allow unbounded values for some accounts, it is convenient to introduce the symbols and with their usual meanings. Thus the inequalities are valid for all .
A pair of functions
is called a bounding pair provided that
for . Next define
where an inequality says nothing and is to be ignored if or . Now form the accounting system
where . For a balance vector to be allowable, it must fall in the set , i.e., have its balances restricted by the functions ; of course there might be further restrictions, so could be a proper subset of .
An accounting system which comes equipped with a bounding pair of functions will be called a bounded accounting system. If have all their values finite, i.e., not , then the system is termed absolutely bounded.
On the other hand, if all balance vectors are allowable, so that
we call the system unbounded. Finally, if all balance vectors and all transaction vectors are allowable, so that
then is called a free accounting system.
10.3. 4.3. Subaccounting Systems
In the study of many algebraic structures there are common concepts that appear at an early stage in the development of the theory. One such concept is the notion of a sub-structure, which means, roughly speaking, a structure that is contained inside a larger structure of the same type. Examples which come to mind include subspace and submodule. In view of this phenomenon it is reasonable to introduce the concept of a subaccounting system in accounting theory.
In order to come up with the “right” definition, we need to look at a real life system. In the case of a large firm there are likely to be subdivisions or units with a considerable degree of autonomy. Such a unit might have a set of accounts under its control and be able to execute transactions on these accounts, although such transactions would still need approval at senior management level. The unit's allowable transactions would likely not affect accounts which are outside its control. In addition, allowable balances for the unit would always have to be compatible with those for the entire system. These observations suggests how a subaccounting system should be defined.
10.3.1. Definition
Consider an accounting system with accounts over an ordered domain
with the usual notation and conventions. An accounting system over is said to be a subaccounting system of if the following conditions are satisfied:
- 1. ;
- 2. if , then the restriction of to is a balance vector;
- 3. ;
- 4. .
Some explanation of these conditions is called for at this point, but first recall that the support of is the set of accounts for which has a non-zero entry,
Of course (1) asserts that each account of is an account of . According to (2) the restriction of an allowable vector of to must be a balance vector; this ensures that the system is always in balance when transactions are applied to . The effect of (3) is that the allowable transactions of are the restrictions to of allowable transactions of which do not affect accounts outside . Finally, (4) asserts that the allowable balance vectors of are precisely the restrictions to of allowable balance vectors of .
It is obvious that every accounting system is a subsystem of itself. A subsystem of a system with fewer accounts than is called a proper subsystem of . In general an accounting system might have no proper subsystems; in fact it possible to give a criterion for the existence of proper subsystems.
(4.3.1). An accounting system has a proper subsystem if and only if there is a proper non-empty subset of such that is a balance vector whenever .
Proof
If is a proper subsystem of , then and has the property stated by part (2) of the definition. Conversely, let be a subset of satisfying the condition and define
and
Let be the accounting system . Then is a proper subsystem of since properties (1)–(4) of the definition are valid.
The concept of a subsystem is illustrated by some examples.
10.3.1.1. Example (4.3.1).
Consider the accounting system over on accounts with allowable transactions
whose the allowable balance vectors are all vectors of the form
This has a proper subsystem on accounts with one allowable transaction vector and allowable balance vectors , where .
10.3.1.2. Example (4.3.2).
Let be the accounting system over on accounts with allowable transactions
and allowable balance vectors
This accounting system has no proper subsystems. For if were the account set of a proper subsystem, we see from the allowable transactions that the only possibilities for would be and . However, in each case the restriction to of an allowable balance vector need not be a balance vector, so neither is possible.
10.3.2. Joins of accounting systems
Our next object is to describe a method for splicing together a number of different accounting systems to produce a larger system, called the join, which contains the original systems as subsystems. In algebra this is a familiar procedure, a typical example being the direct sum of vector spaces. In fact this could occur in real life accounting situations, for example, when two or more previously independent divisions of a company are consolidated into a single entity. Of course in such a case this might result in duplicate accounts, for example if each division had an account with the same third party. Thus the join operation would have to be followed by an amalgamation of accounts, a procedure that will be made precise in Chapter 5 by introducing quotient systems. Thus the consolidation process can be visualized as a join followed by passage to a quotient system. Taking the opposite point of view one might seek to break up an accounting system by expressing it as a join of smaller subsystems.
10.3.2.1. Definition of the join
We begin with a set of accounting systems over an ordered domain ,
where the account sets are assumed to be mutually disjoint. Our object is to construct a new accounting system
called the join of the , which has each as a subsystem. Our first move is to specify the account set for : this will be the union
Let the accounts in be linearly ordered first by the order of sets
and then by using the order of elements within each set .
Writing for , the number of accounts in , we see that the number of accounts in is
If , define a vector
by the following rule:
Thus, in passing from to , we insert zeros in for all accounts in where , noting that is also a balance vector. (The same rule may be applied with a type in place of ).
The set of allowable transactions and transaction types for is defined to be
Thus the allowable transactions for arise from those of the original systems by inserting zeros at appropriate points in the column vectors.
The procedure for defining the set of allowable balances is a little different since it is natural to impose the balances restrictions of only on the accounts in . Therefore we define the set of allowable balance vectors for to be
The point to observe here is that affects balances of accounts in only through its -component . Finally, the join of the systems is defined to be
A basic property of join is stated next.
(4.3.2). In a join of accounting systems each is a subaccounting system.
Proof
Let . A typical allowable transaction vector of has the form where for some , and ; also since has zero entries for accounts not in . A typical allowable balance vector for has the form where , and clearly . Hence is a subsystem of .
Example (4.3.3). To illustrate the join procedure consider the join of two accounting systems and defined as follows.
and
where and are subsets of and consisting of vectors all of whose entries lie in the respective finite intervals and . Thus and are absolutely bounded systems.
The join has seven accounts . The allowable transactions and types for arising from are:
and
Also the allowable transactions coming from are
The allowable balance vectors for are of the form
where lie in , while those for are of the form
with in . Thus a typical allowable balance vector for the join is
which equals
where and are in and respectively.
A notable property of the join of accounting systems is that a transaction that can be executed by one of the factors of the join can also be executed by the system as a whole. More precisely the following is true.
(4.3.3). Let be a join of accounting systems, where . Suppose that and for a fixed . Then there exist and such that , and .
Proof
Choose any for . Define and put ; thus and . Also . Since equals if and if , we have . Hence and have the required properties.
However, the property of 4.3.3 does not hold for arbitrary subsystems: there can be transactions executable in a subsystem which are not executable in the whole accounting system.
10.3.2.2. Example (4.3.4).
Let be the accounting system with accounts , allowable transactions
and allowable balances
The system has a subsystem on accounts with allowable transaction and allowable balances and .
Suppose that has initial balance and the allowable transaction is applied; then this results in the allowable balance . However, this transaction cannot be executed in . For if it could, the initial balance vector would have to be one of the vectors
on the other hand, the final balance vector after applying an allowable transaction must be
However, neither transaction gives the correct answer.
10.3.3. Decomposable accounting systems
For the remainder of the chapter we shall study the question of when an accounting system can be expressed as a join of proper subsystems. First some terminology. If an accounting system can be written as the join of two or more subsystems, then it will be called decomposable: note that the subsystems in question will necessarily be proper. If this is not possible, then is said to be indecomposable. It is natural to ask how one can tell if a given system is decomposable. The first result provides a necessary condition for decomposability.
(4.3.4). Let be a decomposable accounting system with , . Then is disconnected and each connected component is contained in some where .
Proof
Let and be the respective graphs of and . By definition of the join, the vertex set of is the union of the (disjoint) vertex sets of the , and also the edges of are the edges of all the . Thus is the union of the disjoint subgraphs , so is a disconnected graph, and hence the system is disconnected. Also each connected component of , i.e., of , is contained in one of the subsets .
One might hope that the converse of 4.3.4 would be true, but this is not the case, the reason being that disconnectedness does not place restrictions on the allowable balance vectors.
10.3.3.1. Example (4.3.5).
Let be an accounting system with accounts , allowable transactions
and allowable balance vectors
where and . Clearly is disconnected and its graph is:
However, is indecomposable. Indeed, assume that with , , and . Then and belong to , say, since and are affected by an allowable transaction of and hence of or . Clearly neither nor can be in , otherwise . Therefore and . But if is the allowable balance vector with components 50, 100, , , then is not a balance vector. Therefore cannot be decomposable.
A key tool in studying the decomposability of accounting systems is the support of a balance vector. Using this concept we can state a necessary and sufficient condition for an accounting system to be decomposable.
(4.3.5). Let be an accounting system over an ordered domain . Then is decomposable if and only if there is a partition of with which has the following properties:
- (a) if , then the support of is a subset of some ;
- (b) if , then is a balance vector for ;
- (c) if , then
Proof
Assume that is decomposable and where : write . Then is a proper partition of . If , then by definition the transaction affects only accounts in some and thus . If , then by definition , so that is a balance vector for each . Finally (c) is valid by definition of the allowable balances in a join.
Conversely, assume that there is a partition satisfying conditions (a), (b), (c). We show that is decomposable. The idea is to define a subsystem for , with account set . If , write . If , then for some by (a) and hence is a balance vector. Define
If , then is a balance vector by (b); now define
Then is an accounting system. We will show that .
Firstly is the union of the disjoint sets . If , then for some and ; moreover is a typical element of . Also affects only accounts in . If , then and . Finally, if , then and so we have
by (c). This completes the proof that , and hence is decomposable. □
10.3.3.2. Example (4.3.6).
Consider the 5-account system which has allowable transactions
and allowable balance vectors
where .
The supports of the allowable transactions are , , respectively. Each of these subsets lies inside a member of the partition . The restrictions of an allowable balance vector to the subsets of this partition are balance vectors, and also condition (c) in 4.3.5 holds. Therefore is decomposable.
In fact where are defined as follows. First of all has account set , with , , and allowable transaction , and allowable balance vectors , . Then has account set with , , and allowable transactions
and allowable balances
Of course, the system is disconnected, its graph being
Notice that in the last example the two subsystems and are indecomposable since their graphs are connected. It is an interesting fact that every accounting system can be expressed as the join of a set of indecomposable subsystems, a result which underscores the significance of indecomposable systems.
(4.3.6). Let be an arbitrary accounting system. Then can be expressed in the form
where the are indecomposable subsystems.
Proof
We establish the existence of the decomposition by induction on the number of accounts. If is indecomposable, there is nothing to prove, so we assume it is decomposable. Thus where are subsystems. Since and have fewer accounts than , each of them is a join of indecomposable subsystems. Therefore the same is true of and the result is proved.
We conclude with an example where a given accounting system is expressed as a join of indecomposable subsystems.
10.3.3.3. Example (4.3.7).
Let be the accounting system with accounts , , where the allowable transaction vectors are:
The allowable balance vectors for are the vectors of the form
where . The graph of the system has three connected components , , .
graph LR
a1((a1)) --- a2((a2))
a2 --- a3((a3))
a4((a4)) --- a5((a5))
a6((a6)) --- a7((a7))
a7 --- a8((a8))
style a1 fill:none,stroke:none
style a2 fill:none,stroke:none
style a3 fill:none,stroke:none
style a4 fill:none,stroke:none
style a5 fill:none,stroke:none
style a6 fill:none,stroke:none
style a7 fill:none,stroke:none
style a8 fill:none,stroke:none
We look for indecomposable subsystems by examining the supports of the allowable transactions. In fact there are three obvious candidates. The first is with accounts and allowable transaction vectors
The second subsystem has accounts and allowable transaction vector
The last subsystem has accounts and allowable transactions
The subsystems are all indecomposable since their graphs are connected.
The respective allowable balance vectors for are all the vectors of the forms
where . Notice that
and also that . Hence .
11. Chapter FiveQuotient Systems and Homomorphisms
11.1. 5.1. Introduction to the Quotient Concept
In our efforts to provide realistic models of accountancy systems it has been an on-going concern to show how standard operations in accounting can be represented by algebraic concepts. Thus balances, transactions and the rules of operation of an accounting system were seen to be representable within the framework of abstract accounting systems, as defined in Chapter 4. This program is continued in the present chapter by showing that the key algebraic concept of a quotient structure is able to model the procedure for generating reports on an accounting system.
A report on the financial condition of an organization consists of data obtained from the balance sheet by combining balances in groups of accounts which are subject to a common control mechanism. At the simplest level one could combine all the asset accounts, liability accounts and equity accounts in three new accounts. These combined accounts furnish limited but essential information about the state of the system. This is the most basic form of report.
More generally the accounts of an accounting system fall into a number of control groups, for example, accounts receivable, accounts payable. When the balances of all the accounts within the same group are combined, a report on the system is generated which provides information about the states of the various groups.
This procedure for generating a report is mirrored precisely by the algebraic notion of a quotient structure. By a process of combining accounts one arrives at a smaller accounting system called a quotient system. Thus we are motivated to introduce and analyze these systems.
An accounting system and its various quotient systems are linked by the procedure of forming reports. A more general question arises when one asks how two arbitrary accounting systems are related. Once again we can turn to abstract algebra for guidance. It is a very common question to ask what the relationship between two algebraic structures of the same type might be and how they can be compared. The usual approach is to look for functions between the structures which connect their internal operations: such functions are called homomorphisms.
It is our purpose here to introduce the concept of a homomorphism between the accounting systems and use this as a means to compare accounting systems. Homomorphisms are intimately related to quotient systems since the procedure for forming a report is an example of a homomorphism. Several other examples of homomorphisms that occur in practice are described below.
In the final section the theory of homomorphisms of accountancy systems is developed further, culminating in a series of “isomorphism theorems.” These provide detailed information about homomorphisms and their relation to quotient systems; they also have applications to accounting systems. The appearance of such isomorphism theorems is a phenomenon which occurs throughout algebra.
11.2. 5.2. Quotients of Accounting Systems
Consider an accounting system over an ordered domain . We will explain how to form new accounting systems from called quotient systems. To form a quotient system of we need to have an equivalence relation on the set of accounts . First recall that an equivalence relation on a set is a binary relation for which the following properties are valid for all :
- 1. reflexivity, is always true;
- 2. symmetry, implies ;
- 3. transitivity, and imply that .
The equivalence class containing is the subset of
We recall the fundamental fact that distinct equivalence classes are disjoint. Thus the set is the union of disjoint equivalence classes, i.e. the equivalence classes form a partition of . Conversely, given a partition of a set , an equivalence relation on is defined by declaring that two elements of are -equivalent if they belong to the same subset in the partition.
Returning to the accounting system , we choose an equivalence relation on and define
i.e., is the set of all distinct -equivalence classes. Let have elements, say. The set can be ordered by the smallest subscript appearing in each equivalence class.
11.2.1. Example (5.2.1).
Let and let be the equivalence relation on with associated partition
The elements of in order are
In the general case we seek to define an accounting system on called the quotient system of by . The next step is to specify the allowable transactions and balance vectors for the quotient system. Let and define a vector in by the rule
here the summation is over all for which . What this means is that the entries of are totaled for accounts belonging to the same -equivalence class. Observe that
so that .
From this definition we quickly derive the rules
where and . Hence the assignment determines a homomorphism of -modules from to .
11.2.2. Example (5.2.2).
Let be the equivalence relation in Example 5.2.1, where there are five accounts and three subsets in the partition of accounts. Let
Then, according to the definition,
After these preliminaries we are ready to formulate the definition of the quotient of the accounting system determined by an equivalence relation on . Let
be the set of distinct -equivalence classes and define
Then the quotient system of by is defined to be
Thus the accounts of are the -equivalence classes of accounts of , while the allowable transactions and balances of arise from the corresponding entities of by application of the function , i.e., by summing vector entries over each equivalence class.
11.2.3. Examples of quotient systems in accounting
11.2.3.1. (I) Reports
A quotient system of any accounting system arises whenever one has an equivalence relation , i.e. a partition of . From the point of view of accounting, this happens when the account set is split up into various control groups and the quotient system represents a report on the groups.
The simplest case arises from the partition
where are the respective sets of equity accounts, asset accounts, liability accounts. The resulting quotient system has three accounts, namely total equity, total assets, total liabilities. This quotient provides the most basic type of report.
Another quotient system that might occur in practice arises from the partition
where the four subsets of accounts represent equity accounts, current assets, plant assets, liabilities respectively: the quotient system provides a report on these control groups.
Even within asset accounts we can consider other control groups, such as fixed assets, inventories, debtors, financial accounts and items pending. Inside liabilities, on the other hand, we can consider capital and reserves, provisions, medium and long term debt, and current liabilities. At a second level we could consider within fixed assets, tangibles, intangibles, investments and deferred expenses. The list could be multiplied. These control groups are useful for generating reports of various types.
11.2.3.2. (II) Closing accounts
Another instance of a quotient system is when temporary accounts in an accounting system are closed. Consider a system where the account set is partitioned into equity accounts, permanent accounts and temporary accounts
then the temporary accounts are divided into revenue and expense accounts, say . Thus there is a partition
Suppose that the temporary accounts are to be closed and their balances combined and added to the retained earnings account. There are two steps in the procedure to model this operation by quotient systems. Let be the equivalence relation on corresponding to the partition above. In the quotient system the temporary revenue and temporary expense accounts have now been combined into two accounts, while other accounts are unaffected.
The second step in the modeling process involves an equivalence relation on , with a corresponding partition of the accounts of in which the two combined temporary accounts and retained earnings form one subset and thus are merged in the new system . The modeling procedure is summarized by the sequence
it is shown in 5.4 below that “doubledecker” quotient systems of this type may be identified with a single quotient system of .
It should be pointed out that the normal procedure of closing temporary accounts at the end of an accounting period is more complex than that just described since it may involve additional adjustments to account entries.
11.2.4. The hierarchy of quotient systems
The quotient systems of a given accounting system correspond to equivalence relations on , and so to unordered partitions of . There is a well-established combinatorial theory of partitions of a set of distinct objects and this can be applied to the study of quotient systems of .
By use of the Inclusion-Exclusion Principle, it can be shown that the number of unordered partitions of a set with distinct objects into non-empty subsets is given by the formula
The number is called a Stirling number of the second kind. It follows that the total number of partitions of a set of distinct objects equals
which is known as the th Bell number. (For an account of these results from combinatorics see [2]).
On applying the above facts to accounting systems, we conclude that the following holds.
(5.2.1). The number of quotient systems of an accounting system with accounts equals . The number of such quotient systems with exactly accounts is .
As increases, the total number of quotient systems increases rapidly. For example, when , the number of quotient systems is . Of course, relatively few of these quotient systems will correspond to practical accounting procedures.
11.2.5. The partial ordering of quotient systems
There is a natural partial order on the set of equivalence relations on a given set, and hence on the set of quotient systems of an accounting system. Let and be equivalence relations on the account set of an accounting system . This, of course, means that and are subsets of . We define an order on the set of equivalence relations by reverse set inclusion: thus
i.e., -equivalence implies -equivalence. Clearly is a partial order on the set of equivalence relations.
Now use this partial order to define an order on the set of quotients of , also written ,
Again this is a partial order, so that the quotient systems of form a partially ordered set. Notice that the smaller the subset of , the more accounts there are in the quotient . The largest possibility for the quotient occurs when is the set , i.e., is equality. In this case is essentially the same system as . The smallest possibility for is when , i.e., all accounts are equivalent, and has a single account.
There are two natural binary operations called meet and the join which can be applied to equivalence relations on . If and are equivalence relations on , their meet is just the intersection
which is also an equivalence relation on . However, the union is not in general an equivalence relation since the transitive law may fail to hold. To obtain an equivalence relation we must pass to the transitive closure of the relation . Thus we define the join of and to be
Recall here that the transitive closure of a relation is the smallest transitive relation containing , which is just
Here is defined recursively by the rule: if and only if there exists a such that and . It can be verified that meet and join play the roles of greatest lower bound and least upper bound in the partially ordering of equivalence relations on . Consequently we have a lattice. The conclusion for accounting systems is:
(5.2.2). The set of quotient systems of an accounting system is a lattice with respect to the partial order where if and only if .
11.2.5.1. Example (5.2.3).
Let be a system with four accounts . Since , there are exactly 15 quotient systems of , corresponding to the partitions of the account set . For example, the partition
leads to a quotient system with three accounts.
11.3. 5.3. Homomorphisms of Accounting Systems
It is a basic method in algebra to examine functions between two algebraic structures of the same type which relate the internal algebraic properties of the structures. Such functions are known as homomorphisms. As examples we mention homomorphisms of groups and modules, structures which have arisen in earlier chapters.
The importance of homomorphisms stems from the fact that they provide a means of comparing algebraic structures. Because of the widespread applicability of homomorphisms in abstract algebra, it is natural to attempt to construct a theory of homomorphisms between accounting systems. Such homomorphisms provide ways of comparing the accounting systems of different organizations, and can also represent certain commonly used operations on accounting systems.
11.3.1. The definition of a homomorphism
Consider two accounting systems
over the same ordered domain , with account sets and . To define a homomorphism from to we start with a function between the account sets
This is used to generate a function between balance modules
where is defined by the rule
for . Recall here that the image of the function , , is the set . In the definition the sum is to be formed over all for which . Thus the function sums all entries of that correspond to accounts mapped by to the same account in and it assigns an entry of zero to any account of which is not in . Notice that is a balance vector.
It is a simple matter to deduce from the definition that
for all and , equations which show that the function is a homomorphism of -modules.
Before giving the formal definition of a homomorphism from to , we present an example illustrating the formation of the function .
11.3.1.1. Example (5.3.1).
Let and . A function is defined by the rules
Then sends
Here account gets the value 0 since .
After this example we are ready to define a homomorphism from system to system . As before we start with a function . Then is said to determine a homomorphism of accounting systems, written
provided that:
- 1. if , then , i.e., ;
- 2. if , then for some .
What this means is that sends allowable transactions of to allowable transactions of which affect only accounts in ; on the other hand, sends an allowable balance vector of to a balance vector that agrees in its -entries with some allowable balance vector of . Notice that in condition (2) the vector might have non-zero entries for accounts in and might not belong to .
11.3.2. Monomorphisms, epimorphisms, isomorphisms
There are three special types of homomorphisms which are of importance. Suppose that is a homomorphism of accounting systems. If the function is injective, i.e., distinct accounts in are sent to distinct accounts in , then is called a monomorphism. This means that , so has at least as many accounts as . Another point to notice is that if and this is zero if . It follows that is injective and hence is a monomorphism of -modules. Also an allowable transaction of with zeros inserted for accounts in becomes an allowable transaction of . In addition each allowable balance vector of is the restriction to of some allowable balance vector of . This type of homomorphism arises when new accounts are added to an accounting system – see Example 5.3.2 below.
The next special type of homomorphism is one for which the function is surjective. Under these circumstances each account in is the image under of an account in and . It is easy to see that is surjective and hence it is an epimorphism of -modules. If in addition
then is called an epimorphism of accounting systems. An important example of an epimorphism arises when a quotient of an accounting system is formed — see Example 5.3.3 below.
Finally, a homomorphism is called an isomorphism if it is both a monomorphism and an epimorphism. Under these circumstances is a bijection and it sets up a one-one correspondence between the accounts, allowable transactions and allowable balances of and the corresponding entities of . If there is at least one isomorphism from to , then and is called isomorphic systems and the notation
is used. The essential observation is that isomorphic accounting systems are subject to the same rules of operation, although their account sets may be different. If is an isomorphism of accounting systems, it has an inverse, namely the homomorphism
which arises from the set function , the inverse of the bijection .
11.3.3. Automorphisms
Following a widely used terminology in algebra, we call an isomorphism from an accounting system to itself an automorphism of . The set of all automorphisms of is denoted by
Observe that an automorphism is a permutation of the account set and thus is a subset of the symmetric group , which consists of all permutations of and whose group operation is functional composition. Now if is an automorphism of , then by definition has the properties and , so that the sets of allowable vectors of are permuted by means of the action of the permutation on vector entries. Conversely, any permutation of such that and gives rise to an automorphism of .
It is convenient to think of the automorphism as permuting the integers in the same way as it permutes the accounts . With this convention the definition of shows that since is the unique account sent by to . If are automorphisms, then
For, if , then
while
which establishes the claim.
From the equation just established it follows that the composite of two automorphisms is an automorphism. Now obviously the identity permutation on is an automorphism, and the inverse of an automorphism is an automorphism since and equal the identity. Therefore we can assert that is a subgroup of the symmetric group . The next result summarizes this discussion.
(5.3.1). Let be an accounting system. Then
and is a subgroup of the symmetric group .
An automorphism group can be assigned to many algebraic structures, for example, groups, rings and modules. The importance of automorphism groups is that they tend to measure the amount of symmetry present in the structure. This is also the case with accounting systems. The more “symmetric” the sets of allowable vectors and , the larger will be the group where . For an extreme example suppose that is the free accounting system, where ; then coincides with the whole symmetric group .
One can envisage real-life situations where an accounting system has non-trivial automorphisms. For example, there might be two accounts that are subject to identical transaction and balance restrictions. Then interchanging the two accounts and fixing all others would lead to an automorphism of the accounting system. An example would be when two pieces of equipment are purchased at the same time for the same price and are subject to the same depreciation rules.
11.3.4. Examples of homomorphisms
We shall discuss in detail two sources of homomorphisms that will be present in most accounting systems.
Example (5.3.2). (Monomorphisms and adjunction of accounts)
A procedure that is standard for many accounting systems is the creation of new accounts. This gives rise to a monomorphism.
Let be an accounting system with accounts and suppose that it is desired to create a number of new accounts . Then the new account set is
with accounts in the order shown. Let
be the inclusion map, i.e. , for .
A new accounting system is to be created with account set ; its allowable vectors should include and . In practice one would expect there to be additional allowable transaction vectors that apply to the new accounts . Also it will be necessary to add further allowable balance vectors since those in have zero entries corresponding to new accounts.
With these remarks in mind, we choose subsets and of which have zero entries for accounts and put
Then the new accounting system is to be . Thus has additional accounts and it has additional allowable vectors, as well as those inherited from . Finally, the inclusion map gives rise to a homomorphism
since and : clearly this is a monomorphism. Thus adjunction of the new accounts and allowable vectors to the existing accounting system sets up a monomorphism from the original system to the new system.
11.3.4.1. Example (5.3.3). (Epimorphisms and combinations of accounts)
An important way in which epimorphisms arise is when certain accounts in an accounting system are combined, i.e. a quotient system is formed. This is a situation familiar to every algebraist. From the accounting perspective it means that epimorphisms are capable of representing the procedures for generating reports on accounting systems.
Suppose that is an accounting system and is an equivalence relation on the account set . Then, as was explained in 5.2, there is a corresponding quotient system
where is the set of -equivalence classes and
with being determined by the rule .
There is a natural surjective function
defined by , i.e., assigns to each account in its -equivalence class. Then, as was observed at the beginning of this section, induces a surjective -module homomorphism
where is the number of -equivalence classes. The definition of shows that
and therefore . Consequently, and , equations which show that
is an epimorphism of accounting systems. This is called the canonical epimorphism from to : it is easy to remember its effect since this is to identify all accounts in the same -equivalence class.
Take the simplest example, where partitions the set into asset, liability and equity accounts. The quotient system has three accounts, total assets, total liabilities and total equity, and it represents the simplest type of report. It follows that there is an epimorphism from any accounting system with asset, liability and equity accounts to a 3-account system of this simple type.
The conclusions of the foregoing discussion are summarized in the following result.
(5.3.2). Let be an accounting system and let be an equivalence relation on the account set . Then the assignment determines an epimorphism .
11.4. 5.4. Isomorphism Theorems
In a theory of homomorphisms between algebraic structures an algebraist would expect to find certain theorems called isomorphism theorems which relate homomorphisms with quotient structures. Such results are basic tools in many branches of algebra. Our purpose here is to formulate isomorphism theorems for accounting systems and to interpret these results from the point of view of accounting. The effect is to place the theory in a general algebraic setting.
The principal isomorphism theorem applies to a homomorphism of accounting systems and establishes an isomorphism between a certain quotient system of and a subsystem of called the image of . In a sense this asserts that the essential information about any homomorphism from is to be found within the quotient structures of .
Before proceeding to the statements of the theorems, it is necessary to examine two critical facets of a homomorphism, the associated equivalence relation and the image.
11.4.1. The equivalence relation associated with a homomorphism
Consider a homomorphism between accounting systems and over an ordered domain . This arises from a function between account sets . An equivalence relation
on is defined by the rule
Thus is associated with a partition of in which accounts belonging to the same subset have the same image under . The equivalence relation can be used to construct the quotient system , which already suggests a close relationship between homomorphisms from and quotients of .
11.4.2. The image of a homomorphism
Another important feature of a homomorphism of accounting systems is its image
which is contained in , although not necessarily as a subsystem. The account set of is the image of under the set function , also written or . Let
be the surjective function sending to ; thus acts like , but it has smaller codomain. Then induces a module homomorphism
where , and is defined by the usual rule
Here the sum is formed over all accounts with the same -value as . Thus and are subsets of . The image of is defined to be the accounting system
Suppose that ; then is a typical allowable vector for the accounting system . If , then differs from only through its -entries, all of which are zero. If , then by definition of a homomorphism where . Again differs from only in its -entries, but these need not be zero in this case.
From such considerations one might suspect that the would be a subaccounting system of : however, this is only true with additional conditions, reflecting the full force of the requirements for a subsystem given in 4.3.
(5.4.1). Let be a homomorphism of accounting systems. Then , the image of , is a subsystem of if and only if the following conditions are satisfied:
- 1. If , then is a balance vector.
- 2. If and , then .
- 3. If , then .
This is true because the conditions (1), (2), (3) are exactly what is needed to ensure that the image is a subsystem.
We are now ready to state the first of the isomorphism theorems.
(5.4.2). Let be a homomorphism of accounting systems and let be the associated equivalence relation on the account set of . Then the assignment induces an isomorphism .
Proof
Write ; then where is defined by . Let where is the set of -equivalence classes . A function between account sets
is defined by . The first thing to observe is that depends only on the equivalence class , not on , so is a well-defined function. Next if , then and hence . Therefore is injective: since it is obviously surjective, is a bijection.
It remains to show that induces an homomorphism , for which purpose it suffices to prove that and . Let ; then by definition of the quotient system , there exists such that , where is the standard epimorphism defined in 5.3. Thus
But
since is injective. Therefore for all and thus
Hence and . Since the equation holds for any with , we conclude that and , which completes the proof.
There are two special cases of 5.4.2 which merit attention.
11.4.2.1. Example (5.4.1).
Suppose that is a monomorphism of accounting systems. Then has account set , , and since is injective. Thus the accounts of are the singleton sets , . This means that and are essentially the same system or, more precisely, they are isomorphic systems. According to 5.4.2, the accounting system is isomorphic with the image system . Therefore too is isomorphic with and so one can think of the monomorphism as “embedding” in the larger system . The procedure for adding accounts described in 5.3 is an instructive example of a monomorphism.
11.4.2.2. Example (5.4.2).
Let be an epimorphism of accounting system. By definition , and , so that . Then 5.4.2 shows that is isomorphic with the quotient system .
Another indication of the importance of monomorphisms and epimorphisms is provided by the next result.
(5.4.3). Every homomorphism between accounting systems may be expressed as the composite of an epimorphism followed by a monomorphism.
Proof
Let be a homomorphism between accounting systems. Following the previous convention, we write for the equivalence relation on determined by and for the canonical homomorphism from to defined by the rule ; furthermore is the isomorphism in 5.4.2, so that . Let denote the inclusion map; this induces a monomorphism of accounting systems and it is clear that the composite
is a also monomorphism.
Next for any account we have
Hence and, since is an epimorphism, the result is proved.
We remark that care must be exercised in forming composites of homomorphisms of accounting systems. Examples show that the composite of a monomorphism followed by an epimorphism need not be a homomorphism, which is in contrast to the statement of 5.4.3: the reason for this is that an allowable balance vector need not be mapped to the restriction of an allowable balance vector by the composite, as is required by the definition.
11.4.3. Quotients of quotient systems
The final isomorphism theorem gives information about quotient systems of quotient systems. It reveals that these potentially complex objects are in fact no worse than quotients of the original system. The accounting interpretation here is about reports on reports. In the accounting system of a large organization accounts may be grouped into control groups, and the control groups may themselves be grouped into control groups. The process of forming reports on the groups and on the subsidiary groups gives rise to the quotient of a quotient situation.
Let be an accounting system and let be an equivalence relation on the account set . Then has as its account set , the set of all -equivalence classes . Now suppose that is an equivalence relation on , so that it is possible to form the quotient of the quotient system by , i.e.,
The key to understanding this complex object is the observation that and determine a new equivalence relation on denoted by
where by definition
In terms of partitions, arises by taking the partition of determined by and forming the union of all subsets in this partition that belong to same subset in the partition corresponding to . This procedure leads to a partition with larger subsets than which determines the equivalence relation . We can therefore form the quotient system
The connection with quotients of quotients is shown by:
(5.4.4). Let be an accounting system. Suppose that is a quotient of and a quotient of . Then
Proof
Write and . We begin the proof by introducing a function , which is defined by the rule
This is in fact a well-defined function since implies that , i.e., . It is clear that is surjective; we will show that induces an epimorphism from to . Let where and write , so that . Since , we have
In the right hand sum the entries are first summed over the -equivalence class of , and then these sums are added up over the -equivalence class of . Therefore, by definition of ,
for all . It follows that and hence that because . Next we have and . In addition and , so we can deduce that
and in a similar way . Hence induces an epimorphism of accounting systems . By 5.4.2 we obtain .
In order to complete the proof we need only show that . Now holds precisely when , i.e., by definition of ; this is equivalent to , from which we deduce that .
Since the last proof is rather complicated, we will illustrate it with an example.
11.4.3.1. Example (5.4.3).
Consider an accounting system over with six accounts , . Let be the equivalence relation on with partition
The quotient system has three accounts
Let be the equivalence relation on the account set of with partition
Then has two accounts
Notice that the accounts of are sets of sets of accounts of , so this system is a complex object. However, is isomorphic with the system by 5.4.4. Now the equivalence relation on has partition
so, as expected, also has two accounts
Next let have entries
Now we pass to successive quotients and , computing the images of . Thus has entries , , , and has entries , . Finally, observe that has the same entries as , as we expect from 5.4.4.
In conclusion we remark that this chapter is more abstract than most others in the book. However, it should be stressed that the isomorphism theorems which have been established have interpretations that give insight into the operation of accounting systems. They lend credence to the role of algebra in accounting theory and serve to affirm the position of the algebraic theory of accounting within the general area of applied algebra. A final note: algebraists may have noticed the absence of one type of isomorphism theorem that is found in many parts of algebra. This is a result asserting that the image of a subsystem is isomorphic with a subsystem of the image. In general there is no such result in accounting theory since the image of a homomorphism need not be a subsystem.
12. Chapter SixAccounting Systems and Automata
An automaton is a theoretical device which can simulate the operation of a digital computer. The algebraic theory of automata had its origins in the researches of A.M. Turing and C. Shannon. Recently automata theory has been applied in such diverse fields as biology, psychology, biochemistry and sociology. It has also been applied to economics through systems theory (Ames [1983]) and, more recently, to finance (Cruz Rambaud and García Pérez [2001]). It turns out that the accounting process can be described in terms of certain automata in which the state of an accounting system is transformed through the action of inputs, i.e., transactions, giving rise to specific outputs providing information about the system. The aim of this chapter is to lay out an approach to accounting using the concept of an automaton and to show how the operation of the double-entry bookkeeping system can be modeled by using this mathematical concept. The chapter begins with a brief introduction to automata theory.
12.1. 6.1. Introduction to Semiautomata and Automata
A semiautomaton is a triple
consisting of two non-empty sets and and a function
Here the set is called the set of states, the input alphabet and the next state function of . The semiautomaton functions in the following manner: if the semiautomaton is in a state and it reads an input symbol , then it moves to a new state .
A more complex concept is that of an automaton, by which is meant a quintuple
where is a semiautomaton, is a non-empty set called the output alphabet and
is a function called the output function. The automaton operates as follows. If the automaton is in state and it reads an input symbol , then moves to the new state and it prints the output symbol . Observe that a semiautomaton can be regarded as an automaton in which the states serve as the output symbols.
It is helpful to think of the automaton as a box with a head which can read symbols on an input tape and print symbols on an output tape. At any instant the automaton is in some state; after reading an input symbol, it prints a symbol on the output tape and moves to another state.
The diagram illustrates an automaton as a box. Above the box is a horizontal input tape with a series of five small squares representing input symbols. An arrow labeled "input" points to the left towards the tape. Below the box is a horizontal output tape with a series of five small squares representing output symbols. An arrow labeled "output" points to the left towards the tape. The box itself is a large rectangle. To the left of the box, the label is placed next to the first output symbol. Above the box, the label is placed between the input and output tapes, indicating the state transition function.
12.1.1. The digraph of an automaton
Automata and semiautomata can be represented by labeled digraphs. Take the case of a semiautomaton with state set , input alphabet and next state function : the states are represented by vertices of the digraph and there is a directed edge from to with a label if . If the semiautomaton is an automaton, the output can be represented by an additional arrow drawn from the initial state.
- • The case of a semiautomaton:
A diagram showing a semiautomaton. It consists of two states, and , each represented by a circle. A horizontal arrow points from to , and the label is placed above this arrow.
- • The case of an automaton:
A diagram showing an automaton. It consists of two states, and , each represented by a circle. A horizontal arrow points from to , labeled above it. Additionally, a diagonal arrow points from downwards and to the right, labeled below it.
12.1.2. The monoid of a semiautomaton
A monoid is an algebraic structure consisting of a set equipped with an associative binary operation and an identity element. A standard example of a monoid is the set of all functions on a non-empty set where the binary operation is functional composition
which is well-known to be an associative operation. The identity element is, of course, the identity function on . The monoid of all functions on a set will be written
There is a well established procedure for associating a monoid with a semiautomaton. The monoid of the semiautomaton , which is denoted by
is defined as follows. If , there is a function which is defined by using the next state function of ,
Thus is the next state of the semiautomaton if it is initially in state and it reads the input symbol . Of course . Now define the monoid of the semiautomaton to be the submonoid of generated by all the functions where :
This means that each element of is the composite of a finite sequence of functions,
Then and is a submonoid of the monoid .
12.1.3. Extension to a free monoid
It is common practice to regard a sequence of inputs as acting on the states of a semiautomaton or automaton. A concrete example is an elevator: here the floors of a building are the states and the elevator can receive and act on a sequence of messages, not just a single one. This concentrates our attention on the set of sequences of elements from the input alphabet . In algebra there is a tool which allows us to describe this type of object, namely the free monoid on .
Define
to be the set of all words, i.e., finite sequences of elements in , written in the form
the empty word is the case . A binary operation on is defined by concatenation. This means that if and are two elements of of lengths and respectively: then
Thus the operation adjoins to on the right, producing a sequence of length . Obviously is an associative operation on and by convention the empty word is the identity element, i.e.,
for all . Then is a monoid called the free monoid on X.
Returning to our study of the semiautomaton , we extend the input set to the free monoid on it, with as the identity element. We can also extend the next state function to a function by the following recursive definition. Given and , the state is computed by the rules
where . Thus once the action of the sequence of length on the states has been defined, the action of a sequence of length is determined by the preceding equations. In this way the semiautomaton has been extended to a semiautomaton
In the case of an automaton , the action of an input sequence on an initial state produces as an output a sequence of elements of the output alphabet which is determined by a new output function in a similar fashion:
where . Notice that in all these definitions the automaton reads the input symbols in the order . The automaton has therefore been extended to the new automaton
The operation of the semiautomaton can be visualised in the following way. Let be the initial state and let be the input sequence. The semiautomaton passes to successive states where , , the final state being .
In the case of the automaton initially in state , when the input sequence is read, the output sequence is where , . Thus the automaton can be represented by the diagram below.
The diagram illustrates an automaton with states represented by circles. Transitions are labeled with input symbols above the arrows. From each state , there is a diagonal arrow pointing down to an output symbol . The sequence of outputs is .
Next we consider the connection between the monoid of a semi-automaton and that of its extension .
(6.1.1). The monoids of a semiautomaton and its extension are identical.
Proof
Recall that is generated by all functions where and . Similarly is generated by all functions where . From this one can prove that the following rule holds:
where . Indeed by definition of the function , we have for any and
which equals
Therefore and the claim follows by induction on . The result is now evident.
12.1.4. Equivalence relations associated with an automaton
There are two notable equivalence relations on the input set and the state set that can be applied to an automaton.
12.1.4.1. 1. An equivalence relation on inputs
Consider an extended semiautomaton , where the bar has the usual interpretation. We define a binary relation on by saying that and are equivalent if
which amounts to saying that
for every . Obviously this relation is an equivalence relation on . In words two sequences of inputs are equivalent if, starting from the same state, they always produce the same new state.
12.1.4.2. 2. An equivalence relation on states
Let be an extended automaton. Two states will be called equivalent if for every
Again it is clear that this is an equivalence relation on . Thus two states are equivalent if they lead to the same output when the same input is read.
This concludes our introduction to automata theory: for a detailed account see [5]. In the following sections we will describe two ways in which the operation of an accounting system can be represented by an automaton. Both automata keep track of the transactions applied and the evolving balance sheet of the accounting system, while the second more complex automaton also controls the times at which a transaction can be performed.
12.2. 6.2. Accounting Systems as Automata I
Recall from Chapter 4 that an accounting system over an ordered domain is a triple
where is the set of accounts, is the set of allowable transactions and is a set of allowable balance vectors for the system. There is a straightforward way to represent the mode of operation of the accounting system by an automaton
defined in the following way.
- • The state set is .
- • The input set is where is the number of accounts.
- • The output set is where the symbols and stands for error messages, specifically
- – : “the transaction is not allowable”;
- – : “the balance vector is not allowable”.
- • The next state function is given by the rule:
- • The output function is given by the rule:
The automaton functions in the following manner. Assume that the accounting system has balance vector at some instant, so . A transaction is applied to the system where . Suppose that , i.e., the transaction is allowable; then the balance vector is computed. If is in , the new balance is allowable and it becomes the next state. The new balance is then printed on the output tape. If , the transaction is not allowable and is rejected: the state remains and the error message is printed on the output tape. Finally, if and , the transaction is rejected since it would lead to a non-allowable balance. The automaton remains in state and the error message is printed on the output tape.
12.2.1. Remark.
As was observed in 4.2, it is reasonable to require that the set of allowable transactions contain the zero transaction: otherwise, when the zero vector is read by the automaton, an error message will be generated, even although the transaction does not change the system.
What the automaton achieves is the generation of a matrix which displays the financial history of the accounting system , the rows of the matrix corresponding to the accounts and the columns to the transactions: this is the balance matrix, which was introduced in 3.1. The first column of the matrix is the balance vector whose entries are the initial account balances. As each transaction is applied, a new column is generated, which is the current balance vector. The last column of the matrix gives the final account balances. As was mentioned in 3.1, the applied transactions can be recovered from the balance matrix since the th transaction applied to the system is obtained by subtracting the th column from the th; if the resulting difference is zero, then either a non-allowable transaction was applied or else a non-allowable balance vector was produced.
The automaton has the advantage of being quite simple and of displaying most of the data that one would normally require. In 6.3 we will introduce a second automaton associated with an accounting system which introduces the element of time, the so-called time enhanced automaton of the system.
12.2.2. The monoid of an accounting system
Let be an accounting system; then the associated automaton has a monoid , which will be called the monoid of the accounting system and denoted by
By definition is generated by all functions of the form , where : recall that
Thus provided that and , and otherwise . Of course, and is a submonoid of the monoid .
Each element of is the composite of a finite sequence of functions and has the form . Note that if is not allowable, then is the identity function and thus can be deleted from the composite: consequently we can assume that each in the composite belongs to . In addition, must yield an allowable balance vector, otherwise it will produce no effect on the balance vector. This discussion shows that in selecting generators for we can restrict ourselves to vectors in such that belongs to the set for some . Hence we can assume that has the form where and belong to . This conclusion may be stated in the following form.
(6.2.1). Let be an accounting system. Then
where denotes the set of all differences with . Hence every element of has the form where .
12.2.3. Monoids of unbounded systems
With a general accounting system it can be difficult to understand the structure of its monoid, particularly when complex balance restrictions are present. It is worthwhile looking at the monoids of accounting systems in which the sets of allowable transactions and balances are large. While it might be objected that such systems are unrealistic, they do provide insight into the algebraic structure of the monoid and how its properties are related to those of the accounting system.
12.2.3.1. Example (6.2.1).
Consider an accounting system with no balance restrictions
In this system all balance vectors are allowable: recall that such a system is called unbounded. If is unbounded, then every transaction with is accepted by the automaton . It is convenient to write
for the function ; thus
for all . Notice that if and only if ; however, these functions have different values at if since then is the identity function.
If , then and both send to . Since also , we have
Thus the commutative law holds in , i.e., it is a commutative monoid. Since
we conclude that is also a commutative monoid.
A further conclusion that may be drawn from the above equation is that the function determined by the assignment is a monoid homomorphism from to . Here denotes the submonoid of generated by all in . The term “homomorphism” in this context refers to the law . Since for and such functions generate , the function is surjective. It is clearly injective, so it is bijective and hence is a monoid isomorphism. Summing up, we have a result which gives a simpler description of the monoid of an unbounded accounting system.
(6.2.2). Let be an unbounded accounting system on accounts over an ordered domain . Then
- 1. is a commutative monoid;
- 2. and hence is isomorphic with a submonoid of .
12.2.3.2. Example (6.2.2).
A still less realistic type of accounting system is where there are restrictions on neither transactions nor balances, as in the accounting system
In 4.2 this was called a free accounting system since it is devoid of restrictions, all transaction and balance vectors being allowable. In this case and 6.2.2 takes the following form.
Corollary. If is a free accounting system, then .
Despite its impracticality, the free system on account set has theoretical significance since it is the “largest” possible accounting system on . It is clear from these examples that the presence of non-allowable balances complicates the structure of the monoid of an accounting system; for example, the monoid may be non-commutative.
Recall from 4.2 that a feasible transaction for an accounting system is a transaction that is a composite of allowable transactions, i.e., a composite of transactions arising from the set . In the case where , i.e., the system is unbounded, the feasible transactions correspond exactly to the elements of the monoid by 6.2.1. This underlines the importance of the monoid of the system. We state this result next.
(6.2.3). The monoid of an unbounded accounting system is the set of all feasible transactions for the system.
Monoids provide a way of comparing different accounting systems on the same set of accounts. Intuitively one would want to compare two such systems by looking at the transactions that can be executed by each system. In 4.2 we defined two accounting systems with the same account set to be equivalent if every allowable transaction of one system is a feasible transaction of the other. Thus, if we disregard the possible occurrence of non-allowable balances, the effect of a sequence of allowable transactions in one system will be identical with that obtained from a similar sequence in the other system. On the basis of these remarks and 6.2.3, we can state:
(6.2.4). Two unbounded accounting systems with the same account set are equivalent if and only if they have the same monoid.
12.2.4. Groups and accounting systems
Consider an unbounded accounting system . We have seen in 6.2.2 that is isomorphic with and that is a commutative monoid. Now suppose that the set of allowable transactions has the property that whenever , i.e., is closed with respect to forming negatives of its elements. Since and are both equal to the identity function,
which is equivalent to saying that the inverse of an allowable transaction is allowable.
What this means for the accounting system is that it is possible to reverse an allowable transaction, i.e., to correct a previously applied transaction. Thus the system has the capacity to correct errors. For this reason an accounting system is called error correcting if is closed under forming negatives. We will discuss error correcting systems and related types of accounting systems in Chapter 7. The algebraic consequence of the error correcting property is that every element of has an inverse given by the formula
where and hence .
Thus we have a commutative monoid in which every element has an inverse, i.e., we have an abelian group. Hence we have:
(6.2.5). If is an unbounded, error correcting system, then is an abelian group.
From the point of view of the algebraist, groups are preferable objects to work with since their structure is much better understood. It may be objected that in practice the inverse of an allowable transaction might not be allowable. For example, a transfer of funds from cash to an employee pension account would be routine, but a transfer in the other direction could be questionable. On the other hand, it is reasonable to suppose that an accounting system should have the ability to correct erroneous entries. Such errors could then be corrected by applying the inverse of an allowable transaction, which should therefore be allowable. Of course, a system with a built-in error correcting capability would need to be secure and come equipped with appropriate control mechanisms, features that will be considered in Chapter 9.
12.3. 6.3. Accounting Systems as Automata II
In this section we introduce a second, more complex automaton to represent the operation of an accounting system. Like the previous automaton, this one keeps track of the transactions and balances of the system, but it does so in a different way, displaying the history of each account as part of a state of the system: in addition the output function is used to compute current balances and record the profit or loss of the system. In addition this automaton incorporates the expiration times, the earliest times that a transaction can be applied, and for this reason it will be called the time enhanced automaton of the system.
To help motivate the definition, let us consider the general situation of a company when an economic event affecting it occurs. This is illustrated in the schematic diagram below:
graph LR
A[Economic event] --> B[Company]
B -- Encoding --> C[message]
The economic event is assumed to affect the company through a message, which takes the form of a pair where is the time of application of the transaction given by the balance vector with entries and is the number of accounts.
12.3.1. Definition of the time enhanced automaton
To start things off, suppose that is a free accounting system with accounts
where, as usual, is an ordered domain. We will indicate later how freeness can be relaxed, but for the present we prefer to keep it as a simplifying assumption.
A message of dimension is defined to be an ordered pair
thus , and of course . The are the entries of the balance vector which represents a transaction, while is an integer specifying the earliest time of application of the transaction, which is called the expiration of the message.
12.3.2. Accounts and states of the automaton
The accounting system is assumed to have accounts , which are ordered in such a way that
are the accounts that represent revenues and expenses.
A state of the th account is defined to be an element of the set , that is, a sequence of elements of
where
and . In addition these entities are subject to the conditions
and
The significance of is that it is the expiration time for the th transaction to affect the th account. Notice that , the number of transactions affecting the th account, depends on . Intuitively we can think of as recording the “history” of the th account up to time .
The state of an account can be represented by an enhanced T-diagram, as illustrated in the figure below. The left hand column records the debits and the right column the credits; the difference from the T-diagrams defined in 3.1 is that in each case the expiration time is appended to the transaction amount.
| Account | |
|---|---|
In the diagram it is assumed that and is a permutation of the integers such that
Since the left hand column records the debits on the account and the right hand column the credits, the value of the th account at the latest time will be increased by
if this is positive; should it be negative, there a corresponding decrease.
12.3.3. The operation of the time enhanced accounting system
We will now define the time enhanced automaton
of the free accounting system and explain how it functions. In the first place we have already defined a state of the th account as an element of the set satisfying certain conditions. This allows us to define a state of the automaton as a sequence of states of the accounts, so that a typical state has the form
where
Here it is understood that the previously stated conditions must be satisfied, i.e.,
and
The set of states of the automaton is to be a set where
Next the inputs are messages, i.e., elements of the set , a typical one being of the form . Thus the input set for is
The next state function
is defined by the rules that follow:
if for some , ; on the other hand,
if for all , : observe here that is the concatenation of and , except that if , the pair is to be omitted from the sequence.
What is happening here is that the state of the automaton will not change unless for , i.e., does not precede any expiration time, in which event the new state is obtained by adjoining the pair to unless .
12.3.3.1. Example (6.3.1).
Let us see how the function acts in a particular case. Suppose that an accounting system has three accounts , the third account being an income or expense account. Assume that at some instant the states, i.e., histories, of the three accounts are given by the T-diagrams below.
| Account | Account | Account |
|---|---|---|
|
|
|
|
The understanding here is that . These diagrams describe the state of the automaton at time as where, for example, .
Now suppose that the input is read by the automaton where . Then it follows from the definition of the function that the next state of the automaton is given by the T-diagrams
| Account | Account | Account |
|---|---|---|
|
|
|
|
Keep in mind that the left hand column is for debits and the right hand column for credits. Thus has been adjoined to the credit column of the second account and to the debit column of the third account. On the other hand, since the input has a 0 entry for the first account, no pairs are added to its T-diagram.
To complete the description of the automaton , the output set and output function must be assigned. We take as the output set
where is an error message: recall that is the number of accounts which are not revenue or expense accounts. Then the output function is defined by the following rule: sends to where has components
except that if for some , then the value of the output function is the error message .
What the output function does here, assuming that no error message is generated, is first to record the time of application of the transaction; then for each of the accounts it sums the values of all the transactions, thereby giving the net change in value of these accounts. It also totals the transaction values for all the revenue and expense accounts and places this sum as the th entry of the output; clearly this represents the net income of the system after the transaction has been processed.
Notice that the partition
determines an equivalence relation on , and hence the quotient system . There is a natural epimorphism from to which was described in 5.2. The th entry of
represents the value of the th account of the quotient system , an account that could be called the profit or loss account for : however, strictly speaking it is an account of , not .
The automaton just constructed,
is the time enhanced automaton of the accounting system . Next we give an example to illustrate the computation of the output function of the automaton .
12.3.3.2. Example (6.3.2).
Consider again the accounting system in Example 6.3.1 as specified by the T-diagrams
| Account 1 | Account 2 | Account 3 | |||
|---|---|---|---|---|---|
As before assume that the message is received, where . Now we compute the output as specified in the definition of the output function, keeping in mind that is a revenue or expense account. The output is . Thus over the entire history of the system account has final value 1800 and account has value , while the third entry tells us there has been a net loss to the system of 100.
12.3.4. Additional remarks on the time enhanced automaton
We maintain the notation already established for the time enhanced automaton of an unbounded accounting system .
1. The output is the balance sheet at time . Its components give the balances of non-revenue or expense accounts, and the net profit or loss of the system. Specifically, the th non-time component of , , is the balance of the th account at time , while the th component is the net profit or loss of the system.
2. If a name is assigned to each component of the set of states , the set of all these denominations is called an account plan: its components represent the history of each account.
3. The automaton can also compute the final values of the accounts. The input set can be extended to the free monoid on , as described in 6.1. Thus the input is a finite sequence of messages applied in succession. Suppose that the initial state of was
where
and
Thus it is assumed that the revenue and expense accounts had zero balances initially, as would normally be the case. Suppose that a sequence of inputs, i.e., messages, is applied,
where . Then the value of the output function after the sequence of inputs has been processed, i.e.,
is the final balance sheet of the accounting system; of course the value of the output function is computed recursively.
4. Usually the output function is not applied each time a message is received, but only at certain moments in the life of the company, for example, at the end of the year or the quarter. The process of calculating the value of is called the regularization.
5. The definition of the time enhanced automaton has been formulated for free accounting systems. However, it is not difficult to see how to modify the definition for a general accounting system. It is necessary to screen out non-allowable transactions or balances by adjusting appropriately the definitions of the next state and output functions, as was done for the automaton of 6.2. This will require that additional error messages be adjoined to the output set .
6. Just as for any automaton, we can define various equivalence relations for the time enhanced automaton. A relation is introduced on the set of states by defining two states to be equivalent if, on receiving the same input, they produce the same output. Thus two states are equivalent in this sense if they always lead to the same balance sheet. Dually we can define equivalence of two messages, i.e., inputs, if, starting from the same state, they always lead to the same output, i.e., the same balance sheet.
13. Chapter SevenAccounting Systems with Restricted Transactions
13.1. 7.1. An Overview of Special Systems
The previous chapters have seen the construction of our basic algebraic model, which is able to simulate many of the operations of the double-entry accounting system. However, it is clear that this model is far from being a realistic system. In the first place there are still facets of accounting not represented in the model, control of transactions being a prominent example. But it is also evident that the model is too general and includes systems that could never be implemented by any computer system. With this in mind, we shall consider in this chapter what restrictions can reasonably be imposed on the allowable transactions of an accounting system. The object is, of course, to arrive at a system which is closer to reality and stands a chance of machine implementation.
One natural restriction is to require that there be only finitely many specific allowable transactions. In practice these might represent fixed regular payments or receipts and so they would be finite in number. Thus we are led to a class of accounting systems called finitely specified systems, in which an allowable transaction is either one of an approved type or else one of a finite number of specific transactions. More generally, we might accept accounting systems that are equivalent to finitely specified systems, meaning that they have the same sets of feasible transactions. Such systems will be called finitely specifiable. These may be thought of as the widest class of unbounded systems that could conceivably be machine implemented. Incidentally the algorithms described in Chapter 8 make a convincing case for this statement.
From the algebraic point of view there are several subclasses of finitely specifiable systems that stand out. A full discussion of these types follows in 7.2, together with an assessment of their interrelationships and their significance for accounting. Prominent among the finitely specifiable systems are systems that are equivalent to systems specified by simple transactions only; these are termed simple systems and they are much easier to analyze. They are treated in some detail in 7.3. It seems a reasonable assessment that many real life systems will be simple or at least nearly so.
Another significant class of finitely specifiable systems is the class of systems in which the inverse of every feasible transaction is feasible. These are called inverse systems and they are distinguished by the property that their monoids are groups. A closely related class of systems of particular significance for accounting consists of systems which are error correcting. In these the inverse of an allowable transaction is allowable, which makes it possible to correct erroneously entered transactions. This is a feature one would expect to find in any practical system, subject of course to appropriate control mechanisms.
Throughout this chapter we assume that all accounting systems are over the ring of integers (although one could work to some extent with systems over finitely generated ordered domains). In addition we will generally assume that all accounting systems are unbounded, i.e., every balance vector is allowable in the system. The main reason for this is that the monoid of such a system is much easier to understand, being isomorphic with a submonoid of the monoid where is the number of accounts – see 6.2.2. Also the relation between a system and its feasible digraph is much closer for unbounded systems. Having said this, we acknowledge that many of the concepts introduced still make sense for general accounting systems.
13.2. 7.2. Finitely Specifiable Accounting Systems
Consider an unbounded accounting system on accounts
so that all balance vectors are allowable: for brevity we will write
Here is the set of transaction types that are allowable and is the set of specific allowable transactions. Now is certainly finite: indeed by 3.2.1. On the other hand, the set could be infinite: at least the definition in Chapter 4 leaves this possibility open. In practice, is likely to be a fairly small set, consisting of regular operations such as repayments on a mortgage, interest on a bank loan or insurance premiums. It therefore seems a reasonable assumption that is finite.
With these remarks in mind, we define an unbounded accounting system to be finitely specified if where the set is finite. For example, we could form a finitely specified system by taking as allowable transaction vectors all the elementary vectors . A useful feature of a finitely specified accounting system is that it can be completely described by a partitioned matrix. In this matrix the first set of columns are the allowable types of transaction vector in , which therefore have entries 0, + or -, while the remaining columns list the specific allowable transaction vectors in . Thus the matrix has size . The representation of a finitely specified accounting system is therefore accomplished by a single matrix.
More generally, an accounting system is said to be finitely specifiable if it is equivalent to a finitely specified system : here of course is finite, but might be infinite. Finitely specifiable systems can be characterized in terms of their monoids.
(7.2.1). An unbounded accounting system is finitely specifiable if and only if is generated by finitely many elements together with all elements of certain types.
Proof
Suppose first that is finitely specifiable. Then it is equivalent to a finitely specified system and ; thus is generated by the finite set , together with all vectors of types in .
Conversely, assume that is generated by a finite set and all vectors of some set of types . Define , which is a finitely specified system. Since , we see that is equivalent to , so that is finitely specifiable.
While it is obvious that every finitely specified system is finitely specifiable, the converse is false: for example, the free system is finitely specifiable since is generated by the elementary vectors , but it is not finitely specified.
13.2.1. Example (7.2.1).
There are accounting systems that are not finitely specifiable.
Consider the unbounded system with three accounts and allowable transactions
Each non-zero feasible transaction, i.e., element of , must clearly be of type
yet not every vector of this type is in . Indeed, if
were feasible, there would be an expression
with . On inspecting the top rows of the column vectors, we see that , which implies that ; but then a glance at the second rows reveals the contradiction .
Now suppose that is finitely specifiable. Then, since in not all vectors of any one type are feasible, must be generated by finitely many allowable vectors, say by
. However, if we choose to be larger than all of ,
it is easy to see that cannot be written in the form
where . Consequently the system cannot be finitely specifiable.
Next we introduce some special types of finitely specifiable accounting systems by further restricting their monoids.
13.2.2. Finitely generated accounting systems
Following a well-known algebraic path, let us call an (unbounded) accounting system
finitely generated if can be generated as a monoid by some finite subset . This means that every element of , i.e., every feasible transaction vector, is expressible in the form
with a non-negative integer. Clearly is finitely specifiable since it is equivalent to the system whose allowable transactions are . Notice that are feasible in , but are not necessarily allowable. However, each is expressible in terms of finitely many elements of . Thus, while itself might be infinite, it has a finite subset such that each is a linear combination of vectors in with non-negative integral coefficients. Thus . Now let be the finitely generated system ; then and have the same monoid , so they are equivalent. This conclusion is stated as:
(7.2.2). Let be a finitely generated unbounded accounting system. Then there is a finite subset of such that is equivalent to the finitely specified system . Thus every finitely generated system is finitely specifiable.
13.2.3. Simple accounting systems
We recall from Chapter 2 that a balance vector of the form , (), is said to be simple. Here is the elementary transaction vector with th entry and th entry . An accounting system will be called simple if its monoid can be generated by simple transaction vectors. Thus each allowable transaction can be expressed as a sum of feasible simple transactions. In practice many allowable transactions in an accounting system will be simple, which suggests that real-life systems may often be simple. However, the definition of a simple system requires only that the monoid be generated by simple transaction vectors; these need not be allowable, although they must of course be feasible.
A special type of simple system occurs when the feasible monoid is generated by elementary transaction vectors: such a system is called elementary. For an accounting system with accounts, the total number of elementary transactions is ; thus the monoid can be generated by or fewer elements. Hence every elementary system is finitely generated. In fact this conclusion can be strengthened.
(7.2.3). Every simple unbounded accounting system is finitely generated.
The proof of this result rests on a property of the submonoids of the monoid of natural numbers, namely every submonoid is finitely generated. We will give a proof of this result, but first an auxiliary lemma is necessary.
(7.2.4). Let be positive integers which are relatively prime. Then there exists such that every integer belongs to : furthermore can be computed from the .
Proof
Write . Since are relatively prime, there are integers such that
where we can suppose that for and for . Put for , noting that . Hence . For we have
which equals
If and , then
since . Hence for .
Now suppose that there exists an in ; then we can assume that has been chosen minimal with these properties. If , then by minimality of , so that . By this contradiction and thus . But then since is of the form for some satisfying , a contradiction which shows that all integers belong to .
The crucial result needed to establish 7.2.3 can now be proved.
(7.2.5). If is a submonoid of , then it can be finitely generated as a monoid.
Proof
Assume that is not finitely generated, which implies that . Let be any non-zero element of . We show how to construct a sequence of elements of such that, if is the greatest common divisor of , then . Assume that the sequence has been constructed as far as . Since are relatively prime, 7.2.4 shows that
is finite. Suppose that ; then is finite, which leads to the contradiction that is finitely generated. Hence there exists an which is not divisible by . Then, writing for the greatest common divisor of , we have , so the construction has been effected. Since the are positive integers, there must exist a for which . Then
is finite by 7.2.4. However, this implies that is finitely generated, which is a contradiction.
13.2.3.1. Proof of 7.2.3
Assume that is a simple unbounded system with monoid . Thus is generated by certain simple transactions. For each let be the set of integers such that . If , then , which shows that is a submonoid of (possibly zero). We now apply 7.2.5 to show that can be generated by finitely many of its elements, say , . Then the elements , , , generate the monoid and the number of these elements is finite, so is finitely generated.
Corollary. Every unbounded accounting system with two accounts is finitely generated.
13.2.3.2. Proof
An accounting system with two accounts is simple, so the result follows at once from 7.2.3.
On the other hand, there are accounting systems with three accounts which are not finitely generated – see Example 7.2.3(ii) below.
13.2.4. Hereditary accounting systems
In Chapter 3 a partial ordering of -transaction types was introduced which classifies transactions according to their complexity. In this ordering, if and are two type vectors of equal size, so that each of their entries is 0, + or – , then means that for each either or . It seems a priori to be a plausible hypothesis that if a transaction vector is feasible and is a transaction of the same or an earlier type in the ordering, i.e., , then should also be feasible.
With this in mind, let us call an unbounded system hereditary if, whenever is feasible in and , then is also feasible in . It will emerge from the analysis in 7.3 that hereditary systems are very special and are in fact completely determined by their feasible digraphs.
13.2.4.1. Example (7.2.2).
Suppose that the vector
is feasible in a hereditary system with four accounts. Then all vectors with type preceding
are feasible. In particular , and are feasible. Now observe that can be expressed in terms of these elementary feasible vectors, indeed
Hence generate the monoid of , which is therefore an elementary system. In fact this statement is true in any hereditary system.
(7.2.6). Every hereditary, unbounded accounting system is elementary.
Proof
Let be a non-zero feasible transaction vector for . It is necessary to show that is a sum of elementary feasible vectors of . The proof is by induction on the number of non-zero entries of .
Since , it must have a positive entry and a negative entry . A new transaction vector is defined by the rule
Now observe that , so that is feasible by the hereditary property, and also that the number of non-zero entries of is at most . Therefore is a sum of elementary feasible vectors by the induction hypothesis. Next , so that is feasible in . Finally or and , ; hence is a sum of elementary feasible vectors, as claimed.
13.2.5. Type-complete accounting systems
Another special type of unbounded system occurs when, given that a transaction vector is feasible, it follows that all vectors of the same type are feasible. Such a system will be called type-complete. Notice that hereditary systems are type-complete, but the latter is evidently a weaker property.
A still weaker property than type-completeness is purity. Here an unbounded system is said to be pure if its monoid is generated by all the transaction vectors of certain given types. Thus a pure system is equivalent to a finitely specified system in which there are no specific allowable transactions, only allowable types: therefore a pure system is finitely specifiable. Notice that elementary accounting systems are pure since their monoids are generated by certain elementary vectors and hence contain all simple vectors of the same type.
It is difficult to assess how often a practical accounting system would be pure or type-complete. These properties are mentioned here primarily because they appear natural from the algebraic standpoint.
13.2.6. Inverse accounting systems
An accounting system is called an inverse system if the inverse of a feasible transaction, or equivalently the negative of the corresponding transaction vector, is always feasible. This is equivalent to saying that is a subgroup of the abelian group . In an inverse system the negative of an allowable transaction might not be allowable, but it is certainly feasible. Recall from 6.2 that an (unbounded) accounting system is called error correcting if the negative of every allowable transaction vector is allowable. Every error correcting system is an inverse system. To see this, let be a feasible transaction vector of , so that there is an expression , where the are allowable. Then is allowable since is error correcting. Hence is feasible and thus is an inverse system.
Conversely, if is an inverse system, we can modify the system by adjoining the negatives of all the allowable transactions of
, thereby obtaining an error correcting system where denotes the set . Clearly is equivalent to .
Summing up the discussion, we have:
(7.2.7). Let be an unbounded accounting system. Then the following hold.
- 1. If is error correcting, then it is an inverse system.
- 2. If is an inverse system, then it is equivalent to an error correcting system.
The question arises as to how inverse systems are related to the other types of system described in this section.
(7.2.8). If is an inverse, unbounded accounting system on accounts, then the feasible monoid of can be generated by at most elements. Thus is a finitely generated system.
Proof
Let denote the monoid of , so that is a subgroup of . Now is a free abelian group of rank by 2.3.1. It is a well-known fact about free abelian groups that can be generated as a group by at most elements – see [7] or [8]. The group generators and their negatives will then generate as a monoid. Therefore can be generated as a monoid by at most of its elements.
There is good reason to believe that a real life accounting system will have the ability to correct errors. Inevitably in day-to-day operations errors will arise through the entering of erroneous data or system malfunctions. If an erroneous transaction has been applied to the accounting system, it can be corrected by applying the inverse transaction, i.e., the negative of the transaction vector. (Notice that even if balance restrictions are present, the correcting transactions will restore the original balance vector). Of course in an error-correcting system there is increased risk of misuse, but this can be reduced by introducing a control mechanism, as described in Chapter 9.
13.2.7. Diagram of classes of accounting systems
graph TD
FS[finitely specifiable] --> P[pure]
FS --> FG[finitely generated]
P --> TC[type - complete]
P --> E[elementary]
FG --> S[simple]
FG --> I[inverse]
TC --> H[hereditary]
E --> H
E --> EC[error - correcting]
S --> EC
I --> EC
H --> F[free]
EC --> F
Since many classes of unbounded accounting systems have been introduced in this section, it is useful to display these classes by means of an inclusion diagram as above. Here the larger classes of systems appear higher up in the diagram, while inclusions between classes are indicated by sequences of upward directed lines.
Next we will show that there are no inclusions between the ten classes of accounting systems discussed above other than those displayed in the diagram. This is demonstrated by a series of simple examples.
13.2.7.1. Example (7.2.3).
(i) Error-correcting does not imply either pure or simple.
This is shown by the 3-account system with allowable transaction vectors
Here transaction vectors of only two types are feasible, but not all vectors of these types are feasible, so the system is not pure. Also it is not simple since no simple transactions are feasible.
(ii) Type-complete does not imply finitely generated.
Consider the 3-account system whose allowable transaction vectors are all those of type . Then is not finitely generated. Indeed, suppose it is generated by
where . Let ; then the vector which has entries belongs to , so there exist such that
Choose to be the smallest of , say , and ; then and . But then a contradiction ensues since .
(iii) Hereditary does not imply inverse.
This is shown by the 2-account system with the single allowable transaction vector .
(iv) Simple does not imply pure.
To see this just look at the 2-account system with the single allowable transaction vector .
(v) Inverse does not imply error-correcting.
Consider the 3-account system with allowable transaction vectors , , . This is plainly not error-correcting. But the feasible monoid is , so the system is an inverse system.
(vi) Elementary does not imply type-complete.
To see this consider the 4-account system with allowable transaction vectors and . In this system is feasible, but the vector with entries , which is of the same type, is not feasible.
In conclusion we note that a variety of special classes of unbounded accounting systems have been introduced by placing restrictions on their allowable transactions. Some of the classes display features that one would expect to find in real life accounting systems. Here we mention particularly finitely specified systems, elementary systems and error-correcting systems. All the classes of systems considered are natural from an algebraic standpoint and it is at least a useful exercise to consider how far these subclasses can be translated into practical systems, since it forces us to analyze more precisely the true nature of such systems.
13.3. 7.3. The Digraph of a Simple System
Our aim in this section is to show that the feasible digraph of a simple unbounded accounting system has a very special form; it consists of isolated vertices, source vertices, sink vertices and a complete digraph. Then it will be shown that a hereditary system is determined up to equivalence by its feasible digraph and that such systems can be completely classified.
To start things off, recall that if is an unbounded accounting system, the feasible digraph of has as its vertex set the set of accounts and there is an edge if and only if there is a feasible transaction vector of such that and . In general the connection between a system and its feasible digraph is quite weak and inequivalent systems can easily have the same digraph.
The crucial property possessed by the feasible digraph of a simple system will now be described. A digraph is called strongly transitive if, whenever it contains edges and with , there is an edge of :
In particular this means that if has edges and where , then there is an edge .
The latter property is called transitivity since it implies that the corresponding relation is transitive (but keep in mind that the digraph of an accounting system has no loops). These concepts are illustrated by some simple examples.
13.3.1. Example (7.3.1).
Of the digraphs above is strongly transitive, while is only transitive.
Now we come to the connection with simple systems.
(7.3.1). Let be a simple unbounded accounting system. Then the feasible digraph of is strongly transitive.
Proof
Let be the feasible digraph of . To prove strong transitivity, let and be edges of with ; it must be shown that is an edge of , and here we can assume that . Now there are feasible transaction vectors and of such that , and , . Since is simple, is a sum of simple feasible transactions at least one of which must be of the form where ; also is a sum of simple feasible transactions with at least one of the form where . Then is certainly feasible; also its -component is or , according as or , and thus it is negative. Similarly its -component is or , i.e., positive. Consequently has an edge and it follows that is strongly transitive.
Notice that the converse of 7.3.1 is false. If is the system with the single allowable transaction
then the feasible digraph of is – with the appropriate order of accounts – the first digraph displayed in Example 7.3.1, which is strongly transitive. But has no simple feasible transactions, so it is not a simple system.
The next example shows that the feasible digraph of a finitely generated system need not even be transitive.
13.3.2. Example (7.3.2).
Let be the unbounded system with account set and two allowable transaction vectors
Then is a finitely generated system, but in fact it is not simple. In order to see this, we first identify the feasible digraph of . Now every feasible transaction is of the form
Next has edges , , , , , , and , as one sees by inspecting the allowable transactions. Also is an edge, as can be seen by setting .
On the other hand, there are no edges or since the 1- and 3-entries of have the same sign. Nor is there an edge since the inequalities and are incompatible. Therefore is the digraph below.
graph LR
a1((a1)) --> a2((a2))
a1((a1)) --> a4((a4))
a3((a3)) --> a2((a2))
a3((a3)) --> a4((a4))
a2((a2)) --> a1((a1))
a4((a4)) --> a3((a3))
Notice that is not even transitive since there are edges and , but no edge .
13.3.3. The structure of strongly transitive digraphs
Strong transitivity is such a restrictive property that it is possible to describe precisely the digraphs which have it. For this purpose some notation will be developed for an arbitrary digraph . The vertex set of may be partitioned into four subsets,
which are defined in the following way.
- 1. is the set of isolated vertices, i.e., with in- and out-degree 0;
- 2. is the set of sources, i.e., vertices with positive out-degree and zero in-degree;
- 3. is the set of vertices with positive in- and out-degree;
- 4. is the set of sinks, i.e., vertices with positive in-degree and zero out-degree.
Recall here that the out-degree and in-degree of a vertex of a digraph are the respective numbers of edges with initial vertex and final vertex . Strongly transitive digraphs may be characterized in terms of these four sets of vertices.
(7.3.2). A digraph is strongly transitive if and only if there is an edge from each vertex in to each different vertex in and there are no other edges in the digraph.
Proof
Assume first that is strongly transitive. Let and , with . Then has positive out-degree and positive in-degree. Hence there are edges . By strong transitivity there is an edge in . Evidently all edges in must arise in this way.
Conversely, assume that has the property of the statement. Let and be edges of with . Then and since has positive out-degree and has positive in-degree. Therefore there is an edge and thus is strongly transitive.
Notice that the condition of 7.3.2 implies that if is a strongly transitive digraph, then is a complete digraph, i.e., there is an edge from any vertex to any other vertex in that digraph.
13.3.3.1. Example (7.3.3).
A strongly transitive digraph with six vertices in which , , and is exhibited below:
graph TD
v1((v1)) --> v2((v2))
v1 --> v3((v3))
v1 --> v4((v4))
v2 --> v3
v2 --> v4
v2 --> v5((v5))
v3 --> v4
v3 --> v5
v4 --> v3
v4 --> v5
v6((v6))
Despite the restrictive nature of the feasible digraph of a simple accounting system, it is still possible for inequivalent systems to have the same digraph.
13.3.3.2. Example (7.3.4).
Consider the elementary system with account set which has two allowable transaction vectors and . Here one easily sees that the feasible digraph is
which is, of course, strongly transitive.
However, this is also the feasible digraph of the accounting system on whose allowable transaction vectors are , , . Now is not feasible in since it cannot be expressed in the form with . Thus and have different monoids, so that they are not equivalent, yet they have the same digraph.
Suppose now that is an arbitrary simple unbounded accounting system. Then by 7.3.1 the feasible digraph of has the structure indicated in 7.3.2. Let us consider what this implies about the system . The accounts in are inactive accounts. It might be supposed that the such accounts are rare, but any account plan is likely to involve a large number of accounts since it must accommodate transactions between the firm and many outside companies. During a particular accounting period it might be the case that certain accounts are not used and these inactive accounts would show up as isolated vertices of the digraph. An account in is a source of funds for the system, while an account in can only receive funds; for example a bank loan that is gradually being paid off would fall into this category. All other accounts belong to the complete digraph . If and are distinct accounts in , then completeness implies that there is a feasible transaction of that causes an outflow of value from and an inflow to ; of course other accounts could be affected by the transaction too. So the conclusion is that in a simple unbounded system in at least part of the system arbitrary flows of value are possible between accounts.
13.3.4. Digraphs and hereditary accounting systems
In the final part of the chapter we turn to a particular type of simple system, namely the hereditary systems. Recall that an unbounded accounting system is hereditary if, whenever is a feasible transaction vector of , every transaction vector with type equal to or preceding is also feasible.
There is a close relationship between hereditary systems and their feasible digraphs, as is already indicated by the following result.
(7.3.3). Let be a hereditary unbounded accounting system with accounts . Then is a feasible transaction vector for if and only if is an edge of the feasible digraph of .
Proof
If is feasible, then by definition of the feasible digraph there is an edge . Conversely, assume that is an edge. Then there is a feasible transaction vector of with and . Now , so by the hereditary property is feasible in .
On the basis of this observation it is straightforward to show that a hereditary system is characterized up to equivalence by its feasible digraph.
(7.3.4). Let and be two hereditary unbounded accounting systems with account set . Then and are equivalent if and only if they have the same feasible digraph.
Proof
Let and be the respective feasible digraphs of and . If and are equivalent, then by 6.2.4 they have the same monoid and hence the same feasible transactions; therefore .
Conversely, assume that ; thus is an edge of if and only if it is an edge of . Applying 7.3.3, we conclude that is feasible in if and only if it is feasible in . Since and are hereditary, they are elementary, so their monoids are generated by feasible elementary vectors. It follows that , so and are equivalent.
This result illustrates the close relationship between a hereditary system and its feasible digraph. The next result illustrates the connection between hereditary systems and strongly transitive digraphs and, in particular, shows how to construct hereditary systems from strongly transitive digraphs.
(7.3.5). The following statements are valid:
- 1. Let be a hereditary unbounded accounting system with feasible digraph . Then is strongly transitive and is an edge of if and only if is feasible in .
- 2. Let be a strongly transitive digraph with finite vertex set . Let be the unbounded accounting system with account set whose allowable transactions are the for which is an edge of . Then is a hereditary system with feasible digraph .
Proof
1. This follows from 7.3.1 and 7.3.3.
2. The first step in the proof is to show that is the feasible digraph of : of course the feasible digraph of contains all the edges in . Suppose that is an edge of . Then there exists a feasible transaction vector with and . Now is a sum of allowable vectors where is an edge in . Hence at least one of these summands must have negative -component. Therefore , which, because of the structure of , means that . By a similar argument . Since is strongly transitive, 7.3.2 implies that there is an edge in from to . It follows that and are the same digraph. It remains to prove that is hereditary.
Let be a feasible transaction of . Let denote the set of all non-feasible transaction vectors such that . Assuming that is not empty, we can choose an element of which is minimal in the ordering of types; this is because the set of types is finite. Since , we have and for some . Then and since . Next is a sum of allowable elementary vectors. This sum must involve vectors and for some . Hence there are edges and in . Because is strongly transitive, is an edge of and, by definition of , it follows that is allowable and hence is feasible.
Now define
Then for ; also and if . In addition and if . Clearly , so is feasible by minimality of . Finally if and if . But and are feasible, from which it follows that is feasible since , . By this contradiction the set is empty and is hereditary.
One consequence of 7.3.5 is a method for distinguishing the hereditary systems among the elementary ones.
(7.3.6). Let be an elementary unbounded accounting system with accounts and feasible digraph . Then is hereditary if and only if is feasible in whenever is an edge of .
Proof
The necessity of the condition being a consequence of 7.3.3, we assume it is satisfied in . By 7.3.1 the digraph is strongly transitive and therefore by 7.3.5 there is a hereditary system on the same account set as whose feasible digraph is . By 7.3.3 the systems and have the same feasible elementary transactions and hence the same monoid. Thus and are equivalent and, since is hereditary, it follows that is hereditary.
Remark
It is not true that an elementary unbounded system whose feasible digraph is strongly transitive is hereditary. Indeed, in Example 7.3.4 the feasible digraph is strongly transitive, but the accounting system is not hereditary: for is not feasible, despite the existence of an edge in the digraph.
13.3.5. Counting hereditary systems
One consequence of 7.3.4 is that a hereditary system is determined up to equivalence by its feasible digraph. The problem of counting non-equivalent hereditary systems is therefore reduced to that of counting the strongly transitive digraphs with a fixed set of vertices. Note that is determined by the four subsets ,
, , of the vertex set . As a first step we show how to count the isomorphism types of strongly transitive digraphs. The terminology here is that two digraphs are isomorphic if there is a bijection between their vertex sets which preserves edge connectedness. To count the isomorphism classes we have to solve a distribution problem about placing identical objects in four boxes subject to suitable conditions.
(7.3.7). The number of non-isomorphic strongly transitive digraphs with vertices is equal to
The number of connected digraphs among these is
provided , and it is 1 if .
Proof
Let be the set of vertices to be used. The strongly transitive digraphs on correspond up to isomorphism to ordered partitions of
where , , , are to be the subsets , , , for the digraph . The isomorphism type of the digraph is determined once the partition is specified. The corresponding combinatorial problem is that of placing identical objects in four distinct boxes; in fact we have to count the solutions in non-negative integers of the equation
subject to two obvious restrictions:
- 1. ;
- 2. if and , then .
If is chosen to be , then of course , and there is just one possible solution. Assume therefore that and suppose has been chosen to be where . Then we have to solve
If , there are choices for and since by the second condition neither can be zero. If , there are choices for the same reason.
Next assume that . The problem is now that of placing identical objects in three boxes with at least two objects in the box corresponding to . By a well-known combinatorial formula – see [2] – the number of ways to do this is
Adding up the numbers of distributions for and remembering the single distribution for , we obtain as the number of distributions
which equals
since . After simplification, the number of distributions is found to be .
Next we count the connected digraphs: for these is empty, i.e., . If , the number of these is obviously 1, so let . Now , so we have to solve . If , these are solutions and if , there are . If , then the number of solutions is
by the distribution argument above. Hence the number of indecomposable digraphs is
13.3.5.1. Example (7.3.5).
By 7.3.7 there are nine isomorphism types of strongly transitive digraphs with three vertices and six of these are connected. These digraphs are displayed in the following list.
(i)
(ii)
(iii)
(iv)
(v)
(vi)
The remaining digraphs are disconnected.
(vii)
(viii)
(ix)
• • •
Of course these digraphs are not yet labeled, which means that the accounting systems are not fully specified. For each type of digraph we have to label the vertices by the accounts in all possible ways. This is easy to do in this instance since the possibilities are very limited. A quick check of the digraphs reveals that the numbers of labeled digraphs of each respective type are 1, 3, 3, 6, 3, 3, 3, 6, 1, giving a total of 29 labeled digraphs. Hence, up to equivalence there are 29 hereditary accounting systems with three accounts. The count of labeled connected digraphs is 1, 3, 3, 6, 3, 3, giving 19 in all. Thus there are 19 indecomposable hereditary accounting systems with three accounts.
It is natural to enquire if an explicit formula for the number of equivalence classes of hereditary accounting systems can be found. The answer is affirmative, but it involves a more complex distribution problem in which the distributed objects, the accounts, are all different. There is standard procedure in combinatorics for solving such problems which calls for the use of exponential generating functions. These are formal power series of the form
in which the coefficient of is the number of distributions sought in the problem: here the is inserted to allow for permutations of the objects being distributed. For a detailed account of exponential generating functions see [2].
The definitive result is:
(7.3.8). The number of equivalence classes of unbounded hereditary accounting systems with a fixed set of accounts is
The number of indecomposable systems among these is
provided that . When , the number is 1.
Proof
We use the notation of the proof of 7.3.7: here too it is necessary to treat separately the cases and .
Suppose first that . The problem is to place different objects in three boxes with two of the boxes non-empty. The generating function for this is
where, of course, is the exponential function
The coefficient of in the generating function is clearly . Next suppose that . Now only objects are to be placed in the boxes, so the number is , but this must be multiplied by since there are choices for the single object to go in box .
Now suppose that . In this case there is no restriction on , so that the generating function is
and the coefficient of is . If these numbers are added up and the single case counted, we obtain after cancelation , as claimed.
Turning to the connected case, we have . Again it is necessary to distinguish the values of . When equals 0 or 1, the generating function is and the respective coefficients of and are and , but the second of these must be multiplied by . Let ; then the generating function is
so the coefficient of is . Addition of these numbers yields , provided : when , the answer is obviously 1.
For example, if we set in 7.3.8, we obtain 29 and 19 as the numbers of systems and indecomposable systems respectively, confirming what was found in Example 7.3.5.
Having seen that hereditary accounting systems have a nice description in terms of their feasible digraphs, one may wonder whether a real life system could be of this type. Hereditary systems have the property that, given active accounts and which are neither sources or sinks, there is a feasible transaction vector ; thus one can by a suitable sequence of allowable transactions arrange for a transfer of value from to , without in the end changing the balances of other accounts. Thus a hereditary system has a high degree of fluidity built into its structure, a feature which could be useful in real life systems, but which might require strong controls to reduce the risk of inappropriate operations being applied to the system.
14. Chapter EightAlgorithms
14.1. 8.1. Decision Problems for Accounting Systems
In the previous chapter a large number of special types of accounting system were introduced by restricting the allowable transactions in various ways. The motivation behind this study was to discover which types of system are closest to reality. Continuing this line of enquiry, we observe that one natural test of the practicality of a proposed model is whether it is possible, in principle at least, to perform routine operations on the system, including checks and security procedures, by machine implementation. As a first step let us identify some of the procedures one would expect to be able to implement for an accounting system.
- 1. Decide whether a given transaction is allowable.
- 2. Decide whether a given balance vector is allowable.
- 3. Decide whether a given transaction is feasible.
- 4. Decide whether a final balance vector could actually have occurred by correctly applying a sequence of allowable transactions to a given initial balance vector.
- 5. Decide whether two accounting systems on the same account set are equivalent, i.e., if they have the same feasible transactions and hence the same monoid.
- 6. Decide whether a given accounting system is of a specific type such as those described in Chapter 7.
First of all, some explanation is called for regarding what is meant by a “decision problem” like those listed here. In general it is possible to decide whether a statement is true or false if there is an algorithm which will give a definite “yes” or “no” to the question. Here the term “algorithm” is used in the classical sense: there is an algorithm to produce a set of data if the data can be obtained from the outputs of a finite number of Turing machines. Here a Turing machine can be thought of as an abstract model of a computer, related to, but more powerful than, a finite state automaton.
The diagram illustrates the components of a Turing machine. At the top, a horizontal line represents the tape, divided into five equal-width squares. Above the first square, there is a double-headed horizontal arrow. Below the tape, a triangle points upwards towards the second square, representing the machine's head. Below the head is a large, empty rectangular box, which represents the machine's state or memory area.
Specifically, a Turing machine consists of a “head” and a “tape” divided into squares each of which has a symbol written on it. The head is able to read symbols on the squares. At any instant the machine is in one of a finite number of states and the set of symbols on the square is finite. It scans a square on the tape and reads the symbol on it; as a result it goes to new state and writes another symbol on the square. The head then moves either left or right by one square and repeats the procedure. Turing machines are fundamental in the modern theory of computability: see [3], [4] or [5] for details.
Notice that there is no requirement restricting the number of steps involved in an algorithm; it is sufficient to know that it will halt after finitely many steps. Such algorithms might therefore require large amounts of computing power – and indeed some of those described below surely do. However, with the enormous increase in computing power in recent years this is not necessarily a serious objection.
Several of the decision problems listed above lead directly to questions about finite systems of linear equations over the integers. The problem is usually to determine if the system has a solution in non-negative integers. Fortunately this is an area of applied algebra which has been extensively developed. Such problems are special types of linear programming problems called integer programs. Some highly effective algorithms for solving such problems are available and may be applied in our situation.
In Section 8.2 we consider some wide classes of accounting systems for which it is possible to decide if a given transaction vector or balance vector is allowable. At the same time examples are given which show that there are limits to what is computable in general accounting systems.
Section 8.3 is concerned with accounting systems which are finitely specifiable, i.e., equivalent to finitely specified systems (in which there are finitely many allowable particular transactions, in addition to all transactions of certain allowable types). A number of algorithms for finitely specifiable systems are described, most of them being based on integer programming. The existence of these practical algorithms lends support to the viewpoint that finitely specifiable systems should be our premier model for accounting systems. Finally, Section 8.4 describes algorithms which can, in favorable circumstances, decide if an accounting system is inverse, elementary, or hereditary.
14.2. 8.2. Recursive Accounting Systems
We begin with a review of some basic terminology from recursion theory: as references for this we cite [3] and [4]. Let
denote the set of positive integers. A subset of is called recursively enumerable if its elements are the output of some Turing machine. Equivalently, one could say that is the set of values of a partial recursive function. In practice it is usually convenient to think of the elements of as being “enumerated” by a Turing machine in the form of a sequence .
Next a subset of is said to be recursive if both and its complement are recursively enumerable. Thus there are Turing machines that can enumerate the elements of and also the elements of its complement. Another way to express this is to say that is recursive if and only if there is an algorithm which, when a positive integer is given, decides whether or not belongs to . The last statement is often referred to as asserting that the membership problem for the subset is solvable.
It is easy to see that there are subsets of which are not recursively enumerable. For the number of Turing machines (or algorithms) is surely countable since each one is determined by a finite list of rules. On the other hand, there are uncountably many subsets of , so some of them – in fact uncountably many – must fail to be recursively enumerable. It is much harder to show that there exist recursively enumerable subsets of which are not recursive: for such a subset it is possible to enumerate the elements of (as the output of Turing machines), but not those of its complement . Thus there is no algorithm which can decide if an integer is not in . For this fundamental result see [3] or [4].
So far the terms recursively enumerable and recursive have been applied to subsets of , but they can equally well be applied to the subsets of any countably infinite set since the elements of may be labeled by positive integers . This usage is important since it will permit us to speak of recursive and recursively enumerable subsets of .
These concepts will be used to introduce two wide classes of accounting systems that may be thought of as the most general systems to which algorithms can be applied in any useful way.
14.2.1. Definitions
Let be an accounting system over with accounts. If and are recursively enumerable subsets of , then is called a recursively enumerable accounting system. If and are recursive subsets of , then is said to be a recursive accounting system. Clearly a recursive system is recursively enumerable, but the converse is false.
14.2.2. Note on the domain of account values
The preceding definitions have been formulated for accounts over , but they can be stated so as to apply to an accounting system over an ordered domain which is computable. Roughly speaking, this means that is countable, the ring operations of addition, multiplication and the formation of negatives in are computable by Turing machines, and the identity problem for is solvable: the last statement means that given elements of , it is possible to decide if . It is evident that is a computable ring in this sense. It is known that every finitely generated commutative ring is computable, so there are many possibilities for which might serve as an appropriate domain for account values. However, in the interest of simplicity we will assume throughout this chapter that all accounting systems are over .
14.2.3. Algorithms for recursive systems
The most basic algorithmic properties that one would require an accounting system to have are the ability to list allowable transactions and balance vectors, to decide if a given transaction and the resulting balance vector are allowable, and, if so, to apply the transaction and compute the new balance vector. Recursively enumerable systems and recursive systems are characterized by these properties.
(8.2.1). Let be an accounting system.
- 1. There are algorithms which can enumerate the allowable transactions and the allowable balances of if and only if is a recursively enumerable system.
- 2. There are algorithms which can decide if a given transaction is allowable and if a given balance vector is allowable if and only if is a recursive system.
This result is an immediate consequence of the definitions given above. Recursive systems have the crucial ability to accept or reject a transaction, and in case of acceptance to compute the new balance.
(8.2.2). Let be a recursive accounting system with accounts. Then there is an algorithm which, when given vectors and in , with the current balance of , either rejects the transaction or else accepts it and records as the new balance vector.
Proof
Let ; thus and are recursive subsets of . The algorithm decides whether belongs to and, if this is true, it then decides if belongs to ; there are algorithms to perform these actions since and are recursive sets. If the answer is positive in both cases, then is the new balance vector. Otherwise the balance vector remains .
Notice that 8.2.2 mirrors the operation of the automaton of 6.2: the additional information provided here is that the system can be operated by using Turing machines. It is important to realize that there are accounting systems which are not recursively enumerable, and also recursively enumerable systems which are not recursive.
14.2.3.1. Example (8.2.1).
Let be a non-recursively enumerable subset of – recall that there are uncountably many of these. Let be the 2-account system for which
The system is not recursively enumerable: for if it were possible to enumerate the elements of by means of a Turing machine, the same would be true of the elements of .
14.2.3.2. Example (8.2.2).
Let be a recursively enumerable, but non-recursive subset of . Define an accounting system on two accounts by
Then is recursively enumerable since is, but it is not recursive since is not recursive.
Of course the accounting systems appearing in these examples are of purely theoretical interest, but their inclusion here serves to demarcate the limits of computability in accounting systems.
We move on to consider which types of system introduced in Chapter 7 have good algorithmic properties. It is reassuring that many types of finitely specifiable system are recursive.
(8.2.3). A finitely specified system is recursive if and only if it has a recursive set of allowable balance vectors.
Proof
Let where is the set of allowable transaction types, is a finite set of allowable vectors and is the set of all allowable balance vectors. Suppose that is recursive. Assume that has accounts and that is given. The algorithm to decide if is allowable in proceeds as follows: first it determines if belongs to and if not, whether belongs to . Note that
and are finite sets, so this is certainly possible. This means that we can decide whether is an allowable transaction vector. Next let be given; since is recursive, there is an algorithm to decide if , i.e., whether is an allowable balance vector for . Therefore is a recursive system. The converse is clearly true.
For example, a finitely specified system is recursive if either (i) it is unbounded, i.e., all balance vectors are allowable, or (ii) it is absolutely bounded, so there are just finitely many allowable balance vectors.
A natural extension of these problems is to decide whether a given balance vector is feasible for a system, i.e., whether it is obtainable by a sequence of allowable transactions. This will be considered in the following section.
14.3. 8.3. The Balance Verification Problem
An important problem for accounting systems is the construction of an algorithm which can verify balances. More precisely, suppose that an accounting system had an initial balance vector and that the final balance vector at the end of some period of time is . The critical question is whether could really have been obtained from by applying a finite sequence of allowable transactions of , while satisfying the balance restrictions of . This will be called the balance verification problem for . If the balance verification problem can be solved for the system , then the associated algorithm will provide a useful safeguard against misuse or malfunction of the system.
In the interest of simplicity we assume that is an unbounded accounting system with accounts: we will have something to say about bounded systems later. Suppose that and are the respective initial and final balance vectors of over some period. For to be a legitimate final balance vector, there must exist a sequence of allowable transaction vectors such that, when the corresponding transactions are applied in sequence to , the final balance vector is obtained. Thus
where the function is given by the equation since there are no balance restrictions for . This is equivalent to requiring that , that is
which simply states that must belong to . Conversely, if this conclusion is true, then is a sum of allowable vectors and we see by reversing the argument above that is a legitimate final balance vector.
What the preceding discussion shows is that the balance verification problem for an unbounded system is equivalent to the problem of deciding whether a given element of belongs to the submonoid . This is the membership problem for . Another formulation of the problem is as the feasibility problem for , which is to decide if a given transaction is feasible for . Therefore we have the following result.
(8.3.1). For an unbounded accounting system the following statements are equivalent:
- 1. the balance verification problem is solvable for ;
- 2. the membership problem for is solvable;
- 3. the feasibility problem for is solvable.
A noteworthy consequence of this result is:
(8.3.2). Let and be two equivalent unbounded accounting systems. If the balance verification problem is solvable for , then it is solvable for .
The reason for this is that by definition and the second version of the balance verification problem yields the result.
14.3.1. Verifying balances in finitely specifiable systems
It is an important property of finitely specifiable accounting systems that the balance verification problem is always solvable. What is more, the solution involves an efficient algorithm.
(8.3.3). Let be a finitely specifiable, unbounded accounting system. Then the balance verification problem is solvable for .
14.3.1.1. Proof
In the first place we observe that is equivalent to a finitely specified system . Then, on the basis of 8.3.2, we see that it suffices to prove the result for , so there is no loss in assuming that is a finitely specified system, say , where as usual is a set of allowable transaction types and is a finite set of allowable transaction vectors. It is assumed that we have explicit knowledge of the sets and , which of course constitutes a finite amount of data.
According to 8.3.1 the balance verification problem for is equivalent to the membership problem for the submonoid . Therefore the problem is to find an algorithm which, when a vector is given, decides if : here is the number of accounts in . Let
where is a transaction type, (i.e., a column vector with entries 0, + or -), and are given vectors in . Of course these vectors are assumed to be known. Then if and only if there is an expression
where is of type and the are non-negative integers. Thus the problem is to decide whether or not such an expression exists.
The sign of an entry of is determined by the corresponding entry of its type . Let the positive entries of be , , and the negative entries , , where , all other entries of being 0. Equating corresponding entries on each side of the equation for , we obtain a system of linear equations over for the unknowns . Also, it is necessary to adjoin the equations
these being the conditions for the to be balance vectors. For there to be an expression for of the type just considered, it must be possible to find a solution of the linear system of equations in non-negative integers , , .
The foregoing argument shows that in order to solve our problem we need a way of determining whether a linear system of equations over has a non-negative integer solution. This is an integer programming problem. There are several efficient algorithms available for solving integer programs, of which the best known is Gomery's fractional algorithm. It is essentially a refinement of the well known simplex algorithm designed to eliminate fractional solutions. The proof of the theorem can therefore be completed by invoking the existence of such an algorithm.
The method of proof of 8.3.3 will now be illustrated with a numerical example: to follow all the details a knowledge of integer programming is necessary – see for example [6].
14.3.1.2. Example (8.3.1).
An unbounded accounting system with three accounts has one allowable transaction type and one explicit allowable transaction,
The balance vectors of at the beginning and end of an accounting period are recorded as
respectively. The question is whether the latter is in fact a possible final balance vector for .
The problem here is to decide if the vector
is feasible in : for then there will be a sequence of allowable transactions which transform the initial balance vector into the final one.
Now is feasible if and only if there is an expression
where are non-negative integers. The conditions for this to hold are that
Notice that addition of these equations yields
which is the condition for the second vector in the expression for to be a balance vector. Therefore all we need to do in this case is determine if the linear system
has a solution for in non-zero integers. One of the integer programming algorithms can be applied to show that there are non-negative integral solutions of this linear system: in fact
is a solution. Thus
so that and is feasible. The conclusion is therefore
that is indeed a possible final balance vector for the system:
transactions which produce this balance are (in any order)
There is a significant application of 8.3.3 to the equivalence problem for finitely generated systems.
(8.3.4). There is an algorithm which, when two finitely generated, unbounded accounting systems and with the same account set are given, decides if they are equivalent.
Proof
By hypothesis both and can be generated by finitely many allowable balance vectors, say by and respectively. It is assumed that these vectors are known explicitly. Now and are equivalent if and only if and are equal, i.e., and . Hence and are equivalent precisely when each belongs to and each belongs to . This is decidable by 8.3.3.
14.3.2. Verifying balances with balance restrictions
It is a more difficult problem to construct an algorithm which can check the validity of a final balance vector when the accounting system has balance restrictions. The reason is that, in addition to finding a sequence of allowable transactions leading from the initial balance vector to the final one, it is necessary to verify that all the intermediate balances that appear are allowable. As a consequence the order in which the transactions are applied is significant.
In order to solve the balance verification problem it may be necessary to examine all sequences of allowable transactions that lead from the initial to the final balance vector. In the case of a finitely specified system such an examination may be impossible if there are infinitely many allowable balance vectors. On the other hand, if the system has only finitely many allowable balance vectors, then it is impossible to apply to the system all transaction vectors of any one type, since these are infinite in number. Thus we might as well exclude allowable types from the system, in which case there are only finitely many allowable transactions and the system is finitely generated. For this reason attention is directed at finitely generated systems.
(8.3.5). Let be an accounting system with and both finite. Then the balance verification problem is solvable for .
Proof
Let be the number of accounts in . Suppose we are given vectors , , representing the initial and final balance vectors over some period; these of course should belong to . To decide if is a legitimate balance vector for , we have to consider all sequences of allowable transactions such that
where if and . The sequence produces intermediate balance vectors , where
For to be an acceptable final balance there must be a sequence such that all the belong to .
Now if such a sequence of allowable transactions exists, there is one of shortest length, say , with an associated sequence of balance vectors : we can assume that here. Suppose that where . Then the transactions can be deleted from the sequence, leaving a sequence of shorter length which still leads from to . By this contradiction the balance vectors are all different and as a result we can derive the inequality . Therefore the number of sequences that need to be examined satisfies
Next let be one of the shortest sequences of allowable transactions to be screened and let , , be the associated intermediate balance vectors. Each of the balance vectors can be tested for allowability. If all pass the test, then
since and , and the conclusion is that the sequence of 's produces the final balance vector , which is therefore an acceptable final balance.
The preceding algorithm is to be applied to each of the at most sequences . If a sequence appears for which all the intermediate balances are allowable, then is an acceptable final balance vector and the algorithm terminates: if none of the sequences meets this condition, then is not a possible final balance.
The limitations of the algorithm of 8.3.5 will be apparent. It may require enumeration of as many as sequences of allowable transaction vectors, a number that is exponential in . Of course we could ignore the intermediate balance vectors and just verify that the final balance vector is allowable. In that case the efficient integer programming algorithm employed in 8.3.3 can be applied. One might argue that this weaker verification procedure is sufficient since the intermediate balances are, after all, transient. However, what could not be detected in this way is a transaction which is illegal because of some violation of the intermediate balance restrictions, but which leads to an acceptable final balance.
14.4. 8.4. More Algorithms
The final section of the chapter is concerned with the construction of algorithms which can decide if a given finitely generated accounting system is one of certain special types discussed in Chapter 7.
(8.4.1). There are algorithms which, when a finitely generated unbounded accounting system is given, can decide if the system is:
- 1. an inverse system;
- 2. elementary.
Proof
Let be the given system, which is assumed to have the form with , a finite set of allowable vectors; thus , say.
1. By definition is an inverse system if and only if whenever . Suppose that and write where the are non-negative integers. Then
from which it follows that is inverse if and only if for . By the membership problem for – see 8.3.1 and
8.3.3 – we can decide whether all belong to . Therefore we can decide if is inverse.
2. In deciding whether is elementary, the first step is to identify the set of all elementary vectors in . This can be done by testing each of the elementary vectors for membership in , where is the number of accounts. Certainly and will be elementary if and only if . We can test each for membership in by 8.3.3. Thus we can decide if .
It is also possible to design an algorithm to test an accounting system for the property of being hereditary. However, since this property is best recognized from the feasible digraph, we first need a way to get hold of the digraph. This is accomplished in the next two results.
(8.4.2). Let be a finitely generated, unbounded accounting system. Then there is an algorithm which, when given distinct accounts , can decide whether is an edge of the feasible digraph of .
Proof
Let generate . Recall that is an edge of the feasible digraph if and only there exists a such that and . Write where the are non-negative integers. Then is an edge of the digraph if and only if it is possible to solve the two inequalities
for non-negative integers . This is an integer program containing inequalities; the standard integer programming algorithms still apply, so it can be determined if there is a non-negative integral solution for the .
Corollary. There is an algorithm which, when a finitely generated, unbounded accounting system is given, is able to construct the feasible digraph of the system.
Proof
Suppose that the system has accounts. To construct the feasible digraph, test each of the potential edges between vertices for membership in the digraph, using 8.4.2.
We remark that 8.4.2 and its corollary remain true for finitely specifiable systems, as can be seen by treating allowable transaction types in the same way as in the proof of 8.3.3.
(8.4.3). There is an algorithm which can decide whether a given finitely generated, unbounded accounting system is hereditary.
Proof
The first step is to decide if is elementary, using 8.4.1. Since hereditary systems are elementary, we may suppose that this is the case. Next apply the corollary to 8.4.2 to construct the feasible digraph of . For each edge of , we can check to see if is feasible, using 8.3.1 and 8.3.3. According to 7.3.6, the system is hereditary if and only if this is true for every edge of . It follows that the algorithm can tell if is hereditary.
Example (8.4.1).
Let be the unbounded system with accounts and allowable transactions
Let us test this system to see if it is hereditary. It is obviously an elementary system. Now construct the feasible digraph of ,
graph TD
a2((a2)) --> a1((a1))
a1 --> a3((a3))
a3 --> a2
a3 --> a4((a4))
a4 --> a1
a2 --> a4
For each edge in , we must verify that is feasible in . This is obviously true except for the edges ; the equations , and tell us that the condition holds for these edges. Therefore is hereditary.
14.4.1. Example (8.4.2).
Let be the unbounded system with three accounts and three allowable transactions
For this system one can see directly that there are no feasible elementary transactions. The reason is that all entries of the allowable vectors are divisible by 10 and hence 10 divides each entry of a feasible transaction, which excludes all the elementary transactions. Consequently is not elementary and so it is not hereditary.
It is more of a challenge to construct an algorithm to decide if a finitely generated, unbounded accounting system is simple, i.e., if its monoid can be generated by transaction vectors of the form where . The final result in the chapter confirms the existence of such an algorithm.
(8.4.4). There is an algorithm which, when a finitely generated unbounded accounting system is given, decides if the system is simple and, if this is the case, finds a finite set of simple transactions that generate the monoid of .
Proof
Let where and is the finite set of allowable transaction vectors; thus the generate . What must be decided is whether the monoid can be generated by finitely many simple transactions, i.e., transactions of the form where , and the are natural numbers; furthermore, if this is true, it must also be shown how to construct such simple transactions.
Fix and define to be the set of all natural numbers such that ; then
since consists of all vectors of the form . It is obvious that is a submonoid of the monoid of natural numbers , so by 7.2.5 it is finitely generated. Observe that membership in is decidable by 8.3.1 and 8.3.3. The main step in the proof consists in showing how to construct a finite set of monoid generators for ; this is accomplished in three stages.
(i) There is an algorithm which, when a positive integer is given, decides whether , and if this is not true, produces an element in .
We can assume that . Suppose that ; then there exists an which is not divisible by and therefore has the form where are natural numbers and . Hence there is an expression
where the are natural numbers. For each , this vector equation is equivalent to a linear system over in the unknowns . Conversely, if there is a solution in non-negative integers to the above system for some where , then the integer belongs to , but not to since does not divide . It follows that if and only if there is a non-negative integer solution of one of the above linear systems for some where . By the integer programming algorithm we can decide if such a solution exists and if so, find one.
(ii) There is an algorithm which finds a finite set of generators for the submonoid .
The first step is to decide if . Now if and only if there is an integer such that , i.e.,
where the are natural numbers. This is equivalent to a linear system over to be solved for the non-negative integers . Now we can decide if a solution exists and if so, find one. Thus we can decide whether : of course, should this be the case, nothing more need be done. Therefore we may suppose that and that an element in has been found; thus .
Next we decide whether , using (i). If this is true, then and we are done. Thus it can be assumed that this containment does not hold and that we have found an element ; then . Denote by the greatest common divisor of . Since does not divide , we have . Next decide if . Suppose this is true; since and are relatively prime, 7.2.4 may be applied to show that is a finite set and to find an upper bound for its elements. Each non-negative integer not exceeding this bound can be tested for membership in and any elements of found in this way may be adjoined to and to produce a finite set of generators for .
Suppose, on the other hand, that ; then we can find an element in which is not divisible by . Writing for the greatest common divisor of , we have and also . The next step is to decide whether , and so on.
Since this procedure cannot continue for more than steps, we will eventually find an integer for which , i.e., the integers are relatively prime, and of course . Therefore, by 7.2.4 again, the set is finite. By testing each of its finitely many elements for membership in and adjoining any that are found to , we obtain a finite set of generators for .
(iii) Conclusion.
For each pair of distinct integers in the range , put , so that
(Note that might be zero). By (ii) we can find a finite set of generators for each submonoid , say , . Define to be
the submonoid generated by all the simple transaction vectors in ; thus . Then is simple if and only if , i.e., if for . By 8.3.3 this is decidable, so the algorithm succeeds, i.e., it is able to decide if is simple, and in the event that this is true, it constructs a finite set of simple transactions that generate .
It is worthwhile restating what has just been established. It is possible to determine if a given finitely generated, unbounded accounting system is simple and thus if there is a finite set of simple transactions which generate its monoid. Should be simple, the algorithm allows us to construct an accounting system equivalent to whose allowable transactions are simple. This means that it is possible in principle to “redesign” the accounting system in such a way that all the allowable transaction vectors are simple.
15. Chapter NineThe Extended Model
15.1. 9.1. Introduction to the 10-Tuple Model
In any practical accounting system one would expect to find built-in procedures designed to preserve the integrity of the system. The algebraic model described in previous chapters is already equipped with some such procedures: for example, transactions can be screened for allowability before being applied and the resulting balances can be scrutinized. An additional feature of finitely specifiable systems is the capacity to verify final balance vectors and detect improper usage of the system, as was described in Chapter 8.
In this chapter it is shown how to attach two further security mechanisms to the basic model. The first of these is designed to block unauthorized use of the system by verifying that all necessary authorizations have been obtained before a transaction is applied. Typically such authorizations must be obtained from several units of the company, possibly in a specified order. It turns out that such an authorization scheme can be conveniently encoded in two integer matrices called control matrices. These matrices are to be attached to the basic model.
Another security mechanism that may be desirable is one that monitors the frequency of application of a particular allowable transaction during an accounting period. The object is to ensure that regular transactions, such as payments on a mortgage, interest on a debt, payment of taxes, etc., are not applied more frequently than is called for. This can be accomplished by specifying a frequency function which encodes the number of times that each specific allowable transaction can be applied to the system during an accounting period.
When these mechanisms are adjoined to the basic model, we obtain an extended model of an accounting system which is encoded as a 10-tuple, consisting of sets, functions, vectors and matrices. This 10-tuple model has many of the capabilities of a real life accounting system. Moreover its operations can be performed by automata which are enhanced versions of the devices introduced in Chapter 6. In addition the model has the advantage that the procedures embedded in the system are, in principle at least, implementable in a standard programming language. Chapter 10 contains a detailed example of the accounting system of a small company, with its 10-tuple extended model.
15.2. 9.2. Authorization and Control Matrices
Consider the problem of restricting use of an accounting system to authorized units or individuals by requiring that a transaction be authorized according to some prescribed protocol. Suppose that we are dealing with the accounting system of an organization which has a number of divisions, each of which may have subdivisions, departments and so on. The organization can be pictured as a hierarchy in which the smallest independent subdivisions, or units, appear at the lowest level. Let the set of units of the firm be ordered in some manner, say as
Each account in the system will likely be under the control of one or more units, and before a transaction affecting an account can be executed, authorizations must be obtained from the relevant controlling units. In addition, such authorizations may need to be obtained in a particular order. As a further complication, we allow the possibility that different sequences of authorizations for an individual account may be needed according to whether the transaction credits or debits the account. It is this set of protocols governing use of the system that we seek to encode as part of the specification of the system. This can be done conveniently by two integer valued matrices.
Suppose that the accounting system has accounts . The control mechanism is described by two matrices with non-negative integer entries
Here the rows of the matrices are labeled by the accounts and the columns by the units of the firm. These matrices are required to have the following property.
C: if a row of or contains an entry , then it also has as an entry.
A matrix with this property will be called a control matrix. Notice that, as a consequence of the definition, either the th row of a control matrix consists entirely of zeros or else it contains positive integers , each of which may occur more than once, and possibly some zeros. A little experimentation will show that there are many matrices of this type: an exact count of them will be given later.
15.2.1. The mode of operation of the control matrices
It is now time to explain how the control matrices prevent unauthorized transactions from being applied to the accounting system. Let these matrices be
which are assumed to have the property stated above. Suppose that a transaction is to be applied to the system. If , i.e., the transaction debits the th account, then the th row of matrix specifies which units must provide authorization for the transaction. Let the non-zero entries in row of be
where the integers are distinct; then the units which must provide authorizations for the transaction are
in that order. What this means is that the numerical order of the non-zero entries of row determines the sequence of unit authorizations required for the th account. Notice that, as a consequence of the property , the sequence consists of the integers in order with repetitions allowed.
What the control matrix requires is that, if , then authorization must be obtained from unit before unit . If, however, , then both and must provide authorization, but the order in which this is done is immaterial.
The control matrix operates in a similar fashion. If , so that the transaction credits the th account, and if the non-zero entries in row of are
with distinct integers , then the sequence of units that are required to authorize the transaction is
in that order.
Finally, if , so that the transaction does not affect the th account, then no authorization is needed and reference to or is unnecessary. The procedure just described must be applied to all accounts affected by the transaction in question.
In some cases no authorization may be necessary for a transaction to be applied to a particular account, in which event the corresponding rows of and have zero entries. If some authorizations for an account are required, but in no particular order, then all entries of the corresponding row are 0 or 1. From these examples it is seen that control matrices are a flexible tool for representing complex authorization schemes.
15.2.1.1. Example (9.2.1).
Consider an organization with three divisions , with the accounts department. Suppose has two subdivisions and has three subdivisions . Thus in all there are six units, which will be ordered as
For simplicity assume that the organization has just four accounts
The authorizations needed for a transaction to be applied to the system are encoded in the control matrices
For example, a transaction that debits account requires no authorization since row 2 of consists entirely of zeros, while one that credits must be approved only by the accounts department . A transaction that debits must be authorized by and , in any order. A transaction that credits has to be approved by , and the accounts department , in that precise order.
15.2.2. The authorization process
Let us now examine in detail how the authorization process functions for an accounting system with accounts, allowable transaction types , specific allowable transaction vectors and allowable balance set . Suppose that a transaction is to be applied. The first step would be to determine if is allowable, i.e., if or , and then if produces an allowable balance, i.e., one in . Let us assume that has already passed these tests.
The next step is to verify that the transaction has received all the necessary authorizations. Let and be the control matrices which govern authorization of transactions in . The transaction vector will have been approved by certain units of the organization, in a sequence which can be encoded in two further control matrices; thus we can think of as being “tagged” by two control matrices and , where and are the respective numbers of accounts and units in the organization. These matrices record the authorizations which have already been received for the transaction. The system therefore receives an input
The role of the matrices and must now be explained. Suppose first that and that
are the non-zero entries in row of . This means that authorizations to debit the balance of account have already been provided by units , in that order. In addition it is understood that if , then row of consists of zeros: this is because the matrix is only relevant to checking authorizations of debits. Next suppose that ; then there is a similar interpretation of the role of the entries in row of regarding authorizations obtained for crediting accounts. Again rows of for which are all zero.
Before the transaction can be approved, the matrices , must be compared with , . If , then must equal , provided that . If , the condition is that , provided that . If , there is no condition since the transaction does not affect account .
There is a convenient symbolic way of expressing the relationship that must hold between the matrices , and , . For a given -column vector , we define a relation between non-negative, integer valued matrices as follows:
is to mean that if , then whenever . The verification that the transaction has received all the necessary approvals can then be written in the matrix form
We note that the th row of or will be zero if or respectively, because no authorizations are required in these cases. Since in practice most transactions affect few accounts, the matrices and will consist largely of zeros. Thus for economy of display and storage it is desirable not to list these zero rows; therefore in specific examples we will delete any row of or for which has an entry which is not positive or not negative respectively, and work with the resulting reduced matrices
Notice that the matrices and can be reconstructed from knowledge of , and the vector : for example, if , we insert a row of zeros as the th row of , with a similar procedure for the matrix if . The condition on matrices can therefore be stated unambiguously, if with some abuse of notation, in the form
Described in words, the verification process to authorize a transaction is as follows. For , if , row of is compared with row of ; for each positive entry in there should be the same entry in , but might have further non-zero entries in the row if additional authorizations beyond those that are strictly necessary have been obtained. If , the positive entries of row of are compared with those of in the same manner. If , no authorizations for account are necessary and no comparisons need be made.
These matrix comparisons are to be performed for each row. If they are all performed satisfactorily, the approval process for is complete and the transaction is fully authorized. If, on the other hand, the comparison fails for any account, the transaction will be rejected as not being properly authorized.
15.2.3. The number of control matrices
As one would expect, there are many control matrices of given size, although probably only a few of them would be used in practice. We pause to show that an exact count of control matrices is possible.
(9.2.1). The number of control matrices is
where the are the Stirling numbers of the second kind.
15.2.3.1. Proof
It is enough to establish the formula in the case when , i.e., there is a single row, since the general result will then follow by raising the result to the th power.
One possible row is the row of zeros. We need to count the non-zero rows. Consider a row with exactly non-zero entries where . First choose the positions in the row which are to receive non-zero entries in ways. Then count the number of ways to fill the chosen positions with positive integers, subject to the condition on the rows of a control matrix. Suppose that is the largest positive integer which actually appears in the row; then since each positive integer less than must also occur in the row. The number of ways to fill the positions is equal to the number of ways to place distinct objects in distinct boxes in order with at least one element in each box: the last requirement is needed to ensure that each of the integers appears at least once in the row. This is yet another distribution problem. It is well known from combinatorics this number is equal to – see [2]. Therefore the number of possible rows is
□
For example, if the organization has just three units, the above formula gives the number of possible rows as 26, so that, if there are accounts, the number of control matrices is .
15.3. 9.3. Frequency Control
Another security device which can be incorporated in the basic model of an accounting system is a mechanism to control the frequency with which a particular allowable transaction is applied during an accounting period. Without such a device there might be nothing to prevent an allowable transaction which has been fully authorized from being applied with greater frequency than permitted by company rules: for example, this would apply to regularly scheduled transactions. We aim to show that the frequency of application of a transaction can be monitored by means of a so-called frequency function.
Consider an accounting system
where and are the sets of allowable transaction types and allowable specific transactions respectively. The objective is to monitor the number of applications of a specific transaction in over an accounting period. For this purpose a function
is introduced, the idea being that a given transaction may not be applied more than times. If , then it is to be understood that there is no limitation on the number of times that can be applied during the period. If , then cannot be applied during this time: it is useful to allow this possibility since, for example, it might be necessary to suspend a regular payment during a certain time period, which might be preferable to eliminating it altogether from the system as allowable transaction. We refer to such a function as a frequency function. If the set is ordered in some fixed manner, then can be conveniently identified with column vector over with rows, namely the values of the function .
Let us see how the frequency function operates. Let be an allowable transaction vector and assume it has been fully authorized and that it leads to an acceptable balance vector. At any instant there is a frequency counter, by which we mean a function
such that is the number of times the transaction has already been applied during the accounting period. If , then the transaction may be applied and the value of the counter at is reset to . However, if , the transaction is rejected, since it has already been applied the maximum permitted number of times. Notice that with these rules it is impossible to have . Thus the frequency counter is adjusted by one each time that a transaction is successfully applied; when the system is regarded as an automaton, the function is part of the state of the machine. As in the case of the function , we think of as a -column vector, but over .
15.4. 9.4. The 10-Tuple Model and Automata
In this section our aim is to adjoin formally the security mechanisms described in 9.2 and 9.3 to the basic model of an accounting system. The resulting extended model has the ability to simulate many features of a realistic accounting system and it can be represented by enhanced versions of the automata described in Chapter 6.
We begin with the basic model of a bounded accounting system over an arbitrary ordered domain
where is the set of accounts, and are the respective sets of allowable transaction types and specific allowable transactions, and
are bounding functions for account values: thus for , and the set of allowable balance vectors is
Note that and may be regarded as -column vectors with entries in .
In addition the extended model is to have a built-in capacity to generate reports. Recall from Chapter 5 that a report corresponds to an equivalence relation on the account set . The balance vector of the quotient system gives basic information about the report, namely the list of balances of accounts in each equivalence class. Thus the accounting system should be equipped with a set
of equivalence relations on which generate all the necessary reports. Now an equivalence relation on is specified by an matrix which decomposes into blocks of 0's and 1's: for the th matrix entry equals 1 precisely when and is otherwise 0, so that each -equivalence class corresponds to a square submatrix of 1's. Thus we can regard as a set of matrices of this type.
Next assume that the organization to which the accounting system belongs consists of autonomous units, written in the fixed order , and write
Each account in is governed by certain units which must authorize transactions affecting the account. The sequences of authorizations required are encoded in two control matrices
as described in 9.2: recall that these are matrices with non-negative entries which have the property : if an integer appears in a row, then so does .
Finally, a frequency function
is introduced to control the frequency of application of each specific allowable transaction: is identified with a -column with entries in .
The result of these additions to the basic model is a 10-tuple which will be called the extended model of an accounting system,
15.4.1. Features of the extended model
We summarize the capabilities of the 10-tuple model displayed above, where now it is assumed that the ordered domain is .
- 1. The system is able to generate reports corresponding to equivalence relations in the set by passing to the quotient system . It may be convenient to include in the trivial equivalence of equality .
- 2. The current value of the frequency counter at is the number of times that the transaction has been successfully applied during the current period.
- 3. If is finite, so that is finitely specified, it is possible to verify that a final balance could really have been obtained by legitimate actions, when intermediate balance restrictions are not considered. For this purpose the algorithm in 8.3 must be attached to the model; recall that it is based on the integer programming algorithm.
- 4. If and are finite valued, it is possible to verify a final balance vector while taking into account restrictions on intermediate account balances, albeit by a less efficient algorithm.
- 5. If the set is finite and the system is unbounded, i.e., and for , then it is possible to determine whether the accounting system is simple or elementary. Moreover, if this is the case, it is possible to find sets of simple or elementary transactions which generate the monoid of : for these results see 8.4.
15.4.2. The extended automata
The extended model of an accounting system, like the basic model, lends itself to interpretation as an automaton. Recall that there are two automata associated with the basic model: we begin with the one which does not involve time. Let be the 10-tuple extended accounting system over an ordered domain ,
with the notation described above. Next we will define the extended automaton of
This is to have input set
where is the set of all control matrices, while the state set is
The output of the original automaton is modified so as to incorporate the capability of generating the reports corresponding to the equivalence relations in . The output set is taken to be the cartesian product
possibly augmented by error messages: here is the number of -equivalence classes.
The change of state function is given by the rule
where is defined by
This is provided that the following are true: or , for , and , and . However, if any one of these conditions fails to hold.
The output function is computed from the equation
provided that or , , and , and : otherwise an error message is printed as the output. Recall the notation from Chapter 5 which is used here: has as its -component . Thus the output function produces all the relevant reports after each transaction has been applied. Notice that if , then the -component of the output is just the final balance vector of the system after the transaction has been applied.
To summarize in words the operation of the automaton , suppose that the input is applied. This means that and that the authorization sequences already received for the transaction are displayed in the control matrices . Assume that the current state of the system is ; here is the current balance vector and the value of the frequency counter at records the number of times that this transaction has been applied up to this time.
The automaton first determines if or if : it then determines if the new balance vector satisfies for . If this test is passed, the next step is to verify that and . This is to check that the transaction has received all the required authorizations. The final test is whether in the case where , i.e., the transaction has not already been applied the maximum permitted number of times.
Should all these verifications be performed satisfactorily, the state of the automaton changes to where and if : the output is . However, if any of the tests fail, the state of the system does not change and an appropriate error message is generated as the output.
It might be objected that the output of the automaton is more complex than would normally be required since it includes all the reports after each transaction. This can be avoided by projecting the output onto its -component, thereby giving just the final balance vector of the whole system: however, the facility of producing multiple reports might be useful enough to justify the present form.
15.4.3. The extended time enhanced accounting system
Next we describe the time enhanced automaton of an extended accounting system with accounts over an ordered domain in the standard 10-tuple form
where for simplicity we have assumed that contains a single equivalence relation . Let be the account set, with the set of revenue and expense accounts.
The corresponding extended time enhanced automaton is
where the parameters are defined as follows.
- • The set of states is a subset of
where is the set of specific allowable transactions. Thus a state of has the form
where
and is a function from to which counts the number of times that each allowable transaction has been applied successfully. Here it is understood that
and
- • The set of inputs is
where is the set of all control matrices: thus a typical input has the form
here has components and and are control matrices encoding the sequences of authorizations obtained for the transaction from the autonomous units, which are written in a fixed order .
- • The next state function
is defined by the rules that follow.
- 1. maps to
where is such that
provided that
- (a) for ;
- (b) ;
- (c) and .
- 2. maps to , if any of the conditions (a),(b),(c) above fails.
(Recall that is the concatenation of and , except that if , the pair is to be omitted from the sequence).
- 2. maps to , if any of the conditions (a),(b),(c) above fails.
- • The output set is
where is the number of accounts in the quotient system . The output function
is defined by having it send to the ordered pair where is the canonical epimorphism and is the balance vector with entries
Here is the number of entries in the T-diagram of the th account. On the other hand, if for some , then the value of the output function is a suitable error message.
Recall that in the definition of the time enhanced automaton in 6.3 the output function combined the balances of the revenue and expense accounts to produce the net income. Thus an equivalence relation of particular interest is one for which all these accounts are combined. Assume therefore that the set of revenue and expense accounts constitutes one equivalence class of the equivalence relation ; then the entry of corresponding to the equivalence class is
which is the net income of the system.
15.5. 9.5. The Audit as an Automaton
In sections 9.2 and 9.3 control mechanisms were introduced which guarantee that all transactions applied to an accounting system have the required authorizations and that transactions are not applied more than the permitted number of times. However, apart from these a priori procedures, a company will be subject to a posteriori control mechanisms, depending on its legal status. Thus it is usual that after a certain period of time, generally a year, the balance vector of account balances and the financial activities that have occurred in the system during the period must be checked in order to determine if any procedural errors have occurred during the accounting process. This verification process is carried out by an auditor using the so-called balance-check tests. In this section it is shown how to design an automaton which performs the mechanical aspects of the auditor's task.
Typically there are six types of error that occur during the operation of an accounting system.
- 1. The accounts affected by a transaction resulting from some economic activity are not the appropriate ones.
- 2. The accounts affected by the economic event are appropriate, but they do not coincide with the accounts approved by the auditors.
- 3. The economic event has not been registered.
- 4. The transaction resulting from the economic event does not correspond to a balance vector.
- 5. The balance vector obtained after application of the transaction is not allowable.
- 6. A report generated by the transaction is not permissible.
For certain types of error it is the duty of the firm of auditors to communicate to the company the flaws detected in the accounting process. Then the relevant accounts, allowable transactions, allowable balance vectors or set of reports may have to be modified to meet the objections of the auditor.
Assume that over a certain period of time a company operates the accounting system over an ordered domain
where is the set of accounts, the set of allowable transactions and the set of allowable balance vectors. Recall that consists of all vectors of certain allowable types , as well as a set of specific allowable vectors .
At the end of the accounting period it is the task of the auditor to perform certain tests in order to verify that all the economic events affecting the company have been accounted for, that all generally accepted accounting principles and criteria have been applied, and that the accounting system is functioning correctly. In order to accomplish this, the auditor selects a certain equivalence relation on the account set and chooses a sample set of -equivalence classes of accounts, say
where . Usually this sample of accounts includes “bank account”, “trade debtors”, “inventories” and “trade creditors”, where these accounts may be aggregates of individual accounts, as explained below.
- • “Bank account” may consist of several accounts held at different institutions.
- • “Trade debtors” and “trade creditors” appear separately, but are actually lists of specific debtors and creditors.
- • “Inventories” are broken down according to the different categories, typically:
- – Goods for resale.
- – Finished goods.
- – Semi-finished goods.
- – Byproducts and waste.
- – Work in process.
- – Raw materials and supplies.
- – Parts and subassemblies.
- – Consumables and spares.
- – Packing materials and containers.
Thus the are actually accounts in the quotient system , which is the system that the auditor deals with. If the sequence of balance vector entries for account , , is
then in the expression for the auditor will have combined in each the amounts for all the accounts in the -equivalence class : for example, the cash balances of the various bank accounts are totalled. (Notice that we are not dealing a true report here since not all accounts in have been selected).
Next the auditor makes a selection from the -equivalence classes . This sample is to be chosen by the statistical technique of stratified sampling. Having selected the equivalence classes, the auditor must verify the final balance of each one by obtaining the balances of all the accounts in the selected equivalence class and combining them. Of course, in order to guarantee the independence of the auditing process, these final balances must be requested not from within the company, but from the external sources, for example, from the banks, debtors, creditors and warehouse.
In case a final balance provided to the auditor by an external unit does not coincide with the final balance generated by the company's accounting process, the auditor must request all the documentation related to the corresponding account. Naturally, this documentation must again be supplied by the external sources. Finally, the auditor revises the documents supplied and decides if the error is due to the company or to the provider (in the case of inventories, it is necessary to use the appropriate inventory count sheets). In the first case, the auditor must propose a correction to the final balance of the company.
In practice, the company is obliged to correct a detected error in the final balance only if the mistake is materially significant. On the other hand, if the errors detected exceed a certain number, which is predicted by statistical methods, namely quality control techniques, the auditor may have insufficient confidence in the company's accounts and might require that further tests be applied.
After completion of this procedure, the auditor will propose a new set of specific allowable transactions, denoted by , which will be called the control set of allowable transactions,
Observe that the balance vectors in are specific balance vectors and that the number of elements in depends on the method of choosing a representative sample of the suspicious transactions, say
Note that some vectors will be if the corresponding transactions proposed by the auditor are new.
We now define an audit of the accounting system to be an automaton
whose parameters are as follows.
- • The state set is .
- • The input set is .
- • The output set is where is the quotient set obtained from the equivalence relation .
- • Changes of state are determined by the next state function given by the rule
- • The output is computed from the output function , which is defined by
In essence what the auditing automaton achieves is replacement of suspect specific allowable transactions by corrected transactions . Thus the audit of the accounting system can be thought of as an associated automaton devised by the auditor with the aim of verifying the operation of the original system. It is not a part of the accounting system like the control mechanisms described in 9.2 and 9.3, but is an a posteriori device imposed by an external source.
16. Chapter TenThe Model Illustrated
The purpose of this final chapter is to illustrate the applicability of the extended model by presenting a detailed account of the accounting system of a small company in terms of the 10-tuple model developed in Chapter 9.
16.1. 10.1. A Real Life Example
Let us consider the case of a company which is engaged in the business of trading finished products. We aim to show in detail how the operation of the company's accounting system can be represented by the extended model in the form of a standard 10-tuple
It is assumed that the company has four departments:
: Cash.
: Customer order department.
: Warehouse.
: Accounts department
The customer order department has two subdivisions, namely
: Purchasing.
: Sales.
Thus in all there are five units in the company and the set of units is
Next we assume that the accounting system of the company has just 12 accounts and the account set is
where the accounts are given by the following key:
: Cash on hand.
: Bank account.
: Trade debtors.
: Machinery, plant and tools.
: Buildings and other structures.
: Inventories.
: Share capital.
: Trade creditors.
: Loans received.
: Accumulated depreciation of fixed assets.
: Retained earnings.
: Profit and loss.
According to the rules and practices of the company, there are six allowable transaction types and three specific allowable transactions. In interpreting the balance vectors that follow the reader is reminded of the convention that debits increase account balances while credits decrease them, after allowing for the signs of the account balances.
The set of allowable transaction types consists of the following:
- • Purchase of inventories, to be paid in part through cash or bank
account and in part through trade creditors,
- • Sale of inventories, to be paid in part through cash or bank account and in part through trade debtors,
- • Receipt of a bank loan to purchase machinery or inventories,
Next the set of specific allowable transactions consists of the following:
- • : depreciation of the machinery, plant and tools at 5% per year. Assume that the initial balance of account is $100,000, so the depreciation is $5,000 per year:
- • : quarterly loan amortization paid through bank account; the loan amount is assumed to be $6,000 and rate of interest 1% per trimester; the amount of principal repaid is $150, so
the quarterly payment is $210:
- • : the company has two employees. The remuneration of each one is $1,500 a month payable through bank account and is counted against profit/loss. Moreover, they earn two extra month's salaries paid twice a year:
Next the allowable account balances for the company are specified by bounding functions . It is convenient to identify these functions with two 12-column vectors with entries in , where the th component of the vectors are and respectively. With this identification the vectors are
Recall here that balances of asset accounts are normally positive and those of liability and equity accounts are negative. Here are some comments on the restrictions implied by these vectors.
- 1. The -balance is bounded by $0 and $8,000 because it is not possible to have a negative cash balance for account , and, according to the company policy, cash balances over $8,000 are not permitted.
- 2. Bank account is bounded by 0 and because the company policy does not permit the bank account to be overdrawn and there is no upper limit for the balance of funds in the account.
- 3. According to the company's security policy, the trade debtors account is restricted and cannot exceed $6,000.
- 4. The assets represented by accounts and require a minimum investment to keep the equipment in working order, namely $3,000 and $100,000, respectively. In practice one would expect that the investment in these assets could be greater than the minimum, thereby improving the production process, but there is an upper limit imposed by company policy of $600,000 for both assets.
- 5. The balance of the inventory is bounded by a minimum amount $5,000, which is necessary to satisfy the orders from clients, and a maximum amount $10,000 imposed by the physical restrictions of the warehouse.
- 6. As regards share capital , according to the legal status of the company (public corporation, limited corporation, limited partnership, etc.), there is a minimum share capital, in this case, $300,000. Moreover, the company can allow increases in capital up to $600,000. (Allow for signs in comments 6 – 10).
- 7. Taking into account the fact that the trade creditors represent a credit when purchasing inventories, the company's image requires that the balance of account be bounded, say by $8,000.
- 8. Just like the trade creditors account, it is inappropriate for the company to exceed a limit in the loans received account , say the limit is $10,000. There could be various reasons for this restriction: lack of confidence at the bank, deterioration of certain ratios, etc.
- 9. As in the case of , there is an upper bound of $600,000 for the balance of the depreciation account . In addition it is usual for the company to depreciate a percentage of the -balance per year, say 10%, so there is a lower limit of $60,000.
- 10. Finally, it is possible that, depending on the profit or loss situation, the company might wish to increase retained earnings, which explains the bound of $50,000 in and unlimited balance in .
The set of allowable balance vectors for the system as defined in terms of the functions and is therefore
The extended model also has the capacity to generate reports. In this case, because of the small size of the company, it is assumed that there is a single report which corresponds to the equivalence relation on the account set with the following equivalence classes:
- • , which will be called “current assets”.
- • , which will be called “non-current (tangible) assets”.
- • , which will be labeled “capital and reserves”.
- • : “current liabilities”.
- • : “non-current liabilities”.
Thus the set of reports is simply
According to the rules and policies of the company the authorizations needed for transactions affecting the various accounts are encoded in the following control matrices – recall that displays authorizations needed for debits and those for credits:
In order to understand the role played by the matrices and , we recall the significance of their entries. The columns of the matrices represent the units of the company and , while the rows represent the accounts .
- • A debit in accounts (cash) or (bank) represents an injection of cash into the company and requires no authorization and so rows 1 and 2 of matrix consists of zeros. However, a transaction that credits or has to be approved by and in that precise order.
- • A debit in account (trade debtors), as indicated by , requires two authorizations: first from department and then from department (in this order). A credit to this account requires no authorizations.
- • A debit to accounts (machinery, plant and tools), (buildings and other structures), (share capital) or (loans received) requires that departments (accounts) and (cash)
agree in that order. On the other hand, a debit to account requires authorization first by (accounts department), (cash) and (purchasing department), because some of the purchased inventories might be defective: however, the authorizations from and can be given in any order. On the other hand, a credit to any of these accounts only requires the agreement of , except for , which must also be approved by .
- • Account needs three authorizations for debits, in order from (warehouse), (purchasing department) and (cash): the case of a credit is analogous, but must be changed to (sales department).
- • Accounts and need only authorizations from (accounts department) for both debits and credits.
- • Finally, account requires no authorizations because its balance is the consequence of those of other accounts.
Next the frequency function, must be specified; it is identified with a 3-column vector with entries in , where the components of the vector are the values of . We have seen that for the company the set has just three elements, namely
- • = depreciation over one year;
- • = quarterly payments on a loan;
- • = monthly payments of salaries and wages.
Thus the values of written in column form are
where since is the depreciation over one whole year, and because the loan amortization is assumed to be quarterly; finally, because each worker has to receive his/her salary monthly with two extra payments at the middle and end of the year.
16.2. 10.2. The Operation of the Model
We will now show how the 10-tuple model records some typical accounting activities of the company. Suppose that the initial (allowable) balance vector and frequency counter are given by
The components of are the initial balances of the various accounts of the company, while shows the frequencies with which the specific allowable transactions have already been applied. Thus the initial state of the automaton is .
16.2.1. The transactions
Let us examine the effect of applying a chain of six allowable transactions . The first three are of allowable types in and the remaining three are specific transactions from . Keep in mind that only transactions in change the frequency counter. Each transaction is accompanied by two control matrices detailing the authorizations received from the various units. Thus a typical input is . Recall that we prefer to work with the reduced forms of these matrices , in which zero rows corresponding to entries of which are non-positive or non-negative respectively are omitted.
- 1. Transaction : purchase of $1,000 inventories, $150 to be paid
through bank and $850 through trade creditors, is given by
In addition the transaction comes tagged by two control matrices which record the authorizations already obtained: in reduced form these are
Thus the row in is row 6 of and the rows of are rows 2 and 8 of . Notice that and , which shows that and incorporate all the authorizations needed for the transaction . In this case , so the frequency function does not change. Thus the new state of the system effected by the input is where and . Hence
The corresponding output is the report
- 2. Transaction : sale of $3,000 of inventories, with $1,000 of the proceeds to be paid into cash and $2,000 to trade debtors.
The transaction is tagged by control matrices
Since and , the authorization process is complete. Also , so the frequency function does not change. The new state is where
The output is the report
note that the output report has not changed, i.e., , because transaction has moved funds among accounts belonging to the same equivalence class, viz “current assets”.
- 3. Transaction : a bank gives a loan of $1,000 to purchase machinery.
In this case the transaction is tagged by the control matrices
which list the authorizations received. However, in this case does not contain all the authorizations needed to approve the transaction , because the accounts department has not authorized the purchase of machinery, despite the fact that it has authorized receipt of the bank loan. Therefore the transaction is rejected and the state remains . Thus
and the output will be an error message.
- 4. Transaction : depreciation of machinery, plant and tools by $5,000.
The authorization matrices are
which are satisfactory. In this case , so the frequency counter changes. The new state of the system is , where
The output is the report
- 5. Transaction : quarterly loan amortization, with interest of $60 paid and $150 of principal repaid.
The authorizations obtained are:
which are in order. Here , so once again the frequency counter changes. The new state of the system is where
The output is the report
6. Transaction : the company pays the monthly salaries of its two employees through the bank account.
The authorizations are
these are in order. Here , so once again the frequency counter will change. The new state of the system is where
The output is the report
Thus the balances of the company's accounts after the six transactions have been applied are recorded in the vector .
16.2.2. Application of an audit
To conclude the example, let us consider what happens when the audit facility described in Chapter 9 is applied. Assume the company has a legal status which requires a yearly audit of its accounts. The auditor decides to ask for the balances of the following company accounts:
- • inventories ;
- • bank account ;
- • trade debtors ;
- • trade creditors .
After stratified sampling, the auditor chooses to investigate the following items:
- • finished products A and B;
- • accounts in banks X, Y and Z;
- • trade debtors M and N;
- • trade creditor Q.
First of all, according to the accounting information, the final balance for inventories of $5,000 includes $1,200 for finished product A and $900 for finished product B. The auditor requires a count and proceeds to examine the documentation for both products in the warehouse. As a result of the investigation, the values of the products in the warehouse are found to be $1,500 for A and $850 for B. The difference of $50 in the value of product B is not considered to be significant, but the auditor decides to order an adjustment for product A. This records a debit to inventory in respect of product A amounting to $300, which implies a profit increase of the same amount. The corrected transaction vector is
Observe that in this case the original transaction equals since there was no previous transaction involving the surplus of $300 corresponding to the finished good A. Thus the automaton simply applies the transaction vector to the system in order to correct the error.
Secondly, assume that banks X, Y and Z supply lists of all activities in their accounts for the company through December 31. When these activities are checked for X and Y, the auditor observes that all of them correspond to approved transactions involving other asset or liability accounts. However, the case of bank Z is different; the auditor finds a debit of $800 corresponding to the sale of inventories which has been wrongly applied to the account of trade debtor N, instead of being paid into the bank account. In this case it is necessary to cancel the original transaction, which was represented by the balance vector
and replace it by the correct transaction
Observe that this pair of transactions can be replaced by the single transaction
which represents the error. The effect of the auditing automaton is to apply the vector to the system to correct the error, as described in Chapter 9.
Finally, all debits and credits in which the trade creditor Q is involved are found to correspond to amounts in bank account and inventories, so from this information the auditor concludes that no adjustments are required involving the trade creditor account. The audit is now concluded.
16.3. 10.3. Concluding Remarks
Throughout this work our aim has been to show how the operation of the double entry accounting system can be elucidated by the introduction of concepts and methods from abstract algebra. The remarkably simple key idea is that of a balance vector, which is used to display the account balances of a company at any instant, and also to represent the transactions which modify balances when an economic event affects the company. Balance vectors have the advantage that the signs of the entries show whether the transaction in question debits or a credits an account. They also have natural mathematical interpretations, which open up the use of a range of standard techniques and constructions from algebra.
The principal achievement of the investigation has been the construction of an algebraic model which closely represents the workings of a real life accounting system. The result is the so-called 10-tuple model, which is capable of screening balances and incoming transactions for appropriateness, verifying authorizations for such transactions, scrutinizing frequency of application of transactions, generating reports and detecting errors.
The algebraic model is most convincing when it is viewed as an automaton in which the balances form part of the state. The inputs contain transactions that change the state, including the frequency counts, while outputs include reports that are generated for the benefit of shareholders, creditors, clients and the public.
In addition to balance vectors and automata, other algebraic objects that have played a useful role in describing the operations of accounting systems include graphs, digraphs and monoids: furthermore, integer programming algorithms are important in the detection and correction of errors. The standard algebraic notion of a quotient structure is exactly what is called for in the formulation of a report.
It should be emphasized that, despite these successes, our approach is necessarily limited in its scope. Inevitably the application of algebraic methods to accounting theory cannot extend beyond depiction of the purely mechanical aspects of the subject. Throughout this work accounting systems are regarded as deterministic systems whose actions are always predictable consequences of the rules governing the system.
On the other hand, economics, like most social sciences, deals with the behavior of vast numbers of individual members of complex populations, for whose study statistical methods may be more appropriate. For algebraic methods to be successful there must be clear rules and well defined objects of study. In addition, we do not attempt to address the philosophical aspects of accounting theory. Nevertheless, despite these disclaimers, it is the authors' belief that a convincing case has been made for the claim that abstract algebra has much to contribute to an understanding of the accounting process.
17. List of Mathematical Symbols
: sets.
: set of words in an alphabet .
: number of elements in a finite set .
: set of all functions on a set .
: a difference set.
: a cartesian product.
: respective sets of positive integers, natural numbers, integers, rational numbers, real numbers.
: column vectors.
: support of a vector.
: set of all -column vectors over an ordered domain .
: set of -balance vectors over .
: set of -transaction vectors over .
: balance vector with th entry 1, th entry and other entries 0.
: type of a balance vector .
: transaction which adds .
: function which adds subject to allowability.
: an accounting system.
: a join of accounting systems.
: an allowable vector in a join of accounting systems.
: a quotient accounting system.
: -equivalence class of .
: a vector in the quotient system .
: canonical epimorphism associated with equivalence relation .
: homomorphism induced by the function .
: submonoid generated by .
: monoid of an accounting system .
: a semiautomaton.
: an automaton.
: automaton and time enhanced automaton of an accounting system .
: image of a function/homomorphism.
: kernel of a homomorphism.
: a direct sum of modules.
: transpose of a matrix.
: control matrices.
: reduced control matrices.
: matrix with 1 as the entry and other entries 0.
: set of matrices over .
: sets of vertices of a digraph .
: a binomial coefficient.
: greatest integer less than or equal to .
: a Stirling number of the second kind.
18. Bibliography
18.1. Mathematics References
- [1] Biggs, N.L. Discrete Mathematics, 2nd ed. Oxford. 2002.
- [2] Brualdi, R.A. Introductory Combinatorics, 5th ed. Prentice-Hall, Upper Saddle River, NJ. 2010.
- [3] Cooper, S.B. Computability Theory. Chapman Hall, Boca Raton, FL. 2004.
- [4] Hennie, F.C. Introduction to Computability. Addison-Wesley, Reading, MA. 1977.
- [5] Hopcroft, J. and Ullman, J. Introduction to Automata Theory, Languages and Computation. Addison-Wesley, Reading, MA. 1979.
- [6] Kolman, B. and Beck, R.E. Elementary Linear Programming with Applications, 2nd ed. Academic Press, San Diego, CA. 1995.
- [7] Lidl, R. and Pilz, G. Applied Abstract Algebra. Springer, New York. 1998.
- [8] Robinson, D.J.S. An Introduction to Abstract Algebra. W. de Gruyter, Berlin. 2003.
- [9] Robinson, D.J.S. A Course in Linear Algebra with Applications, 2nd ed. World Scientific, Singapore. 2006.
- [10] Rosen, K.H. Discrete Mathematics and its Applications, 6th ed. McGraw-Hill, Boston, MA. 2007.
- [11] Strang, G. Linear Algebra and its Applications, 3rd ed. Harcourt Brace Jovanovich, San Diego, CA. 1988.
- [12] West, D.B. Introduction to Graph Theory, 2nd ed. Prentice-Hall, Upper Saddle River, NJ. 2001.
18.2. Accounting References
- Ames, E. (1983). Automaton and group structures in certain economic adjustment mechanisms. Mathematical Social Sciences 6(2), 247-260.
- Arya, A., Fellingham, J.C., Mittendorf, B. and Schroeder, D.A. (2004). Reconciling Financial Information at Varied Levels of Aggregation. Contemporary Accounting Research, 21(2), 303.
- Arya, A., Fellingham, J.C. and Schroeder, D.A. (2000a). Accounting information, aggregation, and discriminant analysis. Management Science, 46(6), 790.
- Arya, A., Fellingham, J.C. and Schroeder, D.A. (2000b). Estimating transactions given balance sheets and an income statement. Issues in Accounting Education, 15(3), 393.
- Aukrust, O. (1955). Nationalregnskap-Teoretiske Prinsipper (National Income Accounting Theoretical Principles), Oslo, Statistisk Centralburå.
- Aukrust, O. (1966). An Axiomatic Approach to National Accounting: An Outline. Review of Income and Wealth, 12(3), 179-190.
- Balzer, W. and Mattessich, R. (1991). An axiomatic basis of accounting: a structuralist approach. Theory and Decision, 30, 213-243.
- Balzer, W. and Mattessich, R. (2000). Formalizing the basis of accounting, in Balzer, W., Sneed, J.D. and Moulines, C.U. eds. Structuralist Knowledge Representation-Paradigmatic Examples, Amsterdam, Rodopi, Atlanta GA (Vol. 75 of the Poznan Studies in the Philosophy of the Sciences and Humanities), 99-126.
- Barley, S.R. (1983). Semiotics and the Study of Occupational and Organizational Cultures. Administrative Science Quarterly, 28(3), 393-413.
- Belkaoui, A. (1978). Linguistic Relativity in Accounting. Accounting Organizations and Society, 3(2), 97-104.
- Belkaoui, A. (1980a). The Impact of Socio-Economic Accounting Statements on the Investment Decision: An Empirical Study. Accounting, Organizations and Society, 5(3), 263-283.
- Belkaoui, A. (1980b). The Interprofessional Linguistic Communication of Accounting Concepts: An Experiment in Sociolinguistics. Journal of Accounting Research, 18(2), 362-374.
- Blackwell, D. (1951). Comparison of Experiments. In Proceedings of the Second Berkeley Symposium in Mathematical Statistics and Probability, edited by J. Neyman. Berkeley: University of California Press, 93-102.
- Blackwell, D. (1953). Equivalent Comparison of Experiments. Annals of Mathematical Statistics, 24(2), 267-272.
- Botafogo, F. (2009). Algebraic accounting: an introduction to accountancy's axiomatics. Working paper, São Paulo, Brazil.
- Brewer, C. (1987). On the nature of accounting information sets. Typescript.
- Butterworth, J.E. (1967). Accounting Systems and Management Decision: an Analysis of the Role of Information in the Managerial Decision Process. Unpublished Ph.D. Dissertation, University of California-Berkeley.
- Cayley, A. (1894). The Principle of Bookkeeping by Double Entry. Cambridge University Press.
- Chambers, R.J. (1966). Accounting, Evaluation and Economic Behaviour. Prentice-Hall. Englewood Cliffs, NJ. (Reprinted in Accounting Classics Series. Scholars Books Co., Houston, TX. 1975).
- Cooke, T. and Tippet, M. (2000). Double entry bookkeeping, structural dynamics and the value of the firm. British Accounting Review, 32(3), 261-288.
- Cruz Rambaud, S. and García Peréz, J. (2005). The accounting system as an algebraic automaton. International Journal of Intelligent Systems, 20, 827-842.
- De Morgan, A. (1846). Elements of Arithmetic, 5th ed. Appendix, On the Main Principle of Book-Keeping. Taylor and Walton, London.
- Demski, J.S. (1980). Information Analysis, 2nd ed. Addison-Wesley, Reading, MA.
- Demski, J.S. (2007). Is accounting an academia discipline? Accounting Horizons, 21(2), 153-157.
- Demski, J.S., Fitzgerald, S.A., Ijiri, Y. and Lin, H. (2006) Quantum information and accounting information: their salient features and conceptual applications. Journal of Accounting and Public Policy, 25, 435-464.
- Demski, J.S., Fitzgerald, S.A., Ijiri, Y. and Lin, H. (2009). Quantum information and accounting information: exploring conceptual applications of topology. Journal of Accounting and Public Policy, 28, 133-147.
- Demski, J.S., Patell, J.M. and Wolfson, M.A. (1984). Decentralized choice of monitoring systems, The Accounting Review, 59(1), 16-34.
- Edwards, E.O. and Philip W.B. (1961). The Theory and Measurement of Business Income. University of California Press Berkeley, CA.
- Ellerman, D. (1982). Economics, Accounting, and Property Theory. D.C. Heath, Lexington, MA.
- Ellerman, D. (1985). The mathematics of double entry bookkeeping. Mathematics Magazine, 58, 226-233.
- Ellerman, D. (1986). Double entry multidimensional accounting. Omega, International Journal of Management Science, 14(1), 13-22.
- Fisher, I.E. (2004). On the structure of financial accounting standards to support digital representation, storage, and retrieval. Journal of Emerging Technologies in Accounting, 1(1), 23-40.
- Fisher, I.E. and Garnsey, M.R. (2006). The semantics of change as revealed through an examination of financial accounting standards amendments. Journal of Emerging Technologies in Accounting, 3(1), 41-60.
- Garnsey, M.R. and Fisher, I.E. (2008). Appearance of new terms in accounting language: a preliminary examination of accounting pronouncements and financial statements. Journal of Emerging Technologies in Accounting, 5(1), 17-36.
- Gibbons, M. and Willett, R.J. (1997). A new light on accrual, aggregation and allocation, using an axiomatic analysis of accounting. Abacus, 33(2), 137-168.
- Gjesdal, F. (1981). Accounting for stewardship. Journal of Accounting Research, 19(1), 208-231.
Hamilton, W.R. (1837). Theory of conjugate functions, or algebraic couples: with a preliminary and elementary essay on algebra as the science of pure time. Transactions of the Royal Irish Academy 17, 293-422.
Husserl, E. (1931). Ideas. Allen and Unwin, London.
Ijiri, Y. (1967). The Foundations of Accounting Measurement: a Mathematical, Economic and Behavioral Inquiry. Prentice-Hall, Englewood Cliffs, NJ.
Ijiri, Y. (1975). Theory of Accounting Measurement. American Accounting Association, Sarasota, FL.
Lebar, M.A. (1982) A general semantics analysis of selected sections of the 10-K, the annual report to shareholders, and the financial press release. The Accounting Review, 57(1), 176-189.
Mattessich, R. (1957). Towards a general and axiomatic foundation of accountancy. Accounting Research, 8, 328-355.
Mattessich, R. (1964). Accounting and Analytical Methods. Irwin, Homewood.
Mattessich, R. (1995). Critique of Accounting-Examination of the Foundations and Normative Structure of Accounting. Quorum-Books, Greenwood Publishing Group, Westport, CT.
Mattessich, R. (1998). From accounting to negative numbers: A signal contribution of Medieval India to mathematics. Accounting Historians Journal, 25(2), 129-145.
Mattessich, R. (2000). The Beginnings of Accounting and Accounting Thought-Accounting Practice in the Middle East (8000 B.C. to 2000 B.C.) and accounting thought in India (300 B.C. and the Middle Ages). Garland Publishing, New York, NY.
Mattessich, R. (2003). Accounting research and researchers of the nineteenth century and the beginning of the twentieth century: an international survey of authors, ideas and publications. Accounting, Business and Financial History, 13(2), 171-205.
Mattessich, R. (2005a). The information economic perspective of accounting – its coming of age. Accounting Working Paper, Sauder School of Business, University of British Columbia.
Mattessich, R. (2005b). A Concise History of Analytical Accounting: Examining the use of Mathematical Notions in our Discipline. Spanish Journal of Accounting History, 2, 123-153.
Mattessich, R. and Galassi, G. (2000). History of the spreadsheet: from matrix accounting to budget simulation and computerization, in AECA ed., Accounting and History. Selected Papers from the 8th Congress of Accounting Historians, Madrid. Asociación Española de Contabilidad y Administración, 203-232.
McCloskey, D. (1983). The rhetoric of economics. Journal of Economic Literature, 21, 481-517.
McClure, M. (1983). Accounting as Language: a Linguistic Approach to Accounting. Unpublished Ph.D. Dissertation, University of Illinois.
Nehmer, R.A. (1988). Accounting Information Systems as Algebras and First Order Axiomatic Models. Unpublished Ph.D. Dissertation, University of Illinois.
Nehmer, R.A. (2010). Accounting systems as first order axiomatic models: consequences for information theory. International Journal of Mathematics in Operational Research, 2(1), 99-112.
Nehmer, R.A. and Robinson, D.J.S. (1997). An algebraic model for the representation of accounting systems. Annals of Operations Research, 71(1), 179-198.
Pacioli, L. (1963). Summa de Arithmetica, Geometria, Proportioni et Proportionalita: Distinctio Nona, Tractus XI, Particularis de Computis et Scripturis. (1494). Translated by Brown, R.G., Johnston, K.S., as "Pacioli on Accounting", McGraw-Hill, New York, NY.
Paton, W.A. (1922). Accounting Theory. Ronald Press, New York, NY. (Reprinted by Accounting Studies Press, Chicago, IL. 1962).
Stephens, R.G., Dillard, J.F. and Dennis, D.K. (1985). Implications of formal grammars for accounting policy development. Journal of Accounting and Public Policy, 4, 123-148.
Tippett, M. (1978). Axioms of accounting measurement. Accounting and Business Research, Autumn, 266-278.
Tyrvainen, P., Kipelainen, T. and Jarvenpaa, M. (2005). Patterns and measures of digitalisation in business unit communication. International Journal of Business Information Systems, 1, 199-219.
- Velupillai, K.V. (2005). The unreasonable ineffectiveness of mathematics in economics. Cambridge Journal of Economics, 29, 489-872.
- Willett, R.J. (1987). An axiomatic theory of accounting measurement. Accounting and Business Research, 17, 155-171.
- Willett, R.J. (1988). An axiomatic theory of accounting measurement - Part II. Accounting and Business Research, 19, 79-91.
- Willett, R.J. (1991). Theory of accounting measurement structures. IMA Journal of Management Mathematics, 3(1), 45-59.
19. Index
- abelian group 31, 132
- account set 74
- accounting
- equation 36
- origin of 1, 2
- accounting system
- absolutely bounded 82
- abstract 75
- bounded 82
- equivalent 81
- free 82
- unbounded 82
- algebraic
- approaches to accounting 4
- concepts 27
- algorithm 171, 183
- allowable
- balance vector 75
- transaction 75
- asset account 36
- associative law 31
- audit 208, 227
- as an automaton 205
- authorization process 194
- automaton 121
- extended 124
- of accounting system 127
- time enhanced 128, 133
- automorphism 108
- group 109
- balance
- function 74
- matrix 55
- module 37
- sheet 139
- vector 36
- elementary 38
- simple 38
- verification 176, 177, 181
- balance-check test 205
- basis of free module 35
- Bell number 103
- binomial coefficient 59
- bounded accounting system 82
- absolutely 82
- bounding pair 81
- characteristic zero 33
- chart of accounts 36
- closing 101
- commutative
- law 31
- monoid 130
- ring 31
- complete digraph 158
- composite of functions 51
- connected
- accounting system 77
- components 77
- control matrix 192, 196
- reduced 195
- credit 53
- cycle 42
- cyclic permutation 42
- debit 53
- decision problem 170, 171
- decomposable system 91
- diagram of classes of systems 152
- digraph 69
- feasible 79, 184
- of a transaction 70
- of an accounting system 76
-
- of an automaton 121
- strongly transitive 154, 157
- transitive 155
- direct sum of modules 41
- directed graph - see digraph
- disconnected accounting system 77
- disjoint cycles 42
- distributive law 31
- domain
- integral 32
- ordered 32
- double entry book-keeping 1
- edge in a (di)graph 70
- elementary
- accounting system 146
- balance vector 38
- matrix 64
- transaction 52
- epimorphism 107
- canonical 111
- equity account 36
- equivalence
- class 98
- relation 98
- equivalent systems 81
- error correcting system 132, 150
- example, real life 210
- expiration time 134
- extended
- accounting system 200
- automaton 124, 201
- model 200, 211
- semiautomaton 124
- feasibility problem 177
- feasible
- digraph 79
- transaction 79
- finitely
- specifiable system 143
- specified system 143
- finitely generated
- accounting system 145
- monoid 145
- formal language 18
- free
- accounting system 82
- module 35
- monoid 124
- frequency
- control 197
- counter 198
- function 198
- graph of accounting system 77
- group
- abelian 31
- and accounting systems 131
- automorphism 109
- Pacioli 55
- symmetric 108
- Hasse diagram 58
- hereditary system 148, 160, 162
- homomorphism
- of accounting systems 106
- of modules 37
- of monoids 130
- identity
- element 31
- transaction 51, 76
- image
- of a function 105
- of a homomorphism 42, 113
- indecomposable system 91
- in-degree in a digraph 70
- input alphabet 121
- integer program 179
- integral domain 32
- inverse system 150
- isolated vertex 157
- isomorphism
- of accounting systems 107
- of digraphs 163
- of modules 52
- of monoids 130
- theorems 111
- join
- of accounting systems 86
- of relations 104
- kernel of a homomorphism 37
- lattice 104
- level
- of a balance vector 45
- of a transaction 58
- liability account 36
- linear
- combination 35
- independence 35
- order 32
- loop in a (di)graph 70
- matrix
- balance 55
- control 192, 196
- and transactions 63
- Mattessich function 65
- meet of relations 104
- membership problem 172
- message 133
- model
- extended 200, 211
- 10-tuple 200
- module 34
- balance 37
- free 35
- monoid
- free 124
- of accounting system 128
- of semiautomaton 122
- monomorphism 107
- negative element 31, 32
- next state function 121
- ordered (integral) domain 32
- out-degree in a digraph 70
- output
- alphabet 121
- function 121
- Pacioli, L. 2
- group 55
- partial order 58
- of transaction types 57
- partition 99
- permutation 42
- and balance vectors 41
- cyclic 42
- positive element 32
- profit and loss account 36
- pure accounting system 150
- quotient systems 100
- hierarchy of 102
- quotients of 116
- rank of a free module 35
- recursion theory 172
- recursive
- set 172
- system 173
- recursively enumerable
- set 172
- system 173
- relation
- antisymmetric 58
- equivalence 98
- irreflexive 70
- reflexive 58, 98
- symmetric 98
- transitive 58, 98
- report 101
- ring, commutative 31
- semiautomaton 120
- simple
- accounting system 146, 186
- balance vector 38
- transaction 52
- sink 157
- source 157
- state of an automaton 121
- Stirling number 102, 196
- subaccounting system 83
- proper 83
- submodule 37
- submonoid 123
- support of a vector 83
- symmetric group 108
- T-diagram 53
- time enhanced 134
- transaction 51
- allowable 75
- elementary 52
- feasible 79
- simple 52
- vector 52
- transitive
- closure 104
- relation 98
- Turing, A.M. 120
- Turing machine 171
- type
- of a balance vector 57
- of a transaction 57
- type-complete system 150
- unbounded accounting system 82
- vector
- balance 36
- elementary 38
- column 33
- elementary 35
- transaction 52
- vertex of a (di)graph 70
- isolated 157
- word 123
- empty 123
- zero
- element 31
- vector 33