Functional Verification

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/8

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:05 PM on 3/20/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

9 Terms

1
New cards

Functional Verification Goal

Verify real-world functional programs by specifying correctness properties and proving implementations satisfy them. Combines inductive types, recursive functions, and proof tactics.

2
New cards

Binary Search Tree Definition

Binary tree where each node's key > all keys in left subtree and < all keys in right subtree. Enables O(log n) lookup when balanced.

3
New cards

BST Lookup Specification

Requires two properties: (1) If element is in tree, lookup returns true. (2) If lookup returns true, element is in tree. Combined: lookup returns true iff element in tree.

4
New cards

Specification Completeness

Good specification must be precise and complete. Counterexample: lookup constant true satisfies first property but fails second; constant false fails first. Need both directions.

5
New cards

BST Assumption

Specification must assume tree is sorted. Unsorted tree breaks correctness of lookup algorithm. Precondition: t is a valid BST.

6
New cards

lookup Implementation

Recursively compare key: if n < node key, search left; if n > node key, search right; if equal, return true. Base case: empty tree returns false.

7
New cards

inversion Tactic

Used to reason about tree structure. From assumption that tree satisfies BST property, derives constraints on subtrees. Essential for proving lookup correctness.

8
New cards

Correctness Proof Structure

Induction on tree structure. Base case: empty tree, lookup false, element not in tree. Inductive case: assume property for subtrees, prove for node using BST ordering property.

9
New cards

Verified Functional Algorithms

Field of study developing provably correct implementations of classic algorithms (sorting, search, data structures). Combines programming language semantics with formal verification

Explore top notes

note
Matter & Energy
Updated 1108d ago
0.0(0)
note
AE Slides Ch1-7
Updated 501d ago
0.0(0)
note
Animal Kingdom - Chordata
Updated 893d ago
0.0(0)
note
Mistakes chem
Updated 303d ago
0.0(0)
note
Power sharing
Updated 917d ago
0.0(0)
note
Forensic Anthropology
Updated 1401d ago
0.0(0)
note
Matter & Energy
Updated 1108d ago
0.0(0)
note
AE Slides Ch1-7
Updated 501d ago
0.0(0)
note
Animal Kingdom - Chordata
Updated 893d ago
0.0(0)
note
Mistakes chem
Updated 303d ago
0.0(0)
note
Power sharing
Updated 917d ago
0.0(0)
note
Forensic Anthropology
Updated 1401d ago
0.0(0)

Explore top flashcards

flashcards
english 10 vocab 2
20
Updated 935d ago
0.0(0)
flashcards
Blow Flies and Beetles
20
Updated 888d ago
0.0(0)
flashcards
Electricity - grade 9
49
Updated 1153d ago
0.0(0)
flashcards
Junior All State Terms
44
Updated 1198d ago
0.0(0)
flashcards
El tiempo y el calendario
42
Updated 1136d ago
0.0(0)
flashcards
English Final (vocab)
50
Updated 1020d ago
0.0(0)
flashcards
english 10 vocab 2
20
Updated 935d ago
0.0(0)
flashcards
Blow Flies and Beetles
20
Updated 888d ago
0.0(0)
flashcards
Electricity - grade 9
49
Updated 1153d ago
0.0(0)
flashcards
Junior All State Terms
44
Updated 1198d ago
0.0(0)
flashcards
El tiempo y el calendario
42
Updated 1136d ago
0.0(0)
flashcards
English Final (vocab)
50
Updated 1020d ago
0.0(0)