Utility catalogue
Paths and files
dirname
Extract a path's parent text
Open2,000 seeds
Proof brief
- Invocation
dirname NAME- Input domain
- Use one nonempty relative pathname with no NUL or leading hyphen.
- Proof obligation
- Strip trailing slashes. If the remaining pathname has no slash, output a dot. Otherwise remove the final component and strip trailing slashes from what precedes it. Append LF.
- Test cases
- A single component, dot components, repeated separators, and trailing slashes.
- Outside this profile
- Absolute paths, options, and filesystem resolution.
Subtasks and prerequisites
Read obligations JSONThis target needs root.io (proved).
Task bundle
Read bundle JSONA formal Rocq statement has yet to be published for this profile.
This target has no verifier yet. Add targets/dirname/verify.sh with your submission, modeled on targets/cat/verify.sh. The pull request check runs it with sh targets/dirname/verify.sh.
GitHub submissions
See the review queueView GitHub pull requests for the current status.