Companion Generation #18

Closed
opened 2023-10-06 16:30:53 -07:00 by aniva · 2 comments
Owner

This is something the 0.2.4 proof system did not support. Suppose we create a hole of this type:

def some_theorem: Σ' p: Prop, p :=
  PSigma.mk _ _

The two holes here would have entangled types, and most importantly the value of one affects the value of the other.

This makes it impossible to fill the two holes independently. Another example would be (credit to Kolomatskaia, A.):

example : ∃ x: Nat, x + 5 = 10 :=
  ⟨_, _⟩

This can be proven by

example : ∃ x: Nat, x + 5 = 10 :=
  have h: 2 + 5 = 10 := by calc
  ⟨_, h⟩

The holes have the types

?m1: Nat
?m2: ?m1 + 5 = 10

This is critical for theorem proving and problem generation and is not something the current system can workaround with. I don't think even LeanDojo can solve it.

This is something the 0.2.4 proof system did not support. Suppose we create a hole of this type: ```lean def some_theorem: Σ' p: Prop, p := PSigma.mk _ _ ``` The two holes here would have entangled types, and most importantly the value of one affects the value of the other. This makes it impossible to fill the two holes independently. Another example would be (credit to Kolomatskaia, A.): ```lean example : ∃ x: Nat, x + 5 = 10 := ⟨_, _⟩ ``` This can be proven by ```lean example : ∃ x: Nat, x + 5 = 10 := have h: 2 + 5 = 10 := by calc ⟨_, h⟩ ``` The holes have the types ```lean ?m1: Nat ?m2: ?m1 + 5 = 10 ``` This is critical for theorem proving and problem generation and is not something the current system can workaround with. I don't think even LeanDojo can solve it.
aniva added this to the 0.2.6 milestone 2023-10-06 16:30:53 -07:00
aniva added the
category
feature
part/Goal
labels 2023-10-06 16:30:53 -07:00
aniva self-assigned this 2023-10-06 16:30:53 -07:00
Author
Owner

Pushing back the 0.3 milestone by 20 days due to this problem and library definition readings.

Pushing back the 0.3 milestone by 20 days due to this problem and library definition readings.
Author
Owner

Solved #20

Solved #20
aniva closed this issue 2023-10-28 16:38:06 -07:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: aniva/Pantograph#18
No description provided.