Skip to content

Commit 5f51218

Browse files
chore: Add missing spaces in docstrings (google-deepmind#1840)
1 parent d4f5687 commit 5f51218

File tree

32 files changed

+62
-62
lines changed

32 files changed

+62
-62
lines changed

FormalConjectures/Arxiv/1308.0994/BoxdotConjecture.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ structure NormalModalLogic : Type where
160160
/-- `extK` means that if `K ⊢ φ`, then `φ ∈ thms`. That is, the logic extends system K. -/
161161
extK : ∀ {φ}, KProof ∅ φ → φ ∈ thms
162162
/-- `mp` means that if `φ ∈ thms` and `(φ ~> ψ) ∈ thms`, then `ψ ∈ thms`. That is, thms is closed
163-
under modus ponens.-/
163+
under modus ponens. -/
164164
mp : ∀ {φ ψ}, φ ∈ thms → (φ ~> ψ) ∈ thms → ψ ∈ thms
165165
/-- `nec` means that if `φ ∈ thms`, then `□φ ∈ thms`. Equivalently, `thms` is closed under
166166
necessitation -/

FormalConjectures/ErdosProblems/1054.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace Erdos1054
2727
open Classical Filter Asymptotics
2828

2929
/-- Let $f(n)$ be the minimal integer $m$ such that $n$ is the sum of the $k$ smallest
30-
divisors of $m$ for some $k\geq 1$.-/
30+
divisors of $m$ for some $k\geq 1$. -/
3131
noncomputable def f (n : ℕ) : ℕ :=
3232
if h : ∃ᵉ (m) (k ≥ 1), n = ∑ i < k, Nat.nth (· ∈ m.divisors) i then
3333
Nat.find h

FormalConjectures/ErdosProblems/1055.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Erdos1055
2626

2727
/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are
2828
$2$ or $3$. In general, a prime $p$ is in class $r$ if every prime factor
29-
of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor.-/
29+
of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor. -/
3030
def IsOfClass : ℕ+ → ℕ → Prop := fun r ↦
3131
PNat.caseStrongInductionOn (p := fun (_ : ℕ+) ↦ ℕ → Prop) r
3232
(fun p ↦ (p + 1).primeFactors ⊆ {2, 3})
@@ -49,7 +49,7 @@ open Classical
4949
/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are
5050
$2$ or $3$. In general, a prime $p$ is in class $r$ if every prime factor
5151
of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor.
52-
Let $p_r$ is the least prime in class $r$.-/
52+
Let $p_r$ is the least prime in class $r$. -/
5353
noncomputable def p (r : ℕ+) : ℕ := Nat.find (exists_p r)
5454

5555
/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are

FormalConjectures/ErdosProblems/1072.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ open scoped Topology
2727

2828
namespace Erdos1072
2929

30-
/-- For any prime $p$, let $f(p)$ be the least integer such that $f(p)! + 1 \equiv 0 \mod p$.-/
30+
/-- For any prime $p$, let $f(p)$ be the least integer such that $f(p)! + 1 \equiv 0 \mod p$. -/
3131
noncomputable def f (p : ℕ) : ℕ := sInf {n | (n)! + 10 [MOD p]}
3232

3333
/-- Is it true that there are infinitely many $p$ for which $f(p) = p − 1$? -/

FormalConjectures/ErdosProblems/1074.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import FormalConjectures.Util.ProblemImports
2525
open scoped Nat
2626

2727
/-- The EHS numbers (after Erdős, Hardy, and Subbarao) are those $m\geq 1$ such that there
28-
exists a prime $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$.-/
28+
exists a prime $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$. -/
2929
abbrev Nat.EHSNumbers : Set ℕ := {m | 1 ≤ m ∧ ∃ p, p.Prime ∧ ¬p ≡ 1 [MOD m] ∧ p ∣ m ! + 1}
3030

3131
/-- The Pillai primes are those primes $p$ such that there exists an $m$ with
@@ -76,7 +76,7 @@ theorem erdos_1074.parts_ii_ii :
7676
sorry
7777

7878
/-- Pillai [Pi30] raised the question of whether there exist any primes in $P$. This was answered
79-
by Chowla, who noted that, for example, $14! + 1 \equiv 18! + 1 \equiv 0 \pmod{23}$.-/
79+
by Chowla, who noted that, for example, $14! + 1 \equiv 18! + 1 \equiv 0 \pmod{23}$. -/
8080
@[category test, AMS 11]
8181
theorem erdos_1074.variants.mem_pillaiPrimes : 23 ∈ PillaiPrimes := by
8282
norm_num

FormalConjectures/ErdosProblems/168.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ open scoped Topology
2626

2727
namespace Erdos168
2828

29-
/--Say a finite set of natural numbers is *non ternary* if it contains no
30-
3-term arithmetic progression of the form `n, 2n, 3n`.-/
29+
/-- Say a finite set of natural numbers is *non ternary* if it contains no
30+
3-term arithmetic progression of the form `n, 2n, 3n`. -/
3131
def NonTernary (S : Finset ℕ) : Prop := ∀ n : ℕ, n ∉ S ∨ 2*n ∉ S ∨ 3*n ∉ S
3232

3333
/--`IntervalNonTernarySets N` is the (fin)set of non ternary subsets of `{1,...,N}`.
34-
The advantage of defining it as below is that some proofs (e.g. that of `F 3 = 2`) become `rfl`.-/
34+
The advantage of defining it as below is that some proofs (e.g. that of `F 3 = 2`) become `rfl`. -/
3535
def IntervalNonTernarySets (N : ℕ) : Finset (Finset ℕ) :=
3636
(Finset.Icc 1 N).powerset.filter
3737
fun S => ∀ n ∈ Finset.Icc 1 (N / 3 : ℕ), n ∉ S ∨ 2*n ∉ S ∨ 3*n ∉ S
3838

39-
/--`F N` is the size of the largest non ternary subset of `{1,...,N}`.-/
39+
/--`F N` is the size of the largest non ternary subset of `{1,...,N}`. -/
4040
abbrev F (N : ℕ) : ℕ := (IntervalNonTernarySets N).sup Finset.card
4141

4242
@[category API, AMS 5 11]

FormalConjectures/ErdosProblems/229.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $$
3535
Solved in the affirmative by Barth and Schneider [BaSc72].
3636
3737
[BaSc72] Barth, K. F. and Schneider, W. J., _On a problem of Erdős concerning the zeros of_
38-
_the derivatives of an entire function_. Proc. Amer. Math. Soc. (1972), 229--232.-/
38+
_the derivatives of an entire function_. Proc. Amer. Math. Soc. (1972), 229--232. -/
3939
@[category research solved, AMS 30]
4040
theorem erdos_229 :
4141
letI := Polynomial.algebraPi ℂ ℂ ℂ

FormalConjectures/ErdosProblems/244.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ theorem erdos_244 : answer(sorry) ↔
3434
/-- Romanoff [Ro34] proved that the answer is yes if $C$ is an integer.
3535
3636
[Ro34] Romanoff, N. P., _Über einige Sätze der additiven Zahlentheorie_.
37-
Math. Ann. (1934), 668-678.-/
37+
Math. Ann. (1934), 668-678. -/
3838
@[category research solved, AMS 11]
3939
theorem erdos_244.variants.Romanoff {C : ℕ} (hC : 1 < C) :
4040
0 < { p + ⌊C ^ k⌋₊ | (p) (k) (_ : p.Prime) }.lowerDensity := by

FormalConjectures/ErdosProblems/253.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace Erdos253
2727
open scoped Topology
2828

2929
/-- The predicate that `a : ℕ → ℕ` is a strictly monotone sequence such that every infinite
30-
arithmetic progression contains infinitely many integers that are the sum of distinct $a_i$s.-/
30+
arithmetic progression contains infinitely many integers that are the sum of distinct $a_i$s. -/
3131
@[inline]
3232
def RepresentsAPs (a : ℕ → ℕ) : Prop :=
3333
StrictMono a ∧ ∀ l, l.IsAPOfLength ⊤ → (subsetSums (Set.range a) ∩ l).Infinite

FormalConjectures/ErdosProblems/319.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ and
3737
$$
3838
\sum_{n\in A'}\frac{\delta n}{n} \neq 0
3939
$$
40-
for all non-empty $A'\subsetneq A$.-/
40+
for all non-empty $A'\subsetneq A$. -/
4141
@[category research open, AMS 5]
4242
theorem erdos_319 (N : ℕ) : IsGreatest
4343
{ #A | (A) (_ : A ⊆ Finset.Icc 1 N)

0 commit comments

Comments
 (0)