Erinevus lehekülje "Software Synthesis and Verification" redaktsioonide vahel

Allikas: Kursused
Mine navigeerimisribale Mine otsikasti
 
(ei näidata 6 kasutaja 211 vahepealset redaktsiooni)
1. rida: 1. rida:
'''Course code''': ITI0130, ITI8530 <br>
+
'''Course code''': ITI8531 <br>
 
'''Link''': http://courses.cs.ttu.ee/pages/ITI0130<br>
 
'''Link''': http://courses.cs.ttu.ee/pages/ITI0130<br>
  
 
'''Lecturer''': prof. Jüri Vain <br>
 
'''Lecturer''': prof. Jüri Vain <br>
 
'''Contact''': juri.vain ätt ttu.ee, ICT-418 <br>
 
'''Contact''': juri.vain ätt ttu.ee, ICT-418 <br>
 +
 +
<!-- '''Lecturer''': Leonidas Tsiopoulos <br>
 +
'''Contact''': leonidas.tsiopoulos ätt ttu.ee, ICT-418 <br>
 +
 +
'''Lecturer''': Maksym Bortin <br>
 +
'''Contact''': maksym.bortin ätt ttu.ee, room B404 in the Cybernetics Building <br>
 +
 +
'''Lab assistant''':
 +
Evelin Halling <br>
 +
'''Contact''': evelin.halling ätt ttu.ee <br>
 +
-->
 +
  
 
