ruc-ai4math/mathlib_handler_benchmark_410 huggingface dataset:
-- Mathlib/MeasureTheory/Constructions/Prod/Basic.lean
α✝ : Type u_1
α' : Type u_2
β✝ : Type u_3
β' : Type u_4
γ✝ : Type u_5
E : Type u_6
inst✝⁵ : MeasurableSpace α✝
inst✝⁴ : MeasurableSpace α'
inst✝³ : MeasurableSpace β✝
inst✝² : MeasurableSpace β'
inst✝¹ : MeasurableSpace γ✝
μ μ' : Measure α✝
ν ν' : Measure β✝
τ : Measure γ✝
inst✝ : NormedAddCommGroup E
α : Type u_7
β : Type u_8
γ : Type u_9
δ : Type u_10
mα : MeasurableSpace α
mβ : MeasurableSpace β
mγ : MeasurableSpace γ
mδ : MeasurableSpace δ
f : α → β
g : γ → δ
hg : MeasurableEmbedding g
hf : MeasurableEmbedding f
h_inj : Injective fun x => (g x.1, f x.2)

⊢ MeasurableEmbedding fun x => (g x.1, f x.2)
-- Mathlib/Topology/Sheaves/SheafCondition/OpensLeCover.lean
C : Type u
inst✝ : Category.{v, u} C
X : TopCat
F : Presheaf C X
ι : Type w
U : ι → Opens ↑X
Y : Opens ↑X
hY : Y = iSup U
X✝ Y✝ : FullSubcategory fun f => (Sieve.generate (presieveOfCoveringAux U Y)).arrows f.hom
f✝ : X✝ ⟶ Y✝

⊢ (𝟭 (FullSubcategory fun f => (Sieve.generate (presieveOfCoveringAux U Y)).arrows f.hom)).map f✝ = eqToHom ⋯ ≫ (generateEquivalenceOpensLe_functor' U ?m.36385 ⋙ generateEquivalenceOpensLe_inverse' U ?m.36432).map f✝ ≫ eqToHom ⋯
-- Mathlib/Topology/Sheaves/SheafCondition/OpensLeCover.lean
C : Type u
inst✝ : Category.{v, u} C
X : TopCat
F : Presheaf C X
ι : Type w
U : ι → Opens ↑X
Y : Opens ↑X
hY : Y = iSup U
X✝ Y✝ : FullSubcategory fun f => (Sieve.generate (presieveOfCoveringAux U Y)).arrows f.hom
f✝ : X✝ ⟶ Y✝

⊢ ((𝟭 (FullSubcategory fun f => (Sieve.generate (presieveOfCoveringAux U Y)).arrows f.hom)).map f✝).left = (eqToHom ⋯ ≫ (generateEquivalenceOpensLe_functor' U ?m.36385 ⋙ generateEquivalenceOpensLe_inverse' U ?m.36432).map f✝ ≫ eqToHom ⋯).left
-- Mathlib/Data/Fin/Basic.lean
n m : ℕ
p : Fin (n + 1)
i j x : Fin n
y : Fin (n + 1)
h : y ≤ x.castSucc
h' : optParam (y.succAbove x ≠ 0) ⋯

⊢ (y.succAbove x).pred h' = x
-- Mathlib/LinearAlgebra/Dimension/DivisionRing.lean
K R : Type u
V✝ V₁ V₂ V₃ : Type v
V' V'₁ : Type v'
V'' : Type v''
ι : Type w
ι' : Type w'
η : Type u₁'
φ : η → Type u_1
inst✝² : DivisionRing K
V : Type u
inst✝¹ : AddCommGroup V
inst✝ : Module K V
h : ℵ₀ ≤ Module.rank K V

⊢ Module.rank K V < Module.rank Kᵐᵒᵖ (V →ₗ[K] K)
-- Mathlib/LinearAlgebra/Dimension/DivisionRing.lean
K R : Type u
V✝ V₁ V₂ V₃ : Type v
V' V'₁ : Type v'
V'' : Type v''
ι : Type w
ι' : Type w'
η : Type u₁'
φ : η → Type u_1
inst✝² : DivisionRing K
V : Type u
inst✝¹ : AddCommGroup V
inst✝ : Module K V
h : ℵ₀ ≤ Module.rank K V

⊢ Module.rank K V = lift.{u, u} (Module.rank K V)
-- Mathlib/CategoryTheory/DifferentialObject.lean
S : Type u_1
inst✝⁴ : AddMonoidWithOne S
C : Type u
inst✝³ : Category.{v, u} C
inst✝² : HasZeroMorphisms C
inst✝¹ : HasShift C S
inst✝ : (shiftFunctor C 1).PreservesZeroMorphisms
X Y : DifferentialObject S C
f : X.obj ≅ Y.obj
hf : X.d ≫ (shiftFunctor C 1).map f.hom = f.hom ≫ Y.d

⊢ Y.d ≫ (shiftFunctor C 1).map f.inv = f.inv ≫ X.d
-- Mathlib/CategoryTheory/DifferentialObject.lean
S : Type u_1
inst✝⁴ : AddMonoidWithOne S
C : Type u
inst✝³ : Category.{v, u} C
inst✝² : HasZeroMorphisms C
inst✝¹ : HasShift C S
inst✝ : (shiftFunctor C 1).PreservesZeroMorphisms
X Y : DifferentialObject S C
f : X.obj ≅ Y.obj
hf : X.d ≫ (shiftFunctor C 1).map f.hom = f.hom ≫ Y.d

⊢ autoParam (f.hom ≫ f.inv = 𝟙 X.obj) _auto✝
-- Mathlib/CategoryTheory/DifferentialObject.lean
S : Type u_1
inst✝⁴ : AddMonoidWithOne S
C : Type u
inst✝³ : Category.{v, u} C
inst✝² : HasZeroMorphisms C
inst✝¹ : HasShift C S
inst✝ : (shiftFunctor C 1).PreservesZeroMorphisms
X Y : DifferentialObject S C
f : X.obj ≅ Y.obj
hf : X.d ≫ (shiftFunctor C 1).map f.hom = f.hom ≫ Y.d

⊢ autoParam (f.inv ≫ f.hom = 𝟙 Y.obj) _auto✝
-- Mathlib/MeasureTheory/Integral/Lebesgue.lean
α : Type u_1
β : Type u_2
γ : Type u_3
δ : Type u_4
m : MeasurableSpace α
μ ν : Measure α
inst✝ : MeasurableSingletonClass α
f : α → ℝ≥0∞
s : Set α
hs : s.Countable

⊢ ∫⁻ (a : α) in s, f a ∂μ = ∫⁻ (a : α) in ⋃ x ∈ s, {x}, f a ∂μ
-- Mathlib/MeasureTheory/Integral/Lebesgue.lean
α : Type u_1
β : Type u_2
γ : Type u_3
δ : Type u_4
m : MeasurableSpace α
μ ν : Measure α
inst✝ : MeasurableSingletonClass α
f : α → ℝ≥0∞
s : Set α
hs : s.Countable

⊢ ∑' (a : ↑s), ∫⁻ (x : α) in {↑a}, f x ∂μ = ∑' (a : ↑s), f ↑a * μ {↑a}
-- Mathlib/Combinatorics/SimpleGraph/Regularity/Equitabilise.lean
α : Type u_1
inst✝ : DecidableEq α
s t : Finset α
m n a b : ℕ
P : Finpartition s
hs : a * m + b * (m + 1) = s.card

⊢ ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
-- Mathlib/Combinatorics/SimpleGraph/Regularity/Equitabilise.lean
α : Type u_1
inst✝ : DecidableEq α
s t : Finset α
n a b : ℕ
P : Finpartition s
hs : a * 0 + b * (0 + 1) = s.card

⊢ ∃ Q, (∀ x ∈ Q.parts, x.card = 0 ∨ x.card = 0 + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ 0) ∧ (filter (fun i => i.card = 0 + 1) Q.parts).card = b
-- Mathlib/Combinatorics/SimpleGraph/Regularity/Equitabilise.lean
α : Type u_1
inst✝ : DecidableEq α
s t : Finset α
m n a b : ℕ
P : Finpartition s
hs : a * m + b * (m + 1) = s.card
m_pos : m > 0

