М.Lvov About one Approach for Designing of Algebraic Computations: Computations in Boolean Algebra. Designing of algorithms for algebraic computations.

Презентация:



Advertisements
Похожие презентации
Normal Distribution. in probability theory, the normal (or Gaussian) distribution is a continuous probability distribution that has a bell-shaped probability.
Advertisements

Methodology. A methodology is usually a guideline system for solving a problem, with specific components such as phases, tasks, methods, techniques and.
Integral Integration is an important concept in mathematics and, together with its inverse, differentiation, is one of the two main operations in calculus.
Operators and Arithmetic Operations. Operators An operator is a symbol that instructs the code to perform some operations or actions on one or more operands.
WELCOME TO THE WORLD OF FUZZY SYSTEMS. DEFINITION Fuzzy logic is a superset of conventional (Boolean) logic that has been extended to handle the concept.
Polynomial In mathematics, a polynomial is an expression of finite length constructed from variables (also called indeterminates) and constants, using.
Control Processes Research Center Director Dr. Tech. Sc., Professor V.I. Gurman.
Yogesh Mehla Now concept of logic building is not so complex and not so simple. We will not work on how to make logic program in.
In mathematics, the notion of permutation is used with several slightly different meanings, all related to the act of permuting (rearranging) objects.
Multilayer model in optics. New analitic results. M.D.Kovalev BMSTU
Chap 8-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 8 Estimation: Single Population Statistics for Business and Economics.
Statistics Probability. Statistics is the study of the collection, organization, analysis, and interpretation of data.[1][2] It deals with all aspects.
I N F O R M A T I C S Online tutorial Leila Shautsukova Kabardino-Balkarian State University, Russia Designed by Sultanbek Tezadov.
Science and Technology The first computer. When you ask the question who invented the first computer, you definitely need to be prepared to hear many.
LANGUAGE, SPEECH, SPEECH ACTIVITY Suggests to allocate the following functions: communicative; thinking tools; mastering the socio-historical; experience;
© 2006 Cisco Systems, Inc. All rights reserved. HIPS v Configuring Groups and Policies Configuring Policies.
CSTA is a kind of standard communication protocol used between PBX and computer that is famous in Europe. What is CSTA ? Control Requests Event Notifications.
1 Algorithms of time compression and analysis of formed patterns in autonomous adaptive control systems Mazur Yuri, Zhdanov Alexander Lebedev Institute.
Institute for Information Problems of the Russian academy of Sciences and its linguistic research Olga Kozhunova CML-2008, Becici, 6-13 September.
Sequences Sequences are patterns. Each pattern or number in a sequence is called a term. The number at the start is called the first term. The term-to-term.
Транксрипт:

М.Lvov About one Approach for Designing of Algebraic Computations: Computations in Boolean Algebra. Designing of algorithms for algebraic computations – the main task arising when realising mathematical systems based on symbolic transformations Mathematical model for this problem – multisorted algebraic systems (MAS) The process of realising of algebraic computations needs carefull preliminary design MAS as hierarchy of its sorts and specifications of algebraic operations interpreters

Theory and detailes in: Lvov М.S. Synthesis of Interpreters of Algebraic Operations in Extensions of Multisorted Algebras. (ukr, prepared for print) Lvov М.S. Veryfication of Interpreters of Algebraic Operations in Extensions of Multisorted Algebras. (prepared for print) Lvov М.S. Method of Inheritance for design of algebraic computations in mathematical educational systems. (ukr, prepared for print) Lvov М.S. Method of Morphisms for design of algebraic computations in mathematical educational systems. (ukr, prepared for print)

Approach IEM Inheritance, Extensions, Morphisms Base principles and ideas of IEM are quite simple and well known in mathematics and programming Boolean algebra is very simple, well known and interesting example of subject domain for applying of IEM

Algebraic programming system APS (V. Peschanenko) APS uses technologies of algebraic programming, based on rewriting rules systems and strategies of rewriting. The interpreter of algebraic operation defined by rewriting rules system. We shall consider problems: of design, synthesis, verification of interpreters of boolean algebra operations (logical operations).

FG Can(F) = Can(G) Syntax equality Semantic (logical) equality Compute the value of logical expression in signature of logical operations By the value of expression we means its canonical form i.е. such expression that Sign «=» means syntax equality (equality in free terms algebra) (1) (2) Problem Definition

Traditional logical canonical forms are PDNF, PCNF. We shell use Recursive Normal Form (RNF). Paradigm of Algebraic Computations Initial Model B.A. Constructive Model В.A. Can Val (3)

Method of Inheritance In algebraic computations are used: Classical (axiomatically of constructively defined) algebraic structures, Algebraic structures, defined by designer Logical Designing of algebraic computations consists in defining of hierarchy of inheritance of MAS

ConSemigroup10: Signature Semigroup10: Signature Axioms DisSemigroup10: Signature AlgLogic: Signature Axioms Рис. 3. Diagram of Inheritance for Boolean Algebra

Axiomatic descriptions plays constructive role. Its defines signatures, computations with constants. Inheritance is used for definitions of algebraic operations interpreters with constants SGOperation := rs(a) { a 1=a, 1 a=a, a 0=0, 0 a=0 }; Dis := rs(a) { a O = a, O a = a, a I = 0, I a = I }; Con := rs(a) { A&I = a, I&a = a, A&O = 0, O&a = O };

Аbstract Algorithms Inheritance is used for descriptions of algorithms on abstract level (independently of algebras support). Example: Euclids Algorithm (abstract Euclidian ring). Derived logical operations Imp := rs(a, b) { a b = ¬a b }

