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/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_assoc
[134, 1]
[144, 4]
intros a b c
⊒ βˆ€ (a b c : Rotation), a + b + c = a + (b + c)
a b c : Rotation ⊒ a + b + c = a + (b + c)
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (a b c : Rotation), a + b + c = a + (b + c) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_assoc
[134, 1]
[144, 4]
cases a
a b c : Rotation ⊒ a + b + c = a + (b + c)
case r0 b c : Rotation ⊒ r0 + b + c = r0 + (b + c) case r120 b c : Rotation ⊒ r120 + b + c = r120 + (b + c) case r240 b c : Rotation ⊒ r240 + b + c = r240 + (b + c)
Please generate a tactic in lean4 to solve the state. STATE: a b c : Rotation ⊒ a + b + c = a + (b + c) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_assoc
[134, 1]
[144, 4]
repeat { cases b repeat { cases c repeat { rfl } } }
case r0 b c : Rotation ⊒ r0 + b + c = r0 + (b + c) case r120 b c : Rotation ⊒ r120 + b + c = r120 + (b + c) case r240 b c : Rotation ⊒ r240 + b + c = r240 + (b + c)
no goals
Please generate a tactic in lean4 to solve the state. STATE: case r0 b c : Rotation ⊒ r0 + b + c = r0 + (b + c) case r120 b c : Rotation ⊒ r120 + b + c = r120 + (b + c) case r240 b c : Rotation ⊒ r240 + b + c = r240 + (b + c) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_assoc
[134, 1]
[144, 4]
cases b
case r240 b c : Rotation ⊒ r240 + b + c = r240 + (b + c)
case r240.r0 c : Rotation ⊒ r240 + r0 + c = r240 + (r0 + c) case r240.r120 c : Rotation ⊒ r240 + r120 + c = r240 + (r120 + c) case r240.r240 c : Rotation ⊒ r240 + r240 + c = r240 + (r240 + c)
Please generate a tactic in lean4 to solve the state. STATE: case r240 b c : Rotation ⊒ r240 + b + c = r240 + (b + c) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_assoc
[134, 1]
[144, 4]
repeat { cases c repeat { rfl } }
case r240.r0 c : Rotation ⊒ r240 + r0 + c = r240 + (r0 + c) case r240.r120 c : Rotation ⊒ r240 + r120 + c = r240 + (r120 + c) case r240.r240 c : Rotation ⊒ r240 + r240 + c = r240 + (r240 + c)
no goals
Please generate a tactic in lean4 to solve the state. STATE: case r240.r0 c : Rotation ⊒ r240 + r0 + c = r240 + (r0 + c) case r240.r120 c : Rotation ⊒ r240 + r120 + c = r240 + (r120 + c) case r240.r240 c : Rotation ⊒ r240 + r240 + c = r240 + (r240 + c) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_assoc
[134, 1]
[144, 4]
cases c
case r240.r240 c : Rotation ⊒ r240 + r240 + c = r240 + (r240 + c)
case r240.r240.r0 ⊒ r240 + r240 + r0 = r240 + (r240 + r0) case r240.r240.r120 ⊒ r240 + r240 + r120 = r240 + (r240 + r120) case r240.r240.r240 ⊒ r240 + r240 + r240 = r240 + (r240 + r240)
Please generate a tactic in lean4 to solve the state. STATE: case r240.r240 c : Rotation ⊒ r240 + r240 + c = r240 + (r240 + c) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_assoc
[134, 1]
[144, 4]
repeat { rfl }
case r240.r240.r0 ⊒ r240 + r240 + r0 = r240 + (r240 + r0) case r240.r240.r120 ⊒ r240 + r240 + r120 = r240 + (r240 + r120) case r240.r240.r240 ⊒ r240 + r240 + r240 = r240 + (r240 + r240)
no goals
Please generate a tactic in lean4 to solve the state. STATE: case r240.r240.r0 ⊒ r240 + r240 + r0 = r240 + (r240 + r0) case r240.r240.r120 ⊒ r240 + r240 + r120 = r240 + (r240 + r120) case r240.r240.r240 ⊒ r240 + r240 + r240 = r240 + (r240 + r240) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_assoc
[134, 1]
[144, 4]
rfl
case r240.r240.r240 ⊒ r240 + r240 + r240 = r240 + (r240 + r240)
no goals
Please generate a tactic in lean4 to solve the state. STATE: case r240.r240.r240 ⊒ r240 + r240 + r240 = r240 + (r240 + r240) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_zero_add
[157, 1]
[161, 17]
intro a
⊒ βˆ€ (a : Rotation), 0 + a = a
a : Rotation ⊒ 0 + a = a
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (a : Rotation), 0 + a = a TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_zero_add
[157, 1]
[161, 17]
cases a
a : Rotation ⊒ 0 + a = a
case r0 ⊒ 0 + r0 = r0 case r120 ⊒ 0 + r120 = r120 case r240 ⊒ 0 + r240 = r240
Please generate a tactic in lean4 to solve the state. STATE: a : Rotation ⊒ 0 + a = a TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_zero_add
[157, 1]
[161, 17]
repeat { rfl }
case r0 ⊒ 0 + r0 = r0 case r120 ⊒ 0 + r120 = r120 case r240 ⊒ 0 + r240 = r240
no goals
Please generate a tactic in lean4 to solve the state. STATE: case r0 ⊒ 0 + r0 = r0 case r120 ⊒ 0 + r120 = r120 case r240 ⊒ 0 + r240 = r240 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_zero_add
[157, 1]
[161, 17]
rfl
case r240 ⊒ 0 + r240 = r240
no goals
Please generate a tactic in lean4 to solve the state. STATE: case r240 ⊒ 0 + r240 = r240 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_zero
[163, 1]
[167, 17]
intro a
⊒ βˆ€ (a : Rotation), a + 0 = a
a : Rotation ⊒ a + 0 = a
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (a : Rotation), a + 0 = a TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_zero
[163, 1]
[167, 17]
cases a
a : Rotation ⊒ a + 0 = a
case r0 ⊒ r0 + 0 = r0 case r120 ⊒ r120 + 0 = r120 case r240 ⊒ r240 + 0 = r240
Please generate a tactic in lean4 to solve the state. STATE: a : Rotation ⊒ a + 0 = a TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_zero
[163, 1]
[167, 17]
repeat { rfl }
case r0 ⊒ r0 + 0 = r0 case r120 ⊒ r120 + 0 = r120 case r240 ⊒ r240 + 0 = r240
no goals
Please generate a tactic in lean4 to solve the state. STATE: case r0 ⊒ r0 + 0 = r0 case r120 ⊒ r120 + 0 = r120 case r240 ⊒ r240 + 0 = r240 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_zero
[163, 1]
[167, 17]
rfl
case r240 ⊒ r240 + 0 = r240
no goals
Please generate a tactic in lean4 to solve the state. STATE: case r240 ⊒ r240 + 0 = r240 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_zero_vadd
[219, 1]
[223, 17]
intro p
⊒ βˆ€ (p : State), 0 +α΅₯ p = p
p : State ⊒ 0 +α΅₯ p = p
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (p : State), 0 +α΅₯ p = p TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_zero_vadd
[219, 1]
[223, 17]
cases p
p : State ⊒ 0 +α΅₯ p = p
case heading h✝ : K unit✝ : β„• ⊒ 0 +α΅₯ heading h✝ unit✝ = heading h✝ unit✝
Please generate a tactic in lean4 to solve the state. STATE: p : State ⊒ 0 +α΅₯ p = p TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_zero_vadd
[219, 1]
[223, 17]
repeat { rfl }
case heading h✝ : K unit✝ : β„• ⊒ 0 +α΅₯ heading h✝ unit✝ = heading h✝ unit✝
no goals
Please generate a tactic in lean4 to solve the state. STATE: case heading h✝ : K unit✝ : β„• ⊒ 0 +α΅₯ heading h✝ unit✝ = heading h✝ unit✝ TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_zero_vadd
[219, 1]
[223, 17]
rfl
case heading h✝ : K unit✝ : β„• ⊒ 0 +α΅₯ heading h✝ unit✝ = heading h✝ unit✝
no goals
Please generate a tactic in lean4 to solve the state. STATE: case heading h✝ : K unit✝ : β„• ⊒ 0 +α΅₯ heading h✝ unit✝ = heading h✝ unit✝ TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_vadd
[225, 1]
[235, 4]
intros g₁ gβ‚‚ p
⊒ βˆ€ (g₁ gβ‚‚ : Rotation) (p : State), g₁ + gβ‚‚ +α΅₯ p = g₁ +α΅₯ (gβ‚‚ +α΅₯ p)
g₁ gβ‚‚ : Rotation p : State ⊒ g₁ + gβ‚‚ +α΅₯ p = g₁ +α΅₯ (gβ‚‚ +α΅₯ p)
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (g₁ gβ‚‚ : Rotation) (p : State), g₁ + gβ‚‚ +α΅₯ p = g₁ +α΅₯ (gβ‚‚ +α΅₯ p) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_vadd
[225, 1]
[235, 4]
cases g₁
g₁ gβ‚‚ : Rotation p : State ⊒ g₁ + gβ‚‚ +α΅₯ p = g₁ +α΅₯ (gβ‚‚ +α΅₯ p)
case r0 gβ‚‚ : Rotation p : State ⊒ r0 + gβ‚‚ +α΅₯ p = r0 +α΅₯ (gβ‚‚ +α΅₯ p) case r120 gβ‚‚ : Rotation p : State ⊒ r120 + gβ‚‚ +α΅₯ p = r120 +α΅₯ (gβ‚‚ +α΅₯ p) case r240 gβ‚‚ : Rotation p : State ⊒ r240 + gβ‚‚ +α΅₯ p = r240 +α΅₯ (gβ‚‚ +α΅₯ p)
Please generate a tactic in lean4 to solve the state. STATE: g₁ gβ‚‚ : Rotation p : State ⊒ g₁ + gβ‚‚ +α΅₯ p = g₁ +α΅₯ (gβ‚‚ +α΅₯ p) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_vadd
[225, 1]
[235, 4]
repeat { cases gβ‚‚ repeat { cases p repeat rfl } }
case r0 gβ‚‚ : Rotation p : State ⊒ r0 + gβ‚‚ +α΅₯ p = r0 +α΅₯ (gβ‚‚ +α΅₯ p) case r120 gβ‚‚ : Rotation p : State ⊒ r120 + gβ‚‚ +α΅₯ p = r120 +α΅₯ (gβ‚‚ +α΅₯ p) case r240 gβ‚‚ : Rotation p : State ⊒ r240 + gβ‚‚ +α΅₯ p = r240 +α΅₯ (gβ‚‚ +α΅₯ p)
case r120 gβ‚‚ : Rotation p : State ⊒ r120 + gβ‚‚ +α΅₯ p = r120 +α΅₯ (gβ‚‚ +α΅₯ p) case r240 gβ‚‚ : Rotation p : State ⊒ r240 + gβ‚‚ +α΅₯ p = r240 +α΅₯ (gβ‚‚ +α΅₯ p)
Please generate a tactic in lean4 to solve the state. STATE: case r0 gβ‚‚ : Rotation p : State ⊒ r0 + gβ‚‚ +α΅₯ p = r0 +α΅₯ (gβ‚‚ +α΅₯ p) case r120 gβ‚‚ : Rotation p : State ⊒ r120 + gβ‚‚ +α΅₯ p = r120 +α΅₯ (gβ‚‚ +α΅₯ p) case r240 gβ‚‚ : Rotation p : State ⊒ r240 + gβ‚‚ +α΅₯ p = r240 +α΅₯ (gβ‚‚ +α΅₯ p) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_vadd
[225, 1]
[235, 4]
cases gβ‚‚
case r120 gβ‚‚ : Rotation p : State ⊒ r120 + gβ‚‚ +α΅₯ p = r120 +α΅₯ (gβ‚‚ +α΅₯ p)
case r120.r0 p : State ⊒ r120 + r0 +α΅₯ p = r120 +α΅₯ (r0 +α΅₯ p) case r120.r120 p : State ⊒ r120 + r120 +α΅₯ p = r120 +α΅₯ (r120 +α΅₯ p) case r120.r240 p : State ⊒ r120 + r240 +α΅₯ p = r120 +α΅₯ (r240 +α΅₯ p)
Please generate a tactic in lean4 to solve the state. STATE: case r120 gβ‚‚ : Rotation p : State ⊒ r120 + gβ‚‚ +α΅₯ p = r120 +α΅₯ (gβ‚‚ +α΅₯ p) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_vadd
[225, 1]
[235, 4]
repeat { cases p repeat rfl }
case r120.r0 p : State ⊒ r120 + r0 +α΅₯ p = r120 +α΅₯ (r0 +α΅₯ p) case r120.r120 p : State ⊒ r120 + r120 +α΅₯ p = r120 +α΅₯ (r120 +α΅₯ p) case r120.r240 p : State ⊒ r120 + r240 +α΅₯ p = r120 +α΅₯ (r240 +α΅₯ p)
case r120.r240 p : State ⊒ r120 + r240 +α΅₯ p = r120 +α΅₯ (r240 +α΅₯ p)
Please generate a tactic in lean4 to solve the state. STATE: case r120.r0 p : State ⊒ r120 + r0 +α΅₯ p = r120 +α΅₯ (r0 +α΅₯ p) case r120.r120 p : State ⊒ r120 + r120 +α΅₯ p = r120 +α΅₯ (r120 +α΅₯ p) case r120.r240 p : State ⊒ r120 + r240 +α΅₯ p = r120 +α΅₯ (r240 +α΅₯ p) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_vadd
[225, 1]
[235, 4]
cases p
case r120.r240 p : State ⊒ r120 + r240 +α΅₯ p = r120 +α΅₯ (r240 +α΅₯ p)
case r120.r240.heading h✝ : K unit✝ : β„• ⊒ r120 + r240 +α΅₯ heading h✝ unit✝ = r120 +α΅₯ (r240 +α΅₯ heading h✝ unit✝)
Please generate a tactic in lean4 to solve the state. STATE: case r120.r240 p : State ⊒ r120 + r240 +α΅₯ p = r120 +α΅₯ (r240 +α΅₯ p) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_vadd
[225, 1]
[235, 4]
repeat rfl
case r120.r120.heading h✝ : K unit✝ : β„• ⊒ r120 + r120 +α΅₯ heading h✝ unit✝ = r120 +α΅₯ (r120 +α΅₯ heading h✝ unit✝)
no goals
Please generate a tactic in lean4 to solve the state. STATE: case r120.r120.heading h✝ : K unit✝ : β„• ⊒ r120 + r120 +α΅₯ heading h✝ unit✝ = r120 +α΅₯ (r120 +α΅₯ heading h✝ unit✝) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_vadd
[225, 1]
[235, 4]
rfl
case r120.r120.heading h✝ : K unit✝ : β„• ⊒ r120 + r120 +α΅₯ heading h✝ unit✝ = r120 +α΅₯ (r120 +α΅₯ heading h✝ unit✝)
no goals
Please generate a tactic in lean4 to solve the state. STATE: case r120.r120.heading h✝ : K unit✝ : β„• ⊒ r120 + r120 +α΅₯ heading h✝ unit✝ = r120 +α΅₯ (r120 +α΅₯ heading h✝ unit✝) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_neg_left
[349, 1]
[353, 17]
intro a
⊒ βˆ€ (a : Rotation), -a + a = 0
a : Rotation ⊒ -a + a = 0
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (a : Rotation), -a + a = 0 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_neg_left
[349, 1]
[353, 17]
cases a
a : Rotation ⊒ -a + a = 0
case r0 ⊒ -r0 + r0 = 0 case r120 ⊒ -r120 + r120 = 0 case r240 ⊒ -r240 + r240 = 0
Please generate a tactic in lean4 to solve the state. STATE: a : Rotation ⊒ -a + a = 0 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_neg_left
[349, 1]
[353, 17]
repeat { rfl }
case r0 ⊒ -r0 + r0 = 0 case r120 ⊒ -r120 + r120 = 0 case r240 ⊒ -r240 + r240 = 0
no goals
Please generate a tactic in lean4 to solve the state. STATE: case r0 ⊒ -r0 + r0 = 0 case r120 ⊒ -r120 + r120 = 0 case r240 ⊒ -r240 + r240 = 0 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_add_neg_left
[349, 1]
[353, 17]
rfl
case r240 ⊒ -r240 + r240 = 0
no goals
Please generate a tactic in lean4 to solve the state. STATE: case r240 ⊒ -r240 + r240 = 0 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_state_vsub_vadd'
[405, 1]
[412, 4]
intro p1 p2
⊒ βˆ€ (p1 p2 : State), p1 -α΅₯ p2 +α΅₯ p2 = p1
p1 p2 : State ⊒ p1 -α΅₯ p2 +α΅₯ p2 = p1
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (p1 p2 : State), p1 -α΅₯ p2 +α΅₯ p2 = p1 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_state_vsub_vadd'
[405, 1]
[412, 4]
cases p1
p1 p2 : State ⊒ p1 -α΅₯ p2 +α΅₯ p2 = p1
case heading p2 : State h✝ : K unit✝ : β„• ⊒ heading h✝ unit✝ -α΅₯ p2 +α΅₯ p2 = heading h✝ unit✝
Please generate a tactic in lean4 to solve the state. STATE: p1 p2 : State ⊒ p1 -α΅₯ p2 +α΅₯ p2 = p1 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_state_vsub_vadd'
[405, 1]
[412, 4]
cases p2
case heading p2 : State h✝ : K unit✝ : β„• ⊒ heading h✝ unit✝ -α΅₯ p2 +α΅₯ p2 = heading h✝ unit✝
case heading.heading h✝¹ : K unit✝¹ : β„• h✝ : K unit✝ : β„• ⊒ heading h✝¹ unit✝¹ -α΅₯ heading h✝ unit✝ +α΅₯ heading h✝ unit✝ = heading h✝¹ unit✝¹
Please generate a tactic in lean4 to solve the state. STATE: case heading p2 : State h✝ : K unit✝ : β„• ⊒ heading h✝ unit✝ -α΅₯ p2 +α΅₯ p2 = heading h✝ unit✝ TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_state_vadd_vsub'
[414, 1]
[421, 4]
intros g p
⊒ βˆ€ (g : Rotation) (p : State), g +α΅₯ p -α΅₯ p = g
g : Rotation p : State ⊒ g +α΅₯ p -α΅₯ p = g
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (g : Rotation) (p : State), g +α΅₯ p -α΅₯ p = g TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_state_vadd_vsub'
[414, 1]
[421, 4]
cases g
g : Rotation p : State ⊒ g +α΅₯ p -α΅₯ p = g
case r0 p : State ⊒ r0 +α΅₯ p -α΅₯ p = r0 case r120 p : State ⊒ r120 +α΅₯ p -α΅₯ p = r120 case r240 p : State ⊒ r240 +α΅₯ p -α΅₯ p = r240
Please generate a tactic in lean4 to solve the state. STATE: g : Rotation p : State ⊒ g +α΅₯ p -α΅₯ p = g TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/vector_spaces.lean
rot_state_vadd_vsub'
[414, 1]
[421, 4]
cases p
case r0 p : State ⊒ r0 +α΅₯ p -α΅₯ p = r0
case r0.heading h✝ : K unit✝ : β„• ⊒ r0 +α΅₯ heading h✝ unit✝ -α΅₯ heading h✝ unit✝ = r0
Please generate a tactic in lean4 to solve the state. STATE: case r0 p : State ⊒ r0 +α΅₯ p -α΅₯ p = r0 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
eq_nat_is_refl
[68, 1]
[71, 12]
unfold Reflexive
⊒ Reflexive Eq
⊒ βˆ€ (x : β„•), x = x
Please generate a tactic in lean4 to solve the state. STATE: ⊒ Reflexive Eq TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
eq_nat_is_refl
[68, 1]
[71, 12]
intro x
⊒ βˆ€ (x : β„•), x = x
x : β„• ⊒ x = x
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (x : β„•), x = x TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
eq_nat_is_refl
[68, 1]
[71, 12]
exact rfl
x : β„• ⊒ x = x
no goals
Please generate a tactic in lean4 to solve the state. STATE: x : β„• ⊒ x = x TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
eq_nat_is_symm
[73, 1]
[77, 11]
unfold Symmetric
⊒ Symmetric Eq
⊒ βˆ€ ⦃x y : ℕ⦄, x = y β†’ y = x
Please generate a tactic in lean4 to solve the state. STATE: ⊒ Symmetric Eq TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
eq_nat_is_symm
[73, 1]
[77, 11]
intro x y
⊒ βˆ€ ⦃x y : ℕ⦄, x = y β†’ y = x
x y : β„• ⊒ x = y β†’ y = x
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ ⦃x y : ℕ⦄, x = y β†’ y = x TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
eq_nat_is_symm
[73, 1]
[77, 11]
intro hxy
x y : β„• ⊒ x = y β†’ y = x
x y : β„• hxy : x = y ⊒ y = x
Please generate a tactic in lean4 to solve the state. STATE: x y : β„• ⊒ x = y β†’ y = x TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
eq_nat_is_symm
[73, 1]
[77, 11]
rw [hxy]
x y : β„• hxy : x = y ⊒ y = x
no goals
Please generate a tactic in lean4 to solve the state. STATE: x y : β„• hxy : x = y ⊒ y = x TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
eq_nat_is_trans
[82, 1]
[87, 9]
unfold Transitive
⊒ Transitive Eq
⊒ βˆ€ ⦃x y z : ℕ⦄, x = y β†’ y = z β†’ x = z
Please generate a tactic in lean4 to solve the state. STATE: ⊒ Transitive Eq TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
eq_nat_is_trans
[82, 1]
[87, 9]
intros x y z
⊒ βˆ€ ⦃x y z : ℕ⦄, x = y β†’ y = z β†’ x = z
x y z : β„• ⊒ x = y β†’ y = z β†’ x = z
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ ⦃x y z : ℕ⦄, x = y β†’ y = z β†’ x = z TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
eq_nat_is_trans
[82, 1]
[87, 9]
intros hxy hyz
x y z : β„• ⊒ x = y β†’ y = z β†’ x = z
x y z : β„• hxy : x = y hyz : y = z ⊒ x = z
Please generate a tactic in lean4 to solve the state. STATE: x y z : β„• ⊒ x = y β†’ y = z β†’ x = z TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
eq_nat_is_trans
[82, 1]
[87, 9]
rw [hxy]
x y z : β„• hxy : x = y hyz : y = z ⊒ x = z
x y z : β„• hxy : x = y hyz : y = z ⊒ y = z
Please generate a tactic in lean4 to solve the state. STATE: x y z : β„• hxy : x = y hyz : y = z ⊒ x = z TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
eq_nat_is_trans
[82, 1]
[87, 9]
rw [hyz]
x y z : β„• hxy : x = y hyz : y = z ⊒ y = z
no goals
Please generate a tactic in lean4 to solve the state. STATE: x y z : β„• hxy : x = y hyz : y = z ⊒ y = z TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_equiv'
[99, 1]
[102, 31]
intro n
⊒ βˆ€ (n : β„•), Equivalence (cong_mod_n n)
n : β„• ⊒ Equivalence (cong_mod_n n)
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (n : β„•), Equivalence (cong_mod_n n) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_rfl
[106, 1]
[111, 12]
intro n
⊒ βˆ€ (n : β„•), Reflexive (cong_mod_n n)
n : β„• ⊒ Reflexive (cong_mod_n n)
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (n : β„•), Reflexive (cong_mod_n n) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_rfl
[106, 1]
[111, 12]
unfold cong_mod_n
n : β„• ⊒ Reflexive (cong_mod_n n)
n : β„• ⊒ Reflexive fun a b => a % n = b % n
Please generate a tactic in lean4 to solve the state. STATE: n : β„• ⊒ Reflexive (cong_mod_n n) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_rfl
[106, 1]
[111, 12]
unfold Reflexive
n : β„• ⊒ Reflexive fun a b => a % n = b % n
n : β„• ⊒ βˆ€ (x : β„•), (fun a b => a % n = b % n) x x
Please generate a tactic in lean4 to solve the state. STATE: n : β„• ⊒ Reflexive fun a b => a % n = b % n TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_rfl
[106, 1]
[111, 12]
intro a
n : β„• ⊒ βˆ€ (x : β„•), (fun a b => a % n = b % n) x x
n a : β„• ⊒ a % n = a % n
Please generate a tactic in lean4 to solve the state. STATE: n : β„• ⊒ βˆ€ (x : β„•), (fun a b => a % n = b % n) x x TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_rfl
[106, 1]
[111, 12]
exact rfl
n a : β„• ⊒ a % n = a % n
no goals
Please generate a tactic in lean4 to solve the state. STATE: n a : β„• ⊒ a % n = a % n TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_symm
[113, 1]
[120, 11]
intro n
⊒ βˆ€ (n : β„•), Symmetric (cong_mod_n n)
n : β„• ⊒ Symmetric (cong_mod_n n)
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (n : β„•), Symmetric (cong_mod_n n) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_symm
[113, 1]
[120, 11]
unfold Symmetric
n : β„• ⊒ Symmetric (cong_mod_n n)
n : β„• ⊒ βˆ€ ⦃x y : ℕ⦄, cong_mod_n n x y β†’ cong_mod_n n y x
Please generate a tactic in lean4 to solve the state. STATE: n : β„• ⊒ Symmetric (cong_mod_n n) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_symm
[113, 1]
[120, 11]
intros x y
n : β„• ⊒ βˆ€ ⦃x y : ℕ⦄, cong_mod_n n x y β†’ cong_mod_n n y x
n x y : β„• ⊒ cong_mod_n n x y β†’ cong_mod_n n y x
Please generate a tactic in lean4 to solve the state. STATE: n : β„• ⊒ βˆ€ ⦃x y : ℕ⦄, cong_mod_n n x y β†’ cong_mod_n n y x TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_symm
[113, 1]
[120, 11]
intro hxy
n x y : β„• ⊒ cong_mod_n n x y β†’ cong_mod_n n y x
n x y : β„• hxy : cong_mod_n n x y ⊒ cong_mod_n n y x
Please generate a tactic in lean4 to solve the state. STATE: n x y : β„• ⊒ cong_mod_n n x y β†’ cong_mod_n n y x TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_symm
[113, 1]
[120, 11]
unfold cong_mod_n
n x y : β„• hxy : cong_mod_n n x y ⊒ cong_mod_n n y x
n x y : β„• hxy : cong_mod_n n x y ⊒ y % n = x % n
Please generate a tactic in lean4 to solve the state. STATE: n x y : β„• hxy : cong_mod_n n x y ⊒ cong_mod_n n y x TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_symm
[113, 1]
[120, 11]
unfold cong_mod_n at hxy
n x y : β„• hxy : cong_mod_n n x y ⊒ y % n = x % n
n x y : β„• hxy : x % n = y % n ⊒ y % n = x % n
Please generate a tactic in lean4 to solve the state. STATE: n x y : β„• hxy : cong_mod_n n x y ⊒ y % n = x % n TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_symm
[113, 1]
[120, 11]
rw [hxy]
n x y : β„• hxy : x % n = y % n ⊒ y % n = x % n
no goals
Please generate a tactic in lean4 to solve the state. STATE: n x y : β„• hxy : x % n = y % n ⊒ y % n = x % n TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_trans
[122, 1]
[126, 16]
intro n a b c hab hbc
⊒ βˆ€ (n : β„•), Transitive (cong_mod_n n)
n a b c : β„• hab : cong_mod_n n a b hbc : cong_mod_n n b c ⊒ cong_mod_n n a c
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (n : β„•), Transitive (cong_mod_n n) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_trans
[122, 1]
[126, 16]
unfold cong_mod_n
n a b c : β„• hab : cong_mod_n n a b hbc : cong_mod_n n b c ⊒ cong_mod_n n a c
n a b c : β„• hab : cong_mod_n n a b hbc : cong_mod_n n b c ⊒ a % n = c % n
Please generate a tactic in lean4 to solve the state. STATE: n a b c : β„• hab : cong_mod_n n a b hbc : cong_mod_n n b c ⊒ cong_mod_n n a c TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_trans
[122, 1]
[126, 16]
unfold cong_mod_n at hab hbc
n a b c : β„• hab : cong_mod_n n a b hbc : cong_mod_n n b c ⊒ a % n = c % n
n a b c : β„• hab : a % n = b % n hbc : b % n = c % n ⊒ a % n = c % n
Please generate a tactic in lean4 to solve the state. STATE: n a b c : β„• hab : cong_mod_n n a b hbc : cong_mod_n n b c ⊒ a % n = c % n TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_trans
[122, 1]
[126, 16]
rw [hab, hbc]
n a b c : β„• hab : a % n = b % n hbc : b % n = c % n ⊒ a % n = c % n
no goals
Please generate a tactic in lean4 to solve the state. STATE: n a b c : β„• hab : a % n = b % n hbc : b % n = c % n ⊒ a % n = c % n TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_equiv
[128, 1]
[135, 47]
intro n
⊒ βˆ€ (n : β„•), Equivalence (cong_mod_n n)
n : β„• ⊒ Equivalence (cong_mod_n n)
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (n : β„•), Equivalence (cong_mod_n n) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_equiv
[128, 1]
[135, 47]
unfold cong_mod_n
n : β„• ⊒ Equivalence (cong_mod_n n)
n : β„• ⊒ Equivalence fun a b => a % n = b % n
Please generate a tactic in lean4 to solve the state. STATE: n : β„• ⊒ Equivalence (cong_mod_n n) TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_equiv
[128, 1]
[135, 47]
exact Equivalence.mk (by intro x; rfl) (by intros x y h; rw [h]) (by intros x y z hxy hyz; rw [hxy, hyz])
n : β„• ⊒ Equivalence fun a b => a % n = b % n
no goals
Please generate a tactic in lean4 to solve the state. STATE: n : β„• ⊒ Equivalence fun a b => a % n = b % n TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_equiv
[128, 1]
[135, 47]
intro x
n : β„• ⊒ βˆ€ (x : β„•), x % n = x % n
n x : β„• ⊒ x % n = x % n
Please generate a tactic in lean4 to solve the state. STATE: n : β„• ⊒ βˆ€ (x : β„•), x % n = x % n TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_equiv
[128, 1]
[135, 47]
rfl
n x : β„• ⊒ x % n = x % n
no goals
Please generate a tactic in lean4 to solve the state. STATE: n x : β„• ⊒ x % n = x % n TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_equiv
[128, 1]
[135, 47]
intros x y h
n : β„• ⊒ βˆ€ {x y : β„•}, x % n = y % n β†’ y % n = x % n
n x y : β„• h : x % n = y % n ⊒ y % n = x % n
Please generate a tactic in lean4 to solve the state. STATE: n : β„• ⊒ βˆ€ {x y : β„•}, x % n = y % n β†’ y % n = x % n TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_equiv
[128, 1]
[135, 47]
rw [h]
n x y : β„• h : x % n = y % n ⊒ y % n = x % n
no goals
Please generate a tactic in lean4 to solve the state. STATE: n x y : β„• h : x % n = y % n ⊒ y % n = x % n TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_equiv
[128, 1]
[135, 47]
intros x y z hxy hyz
n : β„• ⊒ βˆ€ {x y z : β„•}, x % n = y % n β†’ y % n = z % n β†’ x % n = z % n
n x y z : β„• hxy : x % n = y % n hyz : y % n = z % n ⊒ x % n = z % n
Please generate a tactic in lean4 to solve the state. STATE: n : β„• ⊒ βˆ€ {x y z : β„•}, x % n = y % n β†’ y % n = z % n β†’ x % n = z % n TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
cong_mod_n_equiv
[128, 1]
[135, 47]
rw [hxy, hyz]
n x y z : β„• hxy : x % n = y % n hyz : y % n = z % n ⊒ x % n = z % n
no goals
Please generate a tactic in lean4 to solve the state. STATE: n x y z : β„• hxy : x % n = y % n hyz : y % n = z % n ⊒ x % n = z % n TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
succ_inj
[189, 1]
[193, 13]
unfold Injective
⊒ Injective fun n => n + 1
⊒ βˆ€ ⦃a₁ aβ‚‚ : ℕ⦄, (fun n => n + 1) a₁ = (fun n => n + 1) aβ‚‚ β†’ a₁ = aβ‚‚
Please generate a tactic in lean4 to solve the state. STATE: ⊒ Injective fun n => n + 1 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
succ_inj
[189, 1]
[193, 13]
intros a1 a2 h
⊒ βˆ€ ⦃a₁ aβ‚‚ : ℕ⦄, (fun n => n + 1) a₁ = (fun n => n + 1) aβ‚‚ β†’ a₁ = aβ‚‚
a1 a2 : β„• h : (fun n => n + 1) a1 = (fun n => n + 1) a2 ⊒ a1 = a2
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ ⦃a₁ aβ‚‚ : ℕ⦄, (fun n => n + 1) a₁ = (fun n => n + 1) aβ‚‚ β†’ a₁ = aβ‚‚ TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
succ_inj
[189, 1]
[193, 13]
simp [Nat.add] at h
a1 a2 : β„• h : (fun n => n + 1) a1 = (fun n => n + 1) a2 ⊒ a1 = a2
a1 a2 : β„• h : a1 = a2 ⊒ a1 = a2
Please generate a tactic in lean4 to solve the state. STATE: a1 a2 : β„• h : (fun n => n + 1) a1 = (fun n => n + 1) a2 ⊒ a1 = a2 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
succ_inj
[189, 1]
[193, 13]
assumption
a1 a2 : β„• h : a1 = a2 ⊒ a1 = a2
no goals
Please generate a tactic in lean4 to solve the state. STATE: a1 a2 : β„• h : a1 = a2 ⊒ a1 = a2 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
not_succ_surj
[196, 1]
[200, 27]
unfold Surjective
⊒ ¬Surjective fun n => n + 1
⊒ Β¬βˆ€ (b : β„•), βˆƒ a, (fun n => n + 1) a = b
Please generate a tactic in lean4 to solve the state. STATE: ⊒ ¬Surjective fun n => n + 1 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
not_succ_surj
[196, 1]
[200, 27]
intro h
⊒ Β¬βˆ€ (b : β„•), βˆƒ a, (fun n => n + 1) a = b
h : βˆ€ (b : β„•), βˆƒ a, (fun n => n + 1) a = b ⊒ False
Please generate a tactic in lean4 to solve the state. STATE: ⊒ Β¬βˆ€ (b : β„•), βˆƒ a, (fun n => n + 1) a = b TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
not_succ_surj
[196, 1]
[200, 27]
let contra := h 0
h : βˆ€ (b : β„•), βˆƒ a, (fun n => n + 1) a = b ⊒ False
h : βˆ€ (b : β„•), βˆƒ a, (fun n => n + 1) a = b contra : βˆƒ a, (fun n => n + 1) a = 0 := h 0 ⊒ False
Please generate a tactic in lean4 to solve the state. STATE: h : βˆ€ (b : β„•), βˆƒ a, (fun n => n + 1) a = b ⊒ False TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
not_succ_surj
[196, 1]
[200, 27]
simp [Nat.add] at contra
h : βˆ€ (b : β„•), βˆƒ a, (fun n => n + 1) a = b contra : βˆƒ a, (fun n => n + 1) a = 0 := h 0 ⊒ False
no goals
Please generate a tactic in lean4 to solve the state. STATE: h : βˆ€ (b : β„•), βˆƒ a, (fun n => n + 1) a = b contra : βˆƒ a, (fun n => n + 1) a = 0 := h 0 ⊒ False TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
inj_not
[204, 1]
[215, 25]
unfold Injective
⊒ Injective Bool.not
⊒ βˆ€ ⦃a₁ aβ‚‚ : Bool⦄, Bool.not a₁ = Bool.not aβ‚‚ β†’ a₁ = aβ‚‚
Please generate a tactic in lean4 to solve the state. STATE: ⊒ Injective Bool.not TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
inj_not
[204, 1]
[215, 25]
intros a1 a2 h
⊒ βˆ€ ⦃a₁ aβ‚‚ : Bool⦄, Bool.not a₁ = Bool.not aβ‚‚ β†’ a₁ = aβ‚‚
a1 a2 : Bool h : Bool.not a1 = Bool.not a2 ⊒ a1 = a2
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ ⦃a₁ aβ‚‚ : Bool⦄, Bool.not a₁ = Bool.not aβ‚‚ β†’ a₁ = aβ‚‚ TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
inj_not
[204, 1]
[215, 25]
cases a1 with | true => cases a2 with | true => rfl | false => nomatch h | false => cases a2 with | true => nomatch h | false => rfl
a1 a2 : Bool h : Bool.not a1 = Bool.not a2 ⊒ a1 = a2
no goals
Please generate a tactic in lean4 to solve the state. STATE: a1 a2 : Bool h : Bool.not a1 = Bool.not a2 ⊒ a1 = a2 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
inj_not
[204, 1]
[215, 25]
cases a2 with | true => rfl | false => nomatch h
case true a2 : Bool h : Bool.not true = Bool.not a2 ⊒ true = a2
no goals
Please generate a tactic in lean4 to solve the state. STATE: case true a2 : Bool h : Bool.not true = Bool.not a2 ⊒ true = a2 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
inj_not
[204, 1]
[215, 25]
rfl
case true.true h : Bool.not true = Bool.not true ⊒ true = true
no goals
Please generate a tactic in lean4 to solve the state. STATE: case true.true h : Bool.not true = Bool.not true ⊒ true = true TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
inj_not
[204, 1]
[215, 25]
nomatch h
case true.false h : Bool.not true = Bool.not false ⊒ true = false
no goals
Please generate a tactic in lean4 to solve the state. STATE: case true.false h : Bool.not true = Bool.not false ⊒ true = false TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
inj_not
[204, 1]
[215, 25]
cases a2 with | true => nomatch h | false => rfl
case false a2 : Bool h : Bool.not false = Bool.not a2 ⊒ false = a2
no goals
Please generate a tactic in lean4 to solve the state. STATE: case false a2 : Bool h : Bool.not false = Bool.not a2 ⊒ false = a2 TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
inj_not
[204, 1]
[215, 25]
nomatch h
case false.true h : Bool.not false = Bool.not true ⊒ false = true
no goals
Please generate a tactic in lean4 to solve the state. STATE: case false.true h : Bool.not false = Bool.not true ⊒ false = true TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
inj_not
[204, 1]
[215, 25]
rfl
case false.false h : Bool.not false = Bool.not false ⊒ false = false
no goals
Please generate a tactic in lean4 to solve the state. STATE: case false.false h : Bool.not false = Bool.not false ⊒ false = false TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
surj_not
[217, 1]
[222, 33]
unfold Surjective
⊒ Surjective Bool.not
⊒ βˆ€ (b : Bool), βˆƒ a, Bool.not a = b
Please generate a tactic in lean4 to solve the state. STATE: ⊒ Surjective Bool.not TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
surj_not
[217, 1]
[222, 33]
intro b
⊒ βˆ€ (b : Bool), βˆƒ a, Bool.not a = b
b : Bool ⊒ βˆƒ a, Bool.not a = b
Please generate a tactic in lean4 to solve the state. STATE: ⊒ βˆ€ (b : Bool), βˆƒ a, Bool.not a = b TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
surj_not
[217, 1]
[222, 33]
cases b with | true => exact ⟨ false, rfl ⟩ | false => exact ⟨ true, rfl ⟩
b : Bool ⊒ βˆƒ a, Bool.not a = b
no goals
Please generate a tactic in lean4 to solve the state. STATE: b : Bool ⊒ βˆƒ a, Bool.not a = b TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
surj_not
[217, 1]
[222, 33]
exact ⟨ false, rfl ⟩
case true ⊒ βˆƒ a, Bool.not a = true
no goals
Please generate a tactic in lean4 to solve the state. STATE: case true ⊒ βˆƒ a, Bool.not a = true TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
surj_not
[217, 1]
[222, 33]
exact ⟨ true, rfl ⟩
case false ⊒ βˆƒ a, Bool.not a = false
no goals
Please generate a tactic in lean4 to solve the state. STATE: case false ⊒ βˆƒ a, Bool.not a = false TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
not_bij
[224, 1]
[226, 30]
unfold Bijective
⊒ Bijective Bool.not
⊒ Injective Bool.not ∧ Surjective Bool.not
Please generate a tactic in lean4 to solve the state. STATE: ⊒ Bijective Bool.not TACTIC:
https://github.com/kevinsullivan/cs2120f23.git
c2da7c4a6be769c6fca375a54e8c1fa31ba2854b
Instructor/Lectures/grad/sets_relations.lean
not_bij
[224, 1]
[226, 30]
exact ⟨ inj_not, surj_not ⟩
⊒ Injective Bool.not ∧ Surjective Bool.not
no goals
Please generate a tactic in lean4 to solve the state. STATE: ⊒ Injective Bool.not ∧ Surjective Bool.not TACTIC:
README.md exists but content is empty.
Downloads last month
31