⊢ ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
-- Mathlib/Combinatorics/SimpleGraph/Regularity/Equitabilise.lean
α : Type u_1
inst✝ : DecidableEq α
t : Finset α
m n : ℕ
m_pos : m > 0
s : Finset α
ih : ∀ t ⊂ s, ∀ {a b : ℕ} {P : Finpartition t}, a * m + b * (m + 1) = t.card → ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
a b : ℕ
P : Finpartition s
hs : a * m + b * (m + 1) = s.card
hab : ¬(a = 0 ∧ b = 0)

⊢ ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
-- Mathlib/Combinatorics/SimpleGraph/Regularity/Equitabilise.lean
α : Type u_1
inst✝ : DecidableEq α
t : Finset α
m n : ℕ
m_pos : m > 0
s : Finset α
ih : ∀ t ⊂ s, ∀ {a b : ℕ} {P : Finpartition t}, a * m + b * (m + 1) = t.card → ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
a b : ℕ
P : Finpartition s
hs : a * m + b * (m + 1) = s.card
hab : 0 < a ∨ 0 < b

⊢ ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
-- Mathlib/Combinatorics/SimpleGraph/Regularity/Equitabilise.lean
α : Type u_1
inst✝ : DecidableEq α
t : Finset α
m n✝ : ℕ
m_pos : m > 0
s : Finset α
ih : ∀ t ⊂ s, ∀ {a b : ℕ} {P : Finpartition t}, a * m + b * (m + 1) = t.card → ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
a b : ℕ
P : Finpartition s
hs : a * m + b * (m + 1) = s.card
hab : 0 < a ∨ 0 < b
n : ℕ := if 0 < a then m else m + 1
hn : n = if 0 < a then m else m + 1
hn₀ : 0 < n
hn₁ : n ≤ m + 1
hn₂ : n ≤ a * m + b * (m + 1)
hn₃ : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = s.card - n
u : Finset α
hu₁ : u ∈ P.parts
hu₂ : m + 1 ≤ u.card

⊢ ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
-- Mathlib/Combinatorics/SimpleGraph/Regularity/Equitabilise.lean
α : Type u_1
inst✝ : DecidableEq α
t✝ : Finset α
m n✝ : ℕ
m_pos : m > 0
s : Finset α
ih : ∀ t ⊂ s, ∀ {a b : ℕ} {P : Finpartition t}, a * m + b * (m + 1) = t.card → ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
a b : ℕ
P : Finpartition s
hs : a * m + b * (m + 1) = s.card
hab : 0 < a ∨ 0 < b
n : ℕ := if 0 < a then m else m + 1
hn : n = if 0 < a then m else m + 1
hn₀ : 0 < n
hn₁ : n ≤ m + 1
hn₂ : n ≤ a * m + b * (m + 1)
hn₃ : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = s.card - n
u : Finset α
hu₁ : u ∈ P.parts
hu₂ : m + 1 ≤ u.card
t : Finset α
htu : t ⊆ u
htn : t.card = n

⊢ ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
-- Mathlib/Combinatorics/SimpleGraph/Regularity/Equitabilise.lean
α : Type u_1
inst✝ : DecidableEq α
t✝ : Finset α
m n✝ : ℕ
m_pos : m > 0
s : Finset α
ih : ∀ t ⊂ s, ∀ {a b : ℕ} {P : Finpartition t}, a * m + b * (m + 1) = t.card → ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
a b : ℕ
P : Finpartition s
hs : a * m + b * (m + 1) = s.card
hab : 0 < a ∨ 0 < b
n : ℕ := if 0 < a then m else m + 1
hn : n = if 0 < a then m else m + 1
hn₀ : 0 < n
hn₁ : n ≤ m + 1
hn₂ : n ≤ a * m + b * (m + 1)
hn₃ : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = s.card - n
u : Finset α
hu₁ : u ∈ P.parts
hu₂ : m + 1 ≤ u.card
t : Finset α
htu : t ⊆ u
htn : t.card = n
ht : t.Nonempty

