verified-polygon-intersection CLAUDE.md

verified-polygon-intersection CLAUDE.md is an instructions file for coding agents from schildep/verified-polygon-intersection. It costs 746 tokens per session, scanned A, original, MIT.

Project instructions for a formal mathematics development about polygon intersections, written in Lean, a programming language used to check mathematical definitions and proofs.

In plain words
What is it for?
Use them when adding or changing polygon-intersection definitions, algorithms, precondition checks, or proofs in the specified `Polygons/` files.
Why use it?
They keep definitions and theorem statements in predictable files, making the formalization easier to review and update.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/schildep/verified-polygon-intersection/claude-md
Clone the repo
git clone --depth 1 https://github.com/schildep/verified-polygon-intersection

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for verified-polygon-intersection CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/schildep/verified-polygon-intersection/claude-md.svg)](https://agentmods.dev/instructions/schildep/verified-polygon-intersection/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/schildep/verified-polygon-intersection/claude-md"><img src="https://agentmods.dev/badge/instructions/schildep/verified-polygon-intersection/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 746 This file is loaded in full into every session.
When invoked 746 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00746 $0.00746
Opus 5 $0.00373 $0.00373
Sonnet 5 $0.00149 $0.00149
Haiku 4.5 $0.00075 $0.00075

Measured 3d ago against content hash 2c44e45a20ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

verified-polygon-intersection CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

This development formalizes polygon intersections.

Guideline on placement of definitions/theorems

Polygons/Defs.lean and Polygons/Datastructures.lean contain exactly the definitions necessary to state the main specifications Polygons/MultipolygonIntersectionAlgorithm.lean, Polygons/MultipolygonIntersectionAlgorithmWithPreconditionCheck.lean.

Beyond that, files in Polygons/ follow a three-level hierarchy. For each topic X:

  • Polygons/X.lean — top of hierarchy for topic X. Restates definitions or characterizes definitions and restates theorems that are worth exporting for topic X. This is setup such that a reviewer only needs to review Polygons/X.lean to completely understand definitions and theorem statement from the associated files and when the implementation changes, the file Polygons/X.lean does not need to change.
    • Contains user-facing definitions with either their full definition statement or their unique characterizations (a def that defers to XImpl plus a theorem that uniquely characterizes it). In either case this involves a new definition in the X namespace.
    • Contains theorem statements of theorems worth exporting, with proofs referring to XProofs.
    • Theorem statements in Polygons/X.lean never should refer to definitions from XImpl or XProofs, instead they should refer to the counterparts defined in Polygons/X.lean.
    • Never contains a proof; instead refers to a copy of the theorem stated in XProofs.lean. Even short proofs go to XProofs, so future proof rewrites do not touch the top-of-hierarchy file.
    • Never contains an implementation. Instead refer to XImpl.
    • Never contains definitions or helper theorems that will only be used in XProofs.lean or XImpl.lean.
  • Polygons/XImpl.lean — runtime implementation. Contains the computable defs that are called in the runtime path of the algorithm. Mathlib-free so it can be initialized in the WASM binary without dragging the tactic chain in. Does not contain defs that are not (directly or indirectly) called in the runtime path.
  • Polygons/XProofs.lean restatement and proofs of theorems in X and private helper definitions and theorems. Free to use Mathlib and tactics. Dead-code eliminated out of the WASM binary because no XImpl initializer references it.

It is important that you follow this guideline when adding definitions or theorems.

Read the full file on GitHub · 57 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 57 lines · 746 tokens per session scan A 2c44e45a20ac

Subscribe to this mod's changes

verified-polygon-intersection CLAUDE.md is an instructions file published in the GitHub repository schildep/verified-polygon-intersection (46 stars, last pushed 3mo ago), licensed MIT. It adds 746 tokens to every session, about $0.0037 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.