-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: port LinearAlgebra.AffineSpace.Basic (#2165)
- Loading branch information
1 parent
9ec2a6f
commit 4dc0dd1
Showing
2 changed files
with
47 additions
and
0 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
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,46 @@ | ||
/- | ||
Copyright (c) 2020 Joseph Myers. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Joseph Myers | ||
! This file was ported from Lean 3 source module linear_algebra.affine_space.basic | ||
! leanprover-community/mathlib commit 98e83c3d541c77cdb7da20d79611a780ff8e7d90 | ||
! Please do not edit these lines, except to modify the commit id | ||
! if you have ported upstream changes. | ||
-/ | ||
import Mathlib.Algebra.AddTorsor | ||
|
||
/-! | ||
# Affine space | ||
In this file we introduce the following notation: | ||
* `AffineSpace V P` is an alternative notation for `AddTorsor V P` introduced at the end of this | ||
file. | ||
We tried to use an `abbreviation` instead of a `notation` but this led to hard-to-debug elaboration | ||
errors. So, we introduce a localized notation instead. When this notation is enabled with | ||
`open Affine`, Lean will use `AffineSpace` instead of `AddTorsor` both in input and in the | ||
proof state. | ||
Here is an incomplete list of notions related to affine spaces, all of them are defined in other | ||
files: | ||
* `AffineMap`: a map between affine spaces that preserves the affine structure; | ||
* `AffineEquiv`: an equivalence between affine spaces that preserves the affine structure; | ||
* `AffineSubspace`: a subset of an affine space closed w.r.t. affine combinations of points; | ||
* `AffineCombination`: an affine combination of points; | ||
* `AffineIndependent`: affine independent set of points; | ||
* `AffineBasis.coord`: the barycentric coordinate of a point. | ||
## TODO | ||
Some key definitions are not yet present. | ||
* Affine frames. An affine frame might perhaps be represented as an `AffineEquiv` to a `Finsupp` | ||
(in the general case) or function type (in the finite-dimensional case) that gives the | ||
coordinates, with appropriate proofs of existence when `k` is a field. | ||
-/ | ||
|
||
|
||
scoped[Affine] notation "AffineSpace" => AddTorsor |