⊢ ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
-- Mathlib/Combinatorics/SimpleGraph/Regularity/Equitabilise.lean
α : Type u_1
inst✝ : DecidableEq α
t✝ : Finset α
m n✝ : ℕ
m_pos : m > 0
s : Finset α
ih : ∀ t ⊂ s, ∀ {a b : ℕ} {P : Finpartition t}, a * m + b * (m + 1) = t.card → ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
a b : ℕ
P : Finpartition s
hs : a * m + b * (m + 1) = s.card
hab : 0 < a ∨ 0 < b
n : ℕ := if 0 < a then m else m + 1
hn : n = if 0 < a then m else m + 1
hn₀ : 0 < n
hn₁ : n ≤ m + 1
hn₂ : n ≤ a * m + b * (m + 1)
hn₃ : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = s.card - n
u : Finset α
hu₁ : u ∈ P.parts
hu₂ : m + 1 ≤ u.card
t : Finset α
htu : t ⊆ u
htn : t.card = n
ht : t.Nonempty
hcard : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = (s \ t).card

⊢ ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
-- Mathlib/Combinatorics/SimpleGraph/Regularity/Equitabilise.lean
α : Type u_1
inst✝ : DecidableEq α
t✝ : Finset α
m n✝ : ℕ
m_pos : m > 0
s : Finset α
ih : ∀ t ⊂ s, ∀ {a b : ℕ} {P : Finpartition t}, a * m + b * (m + 1) = t.card → ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
a b : ℕ
P : Finpartition s
hs : a * m + b * (m + 1) = s.card
hab : 0 < a ∨ 0 < b
n : ℕ := if 0 < a then m else m + 1
hn : n = if 0 < a then m else m + 1
hn₀ : 0 < n
hn₁ : n ≤ m + 1
hn₂ : n ≤ a * m + b * (m + 1)
hn₃ : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = s.card - n
u : Finset α
hu₁ : u ∈ P.parts
hu₂ : m + 1 ≤ u.card
t : Finset α
htu : t ⊆ u
htn : t.card = n
ht : t.Nonempty
hcard : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = (s \ t).card
R : Finpartition (s \ t)
hR₁ : ∀ x ∈ R.parts, x.card = m ∨ x.card = m + 1
hR₂ : ∀ x ∈ (P.avoid t).parts, (x \ (filter (fun y => y ⊆ x) R.parts).biUnion id).card ≤ m
hR₃ : (filter (fun i => i.card = m + 1) R.parts).card = if 0 < a then b else b - 1

⊢ ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
-- Mathlib/Combinatorics/SimpleGraph/Regularity/Equitabilise.lean
α : Type u_1
inst✝ : DecidableEq α
t✝ : Finset α
m n✝ : ℕ
m_pos : m > 0
s : Finset α
ih : ∀ t ⊂ s, ∀ {a b : ℕ} {P : Finpartition t}, a * m + b * (m + 1) = t.card → ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
a b : ℕ
P : Finpartition s
hs : a * m + b * (m + 1) = s.card
hab : 0 < a ∨ 0 < b
n : ℕ := if 0 < a then m else m + 1
hn : n = if 0 < a then m else m + 1
hn₀ : 0 < n
hn₁ : n ≤ m + 1
hn₂ : n ≤ a * m + b * (m + 1)
hn₃ : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = s.card - n
u : Finset α
hu₁ : u ∈ P.parts
hu₂ : m + 1 ≤ u.card
t : Finset α
htu : t ⊆ u
htn : t.card = n
ht : t.Nonempty
hcard : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = (s \ t).card
R : Finpartition (s \ t)
hR₁ : ∀ x ∈ R.parts, x.card = m ∨ x.card = m + 1
hR₂ : ∀ x ∈ (P.avoid t).parts, (x \ (filter (fun y => y ⊆ x) R.parts).biUnion id).card ≤ m
hR₃ : (filter (fun i => i.card = m + 1) R.parts).card = if 0 < a then b else b - 1

