<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="ru"><front><journal-meta><journal-id journal-id-type="publisher-id">mais</journal-id><journal-title-group><journal-title xml:lang="ru">Моделирование и анализ информационных систем</journal-title><trans-title-group xml:lang="en"><trans-title>Modeling and Analysis of Information Systems</trans-title></trans-title-group></journal-title-group><issn pub-type="ppub">1818-1015</issn><issn pub-type="epub">2313-5417</issn><publisher><publisher-name>Yaroslavl State University</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.18255/1818-1015-2022-3-210-227</article-id><article-id custom-type="elpub" pub-id-type="custom">mais-1713</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>Discrete Mathematics in Relation to Computer Science</subject></subj-group></article-categories><title-group><article-title>Тестирование зависимостей и правил вывода в базах данных</article-title><trans-title-group xml:lang="en"><trans-title>Testing Dependencies and Inference Rules in Databases</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-0576-2149</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Зыкин</surname><given-names>Сергей Владимирович</given-names></name><name name-style="western" xml:lang="en"><surname>Zykin</surname><given-names>Sergey V.</given-names></name></name-alternatives><email xlink:type="simple">szykin@mail.ru</email><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Институт математики им. С. Л. Соболева СО РАН</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Sobolev institute of mathematics SB RAS</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2022</year></pub-date><pub-date pub-type="epub"><day>25</day><month>09</month><year>2022</year></pub-date><volume>29</volume><issue>3</issue><fpage>210</fpage><lpage>227</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Зыкин С.В., 2022</copyright-statement><copyright-year>2022</copyright-year><copyright-holder xml:lang="ru">Зыкин С.В.</copyright-holder><copyright-holder xml:lang="en">Zykin S.V.</copyright-holder><license xml:lang="ru" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>Данная работа распространяется под лицензией Creative Commons Attribution 4.0.</license-p></license><license xml:lang="en" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://www.mais-journal.ru/jour/article/view/1713">https://www.mais-journal.ru/jour/article/view/1713</self-uri><abstract><p>Процесс тестирования зависимостей и правил вывода может быть использован в двух направлениях. Во-первых, тестирование позволяет проверить гипотезы относительно неизвестных правил вывода. Основная цель при этом поиск реализации отношения - контрпримера, который удовлетворяет исходным зависимостям и противоречит следствию. Найденный контрпример опровергает гипотезу, отсутствие контрпримера позволяет приступить к поиску обобщения правила и условий его выполнимости (logically imply). Тестирование не может служить доказательством выполнимости правил вывода, поскольку процесс обобщения требует поиска универсальных условий выводимости для каждого правила, что невозможно запрограммировать, поскольку даже вид этих условий неизвестен. Во-вторых, при проектировании конкретной базы данных может потребоваться проверка выполнимости правила, для которого отсутствует теоретическое обоснование. Такая ситуация может проявиться при наличии аномалий в суперключе. Решение этой проблемы основывается на использовании правил вывода зависимостей соединения. Для этих зависимостей пока не найдена полная система правил (аксиом). В данной статье рассматривается: 1) методика проведения тестирования правил вывода на примере зависимостей соединения, 2) предложена схема алгоритма тестирования, 3) рассмотрены некоторые гипотезы, для которых отсутствуют контрпримеры и правила вывода, 4) предложен пример использования тестирования при поиске корректной декомпозиции суперключа.</p></abstract><trans-abstract xml:lang="en"><p>The process of testing dependencies and inference rules can be used in two ways. First, testing allows verification hypotheses about unknown inference rules. The main goal, in this case, is to search for the relation - a counterexample that illustrates the feasibility of the initial dependencies and contradicts the consequence. The found counterexample refutes the hypothesis, the absence of a counterexample allows searching for a generalization of the rule and conditions for its feasibility (logically imply). Testing cannot be used as a proof of the feasibility of inference rules, since the process of generalization requires the search for universal inference conditions for each rule, which cannot be programmed, since even the form of these conditions is unknown. Secondly, when designing a particular database, it may be necessary to test the feasibility of a rule for which there is no theoretical justification. Such a situation can take place in the presence of anomalies in the superkey. The solution to this problem is based on using join dependency inference rules. For these dependencies, a complete system of rules (axioms) has not yet been found. This paper discusses: 1) a technique for testing inference rules using the example of join dependencies, 2) a scheme of a testing algorithm is proposed, 3) some hypotheses are considered for which there are no counterexamples and inference rules, 4) an example of using testing when searching for a correct decomposition of a superkey is proposed.</p></trans-abstract><kwd-group xml:lang="ru"><kwd>реляционные базы данных</kwd><kwd>зависимости соединения</kwd><kwd>правила вывода</kwd><kwd>тестирование</kwd></kwd-group><kwd-group xml:lang="en"><kwd>relational databases</kwd><kwd>join dependencies</kwd><kwd>inference rules</kwd><kwd>testing</kwd></kwd-group></article-meta></front><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">J. Ullman, Principles of Database Systems. Stanford University: Computer Science Press, 1980.</mixed-citation><mixed-citation xml:lang="en">J. Ullman, Principles of Database Systems. Stanford University: Computer Science Press, 1980.</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">D. Maier, The Theory of Relational Databases. Rockville: Computer Science Press, 1983.</mixed-citation><mixed-citation xml:lang="en">D. Maier, The Theory of Relational Databases. Rockville: Computer Science Press, 1983.</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">S. Abiteboul, R. Hull, and V. Vianu, Foundations of Databases: The Logical Level (1st. ed.) Addison-Wesley Longman Publishing Co., 1995.</mixed-citation><mixed-citation xml:lang="en">S. Abiteboul, R. Hull, and V. Vianu, Foundations of Databases: The Logical Level (1st. ed.) Addison-Wesley Longman Publishing Co., 1995.</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">M. Casanova, R. Fagin, and C. Papadimitriou, “Inclusion dependencies and their interaction with functional dependencies”, Journal of Computer and System Sciences, vol. 28, no. 1, pp. 29-59, 1984. doi: 10.1016/0022-0000(84)90075-8.</mixed-citation><mixed-citation xml:lang="en">M. Casanova, R. Fagin, and C. Papadimitriou, “Inclusion dependencies and their interaction with functional dependencies”, Journal of Computer and System Sciences, vol. 28, no. 1, pp. 29-59, 1984. doi: 10.1016/0022-0000(84)90075-8.</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">H. Ko¨hler and S. Link, “Inclusion dependencies reloaded”, in The 24th ACM International on Conference on Information and Knowledge Management (CIKM ’15), 2015, pp. 1361-1370. doi: 10.1145/2806416. 2806539.</mixed-citation><mixed-citation xml:lang="en">H. Ko¨hler and S. Link, “Inclusion dependencies reloaded”, in The 24th ACM International on Conference on Information and Knowledge Management (CIKM ’15), 2015, pp. 1361-1370. doi: 10.1145/2806416. 2806539.</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">V. S. Zykin and S. V. Zykin, “Analysis of Typed Inclusion Dependences with Null Values”, Automatic Control and Computer Sciences, vol. 52, no. 7, pp. 638-646, 2018. doi: 10.3103/S0146411618070258.</mixed-citation><mixed-citation xml:lang="en">V. S. Zykin and S. V. Zykin, “Analysis of Typed Inclusion Dependences with Null Values”, Automatic Control and Computer Sciences, vol. 52, no. 7, pp. 638-646, 2018. doi: 10.3103/S0146411618070258.</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">E. Sciore, “A Complete Axiomatization of Full Join Dependencies”, Journal of the ACM, vol. 29, no. 2, pp. 373-393, 1982. doi: 10.1145/322307.322313.</mixed-citation><mixed-citation xml:lang="en">E. Sciore, “A Complete Axiomatization of Full Join Dependencies”, Journal of the ACM, vol. 29, no. 2, pp. 373-393, 1982. doi: 10.1145/322307.322313.</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">S. V. Zykin, “Generalization of Derivation Rules for Join Dependencies in Database”, Automatic Control and Computer Sciences, vol. 55, no. 7, pp. 731-737, 2021. doi: 10.3103/S0146411621070191.</mixed-citation><mixed-citation xml:lang="en">S. V. Zykin, “Generalization of Derivation Rules for Join Dependencies in Database”, Automatic Control and Computer Sciences, vol. 55, no. 7, pp. 731-737, 2021. doi: 10.3103/S0146411621070191.</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">D. Maier, A. O. Mendelzon, and Y. Sagiv, “Testing implications of data dependencies”, ACM Transactions on Database Systems, vol. 4, no. 4, pp. 455-469, 1979. doi: 10.1145/320107.320115.</mixed-citation><mixed-citation xml:lang="en">D. Maier, A. O. Mendelzon, and Y. Sagiv, “Testing implications of data dependencies”, ACM Transactions on Database Systems, vol. 4, no. 4, pp. 455-469, 1979. doi: 10.1145/320107.320115.</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">D. Maier, Y. Sagiv, and M. Yannakakis, “On the Complexity of Testing Implications of Functional and Join Dependencies”, Journal of the ACM, vol. 28, no. 4, pp. 680-695, 1981. doi: 10.1145/322276.322280.</mixed-citation><mixed-citation xml:lang="en">D. Maier, Y. Sagiv, and M. Yannakakis, “On the Complexity of Testing Implications of Functional and Join Dependencies”, Journal of the ACM, vol. 28, no. 4, pp. 680-695, 1981. doi: 10.1145/322276.322280.</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">P. C. Fischer and D. M. Tsou, “Whether a set of multivalued dependencies implies a join dependency is NP-hard”, SIAM Journal on Computing, vol. 12, no. 2, pp. 259-266, 1983. doi: 10.1137/0212015.</mixed-citation><mixed-citation xml:lang="en">P. C. Fischer and D. M. Tsou, “Whether a set of multivalued dependencies implies a join dependency is NP-hard”, SIAM Journal on Computing, vol. 12, no. 2, pp. 259-266, 1983. doi: 10.1137/0212015.</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">C. Beeri and M. Vardi, “Formal Systems for Tuple and Equality Generating Dependencies”, SIAM Journal on Computing, vol. 13, no. 1, pp. 76-98, 1984. doi: 10.1137/0213006.</mixed-citation><mixed-citation xml:lang="en">C. Beeri and M. Vardi, “Formal Systems for Tuple and Equality Generating Dependencies”, SIAM Journal on Computing, vol. 13, no. 1, pp. 76-98, 1984. doi: 10.1137/0213006.</mixed-citation></citation-alternatives></ref><ref id="cit13"><label>13</label><citation-alternatives><mixed-citation xml:lang="ru">C. Beeri and M. Vardi, “A Proof Procedure for Data Dependencies”, Journal of the ACM, vol. 31, no. 4, pp. 718-741, 1984. doi: 10.1145/1634.1636.</mixed-citation><mixed-citation xml:lang="en">C. Beeri and M. Vardi, “A Proof Procedure for Data Dependencies”, Journal of the ACM, vol. 31, no. 4, pp. 718-741, 1984. doi: 10.1145/1634.1636.</mixed-citation></citation-alternatives></ref><ref id="cit14"><label>14</label><citation-alternatives><mixed-citation xml:lang="ru">M. Gyssens, “On the complexity of join dependencies”, ACM Transactions on Database Systems, vol. 11, no. 1, pp. 81-108, 1986. doi: 10.1145/5236.5237.</mixed-citation><mixed-citation xml:lang="en">M. Gyssens, “On the complexity of join dependencies”, ACM Transactions on Database Systems, vol. 11, no. 1, pp. 81-108, 1986. doi: 10.1145/5236.5237.</mixed-citation></citation-alternatives></ref><ref id="cit15"><label>15</label><citation-alternatives><mixed-citation xml:lang="ru">S. Bell and P. Brockhausen, “Discovery of Data Dependencies in Relational Databases”, University of Dortmund, 1995. doi: 10.17877/DE290R-8395.</mixed-citation><mixed-citation xml:lang="en">S. Bell and P. Brockhausen, “Discovery of Data Dependencies in Relational Databases”, University of Dortmund, 1995. doi: 10.17877/DE290R-8395.</mixed-citation></citation-alternatives></ref><ref id="cit16"><label>16</label><citation-alternatives><mixed-citation xml:lang="ru">J. Kivinen and H. Mannila, “Approximate inference of functional dependencies from relations”, Theoretical Computer Science, vol. 149, no. 1, pp. 129-149, 1995. doi: 10.1016/0304-3975(95)00028-U.</mixed-citation><mixed-citation xml:lang="en">J. Kivinen and H. Mannila, “Approximate inference of functional dependencies from relations”, Theoretical Computer Science, vol. 149, no. 1, pp. 129-149, 1995. doi: 10.1016/0304-3975(95)00028-U.</mixed-citation></citation-alternatives></ref><ref id="cit17"><label>17</label><citation-alternatives><mixed-citation xml:lang="ru">M. W. Vincent and M. Levene, “Restructuring Partitioned Normal Form Relations without Information Loss”, SIAM Journal on Computing, vol. 29, no. 5, pp. 1550-1567, 2000. doi: 10.1137/S0097539797326319.</mixed-citation><mixed-citation xml:lang="en">M. W. Vincent and M. Levene, “Restructuring Partitioned Normal Form Relations without Information Loss”, SIAM Journal on Computing, vol. 29, no. 5, pp. 1550-1567, 2000. doi: 10.1137/S0097539797326319.</mixed-citation></citation-alternatives></ref><ref id="cit18"><label>18</label><citation-alternatives><mixed-citation xml:lang="ru">S. V. Zykin, “Formation of Hypercube Representation of Relational Database”, Programming and Computer Software, vol. 32, no. 6, pp. 348-354, 2006. doi: 10.1134/S0361768806060077.</mixed-citation><mixed-citation xml:lang="en">S. V. Zykin, “Formation of Hypercube Representation of Relational Database”, Programming and Computer Software, vol. 32, no. 6, pp. 348-354, 2006. doi: 10.1134/S0361768806060077.</mixed-citation></citation-alternatives></ref><ref id="cit19"><label>19</label><citation-alternatives><mixed-citation xml:lang="ru">S. Hartmann, S. Link, and T. Trinh, “Constraint Acquisition You Can Chase but You Cannot Find”, in Conferences in Research and Practice in Information Technology Series, vol. 79, 2008, pp. 59-68.</mixed-citation><mixed-citation xml:lang="en">S. Hartmann, S. Link, and T. Trinh, “Constraint Acquisition You Can Chase but You Cannot Find”, in Conferences in Research and Practice in Information Technology Series, vol. 79, 2008, pp. 59-68.</mixed-citation></citation-alternatives></ref><ref id="cit20"><label>20</label><citation-alternatives><mixed-citation xml:lang="ru">F. Marchi, S. Lopes, and J. M. Petit, “Unary and n-ary inclusion dependency discovery in relational databases”, Journal of Intelligent Information Systems, vol. 32, pp. 53-73, 2009. doi: 10.1007/s10844-007-0048-x.</mixed-citation><mixed-citation xml:lang="en">F. Marchi, S. Lopes, and J. M. Petit, “Unary and n-ary inclusion dependency discovery in relational databases”, Journal of Intelligent Information Systems, vol. 32, pp. 53-73, 2009. doi: 10.1007/s10844-007-0048-x.</mixed-citation></citation-alternatives></ref><ref id="cit21"><label>21</label><citation-alternatives><mixed-citation xml:lang="ru">X. Hu, M. Qiao, and Y. Tao, “I/O-efficient join dependency testing, Loomis Whitney join, and triangle enumeration”, Journal of Computer and System Sciences, vol. 82, no. 8, pp. 1300-1315, 2016.</mixed-citation><mixed-citation xml:lang="en">X. Hu, M. Qiao, and Y. Tao, “I/O-efficient join dependency testing, Loomis Whitney join, and triangle enumeration”, Journal of Computer and System Sciences, vol. 82, no. 8, pp. 1300-1315, 2016.</mixed-citation></citation-alternatives></ref><ref id="cit22"><label>22</label><citation-alternatives><mixed-citation xml:lang="ru">F. M. Malvestuto, “A complete axiomatization of full acyclic join dependencies”, Information Processing Letters, vol. 68, no. 3, pp. 133-139, 1998. doi: 10.1016/S0020-0190(98)00148-3.</mixed-citation><mixed-citation xml:lang="en">F. M. Malvestuto, “A complete axiomatization of full acyclic join dependencies”, Information Processing Letters, vol. 68, no. 3, pp. 133-139, 1998. doi: 10.1016/S0020-0190(98)00148-3.</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
