Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
FR-vdash-bot committed Jan 15, 2024
1 parent b22cf8d commit 0518f3e
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 27 deletions.
2 changes: 1 addition & 1 deletion EuclideanGeometry/Foundation/Axiom/Linear/Line.lean
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import EuclideanGeometry.Foundation.Axiom.Linear.Colinear
import EuclideanGeometry.Foundation.Axiom.Linear.Collinear
import EuclideanGeometry.Foundation.Axiom.Linear.Ray

noncomputable section
Expand Down
2 changes: 1 addition & 1 deletion EuclideanGeometry/Foundation/Axiom/Position/Angle_ex2.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import EuclideanGeometry.Foundation.Axiom.Position.Angle
import EuclideanGeometry.Foundation.Axiom.Linear.Colinear
import EuclideanGeometry.Foundation.Axiom.Linear.Collinear

noncomputable section

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import EuclideanGeometry.Foundation.Axiom.Linear.Colinear
import EuclideanGeometry.Foundation.Axiom.Linear.Collinear
import EuclideanGeometry.Foundation.Axiom.Linear.Parallel
import EuclideanGeometry.Foundation.Axiom.Position.Angle
import EuclideanGeometry.Foundation.Axiom.Position.Angle_trash
Expand Down
2 changes: 1 addition & 1 deletion EuclideanGeometry/Foundation/Axiom/Triangle/Basic.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import EuclideanGeometry.Foundation.Axiom.Position.Orientation
import EuclideanGeometry.Foundation.Axiom.Linear.Colinear
import EuclideanGeometry.Foundation.Axiom.Linear.Collinear

universe u

Expand Down
4 changes: 2 additions & 2 deletions EuclideanGeometry/Foundation/Index.lean
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import EuclideanGeometry.Foundation.Axiom.Basic.Class
/- Axiom.Linear -/
import EuclideanGeometry.Foundation.Axiom.Linear.Ray
import EuclideanGeometry.Foundation.Axiom.Linear.Ray_trash
import EuclideanGeometry.Foundation.Axiom.Linear.Colinear
import EuclideanGeometry.Foundation.Axiom.Linear.Collinear
import EuclideanGeometry.Foundation.Axiom.Linear.Line
import EuclideanGeometry.Foundation.Axiom.Linear.Class
import EuclideanGeometry.Foundation.Axiom.Linear.Parallel
Expand Down Expand Up @@ -40,7 +40,7 @@ import EuclideanGeometry.Foundation.Axiom.Circle.CirclePower
import EuclideanGeometry.Foundation.Tactic.Congruence.Attr
import EuclideanGeometry.Foundation.Tactic.Congruence.Congruence
-- import EuclideanGeometry.Foundation.Tactic.Congruence.Congruence' -- `need to avoid some name collision during initialization?`
import EuclideanGeometry.Foundation.Tactic.Colinear.perm_collinear
import EuclideanGeometry.Foundation.Tactic.Collinear.perm_collinear

/- Constuction -/
import EuclideanGeometry.Foundation.Construction.Inversion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import EuclideanGeometry.Foundation.Axiom.Linear.Colinear
import EuclideanGeometry.Foundation.Axiom.Linear.Collinear

namespace EuclidGeom

open Lean Lean.Meta Lean.Elab Lean.Elab.Tactic Qq

variable {P : Type _} [EuclideanPlane P]

def extractColinear (expr : Q(Prop)) : MetaM (Option Expr) :=
def extractCollinear (expr : Q(Prop)) : MetaM (Option Expr) :=
match expr with
| ~q(@EuclidGeom.collinear _ (_) _ _ _) =>
return .some expr
| _ => return .none

def getColinearDeclNames : TacticM (List Name) := withMainContext do
def getCollinearDeclNames : TacticM (List Name) := withMainContext do
flip (<- getLCtx).foldlM [] fun acc x => do
let type := x.type
pure $ match <- (extractColinear type) with
pure $ match <- (extractCollinear type) with
| .some _ => x.userName :: acc
| .none => acc

Expand All @@ -25,7 +25,7 @@ syntax (name := perm_collinear) "perm_collinear" : tactic
def evalPerm_collinear : Tactic := fun stx =>
match stx with
| `(tactic| perm_collinear) => withTheReader Term.Context ({· with errToSorry := false }) do
let collinearDeclNames <- getColinearDeclNames
let collinearDeclNames <- getCollinearDeclNames
for x0 in collinearDeclNames do
let x0 := mkIdent x0
try
Expand Down
2 changes: 1 addition & 1 deletion EuclideanGeometry/Unused/Line.lean
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import EuclideanGeometry.Foundation.Axiom.Linear.Colinear
import EuclideanGeometry.Foundation.Axiom.Linear.Collinear

noncomputable section
namespace EuclidGeom
Expand Down
2 changes: 1 addition & 1 deletion Plan_files/DetailedPlan/Axiom-Linear.txt
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ Theorem
\end{itemize}


\section{Content in file Colinear.lean}
\section{Content in file Collinear.lean}

In this section, We discuss colinarity of points on a plane.

Expand Down
2 changes: 1 addition & 1 deletion Plan_files/Plan.lean
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Axiom Folder
subfolder : Linear
Ray -- Define segments and rays (including midpoint here)
Colinear -- Define colinarity
Collinear -- Define collinearity
Line -- Define lines, define the class LinObj and unify their toProj
Parallel -- Define parallel lines and basic properties
Perpendicular -- Define the perpendicular lines and perpendicular foot
Expand Down
13 changes: 0 additions & 13 deletions lakefile.lean
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
import Lake
open Lake DSL

def moreServerArgs := #[
"-Dpp.unicode.fun=true", -- pretty-prints `fun a ↦ b`
"-Dpp.proofs.withType=false",
"-DautoImplicit=false",
"-DrelaxedAutoImplicit=false"
]

def moreLeanArgs := moreServerArgs

package EG where
moreServerArgs := moreServerArgs
moreLeanArgs := moreLeanArgs
/- for leanprover/lean4:v4.4.0-rc1
leanOptions := #[
`pp.unicode.fun, true⟩, -- pretty-prints `fun a ↦ b`
`pp.proofs.withType, false⟩,
`autoImplicit, false⟩,
`relaxedAutoImplicit, false
]
-/

@[default_target]
lean_lib «EuclideanGeometry» {
Expand Down

0 comments on commit 0518f3e

Please sign in to comment.