Graded branes on the flat two-torus and Kontsevich's triangle counts
DefinitionKontsevichHMS_TorusBraneThis file sets up the A-side data of the last section of Kontsevich's address, Two-dimensional tori: a return.
The symplectic manifold is the flat torus , with the translation-invariant area form normalised by a parameter : a region of Euclidean area has symplectic area .
A brane is a closed geodesic equipped with a grading and a flat unitary line bundle. Concretely it consists of a primitive vector and a point , determining the geodesic ; a real number , the grading, constrained so that is a nonzero real multiple of , i.e. a real lift of the direction angle divided by ; and a real constant , the flat connection, whose parallel transport along a path of parameter length is .
Two branes are transverse when . The set of intersection points indexes a basis of the Floer space , which is concentrated in the Maslov degree .
Given three branes and intersection points , and , a triangle is a triple of lifts of to the universal cover with along a lift of , along a lift of and along a lift of , positively oriented; the vertex is normalised to lie in , which selects exactly one representative of each -translation class. Kontsevich's structure constant is the sum of the weights of all such triangles,
where are the parameter lengths of the three sides; it is the coefficient of in the product .
import Mathlib
/-!
# Graded Lagrangian branes on the flat two-torus, and Kontsevich's triangle counts
This file sets up the data appearing in the last section ("Two-dimensional tori: a return")
of M. Kontsevich, *Homological algebra of mirror symmetry*, ICM 1994 (alg-geom/9411018),
pp. 18-19.
The symplectic manifold is the standard flat torus `Σ = ℝ²/ℤ²` with the area form scaled so
that the total area is `area > 0`. Objects of Fukaya's category (enlarged by unitary local
systems) are closed geodesics carrying a flat unitary line bundle; a geodesic carries in
addition a grading, i.e. a real lift of the direction angle, which produces the Maslov
grading on morphism spaces.
Morphisms between two transverse branes are spanned by the intersection points, and
Kontsevich's composition `m₂` is the sum over triangles in the universal cover `ℝ²` with
sides on the three geodesics, each weighted by `exp(-area of the triangle)` and by the
holonomies of the local systems along its sides.
-/
namespace KontsevichHMS
open scoped Real
/-- The flat two-torus `ℝ²/ℤ²`. -/
abbrev Torus : Type := AddCircle (1 : ℝ) × AddCircle (1 : ℝ)
/-- The universal covering projection `ℝ² → ℝ²/ℤ²`. -/
def proj (x : ℝ × ℝ) : Torus := ((x.1 : AddCircle (1 : ℝ)), (x.2 : AddCircle (1 : ℝ)))
/-- The determinant of two plane vectors; `det2 x y` is twice the signed area of the
triangle `0, x, y`. -/
def det2 (x y : ℝ × ℝ) : ℝ := x.1 * y.2 - x.2 * y.1
/-- A graded Lagrangian brane on the flat torus: a closed geodesic through `base` with
primitive integral direction `dir`, a grading `grading` (a real lift of the direction angle,
normalised so that the angle is `π * grading`), and a flat unitary line bundle whose
holonomy around a loop of parameter length `s` is `exp (2πi * conn * s)`. -/
structure Brane where
/-- The primitive integral direction vector of the geodesic. -/
dir : ℤ × ℤ
/-- The direction vector is primitive. -/
dir_primitive : IsCoprime dir.1 dir.2
/-- A point the geodesic passes through. -/
base : ℝ × ℝ
/-- The grading: a real number whose angle `π * grading` points along `dir`. -/
grading : ℝ
/-- The grading is a lift of the direction angle. -/
grading_dir : ∃ t : ℝ, t ≠ 0 ∧
(Real.cos (π * grading), Real.sin (π * grading)) = t • ((dir.1 : ℝ), (dir.2 : ℝ))
/-- The flat unitary connection on the line bundle, as a real constant. -/
conn : ℝ
namespace Brane
/-- The direction vector of a brane, as a real vector. -/
def dirR (b : Brane) : ℝ × ℝ := ((b.dir.1 : ℝ), (b.dir.2 : ℝ))
/-- The preimage in `ℝ²` of the geodesic of `b`: the union of all its lifts. -/
def liftLine (b : Brane) : Set (ℝ × ℝ) :=
{x | ∃ (t : ℝ) (g : ℤ × ℤ), x = b.base + t • b.dirR + ((g.1 : ℝ), (g.2 : ℝ))}
/-- The closed geodesic of `b`, as a subset of the torus. -/
def line (b : Brane) : Set Torus := proj '' b.liftLine
/-- Two branes are transverse when their directions are not parallel. -/
def Transverse (b₁ b₂ : Brane) : Prop := det2 b₁.dirR b₂.dirR ≠ 0
/-- The (finite, for transverse branes) set of intersection points of two branes; it indexes
a basis of the Floer complex `Hom(b₁, b₂)`. -/
def isect (b₁ b₂ : Brane) : Set Torus := b₁.line ∩ b₂.line
/-- The Maslov index of an intersection of two graded branes on a surface: `⌈α₂ - α₁⌉`,
where `αᵢ` are the gradings. It is the degree in which the Floer complex
`Hom(b₁, b₂)` is concentrated. -/
noncomputable def maslov (b₁ b₂ : Brane) : ℤ := ⌈b₂.grading - b₁.grading⌉
/-- The parameter length of a displacement `w` along the direction of `b`: the real number
`s` with `w = s • dirR b` when `w` is parallel to `dirR b`. -/
noncomputable def param (b : Brane) (w : ℝ × ℝ) : ℝ :=
(w.1 * b.dirR.1 + w.2 * b.dirR.2) / (b.dirR.1 ^ 2 + b.dirR.2 ^ 2)
end Brane
open Brane
/-- The set of holomorphic triangles contributing to the coefficient of `r` in the product
`m₂(p, q)`, where `p ∈ b₁ ∩ b₂`, `q ∈ b₂ ∩ b₃` and `r ∈ b₁ ∩ b₃`.
A triangle is a triple of vertices `(P, Q, R)` in the universal cover lifting `(p, q, r)`,
with the side `PQ` on a lift of `b₂`, the side `QR` on a lift of `b₃` and the side `RP` on a
lift of `b₁`, and positively oriented. Translating by `ℤ²` acts freely on such triples, and
the normalisation `P ∈ [0,1) × [0,1)` picks exactly one representative of each orbit. -/
def triangles (b₁ b₂ b₃ : Brane) (p q r : Torus) :
Set ((ℝ × ℝ) × (ℝ × ℝ) × (ℝ × ℝ)) :=
{T | proj T.1 = p ∧ T.1.1 ∈ Set.Ico (0 : ℝ) 1 ∧ T.1.2 ∈ Set.Ico (0 : ℝ) 1 ∧
proj T.2.1 = q ∧ proj T.2.2 = r ∧
det2 (T.2.1 - T.1) b₂.dirR = 0 ∧
det2 (T.2.2 - T.2.1) b₃.dirR = 0 ∧
det2 (T.1 - T.2.2) b₁.dirR = 0 ∧
0 < det2 (T.2.1 - T.1) (T.2.2 - T.1)}
/-- The weight of a triangle: `exp (- symplectic area)` times the holonomies of the three
flat line bundles along the three sides. -/
noncomputable def triangleWeight (area : ℝ) (b₁ b₂ b₃ : Brane)
(T : (ℝ × ℝ) × (ℝ × ℝ) × (ℝ × ℝ)) : ℂ :=
Complex.exp (-(area * det2 (T.2.1 - T.1) (T.2.2 - T.1) / 2 : ℝ)) *
Complex.exp (2 * π * Complex.I *
((b₂.conn * param b₂ (T.2.1 - T.1) + b₃.conn * param b₃ (T.2.2 - T.2.1)
+ b₁.conn * param b₁ (T.1 - T.2.2) : ℝ)))
/-- Kontsevich's structure constant: the coefficient of the intersection point `r` in the
composition `m₂(p, q)` of the intersection points `p ∈ b₁ ∩ b₂` and `q ∈ b₂ ∩ b₃`, on the
torus of total area `area`. It is the sum of the weights of all contributing triangles. -/
noncomputable def mTwoCoeff (area : ℝ) (b₁ b₂ b₃ : Brane) (p q r : Torus) : ℂ :=
∑' T : ↥(triangles b₁ b₂ b₃ p q r), triangleWeight area b₁ b₂ b₃ T.1
end KontsevichHMS
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Disclosure: this read-back is not independent. It was written by the same agent that drafted the Lean statements in this proposal, at the explicit instruction of the proposal owner, rather than by a separate auditor reading the code blind. It is therefore not independent testimony and may repeat any misreading already present in the formalization; please check it against the Lean code directly.
All objects below live over the reals; denotes the real number pi.
Torus is the product of two copies of the additive circle of circumference . proj sends to the pair of classes of and . det2 sends to .
The structure Brane. A term consists of: a pair of integers; a proof that and are coprime in the sense of Bézout (there exist integers with ; note this forces ); a pair ; a real number ; a proof that there exists a real with as real pairs; and a real number . Nothing constrains .
dirR is the direction as a real pair . liftLine of a brane is the set of of the form for some real and some integer pair — the union of all lifts of the geodesic. line is the image of that set under proj. Transverse of is the proposition . isect of is the intersection of the two subsets , of the torus; no finiteness is asserted, and for two branes with the same direction the two lines may coincide, making this set infinite. maslov of is the integer , the least integer , where are the gradings; it depends only on the gradings, not on the directions, the base points or any intersection point. param of a brane and a vector is the real number ; the denominator is nonzero because is primitive, and if then this value is .
triangles of three branes and three torus points is the set of triples of elements of satisfying all of: ; and ; ; ; ; ; ; and . The last condition excludes degenerate triples and fixes one of the two orientations. There is no requirement that lie on or , nor on or , nor on or ; if those memberships fail the set is empty. Nothing asserts that this set is finite.
triangleWeight of a real number , three branes and a triple is the complex number
where is the conn field of and both real expressions are coerced into . The formula is applied to any triple, whether or not it is a triangle.
mTwoCoeff of , three branes and three torus points is the unconditional sum of triangleWeight over the subtype of the set triangles. This is a tsum: if the family is not summable the value is by convention, and if the set is empty the value is . No positivity assumption on and no transversality assumption on the branes is imposed anywhere in this file.