Skip to content

Commit b8dedbf

Browse files
Deicydebryangingechen
authored andcommitted
doc: add wikidata attributes (leanprover-community#40682)
This PR adds a batch of 25 `@[wikidata]` attributes. Claude helped generate the list of crossrefs (by scanning Wikidata + Mathlib). Comments are generated by [crossref-report](https://github.com/jcommelin/mathlib-crossref-report) and Wikilean. See https://wikilean.jackmccarthy.org/review?pr=40682 for reviewer UI.
1 parent 9a67863 commit b8dedbf

18 files changed

Lines changed: 37 additions & 5 deletions

File tree

Mathlib/Combinatorics/SimpleGraph/Basic.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public import Mathlib.Data.Rel
1111
public import Mathlib.Data.Set.Finite.Basic
1212
public import Mathlib.Data.Sym.Sym2
1313
public import Mathlib.Order.CompleteBooleanAlgebra
14+
public import Mathlib.Tactic.CrossRefAttribute
1415

1516
/-!
1617
# Simple graphs
@@ -88,7 +89,7 @@ The relation describes which pairs of vertices are adjacent.
8889
There is exactly one edge for every pair of adjacent vertices;
8990
see `SimpleGraph.edgeSet` for the corresponding edge set.
9091
-/
91-
@[ext, aesop safe constructors (rule_sets := [SimpleGraph])]
92+
@[ext, aesop safe constructors (rule_sets := [SimpleGraph]), wikidata Q141488]
9293
structure SimpleGraph (V : Type u) where
9394
/-- The adjacency relation of a simple graph. -/
9495
Adj : V → V → Prop

Mathlib/Data/Countable/Defs.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module
88
public import Mathlib.Data.Finite.Defs
99
public import Mathlib.Data.Bool.Basic
1010
public import Mathlib.Data.Subtype
11+
public import Mathlib.Tactic.CrossRefAttribute
1112
public import Mathlib.Tactic.MkIffOfInductiveProp
1213

1314
/-!
@@ -36,7 +37,7 @@ variable {α : Sort u} {β : Sort v}
3637
-/
3738

3839
/-- A type `α` is countable if there exists an injective map `α → ℕ`. -/
39-
@[mk_iff countable_iff_exists_injective]
40+
@[mk_iff countable_iff_exists_injective, wikidata Q66707394]
4041
class Countable (α : Sort u) : Prop where
4142
/-- A type `α` is countable if there exists an injective map `α → ℕ`. -/
4243
exists_injective_nat' : ∃ f : α → ℕ, Injective f

Mathlib/Geometry/Manifold/IsManifold/Basic.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public import Mathlib.Analysis.Normed.Module.Convex
1010
public import Mathlib.Analysis.RCLike.TangentCone
1111
public import Mathlib.Data.Bundle
1212
public import Mathlib.Geometry.Manifold.HasGroupoid
13+
public import Mathlib.Tactic.CrossRefAttribute
1314

1415
/-!
1516
# `C^n` manifolds (possibly with boundary or corners)
@@ -1070,6 +1071,7 @@ variable (M) in
10701071
-- is empty if the base manifold is empty
10711072
/-- The tangent bundle to a manifold, as a Sigma type. Defined in terms of
10721073
`Bundle.TotalSpace` to be able to put a suitable topology on it. -/
1074+
@[wikidata Q746550]
10731075
abbrev TangentBundle := Bundle.TotalSpace E (TangentSpace I : M → Type _)
10741076

10751077
end TangentSpace

Mathlib/GroupTheory/Solvable.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public import Mathlib.GroupTheory.Abelianization.Defs
1010
public import Mathlib.GroupTheory.Perm.ViaEmbedding
1111
public import Mathlib.GroupTheory.Subgroup.Simple
1212
public import Mathlib.SetTheory.Cardinal.Order
13+
public import Mathlib.Tactic.CrossRefAttribute
1314

1415
/-!
1516
# Solvable Groups
@@ -102,7 +103,7 @@ variable (G)
102103

103104
/-- A group `G` is solvable if its derived series is eventually trivial. We use this definition
104105
because it's the most convenient one to work with. -/
105-
@[mk_iff isSolvable_def]
106+
@[mk_iff isSolvable_def, wikidata Q759832]
106107
class IsSolvable : Prop where
107108
/-- A group `G` is solvable if its derived series is eventually trivial. -/
108109
solvable : ∃ n : ℕ, derivedSeries G n = ⊥

Mathlib/LinearAlgebra/Matrix/Defs.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module
77

88
public import Mathlib.Algebra.Module.Pi
99
public import Mathlib.Logic.Nontrivial.Basic
10+
public import Mathlib.Tactic.CrossRefAttribute
1011

1112
/-!
1213
# Matrices
@@ -50,6 +51,7 @@ universe u u' v w
5051

5152
/-- `Matrix m n R` is the type of matrices with entries in `R`, whose rows are indexed by `m`
5253
and whose columns are indexed by `n`. -/
54+
@[wikidata Q44337]
5355
def Matrix (m : Type u) (n : Type u') (α : Type v) : Type max u u' v :=
5456
m → n → α
5557

Mathlib/MeasureTheory/MeasurableSpace/Defs.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module
77

88
public import Mathlib.Data.Set.Countable
99
public import Mathlib.Order.ConditionallyCompleteLattice.Basic
10+
public import Mathlib.Tactic.CrossRefAttribute
1011
public import Mathlib.Tactic.FunProp.Attr
1112
public import Mathlib.Tactic.Measurability
1213

@@ -489,7 +490,7 @@ end MeasurableSpace
489490

490491
/-- A function `f` between measurable spaces is measurable if the preimage of every
491492
measurable set is measurable. -/
492-
@[fun_prop]
493+
@[fun_prop, wikidata Q516776]
493494
def Measurable [MeasurableSpace α] [MeasurableSpace β] (f : α → β) : Prop :=
494495
∀ ⦃t : Set β⦄, MeasurableSet t → MeasurableSet (f ⁻¹' t)
495496

Mathlib/NumberTheory/DirichletCharacter/Basic.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module
88
public import Mathlib.Algebra.Group.EvenFunction
99
public import Mathlib.Data.ZMod.Units
1010
public import Mathlib.NumberTheory.MulChar.Basic
11+
public import Mathlib.Tactic.CrossRefAttribute
1112

1213
/-!
1314
# Dirichlet Characters
@@ -35,6 +36,7 @@ dirichlet character, multiplicative character
3536
-/
3637

3738
/-- The type of Dirichlet characters of level `n`. -/
39+
@[wikidata Q1063579]
3840
abbrev DirichletCharacter (R : Type*) [CommMonoidWithZero R] (n : ℕ) := MulChar (ZMod n) R
3941

4042
open MulChar

Mathlib/NumberTheory/LSeries/RiemannZeta.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module
77

88
public import Mathlib.NumberTheory.LSeries.HurwitzZeta
99
public import Mathlib.Analysis.PSeriesComplex
10+
public import Mathlib.Tactic.CrossRefAttribute
1011

1112
/-!
1213
# Definition of the Riemann zeta function
@@ -179,6 +180,7 @@ theorem riemannZeta_one_sub {s : ℂ} (hs : ∀ n : ℕ, s ≠ -n) (hs' : s ≠
179180

180181
/-- A formal statement of the **Riemann hypothesis** – constructing a term of this type is worth a
181182
million dollars. -/
183+
@[wikidata Q205966]
182184
def RiemannHypothesis : Prop :=
183185
∀ (s : ℂ) (_ : riemannZeta s = 0) (_ : ¬∃ n : ℕ, s = -2 * (n + 1)) (_ : s ≠ 1), s.re = 1 / 2
184186

Mathlib/NumberTheory/Padics/PadicNumbers.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module
88
public import Mathlib.RingTheory.Valuation.Basic
99
public import Mathlib.NumberTheory.Padics.PadicNorm
1010
public import Mathlib.Analysis.Normed.Field.Lemmas
11+
public import Mathlib.Tactic.CrossRefAttribute
1112
public import Mathlib.Tactic.Peel
1213
public import Mathlib.Topology.MetricSpace.Ultra.Basic
1314

@@ -526,6 +527,7 @@ end PadicSeq
526527

527528
/-- The `p`-adic numbers `ℚ_[p]` are the Cauchy completion of `ℚ` with respect to the `p`-adic norm.
528529
-/
530+
@[wikidata Q311627]
529531
def Padic (p : ℕ) [Fact p.Prime] :=
530532
CauSeq.Completion.Cauchy (padicNorm p)
531533
deriving Zero, One, Add, Neg, Sub, Mul, Div, AddCommGroup, Ring, CommRing, Field, Inhabited

Mathlib/NumberTheory/Real/Irrational.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public import Mathlib.Data.Nat.Prime.Int
1010
public import Mathlib.Data.Rat.Sqrt
1111
public import Mathlib.Analysis.Real.Sqrt
1212
public import Mathlib.RingTheory.Algebraic.Basic
13+
public import Mathlib.Tactic.CrossRefAttribute
1314
public import Mathlib.Tactic.IntervalCases
1415

1516
/-!
@@ -32,6 +33,7 @@ but this only works if you `unseal Nat.sqrt.iter in` before the theorem where yo
3233
open Rat Real
3334

3435
/-- A real number is irrational if it is not equal to any rational number. -/
36+
@[wikidata Q607728]
3537
def Irrational (x : ℝ) :=
3638
x ∉ Set.range ((↑) : ℚ → ℝ)
3739

0 commit comments

Comments
 (0)