Skip to content

feat: scaffold fd-formalization repo#1

Merged
Nelson Spence (Fieldnote-Echo) merged 1 commit intomainfrom
feat/scaffold-repo
Mar 6, 2026
Merged

feat: scaffold fd-formalization repo#1
Nelson Spence (Fieldnote-Echo) merged 1 commit intomainfrom
feat/scaffold-repo

Conversation

@Fieldnote-Echo
Copy link
Copy Markdown
Member

Summary

  • Lean 4 + Mathlib project scaffold for formalizing the (u,v)-flower fractal dimension formula d_B = ln(u+v)/ln(u) (Rozenfeld et al., NJP 2007)
  • Proof spine: FlowerGraph -> FlowerCounts -> FlowerDiameter -> FlowerDimension (zero axioms target)
  • GraphBall.lean defines SimpleGraph.ball via edist (upstream Mathlib candidate)
  • CI: lake build --wfail, lake lint, sorry contamination check (SHA-pinned actions)
  • Conventions: mathlib-playbook compliant (style linters, copyright hooks, fun x ↦, Type*)
  • Builds clean against Mathlib v4.28.0

Design decisions

  • edist not dist for GraphBall (dist returns 0 for unreachable vertices)
  • Hypotheses: 1 < u, u ≤ v (excludes transfractal u=1 case)
  • Proof spine: counts/diameter/log-ratio, NOT ball-recurrence-first
  • Vertex representation: TBD — key implementation risk tracked in debt.md
  • FlowerDiameter: expected to be hardest file (~3x longest), flagged in debt.md

Test plan

  • lake build --wfail passes locally
  • #print axioms shows no sorryAx for GraphBall declarations
  • Pre-commit hooks pass (copyright, trailing whitespace, EOF)
  • CI workflow runs on GitHub

🤖 Generated with Claude Code

Lean 4 + Mathlib project for formalizing the (u,v)-flower analytical
dimension formula d_B = ln(u+v)/ln(u) from Rozenfeld et al. (NJP 2007).

Proof spine: FlowerGraph -> FlowerCounts -> FlowerDiameter -> FlowerDimension.
Zero axioms target. GraphBall.lean is an upstream Mathlib candidate using
edist (not dist) for correct handling of disconnected graphs.

Includes: lakefile.toml, CI workflow (SHA-pinned), pre-commit hooks,
copyright checker, mathlib-playbook conventions, debt tracker.

Builds clean with `lake build --wfail` against Mathlib v4.28.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Fieldnote-Echo Nelson Spence (Fieldnote-Echo) merged commit a0a9035 into main Mar 6, 2026
2 checks passed
@Fieldnote-Echo Nelson Spence (Fieldnote-Echo) deleted the feat/scaffold-repo branch March 10, 2026 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant