Skip to content

Commit 3716b27

Browse files
authored
doc(All): Spelling fixes found using codespell (#538)
Fixes a few typos found using codespell
1 parent 76a79aa commit 3716b27

16 files changed

Lines changed: 19 additions & 19 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ instructions on how to run these locally.
9898
## Pull Request Titles
9999

100100
It is required that pull request titles begun with one of the following categories followed by a
101-
colon: `feat`, `fix`, `doc`, `style`, `refactor`, `test`, `chore`, `perf`. These may optionally be followed by a
101+
colon: `feat`, `fix`, `doc`, `style`, `refactor`, `test`, `chore`, `perf`. These may optionally be followed by a
102102
parenthetical containing what area of the library the PR is working on.
103103

104104
## Testing
@@ -234,7 +234,7 @@ Reusable APIs that support many concrete algorithms.
234234

235235
We aim at formalising a number of logics of different kinds, including linear logic, modal logics, etc.
236236

237-
We welcome proofs of logical equivalences and metatheoretical results such as identity expansion, cut elimiation, etc.
237+
We welcome proofs of logical equivalences and metatheoretical results such as identity expansion, cut elimination, etc.
238238

239239
Examples of interesting logics include:
240240
- Linear logic

Cslib/Computability/Automata/NA/BuchiInter.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ noncomputable def interNA (na : (i : Bool) → NA (State i) Symbol)
5454
(acc : (i : Bool) → Set (State i)) : NA ((Π i, State i) × Bool) Symbol :=
5555
(iProd na).addHist histStart (histTrans acc)
5656

57-
/-- The overall accepting conditon of the intersection automaton. -/
57+
/-- The overall accepting condition of the intersection automaton. -/
5858
@[scoped grind =]
5959
def interAccept (acc : (i : Bool) → Set (State i)) : Set ((Π i, State i) × Bool) :=
6060
interAcc false acc ∪ interAcc true acc
6161

6262
variable {na : (i : Bool) → NA (State i) Symbol} {acc : (i : Bool) → Set (State i)}
6363

64-
/-- If the intersection automaton sees one accepting condtion infinitely many times,
64+
/-- If the intersection automaton sees one accepting condition infinitely many times,
6565
then it sees the other accepting condition infinitely many times as well. -/
6666
lemma inter_freq_acc_freq_acc {xs : ωSequence Symbol} {ss : ωSequence ((Π i, State i) × Bool)}
6767
{i : Bool} (h_run : (interNA na acc).Run xs ss) (h_inf : ∃ᶠ k in atTop, ss k ∈ interAcc i acc) :
@@ -76,7 +76,7 @@ lemma inter_freq_acc_freq_acc {xs : ωSequence Symbol} {ss : ωSequence ((Π i,
7676
· apply Frequently.mono h_inf
7777
grind
7878

79-
/-- If the intersection automaton sees the accepting condtions of both component automata
79+
/-- If the intersection automaton sees the accepting conditions of both component automata
8080
infinitely many times, then its own accepting condition also happens infinitely many times. -/
8181
lemma inter_freq_comp_acc_freq_acc {xs : ωSequence Symbol} {ss : ωSequence ((Π i, State i) × Bool)}
8282
(h_run : (interNA na acc).Run xs ss)

Cslib/Computability/Automata/NA/Loop.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ open scoped Run LTS
2020

2121
variable {Symbol State : Type*}
2222

23-
/-- `na.loop` mimics `na`, but can nondeterministically decide to "loop back" by identifing
23+
/-- `na.loop` mimics `na`, but can nondeterministically decide to "loop back" by identifying
2424
an accepting state of `na` with a starting state of `na`. This identification is achieved
2525
via a new dummy state `()`, which is the sole starting state and the sole accepting state
2626
of `na.loop`. -/

Cslib/Foundations/Combinatorics/InfiniteGraphRamsey.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private lemma good_selections_exist :
121121

122122
/-- If the edges of an infinite complete graph is assigned a finite number of colors,
123123
then there must exist a color `c` and an infinite set `s` of vertices such that the edge
124-
beteen any two vertices of `s` is assigned the same color `c`. -/
124+
between any two vertices of `s` is assigned the same color `c`. -/
125125
theorem infinite_graph_ramsey :
126126
∃ c : Color, ∃ s : Set Vertex, s.Infinite ∧
127127
∀ e : Finset Vertex, e.card = 2 → ↑e ⊆ s → color e = c := by

Cslib/Foundations/Data/Nat/Segment.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public import Mathlib.Data.Nat.Nth
1616
Given a strictly monotonic function `f : ℕ → ℕ` and `k : ℕ` with `k ≥ f 0`,
1717
`Nat.segment f k` is the unique `m : ℕ` such that `f m ≤ k < f (k + 1)`.
1818
`Nat.segment f k` is defined to be 0 for `k < f 0`.
19-
This file defines `Nat.segment` and proves various properties aboout it.
19+
This file defines `Nat.segment` and proves various properties about it.
2020
-/
2121

2222
@[expose] public section

Cslib/Foundations/Data/OmegaSequence/Defs.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public import Mathlib.Logic.Function.Iterate
1616
An `ωSequence α` is an infinite sequence of elements of `α`. It is basically
1717
a wrapper around the type `ℕ → α` which supports the dot-notation and
1818
the analogues of many familiar API functions of `List α`. In particular,
19-
the element at postion `n : ℕ` of `s : ωSequence α` is obtained using the
19+
the element at position `n : ℕ` of `s : ωSequence α` is obtained using the
2020
function application notation `s n`.
2121
2222
In this file we define `ωSequence` and its API functions.

Cslib/Foundations/Data/OmegaSequence/Flatten.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ theorem flatten_drop [Inhabited α]
149149
(ls.drop n).flatten = ls.flatten.drop (ls.cumLen n) :=
150150
(flatten_take_drop h_ls n).2
151151

152-
/-- `ls n` is the segement from position `ls.cumLen n` to position `ls.cumLen (n + 1) - 1`
152+
/-- `ls n` is the segment from position `ls.cumLen n` to position `ls.cumLen (n + 1) - 1`
153153
of `ls.flatten` -/
154154
@[simp, scoped grind =]
155155
theorem extract_flatten [Inhabited α] {ls : ωSequence (List α)} (h_ls : ∀ k, (ls k).length > 0)

Cslib/Languages/LambdaCalculus/LocallyNameless/Fsub/WellFormed.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ lemma map_subst (wf_env : Env.Wf (Γ ++ ⟨X, Binding.sub τ⟩ :: Δ)) (wf_τ'
183183

184184
variable [HasFresh Var]
185185

186-
/-- A well-formed context is unchaged by substituting for a free key. -/
186+
/-- A well-formed context is unchanged by substituting for a free key. -/
187187
lemma map_subst_nmem (Γ : Env Var) (X : Var) (σ : Ty Var) (wf : Γ.Wf) (nmem : X ∉ Γ.dom) :
188188
Γ = Γ.map_val (·[X:=σ]) := by
189189
induction wf <;> grind [Ty.Wf.nmem_fv, Binding.subst_fresh]

Cslib/Languages/LambdaCalculus/LocallyNameless/Stlc/Safety.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ theorem progress {t : Term Var} {τ : Ty Base} (ht : [] ⊢ t ∶ τ) : t.Value
9191
cases ih_l with
9292
-- if the lhs is a value, beta reduce the application
9393
| inl val => cases val with | abs M _ => use M ^ N, by grind
94-
-- otherwise, propogate the step to the lhs of the application
94+
-- otherwise, propagate the step to the lhs of the application
9595
| inr step =>
9696
obtain ⟨M', _⟩ := step
9797
use M'.app N

Cslib/Languages/LambdaCalculus/LocallyNameless/Stlc/StrongNorm.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public import Cslib.Languages.LambdaCalculus.LocallyNameless.Untyped.StrongNorm
1414
public import Cslib.Languages.LambdaCalculus.LocallyNameless.Untyped.LcAt
1515
public import Cslib.Languages.LambdaCalculus.LocallyNameless.Untyped.MultiSubst
1616

17-
/-! Strong normalization (termination) for full beta-reduction of simply typed lamba calulus. -/
17+
/-! Strong normalization (termination) for full beta-reduction of simply typed lambda calculus. -/
1818

1919
@[expose] public section
2020

0 commit comments

Comments
 (0)