⊢ ∀ x ∈ (R.extend ⋯ ⋯ ⋯).parts, x.card = m ∨ x.card = m + 1
-- Mathlib/Combinatorics/SimpleGraph/Regularity/Equitabilise.lean
α : Type u_1
inst✝ : DecidableEq α
t✝ : Finset α
m n✝ : ℕ
m_pos : m > 0
s : Finset α
ih : ∀ t ⊂ s, ∀ {a b : ℕ} {P : Finpartition t}, a * m + b * (m + 1) = t.card → ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
a b : ℕ
P : Finpartition s
hs : a * m + b * (m + 1) = s.card
hab : 0 < a ∨ 0 < b
n : ℕ := if 0 < a then m else m + 1
hn : n = if 0 < a then m else m + 1
hn₀ : 0 < n
hn₁ : n ≤ m + 1
hn₂ : n ≤ a * m + b * (m + 1)
hn₃ : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = s.card - n
u : Finset α
hu₁ : u ∈ P.parts
hu₂ : m + 1 ≤ u.card
t : Finset α
htu : t ⊆ u
htn : t.card = n
ht : t.Nonempty
hcard : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = (s \ t).card
R : Finpartition (s \ t)
hR₁ : ∀ x ∈ R.parts, x.card = m ∨ x.card = m + 1
hR₂ : ∀ x ∈ (P.avoid t).parts, (x \ (filter (fun y => y ⊆ x) R.parts).biUnion id).card ≤ m
hR₃ : (filter (fun i => i.card = m + 1) R.parts).card = if 0 < a then b else b - 1

⊢ ∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) (R.extend ⋯ ⋯ ⋯).parts).biUnion id).card ≤ m
-- Mathlib/Combinatorics/SimpleGraph/Regularity/Equitabilise.lean
α : Type u_1
inst✝ : DecidableEq α
t✝ : Finset α
m n✝ : ℕ
m_pos : m > 0
s : Finset α
ih : ∀ t ⊂ s, ∀ {a b : ℕ} {P : Finpartition t}, a * m + b * (m + 1) = t.card → ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
a b : ℕ
P : Finpartition s
hs : a * m + b * (m + 1) = s.card
hab : 0 < a ∨ 0 < b
n : ℕ := if 0 < a then m else m + 1
hn : n = if 0 < a then m else m + 1
hn₀ : 0 < n
hn₁ : n ≤ m + 1
hn₂ : n ≤ a * m + b * (m + 1)
hn₃ : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = s.card - n
u : Finset α
hu₁ : u ∈ P.parts
hu₂ : m + 1 ≤ u.card
t : Finset α
htu : t ⊆ u
htn : t.card = n
ht : t.Nonempty
hcard : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = (s \ t).card
R : Finpartition (s \ t)
hR₁ : ∀ x ∈ R.parts, x.card = m ∨ x.card = m + 1
hR₂ : ∀ x ∈ (P.avoid t).parts, (x \ (filter (fun y => y ⊆ x) R.parts).biUnion id).card ≤ m
hR₃ : (filter (fun i => i.card = m + 1) R.parts).card = if 0 < a then b else b - 1

⊢ (filter (fun i => i.card = m + 1) (R.extend ⋯ ⋯ ⋯).parts).card = b
-- Mathlib/Combinatorics/SimpleGraph/Regularity/Equitabilise.lean
α : Type u_1
inst✝ : DecidableEq α
t✝ : Finset α
m n✝ : ℕ
m_pos : m > 0
s : Finset α
ih : ∀ t ⊂ s, ∀ {a b : ℕ} {P : Finpartition t}, a * m + b * (m + 1) = t.card → ∃ Q, (∀ x ∈ Q.parts, x.card = m ∨ x.card = m + 1) ∧ (∀ x ∈ P.parts, (x \ (filter (fun y => y ⊆ x) Q.parts).biUnion id).card ≤ m) ∧ (filter (fun i => i.card = m + 1) Q.parts).card = b
a b : ℕ
P : Finpartition s
hs : a * m + b * (m + 1) = s.card
hab : 0 < a ∨ 0 < b
n : ℕ := if 0 < a then m else m + 1
hn : n = if 0 < a then m else m + 1
hn₀ : 0 < n
hn₁ : n ≤ m + 1
hn₂ : n ≤ a * m + b * (m + 1)
hn₃ : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = s.card - n
u : Finset α
hu₁ : u ∈ P.parts
hu₂ : m + 1 ≤ u.card
t : Finset α
htu : t ⊆ u
htn : t.card = n
ht : t.Nonempty
hcard : (if 0 < a then a - 1 else a) * m + (if 0 < a then b else b - 1) * (m + 1) = (s \ t).card
R : Finpartition (s \ t)
hR₁ : ∀ x ∈ R.parts, x.card = m ∨ x.card = m + 1
hR₂ : ∀ x ∈ (P.avoid t).parts, (x \ (filter (fun y => y ⊆ x) R.parts).biUnion id).card ≤ m
hR₃ : (filter (fun i => i.card = m + 1) R.parts).card = if 0 < a then b else b - 1

