# Turn Requirements into Formal Properties

Requirements written in prose can leave assumptions and state boundaries unclear. This skill turns approved requirements into typed predicates and maps them to the supplied source.

## Install

```bash
npx skillstore add flint-research/property-formalization
```

## Metadata

- Status: approved
- Slug: flint-research-property-formalization
- Skillstore revision: r1
- Version status: missing
- Tree hash: 84dbee51f68d827987dc2575b94b911ad0dc89c68890a5b70cf05c137541c1d3
- Author: flint-research
- GitHub username: flint-research
- Repository: https://github.com/flint-research/skills/tree/b739665d19cd1d924d41c680722e1372867a1bff/auditing/formal-verification/skills/property-formalization
- Ref: d715043e3196bdd213a9eb9e5f78632e50554733
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, filesystem
- Quality score: 72
- Public page: https://skillstore.pages.dev/skills/flint-research-property-formalization
- Manifest: https://skillstore.pages.dev/api/skills/flint-research-property-formalization/manifest

## Capabilities

- Restate an approved requirement and identify its symbols, units, and state boundaries.
- Express the requirement as a typed Boolean or linear-integer predicate.
- Map the property to the supplied file and inclusive source line range.
- Give each assumption its own predicate and justification.
- Record behavior omitted from the model, such as overflow, rounding, and environmental effects.
- Use the local verification CLI to validate the model and report property IDs and blockers.

## Use Cases

- Specify a state invariant: Turn an approved queue capacity rule into a predicate and identify when the rule must hold.
- Review property traceability: Trace an inventory rule to its supplied source lines and review the assumptions separately.
- Prepare a model for validation: Document arithmetic semantics and identify unresolved decisions before validating a counter model.

## Prompt Templates

### Specify a single rule

```
Formalize this approved rule: after insertion, queue length must not exceed capacity. Use the source and domain I provide. Name the symbols, units, and state boundary.
```

### Map a Boolean condition

```
Model this approved rule: a job may complete only if it has started. Use the supplied semantics and map the predicate to the inclusive source range. List any assumptions separately.
```

### Review arithmetic assumptions

```
Formalize the approved decrement rule using my source and domain. State which overflow or rounding behavior the model omits. Justify each assumption and flag domain changes for owner approval.
```

### Validate a source-mapped model

```
Formalize the supplied invariant with typed predicates and separate assumptions. Run local model validation. Return the property IDs, source mapping, and blockers. Do not present validation as proof.
```

## Limitations

- Requires an approved requirement, relevant source lines, and the intended domain and semantics.
- The documented workflow covers Boolean and linear-integer predicates.
- Model validation does not prove that the implementation satisfies the property.
- Does not generate fuzz tests or framework-specific invariant tests.

## Best Practices

- Provide the approved requirement, source path, inclusive line range, and intended domain.
- Define units and identify exactly when the property must hold.
- Justify assumptions separately and confirm domain changes with the owner.

## Anti Patterns

- Treating an unstated assumption as an approved requirement.
- Using mathematical integers without documenting omitted machine arithmetic behavior.
- Treating successful model validation as proof about the implementation.

## Security Audit

- Audited at: 2026-11-29T12:02:22.41\+00:00
- Summary: All four static findings are false positives: the backticks mark a fixed validation subcommand, and the links point to documentation or the publisher's website. No evidence was found of prompt injection or data exfiltration in the reviewed skill. The referenced CLI implementation was outside the review scope.

## Stats

- Views: 0
- Downloads: 0
- Favorites: 0
- Popularity score: 0
