Language: Python · Sphere: programming · Category: Data Structures
Signature: () → None
Trie (Prefix Tree) implementation with autocomplete functionality.
When it runs, trie guarantees survivors == 17; trie.search(w) is True; trie.search(w) is False (proven by run).
Checkable constraints:
trie.search(w) is Truetrie.search(w) is Falsetrie.starts_with(p) is Truetrie.starts_with('xyz') is Falsetrie.starts_with('') is Truesorted(trie.autocomplete('app', 10)) == ['app', 'apple', 'application', 'apply']sorted(trie.autocomplete('band', 10)) == ['band', 'bandana', 'bandit']trie.autocomplete('xyz', 10) == []
- Green-run: ✓ passes (re-run under the extractor's gate)
- Constraint strength: recovery (truth-pinned)
- Independent oracle: — none yet (green-run candidate; not an axiom under the frozen ruler)
- Peer review: unreviewed
△ AURA Pattern Library — © Reality Optimizer