Previous courses: [http://vana.cs.ttu.ee/tiki-index.php?page=ITI0060 2014]
 
Previous courses: [http://vana.cs.ttu.ee/tiki-index.php?page=ITI0060 2014]
11. rida: 23. rida:
 
==Time and place==
 
==Time and place==
  
Lectures: Wednesdays 14:00, ICT-A1 <br>
+
Lectures: Thursdays 10:00, ICT-315 <br>
Labs: Wednesdays 16:00, ICT-401 - Evelin Halling (evelin.halling ätt ttu.ee)
+
Labs: Thursdays 12:00, ICT-404 - Jüri Vain
  
==News 2015==
+
'''New!'''<br>
 +
* Due to CORONA restrictions course is entirely running over Teams channel "Software synthesis and Verification"
 +
'''Exams: (To Be Updated) '''
 +
*  ... <br>
 +
** Exam is for those who have not passed any of the tests or want to improve their final mark
 +
<!--* ... '''
  
<br>
+
-->
  
==Lecture notes==
+
==Lecture plan - To be updated for Module II and III==
* [[Media:ITI0130_lecture1_2015.pdf|Lecture 1]]: Introduction to formal methods
+
* [[Media:ITI8531_Lecture_1_18_Intro.pdf|Lecture 1]]: Introduction
* [[Media:ITI0130_lecture2_2015.pdf|Lecture 2]]: Modelling state transition systems
+
* [[Media:ITI8531_Lecture_2_2022_transition_systems.pdf|Lecture 2]]: Modelling state transition systems
* [[Media:ITI0130_lecture3_2_2015.pdf|Lecture 3]]: Temporal logic CTL*
+
* [[Media:ITI8531_Lecture_3_2022_CTL.pdf|Lecture 3]]: Temporal logic CTL*
* [[Media:ITI0130_lecture4_2_2015.pdf|Lecture 4]]: CTL model checking
+
* [[Media:ITI8531_Lecture_4_18_modelchecking.pdf|Lecture 4]]: CTL model checking
* [[Media:ITI0130_lecture5_2015.pdf|Lecture 5]]: Timed automata and TCTL model checking
+
* [[Media:ITI8531_Lecture_5_22_symb_modelchecking.pdf|Lecture 5]]: Symbolic model checking
* Test 1: Model checking
+
* [[Media:ITI8531_Lecture_6_22_TA_and_TCTL.pdf|Lecture 6]]: Model checking TCTL
* [[Media:ITI0130_lecture7_2015.pdf|Lecture 7]]: Program specifications
+
* Practicing for Test 1: Model checking   [[Media:ITI8531_Exercises_1_2016.pdf|Exercises]]: (05.03.2019)
* [[Media:ITI0130_lecture8_2015.pdf|Lecture 8]]: Proving partial correctness of programs
+
* Test 1: Model checking ('''12.03.2019''')
 +
* [[Media:ITI8531_Lecture_6.1_18_Specifications.pdf|Lecture 6]]: Program specifications (19.03.2019)
 +
* [[Media:ITI8531_Lecture_6.2_18_verification.pdf|Lecture 7]]: Proving partial correctness of programs (19.03.2019)
 +
* [[Media:ITI8531_Lecture_7_18_proving (2).pdf|Lecture 8]]: Proof techniques (1): derived rules, backwards proof, annotations (26.03.2019)
 +
* [[Media:ITI8531_Lecture_8_18_total_correctness.pdf|Lecture 9]]: Proving total correctness of while-programs (26.03.2019)
 +
* [[Media:ITI8531_Lecture_9_2017_parallel_programs.pdf|Lecture 10]]: Verifying nondeterministic and parallel programs  (02.04.2019)
 +
* Practicing for Test 2: Deductive verification of non-deterministic and parallel programs (04.04.2019 at lab time)
 +
** [[Media:ITI8531_Genzen_1st_order_calculus.pdf|Genzen 1st order calculus]]: Genzen 1st order sequent calculus (proof rules)
 +
* Test 2: Deductive verification of sequential, non-deterministic and parallel programs ('''09.04.2019,at 12.00''')
 +
* [[Media:Software Synthesis - Overview of Temporal Synthesis - Lecture 11.pdf|Lecture 11]]: Software synthesis I (16.04.2019)
 +
* [[Media:Software Synthesis - Introduction to Acacia - Lecture 12.pdf|Lecture 12]]: Software synthesis II (23.04.2019)
 +
* [[Media:Software Synthesis - LTL Synthesis and Acacia II - Lecture 13.pdf|Lecture 13]]: Software synthesis III (30.04.2019)
 +
* [[Media:Software Synthesis - LTL Synthesis with Acacia part III - Lecture 14.pdf|Lecture 14]]: Software synthesis IV (7.05.2019)
 +
* [[Media:Software Synthesis - Lecture V - Recap.pdf|Lecture 15]]: Software synthesis (recap) and practicing for test  (14.05.2019)
 +
* Test 3: Software synthesis ('''16.05.2019''')
 +
* Retake of Test 2, 2nd task: ('''21.05.2019 at 12.00 (New!)''')
 +
** [[Media:Test_2_2019_lahendus.pdf|Eample_Solution]]: ('''Example solution of Task2 (NEW!)''')
  
==Labs==
+
==Labs - To be updated from lab 4 onwards==
 +
* Exercise Environment for Module II:
 +
** Download and install the environment: [[Media:HoareLogic.tar| Hoare Logic environment]]
 
* Lab 1: Introduction to modelling in UPPAAL  
 
* Lab 1: Introduction to modelling in UPPAAL  
** [http://www.uppaal.org/ UPPAAL website]
+
** Slides: [[Media:UPPAAL Tutorial.pdf|UPPAAL introduction]]
** [http://www.it.uu.se/research/group/darts/uppaal/small_tutorial.pdf Small tutorial on UPPAAL]
+
** Model: [[Media:LightController.xml|Light Controller Model]]
** [http://www.it.uu.se/research/group/darts/papers/texts/new-tutorial.pdf Tutorial on UPPAAL]
+
** Query: [[Media:LightControllerQuery.q|Light Controller Query]]
** Slides: [[Media:ITI0130_uppaal_eng_2013.pdf|UPPAAL introduction]]
+
** For More reading, refer below links:
** Model: [[Media:ITI0130_Light.xml|Lamp example]]
+
*** [http://www.uppaal.org/ UPPAAL website]
** Query: [[Media:ITI0130_Light.q|Lamp example]]
+
*** [http://www.it.uu.se/research/group/darts/uppaal/small_tutorial.pdf Small tutorial on UPPAAL]
* Lab 2: Introduction to modelling in UPPAAL  
+
*** [http://www.it.uu.se/research/group/darts/papers/texts/new-tutorial.pdf Tutorial on UPPAAL]
 +
 
 +
* Lab 2: Validation (simulation) and verification (automatic model-checking) in UPPAAL
 +
** Slides: [[Media:New_Lab2_MODEL_CHECKING.pdf|Model Checking introduction]]
 +
** Model: [[Media:Atm_system.xml|ATM System Model]]
 +
** Query: [[Media:Atm_system_query.q|ATM System Query]]
 +
 
 +
* Lab 3: Understanding of Clocks and State Space Explosion in UPPAAL  
 +
** Slides: [[Media:Lab3_Lab_Lecture.pdf|Uppaal Modelling Language]]
 +
** Model: [[Media:Jobber.xml|JobShop Model with three possible scenarios]]
 +
** Query: [[Media:Jobber_Query1.q|JobShop Query]]
 +
 
 +
* Lab 4: Assignment I: Reader-Writer (unreliable) communication protocol
 +
** Slides: [[Media:ITI0130_Lab2_2015.pdf|Example and explanation]]
 +
 
 +
* Lab 5: Assignment II: Leader election protocol
 +
** Slides: [[Media:ITI0130_Lab3_IEEE1394.pdf|Explanation]]
 +
** [http://perso.ens-lyon.fr/pierre.lescanne/ENSEIGNEMENT/REECRITURE/ABRIAL/sldp.ieee1394.pdf The Leader Election Protocol (IEEE 1394)]
 +
** [http://link.springer.com/article/10.1023%2FA%3A1008764923992 Verification of a Leader Election Protocol: Formal Methods Applied to IEEE 1394]
 +
** Reference solution: [[Media:FASDS.pdf|Chapter 12, page 172]]
 +
 
 +
* Lab 13:
 +
** [http://web.iitd.ac.in/~sumeet/slide3.pdf LTL]
 +
* Lab 14:
 +
** [[Media:ITI8531_LTL_exercises.pdf|Exercises]]
 +
** [http://goal.im.ntu.edu.tw/wiki/doku.php GOAL tool]
 +
** [http://www.lsv.fr/~gastin/ltl2ba/ LTL2BA]
 +
* Lab 15
 +
** [[Media:ITI8531_LTL_assignments.pdf|LTL Assignment]]
 +
** [[Media:Software Synthesis and Verification LTL Assignment-Updated Spec.pdf|Updated Spec for LTL Synthesis Assignment]]
 +
** [[Media:Guidelines for Lab Exercise Report for Synthesis with Acacia.pdf|Guidelines for Assignment]]
 +
** [[Media:Acacia Installation Commands.pdf|Acacia Tool Installation Commands]]
 +
** [[Media:Acacia_Manual.pdf|Acacia Tool Installation Guidelines and Manual for Command Line Options]]
 +
 
 +
<!--
 +
* Lab 4-5: Implementation of Mutual Exclusion Algorithms in UPPAAL  
 +
** Slides: [[Media:Lecture_5.pdf|The Mutual Exclusion Problem and Algorithms]]
 +
** Model: [[Media:Attempt1_Model.xml|First Attempt Algorithm Model]]
 +
** Query: [[Media:Attempt1_query.q|First Attempt Query]]
 +
 
 +
* Lab 6: Lab Assignment: ATM System, JobShop, Implementation of Mutual Exclusion Algo.
 +
** Slides: [[Media:Lab_Assignments.pdf|Tasks and explanation]]
 +
 
 +
* Lab 7-8: Assignment: Reader-Writer (unreliable) communication protocol
 +
** Slides: [[Media:ITI0130_Lab2_2015.pdf|Example and explanation]]
 +
 
 +
* Lab 9: Assignment: Elevator Control
 +
** Slides: [[Media:ElevatorControl_V1_29062017.pdf|Example and explanation]]
 +
** Slides: [[Media:ModellingRequirement.pptx|Modelling Requirements]]
 +
 
 +
* Lab 10: Final Assessment on 17 May 2018
 +
** Lab defending of all given assignment.
 +
-->
 +
 
 +
<!--
 +
* Lab 4: Assignment 1: Coffee Machine
 
** Slides: [[Media:ITI0130_Lab1_Coffee_machine_2015.pdf|Example and explanation]]
 
** Slides: [[Media:ITI0130_Lab1_Coffee_machine_2015.pdf|Example and explanation]]
 
** Model: [[Media:ITI0130_Coffee.xml|Coffee machine]]
 
** Model: [[Media:ITI0130_Coffee.xml|Coffee machine]]
** Query: [[Media:ITI0130_Coffee.q|Coffee machine]]  
+
** Query: [[Media:ITI0130_Coffee.q|Coffee machine]]
* Lab 3: Reader-Writer (unreliable) communication protocol
+
 
** Slides: [[Media:ITI0130_Lab2_2015.pdf|Example and explanation]]
+
* Lab 6: Assignment 3: Leader election protocol  
* Lab 4: Leader election protocol  
 
 
** Slides: [[Media:ITI0130_Lab3_IEEE1394.pdf|Explanation]]
 
** Slides: [[Media:ITI0130_Lab3_IEEE1394.pdf|Explanation]]
 
** [http://perso.ens-lyon.fr/pierre.lescanne/ENSEIGNEMENT/REECRITURE/ABRIAL/sldp.ieee1394.pdf The Leader Election Protocol (IEEE 1394)]
 
** [http://perso.ens-lyon.fr/pierre.lescanne/ENSEIGNEMENT/REECRITURE/ABRIAL/sldp.ieee1394.pdf The Leader Election Protocol (IEEE 1394)]
 
** [http://link.springer.com/article/10.1023%2FA%3A1008764923992 Verification of a Leader Election Protocol: Formal Methods Applied to IEEE 1394]
 
** [http://link.springer.com/article/10.1023%2FA%3A1008764923992 Verification of a Leader Election Protocol: Formal Methods Applied to IEEE 1394]
 +
** Reference solution: [[Media:FASDS.pdf|Chapter 12]]
 +
* Lab 7: Lab Exam
 +
** Homework defenses
 +
 +
 +
* Lab 7: KeY Introduction
 +
** Installation: [[Media:ITI0130_Lab7_2016_KeY.pdf|KeY Installation]]
 +
** Bank example: [[Media:ITI0130_Lab7_2016_Bank.zip|Bank example]]
 +
** Bank JML: [[Media:ITI0130_Lab7_2016_Bank_JML.zip|Bank JML]]
 +
 +
 
* Lab 5: Design-by-Contract
 
* Lab 5: Design-by-Contract
 
** [https://github.com/nhatminhle/cofoja Contracts for Java (Cofoja)]
 
** [https://github.com/nhatminhle/cofoja Contracts for Java (Cofoja)]
 
** [https://code.google.com/p/cofoja/w/list Cofoja wiki page]
 
** [https://code.google.com/p/cofoja/w/list Cofoja wiki page]
** [https://bitbucket.org/plas/fm2014/src/030a15981f318a7ad7a5df6c1b3eee3a4bec40ab/L06_cofoja/?at=master L06_cofoja]
+
** [[Media:ITI0130_Lab5_cofoja_setup.pdf|Installation instructions]]
 +
** [[Media:ITI0130_Lab5_FM_cofoja.zip|Sample code]]
 +
 
 +
* Lab 6: Design-by-Contract
 +
** [[Media:ITI0130_Lab5_db.zip|Database]]
 +
 
 +
* Lab 7: Design-by-Contract
 +
** [[Media:ITI0130_Lab7_db2.zip|Secure Database]]
 +
 
 +
* Lab 8: Design-by-Contract
 +
** [[Media:ITI0130_Lab7_assignment_cofoja.zip|Cofoja Assignment]]
 +
*** [[Media:ITI0130_Lab7_assignment_Instruction.pdf|Instructions]]
 +
 
 +
* Lab 9: Key Tool
 +
** [[Media:ITI0130_Lab8_Key_Instruction.pdf|Installation]]
 +
 
 +
* Lab 10: Key Tool
 +
** [[Media:ITI0130_Lab9_Key_practise.zip|Key Examples]]
 +
 
 +
* Lab 11: Key Tool
 +
** [[Media:ITI0130_Lab11_Key_practise.zip|JML]]
 +
** [[Media:ITI0130_Lab11_summax.zip|SumAndMax Example]]
 +
 
 +
* Lab 12: Key Tool
 +
** [[Media:ITI0130_Lab12_Key_assignment.zip|Key assignment]]
 +
 
 +
* Lab 13: Key Tool
 +
** [[Media:ITI0130_Lab13_Bank_example_solution.zip|Solution to Bank example]]
 +
-->
  
 
== Exercises==
 
== Exercises==
* [[Media:Exercises1.pdf|Exercises 1]]: Model checking (explicit and symbolic state)
+
* [[Media:Test 1_2017for practicing.pdf|Exercises 1]]: Model checking (explicit and symbolic state)
 +
* [[Media:Exercises_2.pdf|Exercises 2]]: Partial correctness of WHILE-programs
 +
** [[Media:while_program_example_2015.pdf|Example 1]]: Partial correctness of WHILE-loop
 +
** [[Media:DEDUCTIVE_VERIFICATION_Example_2.pdf|Example 2]]: Partial correctness of FOR-loop
 +
* Partial correctness of non-deterministic and parallel programs
 +
** [[Media:Exercises__3.pdf|Exercises 3.1]]: Partial correctness of non-deterministic and parallel programs
 +
** [[Media:Test3_exercises_solutions.pdf|Exercises 3.2]]: Partial correctness of non-deterministic and parallel programs
 +
** [[Media:Harjutused_3.pdf|Exercises 3.3]]: Parallel programs with message passing
  
 
==Resources==
 
==Resources==
 
* [http://www.fmeurope.org/ Formal Methods Europe]
 
* [http://www.fmeurope.org/ Formal Methods Europe]
 +
* [[Media: 1st_order_proof_rules.pdf|Genzen's proof system for 1st order logic]]:
 +
* [[Media: Proof_rules_of_Hoare_logic.pdf|HL proof rules for sequential and parallel programs]]:
 +
* [[Media: Invariants.pdf|Some guidlines how to find invariants]]
 +
* Mike Gordon's lecture notes on Hoare logic [http://www.lsv.ens-cachan.fr/~demri/Gordon14.pdf]

Viimane redaktsioon: 9. veebruar 2023, kell 09:58

Course code: ITI8531
Link: http://courses.cs.ttu.ee/pages/ITI0130

Lecturer: prof. Jüri Vain
Contact: juri.vain ätt ttu.ee, ICT-418


Previous courses: 2014


Time and place

Lectures: Thursdays 10:00, ICT-315
Labs: Thursdays 12:00, ICT-404 - Jüri Vain

New!

  • Due to CORONA restrictions course is entirely running over Teams channel "Software synthesis and Verification"

Exams: (To Be Updated)

  • ...
    • Exam is for those who have not passed any of the tests or want to improve their final mark

Lecture plan - To be updated for Module II and III

  • Lecture 1: Introduction
  • Lecture 2: Modelling state transition systems
  • Lecture 3: Temporal logic CTL*
  • Lecture 4: CTL model checking
  • Lecture 5: Symbolic model checking
  • Lecture 6: Model checking TCTL
  • Practicing for Test 1: Model checking Exercises: (05.03.2019)
  • Test 1: Model checking (12.03.2019)
  • Lecture 6: Program specifications (19.03.2019)
  • Lecture 7: Proving partial correctness of programs (19.03.2019)
  • Lecture 8: Proof techniques (1): derived rules, backwards proof, annotations (26.03.2019)
  • Lecture 9: Proving total correctness of while-programs (26.03.2019)
  • Lecture 10: Verifying nondeterministic and parallel programs (02.04.2019)
  • Practicing for Test 2: Deductive verification of non-deterministic and parallel programs (04.04.2019 at lab time)
  • Test 2: Deductive verification of sequential, non-deterministic and parallel programs (09.04.2019,at 12.00)
  • Lecture 11: Software synthesis I (16.04.2019)
  • Lecture 12: Software synthesis II (23.04.2019)
  • Lecture 13: Software synthesis III (30.04.2019)
  • Lecture 14: Software synthesis IV (7.05.2019)
  • Lecture 15: Software synthesis (recap) and practicing for test (14.05.2019)
  • Test 3: Software synthesis (16.05.2019)
  • Retake of Test 2, 2nd task: (21.05.2019 at 12.00 (New!))

Labs - To be updated from lab 4 onwards


Exercises

  • Exercises 1: Model checking (explicit and symbolic state)
  • Exercises 2: Partial correctness of WHILE-programs
  • Partial correctness of non-deterministic and parallel programs
    • Exercises 3.1: Partial correctness of non-deterministic and parallel programs
    • Exercises 3.2: Partial correctness of non-deterministic and parallel programs
    • Exercises 3.3: Parallel programs with message passing

Resources