Method of Extensions Axiomatic definition of sort AlgLogic is initial for further development. Three constructive models of AlgLogic: AlgLogic ALInitALConst r Bool Variable Initial diagram of Method of extentions for Boolean algebra. Important: Constructive definition of algebra A consists in definitions of its support Sup(A), interpreters of its operations

Define for L(A 1, B 1, x), L(A 2, B 2, x) A(x), A 1, B 1, A 2, B 2 A. Base rules: L(A 1, B 1, x) L(A 2, B 2, x) = L(A 1 A 2, B 1 B 2, x), (10) L(A1, B1, x) & L(A2, B2, x) = L(A1 & A2, B1 & B2, x), (11) L(A1, B1, x) = L( A1, B1, x). (12) Rules (10) - (12) are base for operations on logical operations. Let

Additional Rules (partial cases): In the rule (10) suppose A 1 = B 1. then obtain: A 1 L(A 2, B 2, x) = L(A 1, A 1, x) L(A 2, B 2, x) = L(A 1 A 2, A 1 B 2, x). This equality defines the conditional rewriting rule Var(A1 ) < x A1 L(A2, B2, x) = L(A1 A2, A1 B2, x). (10a) Analogously L(A1, B1, x) A2 = L(A1, B1, x) L(A2, A2, x) = L(A1 A2, B1 A2, x). Var(A2 ) < x L(A1, B1, x) A2 = L(A1 A2, B1 A2, x) (10b) Rules (10), (10а), (10b) forms rewriting rules system of interpreter of disjunction for operands of the form L(A, B, x).

Dis := rs(A1, B1, A2, B2, x) { L(A1, B1, x) L(A2, B2, x) = L(A1 A2, B1 B2, x), Var(A1 ) < x A1 L(A2, B2, x) = L(A1 A2, A1 B2, x), Var(A2 ) < x L(A1, B1, x) A2 = L(A1 A2, B1 A2, x) }; Con := rs(A1, B1, A2, B2, x) { L(A1, B1, x) & L(A2, B2, x) = L(A1 & A2, B1 & B2, x), Var(A1 ) < x A1 & L(A2, B2, x) = L(A1 & A2, A1 & B2, x), Var(A2 ) < x L(A1, B1, x) & A2 = L(A1 & A2, B1 & A2, x) }; Not := rs(A1, B1, x) { L(A1, B1, x) = L( A1, B1, x) };

Main Result of Extensions Method Definition of algebra as direct limit of increasing sequence of algebras in issue gives the algorithm of synthesis of interpreters for algebraic operations Full rewriting ruses systems for logical operations: Disjunction Dis := rs(a, A1, B1, A2, B2, x) { a O = a, O a = a, // Inherited a I = 0, I a = I, L(A 1, B 1, x) L(A 2, B 2, x) = L(A 1 A 2, B 1 B 2, x),// base Var(A 1 ) < x A 1 L(A 2, B 2, x) = L(A 1 A 2, A 1 B 2, x), // additional Var(A 2 ) < x L(A 1, B 1, x) A 2 = L(A 1 A 2, B 1 A 2, x) };

Литература 1.Lvov M., Kuprienko A., Volkov V. Applied Computer Support of Mathematical Training Proc. of Internal Work Shop in Computer Algebra Applications, Kiev. – – pp Lvov M. AIST: Applied Computer Algebra System Proc. of ICCTE93. Kiev. – pp Львов М.С. Терм VII – шкільна система компютерної алгебри Компютер у школі та сімї. – – 7.- С М.Львов. Концепция информационной поддержки учебного процесса и ее реализация в педагогических программных средах. Управляющие системы и машины N2 (в печати). 5.Львов М.С. Синтез інтерпретаторів алгебраїчних операцій в розширеннях багатосортних алгебр (підготовлено до друку) 6.Львов М.С. Верифікація інтерпретаторів алгебраїчних операцій в розширеннях багатосортних алгебр (підготовлено до друку) 7.М.С.Львов. Метод спадкування при реалізації алгебраїчних обчислень в математичних системах навчального призначення (підготовлено до друку) 8.Львов М.С. Метод морфізмів реалізації алгебраїчних обчислень в математичних системах навчального призначення (підготовлено до друку) 9.Goguen J., Meseguer J. Ordered-Sorted Algebra I: Partial and Overloaded Operations. Errors and Inheritance. SRI International, Computer Science Lab., Песчаненко В.С. Розширення стандартних модулів системи алгебраїчного програмування APS для використання у системах навчального призначення // Науковий часопис НПУ імені М.П. Драгоманова Серія 2. Компютерно-орієнтовані системи навчання: Зб. наук. Пр./Редкол.- К.:НПУ ім.М.П.Драгоманова, - 3 (10), C Песчаненко В.С. Об одном подходе к проектированию алгебраических типов данных // Проблеми програмування С Песчаненко В.С. Использование системы алгебраического программирования APS для построения систем поддержки изучения алгебры в школе // Управляющие системы и машины С Letichevsky A., Kapitonova J., Volkov V., Chugajenko A., Chomenko V. Algebraic programming system APS (user manual) Glushkov Institute of Cybernetics, National Acad. of Sciences of Ukraine, Kiev, Ukraine, Капитонова Ю.В., Летичевский А.А., Волков В.А. Дедуктивные средства системы алгебраического программирования, Кибернетика и системный анализ, 1, 2000, Kapitonova J., Letichevsky A., Lvov M., Volkov V. Tools for solving problems in the scope of algebraic programming. Lectures Notes in Computer Sciences. – 958. – – pp Львов М.С. Основные принципы построения педагогических программных средств поддержки практических занятий. Управляющие системы и машины N6. c