New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - feat(linear_algebra/affine_space): affine independence #3140
Conversation
Define affine independent indexed families of points (in terms of no nontrivial `weighted_vsub` in the family being zero), prove that a family of at most one point is affine independent, and prove a family of points is affine independent if and only if a corresponding family of subtractions is linearly independent. There are of course other equivalent descriptions of affine independent families it will be useful to add later (that the affine span of all proper subfamilies is smaller than the affine span of the whole family, that each point is not in the affine span of the rest; in the case of a family indexed by a `fintype`, that the dimension of the affine span is one less than the cardinality). But I think the definition and one equivalent formulation is a reasonable starting point.
That proof seems too big. Are you sure you can't factor out a couple of useful lemmas? |
The lemmas I could find that seemed possibly relevant to more than just this proof were merged in #3124. The two directions of the lemma could of course be split into separate lemmas |
I'm sorry but I'm not convinced. I can't really believe you couldn't develop the theory of |
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
@PatrickMassot --- maybe you can indicate what you'd like to see when you said "I can't really believe you couldn't develop the theory of equiv.vadd_const and equiv.const_vadd to help here."? |
I certainly couldn't see the relevance of |
You still went down from ~70 lines to ~50 lines. And all the new results will hopefully be useful in later developments, hence pay off in the long run. |
The statement is definitionaly equal to
How could it fail to be relevant? My question is: could you write lemmas about |
So remove simp attribute from it. Reported proof: by simp only [finset.filter_true_of_mem, finset.filter_congr_decidable, forall_true_iff]
bors merge |
Define affine independent indexed families of points (in terms of no nontrivial `weighted_vsub` in the family being zero), prove that a family of at most one point is affine independent, and prove a family of points is affine independent if and only if a corresponding family of subtractions is linearly independent. There are of course other equivalent descriptions of affine independent families it will be useful to add later (that the affine span of all proper subfamilies is smaller than the affine span of the whole family, that each point is not in the affine span of the rest; in the case of a family indexed by a `fintype`, that the dimension of the affine span is one less than the cardinality). But I think the definition and one equivalent formulation is a reasonable starting point. Co-authored-by: Patrick Massot <patrickmassot@free.fr>
Pull request successfully merged into master. Build succeeded: |
…mmunity#3140) Define affine independent indexed families of points (in terms of no nontrivial `weighted_vsub` in the family being zero), prove that a family of at most one point is affine independent, and prove a family of points is affine independent if and only if a corresponding family of subtractions is linearly independent. There are of course other equivalent descriptions of affine independent families it will be useful to add later (that the affine span of all proper subfamilies is smaller than the affine span of the whole family, that each point is not in the affine span of the rest; in the case of a family indexed by a `fintype`, that the dimension of the affine span is one less than the cardinality). But I think the definition and one equivalent formulation is a reasonable starting point. Co-authored-by: Patrick Massot <patrickmassot@free.fr>
Define affine independent indexed families of points (in terms of no
nontrivial
weighted_vsub
in the family being zero), prove that afamily of at most one point is affine independent, and prove a family
of points is affine independent if and only if a corresponding family
of subtractions is linearly independent.
There are of course other equivalent descriptions of affine
independent families it will be useful to add later (that the affine
span of all proper subfamilies is smaller than the affine span of the
whole family, that each point is not in the affine span of the rest;
in the case of a family indexed by a
fintype
, that the dimension ofthe affine span is one less than the cardinality). But I think the
definition and one equivalent formulation is a reasonable starting
point.