




已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
What is Formal Methods?Formal Methods refers to mathematically rigorous techniques and tools for the specification, design and verification of software and hardware systems. The phrase mathematically rigorous means that the specifications used in formal methods are well-formed statements in a mathematical logic and that the formal verifications are rigorous deductions in that logic (i.e. each step follows from a rule of inference and hence can be checked by a mechanical process.) The value of formal methods is that they provide a means to symbolically examine the entire state space of a digital design (whether hardware or software) and establish a correctness or safety property that is true for all possible inputs. However, this is rarely done in practice today (except for the critical components of safety critical systems) because of the enormous complexity of real systems. Several approaches are used to overcome the astronomically-sized state spaces associated with real systems: Apply formal methods to requirements and high-level designs where most of the details are abstracted away Apply formal methods to only the most critical components Analyze models of software and hardware where variables are discretized and ranges drastically reduced. Analyze system models in a hierarchical manner that enables divide and conquer Automate as much of the verification as possible Although the use of mathematical logic is a unifying theme across the discipline of formal methods, there is no single best formal method. Each application domain requires different modeling methods and different proof approaches. Furthermore, even within a particular application domain, different phases of the life-cycle may be best served by different tools and techniques. For example a theorem prover might be best used to analyze the correctness of a RTL level desription of a Fast Fourier Transform circuit, whereas algebraic derivational methods might best be used to analyze the correctness of the design refinements into a gate-level design. Therefore there are a large number of formal methods under development throughout the world. See World Wide Web Library of Formal Methods. There is a growing set of success stories in applying formal methods to real applications: Formal Methods Application: An Empirical Tale of Software Development (Sobel) 2002 Correctness by Construction: Developing a Commercial Secure System (Hall and Chapman), IEEE Software Jan/Feb 2002 A mechanically checked proof of correctness of the AMD-K5* floating point square root microcode (Russinoff), Formal Methods in System Design 1999 The Industrial Use of Formal Methods: Was Darwin Right? (Miller) Second IEEE Workshop on Industrial Strength Formal Specification Techniques Oct 1998 Industrial Strength Exception Freedom (Amey and Chapman) 2002 Formal Verification In a Commercial Setting (Kurshan) Bell Laboratories DAC 97 From Formal Models to Formally Based Methods: An Industrial Experience (Ciapessoni), ACM Transactions on Software Engineering and Methodology, Jan. 1999. Formal Methods: State of the Art and Future Directions (Clarke and Wing) ACM Computing Surveys 1996 The Use of Industrial-Strength Formal Methods (Bowen and Hinchey) COMPSAC 1997 Using Formal Methods to Develop an ATC Information System (Hall) IEEE Software, Mar. 1996. Airbus, Eurocopter (Esterel) Observations On Industrial Practice Using Formal Methods (Gerhart, Craigen, and Ralston), Proceedings 15th International Conference Software Engineering, May 1993 Lessons Learned from Applying Formal Specification in Industry (1995) (Larsen, Fitzgerald, Brookes) On the Need for Practical Formal Methods (Heitmeyer) Formal Methods Diffusion: Prospects (Adelard) 2000 Geoff Sutcliffes Overview of Automated Theorem Proving Automated Deduction Looking Ahead (Loveland), AI Magazine, Spring 1999 Formally Verifying IEEE Compliance of Floating-Point Hardware (Leary, Zhao, Gerth, and Seger)Intel Technology Journal 1999 Cost Effective Use of Formal Methods in Verification and Validation (Kuhn, Chandramouli and Butler) Foundations 2002 V&V Workshop Inclusion of these hyperlinks on the NASA web site should not be construed to represent endorsement of any commercial products mentioned on these external web sites. They are included to show that industry is claiming success in applying formal methods.Research Directions for Formal MethodsJoseph Sifakis Laboratoire VERIMAG, Joseph.Sifakisimag.fr, Producing systems satisfying safety, security and quality of service requirements is an important economic stake and also a scientific and technological challenge. There is an increasing demand for methods and tools for: predicting/guaranteeing/evaluating the quality of the developed systems increasing the efficiency of developments and maintenance during lifecycle. The application of formal methods is considered as the basis of rigorous systems development. However, the effective exploitation of these methods encounters several problems that may be explained by their inherent limitations (undecidability, intrinsic complexity), the increasing complexity of the applications, the lack of users with appropriate skills and background and finally, the lack of theoretical results. The use of formal techniques in systems development is currently marginal. On the other hand, semi-formal and informal techniques with obvious limitations, are being extensively used in practice. Is the state-of-the-art on formal methods mature enough to be a basis for alternative solutions? How research on formal methods can contribute to satisfying the increasing needs in methods and tools? How relevant are in this respect, theories, paradigms and methods considered by researchers? Research is guided by scientific relevance even though exploitability of results is becoming an important criterion. The choice of a method depends on both its intrinsic characteristics and the concrete exploitation conditions determined by technological, economical and sociological factors. We do not expect any spectacular change in development methodologies in the foreseeable future, due to the introduction of formal techniques. The change should be rather progressive due to the transfer of only these formal methods that can be smoothly integrated in existing development environments. This means in particular, that a special effort should made for adapting formal methods to specific development methodologies and to improve their scalability and efficiency. We believe that the following work directions are important for making formal techniques accepted and effectively used in industry: Development of integrated validation tools and methods allowing verification, testing and simulation. Testing is an activity of paramount economic importance which is complementary to verification and raises interesting theoretical problems. Furthermore, it has been shown that verification techniques such as model checking can be used for automatic test case generation from correct specifications. The combinatorial nature of validation problems and the high complexity of the developed systems, makes necessary the use of em partial validation techniques. Study of development methodologies for complex systems. The top-down development paradigm is too simple to be applied to complex systems whose design is very often based on already existing solutions by reusing components, architectures or by simply extending the functionalities of existing systems by ad hoc techniques. Such an approach is the only realistic for both economical reasons (using the cumulated experience of teams) and in order to master the complexity by incremental modifications. It follows a need for languages supporting such development methodologies. The underlying semantics of object-based formalisms supporting complex data description, reusability and powerful control mechanisms are not still well understood. Study of requirements expression languages. There is currently a clear need for formal high level languages into which can be translated well-defined domain specific subsets of natural languages. Formal Methods in Political Philosophy Wednesday, July 28, 2010FINAL INSTALLMENT OF FORMAL METHODS TUTORIAL With this segment, I conclude my discussion of Arrows General Possibility Theorem. And I think this will also conclude this tutorial on the use and abuse of formal methods in political philosophy. I will be happy to respond to questions, if there are any, but I think enough is enough. Thank you all for staying with me on this, for pointing out errors, and for asking questions. It has been fun for me, revisiting material I have not taught for twenty years or more, and I hope it has been informative and fun for you.An extremely interesting result concerning the consistency of majority rule was produced by the Australian political scientist Duncan Black. In a book called The Theory of Committees and Elections, published in 1958, Black proved an important theorem about circumstances under which majority rule is guaranteed to produce a transitive social preference ordering. In a moment, I am going to go through the proof in detail, but let me first explain intuitively what Black proved. Ever since the French Revolution, political commentators have adopted a convention derived from the seating arrangement in the National Assembly. In that body, Representatives belonging to each party were seated together, and the groups were arrayed in the meeting hall in such a manner that the most radical party, the Jacobins, sat on the extreme left of the hall, and the most reactionary party, the Monarchists, sat on the right, with the other groups seated between them from left to right according to the degree to which their policies deviated from one extreme or the other. Thus was born the left-right political spectrum with which we are all familiar. Of course, in the U. S. Senate, there are no Communists and only one Socialist, but, as the reign of George W. Bush shows, there are still plenty of Monarchists.The interesting fact, crucial for Blacks proof, is that wherever a party locates itself on the spectrum, it tends to prefer the positions of the other parties, either to the left or to the right, less and less the farther away they are seated. So, if an individual identifies himself with a party in the middle, he will prefer that partys positions to those of a party a little bit to the left, and he will prefer the policies of the party a little bit to the left over those of a party farther to the left, and so on. The same is true looking to the right. Notice that since only ordinal preference is assumed, you cannot ask, Is a party somewhat to the left of you farther from you than a party somewhat to the right of you? Make sure you understand why this is true. Ask me if it is not.Consider contemporary American politics. If I am a moderate Republican assuming there still is one, I will prefer my position to that of a conservative Republican, and I will prefer that position to a right wing nut. I will also prefer my position to that of a Blue Dog Democrat looking to my left rather than to my right, and that position to the position of a Liberal Democrat, and that position in turn to the position of a Socialist Bernie Sanders?.This can be summarized very nicely on a graph, along the X-axis of which you lay out the left-right political spectrum, while on the Y-axis you represent the order of your preference. Pretty obviously, the graph you draw will have a single peak - namely, where your first choice is on the X-axis - and will fall away on each side, going monotonically lower the farther you get on the X-axis from your location on it. In short, your preference, when graphed in this manner, will be single-peaked. Here is an example of a persons preference order graphed in this manner. For purposes of this example, there are five alternatives, (a, b, c, d, e), and the individual has the following preference order: d e c b a Let us suppose that there is a second person whose preference order is a b c d e. It is obvious that if we posted this persons preferences on the same graph, the two together would look like this:Notice that each of these lines has a single peak. The first individuals line peaks at alternative D; the seconds at alternative A. If you do a little experimenting, you will find that if you change the order in which the alternatives are laid out on the X-axis, sometimes both lines are still single peaked, sometimes one remains single peaked and one no longer is. Sometimes neither is single peaked. Fr example, if you change the order slightly so that the alternatives are laid out on the X-axis in the order a B E D C, the first individuals line will still be single peaked, but the second individuals line will now be in the shape of a V with one peak at A and another peak at C. Try it and see. It is too much trouble for me to draw it and scan it and size it and insert it.Suppose now that we have an entire voting population, each with his or her own preference order, and that we plot all of those preference orders on a single graph, a separate line for each person. There might be some way of arranging the alternatives along the X-axis so that everyones preference order, when plotted on that graph, is single peaked. Then again, there might not be. For example, if you have three people and three alternatives, and if those three people have the preferences that give rise to the Paradox of Majority Rule, then there is no way of arranging the three alternatives along the X-axis so that all three individuals preferences orders can be plotted on that graph single-peakedly. Try it and see. Remember that mirror images are equivalent for these purposes, so there are really three possible ways of arranging the alternatives along the X-axis, namely xyz, xzy, and yxz.Duncan Black proved that if there is some way of arranging the available alternatives along the X-axis so that everyones preference order, plotted on that graph, is single peaked, then majority rule is guaranteed to produce a consistent social preference order. Notice, in particular, that if everyones preferences can be mapped onto the familiar left-right spectrum, with each individual preferring an alternative less and less the farther away it is in either direction from the most preferred alternative, then everyone will on that graph have a single peaked order because it will peak at the most preferred alternative and fall away monotonically to the right and to the left.The proof is fairly simple. It goes like this.Step 1: Assume that there are an odd number of individuals the proof works for an even number of individuals, but in that case there can be ties, which produces social indifference, which then requires an extra couple of steps in the proof, so I am trying to make this as simple as possible. Assume that their preferences can be plotted onto a graph so that all of the plots are single-peaked.Step 2: Starting at the left, count peaks there may be many peaks at the same point, of course, showing that all of those people ranked that alternative as first and keep counting until you reach one more than half of the total number of peaks, i.e. (n/2 + 1). Assume there are p peaks to the left of that point, q peaks at that point, and r peaks to the right, with (p+q+r) = n. Now, by construction, (p+q) n/2 and pn/2, because if (q+r)n/2, which by construction it is not.Step 3: Let us call the alternative with the q peaks alternative x. Clearly, there is a majority of individuals who prefer x to every alternative to the right of x on the graph, because there are p+q individuals whose plots are downward sloping from x as you go to the right, which means they prefer x to everything to the right, and p+q is a majori
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 消防安全检查员培训课件
- 医疗器械经理工作汇报
- 东北师范大学民俗馆讲解
- 新旧技术合作协议更替原协议作废确认书
- 节假日租车合同终止及车辆返还标准范本
- 私立幼儿园教师儿童社会实践活动指导聘用合同
- 离婚协议书中双方共同财产分割方案示范
- 离异父母子女抚养费增加及支付条件变更协议
- 离婚子女抚养费支付及探望权调整补充协议
- 夫妻关系修复后再破裂协议书范本
- 2024教科版一年级科学上册全册教案设计
- 2025年体育组织行业研究报告及未来行业发展趋势预测
- 2024年永州市工会社会工作者招聘笔试真题
- 推进文旅医养融合发展的策略及实施路径
- 弹跳的小球教学课件
- 2025年山东快递工程专业职称考试(快递设施设备知识·技术员、助理工程师)历年参考题库含答案详解(5卷)
- 反洗钱身份识别培训课件
- 2025年北京市人文知识竞赛真题
- 山东省烟台市2024-2025学年高一下学期期末学业水平诊断生物试卷(含答案)
- 妊娠与产后甲状腺疾病诊断指南
- 《3-6岁儿童学习与发展指南》健康领域知识测评题库(含答案)
评论
0/150
提交评论