Formal Verification · All levels

Formal vs Simulation: Exhaustive Proof and Stimulus-Based Search: Theory Deep Dive

Theory Deep Dive for Formal vs Simulation: Exhaustive Proof and Stimulus-Based Search.

Foundational theory

Formal vs Simulation: Exhaustive Proof and Stimulus-Based Search is a core topic in Formal Verification Foundations. Treat each proof result as evidence under a modeled world, not a context-free truth statement.

Core concepts explained

  • Simulation validates behavior for sampled traces created by directed and constrained-random stimulus, so its confidence depends on test quality, scenario coverage, and seed diversity. Formal property verification instead explores all reachable state-space behavior within the constraint model and can mathematically prove that a property always holds (or produce a counterexample trace when it does not). In practice, FPV is strongest for control-heavy logic, corner-case handshakes, protocol safety guarantees, and deadlock checks that are hard to trigger in simulation. The key engineering discipline is understanding assumptions: a proof is only as trustworthy as reset modeling, environmental constraints, and abstraction boundaries. High-quality teams use simulation and formal together, using FPV for exhaustive closure of critical intent and simulation for performance behavior, data-path stress, and system-level software interactions.

  • Primary metric: non-vacuous closure rate, counterexample turnaround time, and requirement-level residual risk trend

  • Primary artifact: formal closure packet: assumptions audit, proof status matrix, counterexample classification, and requirement traceability

  • Owners: formal verification owner, rtl owner, verification lead

  • Proof quality includes vacuity and reachability, not pass/fail status only.

  • Assumption discipline is part of design correctness, not tool setup.

Why this matters in formal signoff

Formal foundations are strongest when assumptions, reset semantics, and requirement intent are all explicit and reviewable. Teams that formalize this posture reduce false passes and late-stage surprises.

Mental model

diagram
FORMAL VS SIMULATION DECISION MAP
spec intent -> property set -> formal exhaustive proof
spec intent -> tests and seeds -> simulation sampled confidence

Worked intuition

  1. Define requirement slice and property intent class (safety, liveness, or reachability).

  2. Audit assumptions and reset model before trusting any status outcome.

  3. Track movement in non-vacuous closure rate, counterexample turnaround time, and requirement-level residual risk trend with requirement-level ownership.

  4. Collect formal closure packet: assumptions audit, proof status matrix, counterexample classification, and requirement traceability before signoff or waiver decisions.

  5. Apply one bounded model or RTL change per debug hypothesis.

  6. Publish closure with residual risk and rollback conditions.

Common misconceptions

  • Green proof status always means silicon-safe behavior.

  • Faster convergence always means better model quality.

  • Unreachable cover goals are acceptable if safety assertions pass.

  • Bounded depth is equivalent to full proof unless a failure appears.

Formal deep dive

FPV foundations are reliable only when assumptions, reset semantics, and requirement intent are explicitly modeled and audited.

Concept diagram

diagram
FPV FOUNDATION LOOP

requirements -> property set -> assumptions and reset model -> prove/fail traces -> closure audit

Metric graph

diagram
FOUNDATION HEALTH

vacuous passes         ████
reachable proofs       ███████
inconclusive backlog   █████
reopened properties    ███

Metrics and artifacts to collect

  • assumption traceability matrix

  • vacuity and reachability status

  • proof core relevance summary

  • counterexample classification trend

Mini case study

A green-looking run was invalidated after legal-mode covers failed, exposing assumptions that removed realistic traffic.

Debug branches

  • Validate requirement-to-property mapping before tuning runtime.

  • Check legal scenario reachability after every assumption change.

  • Classify first divergence as model issue or RTL bug.

Senior review question

Ask: which requirement intent is proven, under which assumptions, and what residual risk remains?

Key takeaways

  • Tie each proof claim to assumption boundaries and reachability evidence.

  • Prefer minimal reversible fixes and preserve legal behavior visibility.

Common pitfalls

  • Treating runtime reduction as proof-quality improvement without audits.

  • Declaring closure while critical covers remain unreachable.

  • Using broad waivers instead of first-divergence root-cause ownership.

Theory reinforcement

Theory matters only when it predicts observed traces and closure movement.

Use precise terminology for safety, liveness, boundedness, and vacuity.