agentsclimarketplace

Lean security formalization

Skill r-irbe/proof-skills/skills/lean-security-formalization

APM-installable agent skills for Lean 4 and Mathlib4 — proof tactics, math domains, review and research workflows, generic tooling.

Install
npx -y skills add r-irbe/proof-skills --skill lean-security-formalization

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

USE FOR: Data security, information security, access control, cryptographic properties, and privacy in Lean 4. Use when formalizing information flow policies, access control models, confidentiality/integrity/availability properties, data protection compliance (GDPR/LED), or trust model properties. DO NOT USE FOR: security policy design not in Lean (use @applied-data-information-security); AI safety formalisation (use @lean-ai-formalization); general knowledge formalisation (use @lean-knowledge-formalization). TRIGGERS: security formalization, information flow Lean, access control proof, cryptographic Lean, privacy proof.

SKILL.md

3.7 KB, as published. Nobody here has run it

Lean 4 Security & Privacy Formalization

Guide to formalizing security properties, access control, information flow, and privacy in Lean 4.


Routing

  • USE FOR: Data security, information security, access control, cryptographic properties, and privacy in Lean 4. Use when formalizing information flow policies, access control models, confidentiality/integrity/availability properties, data protection compliance (GDPR/LED), or trust model properties.
  • DO NOT USE FOR: security policy design not in Lean (use @applied-data-information-security); AI safety formalisation (use @lean-ai-formalization); general knowledge formalisation (use @lean-knowledge-formalization).
  • TRIGGERS: security formalization, information flow Lean, access control proof, cryptographic Lean, privacy proof.

Workflow

  1. Identify the security property class: information flow, access control, cryptographic, or privacy.
  2. Pick the matching encoding from the body (non-interference, BLP-Lean, IND-CPA-Lean, k-anonymity-Lean).
  3. Produce the Lean statement + proof skeleton; verify Mathlib primitives at the pin.
  4. Hand off: to @lean-proof-review for review, to @lean-enforcement for CI, to @applied-data-information-security if the model is wrong.

Recovery & STOP

  • STOP if the question is about policy design — delegate to @applied-data-information-security.
  • STOP if Mathlib lacks the cryptographic primitive — escalate to @lean-research.
  • STOP if the property has not been formally stated — delegate to @lean-specification.

Handoffs

  • Predecessors: agent:gateway, skill:lean-research.
  • Successors: skill:lean-proof-review, skill:lean-enforcement, skill:lean-zettelkasten.

Detailed reference

Full content for lean-security-formalization lives in references/lean-security-formalization-handbook.md. Load that file when the skill is convened; the SKILL.md only carries the dispatch contract and the parts index.

SectionTopic
Part 1Security Properties
Part 2Access Control Models
Part 3Information Flow
Part 4Privacy and Data Protection
Part 5Cryptographic Properties
Part 6Trust Models
Part 7Research Council Integration

See also

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.