Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Counterexamples/AharoniKorman.lean
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,6 @@ theorem apply_eq_of_line_eq (f : SpinalMap C) {n : ℕ} (hC : IsChain (· ≤ ·
have hy : y ∈ level n := ordConnected_level.out hlo.2 hhi.2 ⟨h₂l, h₂h⟩
induction hx using induction_on_level with | h x₁ y₁ =>
induction hy using induction_on_level with | h x₂ y₂ =>
simp only [] at hxy
simp only [line_toHollom] at h
obtain ⟨k, rfl⟩ := exists_add_of_le hxy
obtain rfl : y₂ = y₁ + k := by lia
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ theorem circleAverage_log_norm_sub_const₁ (h : ‖a‖ = 1) :
_ = ∫ x in 0..(2 * π), log (4 * sin (x / 2) ^ 2) / 2 := by
apply integral_congr
intro x hx
simp only []
beta_reduce
rw [Complex.norm_def, log_sqrt (circleMap 0 1 x - 1).normSq_nonneg]
congr
calc Complex.normSq (circleMap 0 1 x - 1)
Expand Down
8 changes: 4 additions & 4 deletions Mathlib/CategoryTheory/Limits/Fubini.lean
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ theorem colimitFlipCompColimIsoColimitCompColim_ι_ι_hom (j) (k) :
(colimitFlipCompColimIsoColimitCompColim F).hom =
(colimit.ι _ k ≫ colimit.ι (F ⋙ colim) j : _ ⟶ colimit (F ⋙ colim)) := by
dsimp [colimitFlipCompColimIsoColimitCompColim]
slice_lhs 1 3 => simp only []
slice_lhs 1 3 => beta_reduce
simp [Equivalence.unit]

set_option backward.isDefEq.respectTransparency false in
Expand All @@ -581,7 +581,7 @@ theorem colimitFlipCompColimIsoColimitCompColim_ι_ι_inv (k) (j) :
(colimitFlipCompColimIsoColimitCompColim F).inv =
(colimit.ι _ j ≫ colimit.ι (F.flip ⋙ colim) k : _ ⟶ colimit (F.flip ⋙ colim)) := by
dsimp [colimitFlipCompColimIsoColimitCompColim]
slice_lhs 1 3 => simp only []
slice_lhs 1 3 => beta_reduce
simp [Equivalence.counitInv]

end
Expand Down Expand Up @@ -712,7 +712,7 @@ theorem colimitCurrySwapCompColimIsoColimitCurryCompColim_ι_ι_hom {j} {k} :
(colimit.ι _ k ≫ colimit.ι (curry.obj G ⋙ colim) j :
_ ⟶ colimit (curry.obj G ⋙ colim)) := by
dsimp [colimitCurrySwapCompColimIsoColimitCurryCompColim]
slice_lhs 1 3 => simp only []
slice_lhs 1 3 => beta_reduce
simp

set_option backward.isDefEq.respectTransparency false in
Expand All @@ -724,7 +724,7 @@ theorem colimitCurrySwapCompColimIsoColimitCurryCompColim_ι_ι_inv {j} {k} :
colimit.ι (curry.obj _ ⋙ colim) k :
_ ⟶ colimit (curry.obj (Prod.swap K J ⋙ G) ⋙ colim)) := by
dsimp [colimitCurrySwapCompColimIsoColimitCurryCompColim]
slice_lhs 1 3 => simp only []
slice_lhs 1 3 => beta_reduce
rw [colimitIsoColimitCurryCompColim_ι_ι_inv, HasColimit.isoOfEquivalence_inv_π]
dsimp [Equivalence.counitInv]
rw [CategoryTheory.Bifunctor.map_id]
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Computability/PartrecCode.lean
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ private theorem hG : Primrec G := by
conv =>
congr
· ext p
dsimp only []
beta_reduce
erw [Option.bind_eq_bind, ← Option.map_eq_bind]
refine Primrec.option_map ((hlup.comp <| L.pair <| (k.pair cg).pair n).comp Primrec.fst) ?_
unfold Primrec₂
Expand Down
2 changes: 1 addition & 1 deletion Mathlib/Computability/RE.lean
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ theorem ite {f₁ f₂ : ℕ → ℕ} (hf₁ : Computable f₁) (hf₂ : Computa
theorem to_re {p : α → Prop} (hp : ComputablePred p) : REPred p := by
obtain ⟨f, hf, rfl⟩ := computable_iff.1 hp
unfold REPred
dsimp only []
beta_reduce
refine
(Partrec.cond hf (Decidable.Partrec.const' (Part.some ())) Partrec.none).of_eq fun n =>
Part.ext fun a => ?_
Expand Down
6 changes: 3 additions & 3 deletions Mathlib/Computability/TuringMachine/Config.lean
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ theorem stepNormal.is_ret (c k v) : ∃ k' v', stepNormal c k v = Cfg.ret k' v'
| comp f _g _IHf IHg => apply IHg
| case f g IHf IHg =>
rw [stepNormal]
simp only []
beta_reduce
cases v.headI <;> [apply IHf; apply IHg]
| fix f IHf => apply IHf
| _ => exact ⟨_, _, rfl⟩
Expand All @@ -612,7 +612,7 @@ theorem cont_eval_fix {f k v} (fok : Code.Ok f) :
exact Or.inl (Part.mem_some _)
· exact Or.inr ⟨_, Part.mem_some _, hv₂⟩
refine fun c he => evalInduction he fun y h IH => ?_
rintro v (⟨v'⟩ | ⟨k', v'⟩) rfl hr <;> rw [Cfg.then] at h IH <;> simp only [] at h IH
rintro v (⟨v'⟩ | ⟨k', v'⟩) rfl hr <;> rw [Cfg.then] at h IH
· have := mem_eval.2 ⟨hr, rfl⟩
rw [fok, Part.bind_eq_bind, Part.mem_bind_iff] at this
obtain ⟨v'', h₁, h₂⟩ := this
Expand All @@ -621,6 +621,7 @@ theorem cont_eval_fix {f k v} (fok : Code.Ok f) :
· exact ReflTransGen.single rfl
cases Part.mem_unique h₂ (mem_eval.2 ⟨ReflTransGen.refl, rfl⟩)
refine ⟨v', h₁, ?_⟩
beta_reduce at h IH
rw [stepRet] at h
revert h
by_cases he : v'.headI = 0 <;> simp only [if_pos, if_false, he] <;> intro h
Expand All @@ -631,7 +632,6 @@ theorem cont_eval_fix {f k v} (fok : Code.Ok f) :
· obtain ⟨k₀, v₀, e₀⟩ := stepNormal.is_ret f Cont.halt v'.tail
have e₁ := stepNormal_then f Cont.halt (Cont.fix f k) v'.tail
rw [e₀, Cont.then, Cfg.then] at e₁
simp only [] at e₁
obtain ⟨v₁, hv₁, v₂, hv₂, h₃⟩ :=
IH (stepRet (k₀.then (Cont.fix f k)) v₀) (by rw [stepRet, if_neg he, e₁]; rfl)
v'.tail _ stepRet_then (by apply ReflTransGen.single; rw [e₀]; rfl)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,6 @@ theorem trCfg_init (k) (L : List (Γ k)) : TrCfg (TM2.init k L)
have : ((proj k').f ∘ fun a => update (β := fun k => Option (Γ k)) default k (some a))
= fun a => (proj k').f (update (β := fun k => Option (Γ k)) default k (some a)) := rfl
rw [this, List.getElem?_map, proj, PointedMap.mk_val]
simp only []
by_cases h : k' = k
· subst k'
simp only [Function.update_self]
Expand Down
1 change: 0 additions & 1 deletion Mathlib/LinearAlgebra/Matrix/Basis.lean
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ def toMatrixEquiv [Fintype ι] (e : Basis ι R M) : (ι → M) ≃ₗ[R] Matrix
map_smul' := by
intro c v
ext i j
dsimp only []
rw [e.toMatrix_apply, Pi.smul_apply, map_smul]
rfl
invFun m j := ∑ i, m i j • e i
Expand Down
1 change: 0 additions & 1 deletion Mathlib/MeasureTheory/Covering/Besicovitch.lean
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ theorem color_lt {i : Ordinal.{u}} (hi : i < p.lastStep) {N : ℕ}
have : k ∈ A := by
simpa only [true_and, mem_univ, Classical.not_not, mem_diff] using
Nat.notMem_of_lt_sInf hk
simp only [] at this
simpa only [A, exists_prop, mem_iUnion, mem_singleton_iff, mem_closedBall, Subtype.exists,
Subtype.coe_mk]
choose! g hg using this
Expand Down
1 change: 0 additions & 1 deletion Mathlib/MeasureTheory/Measure/Restrict.lean
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,6 @@ theorem MeasurableSet.nullMeasurableSet_subtype_coe {t : Set s} (hs : NullMeasur
simp only [← range_diff_image Subtype.coe_injective, Subtype.range_coe_subtype, setOf_mem_eq]
exact hs.diff ht'
| iUnion f _ hf =>
dsimp only []
rw [image_iUnion]
exact .iUnion hf

Expand Down
2 changes: 0 additions & 2 deletions Mathlib/ModelTheory/Encoding.lean
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,11 @@ theorem listDecode_encode_list (l : List (Σ n, L.BoundedFormula α n)) :
rw [length_map, length_finRange]
| imp _ _ ih1 ih2 =>
intro l
simp only [] at *
rw [listEncode, List.append_assoc, cons_append, listDecode]
simp only [ih1, ih2, length_cons, le_add_iff_nonneg_left, _root_.zero_le, ↓reduceDIte,
getElem_cons_zero, getElem_cons_succ, sigmaImp_apply, drop_succ_cons, drop_zero]
| all _ ih =>
intro l
simp only [] at *
rw [listEncode, cons_append, listDecode]
simp only [ih, length_cons, le_add_iff_nonneg_left, _root_.zero_le, ↓reduceDIte,
getElem_cons_zero, sigmaAll_apply, drop_succ_cons, drop_zero]
Expand Down
Loading