refactor: Split note file

This commit is contained in:
jstoobysmith 2024-12-04 16:42:59 +00:00
parent bc2e0ee222
commit b1bbd272da
4 changed files with 51 additions and 28 deletions

View file

@ -0,0 +1,38 @@
/-
Copyright (c) 2024 Joseph Tooby-Smith. All rights reserved.
Released under Apache 2.0 license.
Authors: Joseph Tooby-Smith
-/
import HepLean.Meta.Notes.Basic
/-!
# Note file
A note file is a structure which contains the information to go into a note.
-/
namespace HepLean
open Lean System Meta
/-- A note consists of a title and a list of Lean files which make up the note. -/
structure NoteFile where
/-- The overall title of the note. -/
title : String
/-- The abstract of the note. -/
abstract : String
/-- A list of authors. -/
authors : List String
/-- The files making up the note in the order in which they should appear. -/
files : List Name
namespace NoteFile
variable (N : NoteFile)
/-- All imports associated to a note. -/
def imports : Array Import := (N.files.map fun f => {module := f}).toArray
end NoteFile
end HepLean