Top Banner
Model-Based Quantifier Elimination Lecture 7 Nikolaj Bjørner Microsoft Research DTU Winter course January 11 th 2012 Organized by Flemming Nielson & Hanne Riis Nielson
6

Model-Based Quantifier Elimination Lecture 7

Jan 16, 2016

Download

Documents

Rhett

Model-Based Quantifier Elimination Lecture 7. Nikolaj Bjørner Microsoft Research DTU Winter course January 11 th 2012 Organized by Flemming Nielson & Hanne Riis Nielson. MBQI: Motivation. Template Based Invariant Generation If is satisfiable , then post holds. MBQI: Example. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Model-Based Quantifier Elimination Lecture  7

Model-Based Quantifier Elimination

Lecture 7Nikolaj Bjørner Microsoft ResearchDTU Winter course January 11th 2012Organized by Flemming Nielson & Hanne Riis Nielson

Page 2: Model-Based Quantifier Elimination Lecture  7

MBQI: MotivationTemplate Based Invariant Generation

If is satisfiable, then post holds

Page 3: Model-Based Quantifier Elimination Lecture  7

MBQI: Example

If is satisfiable, then post holds

∀ 𝑥 , 𝑦 ,𝑛 . 𝐼 (𝑥 , 𝑦 ,𝑛)∧¬ (𝑥<𝑛)→ 𝑦=2𝑛¿

Page 4: Model-Based Quantifier Elimination Lecture  7

MBQI: Example

Is satisfiable?Initial model

Then

Iff Iff

is unsat

But it is satisfied with:

∀ 𝑥 , 𝑦 ,𝑛 . 𝐼 (𝑥 , 𝑦 ,𝑛)∧¬ (𝑥<𝑛)→ 𝑦=2𝑛¿

Page 5: Model-Based Quantifier Elimination Lecture  7

MBQI: Example

Page 6: Model-Based Quantifier Elimination Lecture  7

MBQI: Example

Idea: Add template macros for I:

Demo