jacopy.TheoremBook¶
- class jacopy.TheoremBook¶
Bases:
objectOrdered registry of
Theoremrecords keyed by name.Insertion order is preserved (a rendered “table of results” reads in registration order). Duplicate names raise on
add(); usereplace()for a deliberate override.- __init__()¶
- Return type:
None
Methods
__init__()add(theorem, *[, unverified])Register
theorem; raiseKeyErroron name clash.clear()get(name, *[, owner])The theorem
name; withownergiven, only when the record is owned by that structure (an owned record asked for under a different same-named structure is refused, never silently reused).is_chain_replayed(name)Accepted with derived requirements AND a chain that replays into its claim (
Theorem.chain_replayed).is_requirements_derived(name)The honest name of
is_verified().is_verified(name)True when the record was accepted with DERIVED requirements (not as an explicit unverified assumption).
names()remove(name)replace(theorem, *[, unverified])Register
theorem, overwriting an existing same-name entry.unverified_names()- add(theorem, *, unverified=False)¶
Register
theorem; raiseKeyErroron name clash.A
legacyrecord (requirements not structurally verified) is NOT accepted as a verified theorem: it raisesLegacyTheoremErrorunlessunverified=Truerecords it explicitly as an unverified assumption — every result that cites it then depends on that assumption visibly.
- replace(theorem, *, unverified=False)¶
Register
theorem, overwriting an existing same-name entry.
- is_verified(name)¶
True when the record was accepted with DERIVED requirements (not as an explicit unverified assumption). Historical name: it does not mean the chain was replayed — see
is_chain_replayed().
- is_requirements_derived(name)¶
The honest name of
is_verified().
- is_chain_replayed(name)¶
Accepted with derived requirements AND a chain that replays into its claim (
Theorem.chain_replayed).