url stringclasses 147 values | commit stringclasses 147 values | file_path stringlengths 7 101 | full_name stringlengths 1 94 | start stringlengths 6 10 | end stringlengths 6 11 | tactic stringlengths 1 11.2k | state_before stringlengths 3 2.09M | state_after stringlengths 6 2.09M | input stringlengths 73 2.09M |
|---|---|---|---|---|---|---|---|---|---|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.mod2_fequal | [70, 1] | [71, 21] | intros h | x y : β€
n : β
β’ x = y β mod2 x n = mod2 y n | x y : β€
n : β
h : x = y
β’ mod2 x n = mod2 y n | Please generate a tactic in lean4 to solve the state.
STATE:
x y : β€
n : β
β’ x = y β mod2 x n = mod2 y n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.mod2_fequal | [70, 1] | [71, 21] | simp [h] | x y : β€
n : β
h : x = y
β’ mod2 x n = mod2 y n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
x y : β€
n : β
h : x = y
β’ mod2 x n = mod2 y n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.mod2_zero | [73, 1] | [75, 23] | simp [mod2] | n : β
β’ mod2 0 n = 0 | n : β
β’ 2 ^ n % 2 ^ n = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
β’ mod2 0 n = 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.mod2_zero | [73, 1] | [75, 23] | simp [Int.emod_self] | n : β
β’ 2 ^ n % 2 ^ n = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
β’ 2 ^ n % 2 ^ n = 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.mod2_exp_n | [77, 1] | [80, 23] | simp [mod2] | n : β
β’ mod2 (2 ^ n) n = 0 | n : β
β’ 2 ^ n % 2 ^ n = 0 | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
β’ mod2 (2 ^ n) n = 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.mod2_exp_n | [77, 1] | [80, 23] | simp [Int.emod_self] | n : β
β’ 2 ^ n % 2 ^ n = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
β’ 2 ^ n % 2 ^ n = 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.mod2_add_left | [83, 1] | [84, 8] | sorry | n : β
x : β€
β’ mod2 (2 ^ n + x) n = mod2 x n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
x : β€
β’ mod2 (2 ^ n + x) n = mod2 x n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.mod2_add_right | [86, 1] | [87, 8] | sorry | x : β€
n : β
β’ mod2 (x + 2 ^ n) n = mod2 x n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
x : β€
n : β
β’ mod2 (x + 2 ^ n) n = mod2 x n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.smod2_ge | [94, 1] | [97, 66] | simp [smod2] | a : β€
n : β
β’ smod2 a n β₯ -2 ^ n | a : β€
n : β
β’ -2 ^ n β€ if 2 ^ n β€ mod2 a (n + 1) then mod2 a (n + 1) - 2 ^ (n + 1) else mod2 a (n + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
a : β€
n : β
β’ smod2 a n β₯ -2 ^ n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.smod2_ge | [94, 1] | [97, 66] | split | a : β€
n : β
β’ -2 ^ n β€ if 2 ^ n β€ mod2 a (n + 1) then mod2 a (n + 1) - 2 ^ (n + 1) else mod2 a (n + 1) | case inl
a : β€
n : β
hβ : 2 ^ n β€ mod2 a (n + 1)
β’ -2 ^ n β€ mod2 a (n + 1) - 2 ^ (n + 1)
case inr
a : β€
n : β
hβ : Β¬2 ^ n β€ mod2 a (n + 1)
β’ -2 ^ n β€ mod2 a (n + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
a : β€
n : β
β’ -2 ^ n β€ if 2 ^ n β€ mod2 a (n + 1) then mod2 a (n + 1) - 2 ^ (n + 1) else mod2 a (n + 1)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.smod2_ge | [94, 1] | [97, 66] | . sorry_arith | case inl
a : β€
n : β
hβ : 2 ^ n β€ mod2 a (n + 1)
β’ -2 ^ n β€ mod2 a (n + 1) - 2 ^ (n + 1)
case inr
a : β€
n : β
hβ : Β¬2 ^ n β€ mod2 a (n + 1)
β’ -2 ^ n β€ mod2 a (n + 1) | case inr
a : β€
n : β
hβ : Β¬2 ^ n β€ mod2 a (n + 1)
β’ -2 ^ n β€ mod2 a (n + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
case inl
a : β€
n : β
hβ : 2 ^ n β€ mod2 a (n + 1)
β’ -2 ^ n β€ mod2 a (n + 1) - 2 ^ (n + 1)
case inr
a : β€
n : β
hβ : Β¬2 ^ n β€ mod2 a (n + 1)
β’ -2 ^ n β€ mod2 a (n + 1)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.smod2_ge | [94, 1] | [97, 66] | . apply Int.ge_trans 0 mod2_ge (Int.zero_ge_neg Int.two_pow_ge) | case inr
a : β€
n : β
hβ : Β¬2 ^ n β€ mod2 a (n + 1)
β’ -2 ^ n β€ mod2 a (n + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
a : β€
n : β
hβ : Β¬2 ^ n β€ mod2 a (n + 1)
β’ -2 ^ n β€ mod2 a (n + 1)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.smod2_lt | [99, 1] | [102, 16] | simp [smod2] | a : β€
n : β
β’ smod2 a n < 2 ^ n | a : β€
n : β
β’ (if 2 ^ n β€ mod2 a (n + 1) then mod2 a (n + 1) - 2 ^ (n + 1) else mod2 a (n + 1)) < 2 ^ n | Please generate a tactic in lean4 to solve the state.
STATE:
a : β€
n : β
β’ smod2 a n < 2 ^ n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.smod2_lt | [99, 1] | [102, 16] | split | a : β€
n : β
β’ (if 2 ^ n β€ mod2 a (n + 1) then mod2 a (n + 1) - 2 ^ (n + 1) else mod2 a (n + 1)) < 2 ^ n | case inl
a : β€
n : β
hβ : 2 ^ n β€ mod2 a (n + 1)
β’ mod2 a (n + 1) - 2 ^ (n + 1) < 2 ^ n
case inr
a : β€
n : β
hβ : Β¬2 ^ n β€ mod2 a (n + 1)
β’ mod2 a (n + 1) < 2 ^ n | Please generate a tactic in lean4 to solve the state.
STATE:
a : β€
n : β
β’ (if 2 ^ n β€ mod2 a (n + 1) then mod2 a (n + 1) - 2 ^ (n + 1) else mod2 a (n + 1)) < 2 ^ n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.smod2_lt | [99, 1] | [102, 16] | . sorry_arith | case inl
a : β€
n : β
hβ : 2 ^ n β€ mod2 a (n + 1)
β’ mod2 a (n + 1) - 2 ^ (n + 1) < 2 ^ n
case inr
a : β€
n : β
hβ : Β¬2 ^ n β€ mod2 a (n + 1)
β’ mod2 a (n + 1) < 2 ^ n | case inr
a : β€
n : β
hβ : Β¬2 ^ n β€ mod2 a (n + 1)
β’ mod2 a (n + 1) < 2 ^ n | Please generate a tactic in lean4 to solve the state.
STATE:
case inl
a : β€
n : β
hβ : 2 ^ n β€ mod2 a (n + 1)
β’ mod2 a (n + 1) - 2 ^ (n + 1) < 2 ^ n
case inr
a : β€
n : β
hβ : Β¬2 ^ n β€ mod2 a (n + 1)
β’ mod2 a (n + 1) < 2 ^ n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.smod2_lt | [99, 1] | [102, 16] | . sorry_arith | case inr
a : β€
n : β
hβ : Β¬2 ^ n β€ mod2 a (n + 1)
β’ mod2 a (n + 1) < 2 ^ n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case inr
a : β€
n : β
hβ : Β¬2 ^ n β€ mod2 a (n + 1)
β’ mod2 a (n + 1) < 2 ^ n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.smod2_idem | [107, 1] | [108, 8] | sorry | n : β
a : β€
β’ a β₯ -2 ^ n β§ a < 2 ^ n β smod2 a n = a | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
a : β€
β’ a β₯ -2 ^ n β§ a < 2 ^ n β smod2 a n = a
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.smod2_as_mod2 | [119, 1] | [120, 8] | sorry | a : β€
n : β
β’ smod2 a n = mod2 (a + 2 ^ n) (n + 1) - 2 ^ n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a : β€
n : β
β’ smod2 a n = mod2 (a + 2 ^ n) (n + 1) - 2 ^ n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.cong2_to_eq | [143, 1] | [149, 48] | intros h ha hb | a b : β€
n : β
β’ a β‘ b [2^n] β a β₯ 0 β§ a < 2 ^ n β b β₯ 0 β§ b < 2 ^ n β a = b | a b : β€
n : β
h : a β‘ b [2^n]
ha : a β₯ 0 β§ a < 2 ^ n
hb : b β₯ 0 β§ b < 2 ^ n
β’ a = b | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β€
n : β
β’ a β‘ b [2^n] β a β₯ 0 β§ a < 2 ^ n β b β₯ 0 β§ b < 2 ^ n β a = b
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.cong2_to_eq | [143, 1] | [149, 48] | rw [βmod2_idem ha, βmod2_idem hb] | a b : β€
n : β
h : a β‘ b [2^n]
ha : a β₯ 0 β§ a < 2 ^ n
hb : b β₯ 0 β§ b < 2 ^ n
β’ a = b | a b : β€
n : β
h : a β‘ b [2^n]
ha : a β₯ 0 β§ a < 2 ^ n
hb : b β₯ 0 β§ b < 2 ^ n
β’ mod2 a n = mod2 b n | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β€
n : β
h : a β‘ b [2^n]
ha : a β₯ 0 β§ a < 2 ^ n
hb : b β₯ 0 β§ b < 2 ^ n
β’ a = b
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.cong2_to_eq | [143, 1] | [149, 48] | assumption | a b : β€
n : β
h : a β‘ b [2^n]
ha : a β₯ 0 β§ a < 2 ^ n
hb : b β₯ 0 β§ b < 2 ^ n
β’ mod2 a n = mod2 b n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β€
n : β
h : a β‘ b [2^n]
ha : a β₯ 0 β§ a < 2 ^ n
hb : b β₯ 0 β§ b < 2 ^ n
β’ mod2 a n = mod2 b n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.scong2_to_eq | [151, 1] | [157, 50] | intros h ha hb | a b : β€
n : β
β’ a β‘ b [Β±2^n] β a β₯ -2 ^ n β§ a < 2 ^ n β b β₯ -2 ^ n β§ b < 2 ^ n β a = b | a b : β€
n : β
h : a β‘ b [Β±2^n]
ha : a β₯ -2 ^ n β§ a < 2 ^ n
hb : b β₯ -2 ^ n β§ b < 2 ^ n
β’ a = b | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β€
n : β
β’ a β‘ b [Β±2^n] β a β₯ -2 ^ n β§ a < 2 ^ n β b β₯ -2 ^ n β§ b < 2 ^ n β a = b
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.scong2_to_eq | [151, 1] | [157, 50] | rw [βsmod2_idem ha, βsmod2_idem hb] | a b : β€
n : β
h : a β‘ b [Β±2^n]
ha : a β₯ -2 ^ n β§ a < 2 ^ n
hb : b β₯ -2 ^ n β§ b < 2 ^ n
β’ a = b | a b : β€
n : β
h : a β‘ b [Β±2^n]
ha : a β₯ -2 ^ n β§ a < 2 ^ n
hb : b β₯ -2 ^ n β§ b < 2 ^ n
β’ smod2 a n = smod2 b n | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β€
n : β
h : a β‘ b [Β±2^n]
ha : a β₯ -2 ^ n β§ a < 2 ^ n
hb : b β₯ -2 ^ n β§ b < 2 ^ n
β’ a = b
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.scong2_to_eq | [151, 1] | [157, 50] | assumption | a b : β€
n : β
h : a β‘ b [Β±2^n]
ha : a β₯ -2 ^ n β§ a < 2 ^ n
hb : b β₯ -2 ^ n β§ b < 2 ^ n
β’ smod2 a n = smod2 b n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β€
n : β
h : a β‘ b [Β±2^n]
ha : a β₯ -2 ^ n β§ a < 2 ^ n
hb : b β₯ -2 ^ n β§ b < 2 ^ n
β’ smod2 a n = smod2 b n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.mod2_add_l | [160, 1] | [161, 8] | sorry | a : β€
n : β
b : β€
β’ mod2 (mod2 a n + b) n = mod2 (a + b) n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a : β€
n : β
b : β€
β’ mod2 (mod2 a n + b) n = mod2 (a + b) n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.mod2_add_r | [164, 1] | [165, 8] | sorry | a b : β€
n : β
β’ mod2 (a + mod2 b n) n = mod2 (a + b) n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β€
n : β
β’ mod2 (a + mod2 b n) n = mod2 (a + b) n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.mod2_neg | [168, 1] | [169, 8] | sorry | a : β€
n : β
β’ mod2 (-mod2 a n) n = mod2 (-a) n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a : β€
n : β
β’ mod2 (-mod2 a n) n = mod2 (-a) n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.mod2_sub_r | [172, 1] | [173, 8] | sorry | a b : β€
n : β
β’ mod2 (a - mod2 b n) n = mod2 (a - b) n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a b : β€
n : β
β’ mod2 (a - mod2 b n) n = mod2 (a - b) n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.mod2_sub_l | [176, 1] | [177, 8] | sorry | a : β€
n : β
b : β€
β’ mod2 (mod2 a n - b) n = mod2 (a - b) n | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a : β€
n : β
b : β€
β’ mod2 (mod2 a n - b) n = mod2 (a - b) n
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.cong2_mod2_right | [179, 1] | [180, 39] | simp [cong2, mod2_idem mod2_bounds] | n : β
a b : β€
β’ a β‘ b [2^n] β a β‘ mod2 b n [2^n] | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
a b : β€
β’ a β‘ b [2^n] β a β‘ mod2 b n [2^n]
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.cong2_mod2_left | [182, 1] | [183, 39] | simp [cong2, mod2_idem mod2_bounds] | n : β
a b : β€
β’ a β‘ b [2^n] β mod2 a n β‘ b [2^n] | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β
a b : β€
β’ a β‘ b [2^n] β mod2 a n β‘ b [2^n]
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ge | [276, 1] | [280, 67] | revert n | sz : β
n : FinInt sz
β’ toUint n β₯ 0 | sz : β
β’ β {n : FinInt sz}, toUint n β₯ 0 | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : FinInt sz
β’ toUint n β₯ 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ge | [276, 1] | [280, 67] | induction sz <;> intros n <;> cases n <;> simp | sz : β
β’ β {n : FinInt sz}, toUint n β₯ 0 | case succ.next
nβ : β
aβΒΉ : Bool
aβ : FinInt nβ
n_ihβ : β {n : FinInt (Nat.add nβ 0)}, toUint n β₯ 0
β’ 0 β€ toUint (next aβΒΉ aβ) | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
β’ β {n : FinInt sz}, toUint n β₯ 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ge | [276, 1] | [280, 67] | case next sz bn n' ih =>
cases bn <;> simp [@ih n']
apply Int.add_ge_zero; apply Int.pow_ge_zero; decide; apply ih | sz : β
bn : Bool
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ 0 β€ toUint (next bn n') | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
bn : Bool
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ 0 β€ toUint (next bn n')
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ge | [276, 1] | [280, 67] | cases bn <;> simp [@ih n'] | sz : β
bn : Bool
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ 0 β€ toUint (next bn n') | case true
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ 0 β€ 2 ^ sz + toUint n' | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
bn : Bool
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ 0 β€ toUint (next bn n')
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ge | [276, 1] | [280, 67] | apply Int.add_ge_zero | case true
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ 0 β€ 2 ^ sz + toUint n' | case true.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ 2 ^ sz β₯ 0
case true.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ toUint n' β₯ 0 | Please generate a tactic in lean4 to solve the state.
STATE:
case true
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ 0 β€ 2 ^ sz + toUint n'
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ge | [276, 1] | [280, 67] | apply Int.pow_ge_zero | case true.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ 2 ^ sz β₯ 0
case true.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ toUint n' β₯ 0 | case true.a.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ 2 β₯ 0
case true.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ toUint n' β₯ 0 | Please generate a tactic in lean4 to solve the state.
STATE:
case true.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ 2 ^ sz β₯ 0
case true.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ toUint n' β₯ 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ge | [276, 1] | [280, 67] | decide | case true.a.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ 2 β₯ 0
case true.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ toUint n' β₯ 0 | case true.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ toUint n' β₯ 0 | Please generate a tactic in lean4 to solve the state.
STATE:
case true.a.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ 2 β₯ 0
case true.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ toUint n' β₯ 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ge | [276, 1] | [280, 67] | apply ih | case true.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ toUint n' β₯ 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case true.a
sz : β
n' : FinInt sz
ih : β {n : FinInt (Nat.add sz 0)}, toUint n β₯ 0
β’ toUint n' β₯ 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_lt | [282, 1] | [284, 8] | revert n | sz : β
n : FinInt sz
β’ toUint n < 2 ^ sz | sz : β
β’ β {n : FinInt sz}, toUint n < 2 ^ sz | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : FinInt sz
β’ toUint n < 2 ^ sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_lt | [282, 1] | [284, 8] | induction sz <;> intros n <;> cases n <;> simp | sz : β
β’ β {n : FinInt sz}, toUint n < 2 ^ sz | case succ.next
nβ : β
aβΒΉ : Bool
aβ : FinInt nβ
n_ihβ : β {n : FinInt (Nat.add nβ 0)}, toUint n < 2 ^ Nat.add nβ 0
β’ toUint (next aβΒΉ aβ) < 2 ^ Nat.succ nβ | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
β’ β {n : FinInt sz}, toUint n < 2 ^ sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_lt | [282, 1] | [284, 8] | sorry | case succ.next
nβ : β
aβΒΉ : Bool
aβ : FinInt nβ
n_ihβ : β {n : FinInt (Nat.add nβ 0)}, toUint n < 2 ^ Nat.add nβ 0
β’ toUint (next aβΒΉ aβ) < 2 ^ Nat.succ nβ | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case succ.next
nβ : β
aβΒΉ : Bool
aβ : FinInt nβ
n_ihβ : β {n : FinInt (Nat.add nβ 0)}, toUint n < 2 ^ Nat.add nβ 0
β’ toUint (next aβΒΉ aβ) < 2 ^ Nat.succ nβ
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toSint_ge | [303, 1] | [304, 8] | sorry | sz : β
n : FinInt (sz + 1)
β’ toSint n β₯ -2 ^ sz | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : FinInt (sz + 1)
β’ toSint n β₯ -2 ^ sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toSint_lt | [312, 1] | [316, 16] | cases n | sz : β
n : FinInt (sz + 1)
β’ toSint n < 2 ^ sz | case next
sz : β
aβΒΉ : Bool
aβ : FinInt sz
β’ toSint (next aβΒΉ aβ) < 2 ^ sz | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : FinInt (sz + 1)
β’ toSint n < 2 ^ sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toSint_lt | [312, 1] | [316, 16] | case next bn n' =>
cases bn <;> simp [toSint]
. apply toUint_lt
. sorry_arith | sz : β
bn : Bool
n' : FinInt sz
β’ toSint (next bn n') < 2 ^ sz | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
bn : Bool
n' : FinInt sz
β’ toSint (next bn n') < 2 ^ sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toSint_lt | [312, 1] | [316, 16] | cases bn <;> simp [toSint] | sz : β
bn : Bool
n' : FinInt sz
β’ toSint (next bn n') < 2 ^ sz | case false
sz : β
n' : FinInt sz
β’ toUint n' < 2 ^ sz
case true
sz : β
n' : FinInt sz
β’ toUint n' - 2 ^ sz < 2 ^ sz | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
bn : Bool
n' : FinInt sz
β’ toSint (next bn n') < 2 ^ sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toSint_lt | [312, 1] | [316, 16] | . apply toUint_lt | case false
sz : β
n' : FinInt sz
β’ toUint n' < 2 ^ sz
case true
sz : β
n' : FinInt sz
β’ toUint n' - 2 ^ sz < 2 ^ sz | case true
sz : β
n' : FinInt sz
β’ toUint n' - 2 ^ sz < 2 ^ sz | Please generate a tactic in lean4 to solve the state.
STATE:
case false
sz : β
n' : FinInt sz
β’ toUint n' < 2 ^ sz
case true
sz : β
n' : FinInt sz
β’ toUint n' - 2 ^ sz < 2 ^ sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toSint_lt | [312, 1] | [316, 16] | . sorry_arith | case true
sz : β
n' : FinInt sz
β’ toUint n' - 2 ^ sz < 2 ^ sz | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case true
sz : β
n' : FinInt sz
β’ toUint n' - 2 ^ sz < 2 ^ sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_zero | [325, 1] | [329, 35] | induction sz with
| zero => decide
| succ n ih => simp [toUint, ih] | sz : β
β’ toUint zero = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
β’ toUint zero = 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_zero | [325, 1] | [329, 35] | decide | case zero
β’ toUint zero = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case zero
β’ toUint zero = 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_zero | [325, 1] | [329, 35] | simp [toUint, ih] | case succ
n : β
ih : toUint zero = 0
β’ toUint zero = 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case succ
n : β
ih : toUint zero = 0
β’ toUint zero = 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_one | [331, 1] | [336, 70] | intros h | sz : β
β’ sz > 0 β toUint one = 1 | sz : β
h : sz > 0
β’ toUint one = 1 | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
β’ sz > 0 β toUint one = 1
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_one | [331, 1] | [336, 70] | induction sz with
| zero => cases (by decide: Β¬ 0 > 0) h
| succ n ih => cases n; decide; simp [toUint]; apply ih; simp_arith | sz : β
h : sz > 0
β’ toUint one = 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
h : sz > 0
β’ toUint one = 1
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_one | [331, 1] | [336, 70] | cases (by decide: Β¬ 0 > 0) h | case zero
h : Nat.zero > 0
β’ toUint one = 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case zero
h : Nat.zero > 0
β’ toUint one = 1
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_one | [331, 1] | [336, 70] | decide | h : Nat.zero > 0
β’ Β¬0 > 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
h : Nat.zero > 0
β’ Β¬0 > 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_one | [331, 1] | [336, 70] | cases n | case succ
n : β
ih : n > 0 β toUint one = 1
h : Nat.succ n > 0
β’ toUint one = 1 | case succ.zero
ih : Nat.zero > 0 β toUint one = 1
h : Nat.succ Nat.zero > 0
β’ toUint one = 1
case succ.succ
nβ : β
ih : Nat.succ nβ > 0 β toUint one = 1
h : Nat.succ (Nat.succ nβ) > 0
β’ toUint one = 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case succ
n : β
ih : n > 0 β toUint one = 1
h : Nat.succ n > 0
β’ toUint one = 1
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_one | [331, 1] | [336, 70] | decide | case succ.zero
ih : Nat.zero > 0 β toUint one = 1
h : Nat.succ Nat.zero > 0
β’ toUint one = 1
case succ.succ
nβ : β
ih : Nat.succ nβ > 0 β toUint one = 1
h : Nat.succ (Nat.succ nβ) > 0
β’ toUint one = 1 | case succ.succ
nβ : β
ih : Nat.succ nβ > 0 β toUint one = 1
h : Nat.succ (Nat.succ nβ) > 0
β’ toUint one = 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case succ.zero
ih : Nat.zero > 0 β toUint one = 1
h : Nat.succ Nat.zero > 0
β’ toUint one = 1
case succ.succ
nβ : β
ih : Nat.succ nβ > 0 β toUint one = 1
h : Nat.succ (Nat.succ nβ) > 0
β’ toUint one = 1
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_one | [331, 1] | [336, 70] | apply ih | case succ.succ
nβ : β
ih : Nat.succ nβ > 0 β toUint one = 1
h : Nat.succ (Nat.succ nβ) > 0
β’ toUint one = 1 | case succ.succ
nβ : β
ih : Nat.succ nβ > 0 β toUint one = 1
h : Nat.succ (Nat.succ nβ) > 0
β’ Nat.succ nβ > 0 | Please generate a tactic in lean4 to solve the state.
STATE:
case succ.succ
nβ : β
ih : Nat.succ nβ > 0 β toUint one = 1
h : Nat.succ (Nat.succ nβ) > 0
β’ toUint one = 1
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_one | [331, 1] | [336, 70] | simp_arith | case succ.succ
nβ : β
ih : Nat.succ nβ > 0 β toUint one = 1
h : Nat.succ (Nat.succ nβ) > 0
β’ Nat.succ nβ > 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case succ.succ
nβ : β
ih : Nat.succ nβ > 0 β toUint one = 1
h : Nat.succ (Nat.succ nβ) > 0
β’ Nat.succ nβ > 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_minusOne | [338, 1] | [342, 48] | induction sz with
| zero => decide
| succ n ih => simp [toUint, ih]; sorry_arith | sz : β
β’ toUint minusOne = 2 ^ sz - 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
β’ toUint minusOne = 2 ^ sz - 1
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_minusOne | [338, 1] | [342, 48] | decide | case zero
β’ toUint minusOne = 2 ^ Nat.zero - 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case zero
β’ toUint minusOne = 2 ^ Nat.zero - 1
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_minusOne | [338, 1] | [342, 48] | simp [toUint, ih] | case succ
n : β
ih : toUint minusOne = 2 ^ n - 1
β’ toUint minusOne = 2 ^ Nat.succ n - 1 | case succ
n : β
ih : toUint minusOne = 2 ^ n - 1
β’ 2 ^ n + (2 ^ n - 1) = 2 ^ Nat.succ n - 1 | Please generate a tactic in lean4 to solve the state.
STATE:
case succ
n : β
ih : toUint minusOne = 2 ^ n - 1
β’ toUint minusOne = 2 ^ Nat.succ n - 1
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_minusOne | [338, 1] | [342, 48] | sorry_arith | case succ
n : β
ih : toUint minusOne = 2 ^ n - 1
β’ 2 ^ n + (2 ^ n - 1) = 2 ^ Nat.succ n - 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case succ
n : β
ih : toUint minusOne = 2 ^ n - 1
β’ 2 ^ n + (2 ^ n - 1) = 2 ^ Nat.succ n - 1
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.msb_bound | [348, 1] | [350, 8] | sorry | sz : β
b : Bool
n : FinInt sz
β’ toUint (next b n) < 2 ^ sz β b = false | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
b : Bool
n : FinInt sz
β’ toUint (next b n) < 2 ^ sz β b = false
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toSint_of_toUint | [386, 1] | [393, 47] | match n with
| .O m => simp [toSint, toUint]
| .I m => simp [toSint, toUint]; sorry_arith | sz : β
n : FinInt (sz + 1)
β’ toSint n =
match n with
| next false a => toUint n
| next true a => toUint n - 2 ^ (sz + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : FinInt (sz + 1)
β’ toSint n =
match n with
| next false a => toUint n
| next true a => toUint n - 2 ^ (sz + 1)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toSint_of_toUint | [386, 1] | [393, 47] | simp [toSint, toUint] | sz : β
n : FinInt (sz + 1)
m : FinInt sz
β’ toSint (O m) =
match O m with
| next false a => toUint (O m)
| next true a => toUint (O m) - 2 ^ (sz + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : FinInt (sz + 1)
m : FinInt sz
β’ toSint (O m) =
match O m with
| next false a => toUint (O m)
| next true a => toUint (O m) - 2 ^ (sz + 1)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toSint_of_toUint | [386, 1] | [393, 47] | simp [toSint, toUint] | sz : β
n : FinInt (sz + 1)
m : FinInt sz
β’ toSint (I m) =
match I m with
| next false a => toUint (I m)
| next true a => toUint (I m) - 2 ^ (sz + 1) | sz : β
n : FinInt (sz + 1)
m : FinInt sz
β’ toUint m - 2 ^ sz = 2 ^ sz + toUint m - 2 ^ (sz + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : FinInt (sz + 1)
m : FinInt sz
β’ toSint (I m) =
match I m with
| next false a => toUint (I m)
| next true a => toUint (I m) - 2 ^ (sz + 1)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toSint_of_toUint | [386, 1] | [393, 47] | sorry_arith | sz : β
n : FinInt (sz + 1)
m : FinInt sz
β’ toUint m - 2 ^ sz = 2 ^ sz + toUint m - 2 ^ (sz + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : FinInt (sz + 1)
m : FinInt sz
β’ toUint m - 2 ^ sz = 2 ^ sz + toUint m - 2 ^ (sz + 1)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_of_toSint | [395, 1] | [402, 47] | match n with
| .O m => simp [toSint, toUint]
| .I m => simp [toSint, toUint]; sorry_arith | sz : β
n : FinInt (sz + 1)
β’ toUint n =
match n with
| next false a => toSint n
| next true a => toSint n + 2 ^ (sz + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : FinInt (sz + 1)
β’ toUint n =
match n with
| next false a => toSint n
| next true a => toSint n + 2 ^ (sz + 1)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_of_toSint | [395, 1] | [402, 47] | simp [toSint, toUint] | sz : β
n : FinInt (sz + 1)
m : FinInt sz
β’ toUint (O m) =
match O m with
| next false a => toSint (O m)
| next true a => toSint (O m) + 2 ^ (sz + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : FinInt (sz + 1)
m : FinInt sz
β’ toUint (O m) =
match O m with
| next false a => toSint (O m)
| next true a => toSint (O m) + 2 ^ (sz + 1)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_of_toSint | [395, 1] | [402, 47] | simp [toSint, toUint] | sz : β
n : FinInt (sz + 1)
m : FinInt sz
β’ toUint (I m) =
match I m with
| next false a => toSint (I m)
| next true a => toSint (I m) + 2 ^ (sz + 1) | sz : β
n : FinInt (sz + 1)
m : FinInt sz
β’ 2 ^ sz + toUint m = toUint m - 2 ^ sz + 2 ^ (sz + 1) | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : FinInt (sz + 1)
m : FinInt sz
β’ toUint (I m) =
match I m with
| next false a => toSint (I m)
| next true a => toSint (I m) + 2 ^ (sz + 1)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_of_toSint | [395, 1] | [402, 47] | sorry_arith | sz : β
n : FinInt (sz + 1)
m : FinInt sz
β’ 2 ^ sz + toUint m = toUint m - 2 ^ sz + 2 ^ (sz + 1) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : FinInt (sz + 1)
m : FinInt sz
β’ 2 ^ sz + toUint m = toUint m - 2 ^ sz + 2 ^ (sz + 1)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ofInt | [404, 1] | [410, 10] | induction sz | sz : β
n : β€
β’ toUint (ofInt sz n) = mod2 n sz | case zero
n : β€
β’ toUint (ofInt Nat.zero n) = mod2 n Nat.zero
case succ
n : β€
nβ : β
n_ihβ : toUint (ofInt nβ n) = mod2 n nβ
β’ toUint (ofInt (Nat.succ nβ) n) = mod2 n (Nat.succ nβ) | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : β€
β’ toUint (ofInt sz n) = mod2 n sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ofInt | [404, 1] | [410, 10] | case zero =>
simp [mod2]; sorry_arith | n : β€
β’ toUint (ofInt Nat.zero n) = mod2 n Nat.zero | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
β’ toUint (ofInt Nat.zero n) = mod2 n Nat.zero
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ofInt | [404, 1] | [410, 10] | case succ sz ih =>
sorry | n : β€
sz : β
ih : toUint (ofInt sz n) = mod2 n sz
β’ toUint (ofInt (Nat.succ sz) n) = mod2 n (Nat.succ sz) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
sz : β
ih : toUint (ofInt sz n) = mod2 n sz
β’ toUint (ofInt (Nat.succ sz) n) = mod2 n (Nat.succ sz)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ofInt | [404, 1] | [410, 10] | simp [mod2] | n : β€
β’ toUint (ofInt Nat.zero n) = mod2 n Nat.zero | n : β€
β’ 0 = n % 1 | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
β’ toUint (ofInt Nat.zero n) = mod2 n Nat.zero
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ofInt | [404, 1] | [410, 10] | sorry_arith | n : β€
β’ 0 = n % 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
β’ 0 = n % 1
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ofInt | [404, 1] | [410, 10] | sorry | n : β€
sz : β
ih : toUint (ofInt sz n) = mod2 n sz
β’ toUint (ofInt (Nat.succ sz) n) = mod2 n (Nat.succ sz) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
sz : β
ih : toUint (ofInt sz n) = mod2 n sz
β’ toUint (ofInt (Nat.succ sz) n) = mod2 n (Nat.succ sz)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toUint_ofNat | [412, 1] | [414, 35] | simp [OfNat.ofNat, toUint_ofInt] | sz n : β
β’ toUint (OfNat.ofNat n) = mod2 (βn) sz | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz n : β
β’ toUint (OfNat.ofNat n) = mod2 (βn) sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.toSint_ofSint | [416, 1] | [418, 8] | sorry | sz : β
n : β€
β’ toSint (ofInt (sz + 1) n) = smod2 n sz | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : β€
β’ toSint (ofInt (sz + 1) n) = smod2 n sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.ofIntAux_spec | [420, 1] | [432, 18] | induction sz | sz : β
n : β€
β’ toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz | case zero
n : β€
β’ toUint (FinInt.ofIntAux Nat.zero n).fst = mod2 n Nat.zero β§ (FinInt.ofIntAux Nat.zero n).snd = n / 2 ^ Nat.zero
case succ
n : β€
nβ : β
n_ihβ : toUint (FinInt.ofIntAux nβ n).fst = mod2 n nβ β§ (FinInt.ofIntAux nβ n).snd = n / 2 ^ nβ
β’ toUint (FinInt.ofIntAux (Nat.succ nβ) n).fst = mod2 n (Nat.succ nβ) β§
(FinInt.ofIntAux (Nat.succ nβ) n).snd = n / 2 ^ Nat.succ nβ | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
n : β€
β’ toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.ofIntAux_spec | [420, 1] | [432, 18] | case zero =>
simp [FinInt.ofIntAux]; sorry_arith | n : β€
β’ toUint (FinInt.ofIntAux Nat.zero n).fst = mod2 n Nat.zero β§ (FinInt.ofIntAux Nat.zero n).snd = n / 2 ^ Nat.zero | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
β’ toUint (FinInt.ofIntAux Nat.zero n).fst = mod2 n Nat.zero β§ (FinInt.ofIntAux Nat.zero n).snd = n / 2 ^ Nat.zero
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.ofIntAux_spec | [420, 1] | [432, 18] | case succ sz ih =>
simp [FinInt.ofIntAux, ih]; constructor
. have h: (n / 2^sz % 2 = 0) β¨ (n / 2^sz %2 = 1) := by sorry
match h with
| .inl h => simp [h, ih]; sorry_arith
| .inr h => simp [h, ih]; sorry_arith
. sorry_arith | n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ toUint (FinInt.ofIntAux (Nat.succ sz) n).fst = mod2 n (Nat.succ sz) β§
(FinInt.ofIntAux (Nat.succ sz) n).snd = n / 2 ^ Nat.succ sz | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ toUint (FinInt.ofIntAux (Nat.succ sz) n).fst = mod2 n (Nat.succ sz) β§
(FinInt.ofIntAux (Nat.succ sz) n).snd = n / 2 ^ Nat.succ sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.ofIntAux_spec | [420, 1] | [432, 18] | simp [FinInt.ofIntAux] | n : β€
β’ toUint (FinInt.ofIntAux Nat.zero n).fst = mod2 n Nat.zero β§ (FinInt.ofIntAux Nat.zero n).snd = n / 2 ^ Nat.zero | n : β€
β’ 0 = mod2 n 0 | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
β’ toUint (FinInt.ofIntAux Nat.zero n).fst = mod2 n Nat.zero β§ (FinInt.ofIntAux Nat.zero n).snd = n / 2 ^ Nat.zero
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.ofIntAux_spec | [420, 1] | [432, 18] | sorry_arith | n : β€
β’ 0 = mod2 n 0 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
β’ 0 = mod2 n 0
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.ofIntAux_spec | [420, 1] | [432, 18] | simp [FinInt.ofIntAux, ih] | n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ toUint (FinInt.ofIntAux (Nat.succ sz) n).fst = mod2 n (Nat.succ sz) β§
(FinInt.ofIntAux (Nat.succ sz) n).snd = n / 2 ^ Nat.succ sz | n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ toUint (next (n / 2 ^ sz % 2 == 1) (FinInt.ofIntAux sz n).fst) = mod2 n (Nat.succ sz) β§
n / 2 ^ sz / 2 = n / 2 ^ Nat.succ sz | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ toUint (FinInt.ofIntAux (Nat.succ sz) n).fst = mod2 n (Nat.succ sz) β§
(FinInt.ofIntAux (Nat.succ sz) n).snd = n / 2 ^ Nat.succ sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.ofIntAux_spec | [420, 1] | [432, 18] | constructor | n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ toUint (next (n / 2 ^ sz % 2 == 1) (FinInt.ofIntAux sz n).fst) = mod2 n (Nat.succ sz) β§
n / 2 ^ sz / 2 = n / 2 ^ Nat.succ sz | case left
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ toUint (next (n / 2 ^ sz % 2 == 1) (FinInt.ofIntAux sz n).fst) = mod2 n (Nat.succ sz)
case right
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ n / 2 ^ sz / 2 = n / 2 ^ Nat.succ sz | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ toUint (next (n / 2 ^ sz % 2 == 1) (FinInt.ofIntAux sz n).fst) = mod2 n (Nat.succ sz) β§
n / 2 ^ sz / 2 = n / 2 ^ Nat.succ sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.ofIntAux_spec | [420, 1] | [432, 18] | . have h: (n / 2^sz % 2 = 0) β¨ (n / 2^sz %2 = 1) := by sorry
match h with
| .inl h => simp [h, ih]; sorry_arith
| .inr h => simp [h, ih]; sorry_arith | case left
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ toUint (next (n / 2 ^ sz % 2 == 1) (FinInt.ofIntAux sz n).fst) = mod2 n (Nat.succ sz)
case right
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ n / 2 ^ sz / 2 = n / 2 ^ Nat.succ sz | case right
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ n / 2 ^ sz / 2 = n / 2 ^ Nat.succ sz | Please generate a tactic in lean4 to solve the state.
STATE:
case left
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ toUint (next (n / 2 ^ sz % 2 == 1) (FinInt.ofIntAux sz n).fst) = mod2 n (Nat.succ sz)
case right
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ n / 2 ^ sz / 2 = n / 2 ^ Nat.succ sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.ofIntAux_spec | [420, 1] | [432, 18] | . sorry_arith | case right
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ n / 2 ^ sz / 2 = n / 2 ^ Nat.succ sz | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case right
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ n / 2 ^ sz / 2 = n / 2 ^ Nat.succ sz
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.ofIntAux_spec | [420, 1] | [432, 18] | sorry | n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ n / 2 ^ sz % 2 = 0 β¨ n / 2 ^ sz % 2 = 1 | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
β’ n / 2 ^ sz % 2 = 0 β¨ n / 2 ^ sz % 2 = 1
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.ofIntAux_spec | [420, 1] | [432, 18] | simp [h, ih] | n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
hβ : n / 2 ^ sz % 2 = 0 β¨ n / 2 ^ sz % 2 = 1
h : n / 2 ^ sz % 2 = 0
β’ toUint (next (n / 2 ^ sz % 2 == 1) (FinInt.ofIntAux sz n).fst) = mod2 n (Nat.succ sz) | n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
hβ : n / 2 ^ sz % 2 = 0 β¨ n / 2 ^ sz % 2 = 1
h : n / 2 ^ sz % 2 = 0
β’ mod2 n sz = mod2 n (Nat.succ sz) | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
hβ : n / 2 ^ sz % 2 = 0 β¨ n / 2 ^ sz % 2 = 1
h : n / 2 ^ sz % 2 = 0
β’ toUint (next (n / 2 ^ sz % 2 == 1) (FinInt.ofIntAux sz n).fst) = mod2 n (Nat.succ sz)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.ofIntAux_spec | [420, 1] | [432, 18] | sorry_arith | n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
hβ : n / 2 ^ sz % 2 = 0 β¨ n / 2 ^ sz % 2 = 1
h : n / 2 ^ sz % 2 = 0
β’ mod2 n sz = mod2 n (Nat.succ sz) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
hβ : n / 2 ^ sz % 2 = 0 β¨ n / 2 ^ sz % 2 = 1
h : n / 2 ^ sz % 2 = 0
β’ mod2 n sz = mod2 n (Nat.succ sz)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.ofIntAux_spec | [420, 1] | [432, 18] | simp [h, ih] | n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
hβ : n / 2 ^ sz % 2 = 0 β¨ n / 2 ^ sz % 2 = 1
h : n / 2 ^ sz % 2 = 1
β’ toUint (next (n / 2 ^ sz % 2 == 1) (FinInt.ofIntAux sz n).fst) = mod2 n (Nat.succ sz) | n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
hβ : n / 2 ^ sz % 2 = 0 β¨ n / 2 ^ sz % 2 = 1
h : n / 2 ^ sz % 2 = 1
β’ 2 ^ sz + mod2 n sz = mod2 n (Nat.succ sz) | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
hβ : n / 2 ^ sz % 2 = 0 β¨ n / 2 ^ sz % 2 = 1
h : n / 2 ^ sz % 2 = 1
β’ toUint (next (n / 2 ^ sz % 2 == 1) (FinInt.ofIntAux sz n).fst) = mod2 n (Nat.succ sz)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.ofIntAux_spec | [420, 1] | [432, 18] | sorry_arith | n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
hβ : n / 2 ^ sz % 2 = 0 β¨ n / 2 ^ sz % 2 = 1
h : n / 2 ^ sz % 2 = 1
β’ 2 ^ sz + mod2 n sz = mod2 n (Nat.succ sz) | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
n : β€
sz : β
ih : toUint (FinInt.ofIntAux sz n).fst = mod2 n sz β§ (FinInt.ofIntAux sz n).snd = n / 2 ^ sz
hβ : n / 2 ^ sz % 2 = 0 β¨ n / 2 ^ sz % 2 = 1
h : n / 2 ^ sz % 2 = 1
β’ 2 ^ sz + mod2 n sz = mod2 n (Nat.succ sz)
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.eq_of_toUint_eq | [434, 1] | [446, 28] | intros h <;> induction sz | sz : β
a b : FinInt sz
β’ toUint a = toUint b β a = b | case zero
a b : FinInt Nat.zero
h : toUint a = toUint b
β’ a = b
case succ
nβ : β
n_ihβ : β (a b : FinInt nβ), toUint a = toUint b β a = b
a b : FinInt (Nat.succ nβ)
h : toUint a = toUint b
β’ a = b | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
a b : FinInt sz
β’ toUint a = toUint b β a = b
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.eq_of_toUint_eq | [434, 1] | [446, 28] | case zero =>
cases a; cases b; rfl | a b : FinInt Nat.zero
h : toUint a = toUint b
β’ a = b | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
a b : FinInt Nat.zero
h : toUint a = toUint b
β’ a = b
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.eq_of_toUint_eq | [434, 1] | [446, 28] | case succ sz ih =>
cases a; case next sz da a' =>
cases b; case next db b' =>
cases da <;> cases db <;> simp [toUint] at h <;> simp
. apply ih _ _ h
. have hβ := @toUint_lt _ a'; have hβ := @toUint_ge _ b'; sorry_arith
. have hβ := @toUint_ge _ a'; have hβ := @toUint_lt _ b'; sorry_arith
. apply ih; sorry_arith | sz : β
ih : β (a b : FinInt sz), toUint a = toUint b β a = b
a b : FinInt (Nat.succ sz)
h : toUint a = toUint b
β’ a = b | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
sz : β
ih : β (a b : FinInt sz), toUint a = toUint b β a = b
a b : FinInt (Nat.succ sz)
h : toUint a = toUint b
β’ a = b
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.eq_of_toUint_eq | [434, 1] | [446, 28] | cases a | a b : FinInt Nat.zero
h : toUint a = toUint b
β’ a = b | case nil
b : FinInt Nat.zero
h : toUint nil = toUint b
β’ nil = b | Please generate a tactic in lean4 to solve the state.
STATE:
a b : FinInt Nat.zero
h : toUint a = toUint b
β’ a = b
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.eq_of_toUint_eq | [434, 1] | [446, 28] | cases b | case nil
b : FinInt Nat.zero
h : toUint nil = toUint b
β’ nil = b | case nil.nil
h : toUint nil = toUint nil
β’ nil = nil | Please generate a tactic in lean4 to solve the state.
STATE:
case nil
b : FinInt Nat.zero
h : toUint nil = toUint b
β’ nil = b
TACTIC:
|
https://github.com/opencompl/lean-mlir.git | e43d21592801e5e40477b14b7a554e356060c40c | MLIR/Util/FinInt.lean | FinInt.eq_of_toUint_eq | [434, 1] | [446, 28] | rfl | case nil.nil
h : toUint nil = toUint nil
β’ nil = nil | no goals | Please generate a tactic in lean4 to solve the state.
STATE:
case nil.nil
h : toUint nil = toUint nil
β’ nil = nil
TACTIC:
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.