Zulip Chat Archive
Stream: maths
Topic: basis.sum_extend
Patrick Massot (May 27 2021 at 20:35):
docs#basis.sum_extend creates really nasty types which appear in the context as:
basis (fin n ⊕ ↥(_.extend basis.sum_extend._proof_2 \ range v)) ℝ F
for instance. @Anne Baanen do you think there is anyway we could improve that?
Anne Baanen (May 28 2021 at 08:35):
The alternative I see is having the return type look like Σ (s : set V), basis (ι + s) K V
(or putting this s
in a separate definition). Do you have an example of sum_extend
being applied, so I can see what we need to know about the return type?
Eric Rodriguez (May 28 2021 at 08:38):
Anne, I used it here when rewriting sphere-eversion
; I assume this is where Patrick saw it
Gabriel Ebner (May 28 2021 at 08:40):
I guess it would already look better if linear_independent.extend
didn't have the proof arguments, i.e. if it was linear_independent.extend (s t : V)
(w/o a linear_independent argument) meaning a "minimal subset of t containing s and spanning t".
Patrick Massot (Jun 09 2021 at 12:55):
@Anne Baanen did anything came out of this discussion?
Anne Baanen (Jun 09 2021 at 12:57):
I agree with Gabriel's suggestion, that linear_independent.extend
shouldn't take a proof argument. AFAIK, nobody has written code (yet) to implement that.
Anne Baanen (Jun 11 2021 at 12:28):
I have some time now to implement the suggestion, look forward to making a PR soon!
Anne Baanen (Jun 14 2021 at 13:42):
It was more difficult than I was hoping, but here's an ungolfed, messy commit: branch#linear_independent_extend
Anne Baanen (Jun 14 2021 at 13:48):
@Patrick Massot, would you be willing to help with PR'ing this?
Jakob von Raumer (Jun 14 2021 at 17:28):
Oh, that's the stuff I need :)
Patrick Massot (Jun 14 2021 at 17:29):
I'll try to have a look tonight
Anne Baanen (Jun 14 2021 at 17:57):
Thanks!
Patrick Massot (Jun 14 2021 at 21:49):
I had a look but I'm puzzled. Why this super convoluted exists_extend
? Why not simply stating there are subsets s0
of s
and t0
of t
such that the union of s0
and t0
is linear independent and spans the same subspace as t
?
Anne Baanen (Jun 15 2021 at 08:47):
Well, you need to apply Zorn's lemma in some way to get this result, so unless I missed an easy way to apply exists_linear_independent
as-is, you essentially have to redo its proof in the more general setting.
Anne Baanen (Jun 15 2021 at 08:48):
Patrick Massot said:
there are subsets
s0
ofs
andt0
oft
such that the union ofs0
andt0
is linear independent and spans the same subspace ast
?
I don't think that's strong enough to prove linear_independent_extend
, since we could just choose s0
empty and t0
outside of s
, making linear_independent_extend
false.
Last updated: Dec 20 2023 at 11:08 UTC