Loogle!
Result
Found 103 declarations mentioning Finset.affineCombination.
- Finset.affineCombination ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
(k : Type u_1) {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (p : ฮน โ P) : (ฮน โ k) โแต[k] P - Finset.affineCombination_linear ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
(k : Type u_1) {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (p : ฮน โ P) : (Finset.affineCombination k s p).linear = s.weightedVSub p - Finset.affineCombination_affineCombinationSingleWeights ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
(k : Type u_1) {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) [DecidableEq ฮน] (p : ฮน โ P) {i : ฮน} (hi : i โ s) : (Finset.affineCombination k s p) (Finset.affineCombinationSingleWeights k i) = p i - Finset.affineCombination_apply_const ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (w : ฮน โ k) (p : P) (h : โ i โ s, w i = 1) : (Finset.affineCombination k s fun x => p) w = p - Finset.affineCombination_piSingle ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
(k : Type u_1) {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) [DecidableEq ฮน] (p : ฮน โ P) {i : ฮน} (hi : i โ s) : (Finset.affineCombination k s p) (Pi.single i 1) = p i - Finset.affineCombination_of_eq_one_of_eq_zero ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (w : ฮน โ k) (p : ฮน โ P) {i : ฮน} (his : i โ s) (hwi : w i = 1) (hw0 : โ i2 โ s, i2 โ i โ w i2 = 0) : (Finset.affineCombination k s p) w = p i - affineCombination_mem_affineSpan ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{ฮน : Type u_1} {k : Type u_2} {V : Type u_3} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] [Nontrivial k] {s : Finset ฮน} {w : ฮน โ k} (h : โ i โ s, w i = 1) (p : ฮน โ P) : (Finset.affineCombination k s p) w โ affineSpan k (Set.range p) - affineCombination_mem_affineSpan_of_nonempty ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{ฮน : Type u_1} {k : Type u_2} {V : Type u_3} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] [Nonempty ฮน] {s : Finset ฮน} {w : ฮน โ k} (h : โ i โ s, w i = 1) (p : ฮน โ P) : (Finset.affineCombination k s p) w โ affineSpan k (Set.range p) - eq_affineCombination_of_mem_affineSpan ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{ฮน : Type u_1} {k : Type u_2} {V : Type u_3} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {p1 : P} {p : ฮน โ P} (h : p1 โ affineSpan k (Set.range p)) : โ s w, โ i โ s, w i = 1 โง p1 = (Finset.affineCombination k s p) w - eq_affineCombination_of_mem_affineSpan_of_fintype ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{ฮน : Type u_1} {k : Type u_2} {V : Type u_3} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] [Fintype ฮน] {p1 : P} {p : ฮน โ P} (h : p1 โ affineSpan k (Set.range p)) : โ w, โ i, w i = 1 โง p1 = (Finset.affineCombination k Finset.univ p) w - mem_affineSpan_iff_eq_affineCombination ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{ฮน : Type u_1} (k : Type u_2) (V : Type u_3) {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] [Nontrivial k] {p1 : P} {p : ฮน โ P} : p1 โ affineSpan k (Set.range p) โ โ s w, โ i โ s, w i = 1 โง p1 = (Finset.affineCombination k s p) w - eq_affineCombination_of_mem_affineSpan_image ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{ฮน : Type u_1} {k : Type u_2} {V : Type u_3} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {pโ : P} {p : ฮน โ P} {s : Set ฮน} (h : pโ โ affineSpan k (p '' s)) : โ fs w, โfs โ s โง โ i โ fs, w i = 1 โง pโ = (Finset.affineCombination k fs p) w - Finset.affineCombination_affineCombinationLineMapWeights ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) [DecidableEq ฮน] (p : ฮน โ P) {i j : ฮน} (hi : i โ s) (hj : j โ s) (c : k) : (Finset.affineCombination k s p) (Finset.affineCombinationLineMapWeights i j c) = (AffineMap.lineMap (p i) (p j)) c - Finset.affineCombination_eq_linear_combination ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} [Ring k] [AddCommGroup V] [Module k V] {ฮน : Type u_4} (s : Finset ฮน) (p : ฮน โ V) (w : ฮน โ k) (hw : โ i โ s, w i = 1) : (Finset.affineCombination k s p) w = โ i โ s, w i โข p i - affineCombination_mem_affineSpan_image ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{ฮน : Type u_1} {k : Type u_2} {V : Type u_3} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] [Nontrivial k] {s : Finset ฮน} {w : ฮน โ k} (h : โ i โ s, w i = 1) {s' : Set ฮน} (hs' : โ i โ s, i โ s' โ w i = 0) (p : ฮน โ P) : (Finset.affineCombination k s p) w โ affineSpan k (p '' s') - Finset.sum_smul_const_vsub_eq_vsub_affineCombination ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (w : ฮน โ k) (pโ : ฮน โ P) (pโ : P) (h : โ i โ s, w i = 1) : โ i โ s, w i โข (pโ -แตฅ pโ i) = pโ -แตฅ (Finset.affineCombination k s pโ) w - Finset.sum_smul_vsub_const_eq_affineCombination_vsub ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (w : ฮน โ k) (pโ : ฮน โ P) (pโ : P) (h : โ i โ s, w i = 1) : โ i โ s, w i โข (pโ i -แตฅ pโ) = (Finset.affineCombination k s pโ) w -แตฅ pโ - Finset.affineCombination_indicator_subset ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (w : ฮน โ k) (p : ฮน โ P) {sโ sโ : Finset ฮน} (h : sโ โ sโ) : (Finset.affineCombination k sโ p) w = (Finset.affineCombination k sโ p) ((โsโ).indicator w) - Finset.affineCombination_map ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} {ฮนโ : Type u_5} (sโ : Finset ฮนโ) (e : ฮนโ โช ฮน) (w : ฮน โ k) (p : ฮน โ P) : (Finset.affineCombination k (Finset.map e sโ) p) w = (Finset.affineCombination k sโ (p โ โe)) (w โ โe) - Finset.affineCombination_congr ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) {wโ wโ : ฮน โ k} (hw : โ i โ s, wโ i = wโ i) {pโ pโ : ฮน โ P} (hp : โ i โ s, pโ i = pโ i) : (Finset.affineCombination k s pโ) wโ = (Finset.affineCombination k s pโ) wโ - Finset.affineCombination_filter_of_ne ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (w : ฮน โ k) (p : ฮน โ P) {pred : ฮน โ Prop} [DecidablePred pred] (h : โ i โ s, w i โ 0 โ pred i) : (Finset.affineCombination k ({x โ s | pred x}) p) w = (Finset.affineCombination k s p) w - Finset.affineCombination_subtype_eq_filter ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (w : ฮน โ k) (p : ฮน โ P) (pred : ฮน โ Prop) [DecidablePred pred] : ((Finset.affineCombination k (Finset.subtype pred s) fun i => p โi) fun i => w โi) = (Finset.affineCombination k ({x โ s | pred x}) p) w - Finset.affineCombination_apply_eq_lineMap_sum ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) [DecidableEq ฮน] (w : ฮน โ k) (p : ฮน โ P) (pโ pโ : P) (s' : Finset ฮน) (h : โ i โ s, w i = 1) (hpโ : โ i โ s โฉ s', p i = pโ) (hpโ : โ i โ s \ s', p i = pโ) : (Finset.affineCombination k s p) w = (AffineMap.lineMap pโ pโ) (โ i โ s โฉ s', w i) - Finset.affineCombination_apply ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (w : ฮน โ k) (p : ฮน โ P) : (Finset.affineCombination k s p) w = (s.weightedVSubOfPoint p (Classical.choice โฏ)) w +แตฅ Classical.choice โฏ - Finset.affineCombination_eq_weightedVSubOfPoint_vadd_of_sum_eq_one ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (w : ฮน โ k) (p : ฮน โ P) (h : โ i โ s, w i = 1) (b : P) : (Finset.affineCombination k s p) w = (s.weightedVSubOfPoint p b) w +แตฅ b - Finset.sum_smul_vsub_eq_affineCombination_vsub ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (w : ฮน โ k) (pโ pโ : ฮน โ P) : โ i โ s, w i โข (pโ i -แตฅ pโ i) = (Finset.affineCombination k s pโ) w -แตฅ (Finset.affineCombination k s pโ) w - Finset.affineCombination_eq_of_weightedVSub_eq_zero_of_eq_neg_one ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) {w : ฮน โ k} {p : ฮน โ P} (hw : (s.weightedVSub p) w = 0) {i : ฮน} [DecidablePred fun x => x โ i] (his : i โ s) (hwi : w i = -1) : (Finset.affineCombination k ({x โ s | x โ i}) p) w = p i - Finset.map_affineCombination ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) {Vโ : Type u_6} {Pโ : Type u_7} [AddCommGroup Vโ] [Module k Vโ] [AddTorsor Vโ Pโ] (p : ฮน โ P) (w : ฮน โ k) (hw : s.sum w = 1) (f : P โแต[k] Pโ) : f ((Finset.affineCombination k s p) w) = (Finset.affineCombination k s (โf โ p)) w - Finset.eq_affineCombination_subset_iff_eq_affineCombination_subtype ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
(k : Type u_1) (V : Type u_2) {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} {p0 : P} {s : Set ฮน} {p : ฮน โ P} : (โ fs, โfs โ s โง โ w, โ i โ fs, w i = 1 โง p0 = (Finset.affineCombination k fs p) w) โ โ fs w, โ i โ fs, w i = 1 โง p0 = (Finset.affineCombination k fs fun i => p โi) w - Finset.affineCombination_vsub ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (wโ wโ : ฮน โ k) (p : ฮน โ P) : (Finset.affineCombination k s p) wโ -แตฅ (Finset.affineCombination k s p) wโ = (s.weightedVSub p) (wโ - wโ) - Finset.affineCombination_sdiff_sub ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) [DecidableEq ฮน] {sโ : Finset ฮน} (h : sโ โ s) (w : ฮน โ k) (p : ฮน โ P) : (Finset.affineCombination k (s \ sโ) p) w -แตฅ (Finset.affineCombination k sโ p) (-w) = (s.weightedVSub p) w - Finset.weightedVSub_vadd_affineCombination ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (wโ wโ : ฮน โ k) (p : ฮน โ P) : (s.weightedVSub p) wโ +แตฅ (Finset.affineCombination k s p) wโ = (Finset.affineCombination k s p) (wโ + wโ) - Finset.attach_affineCombination_coe ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] (s : Finset P) (w : P โ k) : (Finset.affineCombination k s.attach Subtype.val) (w โ Subtype.val) = (Finset.affineCombination k s id) w - Finset.lineMap_affineCombination ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (wโ wโ : ฮน โ k) (r : k) (p : ฮน โ P) : (AffineMap.lineMap ((Finset.affineCombination k s p) wโ) ((Finset.affineCombination k s p) wโ)) r = (Finset.affineCombination k s p) ((AffineMap.lineMap wโ wโ) r) - Finset.attach_affineCombination_of_injective ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [S : AddTorsor V P] [DecidableEq P] (s : Finset P) (w : P โ k) (f : โฅs โ P) (hf : Function.Injective f) : (Finset.affineCombination k s.attach f) (w โ f) = (Finset.affineCombination k (Finset.image f Finset.univ) id) w - Finset.homothety_affineCombination ๐ Mathlib.LinearAlgebra.AffineSpace.Combination
{k : Type u_6} {V : Type u_7} {P : Type u_8} [CommRing k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_9} [DecidableEq ฮน] (s : Finset ฮน) (p : ฮน โ P) (w : ฮน โ k) {i : ฮน} (hi : i โ s) (r : k) : (AffineMap.homothety (p i) r) ((Finset.affineCombination k s p) w) = (Finset.affineCombination k s p) ((AffineMap.lineMap (Pi.single i 1) w) r) - Finset.centroid_def ๐ Mathlib.LinearAlgebra.AffineSpace.Centroid
(k : Type u_1) {V : Type u_2} {P : Type u_3} [DivisionRing k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) (p : ฮน โ P) : Finset.centroid k s p = (Finset.affineCombination k s p) (Finset.centroidWeights k s) - Finset.centroid_eq_affineCombination_fintype ๐ Mathlib.LinearAlgebra.AffineSpace.Centroid
(k : Type u_1) {V : Type u_2} {P : Type u_3} [DivisionRing k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_4} (s : Finset ฮน) [Fintype ฮน] (p : ฮน โ P) : Finset.centroid k s p = (Finset.affineCombination k Finset.univ p) (Finset.centroidWeightsIndicator k s) - AffineIndependent.eq_zero_of_affineCombination_mem_affineSpan ๐ Mathlib.LinearAlgebra.AffineSpace.Independent
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_4} {p : ฮน โ P} (ha : AffineIndependent k p) {fs : Finset ฮน} {w : ฮน โ k} (hw : โ i โ fs, w i = 1) {s : Set ฮน} (hm : (Finset.affineCombination k fs p) w โ affineSpan k (p '' s)) {i : ฮน} (hifs : i โ fs) (his : i โ s) : w i = 0 - affineIndependent_iff_eq_of_fintype_affineCombination_eq ๐ Mathlib.LinearAlgebra.AffineSpace.Independent
(k : Type u_1) {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_4} [Fintype ฮน] (p : ฮน โ P) : AffineIndependent k p โ โ (w1 w2 : ฮน โ k), โ i, w1 i = 1 โ โ i, w2 i = 1 โ (Finset.affineCombination k Finset.univ p) w1 = (Finset.affineCombination k Finset.univ p) w2 โ w1 = w2 - AffineIndependent.affineCombination_eq_iff_eq ๐ Mathlib.LinearAlgebra.AffineSpace.Independent
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_4} {p : ฮน โ P} (ha : AffineIndependent k p) {wโ wโ : ฮน โ k} {s : Finset ฮน} (hwโ : โ i โ s, wโ i = 1) (hwโ : โ i โ s, wโ i = 1) : (Finset.affineCombination k s p) wโ = (Finset.affineCombination k s p) wโ โ โ i โ s, wโ i = wโ i - AffineIndependent.indicator_eq_of_affineCombination_eq ๐ Mathlib.LinearAlgebra.AffineSpace.Independent
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_4} {p : ฮน โ P} (ha : AffineIndependent k p) (sโ sโ : Finset ฮน) (wโ wโ : ฮน โ k) (hwโ : โ i โ sโ, wโ i = 1) (hwโ : โ i โ sโ, wโ i = 1) (h : (Finset.affineCombination k sโ p) wโ = (Finset.affineCombination k sโ p) wโ) : (โsโ).indicator wโ = (โsโ).indicator wโ - affineIndependent_iff_indicator_eq_of_affineCombination_eq ๐ Mathlib.LinearAlgebra.AffineSpace.Independent
(k : Type u_1) {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_4} (p : ฮน โ P) : AffineIndependent k p โ โ (s1 s2 : Finset ฮน) (w1 w2 : ฮน โ k), โ i โ s1, w1 i = 1 โ โ i โ s2, w2 i = 1 โ (Finset.affineCombination k s1 p) w1 = (Finset.affineCombination k s2 p) w2 โ (โs1).indicator w1 = (โs2).indicator w2 - AffineIndependent.indicator_extend_eq_of_affineCombination_comp_embedding_eq_of_fintype ๐ Mathlib.LinearAlgebra.AffineSpace.Independent
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_4} [Fintype ฮน] {ฮนโ : Type u_5} [Fintype ฮนโ] {p : ฮน โ P} (ha : AffineIndependent k p) {wโ : ฮน โ k} {wโ : ฮนโ โ k} (hwโ : โ i, wโ i = 1) (hwโ : โ i, wโ i = 1) (e : ฮนโ โช ฮน) (h : (Finset.affineCombination k Finset.univ (p โ โe)) wโ = (Finset.affineCombination k Finset.univ p) wโ) : (Set.range โe).indicator (Function.extend (โe) wโ 0) = wโ - AffineIndependent.indicator_extend_eq_of_affineCombination_comp_embedding_eq ๐ Mathlib.LinearAlgebra.AffineSpace.Independent
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_4} {ฮนโ : Type u_5} {p : ฮน โ P} (ha : AffineIndependent k p) {sโ : Finset ฮน} {sโ : Finset ฮนโ} {wโ : ฮน โ k} {wโ : ฮนโ โ k} (hwโ : โ i โ sโ, wโ i = 1) (hwโ : โ i โ sโ, wโ i = 1) (e : ฮนโ โช ฮน) (h : (Finset.affineCombination k sโ (p โ โe)) wโ = (Finset.affineCombination k sโ p) wโ) : (โ(Finset.map e sโ)).indicator (Function.extend (โe) wโ 0) = (โsโ).indicator wโ - affineCombination_mem_affineSpan_pair ๐ Mathlib.LinearAlgebra.AffineSpace.Independent
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_4} {p : ฮน โ P} (h : AffineIndependent k p) {w wโ wโ : ฮน โ k} {s : Finset ฮน} : โ i โ s, w i = 1 โ โ (hwโ : โ i โ s, wโ i = 1) (hwโ : โ i โ s, wโ i = 1), (Finset.affineCombination k s p) w โ line[k, (Finset.affineCombination k s p) wโ, (Finset.affineCombination k s p) wโ] โ โ r, โ i โ s, w i = r * (wโ i - wโ i) + wโ i - weightedVSub_mem_vectorSpan_pair ๐ Mathlib.LinearAlgebra.AffineSpace.Independent
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_4} {p : ฮน โ P} (h : AffineIndependent k p) {w wโ wโ : ฮน โ k} {s : Finset ฮน} (hw : โ i โ s, w i = 0) (hwโ : โ i โ s, wโ i = 1) (hwโ : โ i โ s, wโ i = 1) : (s.weightedVSub p) w โ vectorSpan k {(Finset.affineCombination k s p) wโ, (Finset.affineCombination k s p) wโ} โ โ r, โ i โ s, w i = r * (wโ i - wโ i) - sign_eq_of_affineCombination_mem_affineSpan_single_lineMap ๐ Mathlib.LinearAlgebra.AffineSpace.Independent
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [LinearOrder k] [IsStrictOrderedRing k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_4} {p : ฮน โ P} (h : AffineIndependent k p) {w : ฮน โ k} {s : Finset ฮน} (hw : โ i โ s, w i = 1) {iโ iโ iโ : ฮน} (hโ : iโ โ s) (hโ : iโ โ s) (hโ : iโ โ s) (hโโ : iโ โ iโ) (hโโ : iโ โ iโ) (hโโ : iโ โ iโ) {c : k} (hc0 : 0 < c) (hc1 : c < 1) (hs : (Finset.affineCombination k s p) w โ line[k, p iโ, (AffineMap.lineMap (p iโ) (p iโ)) c]) : SignType.sign (w iโ) = SignType.sign (w iโ) - AffineIndependent.affineCombination_eq_lineMap_iff_weight_lineMap ๐ Mathlib.LinearAlgebra.AffineSpace.Independent
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_4} {p : ฮน โ P} (ha : AffineIndependent k p) {w wโ wโ : ฮน โ k} {s : Finset ฮน} (hw : โ i โ s, w i = 1) (hwโ : โ i โ s, wโ i = 1) (hwโ : โ i โ s, wโ i = 1) (c : k) : (Finset.affineCombination k s p) w = (AffineMap.lineMap ((Finset.affineCombination k s p) wโ) ((Finset.affineCombination k s p) wโ)) c โ โ i โ s, w i = (AffineMap.lineMap (wโ i) (wโ i)) c - sign_eq_of_affineCombination_mem_affineSpan_pair ๐ Mathlib.LinearAlgebra.AffineSpace.Independent
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [LinearOrder k] [IsStrictOrderedRing k] [AddCommGroup V] [Module k V] [AddTorsor V P] {ฮน : Type u_4} {p : ฮน โ P} (h : AffineIndependent k p) {w wโ wโ : ฮน โ k} {s : Finset ฮน} (hw : โ i โ s, w i = 1) (hwโ : โ i โ s, wโ i = 1) (hwโ : โ i โ s, wโ i = 1) (hs : (Finset.affineCombination k s p) w โ line[k, (Finset.affineCombination k s p) wโ, (Finset.affineCombination k s p) wโ]) {i j : ฮน} (hi : i โ s) (hj : j โ s) (hi0 : wโ i = 0) (hj0 : wโ j = 0) (hij : SignType.sign (wโ i) = SignType.sign (wโ j)) : SignType.sign (w i) = SignType.sign (w j) - AffineIndependent.injOn_affineCombination_fintypeAffineCoords ๐ Mathlib.LinearAlgebra.AffineSpace.Basis
{ฮน : Type u_1} {k : Type u_2} {V : Type u_3} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] [Fintype ฮน] {p : ฮน โ P} (h : AffineIndependent k p) : Set.InjOn โ(Finset.affineCombination k Finset.univ p) โ(fintypeAffineCoords ฮน k) - AffineBasis.affineCombination_coord_eq_self ๐ Mathlib.LinearAlgebra.AffineSpace.Basis
{ฮน : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [AddCommGroup V] [AddTorsor V P] [Ring k] [Module k V] (b : AffineBasis ฮน k P) [Fintype ฮน] (q : P) : ((Finset.affineCombination k Finset.univ โb) fun i => (b.coord i) q) = q - AffineBasis.coord_apply_combination_of_mem ๐ Mathlib.LinearAlgebra.AffineSpace.Basis
{ฮน : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [AddCommGroup V] [AddTorsor V P] [Ring k] [Module k V] (b : AffineBasis ฮน k P) {s : Finset ฮน} {i : ฮน} (hi : i โ s) {w : ฮน โ k} (hw : s.sum w = 1) : (b.coord i) ((Finset.affineCombination k s โb) w) = w i - AffineBasis.coord_apply_combination_of_notMem ๐ Mathlib.LinearAlgebra.AffineSpace.Basis
{ฮน : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [AddCommGroup V] [AddTorsor V P] [Ring k] [Module k V] (b : AffineBasis ฮน k P) {s : Finset ฮน} {i : ฮน} (hi : i โ s) {w : ฮน โ k} (hw : s.sum w = 1) : (b.coord i) ((Finset.affineCombination k s โb) w) = 0 - Affine.Simplex.affineCombination_mem_setInterior_iff ๐ Mathlib.LinearAlgebra.AffineSpace.Simplex.Basic
{k : Type u_1} {V : Type u_2} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {I : Set k} {n : โ} {s : Affine.Simplex k P n} {w : Fin (n + 1) โ k} (hw : โ i, w i = 1) : (Finset.affineCombination k Finset.univ s.points) w โ Affine.Simplex.setInterior I s โ โ (i : Fin (n + 1)), w i โ I - Affine.Simplex.affineCombination_mem_closedInterior_iff ๐ Mathlib.LinearAlgebra.AffineSpace.Simplex.Basic
{k : Type u_1} {V : Type u_2} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] [PartialOrder k] {n : โ} {s : Affine.Simplex k P n} {w : Fin (n + 1) โ k} (hw : โ i, w i = 1) : (Finset.affineCombination k Finset.univ s.points) w โ s.closedInterior โ โ (i : Fin (n + 1)), w i โ Set.Icc 0 1 - Affine.Simplex.affineCombination_mem_interior_iff ๐ Mathlib.LinearAlgebra.AffineSpace.Simplex.Basic
{k : Type u_1} {V : Type u_2} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] [PartialOrder k] {n : โ} {s : Affine.Simplex k P n} {w : Fin (n + 1) โ k} (hw : โ i, w i = 1) : (Finset.affineCombination k Finset.univ s.points) w โ s.interior โ โ (i : Fin (n + 1)), w i โ Set.Ioo 0 1 - Affine.Simplex.affineCombination_mem_affineSpan_faceOpposite_iff ๐ Mathlib.LinearAlgebra.AffineSpace.Simplex.Basic
{k : Type u_1} {V : Type u_2} {P : Type u_5} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {n : โ} [NeZero n] {s : Affine.Simplex k P n} {w : Fin (n + 1) โ k} (hw : โ i, w i = 1) {i : Fin (n + 1)} : (Finset.affineCombination k Finset.univ s.points) w โ affineSpan k (Set.range (s.faceOpposite i).points) โ w i = 0 - Affine.Simplex.affineCombination_mem_setInterior_face_iff_mem ๐ Mathlib.LinearAlgebra.AffineSpace.Simplex.Basic
{k : Type u_1} {V : Type u_2} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] (I : Set k) {n : โ} (s : Affine.Simplex k P n) {fs : Finset (Fin (n + 1))} {m : โ} (h : fs.card = m + 1) {w : Fin (n + 1) โ k} (hw : โ i, w i = 1) : (Finset.affineCombination k Finset.univ s.points) w โ Affine.Simplex.setInterior I (s.face h) โ (โ i โ fs, w i โ I) โง โ i โ fs, w i = 0 - Affine.Simplex.affineCombination_mem_closedInterior_face_iff_nonneg ๐ Mathlib.LinearAlgebra.AffineSpace.Simplex.Basic
{k : Type u_1} {V : Type u_2} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] [PartialOrder k] [IsOrderedAddMonoid k] {n : โ} (s : Affine.Simplex k P n) {fs : Finset (Fin (n + 1))} {m : โ} (h : fs.card = m + 1) {w : Fin (n + 1) โ k} (hw : โ i, w i = 1) : (Finset.affineCombination k Finset.univ s.points) w โ (s.face h).closedInterior โ (โ i โ fs, 0 โค w i) โง โ i โ fs, w i = 0 - Affine.Simplex.affineCombination_mem_closedInterior_face_iff_mem_Icc ๐ Mathlib.LinearAlgebra.AffineSpace.Simplex.Basic
{k : Type u_1} {V : Type u_2} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] [PartialOrder k] {n : โ} (s : Affine.Simplex k P n) {fs : Finset (Fin (n + 1))} {m : โ} (h : fs.card = m + 1) {w : Fin (n + 1) โ k} (hw : โ i, w i = 1) : (Finset.affineCombination k Finset.univ s.points) w โ (s.face h).closedInterior โ (โ i โ fs, w i โ Set.Icc 0 1) โง โ i โ fs, w i = 0 - Affine.Simplex.affineCombination_mem_interior_face_iff_mem_Ioo ๐ Mathlib.LinearAlgebra.AffineSpace.Simplex.Basic
{k : Type u_1} {V : Type u_2} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] [PartialOrder k] {n : โ} (s : Affine.Simplex k P n) {fs : Finset (Fin (n + 1))} {m : โ} (h : fs.card = m + 1) {w : Fin (n + 1) โ k} (hw : โ i, w i = 1) : (Finset.affineCombination k Finset.univ s.points) w โ (s.face h).interior โ (โ i โ fs, w i โ Set.Ioo 0 1) โง โ i โ fs, w i = 0 - Affine.Simplex.affineCombination_mem_interior_face_iff_pos ๐ Mathlib.LinearAlgebra.AffineSpace.Simplex.Basic
{k : Type u_1} {V : Type u_2} {P : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] [PartialOrder k] [IsOrderedAddMonoid k] {n : โ} (s : Affine.Simplex k P n) {fs : Finset (Fin (n + 1))} {m : โ} [NeZero m] (h : fs.card = m + 1) {w : Fin (n + 1) โ k} (hw : โ i, w i = 1) : (Finset.affineCombination k Finset.univ s.points) w โ (s.face h).interior โ (โ i โ fs, 0 < w i) โง โ i โ fs, w i = 0 - affineCombination_eq_centerMass ๐ Mathlib.Analysis.Convex.Combination
{R : Type u_1} {E : Type u_3} [Field R] [AddCommGroup E] [Module R E] {ฮน : Type u_8} {t : Finset ฮน} {p : ฮน โ E} {w : ฮน โ R} (hwโ : โ i โ t, w i = 1) : (Finset.affineCombination R t p) w = t.centerMass w p - affineCombination_mem_convexHull ๐ Mathlib.Analysis.Convex.Combination
{R : Type u_1} {E : Type u_3} {ฮน : Type u_5} [Field R] [AddCommGroup E] [Module R E] [LinearOrder R] [IsStrictOrderedRing R] {s : Finset ฮน} {v : ฮน โ E} {w : ฮน โ R} (hwโ : โ i โ s, 0 โค w i) (hwโ : s.sum w = 1) : (Finset.affineCombination R s v) w โ (convexHull R) (Set.range v) - convexHull_range_eq_exists_affineCombination ๐ Mathlib.Analysis.Convex.Combination
{R : Type u_1} {E : Type u_3} {ฮน : Type u_5} [Field R] [AddCommGroup E] [Module R E] [LinearOrder R] [IsStrictOrderedRing R] (v : ฮน โ E) : (convexHull R) (Set.range v) = {x | โ s w, (โ i โ s, 0 โค w i) โง s.sum w = 1 โง (Finset.affineCombination R s v) w = x} - Affine.Simplex.centroid_eq_affineCombination ๐ Mathlib.LinearAlgebra.AffineSpace.Simplex.Centroid
{k : Type u_1} {V : Type u_2} {P : Type u_3} [DivisionRing k] [AddCommGroup V] [Module k V] [AddTorsor V P] {n : โ} (s : Affine.Simplex k P n) : s.centroid = (Finset.affineCombination k Finset.univ s.points) (Finset.centroidWeights k Finset.univ) - Affine.Simplex.faceOppositeCentroid_eq_affineCombination ๐ Mathlib.LinearAlgebra.AffineSpace.Simplex.Centroid
{k : Type u_1} {V : Type u_2} {P : Type u_3} [DivisionRing k] [AddCommGroup V] [Module k V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex k P n) (i : Fin (n + 1)) : s.faceOppositeCentroid i = (Finset.affineCombination k {i}แถ s.points) fun x => (โn)โปยน - Sbtw.affineCombination_of_mem_affineSpan_pair ๐ Mathlib.Analysis.Convex.Between
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Ring R] [PartialOrder R] [AddCommGroup V] [Module R V] [AddTorsor V P] [IsOrderedRing R] [IsDomain R] [Module.IsTorsionFree R V] {ฮน : Type u_6} {p : ฮน โ P} (ha : AffineIndependent R p) {w wโ wโ : ฮน โ R} {s : Finset ฮน} (hw : โ i โ s, w i = 1) (hwโ : โ i โ s, wโ i = 1) (hwโ : โ i โ s, wโ i = 1) (h : (Finset.affineCombination R s p) w โ line[R, (Finset.affineCombination R s p) wโ, (Finset.affineCombination R s p) wโ]) {i : ฮน} (his : i โ s) (hs : Sbtw R (wโ i) (w i) (wโ i)) : Sbtw R ((Finset.affineCombination R s p) wโ) ((Finset.affineCombination R s p) w) ((Finset.affineCombination R s p) wโ) - AddTorsor.convexCombination_eq_affineCombination ๐ Mathlib.Geometry.Convex.ConvexSpace.AffineSpace
{R : Type u_1} {V : Type u_2} {P : Type u_3} [Ring R] [PartialOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] [Convexity.ConvexSpace R P] [Convexity.IsAffineConvexSpace R V P] (s : Convexity.StdSimplex R P) : Convexity.sConvexComb s = (Finset.affineCombination R s.weights.support id) โs.weights - AddTorsor.sConvexComb_eq_affineCombination ๐ Mathlib.Geometry.Convex.ConvexSpace.AffineSpace
{R : Type u_1} {V : Type u_2} {P : Type u_3} [Ring R] [PartialOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] [Convexity.ConvexSpace R P] [Convexity.IsAffineConvexSpace R V P] (s : Convexity.StdSimplex R P) : Convexity.sConvexComb s = (Finset.affineCombination R s.weights.support id) โs.weights - AddTorsor.iConvexComb_eq_affineCombination ๐ Mathlib.Geometry.Convex.ConvexSpace.AffineSpace
{R : Type u_1} {V : Type u_2} {P : Type u_3} {I : Type u_4} [Ring R] [PartialOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] [Convexity.ConvexSpace R P] [Convexity.IsAffineConvexSpace R V P] (s : Convexity.StdSimplex R I) (f : I โ P) : Convexity.iConvexComb s f = (Finset.affineCombination R s.weights.support f) โs.weights - Affine.Simplex.sOppSide_affineSpan_faceOpposite_point_left_iff ๐ Mathlib.Analysis.Convex.Side
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) โ R} (hw : โ j, w j = 1) {i : Fin (n + 1)} : (affineSpan R (Set.range (s.faceOpposite i).points)).SOppSide (s.points i) ((Finset.affineCombination R Finset.univ s.points) w) โ w i < 0 - Affine.Simplex.sOppSide_affineSpan_faceOpposite_point_right_iff ๐ Mathlib.Analysis.Convex.Side
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) โ R} (hw : โ j, w j = 1) {i : Fin (n + 1)} : (affineSpan R (Set.range (s.faceOpposite i).points)).SOppSide ((Finset.affineCombination R Finset.univ s.points) w) (s.points i) โ w i < 0 - Affine.Simplex.sSameSide_affineSpan_faceOpposite_point_left_iff ๐ Mathlib.Analysis.Convex.Side
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) โ R} (hw : โ j, w j = 1) {i : Fin (n + 1)} : (affineSpan R (Set.range (s.faceOpposite i).points)).SSameSide (s.points i) ((Finset.affineCombination R Finset.univ s.points) w) โ 0 < w i - Affine.Simplex.sSameSide_affineSpan_faceOpposite_point_right_iff ๐ Mathlib.Analysis.Convex.Side
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) โ R} (hw : โ j, w j = 1) {i : Fin (n + 1)} : (affineSpan R (Set.range (s.faceOpposite i).points)).SSameSide ((Finset.affineCombination R Finset.univ s.points) w) (s.points i) โ 0 < w i - Affine.Simplex.wOppSide_affineSpan_faceOpposite_point_left_iff ๐ Mathlib.Analysis.Convex.Side
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) โ R} (hw : โ j, w j = 1) {i : Fin (n + 1)} : (affineSpan R (Set.range (s.faceOpposite i).points)).WOppSide (s.points i) ((Finset.affineCombination R Finset.univ s.points) w) โ w i โค 0 - Affine.Simplex.wOppSide_affineSpan_faceOpposite_point_right_iff ๐ Mathlib.Analysis.Convex.Side
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) โ R} (hw : โ j, w j = 1) {i : Fin (n + 1)} : (affineSpan R (Set.range (s.faceOpposite i).points)).WOppSide ((Finset.affineCombination R Finset.univ s.points) w) (s.points i) โ w i โค 0 - Affine.Simplex.wSameSide_affineSpan_faceOpposite_point_left_iff ๐ Mathlib.Analysis.Convex.Side
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) โ R} (hw : โ j, w j = 1) {i : Fin (n + 1)} : (affineSpan R (Set.range (s.faceOpposite i).points)).WSameSide (s.points i) ((Finset.affineCombination R Finset.univ s.points) w) โ 0 โค w i - Affine.Simplex.wSameSide_affineSpan_faceOpposite_point_right_iff ๐ Mathlib.Analysis.Convex.Side
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex R P n) {w : Fin (n + 1) โ R} (hw : โ j, w j = 1) {i : Fin (n + 1)} : (affineSpan R (Set.range (s.faceOpposite i).points)).WSameSide ((Finset.affineCombination R Finset.univ s.points) w) (s.points i) โ 0 โค w i - Affine.Simplex.sOppSide_affineSpan_faceOpposite_of_pos_of_neg ๐ Mathlib.Analysis.Convex.Side
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex R P n) {wโ wโ : Fin (n + 1) โ R} (hwโ : โ j, wโ j = 1) (hwโ : โ j, wโ j = 1) {i : Fin (n + 1)} (hsโ : 0 < wโ i) (hsโ : wโ i < 0) : (affineSpan R (Set.range (s.faceOpposite i).points)).SOppSide ((Finset.affineCombination R Finset.univ s.points) wโ) ((Finset.affineCombination R Finset.univ s.points) wโ) - Affine.Simplex.sSameSide_affineSpan_faceOpposite_of_sign_eq ๐ Mathlib.Analysis.Convex.Side
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex R P n) {wโ wโ : Fin (n + 1) โ R} (hwโ : โ j, wโ j = 1) (hwโ : โ j, wโ j = 1) {i : Fin (n + 1)} (hs : SignType.sign (wโ i) = SignType.sign (wโ i)) (h0 : wโ i โ 0) : (affineSpan R (Set.range (s.faceOpposite i).points)).SSameSide ((Finset.affineCombination R Finset.univ s.points) wโ) ((Finset.affineCombination R Finset.univ s.points) wโ) - Affine.Simplex.sSameSide_affineSpan_faceOpposite_iff ๐ Mathlib.Analysis.Convex.Side
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex R P n) {wโ wโ : Fin (n + 1) โ R} (hwโ : โ j, wโ j = 1) (hwโ : โ j, wโ j = 1) {i : Fin (n + 1)} : (affineSpan R (Set.range (s.faceOpposite i).points)).SSameSide ((Finset.affineCombination R Finset.univ s.points) wโ) ((Finset.affineCombination R Finset.univ s.points) wโ) โ SignType.sign (wโ i) = SignType.sign (wโ i) โง wโ i โ 0 - Affine.Simplex.sOppSide_affineSpan_faceOpposite_iff ๐ Mathlib.Analysis.Convex.Side
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex R P n) {wโ wโ : Fin (n + 1) โ R} (hwโ : โ j, wโ j = 1) (hwโ : โ j, wโ j = 1) {i : Fin (n + 1)} : (affineSpan R (Set.range (s.faceOpposite i).points)).SOppSide ((Finset.affineCombination R Finset.univ s.points) wโ) ((Finset.affineCombination R Finset.univ s.points) wโ) โ SignType.sign (wโ i) = -SignType.sign (wโ i) โง wโ i โ 0 - Affine.Simplex.wSameSide_affineSpan_faceOpposite_iff ๐ Mathlib.Analysis.Convex.Side
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex R P n) {wโ wโ : Fin (n + 1) โ R} (hwโ : โ j, wโ j = 1) (hwโ : โ j, wโ j = 1) {i : Fin (n + 1)} : (affineSpan R (Set.range (s.faceOpposite i).points)).WSameSide ((Finset.affineCombination R Finset.univ s.points) wโ) ((Finset.affineCombination R Finset.univ s.points) wโ) โ SignType.sign (wโ i) = SignType.sign (wโ i) โจ wโ i = 0 โจ wโ i = 0 - Affine.Simplex.wOppSide_affineSpan_faceOpposite_iff ๐ Mathlib.Analysis.Convex.Side
{R : Type u_1} {V : Type u_2} {P : Type u_4} [Field R] [LinearOrder R] [IsStrictOrderedRing R] [AddCommGroup V] [Module R V] [AddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex R P n) {wโ wโ : Fin (n + 1) โ R} (hwโ : โ j, wโ j = 1) (hwโ : โ j, wโ j = 1) {i : Fin (n + 1)} : (affineSpan R (Set.range (s.faceOpposite i).points)).WOppSide ((Finset.affineCombination R Finset.univ s.points) wโ) ((Finset.affineCombination R Finset.univ s.points) wโ) โ SignType.sign (wโ i) = -SignType.sign (wโ i) โจ wโ i = 0 โจ wโ i = 0 - dist_affineCombination_lt_of_strictConvexSpace ๐ Mathlib.Analysis.Convex.StrictCombination
{V : Type u_2} {P : Type u_3} {ฮน : Type u_4} [NormedAddCommGroup V] [NormedSpace โ V] [StrictConvexSpace โ V] [PseudoMetricSpace P] [NormedAddTorsor V P] {t : Finset ฮน} {w : ฮน โ โ} {pโ : P} {r : โ} {p : ฮน โ P} (h0 : โ i โ t, 0 โค w i) (h1 : โ i โ t, w i = 1) {i j : ฮน} (hi : i โ t) (hj : j โ t) (hij : p i โ p j) (hi0 : w i โ 0) (hj0 : w j โ 0) (hp : โ i โ t, dist (p i) pโ โค r) : dist ((Finset.affineCombination โ t p) w) pโ < r - AffineIndependent.exists_affineCombination_eq_smul_eq_of_fintype ๐ Mathlib.LinearAlgebra.AffineSpace.Ceva
{k : Type u_1} {V : Type u_2} {P : Type u_3} {ฮน : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] [Fintype ฮน] {p : ฮน โ P} (hp : AffineIndependent k p) {s : Set ฮน} (hs : s.Nonempty) {w : โs โ ฮน โ k} (hw : โ (i : โs), โ j, w i j = 1) {p' : P} (hp' : โ (i : โs), p' โ line[k, p โi, (Finset.affineCombination k Finset.univ p) (w i)]) : โ w', โ j, w' j = 1 โง (Finset.affineCombination k Finset.univ p) w' = p' โง โ (i : โs), โ r, โ (j : ฮน), r * {โi}แถ.indicator (w i) j = {โi}แถ.indicator w' j - AffineIndependent.exists_affineCombination_eq_smul_eq ๐ Mathlib.LinearAlgebra.AffineSpace.Ceva
{k : Type u_1} {V : Type u_2} {P : Type u_3} {ฮน : Type u_4} [Ring k] [AddCommGroup V] [Module k V] [AddTorsor V P] {p : ฮน โ P} (hp : AffineIndependent k p) {s : Set ฮน} (hs : s.Nonempty) {fs : โs โ Finset ฮน} {w : โs โ ฮน โ k} (hw : โ (i : โs), โ j โ fs i, w i j = 1) {p' : P} (hp' : โ (i : โs), p' โ line[k, p โi, (Finset.affineCombination k (fs i) p) (w i)]) : โ w' fs', โ j โ fs', w' j = 1 โง (Finset.affineCombination k fs' p) w' = p' โง โ (i : โs), โ r, โ (j : ฮน), r * (โ(fs i) \ {โi}).indicator (w i) j = (โfs' \ {โi}).indicator w' j - AffineSubspace.affineCombination_mem_shift ๐ Mathlib.LinearAlgebra.AffineSpace.AffineSubspace.Shift
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [AddTorsor V P] [Module k V] {ฮน : Type u_4} [Fintype ฮน] [Nontrivial ฮน] (p : ฮน โ P) (i : ฮน) {w : ฮน โ k} (hw : โ i, w i = 1) : (Finset.affineCombination k Finset.univ p) w โ (affineSpan k (p '' {i}แถ)).shift (p i) (1 - w i) - AffineIndependent.affineCombination_mem_shift_iff ๐ Mathlib.LinearAlgebra.AffineSpace.AffineSubspace.Shift
{k : Type u_1} {V : Type u_2} {P : Type u_3} [Ring k] [AddCommGroup V] [AddTorsor V P] [Module k V] {ฮน : Type u_4} [Fintype ฮน] [Nontrivial ฮน] {p : ฮน โ P} (h : AffineIndependent k p) (i : ฮน) {w : ฮน โ k} (hw : โ i, w i = 1) (c : k) : (Finset.affineCombination k Finset.univ p) w โ (affineSpan k (p '' {i}แถ)).shift (p i) c โ w i = 1 - c - Affine.Simplex.signedInfDist_affineCombination ๐ Mathlib.Geometry.Euclidean.SignedDist
{V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace โ V] [MetricSpace P] [NormedAddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex โ P n) (i : Fin (n + 1)) {w : Fin (n + 1) โ โ} (h : โ i, w i = 1) : (s.signedInfDist i) ((Finset.affineCombination โ Finset.univ s.points) w) = w i * โs.points i -แตฅ โ((s.faceOpposite i).orthogonalProjectionSpan (s.points i))โ - EuclideanGeometry.dist_affineCombination ๐ Mathlib.Geometry.Euclidean.Basic
{V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace โ V] [MetricSpace P] [NormedAddTorsor V P] {ฮน : Type u_3} {s : Finset ฮน} {wโ wโ : ฮน โ โ} (p : ฮน โ P) (hโ : โ i โ s, wโ i = 1) (hโ : โ i โ s, wโ i = 1) : have aโ := (Finset.affineCombination โ s p) wโ; have aโ := (Finset.affineCombination โ s p) wโ; dist aโ aโ * dist aโ aโ = (-โ iโ โ s, โ iโ โ s, (wโ - wโ) iโ * (wโ - wโ) iโ * (dist (p iโ) (p iโ) * dist (p iโ) (p iโ))) / 2 - Affine.Simplex.excenter_eq_affineCombination ๐ Mathlib.Geometry.Euclidean.Incenter
{V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace โ V] [MetricSpace P] [NormedAddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex โ P n) (signs : Finset (Fin (n + 1))) : s.excenter signs = (Finset.affineCombination โ Finset.univ s.points) (s.excenterWeights signs) - Affine.Simplex.incenter_eq_affineCombination ๐ Mathlib.Geometry.Euclidean.Incenter
{V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace โ V] [MetricSpace P] [NormedAddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex โ P n) : s.incenter = (Finset.affineCombination โ Finset.univ s.points) (s.excenterWeights โ ) - Affine.Simplex.affineCombination_touchpointWeights ๐ Mathlib.Geometry.Euclidean.Incenter
{V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace โ V] [MetricSpace P] [NormedAddTorsor V P] {n : โ} [NeZero n] (s : Affine.Simplex โ P n) (signs : Finset (Fin (n + 1))) (i : Fin (n + 1)) : (Finset.affineCombination โ Finset.univ s.points) (s.touchpointWeights signs i) = s.touchpoint signs i - Affine.Simplex.ExcenterExists.affineCombination_eq_excenter_iff ๐ Mathlib.Geometry.Euclidean.Incenter
{V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace โ V] [MetricSpace P] [NormedAddTorsor V P] {n : โ} [NeZero n] {s : Affine.Simplex โ P n} {signs : Finset (Fin (n + 1))} (h : s.ExcenterExists signs) {w : Fin (n + 1) โ โ} (hw : โ j, w j = 1) : (Finset.affineCombination โ Finset.univ s.points) w = s.excenter signs โ w = s.excenterWeights signs - Affine.Simplex.affineCombination_eq_touchpoint_iff ๐ Mathlib.Geometry.Euclidean.Incenter
{V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace โ V] [MetricSpace P] [NormedAddTorsor V P] {n : โ} [NeZero n] {s : Affine.Simplex โ P n} {signs : Finset (Fin (n + 1))} {i : Fin (n + 1)} {w : Fin (n + 1) โ โ} (hw : โ j, w j = 1) : (Finset.affineCombination โ Finset.univ s.points) w = s.touchpoint signs i โ w = s.touchpointWeights signs i - Affine.Simplex.circumcenter_eq_affineCombination_of_pointsWithCircumcenter ๐ Mathlib.Geometry.Euclidean.Circumcenter
{V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace โ V] [MetricSpace P] [NormedAddTorsor V P] {n : โ} (s : Affine.Simplex โ P n) : s.circumcenter = (Finset.affineCombination โ Finset.univ s.pointsWithCircumcenter) (Affine.Simplex.circumcenterWeightsWithCircumcenter n) - Affine.Simplex.point_eq_affineCombination_of_pointsWithCircumcenter ๐ Mathlib.Geometry.Euclidean.Circumcenter
{V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace โ V] [MetricSpace P] [NormedAddTorsor V P] {n : โ} (s : Affine.Simplex โ P n) (i : Fin (n + 1)) : s.points i = (Finset.affineCombination โ Finset.univ s.pointsWithCircumcenter) (Affine.Simplex.pointWeightsWithCircumcenter i) - Affine.Simplex.centroid_eq_affineCombination_of_pointsWithCircumcenter ๐ Mathlib.Geometry.Euclidean.Circumcenter
{V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace โ V] [MetricSpace P] [NormedAddTorsor V P] {n : โ} (s : Affine.Simplex โ P n) (fs : Finset (Fin (n + 1))) : Finset.centroid โ fs s.points = (Finset.affineCombination โ Finset.univ s.pointsWithCircumcenter) (Affine.Simplex.centroidWeightsWithCircumcenter fs) - Affine.Simplex.reflection_circumcenter_eq_affineCombination_of_pointsWithCircumcenter ๐ Mathlib.Geometry.Euclidean.Circumcenter
{V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace โ V] [MetricSpace P] [NormedAddTorsor V P] {n : โ} (s : Affine.Simplex โ P n) {iโ iโ : Fin (n + 1)} (h : iโ โ iโ) : (EuclideanGeometry.reflection (affineSpan โ (s.points '' {iโ, iโ}))) s.circumcenter = (Finset.affineCombination โ Finset.univ s.pointsWithCircumcenter) (Affine.Simplex.reflectionCircumcenterWeightsWithCircumcenter iโ iโ) - Affine.Simplex.mongePoint_eq_affineCombination_of_pointsWithCircumcenter ๐ Mathlib.Geometry.Euclidean.MongePoint
{V : Type u_1} {P : Type u_2} [NormedAddCommGroup V] [InnerProductSpace โ V] [MetricSpace P] [NormedAddTorsor V P] {n : โ} (s : Affine.Simplex โ P (n + 2)) : s.mongePoint = (Finset.affineCombination โ Finset.univ s.pointsWithCircumcenter) (Affine.Simplex.mongePointWeightsWithCircumcenter n)
About
Loogle searches Lean and Mathlib definitions and theorems.
You can use Loogle from within the Lean4 VSCode language extension
using the Loogle command from the command palette. You can also try the
#loogle command from LeanSearchClient,
the CLI version, the Loogle
VS Code extension, the lean.nvim
integration or the Zulip bot.
Usage
Loogle finds definitions and lemmas in various ways:
By constant:
๐Real.sin
finds all lemmas whose statement somehow mentions the sine function.By lemma name substring:
๐"differ"
finds all lemmas that have"differ"somewhere in their lemma name.By subexpression:
๐_ * (_ ^ _)
finds all lemmas whose statements somewhere include a product where the second argument is raised to some power.The pattern can also be non-linear, as in
๐Real.sqrt ?a * Real.sqrt ?aIf the pattern has parameters, they are matched in any order. Both of these will find
List.map:
๐(?a -> ?b) -> List ?a -> List ?b
๐List ?a -> (?a -> ?b) -> List ?bBy main conclusion:
๐|- tsum _ = _ * tsum _
finds all lemmas where the conclusion (the subexpression to the right of allโandโ) has the given shape.As before, if the pattern has parameters, they are matched against the hypotheses of the lemma in any order; for example,
๐|- _ < _ โ tsum _ < tsum _
will findtsum_lt_tsumeven though the hypothesisf i < g iis not the last.You can filter for definitions vs theorems: Using
โข (_ : Type _)finds all definitions which provide data whileโข (_ : Prop)finds all theorems (and definitions of proofs).
If you pass more than one such search filter, separated by commas
Loogle will return lemmas which match all of them. The
search
๐ Real.sin, "two", tsum, _ * _, _ ^ _, |- _ < _ โ _
would find all lemmas which mention the constants Real.sin
and tsum, have "two" as a substring of the
lemma name, include a product and a power somewhere in the type,
and have a hypothesis of the form _ < _ (if
there were any such lemmas). Metavariables (?a) are
assigned independently in each filter.
The #lucky button will directly send you to the
documentation of the first hit.
Source code
You can find the source code for this service at https://github.com/nomeata/loogle. The https://loogle.lean-lang.org/ service is provided by the Lean FRO. Please review the Lean FRO Terms of Use and Privacy Policy.
This is Loogle revision 9f11169 serving mathlib revision ce5dd8c