@@ -3,7 +3,7 @@ Copyright (c) 2020 Yury Kudryashov. All rights reserved.
33Released under Apache 2.0 license as described in the file LICENSE.
44Authors: Yury Kudryashov
55-/
6- import algebra.char_p. invertible
6+ import algebra.invertible
77import linear_algebra.affine_space.affine_equiv
88
99/-!
@@ -175,36 +175,6 @@ by rw midpoint_comm; simp
175175
176176end
177177
178- lemma line_map_inv_two {R : Type *} {V P : Type *} [division_ring R] [char_zero R]
179- [add_comm_group V] [module R V] [add_torsor V P] (a b : P) :
180- line_map a b (2 ⁻¹:R) = midpoint R a b :=
181- rfl
182-
183- lemma line_map_one_half {R : Type *} {V P : Type *} [division_ring R] [char_zero R]
184- [add_comm_group V] [module R V] [add_torsor V P] (a b : P) :
185- line_map a b (1 /2 :R) = midpoint R a b :=
186- by rw [one_div, line_map_inv_two]
187-
188- lemma homothety_inv_of_two {R : Type *} {V P : Type *} [comm_ring R] [invertible (2 :R)]
189- [add_comm_group V] [module R V] [add_torsor V P] (a b : P) :
190- homothety a (⅟2 :R) b = midpoint R a b :=
191- rfl
192-
193- lemma homothety_inv_two {k : Type *} {V P : Type *} [field k] [char_zero k]
194- [add_comm_group V] [module k V] [add_torsor V P] (a b : P) :
195- homothety a (2 ⁻¹:k) b = midpoint k a b :=
196- rfl
197-
198- lemma homothety_one_half {k : Type *} {V P : Type *} [field k] [char_zero k]
199- [add_comm_group V] [module k V] [add_torsor V P] (a b : P) :
200- homothety a (1 /2 :k) b = midpoint k a b :=
201- by rw [one_div, homothety_inv_two]
202-
203- @[simp] lemma pi_midpoint_apply {k ι : Type *} {V : Π i : ι, Type *} {P : Π i : ι, Type *} [field k]
204- [invertible (2 :k)] [Π i, add_comm_group (V i)] [Π i, module k (V i)]
205- [Π i, add_torsor (V i) (P i)] (f g : Π i, P i) (i : ι) :
206- midpoint k f g i = midpoint k (f i) (g i) := rfl
207-
208178namespace add_monoid_hom
209179
210180variables (R R' : Type *) {E F : Type *}
0 commit comments