Skip to content

Commit 2ddd611

Browse files
committed
doc: fix a/an articles (4/4) (#32293)
Found and fixed by a script (due to Codex). Then manually reviewed.
1 parent 5fc7bcb commit 2ddd611

File tree

18 files changed

+25
-25
lines changed

18 files changed

+25
-25
lines changed

Mathlib/Tactic/CC/Addition.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public meta import Mathlib.Data.Option.Defs
99
public meta import Mathlib.Tactic.CC.MkProof
1010

1111
/-!
12-
# Process when an new equation is added to a congruence closure
12+
# Process when a new equation is added to a congruence closure
1313
-/
1414

1515
public meta section
@@ -505,7 +505,7 @@ def setACVar (e : Expr) : CCM Unit := do
505505
let newRootEntry := { rootEntry with acVar := some e }
506506
modify fun ccs => { ccs with entries := ccs.entries.insert eRoot newRootEntry }
507507

508-
/-- If `e` isn't an AC variable, set `e` as an new AC variable. -/
508+
/-- If `e` isn't an AC variable, set `e` as a new AC variable. -/
509509
def internalizeACVar (e : Expr) : CCM Bool := do
510510
let ccs ← get
511511
if ccs.acEntries.contains e then return false
@@ -963,7 +963,7 @@ partial def processSubsingletonElem (e : Expr) : CCM Unit := do
963963
{ ccs with
964964
subsingletonReprs := ccs.subsingletonReprs.insert typeRoot e }
965965

966-
/-- Add an new entry for `e` to the congruence closure. -/
966+
/-- Add a new entry for `e` to the congruence closure. -/
967967
partial def mkEntry (e : Expr) (interpreted : Bool) : CCM Unit := do
968968
if (← getEntry e).isSome then return
969969
let constructor ← isConstructorApp e

Mathlib/Tactic/DeriveEncodable.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ inductive S : Type where
3636
| nat (n : ℕ)
3737
| cons (a b : S)
3838
```
39-
We start by constructing a equivalence `S ≃ ℕ` using the `Nat.pair` function.
39+
We start by constructing an equivalence `S ≃ ℕ` using the `Nat.pair` function.
4040
4141
Here is an example of how this module constructs an encoding.
4242

Mathlib/Tactic/FieldSimp.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ partial def normalize (disch : ∀ {u : Level} (type : Q(Sort u)), MetaM Q($type
448448
let ⟨G, pf_y⟩ := ← Sign.div iM y₁ y₂ g₁ g₂
449449
pure ⟨q($y₁ / $y₂), ⟨G, q(Eq.trans (congr_arg₂ HDiv.hDiv $pf₁_sgn $pf₂_sgn) $pf_y)⟩,
450450
qNF.div l₁ l₂, q(NF.div_eq_eval $pf₁ $pf₂ $pf)⟩
451-
/- normalize a inversion: `y⁻¹` -/
451+
/- normalize an inversion: `y⁻¹` -/
452452
| ~q($y⁻¹) =>
453453
let ⟨y', ⟨g, pf_sgn⟩, l, pf⟩ ← normalize disch iM y
454454
let pf_y ← Sign.inv iM y' g

Mathlib/Tactic/GCongr/Core.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import all Lean.Meta.Tactic.Apply
1616
# The `gcongr` ("generalized congruence") tactic
1717
1818
The `gcongr` tactic applies "generalized congruence" rules, reducing a relational goal
19-
between a LHS and RHS matching the same pattern to relational subgoals between the differing
19+
between an LHS and RHS matching the same pattern to relational subgoals between the differing
2020
inputs to the pattern. For example,
2121
```
2222
example {a b x c d : ℝ} (h1 : a + 1 ≤ b + 1) (h2 : c + 2 ≤ d + 2) :
@@ -25,7 +25,7 @@ example {a b x c d : ℝ} (h1 : a + 1 ≤ b + 1) (h2 : c + 2 ≤ d + 2) :
2525
· linarith
2626
· linarith
2727
```
28-
This example has the goal of proving the relation `≤` between a LHS and RHS both of the pattern
28+
This example has the goal of proving the relation `≤` between an LHS and RHS both of the pattern
2929
```
3030
x ^ 2 * ?_ + ?_
3131
```
@@ -608,15 +608,15 @@ partial def _root_.Lean.MVarId.gcongr
608608
\n attempted lemmas: {lemmas.map (·.declName)}"
609609

610610
/-- The `gcongr` tactic applies "generalized congruence" rules, reducing a relational goal
611-
between a LHS and RHS. For example,
611+
between an LHS and RHS. For example,
612612
```
613613
example {a b x c d : ℝ} (h1 : a + 1 ≤ b + 1) (h2 : c + 2 ≤ d + 2) :
614614
x ^ 2 * a + c ≤ x ^ 2 * b + d := by
615615
gcongr
616616
· linarith
617617
· linarith
618618
```
619-
This example has the goal of proving the relation `≤` between a LHS and RHS both of the pattern
619+
This example has the goal of proving the relation `≤` between an LHS and RHS both of the pattern
620620
```
621621
x ^ 2 * ?_ + ?_
622622
```

Mathlib/Tactic/Linarith/Frontend.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ There are two oracles that can be used in `linarith` so far.
7575
large problems. You can use it with `linarith (oracle := .fourierMotzkin)`.
7676
7777
2. **Simplex Algorithm (default).**
78-
This oracle reduces the search for a unsatisfiability certificate to some Linear Programming
78+
This oracle reduces the search for an unsatisfiability certificate to some Linear Programming
7979
problem. The problem is then solved by a standard Simplex Algorithm. We use
8080
[Bland's pivot rule](https://en.wikipedia.org/wiki/Bland%27s_rule) to guarantee that the algorithm
8181
terminates.

Mathlib/Tactic/TermCongr.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def CongrResult.trans (res1 res2 : CongrResult) : CongrResult where
321321
| .eq => do mkEqTrans (← res1.eq) (← res2.eq)
322322
| .heq => do mkHEqTrans (← res1.heq) (← res2.heq)
323323

324-
/-- Make a `CongrResult` from a LHS, a RHS, and a proof of an Iff, Eq, or HEq.
324+
/-- Make a `CongrResult` from an LHS, an RHS, and a proof of an Iff, Eq, or HEq.
325325
The proof is allowed to have a metavariable for its type.
326326
Validates the inputs and throws errors in the `pf?` function.
327327

Mathlib/Topology/Algebra/ContinuousMonoidHom.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ theorem toHomeomorph_eq_coe (f : M ≃ₜ* N) : f.toHomeomorph = f :=
359359

360360
/-- Makes a continuous multiplicative isomorphism from
361361
a homeomorphism which preserves multiplication. -/
362-
@[to_additive /-- Makes an continuous additive isomorphism from
362+
@[to_additive /-- Makes a continuous additive isomorphism from
363363
a homeomorphism which preserves addition. -/]
364364
def mk' (f : M ≃ₜ N) (h : ∀ x y, f (x * y) = f x * f y) : M ≃ₜ* N :=
365365
⟨⟨f.toEquiv,h⟩, f.continuous_toFun, f.continuous_invFun⟩

Mathlib/Topology/Algebra/Group/Quotient.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ instance instT1Space [hN : IsClosed (N : Set G)] :
106106
T1Space (G ⧸ N) :=
107107
t1Space_iff.mpr hN
108108

109-
-- TODO: `IsOpen` should be an class and this should be an instance
109+
-- TODO: `IsOpen` should be a class and this should be an instance
110110
@[to_additive]
111111
theorem discreteTopology (hN : IsOpen (N : Set G)) :
112112
DiscreteTopology (G ⧸ N) :=

Mathlib/Topology/Algebra/InfiniteSum/GroupCompletion.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ open UniformSpace.Completion
1919
variable {α β : Type*} [AddCommGroup α] [UniformSpace α] [IsUniformAddGroup α]
2020
{L : SummationFilter β}
2121

22-
/-- A function `f` has a sum in an uniform additive group `α` if and only if it has that sum in the
22+
/-- A function `f` has a sum in a uniform additive group `α` if and only if it has that sum in the
2323
completion of `α`. -/
2424
theorem hasSum_iff_hasSum_compl (f : β → α) (a : α) :
2525
HasSum (toCompl ∘ f) a L ↔ HasSum f a L := (isDenseInducing_toCompl α).hasSum_iff f a

Mathlib/Topology/Algebra/Module/LinearMap.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ lemma IsIdempotentElem.commute_iff {f T : M →L[R] M}
12181218

12191219
variable [IsTopologicalAddGroup M]
12201220

1221-
/-- An idempotent operator `f` commutes with an unit operator `T` if and only if
1221+
/-- An idempotent operator `f` commutes with a unit operator `T` if and only if
12221222
`T (range f) = range f` and `T (ker f) = ker f`. -/
12231223
theorem IsIdempotentElem.commute_iff_of_isUnit {f T : M →L[R] M} (hT : IsUnit T)
12241224
(hf : IsIdempotentElem f) :

0 commit comments

Comments
 (0)