Metamath Proof Explorer


Theorem nn0indd

Description: Principle of Mathematical Induction (inference schema) on nonnegative integers, a deduction version. (Contributed by Thierry Arnoux, 23-Mar-2018)

Ref Expression
Hypotheses nn0indd.1 ( 𝑥 = 0 → ( 𝜓𝜒 ) )
nn0indd.2 ( 𝑥 = 𝑦 → ( 𝜓𝜃 ) )
nn0indd.3 ( 𝑥 = ( 𝑦 + 1 ) → ( 𝜓𝜏 ) )
nn0indd.4 ( 𝑥 = 𝐴 → ( 𝜓𝜂 ) )
nn0indd.5 ( 𝜑𝜒 )
nn0indd.6 ( ( ( 𝜑𝑦 ∈ ℕ0 ) ∧ 𝜃 ) → 𝜏 )
Assertion nn0indd ( ( 𝜑𝐴 ∈ ℕ0 ) → 𝜂 )

Proof

Step Hyp Ref Expression
1 nn0indd.1 ( 𝑥 = 0 → ( 𝜓𝜒 ) )
2 nn0indd.2 ( 𝑥 = 𝑦 → ( 𝜓𝜃 ) )
3 nn0indd.3 ( 𝑥 = ( 𝑦 + 1 ) → ( 𝜓𝜏 ) )
4 nn0indd.4 ( 𝑥 = 𝐴 → ( 𝜓𝜂 ) )
5 nn0indd.5 ( 𝜑𝜒 )
6 nn0indd.6 ( ( ( 𝜑𝑦 ∈ ℕ0 ) ∧ 𝜃 ) → 𝜏 )
7 1 imbi2d ( 𝑥 = 0 → ( ( 𝜑𝜓 ) ↔ ( 𝜑𝜒 ) ) )
8 2 imbi2d ( 𝑥 = 𝑦 → ( ( 𝜑𝜓 ) ↔ ( 𝜑𝜃 ) ) )
9 3 imbi2d ( 𝑥 = ( 𝑦 + 1 ) → ( ( 𝜑𝜓 ) ↔ ( 𝜑𝜏 ) ) )
10 4 imbi2d ( 𝑥 = 𝐴 → ( ( 𝜑𝜓 ) ↔ ( 𝜑𝜂 ) ) )
11 6 ex ( ( 𝜑𝑦 ∈ ℕ0 ) → ( 𝜃𝜏 ) )
12 11 expcom ( 𝑦 ∈ ℕ0 → ( 𝜑 → ( 𝜃𝜏 ) ) )
13 12 a2d ( 𝑦 ∈ ℕ0 → ( ( 𝜑𝜃 ) → ( 𝜑𝜏 ) ) )
14 7 8 9 10 5 13 nn0ind ( 𝐴 ∈ ℕ0 → ( 𝜑𝜂 ) )
15 14 impcom ( ( 𝜑𝐴 ∈ ℕ0 ) → 𝜂 )