Skip to content

Commit 2d35d02

Browse files
committed
chore(Algebra/LinearRecurrence): remove a defeq abuse (leanprover-community#39150)
The previous code abuses defeq between `Subtype E.IsSolution` (coming from `← Subtype.mk.injEq` rewrite) and `Subtype (· ∈ E.solSpace)` (coming from coercing submodule).
1 parent d3ddb19 commit 2d35d02

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Mathlib/Algebra/LinearRecurrence.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,11 @@ theorem repr_basis_eq (u : E.solSpace) :
155155
theorem repr_basis_apply (u : E.solSpace) (n : Fin E.order) : E.basis.repr u n = u.val n :=
156156
rfl
157157

158-
set_option backward.isDefEq.respectTransparency false in
159158
/-- Two solutions are equal iff their initial conditions are equal. -/
160159
theorem eq_iff_eqOn_range_order (u v : ℕ → R) (hu : E.IsSolution u) (hv : E.IsSolution v) :
161160
u = v ↔ Set.EqOn u v ↑(range E.order) := by
161+
replace hu : u ∈ E.solSpace := (is_sol_iff_mem_solSpace _ _).mp hu
162+
replace hv : v ∈ E.solSpace := (is_sol_iff_mem_solSpace _ _).mp hv
162163
rw [← Subtype.mk.injEq u hu v hv, ← E.basis.repr.injective.eq_iff]
163164
constructor
164165
· exact fun h n hn ↦ congr($h ⟨n, Finset.mem_range.mp hn⟩)

0 commit comments

Comments
 (0)