chars
int64
40
24k
content_type
stringclasses
9 values
id
stringlengths
13
64
source
stringclasses
5 values
subset
stringclasses
31 values
text
stringlengths
40
24k
104
leanexplore_declaration
leanexplore:385752
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_annihilation : annihilationNumber Star5 = 5 := by decide +native
79
leanexplore_declaration
leanexplore:385753
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_residue : residue Star5 = 5 := by sorry
74
leanexplore_declaration
leanexplore:385754
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_matching : m Star5 = 1 := by sorry
87
leanexplore_declaration
leanexplore:385755
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_avg_deg : averageDegree Star5 = 5/3 := by sorry
90
leanexplore_declaration
leanexplore:385756
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_max_deg : Star5.maxDegree = 5 := by decide +native
90
leanexplore_declaration
leanexplore:385757
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_min_deg : Star5.minDegree = 1 := by decide +native
83
leanexplore_declaration
leanexplore:385758
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_wiener : wienerIndex Star5 = 25 := by sorry
83
leanexplore_declaration
leanexplore:385759
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_szeged : szegedIndex Star5 = 25 := by sorry
93
leanexplore_declaration
leanexplore:385760
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_size : Star5.edgeFinset.card = 5 := by decide +native
90
leanexplore_declaration
leanexplore:385761
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_order : n Star5 = 6 := by simp [n, Fintype.card_sum]
76
leanexplore_declaration
leanexplore:385762
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_girth : Star5.egirth = ⊤ := by sorry
86
leanexplore_declaration
leanexplore:385763
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_radius : minEccentricity Star5 = 1 := by sorry
88
leanexplore_declaration
leanexplore:385764
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_diameter : maxEccentricity Star5 = 2 := by sorry
90
leanexplore_declaration
leanexplore:385765
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_avg_dist : averageDistance Star5 = 5/3 := by sorry
84
leanexplore_declaration
leanexplore:385766
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_dom : dominationNumber Star5 = 1 := by sorry
72
leanexplore_declaration
leanexplore:385767
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem Star5_indep : α(Star5) = 5 := by sorry
77
leanexplore_declaration
leanexplore:385768
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_cvetkovic : cvetkovic C6 = 3 := by sorry
98
leanexplore_declaration
leanexplore:385769
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_annihilation : annihilationNumber C6 = 3 := by decide +native
98
leanexplore_declaration
leanexplore:385770
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_residue : residue C6 = 0 := by unfold residue; decide +native
68
leanexplore_declaration
leanexplore:385771
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_matching : m C6 = 3 := by sorry
135
leanexplore_declaration
leanexplore:385772
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_avg_deg : averageDegree C6 = 2 := by unfold averageDegree; simp [Fintype.card_fin]; decide +native
84
leanexplore_declaration
leanexplore:385773
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_max_deg : C6.maxDegree = 2 := by decide +native
84
leanexplore_declaration
leanexplore:385774
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_min_deg : C6.minDegree = 2 := by decide +native
77
leanexplore_declaration
leanexplore:385775
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_wiener : wienerIndex C6 = 27 := by sorry
77
leanexplore_declaration
leanexplore:385776
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_szeged : szegedIndex C6 = 54 := by sorry
87
leanexplore_declaration
leanexplore:385777
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_size : C6.edgeFinset.card = 6 := by decide +native
66
leanexplore_declaration
leanexplore:385778
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_order : n C6 = 6 := by simp [n]
69
leanexplore_declaration
leanexplore:385779
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_girth : C6.girth = 6 := by sorry
80
leanexplore_declaration
leanexplore:385780
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_radius : minEccentricity C6 = 3 := by sorry
82
leanexplore_declaration
leanexplore:385781
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_diameter : maxEccentricity C6 = 3 := by sorry
84
leanexplore_declaration
leanexplore:385782
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_avg_dist : averageDistance C6 = 9/5 := by sorry
78
leanexplore_declaration
leanexplore:385783
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_dom : dominationNumber C6 = 2 := by sorry
66
leanexplore_declaration
leanexplore:385784
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem C6_indep : α(C6) = 3 := by sorry
94
leanexplore_declaration
leanexplore:385785
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_cvetkovic : cvetkovic PetersenGraph = 4 := by sorry
115
leanexplore_declaration
leanexplore:385786
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_annihilation : annihilationNumber PetersenGraph = 5 := by decide +native
115
leanexplore_declaration
leanexplore:385787
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_residue : residue PetersenGraph = 0 := by unfold residue; decide +native
85
leanexplore_declaration
leanexplore:385788
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_matching : m PetersenGraph = 5 := by sorry
152
leanexplore_declaration
leanexplore:385789
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_avg_deg : averageDegree PetersenGraph = 3 := by unfold averageDegree; simp [Fintype.card_fin]; decide +native
101
leanexplore_declaration
leanexplore:385790
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_max_deg : PetersenGraph.maxDegree = 3 := by decide +native
101
leanexplore_declaration
leanexplore:385791
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_min_deg : PetersenGraph.minDegree = 3 := by decide +native
94
leanexplore_declaration
leanexplore:385792
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_wiener : wienerIndex PetersenGraph = 75 := by sorry
95
leanexplore_declaration
leanexplore:385793
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_szeged : szegedIndex PetersenGraph = 135 := by sorry
105
leanexplore_declaration
leanexplore:385794
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_size : PetersenGraph.edgeFinset.card = 15 := by decide +native
84
leanexplore_declaration
leanexplore:385795
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_order : n PetersenGraph = 10 := by simp [n]
86
leanexplore_declaration
leanexplore:385796
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_girth : PetersenGraph.girth = 5 := by sorry
97
leanexplore_declaration
leanexplore:385797
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_radius : minEccentricity PetersenGraph = 2 := by sorry
99
leanexplore_declaration
leanexplore:385798
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_diameter : maxEccentricity PetersenGraph = 2 := by sorry
101
leanexplore_declaration
leanexplore:385799
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_avg_dist : averageDistance PetersenGraph = 5/3 := by sorry
95
leanexplore_declaration
leanexplore:385800
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_dom : dominationNumber PetersenGraph = 3 := by sorry
83
leanexplore_declaration
leanexplore:385801
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem petersen_indep : α(PetersenGraph) = 4 := by sorry
77
leanexplore_declaration
leanexplore:385802
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_cvetkovic : cvetkovic K4 = 1 := by sorry
98
leanexplore_declaration
leanexplore:385803
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_annihilation : annihilationNumber K4 = 2 := by decide +native
98
leanexplore_declaration
leanexplore:385804
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_residue : residue K4 = 0 := by unfold residue; decide +native
68
leanexplore_declaration
leanexplore:385805
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_matching : m K4 = 2 := by sorry
119
leanexplore_declaration
leanexplore:385806
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_avg_deg : averageDegree K4 = 3 := by unfold averageDegree; simp [Fintype.card_fin]
84
leanexplore_declaration
leanexplore:385807
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_max_deg : K4.maxDegree = 3 := by decide +native
84
leanexplore_declaration
leanexplore:385808
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_min_deg : K4.minDegree = 3 := by decide +native
76
leanexplore_declaration
leanexplore:385809
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_wiener : wienerIndex K4 = 6 := by sorry
76
leanexplore_declaration
leanexplore:385810
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_szeged : szegedIndex K4 = 6 := by sorry
87
leanexplore_declaration
leanexplore:385811
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_size : K4.edgeFinset.card = 6 := by decide +native
66
leanexplore_declaration
leanexplore:385812
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_order : n K4 = 4 := by simp [n]
69
leanexplore_declaration
leanexplore:385813
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_girth : K4.girth = 3 := by sorry
80
leanexplore_declaration
leanexplore:385814
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_radius : minEccentricity K4 = 1 := by sorry
82
leanexplore_declaration
leanexplore:385815
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_diameter : maxEccentricity K4 = 1 := by sorry
82
leanexplore_declaration
leanexplore:385816
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_avg_dist : averageDistance K4 = 1 := by sorry
78
leanexplore_declaration
leanexplore:385817
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_dom : dominationNumber K4 = 1 := by sorry
66
leanexplore_declaration
leanexplore:385818
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem K4_indep : α(K4) = 1 := by sorry
88
leanexplore_declaration
leanexplore:385819
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_cvetkovic : cvetkovic HouseGraph = 3 := by sorry
109
leanexplore_declaration
leanexplore:385820
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_annihilation : annihilationNumber HouseGraph = 3 := by decide +native
109
leanexplore_declaration
leanexplore:385821
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_residue : residue HouseGraph = 0 := by unfold residue; decide +native
79
leanexplore_declaration
leanexplore:385822
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_matching : m HouseGraph = 2 := by sorry
149
leanexplore_declaration
leanexplore:385823
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_avg_deg : averageDegree HouseGraph = 12/5 := by unfold averageDegree; simp [Fintype.card_fin]; decide +native
95
leanexplore_declaration
leanexplore:385824
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_max_deg : HouseGraph.maxDegree = 3 := by decide +native
95
leanexplore_declaration
leanexplore:385825
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_min_deg : HouseGraph.minDegree = 2 := by decide +native
88
leanexplore_declaration
leanexplore:385826
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_wiener : wienerIndex HouseGraph = 14 := by sorry
88
leanexplore_declaration
leanexplore:385827
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_szeged : szegedIndex HouseGraph = 24 := by sorry
98
leanexplore_declaration
leanexplore:385828
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_size : HouseGraph.edgeFinset.card = 6 := by decide +native
77
leanexplore_declaration
leanexplore:385829
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_order : n HouseGraph = 5 := by simp [n]
80
leanexplore_declaration
leanexplore:385830
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_girth : HouseGraph.girth = 3 := by sorry
91
leanexplore_declaration
leanexplore:385831
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_radius : minEccentricity HouseGraph = 2 := by sorry
93
leanexplore_declaration
leanexplore:385832
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_diameter : maxEccentricity HouseGraph = 2 := by sorry
95
leanexplore_declaration
leanexplore:385833
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_avg_dist : averageDistance HouseGraph = 7/5 := by sorry
89
leanexplore_declaration
leanexplore:385834
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_dom : dominationNumber HouseGraph = 2 := by sorry
77
leanexplore_declaration
leanexplore:385835
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem house_indep : α(HouseGraph) = 2 := by sorry
91
leanexplore_declaration
leanexplore:385836
leanexplore_sqlite
leanexplore_declarations
instance : DecidableRel Star5.Adj := by unfold Star5 completeBipartiteGraph; infer_instance
137
leanexplore_declaration
leanexplore:385837
leanexplore_sqlite
leanexplore_declarations
/-- Star5: Star graph with center 0 and 5 leaves. -/ abbrev Star5 : SimpleGraph (Fin 1 ⊕ Fin 5) := completeBipartiteGraph (Fin 1) (Fin 5)
85
leanexplore_declaration
leanexplore:385838
leanexplore_sqlite
leanexplore_declarations
/-- C6: Cycle graph on 6 vertices. -/ abbrev C6 : SimpleGraph (Fin 6) := cycleGraph 6
313
leanexplore_declaration
leanexplore:385839
leanexplore_sqlite
leanexplore_declarations
/-- Petersen Graph on 10 vertices. -/ abbrev PetersenGraph : SimpleGraph (Fin 10) := SimpleGraph.fromEdgeSet { -- Outer Cycle s(0, 1), s(1, 2), s(2, 3), s(3, 4), s(4, 0), -- Spokes s(0, 5), s(1, 6), s(2, 7), s(3, 8), s(4, 9), -- Inner Star s(5, 7), s(7, 9), s(9, 6), s(6, 8), s(8, 5) }
97
leanexplore_declaration
leanexplore:385840
leanexplore_sqlite
leanexplore_declarations
/-- K4: Complete graph on 4 vertices. -/ abbrev K4 : SimpleGraph (Fin 4) := completeGraph (Fin 4)
202
leanexplore_declaration
leanexplore:385841
leanexplore_sqlite
leanexplore_declarations
/-- House Graph: Square 0-1-2-3-0 with roof 4 connected to 2,3. -/ abbrev HouseGraph : SimpleGraph (Fin 5) := SimpleGraph.fromEdgeSet { s(0, 1), s(1, 2), s(2, 3), s(3, 0), s(2, 4), s(3, 4) }
233
leanexplore_declaration
leanexplore:385842
leanexplore_sqlite
leanexplore_declarations
/-- The least common multiple of ${n+1, \dotsc, n+k}$. -/ def lcmInterval {α : Type*} [AddMonoid α] [CommMonoidWithZero α] [NormalizedGCDMonoid α] [Preorder α] [LocallyFiniteOrder α] (n k : α) : α := (Finset.Ioc n (n + k)).lcm id
99
leanexplore_declaration
leanexplore:385843
leanexplore_sqlite
leanexplore_declarations
@[to_additive (attr := simp)] lemma mul_mem_smul_set [IsLeftCancelMul M] : a * b ∈ a • s ↔ b ∈ s :=
139
leanexplore_declaration
leanexplore:385844
leanexplore_sqlite
leanexplore_declarations
@[to_additive (attr := simp)] lemma mul_mem_smul_set [IsLeftCancelMul M] : a * b ∈ a • s ↔ b ∈ s := (mul_right_injective _).mem_set_image
44
leanexplore_declaration
leanexplore:385845
leanexplore_sqlite
leanexplore_declarations
scoped notation "𝟙_" A:max => indicatorOne A
148
leanexplore_declaration
leanexplore:385846
leanexplore_sqlite
leanexplore_declarations
/-- A polymorphic indicator function `𝟙_A` which is `1` on `A` and `0` outside. -/ noncomputable def indicatorOne : α → R := indicator A (fun _ ↦ 1)
207
leanexplore_declaration
leanexplore:385847
leanexplore_sqlite
leanexplore_declarations
theorem Nat.image_mul_two_Iio (n : ℕ) : (2 * ·) '' Set.Iio ((n + 1) / 2) = { n | Even n } ∩ Set.Iio n := by aesop (add simp [even_iff_two_dvd, dvd_iff_exists_eq_mul_right, mul_comm, lt_div_iff_mul_lt])
190
leanexplore_declaration
leanexplore:385848
leanexplore_sqlite
leanexplore_declarations
theorem Nat.image_mul_two_Iio_even {n : ℕ} (h : Even n) : (2 * ·) '' Set.Iio (n / 2) = { n | Even n } ∩ Set.Iio n := by aesop (add simp [even_iff_two_dvd, dvd_iff_exists_eq_mul_right])
221
leanexplore_declaration
leanexplore:385849
leanexplore_sqlite
leanexplore_declarations
/-- #TODO: Generalize the following lemma to `CommSemiring`. -/ @[simp] lemma aeval_polynomial_pi (p : R[X][X]) (f : S → S) (x : S) : p.aeval f x = aevalAeval x (f x) p := by simp [instAlgebraPi, aeval, eval₂, sum]
112
leanexplore_declaration
leanexplore:385850
leanexplore_sqlite
leanexplore_declarations
instance instAlgebraPi : Algebra R[X] (S → S) := (Pi.ringHom fun x ↦ (Polynomial.aeval x).toRingHom).toAlgebra
357
leanexplore_declaration
leanexplore:385851
leanexplore_sqlite
leanexplore_declarations
/-- **Schinzel condition** A condition on sets of polynomials in the Schinzel and Bunyakovsky conjectures. Holds if for every prime $p$ there exists a natural $n$ such that for every polynomial $f$ in the set, $p$ does not divide $f(n)$. -/ def SchinzelCondition (fs : Finset ℤ[X]) : Prop := ∀ p : ℕ, p.Prime → ∃ n : ℕ...