Flyspeck

Formally proving Kepler's conjecture (homepage see below)

Case study

 * Long-term goal: support Flyspeck in SWiM
 * Both SWiM and Semantic MediaWiki have been evaluated for their support for Flyspeck. On top of Semantic MediaWiki, we have prototyped a bit more.

Steps working here:
 * 1) The “master source” is a large Twelf file (e.g. this one with definitions from trigonometry), manually annotated with a few wiki-specific metadata (topical categorization)
 * 2) upload this file into the wiki (using a special page; sources)
 * 3) The upload handler breaks the file down into fragments and for each Twelf fragment creates
 * 4) * one page only containing the Twelf code (with its mathematical document type annotated and symbols linked to the place of their declaration in the wiki). This page is overwritten on subsequent uploads.
 * 5) * one page including the Twelf formalization and a LaTeX representation, leaving additional space for manual annotations. This page is never overwritten.  These pages are categorized by topic according to metadata given in the
 * 6) * So far, no LaTeX is generated automatically. For a few pages ( written in::LaTeX ), LaTeX sources from the Flyspeck book have been added manually.  Soon, it will also be possible to obtain a LaTeX representation of the Twelf formalization automatically.
 * 7) Browse, query, search, annotate :-)

Overview
Container pages including Twelf formalizations, human-readable LaTeX (possibly), and manual annotations: All these lists are generated automatically by inline queries.
 * Symbols:
 * Definitions:
 * Lemmas:

Note about the features used:
 * All symbols are linked to their declaration/definition
 * All pages can be exported. (The format is not nice, but with a script, it should be easy to adapt.)

Query results: “all proven lemmas with a Twelf formalization” written in::Twelf (source code:  – Note that the query syntax will change in the next release of Semantic MediaWiki!)