Skip to content

Commit

Permalink
make variable naming more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesGallicchio committed Jun 9, 2024
1 parent f88d7f5 commit a6481d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ITP/geometry.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
ConvexIndep S ∧ EmptyShapeIn S P

/-- `HasEmptyKGon k P' means that `P' has a convex `k'-gon in `P' -/
def HasEmptyKGon (k : Nat) (S : Set Point) : Prop :=
s : Finset Point, s.card = k ∧ ↑sS ∧ ConvexEmptyIn s S
def HasEmptyKGon (k : Nat) (P : Set Point) : Prop :=
S : Finset Point, S.card = k ∧ ↑SP ∧ ConvexEmptyIn S P
\end{lstlisting}

Let \lstinline|SetInGenPos| be a predicate that states that a set of points is in \emph{general position}, i.e., no three points lie on a common line (made precise in~\Cref{sec:triple-orientations}).
Expand Down
8 changes: 4 additions & 4 deletions Lean/Geo/Definitions/Structures.lean
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@ theorem EmptyShapeIn.split (cvx : ConvexIndep S) (ha : a ∈ S) (hb : b ∈ S)
(H2 : EmptyShapeIn {x ∈ S | σ a b x ≠ .cw} P) : EmptyShapeIn S P := fun _ ⟨pP, pS⟩ hn =>
(split_convexHull cvx ha hb hn).elim (H1 _ ⟨pP, mt And.left pS⟩) (H2 _ ⟨pP, mt And.left pS⟩)

def HasEmptyKGon (n : Nat) (S : Set Point) : Prop :=
s : Finset Point, s.card = n ∧ ↑sS ∧ ConvexEmptyIn s S
def HasEmptyKGon (n : Nat) (P : Set Point) : Prop :=
S : Finset Point, S.card = n ∧ ↑SP ∧ ConvexEmptyIn S P

def HasConvexKGon (n : Nat) (S : Set Point) : Prop :=
s : Finset Point, s.card = n ∧ ↑sS ∧ ConvexIndep s
def HasConvexKGon (n : Nat) (P : Set Point) : Prop :=
S : Finset Point, S.card = n ∧ ↑SP ∧ ConvexIndep S

end Geo

0 comments on commit a6481d7

Please sign in to comment.