theorem
proved
zero_add
show as:
view math explainer →
open explainer
Generate a durable explainer page for this declaration.
open lean source
IndisputableMonolith.Foundation.ArithmeticFromLogic on GitHub at line 140.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
-
plot_composition_cancels_iff -
sub_eq_add -
PhiInt -
canonicalPhiRingObj -
PhiRingObj -
logarithmic_derivative_constant -
hasDerivAt_JcostDeriv -
dAlembert_even -
aux_limit_N_plus_two_div_pow -
aggCoeff_flatMap -
hasDerivAt_costAlphaLog_first -
add_comm -
mul_one -
zero_le -
zero_lt_succ -
zero_mul -
Q_boundary_u -
bilinear_family_forced -
dAlembert_solution_even -
hasDerivAt_costAlphaLog -
fromInt_toInt -
ratio_only -
entropy_zero_at_eq -
flat_bianchi -
running_g_scaling -
conservation_from_efe_and_bianchi -
ledgerJlogCost_post -
phases_require_complex -
phases_require_complex_k1 -
phases_require_complex_k2 -
identity_in_all_possibility_spaces -
dJdt_eq_viscous_plus_stretching -
master_absorption -
mkSharedCirclePair_carrier_excess_bounded -
tov_newtonian_limit -
firstBlockSum_eq_Z_on_cylinder
formal source
137
138@[simp] theorem add_succ (n m : LogicNat) : n + succ m = succ (n + m) := rfl
139
140theorem zero_add (n : LogicNat) : zero + n = n := by
141 induction n with
142 | identity => rfl
143 | step n ih =>
144 show zero + succ n = succ n
145 rw [add_succ, ih]
146
147theorem succ_add (n m : LogicNat) : succ n + m = succ (n + m) := by
148 induction m with
149 | identity => rfl
150 | step m ih =>
151 show succ n + succ m = succ (n + succ m)
152 rw [add_succ, add_succ, ih]
153
154theorem add_assoc (a b c : LogicNat) : (a + b) + c = a + (b + c) := by
155 induction c with
156 | identity => rfl
157 | step c ih =>
158 show (a + b) + succ c = a + (b + succ c)
159 rw [add_succ, add_succ, add_succ, ih]
160
161theorem add_comm (a b : LogicNat) : a + b = b + a := by
162 induction b with
163 | identity =>
164 show a + zero = zero + a
165 rw [add_zero, zero_add]
166 | step b ih =>
167 show a + succ b = succ b + a
168 rw [add_succ, succ_add, ih]
169
170/-- Multiplication by recursion on the second argument. -/