state
stringlengths
0
159k
srcUpToTactic
stringlengths
387
167k
nextTactic
stringlengths
3
9k
declUpToTactic
stringlengths
22
11.5k
declId
stringlengths
38
95
decl
stringlengths
16
1.89k
file_tag
stringlengths
17
73
n₁ n₂ : ℕ h : Code.const (n₁ + 1) = Code.const (n₂ + 1) ⊢ n₁ + 1 = n₂ + 1
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
dsimp [Nat.add_one, Nat.Partrec.Code.const] at h
theorem const_inj : ∀ {n₁ n₂}, Nat.Partrec.Code.const n₁ = Nat.Partrec.Code.const n₂ → n₁ = n₂ | 0, 0, _ => by simp | n₁ + 1, n₂ + 1, h => by
Mathlib.Computability.PartrecCode.108_0.A3c3Aev6SyIRjCJ
theorem const_inj : ∀ {n₁ n₂}, Nat.Partrec.Code.const n₁ = Nat.Partrec.Code.const n₂ → n₁ = n₂ | 0, 0, _ => by simp | n₁ + 1, n₂ + 1, h => by dsimp [Nat.add_one, Nat.Partrec.Code.const] at h injection h with h₁ h₂ simp only [const_inj h₂]
Mathlib_Computability_PartrecCode
n₁ n₂ : ℕ h : comp succ (Code.const n₁) = comp succ (Code.const n₂) ⊢ n₁ + 1 = n₂ + 1
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
injection h with h₁ h₂
theorem const_inj : ∀ {n₁ n₂}, Nat.Partrec.Code.const n₁ = Nat.Partrec.Code.const n₂ → n₁ = n₂ | 0, 0, _ => by simp | n₁ + 1, n₂ + 1, h => by dsimp [Nat.add_one, Nat.Partrec.Code.const] at h
Mathlib.Computability.PartrecCode.108_0.A3c3Aev6SyIRjCJ
theorem const_inj : ∀ {n₁ n₂}, Nat.Partrec.Code.const n₁ = Nat.Partrec.Code.const n₂ → n₁ = n₂ | 0, 0, _ => by simp | n₁ + 1, n₂ + 1, h => by dsimp [Nat.add_one, Nat.Partrec.Code.const] at h injection h with h₁ h₂ simp only [const_inj h₂]
Mathlib_Computability_PartrecCode
n₁ n₂ : ℕ h₁ : succ = succ h₂ : Code.const n₁ = Code.const n₂ ⊢ n₁ + 1 = n₂ + 1
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp only [const_inj h₂]
theorem const_inj : ∀ {n₁ n₂}, Nat.Partrec.Code.const n₁ = Nat.Partrec.Code.const n₂ → n₁ = n₂ | 0, 0, _ => by simp | n₁ + 1, n₂ + 1, h => by dsimp [Nat.add_one, Nat.Partrec.Code.const] at h injection h with h₁ h₂
Mathlib.Computability.PartrecCode.108_0.A3c3Aev6SyIRjCJ
theorem const_inj : ∀ {n₁ n₂}, Nat.Partrec.Code.const n₁ = Nat.Partrec.Code.const n₂ → n₁ = n₂ | 0, 0, _ => by simp | n₁ + 1, n₂ + 1, h => by dsimp [Nat.add_one, Nat.Partrec.Code.const] at h injection h with h₁ h₂ simp only [const_inj h₂]
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) ⊢ m < n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp only [div2_val]
/-- A decoder for `Nat.Partrec.Code.encodeCode`, taking any ℕ to the `Nat.Partrec.Code` it represents. -/ def ofNatCode : ℕ → Code | 0 => zero | 1 => succ | 2 => left | 3 => right | n + 4 => let m := n.div2.div2 have hm : m < n + 4 := by
Mathlib.Computability.PartrecCode.140_0.A3c3Aev6SyIRjCJ
/-- A decoder for `Nat.Partrec.Code.encodeCode`, taking any ℕ to the `Nat.Partrec.Code` it represents. -/ def ofNatCode : ℕ → Code | 0 => zero | 1 => succ | 2 => left | 3 => right | n + 4 => let m
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) ⊢ n / 2 / 2 < n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
exact lt_of_le_of_lt (le_trans (Nat.div_le_self _ _) (Nat.div_le_self _ _)) (Nat.succ_le_succ (Nat.le_add_right _ _))
/-- A decoder for `Nat.Partrec.Code.encodeCode`, taking any ℕ to the `Nat.Partrec.Code` it represents. -/ def ofNatCode : ℕ → Code | 0 => zero | 1 => succ | 2 => left | 3 => right | n + 4 => let m := n.div2.div2 have hm : m < n + 4 := by simp only [div2_val]
Mathlib.Computability.PartrecCode.140_0.A3c3Aev6SyIRjCJ
/-- A decoder for `Nat.Partrec.Code.encodeCode`, taking any ℕ to the `Nat.Partrec.Code` it represents. -/ def ofNatCode : ℕ → Code | 0 => zero | 1 => succ | 2 => left | 3 => right | n + 4 => let m
Mathlib_Computability_PartrecCode
⊢ encodeCode (ofNatCode 0) = 0
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp [ofNatCode, encodeCode]
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
⊢ encodeCode (ofNatCode 1) = 1
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp [ofNatCode, encodeCode]
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
⊢ encodeCode (ofNatCode 2) = 2
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp [ofNatCode, encodeCode]
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
⊢ encodeCode (ofNatCode 3) = 3
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp [ofNatCode, encodeCode]
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ ⊢ encodeCode (ofNatCode (n + 4)) = n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
let m := n.div2.div2
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) ⊢ encodeCode (ofNatCode (n + 4)) = n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have hm : m < n + 4 := by simp only [div2_val] exact lt_of_le_of_lt (le_trans (Nat.div_le_self _ _) (Nat.div_le_self _ _)) (Nat.succ_le_succ (Nat.le_add_right _ _))
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) ⊢ m < n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp only [div2_val]
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) ⊢ n / 2 / 2 < n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
exact lt_of_le_of_lt (le_trans (Nat.div_le_self _ _) (Nat.div_le_self _ _)) (Nat.succ_le_succ (Nat.le_add_right _ _))
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 ⊢ encodeCode (ofNatCode (n + 4)) = n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have _m1 : m.unpair.1 < n + 4 := lt_of_le_of_lt m.unpair_left_le hm
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 ⊢ encodeCode (ofNatCode (n + 4)) = n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have _m2 : m.unpair.2 < n + 4 := lt_of_le_of_lt m.unpair_right_le hm
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 ⊢ encodeCode (ofNatCode (n + 4)) = n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have IH := encode_ofNatCode m
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 IH : encodeCode (ofNatCode m) = m ⊢ encodeCode (ofNatCode (n + 4)) = n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have IH1 := encode_ofNatCode m.unpair.1
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 IH : encodeCode (ofNatCode m) = m IH1 : encodeCode (ofNatCode (unpair m).1) = (unpair m).1 ⊢ encodeCode (ofNatCode (n + 4)) = n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have IH2 := encode_ofNatCode m.unpair.2
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 IH : encodeCode (ofNatCode m) = m IH1 : encodeCode (ofNatCode (unpair m).1) = (unpair m).1 IH2 : encodeCode (ofNatCode (unpair m).2) = (unpair m).2 ⊢ encodeCode (ofNatCode (n + 4)) = n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
conv_rhs => rw [← Nat.bit_decomp n, ← Nat.bit_decomp n.div2]
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 IH : encodeCode (ofNatCode m) = m IH1 : encodeCode (ofNatCode (unpair m).1) = (unpair m).1 IH2 : encodeCode (ofNatCode (unpair m).2) = (unpair m).2 | n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
rw [← Nat.bit_decomp n, ← Nat.bit_decomp n.div2]
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 IH : encodeCode (ofNatCode m) = m IH1 : encodeCode (ofNatCode (unpair m).1) = (unpair m).1 IH2 : encodeCode (ofNatCode (unpair m).2) = (unpair m).2 | n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
rw [← Nat.bit_decomp n, ← Nat.bit_decomp n.div2]
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 IH : encodeCode (ofNatCode m) = m IH1 : encodeCode (ofNatCode (unpair m).1) = (unpair m).1 IH2 : encodeCode (ofNatCode (unpair m).2) = (unpair m).2 | n + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
rw [← Nat.bit_decomp n, ← Nat.bit_decomp n.div2]
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 IH : encodeCode (ofNatCode m) = m IH1 : encodeCode (ofNatCode (unpair m).1) = (unpair m).1 IH2 : encodeCode (ofNatCode (unpair m).2) = (unpair m).2 ⊢ encodeCode (ofNatCode (n + 4)) = bit (bodd n) (bit (bodd (div2 n)) (div2...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp only [ofNatCode._eq_5]
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 IH : encodeCode (ofNatCode m) = m IH1 : encodeCode (ofNatCode (unpair m).1) = (unpair m).1 IH2 : encodeCode (ofNatCode (unpair m).2) = (unpair m).2 ⊢ encodeCode (match bodd n, bodd (div2 n) with | false, false ...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
cases n.bodd
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
case false n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 IH : encodeCode (ofNatCode m) = m IH1 : encodeCode (ofNatCode (unpair m).1) = (unpair m).1 IH2 : encodeCode (ofNatCode (unpair m).2) = (unpair m).2 ⊢ encodeCode (match false, bodd (div2 n) with | fal...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
cases n.div2.bodd
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
case true n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 IH : encodeCode (ofNatCode m) = m IH1 : encodeCode (ofNatCode (unpair m).1) = (unpair m).1 IH2 : encodeCode (ofNatCode (unpair m).2) = (unpair m).2 ⊢ encodeCode (match true, bodd (div2 n) with | false...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
cases n.div2.bodd
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
case false.false n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 IH : encodeCode (ofNatCode m) = m IH1 : encodeCode (ofNatCode (unpair m).1) = (unpair m).1 IH2 : encodeCode (ofNatCode (unpair m).2) = (unpair m).2 ⊢ encodeCode (match false, false with | false...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp [encodeCode, ofNatCode, IH, IH1, IH2, Nat.bit_val]
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
case false.true n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 IH : encodeCode (ofNatCode m) = m IH1 : encodeCode (ofNatCode (unpair m).1) = (unpair m).1 IH2 : encodeCode (ofNatCode (unpair m).2) = (unpair m).2 ⊢ encodeCode (match false, true with | false, ...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp [encodeCode, ofNatCode, IH, IH1, IH2, Nat.bit_val]
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
case true.false n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 IH : encodeCode (ofNatCode m) = m IH1 : encodeCode (ofNatCode (unpair m).1) = (unpair m).1 IH2 : encodeCode (ofNatCode (unpair m).2) = (unpair m).2 ⊢ encodeCode (match true, false with | false, ...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp [encodeCode, ofNatCode, IH, IH1, IH2, Nat.bit_val]
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
case true.true n : ℕ m : ℕ := div2 (div2 n) hm : m < n + 4 _m1 : (unpair m).1 < n + 4 _m2 : (unpair m).2 < n + 4 IH : encodeCode (ofNatCode m) = m IH1 : encodeCode (ofNatCode (unpair m).1) = (unpair m).1 IH2 : encodeCode (ofNatCode (unpair m).2) = (unpair m).2 ⊢ encodeCode (match true, true with | false, fa...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp [encodeCode, ofNatCode, IH, IH1, IH2, Nat.bit_val]
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib.Computability.PartrecCode.164_0.A3c3Aev6SyIRjCJ
/-- Proof that `Nat.Partrec.Code.ofNatCode` is the inverse of `Nat.Partrec.Code.encodeCode`-/ private theorem encode_ofNatCode : ∀ n, encodeCode (ofNatCode n) = n | 0 => by simp [ofNatCode, encodeCode] | 1 => by simp [ofNatCode, encodeCode] | 2 => by simp [ofNatCode, encodeCode] | 3 => by simp [ofNatCode, encod...
Mathlib_Computability_PartrecCode
c : Code ⊢ ofNatCode (encodeCode c) = c
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
induction c
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case zero ⊢ ofNatCode (encodeCode zero) = zero
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
try {rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;>
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case zero ⊢ ofNatCode (encodeCode zero) = zero
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
{rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case zero ⊢ ofNatCode (encodeCode zero) = zero
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
rfl
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try {
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case succ ⊢ ofNatCode (encodeCode succ) = succ
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
try {rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;>
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case succ ⊢ ofNatCode (encodeCode succ) = succ
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
{rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case succ ⊢ ofNatCode (encodeCode succ) = succ
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
rfl
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try {
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case left ⊢ ofNatCode (encodeCode left) = left
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
try {rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;>
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case left ⊢ ofNatCode (encodeCode left) = left
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
{rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case left ⊢ ofNatCode (encodeCode left) = left
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
rfl
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try {
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case right ⊢ ofNatCode (encodeCode right) = right
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
try {rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;>
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case right ⊢ ofNatCode (encodeCode right) = right
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
{rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case right ⊢ ofNatCode (encodeCode right) = right
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
rfl
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try {
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case pair a✝¹ a✝ : Code a_ih✝¹ : ofNatCode (encodeCode a✝¹) = a✝¹ a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (pair a✝¹ a✝)) = pair a✝¹ a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
try {rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;>
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case pair a✝¹ a✝ : Code a_ih✝¹ : ofNatCode (encodeCode a✝¹) = a✝¹ a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (pair a✝¹ a✝)) = pair a✝¹ a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
{rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case pair a✝¹ a✝ : Code a_ih✝¹ : ofNatCode (encodeCode a✝¹) = a✝¹ a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (pair a✝¹ a✝)) = pair a✝¹ a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
rfl
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try {
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case comp a✝¹ a✝ : Code a_ih✝¹ : ofNatCode (encodeCode a✝¹) = a✝¹ a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (comp a✝¹ a✝)) = comp a✝¹ a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
try {rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;>
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case comp a✝¹ a✝ : Code a_ih✝¹ : ofNatCode (encodeCode a✝¹) = a✝¹ a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (comp a✝¹ a✝)) = comp a✝¹ a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
{rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case comp a✝¹ a✝ : Code a_ih✝¹ : ofNatCode (encodeCode a✝¹) = a✝¹ a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (comp a✝¹ a✝)) = comp a✝¹ a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
rfl
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try {
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case prec a✝¹ a✝ : Code a_ih✝¹ : ofNatCode (encodeCode a✝¹) = a✝¹ a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (prec a✝¹ a✝)) = prec a✝¹ a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
try {rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;>
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case prec a✝¹ a✝ : Code a_ih✝¹ : ofNatCode (encodeCode a✝¹) = a✝¹ a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (prec a✝¹ a✝)) = prec a✝¹ a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
{rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case prec a✝¹ a✝ : Code a_ih✝¹ : ofNatCode (encodeCode a✝¹) = a✝¹ a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (prec a✝¹ a✝)) = prec a✝¹ a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
rfl
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try {
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case rfind' a✝ : Code a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (rfind' a✝)) = rfind' a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
try {rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;>
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case rfind' a✝ : Code a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (rfind' a✝)) = rfind' a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
{rfl}
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case rfind' a✝ : Code a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (rfind' a✝)) = rfind' a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
rfl
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try {
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case pair a✝¹ a✝ : Code a_ih✝¹ : ofNatCode (encodeCode a✝¹) = a✝¹ a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (pair a✝¹ a✝)) = pair a✝¹ a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp [encodeCode, ofNatCode, Nat.div2_val, *]
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try {rfl} <;>
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case comp a✝¹ a✝ : Code a_ih✝¹ : ofNatCode (encodeCode a✝¹) = a✝¹ a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (comp a✝¹ a✝)) = comp a✝¹ a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp [encodeCode, ofNatCode, Nat.div2_val, *]
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try {rfl} <;>
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case prec a✝¹ a✝ : Code a_ih✝¹ : ofNatCode (encodeCode a✝¹) = a✝¹ a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (prec a✝¹ a✝)) = prec a✝¹ a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp [encodeCode, ofNatCode, Nat.div2_val, *]
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try {rfl} <;>
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
case rfind' a✝ : Code a_ih✝ : ofNatCode (encodeCode a✝) = a✝ ⊢ ofNatCode (encodeCode (rfind' a✝)) = rfind' a✝
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp [encodeCode, ofNatCode, Nat.div2_val, *]
instance instDenumerable : Denumerable Code := mk' ⟨encodeCode, ofNatCode, fun c => by induction c <;> try {rfl} <;>
Mathlib.Computability.PartrecCode.187_0.A3c3Aev6SyIRjCJ
instance instDenumerable : Denumerable Code
Mathlib_Computability_PartrecCode
cf cg : Code ⊢ encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg)
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp only [encodeCode_eq, encodeCode]
theorem encode_lt_pair (cf cg) : encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg) := by
Mathlib.Computability.PartrecCode.202_0.A3c3Aev6SyIRjCJ
theorem encode_lt_pair (cf cg) : encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg)
Mathlib_Computability_PartrecCode
cf cg : Code ⊢ encodeCode cf < 2 * (2 * Nat.pair (encodeCode cf) (encodeCode cg)) + 4 ∧ encodeCode cg < 2 * (2 * Nat.pair (encodeCode cf) (encodeCode cg)) + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have := Nat.mul_le_mul_right (Nat.pair cf.encodeCode cg.encodeCode) (by decide : 1 ≤ 2 * 2)
theorem encode_lt_pair (cf cg) : encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg) := by simp only [encodeCode_eq, encodeCode]
Mathlib.Computability.PartrecCode.202_0.A3c3Aev6SyIRjCJ
theorem encode_lt_pair (cf cg) : encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg)
Mathlib_Computability_PartrecCode
cf cg : Code ⊢ 1 ≤ 2 * 2
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
decide
theorem encode_lt_pair (cf cg) : encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg) := by simp only [encodeCode_eq, encodeCode] have := Nat.mul_le_mul_right (Nat.pair cf.encodeCode cg.encodeCode) (by
Mathlib.Computability.PartrecCode.202_0.A3c3Aev6SyIRjCJ
theorem encode_lt_pair (cf cg) : encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg)
Mathlib_Computability_PartrecCode
cf cg : Code this : 1 * Nat.pair (encodeCode cf) (encodeCode cg) ≤ 2 * 2 * Nat.pair (encodeCode cf) (encodeCode cg) ⊢ encodeCode cf < 2 * (2 * Nat.pair (encodeCode cf) (encodeCode cg)) + 4 ∧ encodeCode cg < 2 * (2 * Nat.pair (encodeCode cf) (encodeCode cg)) + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
rw [one_mul, mul_assoc] at this
theorem encode_lt_pair (cf cg) : encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg) := by simp only [encodeCode_eq, encodeCode] have := Nat.mul_le_mul_right (Nat.pair cf.encodeCode cg.encodeCode) (by decide : 1 ≤ 2 * 2)
Mathlib.Computability.PartrecCode.202_0.A3c3Aev6SyIRjCJ
theorem encode_lt_pair (cf cg) : encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg)
Mathlib_Computability_PartrecCode
cf cg : Code this : Nat.pair (encodeCode cf) (encodeCode cg) ≤ 2 * (2 * Nat.pair (encodeCode cf) (encodeCode cg)) ⊢ encodeCode cf < 2 * (2 * Nat.pair (encodeCode cf) (encodeCode cg)) + 4 ∧ encodeCode cg < 2 * (2 * Nat.pair (encodeCode cf) (encodeCode cg)) + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have := lt_of_le_of_lt this (lt_add_of_pos_right _ (by decide : 0 < 4))
theorem encode_lt_pair (cf cg) : encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg) := by simp only [encodeCode_eq, encodeCode] have := Nat.mul_le_mul_right (Nat.pair cf.encodeCode cg.encodeCode) (by decide : 1 ≤ 2 * 2) rw [one_mul, mul_assoc] at this
Mathlib.Computability.PartrecCode.202_0.A3c3Aev6SyIRjCJ
theorem encode_lt_pair (cf cg) : encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg)
Mathlib_Computability_PartrecCode
cf cg : Code this : Nat.pair (encodeCode cf) (encodeCode cg) ≤ 2 * (2 * Nat.pair (encodeCode cf) (encodeCode cg)) ⊢ 0 < 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
decide
theorem encode_lt_pair (cf cg) : encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg) := by simp only [encodeCode_eq, encodeCode] have := Nat.mul_le_mul_right (Nat.pair cf.encodeCode cg.encodeCode) (by decide : 1 ≤ 2 * 2) rw [one_mul, mul_assoc] at this have := lt_of_le_of_lt this (lt_add_of_po...
Mathlib.Computability.PartrecCode.202_0.A3c3Aev6SyIRjCJ
theorem encode_lt_pair (cf cg) : encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg)
Mathlib_Computability_PartrecCode
cf cg : Code this✝ : Nat.pair (encodeCode cf) (encodeCode cg) ≤ 2 * (2 * Nat.pair (encodeCode cf) (encodeCode cg)) this : Nat.pair (encodeCode cf) (encodeCode cg) < 2 * (2 * Nat.pair (encodeCode cf) (encodeCode cg)) + 4 ⊢ encodeCode cf < 2 * (2 * Nat.pair (encodeCode cf) (encodeCode cg)) + 4 ∧ encodeCode cg < 2 * (...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
exact ⟨lt_of_le_of_lt (Nat.left_le_pair _ _) this, lt_of_le_of_lt (Nat.right_le_pair _ _) this⟩
theorem encode_lt_pair (cf cg) : encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg) := by simp only [encodeCode_eq, encodeCode] have := Nat.mul_le_mul_right (Nat.pair cf.encodeCode cg.encodeCode) (by decide : 1 ≤ 2 * 2) rw [one_mul, mul_assoc] at this have := lt_of_le_of_lt this (lt_add_of_po...
Mathlib.Computability.PartrecCode.202_0.A3c3Aev6SyIRjCJ
theorem encode_lt_pair (cf cg) : encode cf < encode (pair cf cg) ∧ encode cg < encode (pair cf cg)
Mathlib_Computability_PartrecCode
cf cg : Code ⊢ encode cf < encode (comp cf cg) ∧ encode cg < encode (comp cf cg)
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
suffices
theorem encode_lt_comp (cf cg) : encode cf < encode (comp cf cg) ∧ encode cg < encode (comp cf cg) := by
Mathlib.Computability.PartrecCode.211_0.A3c3Aev6SyIRjCJ
theorem encode_lt_comp (cf cg) : encode cf < encode (comp cf cg) ∧ encode cg < encode (comp cf cg)
Mathlib_Computability_PartrecCode
cf cg : Code this : ?m.392686 ⊢ encode cf < encode (comp cf cg) ∧ encode cg < encode (comp cf cg) case this cf cg : Code ⊢ ?m.392686
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
exact (encode_lt_pair cf cg).imp (fun h => lt_trans h this) fun h => lt_trans h this
theorem encode_lt_comp (cf cg) : encode cf < encode (comp cf cg) ∧ encode cg < encode (comp cf cg) := by suffices;
Mathlib.Computability.PartrecCode.211_0.A3c3Aev6SyIRjCJ
theorem encode_lt_comp (cf cg) : encode cf < encode (comp cf cg) ∧ encode cg < encode (comp cf cg)
Mathlib_Computability_PartrecCode
case this cf cg : Code ⊢ encode (pair cf cg) < encode (comp cf cg)
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
change _
theorem encode_lt_comp (cf cg) : encode cf < encode (comp cf cg) ∧ encode cg < encode (comp cf cg) := by suffices; exact (encode_lt_pair cf cg).imp (fun h => lt_trans h this) fun h => lt_trans h this
Mathlib.Computability.PartrecCode.211_0.A3c3Aev6SyIRjCJ
theorem encode_lt_comp (cf cg) : encode cf < encode (comp cf cg) ∧ encode cg < encode (comp cf cg)
Mathlib_Computability_PartrecCode
case this cf cg : Code ⊢ encode (pair cf cg) < encode (comp cf cg)
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp [encodeCode_eq, encodeCode]
theorem encode_lt_comp (cf cg) : encode cf < encode (comp cf cg) ∧ encode cg < encode (comp cf cg) := by suffices; exact (encode_lt_pair cf cg).imp (fun h => lt_trans h this) fun h => lt_trans h this change _;
Mathlib.Computability.PartrecCode.211_0.A3c3Aev6SyIRjCJ
theorem encode_lt_comp (cf cg) : encode cf < encode (comp cf cg) ∧ encode cg < encode (comp cf cg)
Mathlib_Computability_PartrecCode
cf cg : Code ⊢ encode cf < encode (prec cf cg) ∧ encode cg < encode (prec cf cg)
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
suffices
theorem encode_lt_prec (cf cg) : encode cf < encode (prec cf cg) ∧ encode cg < encode (prec cf cg) := by
Mathlib.Computability.PartrecCode.217_0.A3c3Aev6SyIRjCJ
theorem encode_lt_prec (cf cg) : encode cf < encode (prec cf cg) ∧ encode cg < encode (prec cf cg)
Mathlib_Computability_PartrecCode
cf cg : Code this : ?m.395648 ⊢ encode cf < encode (prec cf cg) ∧ encode cg < encode (prec cf cg) case this cf cg : Code ⊢ ?m.395648
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
exact (encode_lt_pair cf cg).imp (fun h => lt_trans h this) fun h => lt_trans h this
theorem encode_lt_prec (cf cg) : encode cf < encode (prec cf cg) ∧ encode cg < encode (prec cf cg) := by suffices;
Mathlib.Computability.PartrecCode.217_0.A3c3Aev6SyIRjCJ
theorem encode_lt_prec (cf cg) : encode cf < encode (prec cf cg) ∧ encode cg < encode (prec cf cg)
Mathlib_Computability_PartrecCode
case this cf cg : Code ⊢ encode (pair cf cg) < encode (prec cf cg)
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
change _
theorem encode_lt_prec (cf cg) : encode cf < encode (prec cf cg) ∧ encode cg < encode (prec cf cg) := by suffices; exact (encode_lt_pair cf cg).imp (fun h => lt_trans h this) fun h => lt_trans h this
Mathlib.Computability.PartrecCode.217_0.A3c3Aev6SyIRjCJ
theorem encode_lt_prec (cf cg) : encode cf < encode (prec cf cg) ∧ encode cg < encode (prec cf cg)
Mathlib_Computability_PartrecCode
case this cf cg : Code ⊢ encode (pair cf cg) < encode (prec cf cg)
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp [encodeCode_eq, encodeCode]
theorem encode_lt_prec (cf cg) : encode cf < encode (prec cf cg) ∧ encode cg < encode (prec cf cg) := by suffices; exact (encode_lt_pair cf cg).imp (fun h => lt_trans h this) fun h => lt_trans h this change _;
Mathlib.Computability.PartrecCode.217_0.A3c3Aev6SyIRjCJ
theorem encode_lt_prec (cf cg) : encode cf < encode (prec cf cg) ∧ encode cg < encode (prec cf cg)
Mathlib_Computability_PartrecCode
cf : Code ⊢ encode cf < encode (rfind' cf)
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
simp only [encodeCode_eq, encodeCode]
theorem encode_lt_rfind' (cf) : encode cf < encode (rfind' cf) := by
Mathlib.Computability.PartrecCode.223_0.A3c3Aev6SyIRjCJ
theorem encode_lt_rfind' (cf) : encode cf < encode (rfind' cf)
Mathlib_Computability_PartrecCode
cf : Code ⊢ encodeCode cf < 2 * (2 * encodeCode cf + 1) + 1 + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have := Nat.mul_le_mul_right cf.encodeCode (by decide : 1 ≤ 2 * 2)
theorem encode_lt_rfind' (cf) : encode cf < encode (rfind' cf) := by simp only [encodeCode_eq, encodeCode]
Mathlib.Computability.PartrecCode.223_0.A3c3Aev6SyIRjCJ
theorem encode_lt_rfind' (cf) : encode cf < encode (rfind' cf)
Mathlib_Computability_PartrecCode
cf : Code ⊢ 1 ≤ 2 * 2
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
decide
theorem encode_lt_rfind' (cf) : encode cf < encode (rfind' cf) := by simp only [encodeCode_eq, encodeCode] have := Nat.mul_le_mul_right cf.encodeCode (by
Mathlib.Computability.PartrecCode.223_0.A3c3Aev6SyIRjCJ
theorem encode_lt_rfind' (cf) : encode cf < encode (rfind' cf)
Mathlib_Computability_PartrecCode
cf : Code this : 1 * encodeCode cf ≤ 2 * 2 * encodeCode cf ⊢ encodeCode cf < 2 * (2 * encodeCode cf + 1) + 1 + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
rw [one_mul, mul_assoc] at this
theorem encode_lt_rfind' (cf) : encode cf < encode (rfind' cf) := by simp only [encodeCode_eq, encodeCode] have := Nat.mul_le_mul_right cf.encodeCode (by decide : 1 ≤ 2 * 2)
Mathlib.Computability.PartrecCode.223_0.A3c3Aev6SyIRjCJ
theorem encode_lt_rfind' (cf) : encode cf < encode (rfind' cf)
Mathlib_Computability_PartrecCode
cf : Code this : encodeCode cf ≤ 2 * (2 * encodeCode cf) ⊢ encodeCode cf < 2 * (2 * encodeCode cf + 1) + 1 + 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
refine' lt_of_le_of_lt (le_trans this _) (lt_add_of_pos_right _ (by decide : 0 < 4))
theorem encode_lt_rfind' (cf) : encode cf < encode (rfind' cf) := by simp only [encodeCode_eq, encodeCode] have := Nat.mul_le_mul_right cf.encodeCode (by decide : 1 ≤ 2 * 2) rw [one_mul, mul_assoc] at this
Mathlib.Computability.PartrecCode.223_0.A3c3Aev6SyIRjCJ
theorem encode_lt_rfind' (cf) : encode cf < encode (rfind' cf)
Mathlib_Computability_PartrecCode
cf : Code this : encodeCode cf ≤ 2 * (2 * encodeCode cf) ⊢ 0 < 4
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
decide
theorem encode_lt_rfind' (cf) : encode cf < encode (rfind' cf) := by simp only [encodeCode_eq, encodeCode] have := Nat.mul_le_mul_right cf.encodeCode (by decide : 1 ≤ 2 * 2) rw [one_mul, mul_assoc] at this refine' lt_of_le_of_lt (le_trans this _) (lt_add_of_pos_right _ (by
Mathlib.Computability.PartrecCode.223_0.A3c3Aev6SyIRjCJ
theorem encode_lt_rfind' (cf) : encode cf < encode (rfind' cf)
Mathlib_Computability_PartrecCode
cf : Code this : encodeCode cf ≤ 2 * (2 * encodeCode cf) ⊢ 2 * (2 * encodeCode cf) ≤ 2 * (2 * encodeCode cf + 1) + 1
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
exact le_of_lt (Nat.lt_succ_of_le <| Nat.mul_le_mul_left _ <| le_of_lt <| Nat.lt_succ_of_le <| Nat.mul_le_mul_left _ <| le_rfl)
theorem encode_lt_rfind' (cf) : encode cf < encode (rfind' cf) := by simp only [encodeCode_eq, encodeCode] have := Nat.mul_le_mul_right cf.encodeCode (by decide : 1 ≤ 2 * 2) rw [one_mul, mul_assoc] at this refine' lt_of_le_of_lt (le_trans this _) (lt_add_of_pos_right _ (by decide : 0 < 4))
Mathlib.Computability.PartrecCode.223_0.A3c3Aev6SyIRjCJ
theorem encode_lt_rfind' (cf) : encode cf < encode (rfind' cf)
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
intros _ _ _ _ F
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
let G₁ : (α × List σ) × ℕ × ℕ → Option σ := fun p => let a := p.1.1 let IH := p.1.2 let n := p.2.1 let m := p.2.2 (IH.get? m).bind fun s => (IH.get? m.unpair.1).bind fun s₁ => (IH.get? m.unpair.2).map fun s₂ => cond n.bodd (cond n.div2.bodd (rf a (ofNat Code m, s)...
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have : Primrec G₁ := by refine' option_bind (list_get?.comp (snd.comp fst) (snd.comp snd)) _ unfold Primrec₂ refine' option_bind ((list_get?.comp (snd.comp fst) (fst.comp <| Primrec.unpair.comp (snd.comp snd))).comp fst) _ unfold Primrec₂ refine' option_map ((li...
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
refine' option_bind (list_get?.comp (snd.comp fst) (snd.comp snd)) _
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
unfold Primrec₂
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
refine' option_bind ((list_get?.comp (snd.comp fst) (fst.comp <| Primrec.unpair.comp (snd.comp snd))).comp fst) _
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
unfold Primrec₂
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
refine' option_map ((list_get?.comp (snd.comp fst) (snd.comp <| Primrec.unpair.comp (snd.comp snd))).comp <| fst.comp fst) _
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have a : Primrec (fun p : ((((α × List σ) × ℕ × ℕ) × σ) × σ) × σ => p.1.1.1.1.1) := fst.comp (fst.comp <| fst.comp <| fst.comp fst)
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have n : Primrec (fun p : ((((α × List σ) × ℕ × ℕ) × σ) × σ) × σ => p.1.1.1.2.1) := fst.comp (snd.comp <| fst.comp <| fst.comp fst)
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have m : Primrec (fun p : ((((α × List σ) × ℕ × ℕ) × σ) × σ) × σ => p.1.1.1.2.2) := snd.comp (snd.comp <| fst.comp <| fst.comp fst)
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have m₁ := fst.comp (Primrec.unpair.comp m)
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have m₂ := snd.comp (Primrec.unpair.comp m)
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have s : Primrec (fun p : ((((α × List σ) × ℕ × ℕ) × σ) × σ) × σ => p.1.1.2) := snd.comp (fst.comp fst)
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s✝ : α → σ hs : Primrec s✝ l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × C...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have s₁ : Primrec (fun p : ((((α × List σ) × ℕ × ℕ) × σ) × σ) × σ => p.1.2) := snd.comp fst
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s✝ : α → σ hs : Primrec s✝ l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × C...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
have s₂ : Primrec (fun p : ((((α × List σ) × ℕ × ℕ) × σ) × σ) × σ => p.2) := snd
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s✝ : α → σ hs : Primrec s✝ l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × C...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
unfold Primrec₂
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s✝ : α → σ hs : Primrec s✝ l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × C...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
exact (nat_bodd.comp n).cond ((nat_bodd.comp <| nat_div2.comp n).cond (hrf.comp a (((Primrec.ofNat Code).comp m).pair s)) (hpc.comp a (((Primrec.ofNat Code).comp m₁).pair <| ((Primrec.ofNat Code).comp m₂).pair <| s₁.pair s₂))) (Primrec.cond (nat_bodd.comp <| nat...
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode
α : Type u_1 σ : Type u_2 inst✝¹ : Primcodable α inst✝ : Primcodable σ c : α → Code hc : Primrec c z : α → σ hz : Primrec z s : α → σ hs : Primrec s l : α → σ hl : Primrec l r : α → σ hr : Primrec r pr : α → Code × Code × σ × σ → σ hpr : Primrec₂ pr co : α → Code × Code × σ × σ → σ hco : Primrec₂ co pc : α → Code × Cod...
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathlib.Computability.Partrec #align_import computability.partrec_code from "leanprover-community/mathlib"@"6155d4351090a6fad236e3d2e4e0e4e7342668e8" /-! # G...
let G : α → List σ → Option σ := fun a IH => IH.length.casesOn (some (z a)) fun n => n.casesOn (some (s a)) fun n => n.casesOn (some (l a)) fun n => n.casesOn (some (r a)) fun n => G₁ ((a, IH), n, n.div2.div2)
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib.Computability.PartrecCode.276_0.A3c3Aev6SyIRjCJ
theorem rec_prim' {α σ} [Primcodable α] [Primcodable σ] {c : α → Code} (hc : Primrec c) {z : α → σ} (hz : Primrec z) {s : α → σ} (hs : Primrec s) {l : α → σ} (hl : Primrec l) {r : α → σ} (hr : Primrec r) {pr : α → Code × Code × σ × σ → σ} (hpr : Primrec₂ pr) {co : α → Code × Code × σ × σ → σ} (hco : Primrec...
Mathlib_Computability_PartrecCode