def
definition
consistent
show as:
view math explainer →
open explainer
Read the cached plain-language explainer.
open lean source
IndisputableMonolith.Complexity.SAT.Backprop on GitHub at line 109.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
-
CircuitWithEvalDecides -
BackpropSucceeds -
bp_step_monotone -
complete -
complete_completeStateFrom -
consistent_completeStateFrom -
c020_derivation_strategy -
implications -
Omega_Lambda_positive -
current_observations_consistent -
DarkEnergyFalsifier -
crossSectionRatio_band -
cosmological_constant_resolution -
rs_flatness_necessity -
predictions -
empiricalCentral_in_band -
experimentalStatus -
InflationFalsifier -
w_mass_sigma_comparison -
printExamples -
ml_from_phase_ratio -
recoveryTime_strict_mono -
juglar_band -
anomaly_dissolved -
Trace -
calibration_pos -
ConfigSpace -
inconsistent_of_join_indep_right -
interaction_implies_entangling -
no_interaction_implies_additive -
F_div_swap_of_P_symmetric -
HasMultiplicativeConsistency -
RCL_unique_polynomial_form -
rcl_right_affine -
P_forced_from_FJ -
consistency_defines_composition -
godel_dissolution_holds -
GodelRequirements -
rs_avoids_godel -
SelfRefQuery
formal source
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
136-- Helper lemmas for xorMissing_correct proof
137private lemma not_isSome_eq_isNone' {α : Type*} (o : Option α) : (!o.isSome) = o.isNone := by
138 cases o <;> rfl
139