Commit 0d1602f
committed
Refactor ecPhlConseq.ml: restructure, deduplicate, document, and annotate
- Split the ~500-line monolithic t_hi_conseq dispatcher into 8
per-goal-type functions (hoareS/F, bdHoareS/F, ehoareS/F, equivS/F)
with a thin top-level dispatcher
- Extract shared helpers (t_hi_trivial, t_hi_apply_r, etc.) to module
level; make pp_f_node and pp_opt_f local to t_hi_error
- Unify three identical gen_conseq_nm variants into a single polymorphic
one
- Factor shared proof-term processing pipeline into process_conseq_core;
rename process_conseq_1/2 to process_conseq_hs/ss for clarity
- Extract cond_F_notmod_core / cond_S_notmod_core shared helpers,
reducing cond_{hoare,bdHoare}{F,S}_notmod to 3-line wrappers
- Move mk_bind_pvar/glob/pvars/globs to ecLowPhlGoal.ml with type
annotations
- Remove unnecessary ~recurse indirection from equivS/equivF dispatchers
(make them directly recursive instead)
- Introduce hi_arg type alias and add type annotations to all top-level
functions
- Add inference-rule comments to every goal-closing tactic and document
the processing pipeline, naming conventions, and section structure1 parent bcaa810 commit 0d1602f
2 files changed
Lines changed: 971 additions & 379 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
709 | 724 | | |
710 | 725 | | |
711 | 726 | | |
| |||
0 commit comments