-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #298 from Noaillesss/master
Axiom/Circle
- Loading branch information
Showing
11 changed files
with
990 additions
and
412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import EuclideanGeometry.Foundation.Axiom.Basic.Plane | ||
|
||
noncomputable section | ||
namespace EuclidGeom | ||
|
||
variable {P : Type _} [EuclideanPlane P] | ||
|
||
/- point reflection -/ | ||
def pt_flip (A O : P) : P := (VEC A O) +ᵥ O | ||
|
||
theorem pt_flip_symm {A B O : P} (h : B = pt_flip A O) : A = pt_flip B O := by | ||
rw [h] | ||
unfold pt_flip Vec.mkPtPt | ||
rw [vsub_vadd_eq_vsub_sub] | ||
simp | ||
|
||
theorem pt_flip_vec_eq {A B O : P} (h : B = pt_flip A O) : VEC A O = VEC O B := by | ||
rw [h, pt_flip, Vec.mkPtPt, Vec.mkPtPt] | ||
simp | ||
|
||
theorem pt_flip_vec_eq_half_vec {A B O : P} (h : B = pt_flip A O) : VEC A O = (1 / 2 : ℝ) • (VEC A B) := by | ||
symm | ||
calc | ||
_ = (1 / 2 : ℝ) • (VEC A O + VEC O B) := by rw [vec_add_vec] | ||
_ = VEC A O := by | ||
rw [← pt_flip_vec_eq h, ← two_smul ℝ, smul_smul] | ||
simp | ||
|
||
end EuclidGeom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.