fix(prove): audit bookspec's own theorem list, not a copy
just prove audited verify/lean/Audit.lean, a copy of bookspec's list made when the laws moved there (L-F2). The laws then grew in bookspec (the FX law, the rounding primitive, the executable model's soundness and completeness, the empty close) and the copy did not: it audited 151 theorems of the 177 bookspec states, so 26 were proved but never checked for axioms on this side. Bookspec's CI audits them, so no theorem is known to rest on more than Lean's three; but the laws live once (D-69), and so must their list. just prove now runs bookspec's lean/Audit.lean from the pinned package, and the copy is gone: 177 theorems, standard axioms only. A unit's #print axioms line now goes in its bookspec branch with its theorem. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
127d33fb0b
commit
8dec2900eb
6 files changed
+19
-169
No files matched your search
@@ -1,159 +0,0 @@
|
||||
import Bookspec
|
||||
|
||||
/-! `just prove` runs this file: each theorem's axioms are printed, and must
|
||||
be only Lean's standard three (`propext`, `Quot.sound`, `Classical.choice`)
|
||||
or fewer. No `sorryAx`, nothing assumed. The theorems are bookspec's: the
|
||||
118 headline laws and the 33 named laws that cite them (D-69). -/
|
||||
|
||||
open Bookspec
|
||||
#print axioms Accepted.net_zero
|
||||
#print axioms sum_movements
|
||||
#print axioms movement_with_reversal
|
||||
#print axioms accepted_reversal_iff
|
||||
#print axioms accounting_equation
|
||||
#print axioms balance_after_line
|
||||
#print axioms trial_balance_iff
|
||||
#print axioms closingEntry_net
|
||||
#print axioms closingEntry_zeroes
|
||||
#print axioms closingEntry_accepted
|
||||
#print axioms net_closings_is_net_income
|
||||
#print axioms plugLast_total
|
||||
#print axioms plugLast_keeps
|
||||
#print axioms runPart_telescopes
|
||||
#print axioms closePart_total
|
||||
#print axioms trueUp_total
|
||||
#print axioms trueUp_running
|
||||
#print axioms closePart_eq_trueUp
|
||||
#print axioms cumulative_drift
|
||||
#print axioms statement_after_close
|
||||
#print axioms statement_unmoved_by_close
|
||||
#print axioms Reachable.inv
|
||||
#print axioms Reachable.books_net_zero
|
||||
#print axioms Reachable.trial_balance
|
||||
#print axioms Reachable.trial_balance_through
|
||||
#print axioms Reachable.accounting_equation
|
||||
#print axioms Reachable.accounting_equation_through
|
||||
#print axioms Steps.extends
|
||||
#print axioms Steps.frozen
|
||||
#print axioms close_zeroes
|
||||
#print axioms close_credits_net_income
|
||||
#print axioms statements_add_up
|
||||
#print axioms Apportion.ranks_perm
|
||||
#print axioms Apportion.apportion_sum
|
||||
#print axioms Apportion.apportion_sum_of_shortfall
|
||||
#print axioms Apportion.rem_pos_of_rank_lt
|
||||
#print axioms Apportion.apportion_drift
|
||||
#print axioms Apportion.allocW_sum
|
||||
#print axioms Apportion.allocW_drift
|
||||
#print axioms Apportion.allocW_cumulative_drift
|
||||
#print axioms Apportion.allocW_cumulative_total
|
||||
#print axioms Step.record_changes_no_figure
|
||||
#print axioms Reachable.records
|
||||
#print axioms net_splits_by_flow
|
||||
#print axioms applyCash_conserves
|
||||
#print axioms applyCash_exhausts
|
||||
#print axioms applyCash_neg
|
||||
#print axioms entry_flows_sum
|
||||
#print axioms flows_reversal
|
||||
#print axioms constructive_nets
|
||||
#print axioms constructive_neg
|
||||
#print axioms constructive_sections_net
|
||||
#print axioms stmt_flows_sum
|
||||
#print axioms stmt_flows_reversal
|
||||
#print axioms cashflow_sections_sum_to_cash_change
|
||||
#print axioms secNet_cash_is_movement
|
||||
#print axioms operating_reconciliation_ties
|
||||
#print axioms operating_reconciliation_ties_all
|
||||
#print axioms cashflow_reversal_nets
|
||||
#print axioms Reachable.cashflow_foots
|
||||
#print axioms Reachable.cashflow_is_change_in_cash
|
||||
#print axioms reverseTarget_involutive
|
||||
#print axioms capitalTarget_odd
|
||||
#print axioms partyTarget_odd
|
||||
#print axioms sumOver_movement_reversal
|
||||
#print axioms Prorate.cum_mono
|
||||
#print axioms Prorate.cum_le
|
||||
#print axioms Prorate.cum_full
|
||||
#print axioms Prorate.parts_telescope
|
||||
#print axioms Prorate.prorate_total
|
||||
#print axioms Prorate.prorate_nonneg
|
||||
#print axioms Prorate.part_within_a_unit
|
||||
#print axioms Prorate.roundUnit_near
|
||||
#print axioms Prorate.roundUnit_scale
|
||||
#print axioms Prorate.cum_near
|
||||
#print axioms Prorate.cum_dvd
|
||||
#print axioms Prorate.part_near
|
||||
#print axioms Prorate.chargeMid_eq_cum
|
||||
#print axioms Prorate.chargeLast_eq_cum
|
||||
#print axioms Prorate.chargeLast_start
|
||||
#print axioms Prorate.chargeLast_mono
|
||||
#print axioms Prorate.kernel_parts_total
|
||||
#print axioms Prorate.kernel_parts_nonneg
|
||||
#print axioms Documents.control_agrees
|
||||
#print axioms Documents.control_agrees_through
|
||||
#print axioms Documents.Step.document_unattached
|
||||
#print axioms Documents.settle_posts_a_document_step
|
||||
#print axioms Documents.settle_unattached
|
||||
#print axioms Documents.Step.reverse_moves
|
||||
#print axioms Documents.reverse_twice
|
||||
#print axioms Documents.Step.markSent_changes_no_figure
|
||||
#print axioms Documents.Reachable.unattached_zero
|
||||
#print axioms Documents.Reachable.control_is_documents
|
||||
#print axioms Documents.Step.writeOff_unattached
|
||||
#print axioms Documents.writeOff_within_bounds
|
||||
#print axioms Step.discard_keeps_books
|
||||
#print axioms Step.discard_drafts
|
||||
#print axioms Step.discard_unblocks_close
|
||||
#print axioms Deductible.roundHA_near
|
||||
#print axioms Deductible.roundHA_tie_pos
|
||||
#print axioms Deductible.roundHA_tie_neg
|
||||
#print axioms Deductible.roundHA_neg
|
||||
#print axioms Deductible.roundHA_sign
|
||||
#print axioms Deductible.roundHA_scale
|
||||
#print axioms Deductible.near
|
||||
#print axioms Deductible.tie_away_pos
|
||||
#print axioms Deductible.tie_away_neg
|
||||
#print axioms Deductible.sign
|
||||
#print axioms Deductible.neg
|
||||
#print axioms Deductible.of_sum
|
||||
#print axioms Deductible.of_perm
|
||||
#print axioms Deductible.append
|
||||
#print axioms Deductible.split_percent
|
||||
#print axioms Deductible.per_account_differs
|
||||
#print axioms Deductible.per_account_differs_mixed
|
||||
#print axioms Deductible.tie_example
|
||||
#print axioms Deductible.scale_books
|
||||
#print axioms Deductible.scale_percents
|
||||
#print axioms law_debits_equal_credits
|
||||
#print axioms law_accounting_equation
|
||||
#print axioms law_trial_balance
|
||||
#print axioms law_net_income_articulates
|
||||
#print axioms law_cash_flow_is_change_in_cash
|
||||
#print axioms law_acceptance_is_arithmetic
|
||||
#print axioms law_accepted_entry_nets_to_zero
|
||||
#print axioms law_movements_partition_the_net
|
||||
#print axioms law_reversal_accepted_iff
|
||||
#print axioms law_reversal_cancels
|
||||
#print axioms law_normal_side
|
||||
#print axioms law_trial_balance_is_complete
|
||||
#print axioms law_period_statements_add_up
|
||||
#print axioms law_invariant_holds
|
||||
#print axioms law_posted_is_forever
|
||||
#print axioms law_closed_periods_frozen
|
||||
#print axioms law_record_changes_no_figure
|
||||
#print axioms law_closing_entry_zeroes
|
||||
#print axioms law_allocation_sums_to_the_whole
|
||||
#print axioms law_member_run_telescopes
|
||||
#print axioms law_cumulative_close_hands_out_its_net
|
||||
#print axioms law_bounded_drift
|
||||
#print axioms law_capital_unmoved_by_close
|
||||
#print axioms law_reversal_is_the_exact_opposite
|
||||
#print axioms law_proration_parts_sum_to_the_total
|
||||
#print axioms law_proration_part_is_near
|
||||
#print axioms law_proration_charge_never_falls
|
||||
#print axioms law_control_account_is_its_documents
|
||||
#print axioms law_send_changes_no_figure
|
||||
#print axioms law_settlement_is_a_document_step
|
||||
#print axioms law_write_off_within_bounds
|
||||
#print axioms law_discard_moves_no_figure
|
||||
#print axioms law_deductible_rounds_once
|
||||
@@ -6,7 +6,8 @@ import Bookspec
|
||||
The laws live once, in bookspec's Lean (`bookspec/lean/Bookspec/`, namespace
|
||||
`Bookspec`), and this project requires that package (D-69). This module is
|
||||
the local target `lake build` builds: importing it builds and checks every
|
||||
law, and `Audit.lean` prints their axioms.
|
||||
law, and `just prove` prints their axioms with bookspec's own
|
||||
`lean/Audit.lean` (from `.lake/packages/bookspec`; no copy here).
|
||||
|
||||
A law that changes is edited in bookspec, and this project moves its pin
|
||||
(`lakefile.toml`, `lake-manifest.json`) to bookspec's new rev — the same rev
|
||||
|
||||
Reference in new issue
Block a user