⊢ (if ¬0 < a then insert t (filter (fun i => i.card = m + 1) R.parts) else filter (fun i => i.card = m + 1) R.parts).card = b
-- Mathlib/Algebra/BigOperators/Group/Multiset.lean
F : Type u_1
ι : Type u_2
α : Type u_3
β : Type u_4
γ : Type u_5
inst✝² : CommMonoid α
inst✝¹ : CommMonoid β
s t : Multiset α
a : α
m : Multiset ι
f g : ι → α
inst✝ : DecidableEq ι
i : ι
hf : ∀ (i' : ι), i' ≠ i → i' ∈ m → f i' = 1

⊢ (map f m).prod = f i ^ count i m
-- Mathlib/Algebra/BigOperators/Group/Multiset.lean
F : Type u_1
ι : Type u_2
α : Type u_3
β : Type u_4
γ : Type u_5
inst✝² : CommMonoid α
inst✝¹ : CommMonoid β
s t : Multiset α
a : α
m : Multiset ι
f g : ι → α
inst✝ : DecidableEq ι
i : ι
l : List ι
hf : ∀ (i' : ι), i' ≠ i → i' ∈ ⟦l⟧ → f i' = 1

⊢ (map f ⟦l⟧).prod = f i ^ count i ⟦l⟧
-- Mathlib/Data/Seq/WSeq.lean
α : Type u
β : Type v
γ : Type w
R✝ : α → β → Prop
s : WSeq α
t : WSeq β
R : WSeq α → WSeq β → Prop
h1 : R s t
h2 : ∀ {s : WSeq α} {t : WSeq β}, R s t → Computation.LiftRel (LiftRelO R✝ R) s.destruct t.destruct

⊢ Computation.LiftRel (LiftRelO R✝ (LiftRel R✝)) s.destruct t.destruct
-- Mathlib/Data/Seq/WSeq.lean
α : Type u
β : Type v
γ : Type w
R✝ : α → β → Prop
s : WSeq α
t : WSeq β
R : WSeq α → WSeq β → Prop
h1 : R s t
h2 : ∀ {s : WSeq α} {t : WSeq β}, R s t → Computation.LiftRel (LiftRelO R✝ R) s.destruct t.destruct

⊢ ∀ {a : Option (α × WSeq α)} {b : Option (β × WSeq β)}, LiftRelO R✝ R a b → LiftRelO R✝ (LiftRel R✝) a b
-- Mathlib/Data/Seq/WSeq.lean
α : Type u
β : Type v
γ : Type w
R✝ : α → β → Prop
s : WSeq α
t : WSeq β
R : WSeq α → WSeq β → Prop
h1 : R s t
h2 : ∀ {s : WSeq α} {t : WSeq β}, R s t → Computation.LiftRel (LiftRelO R✝ R) s.destruct t.destruct

⊢ ∀ (s : WSeq α) (t : WSeq β), R s t → LiftRel R✝ s t
-- .lake/packages/batteries/Batteries/Data/Rat/Lemmas.lean
d : Nat
n : Int
a : Nat
d0 : d ≠ 0
a0 : a ≠ 0

⊢ normalize (n * ↑a) (d * a) ⋯ = normalize n d d0
-- .lake/packages/batteries/Batteries/Data/Rat/Lemmas.lean
d : Nat
n : Int
a : Nat
d0 : d ≠ 0
a0 : a ≠ 0

⊢ normalize (n * ↑a) (d * a) ⋯ = normalize (↑a * n) (a * d) ⋯
-- Mathlib/Algebra/Homology/TotalComplex.lean
C : Type u_1
inst✝⁴ : Category.{u_5, u_1} C
inst✝³ : Preadditive C
I₁ : Type u_2
I₂ : Type u_3
I₁₂ : Type u_4
c₁ : ComplexShape I₁
c₂ : ComplexShape I₂
K L M : HomologicalComplex₂ C c₁ c₂
φ : K ⟶ L
e : K ≅ L
ψ : L ⟶ M
c₁₂ : ComplexShape I₁₂
inst✝² : DecidableEq I₁₂
inst✝¹ : TotalComplexShape c₁ c₂ c₁₂
inst✝ : K.HasTotal c₁₂
i₁ i₁' : I₁
h : c₁.Rel i₁ i₁'
i₂ : I₂
i₁₂ : I₁₂
h' : c₁.π c₂ c₁₂ (i₁', i₂) ≠ i₁₂

⊢ K.d₁ c₁₂ i₁ i₂ i₁₂ = 0
-- Mathlib/Algebra/Homology/TotalComplex.lean
C : Type u_1
inst✝⁴ : Category.{u_5, u_1} C
inst✝³ : Preadditive C
I₁ : Type u_2
I₂ : Type u_3
I₁₂ : Type u_4
c₁ : ComplexShape I₁
c₂ : ComplexShape I₂
K L M : HomologicalComplex₂ C c₁ c₂
φ : K ⟶ L
e : K ≅ L
ψ : L ⟶ M
c₁₂ : ComplexShape I₁₂
inst✝² : DecidableEq I₁₂
inst✝¹ : TotalComplexShape c₁ c₂ c₁₂
inst✝ : K.HasTotal c₁₂
i₁ i₁' : I₁
h : c₁.Rel i₁ i₁'
i₂ : I₂
i₁₂ : I₁₂
h' : c₁.π c₂ c₁₂ (i₁', i₂) ≠ i₁₂

