You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structure A where
an : Nat
structure B extends A where
bn : Nat
def a : A := { an := 0 }
def b : B := { an := 1, bn := 1 }
example : { a, b with }.an = 0 := rfl
example : { b, a with }.an = 0 := rfl
The first example succeeds while the second one doesn't. I would have expected exactly the opposite and was very confused when that didn't happen.
The text was updated successfully, but these errors were encountered:
Consider the following structure updates:
The first example succeeds while the second one doesn't. I would have expected exactly the opposite and was very confused when that didn't happen.
The text was updated successfully, but these errors were encountered: