Skip to content

Commit

Permalink
Vector Major Update
Browse files Browse the repository at this point in the history
changed the foundation from being building upon R x R to C
  • Loading branch information
jjdishere committed Sep 18, 2023
1 parent a1ba889 commit f912a80
Show file tree
Hide file tree
Showing 6 changed files with 1,162 additions and 355 deletions.
8 changes: 4 additions & 4 deletions EuclideanGeometry/Foundation/Axiom/Basic/Plane.lean
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ noncomputable section
namespace EuclidGeom

/- Define Euclidean plane as normed vector space over ℝ of dimension 2 -/
class EuclideanPlane (P : Type _) extends MetricSpace P, @NormedAddTorsor (Vec) P Vec.SeminormedAddCommGroup _
class EuclideanPlane (P : Type _) extends MetricSpace P, @NormedAddTorsor Vec P _ _

variable {P : Type _} [EuclideanPlane P]

Expand All @@ -38,10 +38,10 @@ def Vec.mk_pt_pt (A B : P) : (Vec) := (B -ᵥ A)
scoped notation "VEC" => Vec.mk_pt_pt

instance : EuclideanPlane (Vec) where
toMetricSpace := Vec.MetricSpace
toNormedAddTorsor := @SeminormedAddCommGroup.toNormedAddTorsor _ Vec.SeminormedAddCommGroup
toMetricSpace := _
toNormedAddTorsor := @SeminormedAddCommGroup.toNormedAddTorsor _ _

instance : @NormedAddTorsor (Vec) P Vec.SeminormedAddCommGroup _ := EuclideanPlane.toNormedAddTorsor
instance : @NormedAddTorsor (Vec) P _ _ := EuclideanPlane.toNormedAddTorsor

instance : AddTorsor (Vec) P := by infer_instance

Expand Down
Loading

0 comments on commit f912a80

Please sign in to comment.