⊢ c₁.π c₂ c₁₂ (i₁', i₂) ≠ i₁₂
-- Mathlib/ModelTheory/Substructures.lean
L : Language
M : Type w
N : Type u_1
P : Type u_2
inst✝² : L.Structure M
inst✝¹ : L.Structure N
inst✝ : L.Structure P
S : L.Substructure M
s : Set M

⊢ lift.{max u w, w} #↥((closure L).toFun s) ≤ #(L.Term ↑s)
-- Mathlib/ModelTheory/Substructures.lean
L : Language
M : Type w
N : Type u_1
P : Type u_2
inst✝² : L.Structure M
inst✝¹ : L.Structure N
inst✝ : L.Structure P
S : L.Substructure M
s : Set M

⊢ lift.{max u w, w} #↑(range (Term.realize Subtype.val)) ≤ #(L.Term ↑s)
-- Mathlib/ModelTheory/Substructures.lean
L : Language
M : Type w
N : Type u_1
P : Type u_2
inst✝² : L.Structure M
inst✝¹ : L.Structure N
inst✝ : L.Structure P
S : L.Substructure M
s : Set M

⊢ lift.{max u w, w} #↑(range (Term.realize Subtype.val)) ≤ lift.{w, max u w} #(L.Term ↑s)
-- Mathlib/CategoryTheory/Triangulated/HomologicalFunctor.lean
C : Type u_1
D : Type u_2
A : Type u_3
inst✝¹⁶ : Category.{u_5, u_1} C
inst✝¹⁵ : HasZeroObject C
inst✝¹⁴ : HasShift C ℤ
inst✝¹³ : Preadditive C
inst✝¹² : ∀ (n : ℤ), (shiftFunctor C n).Additive
inst✝¹¹ : Pretriangulated C
inst✝¹⁰ : Category.{?u.82138, u_2} D
inst✝⁹ : HasZeroObject D
inst✝⁸ : HasShift D ℤ
inst✝⁷ : Preadditive D
inst✝⁶ : ∀ (n : ℤ), (shiftFunctor D n).Additive
inst✝⁵ : Pretriangulated D
inst✝⁴ : Category.{u_4, u_3} A
inst✝³ : Abelian A
F : C ⥤ A
inst✝² inst✝¹ : F.IsHomological
inst✝ : F.ShiftSequence ℤ
T T' : Triangle C
hT : T ∈ distinguishedTriangles
hT' : T' ∈ distinguishedTriangles
φ : T ⟶ T'
n₀ n₁ : ℤ
h : n₀ + 1 = n₁

⊢ (ShortComplex.mk ((F.shift n₀).map T.mor₂) (F.homologySequenceδ T n₀ n₁ h) ⋯).Exact
-- Mathlib/CategoryTheory/Triangulated/HomologicalFunctor.lean
C : Type u_1
D : Type u_2
A : Type u_3
inst✝¹⁶ : Category.{u_5, u_1} C
inst✝¹⁵ : HasZeroObject C
inst✝¹⁴ : HasShift C ℤ
inst✝¹³ : Preadditive C
inst✝¹² : ∀ (n : ℤ), (shiftFunctor C n).Additive
inst✝¹¹ : Pretriangulated C
inst✝¹⁰ : Category.{?u.82138, u_2} D
inst✝⁹ : HasZeroObject D
inst✝⁸ : HasShift D ℤ
inst✝⁷ : Preadditive D
inst✝⁶ : ∀ (n : ℤ), (shiftFunctor D n).Additive
inst✝⁵ : Pretriangulated D
inst✝⁴ : Category.{u_4, u_3} A
inst✝³ : Abelian A
F : C ⥤ A
inst✝² inst✝¹ : F.IsHomological
inst✝ : F.ShiftSequence ℤ
T T' : Triangle C
hT : T ∈ distinguishedTriangles
hT' : T' ∈ distinguishedTriangles
φ : T ⟶ T'
n₀ n₁ : ℤ
h : n₀ + 1 = n₁

⊢ ShortComplex.mk ((F.shift n₀).map T.rotate.mor₁) ((F.shift n₀).map T.rotate.mor₂) ⋯ ≅ ShortComplex.mk ((F.shift n₀).map T.mor₂) (F.homologySequenceδ T n₀ n₁ h) ⋯
-- Mathlib/SetTheory/Cardinal/Basic.lean
α β : Type u
ι : Type v
f : ι → Cardinal.{w}
t : Cardinal.{max u w}
hf : BddAbove (range f)
w : ∀ (i : ι), lift.{u, w} (f i) ≤ t

⊢ lift.{u, w} (iSup f) ≤ t
-- Mathlib/SetTheory/Cardinal/Basic.lean
α β : Type u
ι : Type v
f : ι → Cardinal.{w}
t : Cardinal.{max u w}
hf : BddAbove (range f)
w : ∀ (i : ι), lift.{u, w} (f i) ≤ t

⊢ ⨆ i, lift.{u, w} (f i) ≤ t
-- Mathlib/Probability/Martingale/Basic.lean
Ω : Type u_1
E : Type u_2
ι : Type u_3
inst✝⁵ : Preorder ι
m0 : MeasurableSpace Ω
μ : Measure Ω
inst✝⁴ : NormedAddCommGroup E
inst✝³ : NormedSpace ℝ E
inst✝² : CompleteSpace E
f g : ι → Ω → E
ℱ : Filtration ι m0
inst✝¹ : Preorder E
inst✝ : CovariantClass E E (fun x x_1 => x + x_1) fun x x_1 => x ≤ x_1
hf : Supermartingale f ℱ μ

⊢ Submartingale (-f) ℱ μ
-- Mathlib/Probability/Martingale/Basic.lean
Ω : Type u_1
E : Type u_2
ι : Type u_3
inst✝⁵ : Preorder ι
m0 : MeasurableSpace Ω
μ : Measure Ω
inst✝⁴ : NormedAddCommGroup E
inst✝³ : NormedSpace ℝ E
inst✝² : CompleteSpace E
f g : ι → Ω → E
ℱ : Filtration ι m0
inst✝¹ : Preorder E
inst✝ : CovariantClass E E (fun x x_1 => x + x_1) fun x x_1 => x ≤ x_1
hf : Supermartingale f ℱ μ
i j : ι
hij : i ≤ j

⊢ (-f) i ≤ᶠ[ae μ] μ[(-f) j|↑ℱ i]
-- Mathlib/Probability/Martingale/Basic.lean
Ω : Type u_1
E : Type u_2
ι : Type u_3
inst✝⁵ : Preorder ι
m0 : MeasurableSpace Ω
μ : Measure Ω
inst✝⁴ : NormedAddCommGroup E
inst✝³ : NormedSpace ℝ E
inst✝² : CompleteSpace E
f g : ι → Ω → E
ℱ : Filtration ι m0
inst✝¹ : Preorder E
inst✝ : CovariantClass E E (fun x x_1 => x + x_1) fun x x_1 => x ≤ x_1
hf : Supermartingale f ℱ μ
i j : ι
hij : i ≤ j

⊢ (-f) i ≤ᶠ[ae μ] -μ[f j|↑ℱ i]