Physlib
← API Maps

Create an API Map

Choose a topic, explain the physics, and link to the Lean results that formalize it.

How to write an API Map

An API Map covers one area of physics in Physlib. It explains the physics in words, and points from each statement to the Lean declarations that formalize it.

  1. One article per topic. Save it in the Physlib folder it describes.
  2. Fixed headings. A # Title, then ## Abstract (Alpha) (one paragraph, no citations), ## Content (Alpha) (prose, split by ### subsections), ## Lean References and ## References.
  3. Content first. State the physics as you would to a colleague who does not know the Lean names. End each claim with a Lean citation such as [1], one number per bracket. If it still needs to be formalized, mark it [TODO].
  4. Lean references. Number them from 1 and cite each one. An entry is the file and its declarations, e.g. 1. Physlib/SpaceAndTime/Time/Basic.lean — `Time`, `Time.val`.
  5. Literature and other API Maps go under References and are cited with curly brackets, {1}. Don't put links in the text itself.
  6. New articles start as Alpha. Physlib changes their status after review.

Read the full guide or see an example. Before opening a pull request, check the file with lake exe api_map_lint.

1. Where will it live?

  • Physlib/ClassicalFieldTheory/GaugeTheoryRead article →
  • Physlib/ClassicalMechanics/ConfigurationSpaceRead article →
  • Physlib/ClassicalMechanics/DampedHarmonicOscillatorRead article →
  • Physlib/ClassicalMechanics/HamiltonianMechanicsRead article →
  • Physlib/ClassicalMechanics/HarmonicOscillator/GeometricRead article →
  • Physlib/ClassicalMechanics/LagrangianRead article →
  • Physlib/ClassicalMechanics/OrbitalMechanicsRead article →
  • Physlib/ClassicalMechanics/PendulumRead article →
  • Physlib/ClassicalMechanics/Pendulum/SimplePendulumRead article →
  • Physlib/ClassicalMechanics/PointParticle/NewtonianSystemRead article →
  • Physlib/ClassicalMechanics/RigidBodyRead article →
  • Physlib/Cosmology/FLRWRead article →
  • Physlib/Electromagnetism/KinematicsRead article →
  • Physlib/FluidDynamicsRead article →
  • Physlib/LatticeQFTRead article →
  • Physlib/Particles/BeyondTheStandardModel/TwoHDMRead article →
  • Physlib/Particles/StandardModel/GaugeGroupRead article →
  • Physlib/Particles/StandardModel/HiggsBosonRead article →
  • Physlib/QFT/PerturbationTheory/FeynmanDiagramsRead article →
  • Physlib/QuantumMechanics/BlackbodyRead article →
  • Physlib/QuantumMechanics/HilbertSpaces/SpaceDRead article →
  • Physlib/QuantumMechanics/HilbertSpaces/TensorProductsRead article →
  • Physlib/QuantumMechanics/OperatorsRead article →
  • Physlib/QuantumMechanics/Operators/SpectralTheoryRead article →
  • Physlib/QuantumMechanics/QuantumSystemRead article →
  • Physlib/Relativity/Fermions/DiracRead article →
  • Physlib/Relativity/Fermions/WeylRead article →
  • Physlib/Relativity/LorentzGroupRead article →
  • Physlib/Relativity/TensorsRead article →

Choose a folder for the article.

2. Write it

Replace the placeholder text and keep the headings. Preview shows the page as readers will see it.
Cite

Submitting opens GitHub in a new tab with an issue on leanprover-community/physlib filled in; you press Create. You must be signed in to a GitHub account. If the suggestion is accepted, you'll be credited as a co-author.

Comfortable with Git? Create the file on GitHub to open a pull request directly (choose a folder first).