def
definition
complete
show as:
view math explainer →
open explainer
Read the cached plain-language explainer.
open lean source
IndisputableMonolith.Complexity.SAT.Backprop on GitHub at line 105.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
-
all_nodup -
windowSums_shift_equivariant -
potential_implies_exact -
OctaveLoop -
modes_span_distinct_bands -
rs_pattern -
ml_derived_value -
ml_nucleosynthesis_eq_phi -
at_dist_one -
fluorine_ranking -
distToNextClosure -
nextClosure -
noble_gas_at_closure -
periodLength -
main_resolution -
Validation -
BackpropSucceeds -
BPStep -
bp_step_monotone -
BWD3Model -
satisfiable_iff_linearFeasible -
complete_completeStateFrom -
completeStateFrom -
IsolationInvariant -
config_space_complete -
pi5_uniquely_forced -
mass_ratio_bounds -
planck_gate_normalized -
etaB_ratio -
complementary_explanation -
su3_sector -
main -
examplesToJSON -
en004_certificate -
en006_certificate -
anita_event_energy -
atomic_tick_countable -
scheduleByMinIndex -
Calibration -
Composition_Normalization_implies_symmetry
formal source
102 | wire_prop {s : BPState n} : BPStep φ H s s
103
104/-- Predicate: state is complete (all variables determined). -/
105def complete {n} (s : BPState n) : Prop :=
106 ∀ v, (s.assign v).isSome = true
107
108/-- Predicate: state is consistent with φ ∧ H (semantic notion). -/
109def consistent {n} (s : BPState n) (φ : CNF n) (H : XORSystem n) : Prop :=
110 ∃ a : Assignment n, (∀ v, s.assign v = some (a v)) ∧
111 evalCNF a φ = true ∧ satisfiesSystem a H
112
113/-- Compatibility: a partial assignment agrees with a total assignment on known bits. -/
114def compatible {n} (σ : PartialAssignment n) (a : Assignment n) : Prop :=
115 ∀ v, σ v = some (a v) ∨ σ v = none
116
117/-- If σ is compatible with a and we set v to (a v), the result is still compatible. -/
118lemma compatible_setVar {n} (σ : PartialAssignment n) (a : Assignment n) (v : Var n)
119 (hcompat : compatible σ a) :
120 compatible (setVar σ v (a v)) a := by
121 intro w
122 by_cases hwv : w = v
123 · subst hwv
124 left
125 simp [setVar_same]
126 · rw [setVar_ne σ v w (a v) hwv]
127 exact hcompat w
128
129/-!
130## Semantic Correctness for XOR Propagation
131
132The xorMissing function produces the correct value for a satisfying assignment.
133This is now a **proved theorem**, not an axiom.
134-/
135