-
Notifications
You must be signed in to change notification settings - Fork 55
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
define and prove properties of orthocenters with vector algebra #294
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import EuclideanGeometry.Foundation.Axiom.Triangle.Basic | ||
import EuclideanGeometry.Foundation.Axiom.Linear.Perpendicular | ||
|
||
/-! | ||
|
||
|
@@ -10,7 +11,15 @@ variable {P : Type _} [EuclideanPlane P] | |
|
||
def TriangleND.Height1 (tr_nd : TriangleND P) : SegND P := sorry | ||
|
||
structure IsOrthocenter (tr_nd : TriangleND P) (H : P) : Prop where | ||
-- this takes care of corner cases such as right triangles, where AH ⟂ BC runs into trouble since A = H | ||
def IsOrthocenter (tr_nd : TriangleND P) (H : P) : Prop := inner (VEC tr_nd.point₁ H) (VEC tr_nd.point₂ tr_nd.point₃) = (0 : ℝ) ∧ inner (VEC tr_nd.point₂ H) (VEC tr_nd.point₃ tr_nd.point₁) = (0 : ℝ) ∧ inner (VEC tr_nd.point₃ H) (VEC tr_nd.point₁ tr_nd.point₂) = (0 : ℝ) | ||
|
||
theorem orthocenter_exists (tr : Triangle P) (H : P) (h₁ : inner (VEC tr.point₁ H) (VEC tr.point₂ tr.point₃) = (0 : ℝ)) (h₂ : inner (VEC tr.point₂ H) (VEC tr.point₃ tr.point₁) = (0 : ℝ)) : inner (VEC tr.point₃ H) (VEC tr.point₁ tr.point₂) = (0 : ℝ) := by | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This theorem could be instead stated as a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This strategy is used in the file There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, this can be implemented. But surely there is no need to complete everything in one commit? |
||
set A := tr.point₁ | ||
set B := tr.point₂ | ||
set C := tr.point₃ | ||
rw [← vec_sub_vec C, inner_sub_left, sub_eq_zero] at h₁ h₂ | ||
rw [← vec_sub_vec C A B, inner_sub_right, sub_eq_zero, ← neg_vec B C, inner_neg_right, h₁, h₂, real_inner_comm, ← inner_neg_left, neg_vec] | ||
|
||
def TriangleND.Orthocenter (tr_nd : TriangleND P) : P := sorry | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to avoid usage of plural
and
.perpendicular
, orperp foot
orLiesOn Height1
to define orthocenter? I do hope that there will be a "uniform" way of defining each center of a triangle. This needs a further discussion.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PlanFiles
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LiesOn Height1 will work, but the necessary lemmas are not ready yet.