refactor: some docs

This commit is contained in:
jstoobysmith 2025-02-14 08:50:24 +00:00
parent 1b8360fda8
commit e1303cbcf8
14 changed files with 46 additions and 46 deletions

View file

@ -3,8 +3,8 @@ Copyright (c) 2024 Joseph Tooby-Smith. All rights reserved.
Released under Apache 2.0 license.
Authors: Joseph Tooby-Smith
-/
import HepLean.Meta.Basic
import HepLean.Meta.TODO.Basic
import PhysLean.Meta.Basic
import PhysLean.Meta.TODO.Basic
import Mathlib.Lean.CoreM
/-!
@ -12,7 +12,7 @@ import Mathlib.Lean.CoreM
-/
open Lean System Meta HepLean
open Lean System Meta PhysLean
unsafe def getTodoInfo : MetaM (List todoInfo) := do
@ -34,7 +34,7 @@ unsafe def todosToYAML : MetaM String := do
unsafe def main (args : List String) : IO UInt32 := do
initSearchPath (← findSysroot)
let ymlString ← CoreM.withImportModules #[`HepLean] (todosToYAML).run'
let ymlString ← CoreM.withImportModules #[`PhysLean] (todosToYAML).run'
println! ymlString
let fileOut : System.FilePath := {toString := "./docs/_data/TODO.yml"}
if "mkFile" ∈ args then

View file

@ -5,8 +5,8 @@ Authors: Joseph Tooby-Smith
-/
import Batteries.Lean.HashSet
import Lean
import HepLean.Meta.AllFilePaths
import HepLean.Meta.TransverseTactics
import PhysLean.Meta.AllFilePaths
import PhysLean.Meta.TransverseTactics
/-!
This file produces a list of places where `rfl` will complete the goal.

View file

@ -6,8 +6,8 @@ Authors: Joseph Tooby-Smith
import Batteries.Lean.HashSet
import Batteries.Data.String.Matcher
import Lean
import HepLean.Meta.AllFilePaths
import HepLean.Meta.TransverseTactics
import PhysLean.Meta.AllFilePaths
import PhysLean.Meta.TransverseTactics
/-!
This file checks for non-terminating `simp` tactics which do not appear as `simp only`.

View file

@ -3,7 +3,7 @@ Copyright (c) 2024 Joseph Tooby-Smith. All rights reserved.
Released under Apache 2.0 license.
Authors: Joseph Tooby-Smith
-/
import HepLean.Meta.Informal.Post
import PhysLean.Meta.Informal.Post
import Mathlib.Lean.CoreM
/-!

View file

@ -3,18 +3,18 @@ Copyright (c) 2024 Joseph Tooby-Smith. All rights reserved.
Released under Apache 2.0 license.
Authors: Joseph Tooby-Smith
-/
import HepLean.Meta.Basic
import HepLean.Meta.Remark.Properties
import HepLean.Meta.Notes.ToHTML
import PhysLean.Meta.Basic
import PhysLean.Meta.Remark.Properties
import PhysLean.Meta.Notes.ToHTML
import Mathlib.Lean.CoreM
import HepLean
import PhysLean
/-!
# Extracting notes from Lean files
-/
open Lean System Meta HepLean
open Lean System Meta PhysLean
inductive NameStatus
| complete : NameStatus
@ -149,7 +149,7 @@ def perturbationTheory : Note where
.name `FieldSpecification.wicks_theorem_context .incomplete,
.p "In this note we walk through the important parts of the proof of the three versions of
Wick's theorem for field operators containing carrying both fermionic and bosonic statitics,
as it appears in HepLean. Not every lemma or definition is covered here.
as it appears in PhysLean. Not every lemma or definition is covered here.
The aim is to give just enough that the story can be understood.",
.p "
Before proceeding with the steps in the proof, we review some basic terminology
@ -292,7 +292,7 @@ def perturbationTheory : Note where
unsafe def main (_ : List String) : IO UInt32 := do
initSearchPath (← findSysroot)
let ymlString ← CoreM.withImportModules #[`HepLean] (perturbationTheory.toYML).run'
let ymlString ← CoreM.withImportModules #[`PhysLean] (perturbationTheory.toYML).run'
let fileOut : System.FilePath := {toString := "./docs/_data/perturbationTheory.yml"}
IO.println (s!"YML file made.")
IO.FS.writeFile fileOut ymlString

View file

@ -3,7 +3,7 @@ Copyright (c) 2024 Joseph Tooby-Smith. All rights reserved.
Released under Apache 2.0 license.
Authors: Joseph Tooby-Smith
-/
import HepLean.Meta.Basic
import PhysLean.Meta.Basic
import ImportGraph.Imports
/-!
@ -11,7 +11,7 @@ import ImportGraph.Imports
-/
open Lean System Meta HepLean
open Lean System Meta PhysLean
def Imports.RedundentImports (imp : Import) : MetaM UInt32 := do
@ -25,5 +25,5 @@ def Imports.RedundentImports (imp : Import) : MetaM UInt32 := do
unsafe def main (_ : List String) : IO UInt32 := do
initSearchPath (← findSysroot)
let imports ← allImports
let _ ← CoreM.withImportModules #[`HepLean] (imports.mapM Imports.RedundentImports).run'
let _ ← CoreM.withImportModules #[`PhysLean] (imports.mapM Imports.RedundentImports).run'
return 0