Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,22 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Count sorries against the expected baseline
- name: Enforce sorry-free main (release policy)
run: |
# Tightened regex: match only standalone `sorry` (line is exactly
# whitespace-then-sorry-then-whitespace), `by sorry`, `:= sorry`.
# Excludes docstring text like "sorry'd" or "left as sorry".
# Release policy: main is a release-quality branch and carries NO
# sorry. Work-in-progress with sorry lives on a development branch
# and merges to main only once the proof is complete.
# Match only standalone `sorry`, `by sorry`, `:= sorry` (not
# docstring text like "sorry'd" or "left as sorry").
ACTUAL=$(grep -rnE "^[[:space:]]*sorry[[:space:]]*$|by sorry|:= sorry" \
--include="*.lean" \
OpenGALib \
2>/dev/null | wc -l | tr -d ' ')
EXPECTED=3
if [ "$ACTUAL" -ne "$EXPECTED" ]; then
echo "::error::Sorry count drift: expected $EXPECTED, found $ACTUAL"
echo "If the change is intentional, update the EXPECTED constant in this workflow."
echo "If unintentional, close the new sorry or revert the regression."
if [ "$ACTUAL" -ne 0 ]; then
echo "::error::main must be sorry-free — found $ACTUAL. Move sorry'd work to a development branch; merge to main only when the proof is complete."
exit 1
fi
echo "Sorry count: $ACTUAL (matches EXPECTED=$EXPECTED)"
echo "Sorry count: 0 — main is sorry-free."

- name: Count axioms (expect zero)
run: |
Expand Down
6 changes: 3 additions & 3 deletions OpenGALib.lean
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import OpenGALib.Riemannian.Geodesic.HopfRinow
import OpenGALib.Riemannian.Geodesic.HopfRinow.EVariationLePathELength
import OpenGALib.Riemannian.Geodesic.SymmetryLemma

/-!
# OpenGALib

A Lean 4 formalization of Riemannian geometry on top of Mathlib,
centered on the Hopf–Rinow theorem and its supporting cone.
A Lean 4 formalization of Riemannian geometry on top of Mathlib — the
`sorry`-free supporting cone for the Hopf–Rinow theorem. The theorem
itself lands here once its proof is complete on the development branch.
-/
89 changes: 0 additions & 89 deletions OpenGALib/Riemannian/Geodesic/HopfRinow.lean

This file was deleted.

Loading