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


Recommended