280 likes | 289 Views
Explore the technology of insertion modeling, a technique for constructing and analyzing models of multi-component distributed systems using agent composition. Learn about the mathematical foundations, insertion machines, basic protocols, and verification in the VRS system.
E N D
Семинар «Образный компьютер» 10 Мая 2011 Инсерционное моделированиеА.Летичевский
Содержание • Инсерционное моделирование • Математические основания • Инсерционные машины • Базовые протоколы • Верификация в системе VRS Образный компьютер
Инсерционное моделирование: Технология построения и исследования моделей многокомпонентных распределенных систем, представленных с помощью композиции агентов и сред Формально Агенты и среды: Атрибутные транзиционные системы Композиция:непрерывная функция погружения, характеризующая изменение поведения среды в результате погружения агента Образный компьютер
Исторические замечания Идея «Взаимодействия агентов и сред» появилась в 1996 году в результате совместных исследований с Д.Гильбертом в Сити Университете в Лондоне. С 2000 она использовалась при разработке средств верификации требований краспределенным программным системам. Реализована в системе VRS, разработанной по заказу Моторолы. В настоящее время используется компанией Uniquesoftдля создания новых средств разработки программных cистем. Одновременно в ИК разрабатывается система инсерционного моделирования IMS Образный компьютер
Insertion modeling paradigm • The world is a hierarchy of environments and agents inserted into them. • Environments and agents are entities evolving in time. • Insertion of agent into environment changes the behavior of environment and produces new environment which is ready for insertion of new agents (if there is a room). • Environments as agents can be inserted into higher level environment. • Agents can be inserted from external environment as well as from internal agents (environments). • Agents and environments can model another agents and environments on the different levels of abstraction environment Insertion function agent environment agent agent Образный компьютер
Mathematical foundations Transition systems Agents Behaviors and behavior algebras Environments and insertion function Insertion equivalence of agents Process algebras Образный компьютер
Transition systems Agents and environments are labeled or attributed transition systems considered up to bisimilarity (bisimilar states have the same behavior that is cannot be distinguished by an observer). b b b a a a a a a a a b b b b b a a b a a Образный компьютер
Поведение транзиционной системы: множество последовательностей действий, которые она может совершить (?) s s' Образный компьютер
a a s s t t R R R R a a Бисимуляционная эквивалентностьbisimilarity (Milner 1980, D.Park 1981) Отношение бисимуляции (bisimulation): bisimulation => bisimilarity (бисимуляционная эквивалентность) Образный компьютер
x a a ┴ b y:Δ a a Δ Agents Attribued transition systems with divergence and terminal states considered up to bisimularity. x:(a.0)+a.(b.(y:(a.0+a. Δ + Δ)) + bot) Behaviors Elements of continuous complete behaviour algebra F(A) over a set of actions A (a kind of process algebra). Extensions: functions defined by recursive definitions in F(A) Sates as behaviors. Образный компьютер
n Environments and insertion functions is a complete behavior algebra over action algebra (a kind of process algebra). Insertion function must be continuous Insertion of several agents Multilevel insertion Образный компьютер
Insertion equivalence Semigroup of environment transformations Equivalence Образный компьютер
Traditional algebras of communicating processes(CCS, CSP, ACP, π-calculus,...) can be obtained by selection of an environment and its insertion function. Образный компьютер
Look-ahead insertion (прогнозирующее погружение) Head insertion (префиксное погружение) Classification of insertion functions One-step insertion continuous continuous continuous Образный компьютер
Insertion machines: implementation of insertion models Real time insertion machines Analytical insertion machines Образный компьютер
Real time insertion machine Model driver External environment External insertion function Unfolding recursive definitions Input model Agent behavior unfolder Environment interactor Computing insertion function and making nondeterministic choice Образный компьютер
Analytical insertion machine Goal state Filters Search control Model driver Unfolding recursive definitions Output traces Input model Agent behavior unfolder Environment interactor Computing insertion function Образный компьютер
IMS is an environment for the development of insertion machines (new project of Glushkov Institute of Cybernetics) Образный компьютер
Some insertion machines developed previously Semantics of MSC (2002, 2005) Glushkov evidence algorithm (2002, 2003) Semantics of Basic Protocols (2005) Trace Generators for VRS (2008) Checking security protocols (2009) Creatures and substance (2009) Proving program correctness and generating invariants Образный компьютер
BPSLBasic Protocol Specification Languageused in VRS Образный компьютер
Basic protocol Combination of Hoar triples with the model of interaction of agents and environments. A method to define insertion function (look-ahead) by representing its local properties. First order quantifier with typed variables Precondition Postcondition Finite process (behavior) of attributed environmentwith inserted agents Properties of environment Environment property Образный компьютер
BPSL implemented in VRSenvironment description + set of BPs Types: Data types simple: int, real, Bool, enumerated, symbolic (free terms), agent behaviors (process algebra) lists: list of τ(simple) functional: (simple, arrays are considered as functional types with restrictions on the domains of indexes) Agent types: defined by the set of typed agent attributes Agent behaviors: defined by recursive equations Environment attributes: used as functional symbols (simple= arity 0) Agent attributes: typed names Образный компьютер
Preconditions and postconditions Environment description defines a signature of multisorted algebra and domains for types (sorts). Precondition is a first order formula over signature defined by environment description. Postcondition is a formula + assignments + update operators for lists. Assignments and updates are considered as a temporal logic formula. Formulas for lists: u=(t1,t2,…) or Exist x(u=p*x*q). Existential quantifiers are allowed in formulas. Образный компьютер
VRS toolsConcrete Trace Generator (CTG)Symbolic Trace Generator (STG)Static Requirements Checker (SRC) Образный компьютер
Concrete trace generatoranalytical insertion machine for concrete models All attributes have concrete values in the state of environment and agents states. Each instantiated basic protocol defines single-valued transformation of environment state: Analog: model checker for BP-specifications Goal state, safety conditions Filters and search control, LTL, Symmetry, dynamic abstraction,… Образный компьютер
Symbolic trace generator analytical insertion machine for concrete models Possible values of environment and agent attributes are defined by means of logic formulas. Transition rules defined by means of corresponding deductive system Predicate transformer computes the strongest postcondition. Образный компьютер
Static requirement checker algorithms based on predicate transformer Proving properties of requirements without generating traces. Completeness Consistency Safety Reachability (reduced to safety) Образный компьютер
Future development of IMS Models, defined by local properties (generalization of basic protocols) Proving correctness of programs Solving constraint problems Developing new cognitive architecture on a base of IMS Образный компьютер