Zulip Chat Archive

Stream: lean4

Topic: Axioms in axioms' types


𝚠𝚘𝚓𝚌𝚒𝚎𝚌𝚑 𝚗𝚊𝚠𝚛𝚘𝚌𝚔𝚒 (Sep 03 2025 at 05:38):

When an axiom appears only in other axioms' types, it will not be printed by #print axioms. (This is a result of how docs#Lean.CollectAxioms.collect is implemented.) Is this correct?

axiom B : Type
axiom v : B
axiom c : B  Nat
noncomputable def a := c v

-- 'a' depends on axioms: [c, v]
#print axioms a

𝚠𝚘𝚓𝚌𝚒𝚎𝚌𝚑 𝚗𝚊𝚠𝚛𝚘𝚌𝚔𝚒 (Sep 03 2025 at 05:39):

Oh I take this back, it was fixed in lean#8842!


Last updated: Dec 20 2025 at 21:32 UTC