Skip to content

Commit c660ea4

Browse files
committed
chore(Combinatorics): avoid lazy continuation lines (leanprover-community#37165)
We separate free-standing text that currently is mistakenly attached to the last item of lists. In `Mathlib/Combinatorics/SimpleGraph/Walks/Counting.lean`, we also indent some continuation lines that seem intentional. We do this in order to resolve any ambiguity regarding intended meaning.
1 parent 25eb193 commit c660ea4

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

Mathlib/Combinatorics/Configuration.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ This file introduces abstract configurations of points and lines, and proves som
2828
* `Configuration.HasPoints.card_le`: `HasPoints` implies `|L| ≤ |P|`.
2929
* `Configuration.HasLines.hasPoints`: `HasLines` and `|P| = |L|` implies `HasPoints`.
3030
* `Configuration.HasPoints.hasLines`: `HasPoints` and `|P| = |L|` implies `HasLines`.
31+
3132
Together, these four statements say that any two of the following properties imply the third:
3233
(a) `HasLines`, (b) `HasPoints`, (c) `|P| = |L|`.
3334
@@ -64,6 +65,7 @@ instance : Membership (Dual L) (Dual P) :=
6465
2) there does not exist a point that is on all of the lines,
6566
3) there is at most one line through any two points,
6667
4) any two lines have at most one intersection point.
68+
6769
Conditions 3 and 4 are equivalent. -/
6870
class Nondegenerate : Prop where
6971
exists_point : ∀ l : L, ∃ p, p ∉ l

Mathlib/Combinatorics/HalesJewett.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ instance {α ι κ : Type*} [Nonempty ι] [Inhabited κ] :
263263
- each line is only one color except possibly at its endpoint
264264
- the lines all have the same endpoint
265265
- the colors of the lines are distinct.
266+
266267
Used in the proof `exists_mono_in_high_dimension`. -/
267268
structure ColorFocused {α ι κ : Type*} (C : (ι → Option α) → κ) where
268269
/-- The underlying multiset of almost monochromatic lines of a color-focused collection. -/

Mathlib/Combinatorics/SimpleGraph/Walks/Counting.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public import Mathlib.Combinatorics.SimpleGraph.Paths
1212
1313
## Main definitions
1414
- `walkLengthTwoEquivCommonNeighbors`: bijective correspondence between walks of length two
15-
from `u` to `v` and common neighbours of `u` and `v`. Note that `u` and `v` may be the same.
15+
from `u` to `v` and common neighbours of `u` and `v`. Note that `u` and `v` may be the same.
1616
- `finsetWalkLength`: the `Finset` of length-`n` walks from `u` to `v`.
17-
This is used to give `{p : G.walk u v | p.length = n}` a `Fintype` instance, and it
18-
can also be useful as a recursive description of this set when `V` is finite.
17+
This is used to give `{p : G.walk u v | p.length = n}` a `Fintype` instance, and it
18+
can also be useful as a recursive description of this set when `V` is finite.
1919
2020
TODO: should this be extended further?
2121
-/

0 commit comments

Comments
 (0)