You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update README and reference docs after proof golf PRs
- Add PathGraphDist as upstream candidate in README
- Fix Verify.lean declaration count (20 → 27)
- Fix GraphBall lemma count (8 core + 6 convenience)
- Expand Aristotle role in Development Process section
- Correct FlowerVert type signature in theorems.md and graph-construction.md
- Add changelog entries for PRs #11 and #12
|`SimpleGraph.ball` + 7 core lemmas |`GraphBall`| Open metric ball via `edist` (8 core + convenience lemmas) | No `SimpleGraph.ball` in Mathlib; PR ready to open |
47
+
|`SimpleGraph.ball` + 7 core lemmas |`GraphBall`| Open metric ball via `edist` (8 core + 6 convenience lemmas) | No `SimpleGraph.ball` in Mathlib; PR ready to open |
48
+
|`pathGraph_edist`, `pathGraph_dist` + 2 corollaries |`PathGraphDist`| Distance in path graphs = index difference | No distance lemmas for `pathGraph` in Mathlib |
48
49
49
50
## Axiom boundary
50
51
@@ -70,7 +71,7 @@ lake build --wfail # fail on any sorry or warning
Copy file name to clipboardExpand all lines: docs/explanation/graph-construction.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,14 +20,14 @@ At generation \(g\), the flower has two hub vertices plus internal vertices cont
20
20
21
21
```lean
22
22
def FlowerVert (u v : ℕ) (g : ℕ) : Type :=
23
-
Sum (Fin 2) (Σ (e : FlowerEdge u v g), GadgetPos u v)
23
+
Fin 2 ⊕ Σ (k : Fin g), FlowerEdge u v k.val × (Fin (u - 1) ⊕ Fin (v - 1))
24
24
```
25
25
26
-
The left summand `Fin 2` gives the two hubs. The right summand pairs each edge index with a position within its replacement gadget.
26
+
The left summand `Fin 2` gives the two hubs. The right summand indexes each internal vertex by three coordinates: the generation `k` at which it was created, the parent edge `e` that was replaced, and a position `Fin (u - 1) ⊕ Fin (v - 1)`within the replacement gadget (short or long path).
27
27
28
28
### Gadget positions
29
29
30
-
Each edge is replaced by two parallel paths of lengths \(u\) and \(v\). The internal vertices of this replacement are:
30
+
Each edge is replaced by two parallel paths of lengths \(u\) and \(v\). The positions within a replacement gadget are described by:
31
31
32
32
```lean
33
33
inductive GadgetPos (u v : ℕ)
@@ -37,7 +37,7 @@ inductive GadgetPos (u v : ℕ)
37
37
| long (j : Fin (v-1)) -- internal vertices on the long path
38
38
```
39
39
40
-
This gives\((u-1) + (v-1) = u+v-2\) internal vertices per gadget, matching the counting formula.
40
+
`GadgetPos` is used by the endpoint resolution functions `localSrc` and `localTgt` to track adjacency within each gadget. The actual internal vertex positions in `FlowerVert` are stored as `Fin (u - 1) ⊕ Fin (v - 1)`, giving\((u-1) + (v-1) = u+v-2\) internal vertices per gadget, matching the counting formula.
Proof golf pass using Aristotle-discovered simplifications. Eliminates intermediate bindings and restores named squeeze waypoints in the headline theorem.
0 commit comments