7.1. Statements of Overview
The exact statements behind the claims on the page Overview.
theorem folio_file_loads_without_errors : (loadFile folioText).isOkproof: spec/Spec/Readable.lean:18
theorem folio_has_three_event_types :
(loadFile folioText).toOption.map (·.entities.map (·.events.map (·.name))) =
some [["FolioOpened", "ChargePosted", "FolioClosed"]]proof: spec/Spec/Readable.lean:22
theorem folio_note_is_optional :
(loadFile folioText).toOption.map (·.entities.map fun d => (d.events.find? (·.name == "ChargePosted")).map (·.optional)) =
some [some ["note"]]proof: spec/Spec/Readable.lean:28
theorem folio_has_one_rule : (loadFile folioText).toOption.map (·.entities.map (·.rules.length)) = some [1]proof: spec/Spec/Readable.lean:34
theorem rules_may_be_split_across_files (st : State) (sc : Schema) (fs gs : List RuleFile)
(ent : String) (r1 r2 : List Rule) :
st.deploy sc (fs ++ { entity := ent, rules := r1 ++ r2 } :: gs) =
st.deploy sc (fs ++ { entity := ent, rules := r1 } :: { entity := ent, rules := r2 } :: gs)proof: spec/Spec/Facts.lean:157