IndisputableMonolith.Foundation.OptionAEmpiricalDeliverables
IndisputableMonolith/Foundation/OptionAEmpiricalDeliverables.lean · 131 lines · 16 declarations
show as:
view math explainer →
1import Mathlib
2import IndisputableMonolith.Foundation.OptionAEmpiricalActionPlan
3
4/-!
5# Option A Empirical Deliverables
6
7Concrete artifacts expected from the Option A empirical action plan. This
8module turns the first-pass schedule into an auditable set of outputs.
9
10Lean status: 0 sorry, 0 axiom.
11-/
12
13namespace IndisputableMonolith
14namespace Foundation
15namespace OptionAEmpiricalDeliverables
16
17open OptionAFalsifierRegistry
18open OptionAEmpiricalSchedule
19open OptionAEmpiricalActionPlan
20
21/-- Deliverable artifact expected from an empirical analysis. -/
22inductive Deliverable where
23 | oncologyFactorModelNotebook
24 | memoryCollapseNotebook
25 | attentionPlateauPlot
26 | regulatoryCeilingTable
27 | planetPhiRatioTable
28 | cognitiveDecoderBenchmark
29 | responseCoefficientPanel
30 | quantumAddressingBenchmark
31 | eriksonReverseCohortTable
32 deriving DecidableEq, Repr, Fintype
33
34theorem deliverable_count : Fintype.card Deliverable = 9 := by
35 decide
36
37/-- Deliverable assigned to each Option A combination. -/
38def deliverableFor : CombinationID → Deliverable
39 | .c3OncologyTensor => .oncologyFactorModelNotebook
40 | .c8MillerSpan => .memoryCollapseNotebook
41 | .c5AttentionTensor => .attentionPlateauPlot
42 | .c9RegulatoryCeiling => .regulatoryCeilingTable
43 | .c2PlanetStrata => .planetPhiRatioTable
44 | .c1CognitiveTensor => .cognitiveDecoderBenchmark
45 | .c7UniversalResponse => .responseCoefficientPanel
46 | .c4QuantumMolecularDepth => .quantumAddressingBenchmark
47 | .c6EriksonReverse => .eriksonReverseCohortTable
48
49theorem deliverableFor_injective : Function.Injective deliverableFor := by
50 intro a b h
51 cases a <;> cases b <;> simp [deliverableFor] at h ⊢
52
53def firstPassDeliverables : List Deliverable :=
54 firstPassSchedule.map deliverableFor
55
56theorem firstPassDeliverables_eq :
57 firstPassDeliverables =
58 [ .oncologyFactorModelNotebook
59 , .memoryCollapseNotebook
60 , .attentionPlateauPlot
61 , .regulatoryCeilingTable
62 , .planetPhiRatioTable
63 ] := by
64 decide
65
66theorem firstPassDeliverables_length :
67 firstPassDeliverables.length = 5 := by
68 rw [firstPassDeliverables_eq]
69 decide
70
71theorem firstPassDeliverables_nodup :
72 firstPassDeliverables.Nodup := by
73 rw [firstPassDeliverables_eq]
74 decide
75
76/-- A scheduled test has a deliverable artifact. -/
77def HasDeliverable (c : CombinationID) : Prop :=
78 ∃ d : Deliverable, deliverableFor c = d
79
80theorem hasDeliverable_all (c : CombinationID) :
81 HasDeliverable c := by
82 exact ⟨deliverableFor c, rfl⟩
83
84theorem scheduled_has_deliverable
85 {c : CombinationID} (_h : c ∈ firstPassSchedule) :
86 HasDeliverable c :=
87 hasDeliverable_all c
88
89theorem c3_deliverable :
90 deliverableFor .c3OncologyTensor = .oncologyFactorModelNotebook := rfl
91
92theorem c8_deliverable :
93 deliverableFor .c8MillerSpan = .memoryCollapseNotebook := rfl
94
95theorem c5_deliverable :
96 deliverableFor .c5AttentionTensor = .attentionPlateauPlot := rfl
97
98structure EmpiricalDeliverablesCert where
99 nine_deliverables : Fintype.card Deliverable = 9
100 deliverable_injective : Function.Injective deliverableFor
101 first_pass_deliverables :
102 firstPassDeliverables =
103 [ .oncologyFactorModelNotebook
104 , .memoryCollapseNotebook
105 , .attentionPlateauPlot
106 , .regulatoryCeilingTable
107 , .planetPhiRatioTable
108 ]
109 first_pass_length : firstPassDeliverables.length = 5
110 first_pass_nodup : firstPassDeliverables.Nodup
111 scheduled_deliverables :
112 ∀ {c : CombinationID}, c ∈ firstPassSchedule → HasDeliverable c
113 c3_output : deliverableFor .c3OncologyTensor = .oncologyFactorModelNotebook
114 c8_output : deliverableFor .c8MillerSpan = .memoryCollapseNotebook
115 c5_output : deliverableFor .c5AttentionTensor = .attentionPlateauPlot
116
117def empiricalDeliverablesCert : EmpiricalDeliverablesCert where
118 nine_deliverables := deliverable_count
119 deliverable_injective := deliverableFor_injective
120 first_pass_deliverables := firstPassDeliverables_eq
121 first_pass_length := firstPassDeliverables_length
122 first_pass_nodup := firstPassDeliverables_nodup
123 scheduled_deliverables := scheduled_has_deliverable
124 c3_output := c3_deliverable
125 c8_output := c8_deliverable
126 c5_output := c5_deliverable
127
128end OptionAEmpiricalDeliverables
129end Foundation
130end IndisputableMonolith
131